[2026-01-08 12:52:12] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-01-08T00:52:09.498Z","date_to":"2026-01-08T12:52:09.498Z","per_page":"100"} 
[2026-01-08 12:52:12] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-01-08 12:52:12] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-01-08T00:52:09.498Z","date_to":"2026-01-08T12:52:09.498Z","per_page":"100"} 
[2026-01-08 12:52:12] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-01-08 12:54:25] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-01-08T00:54:24.341Z","date_to":"2026-01-08T12:54:24.341Z","per_page":"100"} 
[2026-01-08 12:54:25] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-01-08 12:54:26] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-01-08T00:54:24.341Z","date_to":"2026-01-08T12:54:24.341Z","per_page":"100"} 
[2026-01-08 12:54:26] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-01-08 12:57:32] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-01-08T00:57:30.180Z","date_to":"2026-01-08T12:57:30.180Z","per_page":"100"} 
[2026-01-08 12:57:32] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-01-08 12:57:32] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-01-08T00:57:30.180Z","date_to":"2026-01-08T12:57:30.180Z","per_page":"100"} 
[2026-01-08 12:57:32] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-01-08 15:27:45] local.ERROR: Call to a member function format() on null {"userId":6,"exception":"[object] (Error(code: 0): Call to a member function format() on null at E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\DailyClosingReportController.php:1622)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\DailyClosingReportController->exportDetails(Object(App\\Models\\DailyClosingReport), '3')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('exportDetails', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\DailyClosingReportController), 'exportDetails')
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#46 {main}
"} 
[2026-01-08 15:28:48] local.ERROR: Call to a member function format() on null {"userId":6,"exception":"[object] (Error(code: 0): Call to a member function format() on null at E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\DailyClosingReportController.php:1622)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\DailyClosingReportController->exportDetails(Object(App\\Models\\DailyClosingReport), '3')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('exportDetails', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\DailyClosingReportController), 'exportDetails')
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#46 {main}
"} 
[2026-01-31 12:35:39] local.INFO: Login attempt {"email":"bmadmin@pos.com","ip":"127.0.0.1"} 
[2026-01-31 13:02:55] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:03:12] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:03:17] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:03:28] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:03:54] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:03:55] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:04:16] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:04:42] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:05:03] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:06:06] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:08:13] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:08:42] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:08:47] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:09:04] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:17:21] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:17:22] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:17:34] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:17:35] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:21:16] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:21:18] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:23:16] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:23:20] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:23:21] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:23:55] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:24:20] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:24:36] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:27:25] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:27:26] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:30:46] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:39:52] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:39:53] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:42:46] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:42:49] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:42:51] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:43:08] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:43:30] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:43:39] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:43:42] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 13:43:47] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 14:00:38] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 14:00:39] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 14:15:21] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 14:15:23] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 14:15:26] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 14:15:28] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 14:19:26] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 14:19:28] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 14:19:49] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 14:19:51] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 14:40:09] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 14:40:10] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 15:02:19] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-01-31 15:02:21] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 07:51:05] local.INFO: Login attempt {"email":"mr@pos.com","ip":"127.0.0.1"} 
[2026-02-02 07:51:12] local.INFO: Login attempt {"email":"mr@pos.com","ip":"127.0.0.1"} 
[2026-02-02 07:51:50] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":9,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 07:51:50] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":9,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 09:27:47] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":9,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 09:27:47] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":9,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 09:27:49] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":9,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 09:27:50] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":9,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 09:27:57] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":9,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 09:28:04] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":9,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 09:35:20] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":9,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 09:41:37] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":9,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 09:41:38] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":9,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 09:41:42] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":9,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 09:41:45] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":9,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 09:41:57] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":9,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 09:42:00] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":9,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 10:00:41] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":9,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 10:00:43] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":9,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 10:01:07] local.INFO: Login attempt {"email":"admin@pos.com","ip":"127.0.0.1"} 
[2026-02-02 10:01:15] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":1,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 10:01:17] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":1,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null or `restaurant_id` = 1) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 10:01:22] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":1,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 10:01:24] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":1,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 10:04:54] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":1,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 10:08:59] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":1,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 10:09:00] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":1,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 10:09:02] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":1,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 10:27:06] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":1,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 10:40:19] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) {"userId":1,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' (Connection: mysql, SQL: select * from `menu_item_image_categories` where (`restaurant_id` is null) and `menu_item_image_categories`.`deleted_at` is null order by `name` asc) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'restaurant_id' in 'where clause' at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:423)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): PDO->prepare('select * from `...')
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController.php(44): Illuminate\\Database\\Eloquent\\Builder->get()
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php(54): App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController->index(Object(Illuminate\\Http\\Request))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\Admin\\MenuItemImageCategoryController), 'index')
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php(205): Illuminate\\Routing\\Route->runController()
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(806): Illuminate\\Routing\\Route->run()
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(30): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#57 {main}
"} 
[2026-02-02 12:07:08] local.INFO: Login attempt {"email":"mr@pos.com","ip":"127.0.0.1"} 
[2026-02-02 12:07:15] local.INFO: Login attempt {"email":"mr@pos.com","ip":"127.0.0.1"} 
[2026-02-02 12:14:53] local.INFO: Update request - hasFile(image): NO  
[2026-02-02 12:14:53] local.INFO: Update request - all files: []  
[2026-02-02 12:14:53] local.INFO: Update request - method: POST  
[2026-02-02 12:14:53] local.INFO: Update request - input keys: ["name","price","restaurant_id","branch_id","description","restaurant_category_id","is_available","image_url","id"]  
[2026-02-02 12:15:47] local.INFO: Update request - hasFile(image): NO  
[2026-02-02 12:15:47] local.INFO: Update request - all files: []  
[2026-02-02 12:15:47] local.INFO: Update request - method: POST  
[2026-02-02 12:15:47] local.INFO: Update request - input keys: ["name","price","restaurant_id","branch_id","description","restaurant_category_id","is_available","image_url","id"]  
[2026-02-02 12:16:25] local.INFO: Update request - hasFile(image): NO  
[2026-02-02 12:16:25] local.INFO: Update request - all files: []  
[2026-02-02 12:16:25] local.INFO: Update request - method: POST  
[2026-02-02 12:16:25] local.INFO: Update request - input keys: ["name","price","restaurant_id","branch_id","description","restaurant_category_id","is_available","image_url","id"]  
[2026-02-02 12:16:59] local.INFO: Update request - hasFile(image): NO  
[2026-02-02 12:16:59] local.INFO: Update request - all files: []  
[2026-02-02 12:16:59] local.INFO: Update request - method: POST  
[2026-02-02 12:16:59] local.INFO: Update request - input keys: ["name","price","restaurant_id","branch_id","description","restaurant_category_id","is_available","image_url","id"]  
[2026-02-02 12:17:24] local.INFO: Update request - hasFile(image): NO  
[2026-02-02 12:17:24] local.INFO: Update request - all files: []  
[2026-02-02 12:17:24] local.INFO: Update request - method: POST  
[2026-02-02 12:17:24] local.INFO: Update request - input keys: ["name","price","restaurant_id","branch_id","description","restaurant_category_id","is_available","image_url","id"]  
[2026-02-02 12:17:45] local.INFO: Update request - hasFile(image): NO  
[2026-02-02 12:17:45] local.INFO: Update request - all files: []  
[2026-02-02 12:17:45] local.INFO: Update request - method: POST  
[2026-02-02 12:17:45] local.INFO: Update request - input keys: ["name","price","restaurant_id","branch_id","description","restaurant_category_id","is_available","image_url","id"]  
[2026-02-02 12:18:11] local.INFO: Update request - hasFile(image): NO  
[2026-02-02 12:18:11] local.INFO: Update request - all files: []  
[2026-02-02 12:18:11] local.INFO: Update request - method: POST  
[2026-02-02 12:18:11] local.INFO: Update request - input keys: ["name","price","restaurant_id","branch_id","description","restaurant_category_id","is_available","image_url","id"]  
[2026-02-02 12:51:59] local.INFO: Update request - hasFile(image): NO  
[2026-02-02 12:51:59] local.INFO: Update request - all files: []  
[2026-02-02 12:51:59] local.INFO: Update request - method: POST  
[2026-02-02 12:51:59] local.INFO: Update request - input keys: ["name","price","restaurant_id","branch_id","description","restaurant_category_id","is_available","image_url","id"]  
[2026-02-02 12:52:49] local.INFO: Update request - hasFile(image): NO  
[2026-02-02 12:52:49] local.INFO: Update request - all files: []  
[2026-02-02 12:52:49] local.INFO: Update request - method: POST  
[2026-02-02 12:52:49] local.INFO: Update request - input keys: ["name","price","restaurant_id","branch_id","description","restaurant_category_id","is_available","image_url","id"]  
[2026-02-02 12:53:34] local.INFO: Update request - hasFile(image): NO  
[2026-02-02 12:53:34] local.INFO: Update request - all files: []  
[2026-02-02 12:53:34] local.INFO: Update request - method: POST  
[2026-02-02 12:53:34] local.INFO: Update request - input keys: ["name","price","restaurant_id","branch_id","description","restaurant_category_id","is_available","id"]  
[2026-02-02 12:56:06] local.INFO: Update request - hasFile(image): NO  
[2026-02-02 12:56:06] local.INFO: Update request - all files: []  
[2026-02-02 12:56:06] local.INFO: Update request - method: POST  
[2026-02-02 12:56:06] local.INFO: Update request - input keys: ["name","price","restaurant_id","branch_id","description","restaurant_category_id","is_available","id"]  
[2026-02-02 12:56:27] local.INFO: Update request - hasFile(image): NO  
[2026-02-02 12:56:27] local.INFO: Update request - all files: []  
[2026-02-02 12:56:27] local.INFO: Update request - method: POST  
[2026-02-02 12:56:27] local.INFO: Update request - input keys: ["name","price","restaurant_id","branch_id","description","restaurant_category_id","is_available","image_url","id"]  
[2026-02-02 12:56:58] local.INFO: Update request - hasFile(image): NO  
[2026-02-02 12:56:58] local.INFO: Update request - all files: []  
[2026-02-02 12:56:58] local.INFO: Update request - method: POST  
[2026-02-02 12:56:58] local.INFO: Update request - input keys: ["name","price","restaurant_id","branch_id","description","restaurant_category_id","is_available","image_url","id"]  
[2026-02-02 12:57:18] local.INFO: Update request - hasFile(image): NO  
[2026-02-02 12:57:18] local.INFO: Update request - all files: []  
[2026-02-02 12:57:18] local.INFO: Update request - method: POST  
[2026-02-02 12:57:18] local.INFO: Update request - input keys: ["name","price","restaurant_id","branch_id","description","restaurant_category_id","is_available","image_url","id"]  
[2026-02-02 12:58:30] local.INFO: Update request - hasFile(image): NO  
[2026-02-02 12:58:30] local.INFO: Update request - all files: []  
[2026-02-02 12:58:30] local.INFO: Update request - method: POST  
[2026-02-02 12:58:30] local.INFO: Update request - input keys: ["name","price","restaurant_id","branch_id","description","restaurant_category_id","is_available","image_url","id"]  
[2026-02-02 12:59:11] local.INFO: Update request - hasFile(image): NO  
[2026-02-02 12:59:11] local.INFO: Update request - all files: []  
[2026-02-02 12:59:11] local.INFO: Update request - method: POST  
[2026-02-02 12:59:11] local.INFO: Update request - input keys: ["name","price","restaurant_id","branch_id","description","restaurant_category_id","is_available","image_url","id"]  
[2026-02-02 13:00:19] local.INFO: Update request - hasFile(image): NO  
[2026-02-02 13:00:19] local.INFO: Update request - all files: []  
[2026-02-02 13:00:19] local.INFO: Update request - method: POST  
[2026-02-02 13:00:19] local.INFO: Update request - input keys: ["name","price","restaurant_id","branch_id","description","restaurant_category_id","is_available","image_url","id"]  
[2026-02-02 13:01:08] local.INFO: Update request - hasFile(image): NO  
[2026-02-02 13:01:08] local.INFO: Update request - all files: []  
[2026-02-02 13:01:08] local.INFO: Update request - method: POST  
[2026-02-02 13:01:08] local.INFO: Update request - input keys: ["name","price","restaurant_id","branch_id","description","restaurant_category_id","is_available","image_url","id"]  
[2026-02-02 13:13:15] local.INFO: Update request - hasFile(image): NO  
[2026-02-02 13:13:15] local.INFO: Update request - all files: []  
[2026-02-02 13:13:15] local.INFO: Update request - method: POST  
[2026-02-02 13:13:15] local.INFO: Update request - input keys: ["name","price","restaurant_id","branch_id","description","restaurant_category_id","is_available","image_url","id"]  
[2026-02-03 07:01:55] local.INFO: Login attempt {"email":"mr@pos.com","ip":"127.0.0.1"} 
[2026-02-03 07:02:00] local.INFO: Login attempt {"email":"mr@pos.com","ip":"127.0.0.1"} 
[2026-02-11 13:23:56] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"127.0.0.1"} 
[2026-02-12 08:03:43] local.ERROR: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 157 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 157 limit 1) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Concerns\\BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\Traits\\ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('157')
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('EEnoJrtvZWZwsaC...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), NULL)
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), NULL)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(31): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\Connector.php:65)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\Connector.php(65): PDO->__construct('mysql:host=127....', 'root', Object(SensitiveParameterValue), Array)
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=127....', 'root', '', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=127....', 'root', '', Array)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=127....', Array, Array)
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(1339): call_user_func(Object(Closure))
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Concerns\\BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\Traits\\ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('157')
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('EEnoJrtvZWZwsaC...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), NULL)
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), NULL)
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(31): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#57 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#58 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#59 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#60 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#61 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#66 {main}
"} 
[2026-02-12 08:03:52] local.ERROR: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 157 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 157 limit 1) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Concerns\\BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\Traits\\ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('157')
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('EEnoJrtvZWZwsaC...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), NULL)
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), NULL)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(31): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\Connector.php:65)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\Connector.php(65): PDO->__construct('mysql:host=127....', 'root', Object(SensitiveParameterValue), Array)
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=127....', 'root', '', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=127....', 'root', '', Array)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=127....', Array, Array)
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(1339): call_user_func(Object(Closure))
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Concerns\\BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\Traits\\ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('157')
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('EEnoJrtvZWZwsaC...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), NULL)
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), NULL)
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(31): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#57 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#58 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#59 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#60 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#61 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#66 {main}
"} 
[2026-02-12 08:04:01] local.ERROR: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 157 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 157 limit 1) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Concerns\\BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\Traits\\ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('157')
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('EEnoJrtvZWZwsaC...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), NULL)
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), NULL)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(31): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\Connector.php:65)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\Connector.php(65): PDO->__construct('mysql:host=127....', 'root', Object(SensitiveParameterValue), Array)
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=127....', 'root', '', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=127....', 'root', '', Array)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=127....', Array, Array)
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(1339): call_user_func(Object(Closure))
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Concerns\\BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\Traits\\ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('157')
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('EEnoJrtvZWZwsaC...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), NULL)
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), NULL)
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(31): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#57 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#58 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#59 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#60 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#61 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#66 {main}
"} 
[2026-02-12 08:04:09] local.ERROR: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 157 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 157 limit 1) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Concerns\\BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\Traits\\ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('157')
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('EEnoJrtvZWZwsaC...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), NULL)
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), NULL)
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(31): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#55 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\Connector.php:65)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\Connector.php(65): PDO->__construct('mysql:host=127....', 'root', Object(SensitiveParameterValue), Array)
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=127....', 'root', '', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=127....', 'root', '', Array)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=127....', Array, Array)
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(1339): call_user_func(Object(Closure))
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Concerns\\BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\Traits\\ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('157')
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('EEnoJrtvZWZwsaC...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), NULL)
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), NULL)
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#49 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\sanctum\\src\\Http\\Middleware\\EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 E:\\laragon6\\www\\azan_pos_v2\\app\\Http\\Middleware\\CorsMiddleware.php(31): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): App\\Http\\Middleware\\CorsMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#56 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#57 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#58 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#59 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#60 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#61 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#66 {main}
"} 
[2026-02-12 08:04:18] local.ERROR: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it (Connection: mysql, SQL: select * from `settings` where `key` = logo_path limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it (Connection: mysql, SQL: select * from `settings` where `key` = logo_path limit 1) at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Concerns\\BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\app\\Models\\Setting.php(22): Illuminate\\Database\\Eloquent\\Builder->first()
#12 E:\\laragon6\\www\\azan_pos_v2\\app\\Providers\\AppServiceProvider.php(32): App\\Models\\Setting::get('logo_path', 'images/azan_log...')
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\View\\Concerns\\ManagesEvents.php(162): App\\Providers\\AppServiceProvider->App\\Providers\\{closure}(Object(Illuminate\\View\\View))
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Events\\Dispatcher.php(455): Illuminate\\View\\Factory->Illuminate\\View\\Concerns\\{closure}('composing: erro...', Array)
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Events\\Dispatcher.php(286): Illuminate\\Events\\Dispatcher->Illuminate\\Events\\{closure}('composing: erro...', Array)
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Events\\Dispatcher.php(266): Illuminate\\Events\\Dispatcher->invokeListeners('composing: erro...', Array, false)
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\View\\Concerns\\ManagesEvents.php(177): Illuminate\\Events\\Dispatcher->dispatch('composing: erro...', Array)
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php(188): Illuminate\\View\\Factory->callComposer(Object(Illuminate\\View\\View))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php(159): Illuminate\\View\\View->renderContents()
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Http\\Response.php(69): Illuminate\\View\\View->render()
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Http\\Response.php(35): Illuminate\\Http\\Response->setContent(Object(Illuminate\\View\\View))
#22 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ResponseFactory.php(58): Illuminate\\Http\\Response->__construct(Object(Illuminate\\View\\View), 404, Array)
#23 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ResponseFactory.php(88): Illuminate\\Routing\\ResponseFactory->make(Object(Illuminate\\View\\View), 404, Array)
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Exceptions\\Handler.php(723): Illuminate\\Routing\\ResponseFactory->view('errors::404', Array, 404, Array)
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Exceptions\\Handler.php(650): Illuminate\\Foundation\\Exceptions\\Handler->renderHttpException(Object(Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException))
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Exceptions\\Handler.php(556): Illuminate\\Foundation\\Exceptions\\Handler->prepareResponse(Object(Illuminate\\Http\\Request), Object(Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException))
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Exceptions\\Handler.php(473): Illuminate\\Foundation\\Exceptions\\Handler->renderExceptionResponse(Object(Illuminate\\Http\\Request), Object(Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException))
#28 E:\\laragon6\\www\\azan_pos_v2\\app\\Exceptions\\Handler.php(33): Illuminate\\Foundation\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException))
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Pipeline.php(51): App\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(146): Illuminate\\Routing\\Pipeline->handleException(Object(Illuminate\\Http\\Request), Object(Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException))
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#34 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#36 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it at E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\Connector.php:65)
[stacktrace]
#0 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\Connector.php(65): PDO->__construct('mysql:host=127....', 'root', Object(SensitiveParameterValue), Array)
#1 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=127....', 'root', '', Array)
#2 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=127....', 'root', '', Array)
#3 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=127....', Array, Array)
#4 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(1339): call_user_func(Object(Closure))
#7 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Query\\Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Eloquent\\Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Concerns\\BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 E:\\laragon6\\www\\azan_pos_v2\\app\\Models\\Setting.php(22): Illuminate\\Database\\Eloquent\\Builder->first()
#23 E:\\laragon6\\www\\azan_pos_v2\\app\\Providers\\AppServiceProvider.php(32): App\\Models\\Setting::get('logo_path', 'images/azan_log...')
#24 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\View\\Concerns\\ManagesEvents.php(162): App\\Providers\\AppServiceProvider->App\\Providers\\{closure}(Object(Illuminate\\View\\View))
#25 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Events\\Dispatcher.php(455): Illuminate\\View\\Factory->Illuminate\\View\\Concerns\\{closure}('composing: erro...', Array)
#26 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Events\\Dispatcher.php(286): Illuminate\\Events\\Dispatcher->Illuminate\\Events\\{closure}('composing: erro...', Array)
#27 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Events\\Dispatcher.php(266): Illuminate\\Events\\Dispatcher->invokeListeners('composing: erro...', Array, false)
#28 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\View\\Concerns\\ManagesEvents.php(177): Illuminate\\Events\\Dispatcher->dispatch('composing: erro...', Array)
#29 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php(188): Illuminate\\View\\Factory->callComposer(Object(Illuminate\\View\\View))
#30 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php(159): Illuminate\\View\\View->renderContents()
#31 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Http\\Response.php(69): Illuminate\\View\\View->render()
#32 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Http\\Response.php(35): Illuminate\\Http\\Response->setContent(Object(Illuminate\\View\\View))
#33 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ResponseFactory.php(58): Illuminate\\Http\\Response->__construct(Object(Illuminate\\View\\View), 404, Array)
#34 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ResponseFactory.php(88): Illuminate\\Routing\\ResponseFactory->make(Object(Illuminate\\View\\View), 404, Array)
#35 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Exceptions\\Handler.php(723): Illuminate\\Routing\\ResponseFactory->view('errors::404', Array, 404, Array)
#36 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Exceptions\\Handler.php(650): Illuminate\\Foundation\\Exceptions\\Handler->renderHttpException(Object(Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException))
#37 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Exceptions\\Handler.php(556): Illuminate\\Foundation\\Exceptions\\Handler->prepareResponse(Object(Illuminate\\Http\\Request), Object(Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException))
#38 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Exceptions\\Handler.php(473): Illuminate\\Foundation\\Exceptions\\Handler->renderExceptionResponse(Object(Illuminate\\Http\\Request), Object(Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException))
#39 E:\\laragon6\\www\\azan_pos_v2\\app\\Exceptions\\Handler.php(33): Illuminate\\Foundation\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException))
#40 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Pipeline.php(51): App\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException))
#41 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(146): Illuminate\\Routing\\Pipeline->handleException(Object(Illuminate\\Http\\Request), Object(Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException))
#42 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#44 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#45 E:\\laragon6\\www\\azan_pos_v2\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#46 E:\\laragon6\\www\\azan_pos_v2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\resources\\server.php(16): require_once('E:\\\\laragon6\\\\www...')
#47 {main}
"} 
[2026-02-20 07:10:49] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"127.0.0.1"} 
[2026-02-20 10:56:08] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"127.0.0.1"} 
[2026-02-21 08:06:10] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"127.0.0.1"} 
[2026-02-21 08:12:05] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":3917,"order_number":"AZS-090226-001","user_id":6,"user_role":"branch_manager","detected_status":"paid","incoming_payment_amount":5800,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-21 08:12:05"} 
[2026-02-21 08:12:05] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":3917,"order_number":"AZS-090226-001","user_id":6,"user_role":"branch_manager","incoming_is_paid":true,"incoming_payment_amount":5800,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-21 08:12:05"} 
[2026-02-21 08:12:05] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":3917,"order_number":"AZS-090226-001","user_id":6,"user_role":"branch_manager","normalized_payment_amount":5800,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-21 08:12:05"} 
[2026-02-21 08:12:05] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":3917,"order_number":"AZS-090226-001","user_id":6,"user_role":"branch_manager","normalized_payment_amount":5800,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-21 08:12:05"} 
[2026-02-21 08:12:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":3917,"user_id":6,"user_role":"branch_manager","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":19458},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":19459},{"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":19460},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":19461},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":19462},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":19463},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":19464}],"validated_items":[{"id":19458,"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":19459,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":19460,"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":19461,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":19462,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":19463,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":19464,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-21 08:12:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":3917,"items_count":7} 
[2026-02-21 08:12:05] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":19458,"menu_item_id":138,"quantity":1},{"id":19459,"menu_item_id":105,"quantity":1},{"id":19460,"menu_item_id":51,"quantity":1},{"id":19461,"menu_item_id":61,"quantity":1},{"id":19462,"menu_item_id":56,"quantity":1},{"id":19463,"menu_item_id":3,"quantity":1},{"id":19464,"menu_item_id":5,"quantity":1}]} 
[2026-02-21 08:12:05] local.INFO: PosOrderController::update - Item changes check {"order_id":3917,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["138|1|","105|1|","51|1|","61|1|","56|1|","3|1|","5|1|"],"new_items_map_keys":["138|1|","105|1|","51|1|","61|1|","56|1|","3|1|","5|1|"]} 
[2026-02-21 08:12:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":3917,"order_number":"AZS-090226-001"} 
[2026-02-21 08:12:05] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":3917,"order_number":"AZS-090226-001","user_id":6,"user_role":"branch_manager","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5800,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-21 08:12:05","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-21 08:12:05"} 
[2026-02-21 08:12:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":3917,"order_number":"AZS-090226-001","user_id":6,"user_role":"branch_manager","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-21 08:12:05"} 
[2026-02-21 08:12:05] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":3917,"order_number":"AZS-090226-001","user_id":6,"user_role":"branch_manager","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5800.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-21 08:12:05","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5800,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5800.00","database_verification_match":true,"timestamp":"2026-02-21 08:12:05"} 
[2026-02-21 08:12:28] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":3918,"order_number":"AZS-210226-001","user_id":6,"user_role":"branch_manager","detected_status":"paid","incoming_payment_amount":300,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-21 08:12:28"} 
[2026-02-21 08:12:28] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":3918,"order_number":"AZS-210226-001","user_id":6,"user_role":"branch_manager","incoming_is_paid":true,"incoming_payment_amount":300,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-21 08:12:28"} 
[2026-02-21 08:12:28] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":3918,"order_number":"AZS-210226-001","user_id":6,"user_role":"branch_manager","normalized_payment_amount":300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-21 08:12:28"} 
[2026-02-21 08:12:28] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":3918,"order_number":"AZS-210226-001","user_id":6,"user_role":"branch_manager","normalized_payment_amount":300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-21 08:12:28"} 
[2026-02-21 08:12:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":3918,"user_id":6,"user_role":"branch_manager","request_items":"yes","request_items_raw":[{"menu_item_id":397,"quantity":1,"price":4,"discount_percent":0,"notes":null,"id":19465},{"menu_item_id":399,"quantity":1,"price":2.6,"discount_percent":0,"notes":null,"id":19466},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":19467},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":19468}],"validated_items":[{"id":19465,"menu_item_id":397,"quantity":1,"price":4,"discount_percent":0,"notes":null},{"id":19466,"menu_item_id":399,"quantity":1,"price":2.6,"discount_percent":0,"notes":null},{"id":19467,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"id":19468,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}]} 
[2026-02-21 08:12:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":3918,"items_count":4} 
[2026-02-21 08:12:28] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":19465,"menu_item_id":397,"quantity":1},{"id":19466,"menu_item_id":399,"quantity":1},{"id":19467,"menu_item_id":4,"quantity":1},{"id":19468,"menu_item_id":50,"quantity":1}]} 
[2026-02-21 08:12:28] local.INFO: PosOrderController::update - Item changes check {"order_id":3918,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["397|1|","399|1|","4|1|","50|1|"],"new_items_map_keys":["397|1|","399|1|","4|1|","50|1|"]} 
[2026-02-21 08:12:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":3918,"order_number":"AZS-210226-001"} 
[2026-02-21 08:12:28] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":3918,"order_number":"AZS-210226-001","user_id":6,"user_role":"branch_manager","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":300,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-21 08:12:28","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-21 08:12:28"} 
[2026-02-21 08:12:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":3918,"order_number":"AZS-210226-001","user_id":6,"user_role":"branch_manager","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-21 08:12:28"} 
[2026-02-21 08:12:28] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":3918,"order_number":"AZS-210226-001","user_id":6,"user_role":"branch_manager","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"300.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-21 08:12:28","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":300,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"300.00","database_verification_match":true,"timestamp":"2026-02-21 08:12:28"} 
[2026-02-21 09:51:05] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"127.0.0.1"} 
[2026-02-21 10:31:20] local.ERROR: Target class [files] does not exist. {"exception":"[object] (Illuminate\\Contracts\\Container\\BindingResolutionException(code: 0): Target class [files] does not exist. at E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php:914)
[stacktrace]
#0 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate/Container/Container->build('files')
#1 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(986): Illuminate/Container/Container->resolve('files', Array, true)
#2 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate/Foundation/Application->resolve('files', Array)
#3 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(971): Illuminate/Container/Container->make('files', Array)
#4 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(1454): Illuminate/Foundation/Application->make('files')
#5 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1176): Illuminate/Container/Container->offsetGet('files')
#6 E:/laragon6/www/azan_pos_v2/vendor/laravel/sanctum/src/SanctumServiceProvider.php(82): Illuminate/Foundation/Application->routesAreCached()
#7 E:/laragon6/www/azan_pos_v2/vendor/laravel/sanctum/src/SanctumServiceProvider.php(58): Laravel/Sanctum/SanctumServiceProvider->defineRoutes()
#8 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Laravel/Sanctum/SanctumServiceProvider->boot()
#9 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate/Container/BoundMethod::Illuminate/Container/{closure}()
#10 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate/Container/Util::unwrapIfClosure(Object(Closure))
#11 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate/Container/BoundMethod::callBoundMethod(Object(Illuminate/Foundation/Application), Array, Object(Closure))
#12 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate/Container/BoundMethod::call(Object(Illuminate/Foundation/Application), Array, Array, NULL)
#13 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1059): Illuminate/Container/Container->call(Array)
#14 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1040): Illuminate/Foundation/Application->bootProvider(Object(Laravel/Sanctum/SanctumServiceProvider))
#15 [internal function]: Illuminate/Foundation/Application->Illuminate/Foundation/{closure}(Object(Laravel/Sanctum/SanctumServiceProvider), 5)
#16 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1039): array_walk(Array, Object(Closure))
#17 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate/Foundation/Application->boot()
#18 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(286): Illuminate/Foundation/Bootstrap/BootProviders->bootstrap(Object(Illuminate/Foundation/Application))
#19 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(447): Illuminate/Foundation/Application->bootstrapWith(Array)
#20 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(199): Illuminate/Foundation/Console/Kernel->bootstrap()
#21 E:/laragon6/www/azan_pos_v2/artisan(35): Illuminate/Foundation/Console/Kernel->handle(Object(Symfony/Component/Console/Input/ArgvInput), Object(Symfony/Component/Console/Output/ConsoleOutput))
#22 {main}

[previous exception] [object] (ReflectionException(code: -1): Class \"files\" does not exist at E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php:912)
[stacktrace]
#0 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(912): ReflectionClass->__construct('files')
#1 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate/Container/Container->build('files')
#2 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(986): Illuminate/Container/Container->resolve('files', Array, true)
#3 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate/Foundation/Application->resolve('files', Array)
#4 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(971): Illuminate/Container/Container->make('files', Array)
#5 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(1454): Illuminate/Foundation/Application->make('files')
#6 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1176): Illuminate/Container/Container->offsetGet('files')
#7 E:/laragon6/www/azan_pos_v2/vendor/laravel/sanctum/src/SanctumServiceProvider.php(82): Illuminate/Foundation/Application->routesAreCached()
#8 E:/laragon6/www/azan_pos_v2/vendor/laravel/sanctum/src/SanctumServiceProvider.php(58): Laravel/Sanctum/SanctumServiceProvider->defineRoutes()
#9 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Laravel/Sanctum/SanctumServiceProvider->boot()
#10 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate/Container/BoundMethod::Illuminate/Container/{closure}()
#11 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate/Container/Util::unwrapIfClosure(Object(Closure))
#12 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate/Container/BoundMethod::callBoundMethod(Object(Illuminate/Foundation/Application), Array, Object(Closure))
#13 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate/Container/BoundMethod::call(Object(Illuminate/Foundation/Application), Array, Array, NULL)
#14 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1059): Illuminate/Container/Container->call(Array)
#15 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1040): Illuminate/Foundation/Application->bootProvider(Object(Laravel/Sanctum/SanctumServiceProvider))
#16 [internal function]: Illuminate/Foundation/Application->Illuminate/Foundation/{closure}(Object(Laravel/Sanctum/SanctumServiceProvider), 5)
#17 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1039): array_walk(Array, Object(Closure))
#18 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate/Foundation/Application->boot()
#19 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(286): Illuminate/Foundation/Bootstrap/BootProviders->bootstrap(Object(Illuminate/Foundation/Application))
#20 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(447): Illuminate/Foundation/Application->bootstrapWith(Array)
#21 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(199): Illuminate/Foundation/Console/Kernel->bootstrap()
#22 E:/laragon6/www/azan_pos_v2/artisan(35): Illuminate/Foundation/Console/Kernel->handle(Object(Symfony/Component/Console/Input/ArgvInput), Object(Symfony/Component/Console/Output/ConsoleOutput))
#23 {main}
"} 
[2026-02-21 10:32:16] local.ERROR: Target class [files] does not exist. {"exception":"[object] (Illuminate\\Contracts\\Container\\BindingResolutionException(code: 0): Target class [files] does not exist. at E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php:914)
[stacktrace]
#0 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate/Container/Container->build('files')
#1 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(986): Illuminate/Container/Container->resolve('files', Array, true)
#2 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate/Foundation/Application->resolve('files', Array)
#3 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(971): Illuminate/Container/Container->make('files', Array)
#4 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(1454): Illuminate/Foundation/Application->make('files')
#5 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1176): Illuminate/Container/Container->offsetGet('files')
#6 E:/laragon6/www/azan_pos_v2/vendor/laravel/sanctum/src/SanctumServiceProvider.php(82): Illuminate/Foundation/Application->routesAreCached()
#7 E:/laragon6/www/azan_pos_v2/vendor/laravel/sanctum/src/SanctumServiceProvider.php(58): Laravel/Sanctum/SanctumServiceProvider->defineRoutes()
#8 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Laravel/Sanctum/SanctumServiceProvider->boot()
#9 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate/Container/BoundMethod::Illuminate/Container/{closure}()
#10 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate/Container/Util::unwrapIfClosure(Object(Closure))
#11 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate/Container/BoundMethod::callBoundMethod(Object(Illuminate/Foundation/Application), Array, Object(Closure))
#12 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate/Container/BoundMethod::call(Object(Illuminate/Foundation/Application), Array, Array, NULL)
#13 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1059): Illuminate/Container/Container->call(Array)
#14 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1040): Illuminate/Foundation/Application->bootProvider(Object(Laravel/Sanctum/SanctumServiceProvider))
#15 [internal function]: Illuminate/Foundation/Application->Illuminate/Foundation/{closure}(Object(Laravel/Sanctum/SanctumServiceProvider), 5)
#16 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1039): array_walk(Array, Object(Closure))
#17 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate/Foundation/Application->boot()
#18 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(286): Illuminate/Foundation/Bootstrap/BootProviders->bootstrap(Object(Illuminate/Foundation/Application))
#19 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(447): Illuminate/Foundation/Application->bootstrapWith(Array)
#20 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(199): Illuminate/Foundation/Console/Kernel->bootstrap()
#21 E:/laragon6/www/azan_pos_v2/artisan(35): Illuminate/Foundation/Console/Kernel->handle(Object(Symfony/Component/Console/Input/ArgvInput), Object(Symfony/Component/Console/Output/ConsoleOutput))
#22 {main}

[previous exception] [object] (ReflectionException(code: -1): Class \"files\" does not exist at E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php:912)
[stacktrace]
#0 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(912): ReflectionClass->__construct('files')
#1 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate/Container/Container->build('files')
#2 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(986): Illuminate/Container/Container->resolve('files', Array, true)
#3 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate/Foundation/Application->resolve('files', Array)
#4 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(971): Illuminate/Container/Container->make('files', Array)
#5 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(1454): Illuminate/Foundation/Application->make('files')
#6 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1176): Illuminate/Container/Container->offsetGet('files')
#7 E:/laragon6/www/azan_pos_v2/vendor/laravel/sanctum/src/SanctumServiceProvider.php(82): Illuminate/Foundation/Application->routesAreCached()
#8 E:/laragon6/www/azan_pos_v2/vendor/laravel/sanctum/src/SanctumServiceProvider.php(58): Laravel/Sanctum/SanctumServiceProvider->defineRoutes()
#9 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Laravel/Sanctum/SanctumServiceProvider->boot()
#10 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate/Container/BoundMethod::Illuminate/Container/{closure}()
#11 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate/Container/Util::unwrapIfClosure(Object(Closure))
#12 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate/Container/BoundMethod::callBoundMethod(Object(Illuminate/Foundation/Application), Array, Object(Closure))
#13 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate/Container/BoundMethod::call(Object(Illuminate/Foundation/Application), Array, Array, NULL)
#14 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1059): Illuminate/Container/Container->call(Array)
#15 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1040): Illuminate/Foundation/Application->bootProvider(Object(Laravel/Sanctum/SanctumServiceProvider))
#16 [internal function]: Illuminate/Foundation/Application->Illuminate/Foundation/{closure}(Object(Laravel/Sanctum/SanctumServiceProvider), 5)
#17 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1039): array_walk(Array, Object(Closure))
#18 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate/Foundation/Application->boot()
#19 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(286): Illuminate/Foundation/Bootstrap/BootProviders->bootstrap(Object(Illuminate/Foundation/Application))
#20 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(447): Illuminate/Foundation/Application->bootstrapWith(Array)
#21 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(199): Illuminate/Foundation/Console/Kernel->bootstrap()
#22 E:/laragon6/www/azan_pos_v2/artisan(35): Illuminate/Foundation/Console/Kernel->handle(Object(Symfony/Component/Console/Input/ArgvInput), Object(Symfony/Component/Console/Output/ConsoleOutput))
#23 {main}
"} 
[2026-02-21 10:36:05] local.ERROR: Target class [files] does not exist. {"exception":"[object] (Illuminate\\Contracts\\Container\\BindingResolutionException(code: 0): Target class [files] does not exist. at E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php:914)
[stacktrace]
#0 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate/Container/Container->build('files')
#1 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(986): Illuminate/Container/Container->resolve('files', Array, true)
#2 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate/Foundation/Application->resolve('files', Array)
#3 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(971): Illuminate/Container/Container->make('files', Array)
#4 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(1454): Illuminate/Foundation/Application->make('files')
#5 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1176): Illuminate/Container/Container->offsetGet('files')
#6 E:/laragon6/www/azan_pos_v2/vendor/laravel/sanctum/src/SanctumServiceProvider.php(82): Illuminate/Foundation/Application->routesAreCached()
#7 E:/laragon6/www/azan_pos_v2/vendor/laravel/sanctum/src/SanctumServiceProvider.php(58): Laravel/Sanctum/SanctumServiceProvider->defineRoutes()
#8 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Laravel/Sanctum/SanctumServiceProvider->boot()
#9 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate/Container/BoundMethod::Illuminate/Container/{closure}()
#10 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate/Container/Util::unwrapIfClosure(Object(Closure))
#11 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate/Container/BoundMethod::callBoundMethod(Object(Illuminate/Foundation/Application), Array, Object(Closure))
#12 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate/Container/BoundMethod::call(Object(Illuminate/Foundation/Application), Array, Array, NULL)
#13 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1059): Illuminate/Container/Container->call(Array)
#14 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1040): Illuminate/Foundation/Application->bootProvider(Object(Laravel/Sanctum/SanctumServiceProvider))
#15 [internal function]: Illuminate/Foundation/Application->Illuminate/Foundation/{closure}(Object(Laravel/Sanctum/SanctumServiceProvider), 5)
#16 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1039): array_walk(Array, Object(Closure))
#17 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate/Foundation/Application->boot()
#18 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(286): Illuminate/Foundation/Bootstrap/BootProviders->bootstrap(Object(Illuminate/Foundation/Application))
#19 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(447): Illuminate/Foundation/Application->bootstrapWith(Array)
#20 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(199): Illuminate/Foundation/Console/Kernel->bootstrap()
#21 E:/laragon6/www/azan_pos_v2/artisan(35): Illuminate/Foundation/Console/Kernel->handle(Object(Symfony/Component/Console/Input/ArgvInput), Object(Symfony/Component/Console/Output/ConsoleOutput))
#22 {main}

[previous exception] [object] (ReflectionException(code: -1): Class \"files\" does not exist at E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php:912)
[stacktrace]
#0 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(912): ReflectionClass->__construct('files')
#1 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate/Container/Container->build('files')
#2 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(986): Illuminate/Container/Container->resolve('files', Array, true)
#3 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate/Foundation/Application->resolve('files', Array)
#4 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(971): Illuminate/Container/Container->make('files', Array)
#5 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(1454): Illuminate/Foundation/Application->make('files')
#6 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1176): Illuminate/Container/Container->offsetGet('files')
#7 E:/laragon6/www/azan_pos_v2/vendor/laravel/sanctum/src/SanctumServiceProvider.php(82): Illuminate/Foundation/Application->routesAreCached()
#8 E:/laragon6/www/azan_pos_v2/vendor/laravel/sanctum/src/SanctumServiceProvider.php(58): Laravel/Sanctum/SanctumServiceProvider->defineRoutes()
#9 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Laravel/Sanctum/SanctumServiceProvider->boot()
#10 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate/Container/BoundMethod::Illuminate/Container/{closure}()
#11 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate/Container/Util::unwrapIfClosure(Object(Closure))
#12 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate/Container/BoundMethod::callBoundMethod(Object(Illuminate/Foundation/Application), Array, Object(Closure))
#13 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate/Container/BoundMethod::call(Object(Illuminate/Foundation/Application), Array, Array, NULL)
#14 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1059): Illuminate/Container/Container->call(Array)
#15 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1040): Illuminate/Foundation/Application->bootProvider(Object(Laravel/Sanctum/SanctumServiceProvider))
#16 [internal function]: Illuminate/Foundation/Application->Illuminate/Foundation/{closure}(Object(Laravel/Sanctum/SanctumServiceProvider), 5)
#17 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1039): array_walk(Array, Object(Closure))
#18 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate/Foundation/Application->boot()
#19 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(286): Illuminate/Foundation/Bootstrap/BootProviders->bootstrap(Object(Illuminate/Foundation/Application))
#20 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(447): Illuminate/Foundation/Application->bootstrapWith(Array)
#21 E:/laragon6/www/azan_pos_v2/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(199): Illuminate/Foundation/Console/Kernel->bootstrap()
#22 E:/laragon6/www/azan_pos_v2/artisan(35): Illuminate/Foundation/Console/Kernel->handle(Object(Symfony/Component/Console/Input/ArgvInput), Object(Symfony/Component/Console/Output/ConsoleOutput))
#23 {main}
"} 
[2026-02-21 10:42:20] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"127.0.0.1"} 
[2026-02-21 11:12:05] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"127.0.0.1"} 
[2026-02-23 06:12:26] local.INFO: Login attempt {"email":"mr@pos.com","ip":"182.176.113.26"} 
[2026-02-23 06:12:44] local.INFO: Login attempt {"email":"mr@pos.com","ip":"182.176.113.26"} 
[2026-02-23 06:23:53] local.INFO: Login attempt {"email":"cash@pos.com","ip":"182.176.113.26"} 
[2026-02-23 06:38:36] local.INFO: Login attempt {"email":"mr@pos.com","ip":"182.176.113.26"} 
[2026-02-23 07:28:59] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"182.176.113.26"} 
[2026-02-23 07:29:13] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"182.176.113.26"} 
[2026-02-23 07:41:29] local.INFO: Login attempt {"email":"mr@pos.com","ip":"182.176.113.26"} 
[2026-02-23 07:46:18] local.INFO: Login attempt {"email":"a@b.com","ip":"182.176.113.26"} 
[2026-02-23 07:46:46] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"182.176.113.26"} 
[2026-02-23 07:50:54] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"182.176.113.26"} 
[2026-02-23 07:51:27] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"182.176.113.26"} 
[2026-02-23 07:52:11] local.INFO: Login attempt {"email":"cash@pos.com","ip":"182.176.113.26"} 
[2026-02-23 07:53:45] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"182.176.113.26"} 
[2026-02-23 07:55:30] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"182.176.113.26"} 
[2026-02-23 07:57:41] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"182.176.113.26"} 
[2026-02-23 08:00:08] local.ERROR: Target class [App\Http\Kernel] does not exist. {"exception":"[object] (Illuminate\\Contracts\\Container\\BindingResolutionException(code: 0): Target class [App\\Http\\Kernel] does not exist. at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php:914)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\\Container\\Container->build('App\\\\Http\\\\Kernel')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(986): Illuminate\\Container\\Container->resolve('App\\\\Http\\\\Kernel', Array, false)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(296): Illuminate\\Foundation\\Application->resolve('App\\\\Http\\\\Kernel', Array, false)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(908): Illuminate\\Container\\Container->Illuminate\\Container\\{closure}(Object(Illuminate\\Foundation\\Application), Array)
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\\Container\\Container->build(Object(Closure))
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(986): Illuminate\\Container\\Container->resolve('Illuminate\\\\Cont...', Array, true)
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate\\Foundation\\Application->resolve('Illuminate\\\\Cont...', Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(971): Illuminate\\Container\\Container->make('Illuminate\\\\Cont...', Array)
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/SanctumServiceProvider.php(133): Illuminate\\Foundation\\Application->make('Illuminate\\\\Cont...')
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/SanctumServiceProvider.php(60): Laravel\\Sanctum\\SanctumServiceProvider->configureMiddleware()
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Laravel\\Sanctum\\SanctumServiceProvider->boot()
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1059): Illuminate\\Container\\Container->call(Array)
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1040): Illuminate\\Foundation\\Application->bootProvider(Object(Laravel\\Sanctum\\SanctumServiceProvider))
#17 [internal function]: Illuminate\\Foundation\\Application->Illuminate\\Foundation\\{closure}(Object(Laravel\\Sanctum\\SanctumServiceProvider), 17)
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1039): array_walk(Array, Object(Closure))
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate\\Foundation\\Application->boot()
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(286): Illuminate\\Foundation\\Bootstrap\\BootProviders->bootstrap(Object(Illuminate\\Foundation\\Application))
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(447): Illuminate\\Foundation\\Application->bootstrapWith(Array)
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(199): Illuminate\\Foundation\\Console\\Kernel->bootstrap()
#23 /home/pandamartsco/public_html/laravel_admin/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#24 {main}

[previous exception] [object] (ReflectionException(code: -1): Class \"App\\Http\\Kernel\" does not exist at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php:912)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(912): ReflectionClass->__construct('App\\\\Http\\\\Kernel')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\\Container\\Container->build('App\\\\Http\\\\Kernel')
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(986): Illuminate\\Container\\Container->resolve('App\\\\Http\\\\Kernel', Array, false)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(296): Illuminate\\Foundation\\Application->resolve('App\\\\Http\\\\Kernel', Array, false)
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(908): Illuminate\\Container\\Container->Illuminate\\Container\\{closure}(Object(Illuminate\\Foundation\\Application), Array)
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\\Container\\Container->build(Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(986): Illuminate\\Container\\Container->resolve('Illuminate\\\\Cont...', Array, true)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate\\Foundation\\Application->resolve('Illuminate\\\\Cont...', Array)
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(971): Illuminate\\Container\\Container->make('Illuminate\\\\Cont...', Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/SanctumServiceProvider.php(133): Illuminate\\Foundation\\Application->make('Illuminate\\\\Cont...')
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/SanctumServiceProvider.php(60): Laravel\\Sanctum\\SanctumServiceProvider->configureMiddleware()
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Laravel\\Sanctum\\SanctumServiceProvider->boot()
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1059): Illuminate\\Container\\Container->call(Array)
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1040): Illuminate\\Foundation\\Application->bootProvider(Object(Laravel\\Sanctum\\SanctumServiceProvider))
#18 [internal function]: Illuminate\\Foundation\\Application->Illuminate\\Foundation\\{closure}(Object(Laravel\\Sanctum\\SanctumServiceProvider), 17)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1039): array_walk(Array, Object(Closure))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate\\Foundation\\Application->boot()
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(286): Illuminate\\Foundation\\Bootstrap\\BootProviders->bootstrap(Object(Illuminate\\Foundation\\Application))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(447): Illuminate\\Foundation\\Application->bootstrapWith(Array)
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(199): Illuminate\\Foundation\\Console\\Kernel->bootstrap()
#24 /home/pandamartsco/public_html/laravel_admin/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#25 {main}
"} 
[2026-02-23 08:00:47] local.ERROR: Target class [App\Http\Kernel] does not exist. {"exception":"[object] (Illuminate\\Contracts\\Container\\BindingResolutionException(code: 0): Target class [App\\Http\\Kernel] does not exist. at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php:914)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\\Container\\Container->build('App\\\\Http\\\\Kernel')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(986): Illuminate\\Container\\Container->resolve('App\\\\Http\\\\Kernel', Array, false)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(296): Illuminate\\Foundation\\Application->resolve('App\\\\Http\\\\Kernel', Array, false)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(908): Illuminate\\Container\\Container->Illuminate\\Container\\{closure}(Object(Illuminate\\Foundation\\Application), Array)
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\\Container\\Container->build(Object(Closure))
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(986): Illuminate\\Container\\Container->resolve('Illuminate\\\\Cont...', Array, true)
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate\\Foundation\\Application->resolve('Illuminate\\\\Cont...', Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(971): Illuminate\\Container\\Container->make('Illuminate\\\\Cont...', Array)
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/SanctumServiceProvider.php(133): Illuminate\\Foundation\\Application->make('Illuminate\\\\Cont...')
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/SanctumServiceProvider.php(60): Laravel\\Sanctum\\SanctumServiceProvider->configureMiddleware()
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Laravel\\Sanctum\\SanctumServiceProvider->boot()
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1059): Illuminate\\Container\\Container->call(Array)
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1040): Illuminate\\Foundation\\Application->bootProvider(Object(Laravel\\Sanctum\\SanctumServiceProvider))
#17 [internal function]: Illuminate\\Foundation\\Application->Illuminate\\Foundation\\{closure}(Object(Laravel\\Sanctum\\SanctumServiceProvider), 17)
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1039): array_walk(Array, Object(Closure))
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate\\Foundation\\Application->boot()
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(286): Illuminate\\Foundation\\Bootstrap\\BootProviders->bootstrap(Object(Illuminate\\Foundation\\Application))
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(447): Illuminate\\Foundation\\Application->bootstrapWith(Array)
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(199): Illuminate\\Foundation\\Console\\Kernel->bootstrap()
#23 /home/pandamartsco/public_html/laravel_admin/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#24 {main}

[previous exception] [object] (ReflectionException(code: -1): Class \"App\\Http\\Kernel\" does not exist at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php:912)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(912): ReflectionClass->__construct('App\\\\Http\\\\Kernel')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\\Container\\Container->build('App\\\\Http\\\\Kernel')
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(986): Illuminate\\Container\\Container->resolve('App\\\\Http\\\\Kernel', Array, false)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(296): Illuminate\\Foundation\\Application->resolve('App\\\\Http\\\\Kernel', Array, false)
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(908): Illuminate\\Container\\Container->Illuminate\\Container\\{closure}(Object(Illuminate\\Foundation\\Application), Array)
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\\Container\\Container->build(Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(986): Illuminate\\Container\\Container->resolve('Illuminate\\\\Cont...', Array, true)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate\\Foundation\\Application->resolve('Illuminate\\\\Cont...', Array)
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(971): Illuminate\\Container\\Container->make('Illuminate\\\\Cont...', Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/SanctumServiceProvider.php(133): Illuminate\\Foundation\\Application->make('Illuminate\\\\Cont...')
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/SanctumServiceProvider.php(60): Laravel\\Sanctum\\SanctumServiceProvider->configureMiddleware()
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Laravel\\Sanctum\\SanctumServiceProvider->boot()
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1059): Illuminate\\Container\\Container->call(Array)
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1040): Illuminate\\Foundation\\Application->bootProvider(Object(Laravel\\Sanctum\\SanctumServiceProvider))
#18 [internal function]: Illuminate\\Foundation\\Application->Illuminate\\Foundation\\{closure}(Object(Laravel\\Sanctum\\SanctumServiceProvider), 17)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1039): array_walk(Array, Object(Closure))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate\\Foundation\\Application->boot()
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(286): Illuminate\\Foundation\\Bootstrap\\BootProviders->bootstrap(Object(Illuminate\\Foundation\\Application))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(447): Illuminate\\Foundation\\Application->bootstrapWith(Array)
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(199): Illuminate\\Foundation\\Console\\Kernel->bootstrap()
#24 /home/pandamartsco/public_html/laravel_admin/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#25 {main}
"} 
[2026-02-23 08:01:43] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"182.176.113.26"} 
[2026-02-23 08:06:24] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"182.176.113.26"} 
[2026-02-23 08:11:53] local.INFO: Login attempt {"email":"cash@pos.com","ip":"182.176.113.26"} 
[2026-02-23 09:52:03] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"182.176.113.26"} 
[2026-02-23 10:02:57] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"182.176.113.26"} 
[2026-02-23 10:21:39] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-22T22:30:47.771Z","date_to":"2026-02-23T10:30:47.771Z","per_page":"100"} 
[2026-02-23 10:21:39] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-220226-022","AZS-220226-022","AZS-220226-021","AZS-220226-020","AZS-220226-020","AZS-220226-020","AZS-220226-020","AZS-220226-019","AZS-220226-018","AZS-220226-018","AZS-220226-018"],"order_statuses":["paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed"],"deleted_count":6,"paid_count":5,"unpaid_count":0,"unique_order_numbers":5} 
[2026-02-23 10:21:39] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-22T22:30:47.771Z","date_to":"2026-02-23T10:30:47.771Z","per_page":"100"} 
[2026-02-23 10:21:39] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-220226-022","AZS-220226-022","AZS-220226-021","AZS-220226-020","AZS-220226-020","AZS-220226-020","AZS-220226-020","AZS-220226-019","AZS-220226-018","AZS-220226-018","AZS-220226-018"],"order_statuses":["paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed"],"deleted_count":6,"paid_count":5,"unpaid_count":0,"unique_order_numbers":5} 
[2026-02-23 10:21:39] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-22T22:30:47.825Z","date_to":"2026-02-23T10:30:47.825Z","per_page":"100"} 
[2026-02-23 10:21:39] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-220226-022","AZS-220226-022","AZS-220226-021","AZS-220226-020","AZS-220226-020","AZS-220226-020","AZS-220226-020","AZS-220226-019","AZS-220226-018","AZS-220226-018","AZS-220226-018"],"order_statuses":["paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed"],"deleted_count":6,"paid_count":5,"unpaid_count":0,"unique_order_numbers":5} 
[2026-02-23 12:20:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-23T00:20:36.043Z","date_to":"2026-02-23T12:20:36.043Z","per_page":"100"} 
[2026-02-23 12:20:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-02-23 12:20:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-23T00:20:36.076Z","date_to":"2026-02-23T12:20:36.076Z","per_page":"100"} 
[2026-02-23 12:20:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-02-23 12:20:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-23T00:20:36.043Z","date_to":"2026-02-23T12:20:36.043Z","per_page":"100"} 
[2026-02-23 12:20:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-02-23 12:49:05] local.INFO: Login attempt {"email":"bmadmin@pos.com","ip":"182.185.181.32"} 
[2026-02-23 14:02:33] local.INFO: Login attempt {"email":"bmadmin@pos.com","ip":"182.185.181.32"} 
[2026-02-23 14:43:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":4817,"user_id":8,"user_role":"branch_manager","request_items":"yes","request_items_raw":[{"menu_item_id":287,"quantity":1,"price":30,"discount_percent":0,"notes":null,"id":23796},{"menu_item_id":317,"quantity":1,"price":30,"discount_percent":0,"notes":null,"id":23797},{"menu_item_id":300,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":23798}],"validated_items":[{"id":23796,"menu_item_id":287,"quantity":1,"price":30,"discount_percent":0,"notes":null},{"id":23797,"menu_item_id":317,"quantity":1,"price":30,"discount_percent":0,"notes":null},{"id":23798,"menu_item_id":300,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-02-23 14:43:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4817,"items_count":3} 
[2026-02-23 14:43:18] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":23796,"menu_item_id":287,"quantity":1},{"id":23797,"menu_item_id":317,"quantity":1},{"id":23798,"menu_item_id":300,"quantity":1}]} 
[2026-02-23 14:43:18] local.INFO: PosOrderController::update - Item changes check {"order_id":4817,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["287|1|","317|1|","300|1|"],"new_items_map_keys":["287|1|","317|1|","300|1|"]} 
[2026-02-23 14:43:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4817,"order_number":"BISM2-230226-002"} 
[2026-02-23 14:43:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4817,"order_number":"BISM2-230226-002","user_id":8,"user_role":"branch_manager","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests"],"timestamp":"2026-02-23 14:43:18"} 
[2026-02-23 14:43:35] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4817,"order_number":"BISM2-230226-002","user_id":8,"user_role":"branch_manager","detected_status":"paid","incoming_payment_amount":130,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-23 14:43:35"} 
[2026-02-23 14:43:35] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4817,"order_number":"BISM2-230226-002","user_id":8,"user_role":"branch_manager","incoming_is_paid":true,"incoming_payment_amount":130,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-23 14:43:35"} 
[2026-02-23 14:43:35] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4817,"order_number":"BISM2-230226-002","user_id":8,"user_role":"branch_manager","normalized_payment_amount":130,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-23 14:43:35"} 
[2026-02-23 14:43:35] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4817,"order_number":"BISM2-230226-002","user_id":8,"user_role":"branch_manager","normalized_payment_amount":130,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-23 14:43:35"} 
[2026-02-23 14:43:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":4817,"user_id":8,"user_role":"branch_manager","request_items":"yes","request_items_raw":[{"menu_item_id":287,"quantity":1,"price":30,"discount_percent":0,"notes":null,"id":23796},{"menu_item_id":317,"quantity":1,"price":30,"discount_percent":0,"notes":null,"id":23797},{"menu_item_id":300,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":23798}],"validated_items":[{"id":23796,"menu_item_id":287,"quantity":1,"price":30,"discount_percent":0,"notes":null},{"id":23797,"menu_item_id":317,"quantity":1,"price":30,"discount_percent":0,"notes":null},{"id":23798,"menu_item_id":300,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-02-23 14:43:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4817,"items_count":3} 
[2026-02-23 14:43:35] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":23796,"menu_item_id":287,"quantity":1},{"id":23797,"menu_item_id":317,"quantity":1},{"id":23798,"menu_item_id":300,"quantity":1}]} 
[2026-02-23 14:43:35] local.INFO: PosOrderController::update - Item changes check {"order_id":4817,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["287|1|","317|1|","300|1|"],"new_items_map_keys":["287|1|","317|1|","300|1|"]} 
[2026-02-23 14:43:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4817,"order_number":"BISM2-230226-002"} 
[2026-02-23 14:43:35] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4817,"order_number":"BISM2-230226-002","user_id":8,"user_role":"branch_manager","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":130,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-23 14:43:35","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-23 14:43:35"} 
[2026-02-23 14:43:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4817,"order_number":"BISM2-230226-002","user_id":8,"user_role":"branch_manager","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-23 14:43:35"} 
[2026-02-23 14:43:35] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4817,"order_number":"BISM2-230226-002","user_id":8,"user_role":"branch_manager","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"130.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-23 14:43:35","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":130,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"130.00","database_verification_match":true,"timestamp":"2026-02-23 14:43:35"} 
[2026-02-23 16:12:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":4828,"user_id":8,"user_role":"branch_manager","request_items":"yes","request_items_raw":[{"menu_item_id":213,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":23845},{"menu_item_id":281,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":23846},{"menu_item_id":283,"quantity":1,"price":60,"discount_percent":0,"notes":null,"id":23847},{"menu_item_id":203,"quantity":1,"price":60,"discount_percent":0,"notes":null,"id":23848}],"validated_items":[{"id":23845,"menu_item_id":213,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":23846,"menu_item_id":281,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":23847,"menu_item_id":283,"quantity":1,"price":60,"discount_percent":0,"notes":null},{"id":23848,"menu_item_id":203,"quantity":1,"price":60,"discount_percent":0,"notes":null}]} 
[2026-02-23 16:12:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4828,"items_count":4} 
[2026-02-23 16:12:11] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":23845,"menu_item_id":213,"quantity":1},{"id":23846,"menu_item_id":281,"quantity":1},{"id":23847,"menu_item_id":283,"quantity":1},{"id":23848,"menu_item_id":203,"quantity":1}]} 
[2026-02-23 16:12:11] local.INFO: PosOrderController::update - Item changes check {"order_id":4828,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["213|1|","281|1|","283|1|","203|1|"],"new_items_map_keys":["213|1|","281|1|","283|1|","203|1|"]} 
[2026-02-23 16:12:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4828,"order_number":"BISM2-230226-003"} 
[2026-02-23 16:12:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4828,"order_number":"BISM2-230226-003","user_id":8,"user_role":"branch_manager","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests"],"timestamp":"2026-02-23 16:12:11"} 
[2026-02-23 16:12:24] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4828,"order_number":"BISM2-230226-003","user_id":8,"user_role":"branch_manager","detected_status":"paid","incoming_payment_amount":260,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-23 16:12:24"} 
[2026-02-23 16:12:24] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4828,"order_number":"BISM2-230226-003","user_id":8,"user_role":"branch_manager","incoming_is_paid":true,"incoming_payment_amount":260,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-23 16:12:24"} 
[2026-02-23 16:12:24] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4828,"order_number":"BISM2-230226-003","user_id":8,"user_role":"branch_manager","normalized_payment_amount":260,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-23 16:12:24"} 
[2026-02-23 16:12:24] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4828,"order_number":"BISM2-230226-003","user_id":8,"user_role":"branch_manager","normalized_payment_amount":260,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-23 16:12:24"} 
[2026-02-23 16:12:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":4828,"user_id":8,"user_role":"branch_manager","request_items":"yes","request_items_raw":[{"menu_item_id":213,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":23845},{"menu_item_id":281,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":23846},{"menu_item_id":283,"quantity":1,"price":60,"discount_percent":0,"notes":null,"id":23847},{"menu_item_id":203,"quantity":1,"price":60,"discount_percent":0,"notes":null,"id":23848}],"validated_items":[{"id":23845,"menu_item_id":213,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":23846,"menu_item_id":281,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":23847,"menu_item_id":283,"quantity":1,"price":60,"discount_percent":0,"notes":null},{"id":23848,"menu_item_id":203,"quantity":1,"price":60,"discount_percent":0,"notes":null}]} 
[2026-02-23 16:12:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4828,"items_count":4} 
[2026-02-23 16:12:24] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":23845,"menu_item_id":213,"quantity":1},{"id":23846,"menu_item_id":281,"quantity":1},{"id":23847,"menu_item_id":283,"quantity":1},{"id":23848,"menu_item_id":203,"quantity":1}]} 
[2026-02-23 16:12:24] local.INFO: PosOrderController::update - Item changes check {"order_id":4828,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["213|1|","281|1|","283|1|","203|1|"],"new_items_map_keys":["213|1|","281|1|","283|1|","203|1|"]} 
[2026-02-23 16:12:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4828,"order_number":"BISM2-230226-003"} 
[2026-02-23 16:12:24] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4828,"order_number":"BISM2-230226-003","user_id":8,"user_role":"branch_manager","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":260,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-23 16:12:24","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-23 16:12:24"} 
[2026-02-23 16:12:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4828,"order_number":"BISM2-230226-003","user_id":8,"user_role":"branch_manager","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-23 16:12:24"} 
[2026-02-23 16:12:24] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4828,"order_number":"BISM2-230226-003","user_id":8,"user_role":"branch_manager","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"260.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-23 16:12:24","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":260,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"260.00","database_verification_match":true,"timestamp":"2026-02-23 16:12:24"} 
[2026-02-23 16:12:59] local.INFO: Orders query for branch user {"user_id":8,"user_role":"branch_manager","branch_id":2,"request_branch_id":"2","date_from":"2026-02-23T04:22:08.421Z","date_to":"2026-02-23T16:22:08.421Z","per_page":"100"} 
[2026-02-23 16:12:59] local.INFO: Orders query results {"user_id":8,"user_role":"branch_manager","user_branch_id":2,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[2],"order_numbers":["BISM2-230226-003","BISM2-230226-002","BISM2-230226-001"],"order_statuses":["paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":0,"unique_order_numbers":3} 
[2026-02-23 16:12:59] local.INFO: Orders query for branch user {"user_id":8,"user_role":"branch_manager","branch_id":2,"request_branch_id":"2","date_from":"2026-02-23T04:22:08.421Z","date_to":"2026-02-23T16:22:08.421Z","per_page":"100"} 
[2026-02-23 16:12:59] local.INFO: Orders query results {"user_id":8,"user_role":"branch_manager","user_branch_id":2,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[2],"order_numbers":["BISM2-230226-003","BISM2-230226-002","BISM2-230226-001"],"order_statuses":["paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":0,"unique_order_numbers":3} 
[2026-02-23 16:13:00] local.INFO: Orders query for branch user {"user_id":8,"user_role":"branch_manager","branch_id":2,"request_branch_id":"2","date_from":"2026-02-23T04:22:08.784Z","date_to":"2026-02-23T16:22:08.784Z","per_page":"100"} 
[2026-02-23 16:13:00] local.INFO: Orders query results {"user_id":8,"user_role":"branch_manager","user_branch_id":2,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[2],"order_numbers":["BISM2-230226-003","BISM2-230226-002","BISM2-230226-001"],"order_statuses":["paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":0,"unique_order_numbers":3} 
[2026-02-23 16:18:05] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 2 and `status` = active) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 2 and `status` = active) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(375): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#52 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:423)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): PDO->prepare('select `id`, `n...')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select `id`, `n...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(375): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 {main}
"} 
[2026-02-24 09:21:05] local.INFO: Login attempt {"email":"bmadmin@pos.com","ip":"182.176.113.26"} 
[2026-02-24 09:21:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":4866,"user_id":8,"user_role":"branch_manager","request_items":"yes","request_items_raw":[{"menu_item_id":287,"quantity":1,"price":30,"discount_percent":0,"notes":null,"id":24006},{"menu_item_id":300,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24007},{"menu_item_id":283,"quantity":1,"price":60,"discount_percent":0,"notes":null,"id":24008}],"validated_items":[{"id":24006,"menu_item_id":287,"quantity":1,"price":30,"discount_percent":0,"notes":null},{"id":24007,"menu_item_id":300,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":24008,"menu_item_id":283,"quantity":1,"price":60,"discount_percent":0,"notes":null}]} 
[2026-02-24 09:21:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4866,"items_count":3} 
[2026-02-24 09:21:51] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24006,"menu_item_id":287,"quantity":1},{"id":24007,"menu_item_id":300,"quantity":1},{"id":24008,"menu_item_id":283,"quantity":1}]} 
[2026-02-24 09:21:51] local.INFO: PosOrderController::update - Item changes check {"order_id":4866,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["287|1|","300|1|","283|1|"],"new_items_map_keys":["287|1|","300|1|","283|1|"]} 
[2026-02-24 09:21:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4866,"order_number":"BISM2-240226-001"} 
[2026-02-24 09:21:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4866,"order_number":"BISM2-240226-001","user_id":8,"user_role":"branch_manager","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests"],"timestamp":"2026-02-24 09:21:51"} 
[2026-02-24 09:25:14] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4866,"order_number":"BISM2-240226-001","user_id":8,"user_role":"branch_manager","detected_status":"paid","incoming_payment_amount":160,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 09:25:14"} 
[2026-02-24 09:25:14] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4866,"order_number":"BISM2-240226-001","user_id":8,"user_role":"branch_manager","incoming_is_paid":true,"incoming_payment_amount":160,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 09:25:14"} 
[2026-02-24 09:25:14] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4866,"order_number":"BISM2-240226-001","user_id":8,"user_role":"branch_manager","normalized_payment_amount":160,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 09:25:14"} 
[2026-02-24 09:25:14] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4866,"order_number":"BISM2-240226-001","user_id":8,"user_role":"branch_manager","normalized_payment_amount":160,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 09:25:14"} 
[2026-02-24 09:25:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":4866,"user_id":8,"user_role":"branch_manager","request_items":"yes","request_items_raw":[{"menu_item_id":287,"quantity":1,"price":30,"discount_percent":0,"notes":null,"id":24006},{"menu_item_id":300,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24007},{"menu_item_id":283,"quantity":1,"price":60,"discount_percent":0,"notes":null,"id":24008}],"validated_items":[{"id":24006,"menu_item_id":287,"quantity":1,"price":30,"discount_percent":0,"notes":null},{"id":24007,"menu_item_id":300,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":24008,"menu_item_id":283,"quantity":1,"price":60,"discount_percent":0,"notes":null}]} 
[2026-02-24 09:25:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4866,"items_count":3} 
[2026-02-24 09:25:14] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24006,"menu_item_id":287,"quantity":1},{"id":24007,"menu_item_id":300,"quantity":1},{"id":24008,"menu_item_id":283,"quantity":1}]} 
[2026-02-24 09:25:14] local.INFO: PosOrderController::update - Item changes check {"order_id":4866,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["287|1|","300|1|","283|1|"],"new_items_map_keys":["287|1|","300|1|","283|1|"]} 
[2026-02-24 09:25:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4866,"order_number":"BISM2-240226-001"} 
[2026-02-24 09:25:14] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4866,"order_number":"BISM2-240226-001","user_id":8,"user_role":"branch_manager","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":160,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-24 09:25:14","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 09:25:14"} 
[2026-02-24 09:25:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4866,"order_number":"BISM2-240226-001","user_id":8,"user_role":"branch_manager","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 09:25:14"} 
[2026-02-24 09:25:14] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4866,"order_number":"BISM2-240226-001","user_id":8,"user_role":"branch_manager","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"160.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-24 09:25:14","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":160,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"160.00","database_verification_match":true,"timestamp":"2026-02-24 09:25:14"} 
[2026-02-24 09:30:18] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4868,"order_number":"BISM2-240226-003","user_id":8,"user_role":"branch_manager","detected_status":"paid","incoming_payment_amount":220,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 09:30:18"} 
[2026-02-24 09:30:18] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4868,"order_number":"BISM2-240226-003","user_id":8,"user_role":"branch_manager","incoming_is_paid":true,"incoming_payment_amount":220,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 09:30:18"} 
[2026-02-24 09:30:18] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4868,"order_number":"BISM2-240226-003","user_id":8,"user_role":"branch_manager","normalized_payment_amount":220,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 09:30:18"} 
[2026-02-24 09:30:18] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4868,"order_number":"BISM2-240226-003","user_id":8,"user_role":"branch_manager","normalized_payment_amount":220,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 09:30:18"} 
[2026-02-24 09:30:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":4868,"user_id":8,"user_role":"branch_manager","request_items":"yes","request_items_raw":[{"menu_item_id":287,"quantity":1,"price":30,"discount_percent":0,"notes":null,"id":24012},{"menu_item_id":203,"quantity":1,"price":60,"discount_percent":0,"notes":null,"id":24013},{"menu_item_id":283,"quantity":1,"price":60,"discount_percent":0,"notes":null,"id":24014},{"menu_item_id":213,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24015}],"validated_items":[{"id":24012,"menu_item_id":287,"quantity":1,"price":30,"discount_percent":0,"notes":null},{"id":24013,"menu_item_id":203,"quantity":1,"price":60,"discount_percent":0,"notes":null},{"id":24014,"menu_item_id":283,"quantity":1,"price":60,"discount_percent":0,"notes":null},{"id":24015,"menu_item_id":213,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-02-24 09:30:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4868,"items_count":4} 
[2026-02-24 09:30:18] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24012,"menu_item_id":287,"quantity":1},{"id":24013,"menu_item_id":203,"quantity":1},{"id":24014,"menu_item_id":283,"quantity":1},{"id":24015,"menu_item_id":213,"quantity":1}]} 
[2026-02-24 09:30:18] local.INFO: PosOrderController::update - Item changes check {"order_id":4868,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["287|1|","203|1|","283|1|","213|1|"],"new_items_map_keys":["287|1|","203|1|","283|1|","213|1|"]} 
[2026-02-24 09:30:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4868,"order_number":"BISM2-240226-003"} 
[2026-02-24 09:30:18] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4868,"order_number":"BISM2-240226-003","user_id":8,"user_role":"branch_manager","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":220,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-24 09:30:18","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 09:30:18"} 
[2026-02-24 09:30:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4868,"order_number":"BISM2-240226-003","user_id":8,"user_role":"branch_manager","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 09:30:18"} 
[2026-02-24 09:30:18] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4868,"order_number":"BISM2-240226-003","user_id":8,"user_role":"branch_manager","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"220.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-24 09:30:18","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":220,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"220.00","database_verification_match":true,"timestamp":"2026-02-24 09:30:18"} 
[2026-02-24 09:31:07] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4867,"order_number":"BISM2-240226-002","user_id":8,"user_role":"branch_manager","detected_status":"paid","incoming_payment_amount":190,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 09:31:07"} 
[2026-02-24 09:31:07] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4867,"order_number":"BISM2-240226-002","user_id":8,"user_role":"branch_manager","incoming_is_paid":true,"incoming_payment_amount":190,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 09:31:07"} 
[2026-02-24 09:31:07] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4867,"order_number":"BISM2-240226-002","user_id":8,"user_role":"branch_manager","normalized_payment_amount":190,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 09:31:07"} 
[2026-02-24 09:31:07] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4867,"order_number":"BISM2-240226-002","user_id":8,"user_role":"branch_manager","normalized_payment_amount":190,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 09:31:07"} 
[2026-02-24 09:31:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":4867,"user_id":8,"user_role":"branch_manager","request_items":"yes","request_items_raw":[{"menu_item_id":281,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24009},{"menu_item_id":283,"quantity":1,"price":60,"discount_percent":0,"notes":null,"id":24010},{"menu_item_id":203,"quantity":1,"price":60,"discount_percent":0,"notes":null,"id":24011}],"validated_items":[{"id":24009,"menu_item_id":281,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":24010,"menu_item_id":283,"quantity":1,"price":60,"discount_percent":0,"notes":null},{"id":24011,"menu_item_id":203,"quantity":1,"price":60,"discount_percent":0,"notes":null}]} 
[2026-02-24 09:31:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4867,"items_count":3} 
[2026-02-24 09:31:07] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24009,"menu_item_id":281,"quantity":1},{"id":24010,"menu_item_id":283,"quantity":1},{"id":24011,"menu_item_id":203,"quantity":1}]} 
[2026-02-24 09:31:07] local.INFO: PosOrderController::update - Item changes check {"order_id":4867,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["281|1|","283|1|","203|1|"],"new_items_map_keys":["281|1|","283|1|","203|1|"]} 
[2026-02-24 09:31:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4867,"order_number":"BISM2-240226-002"} 
[2026-02-24 09:31:07] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4867,"order_number":"BISM2-240226-002","user_id":8,"user_role":"branch_manager","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":190,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-24 09:31:07","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 09:31:07"} 
[2026-02-24 09:31:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4867,"order_number":"BISM2-240226-002","user_id":8,"user_role":"branch_manager","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 09:31:07"} 
[2026-02-24 09:31:07] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4867,"order_number":"BISM2-240226-002","user_id":8,"user_role":"branch_manager","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"190.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-24 09:31:07","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":190,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"190.00","database_verification_match":true,"timestamp":"2026-02-24 09:31:07"} 
[2026-02-24 09:33:59] local.INFO: Login attempt {"email":"inventroy@pos.com","ip":"182.176.113.26"} 
[2026-02-24 09:36:01] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-23T21:36:01.067Z","date_to":"2026-02-24T09:36:01.067Z","per_page":"100"} 
[2026-02-24 09:36:01] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230226-025","AZS-230226-024","AZS-230226-024","AZS-230226-024","AZS-230226-024","AZS-230226-023","AZS-230226-023","AZS-230226-023","AZS-230226-022","AZS-230226-022","AZS-230226-022","AZS-230226-021","AZS-230226-021","AZS-230226-021","AZS-230226-021","AZS-230226-021","AZS-230226-021","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-019","AZS-230226-019","AZS-230226-019","AZS-230226-019"],"order_statuses":["paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":22,"paid_count":7,"unpaid_count":0,"unique_order_numbers":7} 
[2026-02-24 09:36:01] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-23T21:36:01.067Z","date_to":"2026-02-24T09:36:01.067Z","per_page":"100"} 
[2026-02-24 09:36:01] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230226-025","AZS-230226-024","AZS-230226-024","AZS-230226-024","AZS-230226-024","AZS-230226-023","AZS-230226-023","AZS-230226-023","AZS-230226-022","AZS-230226-022","AZS-230226-022","AZS-230226-021","AZS-230226-021","AZS-230226-021","AZS-230226-021","AZS-230226-021","AZS-230226-021","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-019","AZS-230226-019","AZS-230226-019","AZS-230226-019"],"order_statuses":["paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":22,"paid_count":7,"unpaid_count":0,"unique_order_numbers":7} 
[2026-02-24 09:40:43] local.INFO: Login attempt {"email":"inventory@test.com","ip":"182.176.113.26"} 
[2026-02-24 09:51:44] local.INFO: Login attempt {"email":"inventory@pos.com","ip":"182.176.113.26"} 
[2026-02-24 09:52:05] local.INFO: Login attempt {"email":"inventory@pos.com","ip":"182.176.113.26"} 
[2026-02-24 09:52:06] local.INFO: Login attempt {"email":"inventory@pos.com","ip":"182.176.113.26"} 
[2026-02-24 09:52:07] local.INFO: Login attempt {"email":"inventory@pos.com","ip":"182.176.113.26"} 
[2026-02-24 09:52:08] local.INFO: Login attempt {"email":"inventory@pos.com","ip":"182.176.113.26"} 
[2026-02-24 09:52:08] local.INFO: Login attempt {"email":"inventory@pos.com","ip":"182.176.113.26"} 
[2026-02-24 09:52:09] local.INFO: Login attempt {"email":"inventory@pos.com","ip":"182.176.113.26"} 
[2026-02-24 09:52:10] local.INFO: Login attempt {"email":"inventory@pos.com","ip":"182.176.113.26"} 
[2026-02-24 09:52:12] local.INFO: Login attempt {"email":"inventory@pos.com","ip":"182.176.113.26"} 
[2026-02-24 09:52:22] local.INFO: Login attempt {"email":"inventory@pos.com","ip":"182.176.113.26"} 
[2026-02-24 09:52:26] local.INFO: Login attempt {"email":"inventory@pos.com","ip":"182.176.113.26"} 
[2026-02-24 09:52:26] local.INFO: Login attempt {"email":"inventory@pos.com","ip":"182.176.113.26"} 
[2026-02-24 09:52:36] local.INFO: Login attempt {"email":"inventory@pos.com","ip":"182.176.113.26"} 
[2026-02-24 09:52:44] local.INFO: Login attempt {"email":"inventory@test.com","ip":"182.176.113.26"} 
[2026-02-24 09:53:43] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"182.176.113.26"} 
[2026-02-24 09:54:01] local.INFO: Login attempt {"email":"bmcashier@pos.com","ip":"182.176.113.26"} 
[2026-02-24 09:54:18] local.INFO: Login attempt {"email":"bmcashier@pos.com","ip":"182.176.113.26"} 
[2026-02-24 09:54:24] local.INFO: Login attempt {"email":"bmcashier@pos.com","ip":"182.176.113.26"} 
[2026-02-24 09:54:42] local.INFO: Login attempt {"email":"bmadmin@pos.com","ip":"182.176.113.26"} 
[2026-02-24 09:54:54] local.INFO: Login attempt {"email":"bmadmin@pos.com","ip":"182.176.113.26"} 
[2026-02-24 09:55:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":4869,"user_id":8,"user_role":"branch_manager","request_items":"yes","request_items_raw":[{"menu_item_id":281,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":213,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":209,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":342,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":341,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":281,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":213,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":209,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":342,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":341,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 09:55:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4869,"items_count":5} 
[2026-02-24 09:55:24] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[24016,24017,24018,24019,24020],"items":[{"id":null,"menu_item_id":281,"quantity":1},{"id":null,"menu_item_id":213,"quantity":1},{"id":null,"menu_item_id":209,"quantity":1},{"id":null,"menu_item_id":342,"quantity":1},{"id":null,"menu_item_id":341,"quantity":1}]} 
[2026-02-24 09:55:24] local.INFO: PosOrderController::update - Item changes check {"order_id":4869,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["281|1|","213|1|","209|1|","342|1|","341|1|"],"new_items_map_keys":["281|1|","213|1|","209|1|","342|1|","341|1|"]} 
[2026-02-24 09:55:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4869,"order_number":"BISM2-240226-004"} 
[2026-02-24 09:55:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4869,"order_number":"BISM2-240226-004","user_id":8,"user_role":"branch_manager","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-24 09:55:24"} 
[2026-02-24 09:55:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":4869,"user_id":8,"user_role":"branch_manager","request_items":"yes","request_items_raw":[{"menu_item_id":281,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24016},{"menu_item_id":213,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24017},{"menu_item_id":209,"quantity":1,"price":80,"discount_percent":0,"notes":null,"id":24018},{"menu_item_id":342,"quantity":1,"price":100,"discount_percent":0,"notes":null,"id":24019},{"menu_item_id":341,"quantity":1,"price":100,"discount_percent":0,"notes":null,"id":24020}],"validated_items":[{"id":24016,"menu_item_id":281,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":24017,"menu_item_id":213,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":24018,"menu_item_id":209,"quantity":1,"price":80,"discount_percent":0,"notes":null},{"id":24019,"menu_item_id":342,"quantity":1,"price":100,"discount_percent":0,"notes":null},{"id":24020,"menu_item_id":341,"quantity":1,"price":100,"discount_percent":0,"notes":null}]} 
[2026-02-24 09:55:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4869,"items_count":5} 
[2026-02-24 09:55:45] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24016,"menu_item_id":281,"quantity":1},{"id":24017,"menu_item_id":213,"quantity":1},{"id":24018,"menu_item_id":209,"quantity":1},{"id":24019,"menu_item_id":342,"quantity":1},{"id":24020,"menu_item_id":341,"quantity":1}]} 
[2026-02-24 09:55:45] local.INFO: PosOrderController::update - Item changes check {"order_id":4869,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["281|1|","213|1|","209|1|","342|1|","341|1|"],"new_items_map_keys":["281|1|","213|1|","209|1|","342|1|","341|1|"]} 
[2026-02-24 09:55:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4869,"order_number":"BISM2-240226-004"} 
[2026-02-24 09:55:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4869,"order_number":"BISM2-240226-004","user_id":8,"user_role":"branch_manager","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests"],"timestamp":"2026-02-24 09:55:45"} 
[2026-02-24 09:56:02] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4869,"order_number":"BISM2-240226-004","user_id":8,"user_role":"branch_manager","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 09:56:02"} 
[2026-02-24 09:56:02] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4869,"order_number":"BISM2-240226-004","user_id":8,"user_role":"branch_manager","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 09:56:02"} 
[2026-02-24 09:56:02] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4869,"order_number":"BISM2-240226-004","user_id":8,"user_role":"branch_manager","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 09:56:02"} 
[2026-02-24 09:56:02] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4869,"order_number":"BISM2-240226-004","user_id":8,"user_role":"branch_manager","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 09:56:02"} 
[2026-02-24 09:56:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":4869,"user_id":8,"user_role":"branch_manager","request_items":"yes","request_items_raw":[{"menu_item_id":281,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24016},{"menu_item_id":213,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24017},{"menu_item_id":209,"quantity":1,"price":80,"discount_percent":0,"notes":null,"id":24018},{"menu_item_id":342,"quantity":1,"price":100,"discount_percent":0,"notes":null,"id":24019},{"menu_item_id":341,"quantity":1,"price":100,"discount_percent":0,"notes":null,"id":24020}],"validated_items":[{"id":24016,"menu_item_id":281,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":24017,"menu_item_id":213,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":24018,"menu_item_id":209,"quantity":1,"price":80,"discount_percent":0,"notes":null},{"id":24019,"menu_item_id":342,"quantity":1,"price":100,"discount_percent":0,"notes":null},{"id":24020,"menu_item_id":341,"quantity":1,"price":100,"discount_percent":0,"notes":null}]} 
[2026-02-24 09:56:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4869,"items_count":5} 
[2026-02-24 09:56:02] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24016,"menu_item_id":281,"quantity":1},{"id":24017,"menu_item_id":213,"quantity":1},{"id":24018,"menu_item_id":209,"quantity":1},{"id":24019,"menu_item_id":342,"quantity":1},{"id":24020,"menu_item_id":341,"quantity":1}]} 
[2026-02-24 09:56:02] local.INFO: PosOrderController::update - Item changes check {"order_id":4869,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["281|1|","213|1|","209|1|","342|1|","341|1|"],"new_items_map_keys":["281|1|","213|1|","209|1|","342|1|","341|1|"]} 
[2026-02-24 09:56:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4869,"order_number":"BISM2-240226-004"} 
[2026-02-24 09:56:02] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4869,"order_number":"BISM2-240226-004","user_id":8,"user_role":"branch_manager","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-24 09:56:02","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 09:56:02"} 
[2026-02-24 09:56:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4869,"order_number":"BISM2-240226-004","user_id":8,"user_role":"branch_manager","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 09:56:02"} 
[2026-02-24 09:56:02] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4869,"order_number":"BISM2-240226-004","user_id":8,"user_role":"branch_manager","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-24 09:56:02","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-02-24 09:56:02"} 
[2026-02-24 09:59:03] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 2 and `status` = active) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 2 and `status` = active) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(375): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#52 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:423)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): PDO->prepare('select `id`, `n...')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select `id`, `n...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(375): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 {main}
"} 
[2026-02-24 09:59:29] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 2 and `status` = active) {"userId":8,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 2 and `status` = active) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(375): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#52 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:423)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): PDO->prepare('select `id`, `n...')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select `id`, `n...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(375): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 {main}
"} 
[2026-02-24 10:30:33] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"182.176.113.26"} 
[2026-02-24 10:31:20] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-23T22:31:20.054Z","date_to":"2026-02-24T10:31:20.054Z","per_page":"100"} 
[2026-02-24 10:31:20] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230226-025","AZS-230226-024","AZS-230226-024","AZS-230226-024","AZS-230226-024","AZS-230226-023","AZS-230226-023","AZS-230226-023","AZS-230226-022","AZS-230226-022","AZS-230226-022","AZS-230226-021","AZS-230226-021","AZS-230226-021","AZS-230226-021","AZS-230226-021","AZS-230226-021","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020"],"order_statuses":["paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed"],"deleted_count":19,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-02-24 10:31:20] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-23T22:31:20.008Z","date_to":"2026-02-24T10:31:20.008Z","per_page":"100"} 
[2026-02-24 10:31:20] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230226-025","AZS-230226-024","AZS-230226-024","AZS-230226-024","AZS-230226-024","AZS-230226-023","AZS-230226-023","AZS-230226-023","AZS-230226-022","AZS-230226-022","AZS-230226-022","AZS-230226-021","AZS-230226-021","AZS-230226-021","AZS-230226-021","AZS-230226-021","AZS-230226-021","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020"],"order_statuses":["paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed"],"deleted_count":19,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-02-24 10:31:22] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-23T22:31:20.008Z","date_to":"2026-02-24T10:31:20.008Z","per_page":"100"} 
[2026-02-24 10:31:22] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230226-025","AZS-230226-024","AZS-230226-024","AZS-230226-024","AZS-230226-024","AZS-230226-023","AZS-230226-023","AZS-230226-023","AZS-230226-022","AZS-230226-022","AZS-230226-022","AZS-230226-021","AZS-230226-021","AZS-230226-021","AZS-230226-021","AZS-230226-021","AZS-230226-021","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020","AZS-230226-020"],"order_statuses":["paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed"],"deleted_count":19,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-02-24 12:47:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":1,"order_id":4871,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":24024},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":24025},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24024,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":24025,"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 12:47:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4871,"items_count":3} 
[2026-02-24 12:47:10] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":1,"items_to_remove":[24026],"items":[{"id":24024,"menu_item_id":113,"quantity":1},{"id":24025,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-02-24 12:47:10] local.INFO: PosOrderController::update - Item changes check {"order_id":4871,"has_item_changes":true,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["113|1|","52|3|","5|1|"],"new_items_map_keys":["113|1|","52|3|","4|1|"]} 
[2026-02-24 12:47:10] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4871,"order_number":"AZS-240226-002"} 
[2026-02-24 12:47:10] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-002","replaced_order_id":4871} 
[2026-02-24 12:47:10] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4872,"items_count":3,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":52,"quantity":3,"price":"70.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-02-24 12:47:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4872,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4872}} 
[2026-02-24 12:47:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4872,"item_index":0,"menu_item_id":113} 
[2026-02-24 12:47:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4872,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4872}} 
[2026-02-24 12:47:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4872,"item_index":1,"menu_item_id":52} 
[2026-02-24 12:47:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4872,"item_index":2,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4872}} 
[2026-02-24 12:47:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4872,"item_index":2,"menu_item_id":4} 
[2026-02-24 12:47:10] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4871,"new_order_id":4872,"order_number":"AZS-240226-002"} 
[2026-02-24 13:11:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":4874,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":400,"quantity":300,"price":1,"discount_percent":0,"notes":null,"id":24032},{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24033}],"validated_items":[{"id":24032,"menu_item_id":400,"quantity":300,"price":1,"discount_percent":0,"notes":null},{"id":24033,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:11:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4874,"items_count":2} 
[2026-02-24 13:11:22] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24032,"menu_item_id":400,"quantity":300},{"id":24033,"menu_item_id":417,"quantity":1}]} 
[2026-02-24 13:11:22] local.INFO: PosOrderController::update - Item changes check {"order_id":4874,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["400|300|","417|1|"],"new_items_map_keys":["400|300|","417|1|"]} 
[2026-02-24 13:11:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4874,"order_number":"AZS-240226-004"} 
[2026-02-24 13:11:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4874,"order_number":"AZS-240226-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-24 13:11:22"} 
[2026-02-24 13:12:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":4873,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24030},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24031}],"validated_items":[{"id":24030,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24031,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:12:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4873,"items_count":2} 
[2026-02-24 13:12:14] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24030,"menu_item_id":417,"quantity":1},{"id":24031,"menu_item_id":5,"quantity":1}]} 
[2026-02-24 13:12:14] local.INFO: PosOrderController::update - Item changes check {"order_id":4873,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["417|1|","5|1|"],"new_items_map_keys":["417|1|","5|1|"]} 
[2026-02-24 13:12:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4873,"order_number":"AZS-240226-003"} 
[2026-02-24 13:12:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4873,"order_number":"AZS-240226-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-24 13:12:14"} 
[2026-02-24 13:12:53] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4876,"order_number":"AZS-240226-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 13:12:53"} 
[2026-02-24 13:12:53] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4876,"order_number":"AZS-240226-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 13:12:53"} 
[2026-02-24 13:12:53] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4876,"order_number":"AZS-240226-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 13:12:53"} 
[2026-02-24 13:12:53] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4876,"order_number":"AZS-240226-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 13:12:53"} 
[2026-02-24 13:12:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4876,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24035}],"validated_items":[{"id":24035,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:12:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4876,"items_count":1} 
[2026-02-24 13:12:53] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24035,"menu_item_id":417,"quantity":1}]} 
[2026-02-24 13:12:53] local.INFO: PosOrderController::update - Item changes check {"order_id":4876,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-02-24 13:12:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4876,"order_number":"AZS-240226-006"} 
[2026-02-24 13:12:53] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4876,"order_number":"AZS-240226-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-24 13:12:53","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 13:12:53"} 
[2026-02-24 13:12:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4876,"order_number":"AZS-240226-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 13:12:53"} 
[2026-02-24 13:12:53] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4876,"order_number":"AZS-240226-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-24 13:12:53","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-02-24 13:12:53"} 
[2026-02-24 13:13:03] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4874,"order_number":"AZS-240226-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 13:13:03"} 
[2026-02-24 13:13:03] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4874,"order_number":"AZS-240226-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 13:13:03"} 
[2026-02-24 13:13:03] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4874,"order_number":"AZS-240226-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 13:13:03"} 
[2026-02-24 13:13:03] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4874,"order_number":"AZS-240226-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 13:13:03"} 
[2026-02-24 13:13:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":4874,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":400,"quantity":300,"price":1,"discount_percent":0,"notes":null,"id":24032},{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24033}],"validated_items":[{"id":24032,"menu_item_id":400,"quantity":300,"price":1,"discount_percent":0,"notes":null},{"id":24033,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:13:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4874,"items_count":2} 
[2026-02-24 13:13:03] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24032,"menu_item_id":400,"quantity":300},{"id":24033,"menu_item_id":417,"quantity":1}]} 
[2026-02-24 13:13:03] local.INFO: PosOrderController::update - Item changes check {"order_id":4874,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["400|300|","417|1|"],"new_items_map_keys":["400|300|","417|1|"]} 
[2026-02-24 13:13:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4874,"order_number":"AZS-240226-004"} 
[2026-02-24 13:13:03] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4874,"order_number":"AZS-240226-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-24 13:13:03","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 13:13:03"} 
[2026-02-24 13:13:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4874,"order_number":"AZS-240226-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 13:13:03"} 
[2026-02-24 13:13:03] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4874,"order_number":"AZS-240226-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-24 13:13:03","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-02-24 13:13:03"} 
[2026-02-24 13:13:59] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4873,"order_number":"AZS-240226-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 13:13:59"} 
[2026-02-24 13:13:59] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4873,"order_number":"AZS-240226-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 13:13:59"} 
[2026-02-24 13:13:59] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4873,"order_number":"AZS-240226-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 13:13:59"} 
[2026-02-24 13:13:59] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4873,"order_number":"AZS-240226-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 13:13:59"} 
[2026-02-24 13:13:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":4873,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24030},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24031}],"validated_items":[{"id":24030,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24031,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:13:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4873,"items_count":2} 
[2026-02-24 13:13:59] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24030,"menu_item_id":417,"quantity":1},{"id":24031,"menu_item_id":5,"quantity":1}]} 
[2026-02-24 13:13:59] local.INFO: PosOrderController::update - Item changes check {"order_id":4873,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["417|1|","5|1|"],"new_items_map_keys":["417|1|","5|1|"]} 
[2026-02-24 13:13:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4873,"order_number":"AZS-240226-003"} 
[2026-02-24 13:13:59] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4873,"order_number":"AZS-240226-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-24 13:13:59","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 13:13:59"} 
[2026-02-24 13:13:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4873,"order_number":"AZS-240226-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 13:13:59"} 
[2026-02-24 13:13:59] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4873,"order_number":"AZS-240226-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-24 13:13:59","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-02-24 13:13:59"} 
[2026-02-24 13:14:39] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4875,"order_number":"AZS-240226-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1580,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 13:14:39"} 
[2026-02-24 13:14:39] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4875,"order_number":"AZS-240226-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1580,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 13:14:39"} 
[2026-02-24 13:14:39] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4875,"order_number":"AZS-240226-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1580,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 13:14:39"} 
[2026-02-24 13:14:39] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4875,"order_number":"AZS-240226-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1580,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 13:14:39"} 
[2026-02-24 13:14:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4875,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null,"id":24034}],"validated_items":[{"id":24034,"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:14:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4875,"items_count":1} 
[2026-02-24 13:14:39] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24034,"menu_item_id":417,"quantity":3}]} 
[2026-02-24 13:14:39] local.INFO: PosOrderController::update - Item changes check {"order_id":4875,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|3|"],"new_items_map_keys":["417|3|"]} 
[2026-02-24 13:14:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4875,"order_number":"AZS-240226-005"} 
[2026-02-24 13:14:39] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4875,"order_number":"AZS-240226-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1580,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-24 13:14:39","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 13:14:39"} 
[2026-02-24 13:14:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4875,"order_number":"AZS-240226-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 13:14:39"} 
[2026-02-24 13:14:39] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4875,"order_number":"AZS-240226-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1580.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-24 13:14:39","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1580,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1580.00","database_verification_match":true,"timestamp":"2026-02-24 13:14:39"} 
[2026-02-24 13:14:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T01:14:57.243Z","date_to":"2026-02-24T13:14:57.243Z","per_page":"100"} 
[2026-02-24 13:14:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-001"],"order_statuses":["pending","paid","paid","paid","paid","pending","changed","pending"],"deleted_count":1,"paid_count":4,"unpaid_count":3,"unique_order_numbers":7} 
[2026-02-24 13:14:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T01:14:57.264Z","date_to":"2026-02-24T13:14:57.264Z","per_page":"100"} 
[2026-02-24 13:14:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-001"],"order_statuses":["pending","paid","paid","paid","paid","pending","changed","pending"],"deleted_count":1,"paid_count":4,"unpaid_count":3,"unique_order_numbers":7} 
[2026-02-24 13:14:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T01:14:57.243Z","date_to":"2026-02-24T13:14:57.243Z","per_page":"100"} 
[2026-02-24 13:14:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-001"],"order_statuses":["pending","paid","paid","paid","paid","pending","changed","pending"],"deleted_count":1,"paid_count":4,"unpaid_count":3,"unique_order_numbers":7} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":4872,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":24027},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":24028},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24027,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":24028,"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4872,"items_count":4} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[24029],"items":[{"id":24027,"menu_item_id":113,"quantity":1},{"id":24028,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - Item changes check {"order_id":4872,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["113|1|","52|3|","4|1|"],"new_items_map_keys":["113|1|","52|3|","2|1|","61|1|"]} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4872,"order_number":"AZS-240226-002"} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-002","replaced_order_id":4872} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4879,"items_count":4,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":52,"quantity":3,"price":"70.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"}]} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4879,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4879}} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4879,"item_index":0,"menu_item_id":113} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4879,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4879}} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4879,"item_index":1,"menu_item_id":52} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4879,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4879}} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4879,"item_index":2,"menu_item_id":2} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4879,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4879}} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4879,"item_index":3,"menu_item_id":61} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4872,"new_order_id":4879,"order_number":"AZS-240226-002"} 
[2026-02-24 13:18:25] local.INFO: RouteServiceProvider: Found direct replacement order {"old_order_id":4872,"new_order_id":4879,"order_number":"AZS-240226-002","method":"PUT","route":"api/orders/4872"} 
[2026-02-24 13:18:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":0,"item_id":24027} 
[2026-02-24 13:18:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":1,"item_id":24028} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":4879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":24027},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":24028},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4879,"items_count":4} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[24029],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - Item changes check {"order_id":4879,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","52|3|","2|1|","61|1|"],"new_items_map_keys":["113|1|","52|3|","2|1|","61|1|"]} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4879,"order_number":"AZS-240226-002"} 
[2026-02-24 13:18:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-24 13:18:25"} 
[2026-02-24 13:18:25] local.INFO: RouteServiceProvider: Found direct replacement order {"old_order_id":4872,"new_order_id":4879,"order_number":"AZS-240226-002","method":"PUT","route":"api/orders/4872"} 
[2026-02-24 13:18:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":0,"item_id":24027} 
[2026-02-24 13:18:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":1,"item_id":24028} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":4879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":24027},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":24028},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4879,"items_count":4} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[24029],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - Item changes check {"order_id":4879,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","52|3|","2|1|","61|1|"],"new_items_map_keys":["113|1|","52|3|","2|1|","61|1|"]} 
[2026-02-24 13:18:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4879,"order_number":"AZS-240226-002"} 
[2026-02-24 13:18:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-24 13:18:25"} 
[2026-02-24 13:18:25] local.INFO: RouteServiceProvider: Found direct replacement order {"old_order_id":4872,"new_order_id":4879,"order_number":"AZS-240226-002","method":"PUT","route":"api/orders/4872"} 
[2026-02-24 13:18:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":0,"item_id":24027} 
[2026-02-24 13:18:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":1,"item_id":24028} 
[2026-02-24 13:18:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":4879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":24027},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":24028},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:18:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4879,"items_count":4} 
[2026-02-24 13:18:26] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[24029],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-02-24 13:18:26] local.INFO: PosOrderController::update - Item changes check {"order_id":4879,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","52|3|","2|1|","61|1|"],"new_items_map_keys":["113|1|","52|3|","2|1|","61|1|"]} 
[2026-02-24 13:18:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4879,"order_number":"AZS-240226-002"} 
[2026-02-24 13:18:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-24 13:18:26"} 
[2026-02-24 13:18:26] local.INFO: RouteServiceProvider: Found direct replacement order {"old_order_id":4872,"new_order_id":4879,"order_number":"AZS-240226-002","method":"PUT","route":"api/orders/4872"} 
[2026-02-24 13:18:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":0,"item_id":24027} 
[2026-02-24 13:18:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":1,"item_id":24028} 
[2026-02-24 13:18:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":4879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":24027},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":24028},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:18:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4879,"items_count":4} 
[2026-02-24 13:18:26] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[24029],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-02-24 13:18:26] local.INFO: PosOrderController::update - Item changes check {"order_id":4879,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","52|3|","2|1|","61|1|"],"new_items_map_keys":["113|1|","52|3|","2|1|","61|1|"]} 
[2026-02-24 13:18:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4879,"order_number":"AZS-240226-002"} 
[2026-02-24 13:18:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-24 13:18:26"} 
[2026-02-24 13:18:26] local.INFO: RouteServiceProvider: Found direct replacement order {"old_order_id":4872,"new_order_id":4879,"order_number":"AZS-240226-002","method":"PUT","route":"api/orders/4872"} 
[2026-02-24 13:18:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":0,"item_id":24027} 
[2026-02-24 13:18:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":1,"item_id":24028} 
[2026-02-24 13:18:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":4879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":24027},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":24028},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:18:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4879,"items_count":4} 
[2026-02-24 13:18:26] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[24029],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-02-24 13:18:26] local.INFO: PosOrderController::update - Item changes check {"order_id":4879,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","52|3|","2|1|","61|1|"],"new_items_map_keys":["113|1|","52|3|","2|1|","61|1|"]} 
[2026-02-24 13:18:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4879,"order_number":"AZS-240226-002"} 
[2026-02-24 13:18:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-24 13:18:26"} 
[2026-02-24 13:18:27] local.INFO: RouteServiceProvider: Found direct replacement order {"old_order_id":4872,"new_order_id":4879,"order_number":"AZS-240226-002","method":"PUT","route":"api/orders/4872"} 
[2026-02-24 13:18:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":0,"item_id":24027} 
[2026-02-24 13:18:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":1,"item_id":24028} 
[2026-02-24 13:18:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":4879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":24027},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":24028},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:18:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4879,"items_count":4} 
[2026-02-24 13:18:27] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[24029],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-02-24 13:18:27] local.INFO: PosOrderController::update - Item changes check {"order_id":4879,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","52|3|","2|1|","61|1|"],"new_items_map_keys":["113|1|","52|3|","2|1|","61|1|"]} 
[2026-02-24 13:18:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4879,"order_number":"AZS-240226-002"} 
[2026-02-24 13:18:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-24 13:18:27"} 
[2026-02-24 13:18:27] local.INFO: RouteServiceProvider: Found direct replacement order {"old_order_id":4872,"new_order_id":4879,"order_number":"AZS-240226-002","method":"PUT","route":"api/orders/4872"} 
[2026-02-24 13:18:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":0,"item_id":24027} 
[2026-02-24 13:18:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":1,"item_id":24028} 
[2026-02-24 13:18:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":4879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":24027},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":24028},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:18:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4879,"items_count":4} 
[2026-02-24 13:18:27] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[24029],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-02-24 13:18:27] local.INFO: PosOrderController::update - Item changes check {"order_id":4879,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","52|3|","2|1|","61|1|"],"new_items_map_keys":["113|1|","52|3|","2|1|","61|1|"]} 
[2026-02-24 13:18:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4879,"order_number":"AZS-240226-002"} 
[2026-02-24 13:18:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-24 13:18:27"} 
[2026-02-24 13:18:27] local.INFO: RouteServiceProvider: Found direct replacement order {"old_order_id":4872,"new_order_id":4879,"order_number":"AZS-240226-002","method":"PUT","route":"api/orders/4872"} 
[2026-02-24 13:18:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":0,"item_id":24027} 
[2026-02-24 13:18:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":1,"item_id":24028} 
[2026-02-24 13:18:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":4879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":24027},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":24028},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:18:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4879,"items_count":4} 
[2026-02-24 13:18:27] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[24029],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-02-24 13:18:27] local.INFO: PosOrderController::update - Item changes check {"order_id":4879,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","52|3|","2|1|","61|1|"],"new_items_map_keys":["113|1|","52|3|","2|1|","61|1|"]} 
[2026-02-24 13:18:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4879,"order_number":"AZS-240226-002"} 
[2026-02-24 13:18:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-24 13:18:27"} 
[2026-02-24 13:18:28] local.INFO: RouteServiceProvider: Found direct replacement order {"old_order_id":4872,"new_order_id":4879,"order_number":"AZS-240226-002","method":"PUT","route":"api/orders/4872"} 
[2026-02-24 13:18:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":0,"item_id":24027} 
[2026-02-24 13:18:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":1,"item_id":24028} 
[2026-02-24 13:18:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":4879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":24027},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":24028},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:18:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4879,"items_count":4} 
[2026-02-24 13:18:28] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[24029],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-02-24 13:18:28] local.INFO: PosOrderController::update - Item changes check {"order_id":4879,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","52|3|","2|1|","61|1|"],"new_items_map_keys":["113|1|","52|3|","2|1|","61|1|"]} 
[2026-02-24 13:18:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4879,"order_number":"AZS-240226-002"} 
[2026-02-24 13:18:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-24 13:18:28"} 
[2026-02-24 13:18:28] local.INFO: RouteServiceProvider: Found direct replacement order {"old_order_id":4872,"new_order_id":4879,"order_number":"AZS-240226-002","method":"PUT","route":"api/orders/4872"} 
[2026-02-24 13:18:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":0,"item_id":24027} 
[2026-02-24 13:18:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":1,"item_id":24028} 
[2026-02-24 13:18:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":4879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":24027},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":24028},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:18:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4879,"items_count":4} 
[2026-02-24 13:18:28] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[24029],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-02-24 13:18:28] local.INFO: PosOrderController::update - Item changes check {"order_id":4879,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","52|3|","2|1|","61|1|"],"new_items_map_keys":["113|1|","52|3|","2|1|","61|1|"]} 
[2026-02-24 13:18:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4879,"order_number":"AZS-240226-002"} 
[2026-02-24 13:18:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-24 13:18:28"} 
[2026-02-24 13:18:29] local.INFO: RouteServiceProvider: Found direct replacement order {"old_order_id":4872,"new_order_id":4879,"order_number":"AZS-240226-002","method":"PUT","route":"api/orders/4872"} 
[2026-02-24 13:18:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":0,"item_id":24027} 
[2026-02-24 13:18:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":1,"item_id":24028} 
[2026-02-24 13:18:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":4879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":24027},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":24028},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:18:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4879,"items_count":4} 
[2026-02-24 13:18:29] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[24029],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-02-24 13:18:29] local.INFO: PosOrderController::update - Item changes check {"order_id":4879,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","52|3|","2|1|","61|1|"],"new_items_map_keys":["113|1|","52|3|","2|1|","61|1|"]} 
[2026-02-24 13:18:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4879,"order_number":"AZS-240226-002"} 
[2026-02-24 13:18:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-24 13:18:29"} 
[2026-02-24 13:18:29] local.INFO: RouteServiceProvider: Found direct replacement order {"old_order_id":4872,"new_order_id":4879,"order_number":"AZS-240226-002","method":"PUT","route":"api/orders/4872"} 
[2026-02-24 13:18:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":0,"item_id":24027} 
[2026-02-24 13:18:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":1,"item_id":24028} 
[2026-02-24 13:18:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":4879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":24027},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":24028},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:18:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4879,"items_count":4} 
[2026-02-24 13:18:29] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[24029],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-02-24 13:18:29] local.INFO: PosOrderController::update - Item changes check {"order_id":4879,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","52|3|","2|1|","61|1|"],"new_items_map_keys":["113|1|","52|3|","2|1|","61|1|"]} 
[2026-02-24 13:18:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4879,"order_number":"AZS-240226-002"} 
[2026-02-24 13:18:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-24 13:18:29"} 
[2026-02-24 13:18:29] local.INFO: RouteServiceProvider: Found direct replacement order {"old_order_id":4872,"new_order_id":4879,"order_number":"AZS-240226-002","method":"PUT","route":"api/orders/4872"} 
[2026-02-24 13:18:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":0,"item_id":24027} 
[2026-02-24 13:18:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":1,"item_id":24028} 
[2026-02-24 13:18:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":4879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":24027},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":24028},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:18:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4879,"items_count":4} 
[2026-02-24 13:18:29] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[24029],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-02-24 13:18:29] local.INFO: PosOrderController::update - Item changes check {"order_id":4879,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","52|3|","2|1|","61|1|"],"new_items_map_keys":["113|1|","52|3|","2|1|","61|1|"]} 
[2026-02-24 13:18:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4879,"order_number":"AZS-240226-002"} 
[2026-02-24 13:18:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-24 13:18:29"} 
[2026-02-24 13:18:30] local.INFO: RouteServiceProvider: Found direct replacement order {"old_order_id":4872,"new_order_id":4879,"order_number":"AZS-240226-002","method":"PUT","route":"api/orders/4872"} 
[2026-02-24 13:18:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":0,"item_id":24027} 
[2026-02-24 13:18:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":1,"item_id":24028} 
[2026-02-24 13:18:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":4879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":24027},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":24028},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:18:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4879,"items_count":4} 
[2026-02-24 13:18:30] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[24029],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-02-24 13:18:30] local.INFO: PosOrderController::update - Item changes check {"order_id":4879,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","52|3|","2|1|","61|1|"],"new_items_map_keys":["113|1|","52|3|","2|1|","61|1|"]} 
[2026-02-24 13:18:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4879,"order_number":"AZS-240226-002"} 
[2026-02-24 13:18:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-24 13:18:30"} 
[2026-02-24 13:18:30] local.INFO: RouteServiceProvider: Found direct replacement order {"old_order_id":4872,"new_order_id":4879,"order_number":"AZS-240226-002","method":"PUT","route":"api/orders/4872"} 
[2026-02-24 13:18:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":0,"item_id":24027} 
[2026-02-24 13:18:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":1,"item_id":24028} 
[2026-02-24 13:18:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":4879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":24027},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":24028},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:18:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4879,"items_count":4} 
[2026-02-24 13:18:30] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[24029],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-02-24 13:18:30] local.INFO: PosOrderController::update - Item changes check {"order_id":4879,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","52|3|","2|1|","61|1|"],"new_items_map_keys":["113|1|","52|3|","2|1|","61|1|"]} 
[2026-02-24 13:18:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4879,"order_number":"AZS-240226-002"} 
[2026-02-24 13:18:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-24 13:18:30"} 
[2026-02-24 13:18:31] local.INFO: RouteServiceProvider: Found direct replacement order {"old_order_id":4872,"new_order_id":4879,"order_number":"AZS-240226-002","method":"PUT","route":"api/orders/4872"} 
[2026-02-24 13:18:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":0,"item_id":24027} 
[2026-02-24 13:18:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":1,"item_id":24028} 
[2026-02-24 13:18:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":4879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":24027},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":24028},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:18:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4879,"items_count":4} 
[2026-02-24 13:18:31] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[24029],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-02-24 13:18:31] local.INFO: PosOrderController::update - Item changes check {"order_id":4879,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","52|3|","2|1|","61|1|"],"new_items_map_keys":["113|1|","52|3|","2|1|","61|1|"]} 
[2026-02-24 13:18:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4879,"order_number":"AZS-240226-002"} 
[2026-02-24 13:18:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-24 13:18:31"} 
[2026-02-24 13:18:31] local.INFO: RouteServiceProvider: Found direct replacement order {"old_order_id":4872,"new_order_id":4879,"order_number":"AZS-240226-002","method":"PUT","route":"api/orders/4872"} 
[2026-02-24 13:18:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":0,"item_id":24027} 
[2026-02-24 13:18:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":1,"item_id":24028} 
[2026-02-24 13:18:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":4879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":24027},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":24028},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:18:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4879,"items_count":4} 
[2026-02-24 13:18:31] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[24029],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-02-24 13:18:31] local.INFO: PosOrderController::update - Item changes check {"order_id":4879,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","52|3|","2|1|","61|1|"],"new_items_map_keys":["113|1|","52|3|","2|1|","61|1|"]} 
[2026-02-24 13:18:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4879,"order_number":"AZS-240226-002"} 
[2026-02-24 13:18:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-24 13:18:31"} 
[2026-02-24 13:18:31] local.INFO: RouteServiceProvider: Found direct replacement order {"old_order_id":4872,"new_order_id":4879,"order_number":"AZS-240226-002","method":"PUT","route":"api/orders/4872"} 
[2026-02-24 13:18:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":0,"item_id":24027} 
[2026-02-24 13:18:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":1,"item_id":24028} 
[2026-02-24 13:18:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":4879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":24027},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":24028},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:18:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4879,"items_count":4} 
[2026-02-24 13:18:31] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[24029],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-02-24 13:18:31] local.INFO: PosOrderController::update - Item changes check {"order_id":4879,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","52|3|","2|1|","61|1|"],"new_items_map_keys":["113|1|","52|3|","2|1|","61|1|"]} 
[2026-02-24 13:18:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4879,"order_number":"AZS-240226-002"} 
[2026-02-24 13:18:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-24 13:18:31"} 
[2026-02-24 13:18:32] local.INFO: RouteServiceProvider: Found direct replacement order {"old_order_id":4872,"new_order_id":4879,"order_number":"AZS-240226-002","method":"PUT","route":"api/orders/4872"} 
[2026-02-24 13:18:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":0,"item_id":24027} 
[2026-02-24 13:18:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4879,"item_index":1,"item_id":24028} 
[2026-02-24 13:18:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":4879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":24027},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":24028},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:18:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4879,"items_count":4} 
[2026-02-24 13:18:32] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[24029],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-02-24 13:18:32] local.INFO: PosOrderController::update - Item changes check {"order_id":4879,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","52|3|","2|1|","61|1|"],"new_items_map_keys":["113|1|","52|3|","2|1|","61|1|"]} 
[2026-02-24 13:18:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4879,"order_number":"AZS-240226-002"} 
[2026-02-24 13:18:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-24 13:18:32"} 
[2026-02-24 13:19:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":1,"order_id":4870,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24021},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24022}],"validated_items":[{"id":24021,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24022,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:19:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4870,"items_count":2} 
[2026-02-24 13:19:05] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":1,"items_to_remove":[24023],"items":[{"id":24021,"menu_item_id":96,"quantity":1},{"id":24022,"menu_item_id":396,"quantity":2}]} 
[2026-02-24 13:19:05] local.INFO: PosOrderController::update - Item changes check {"order_id":4870,"has_item_changes":true,"old_items_count":3,"new_items_count":2,"old_items_map_keys":["96|1|","396|2|","5|1|"],"new_items_map_keys":["96|1|","396|2|"]} 
[2026-02-24 13:19:05] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4870,"order_number":"AZS-240226-001"} 
[2026-02-24 13:19:05] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-001","replaced_order_id":4870} 
[2026-02-24 13:19:05] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4880,"items_count":2,"items":[{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":2,"price":99.0}]} 
[2026-02-24 13:19:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4880,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4880}} 
[2026-02-24 13:19:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4880,"item_index":0,"menu_item_id":96} 
[2026-02-24 13:19:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4880,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4880}} 
[2026-02-24 13:19:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4880,"item_index":1,"menu_item_id":396} 
[2026-02-24 13:19:05] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4870,"new_order_id":4880,"order_number":"AZS-240226-001"} 
[2026-02-24 13:19:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4880,"item_index":0,"item_id":24021} 
[2026-02-24 13:19:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4880,"item_index":1,"item_id":24022} 
[2026-02-24 13:19:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":4880,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24021},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24022}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:19:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4880,"items_count":2} 
[2026-02-24 13:19:14] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[24044,24045],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2}]} 
[2026-02-24 13:19:14] local.INFO: PosOrderController::update - Item changes check {"order_id":4880,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["96|1|","396|2|"],"new_items_map_keys":["96|1|","396|2|"]} 
[2026-02-24 13:19:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4880,"order_number":"AZS-240226-001"} 
[2026-02-24 13:19:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4880,"order_number":"AZS-240226-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-24 13:19:14"} 
[2026-02-24 13:20:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4880,"item_index":0,"item_id":24021} 
[2026-02-24 13:20:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4880,"item_index":1,"item_id":24022} 
[2026-02-24 13:20:35] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4880,"order_number":"AZS-240226-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 13:20:35"} 
[2026-02-24 13:20:35] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4880,"order_number":"AZS-240226-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 13:20:35"} 
[2026-02-24 13:20:35] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4880,"order_number":"AZS-240226-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 13:20:35"} 
[2026-02-24 13:20:35] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4880,"order_number":"AZS-240226-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 13:20:35"} 
[2026-02-24 13:20:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":4880,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24021},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24022}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:20:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4880,"items_count":2} 
[2026-02-24 13:20:35] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[24044,24045],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2}]} 
[2026-02-24 13:20:35] local.INFO: PosOrderController::update - Item changes check {"order_id":4880,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["96|1|","396|2|"],"new_items_map_keys":["96|1|","396|2|"]} 
[2026-02-24 13:20:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4880,"order_number":"AZS-240226-001"} 
[2026-02-24 13:20:35] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4880,"order_number":"AZS-240226-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-24 13:20:35","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 13:20:35"} 
[2026-02-24 13:20:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4880,"order_number":"AZS-240226-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 13:20:35"} 
[2026-02-24 13:20:35] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4880,"order_number":"AZS-240226-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-24 13:20:35","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-02-24 13:20:35"} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":4877,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":24036},{"menu_item_id":400,"quantity":150,"discount_percent":0,"notes":null,"id":24037},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":397,"quantity":55,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24036,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":24037,"menu_item_id":400,"quantity":150,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":397,"quantity":55,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4877,"items_count":9} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24036,"menu_item_id":417,"quantity":1},{"id":24037,"menu_item_id":400,"quantity":150},{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":397,"quantity":55},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Item changes check {"order_id":4877,"has_item_changes":true,"old_items_count":2,"new_items_count":9,"old_items_map_keys":["417|1|","400|150|"],"new_items_map_keys":["417|1|","400|150|","106|1|","105|1|","397|55|","396|4|","61|2|","56|2|","5|1|"]} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4877,"order_number":"AZS-240226-007"} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-007","replaced_order_id":4877} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4882,"items_count":9,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":400,"quantity":150,"price":"1.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":397,"quantity":55,"price":"4.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4882,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4882}} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4882,"item_index":0,"menu_item_id":417} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4882,"item_index":1,"item_data":{"menu_item_id":400,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL ITEMS","quantity":150,"price":"1.00","discount_percent":0.0,"discount_amount":0.0,"total":150.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4882}} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4882,"item_index":1,"menu_item_id":400} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4882,"item_index":2,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4882}} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4882,"item_index":2,"menu_item_id":106} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4882,"item_index":3,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4882}} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4882,"item_index":3,"menu_item_id":105} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4882,"item_index":4,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":55,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":220.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4882}} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4882,"item_index":4,"menu_item_id":397} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4882,"item_index":5,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4882}} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4882,"item_index":5,"menu_item_id":396} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4882,"item_index":6,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4882}} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4882,"item_index":6,"menu_item_id":61} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4882,"item_index":7,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4882}} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4882,"item_index":7,"menu_item_id":56} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4882,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4882}} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4882,"item_index":8,"menu_item_id":5} 
[2026-02-24 13:31:34] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4877,"new_order_id":4882,"order_number":"AZS-240226-007"} 
[2026-02-24 13:41:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":4879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24040},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":24041},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":24042},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24043}],"validated_items":[{"id":24040,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24041,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":24042,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":24043,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-24 13:41:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4879,"items_count":4} 
[2026-02-24 13:41:30] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24040,"menu_item_id":113,"quantity":1},{"id":24041,"menu_item_id":52,"quantity":3},{"id":24042,"menu_item_id":2,"quantity":1},{"id":24043,"menu_item_id":61,"quantity":1}]} 
[2026-02-24 13:41:30] local.INFO: PosOrderController::update - Item changes check {"order_id":4879,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","52|3|","2|1|","61|1|"],"new_items_map_keys":["113|1|","52|3|","2|1|","61|1|"]} 
[2026-02-24 13:41:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4879,"order_number":"AZS-240226-002"} 
[2026-02-24 13:41:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-24 13:41:30"} 
[2026-02-24 14:03:09] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 14:03:09"} 
[2026-02-24 14:03:09] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 14:03:09"} 
[2026-02-24 14:03:09] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 14:03:09"} 
[2026-02-24 14:03:09] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 14:03:09"} 
[2026-02-24 14:03:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":4879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24040},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":24041},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":24042},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24043}],"validated_items":[{"id":24040,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24041,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":24042,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":24043,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-24 14:03:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4879,"items_count":4} 
[2026-02-24 14:03:09] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24040,"menu_item_id":113,"quantity":1},{"id":24041,"menu_item_id":52,"quantity":3},{"id":24042,"menu_item_id":2,"quantity":1},{"id":24043,"menu_item_id":61,"quantity":1}]} 
[2026-02-24 14:03:09] local.INFO: PosOrderController::update - Item changes check {"order_id":4879,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","52|3|","2|1|","61|1|"],"new_items_map_keys":["113|1|","52|3|","2|1|","61|1|"]} 
[2026-02-24 14:03:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4879,"order_number":"AZS-240226-002"} 
[2026-02-24 14:03:09] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-24 14:03:09","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 14:03:09"} 
[2026-02-24 14:03:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 14:03:09"} 
[2026-02-24 14:03:09] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4879,"order_number":"AZS-240226-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-24 14:03:09","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-02-24 14:03:09"} 
[2026-02-24 14:52:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":4878,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":24038},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24039}],"validated_items":[{"id":24038,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":24039,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-02-24 14:52:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4878,"items_count":2} 
[2026-02-24 14:52:47] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24038,"menu_item_id":105,"quantity":1},{"id":24039,"menu_item_id":396,"quantity":1}]} 
[2026-02-24 14:52:47] local.INFO: PosOrderController::update - Item changes check {"order_id":4878,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["105|1|","396|1|"],"new_items_map_keys":["105|1|","396|1|"]} 
[2026-02-24 14:52:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4878,"order_number":"AZS-240226-008"} 
[2026-02-24 14:52:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4878,"order_number":"AZS-240226-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-24 14:52:47"} 
[2026-02-24 14:57:17] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4878,"order_number":"AZS-240226-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 14:57:17"} 
[2026-02-24 14:57:17] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4878,"order_number":"AZS-240226-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 14:57:17"} 
[2026-02-24 14:57:17] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4878,"order_number":"AZS-240226-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 14:57:17"} 
[2026-02-24 14:57:17] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4878,"order_number":"AZS-240226-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 14:57:17"} 
[2026-02-24 14:57:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":4878,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":24038},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24039}],"validated_items":[{"id":24038,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":24039,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-02-24 14:57:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4878,"items_count":2} 
[2026-02-24 14:57:17] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24038,"menu_item_id":105,"quantity":1},{"id":24039,"menu_item_id":396,"quantity":1}]} 
[2026-02-24 14:57:17] local.INFO: PosOrderController::update - Item changes check {"order_id":4878,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["105|1|","396|1|"],"new_items_map_keys":["105|1|","396|1|"]} 
[2026-02-24 14:57:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4878,"order_number":"AZS-240226-008"} 
[2026-02-24 14:57:17] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4878,"order_number":"AZS-240226-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-24 14:57:17","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 14:57:17"} 
[2026-02-24 14:57:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4878,"order_number":"AZS-240226-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 14:57:17"} 
[2026-02-24 14:57:17] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4878,"order_number":"AZS-240226-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-24 14:57:17","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-02-24 14:57:17"} 
[2026-02-24 15:08:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":4882,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24047},{"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null,"id":24048},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":24049},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":24050},{"menu_item_id":397,"quantity":55,"price":4,"discount_percent":0,"notes":null,"id":24051},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":24052},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24053},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24054},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24055}],"validated_items":[{"id":24047,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24048,"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null},{"id":24049,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":24050,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":24051,"menu_item_id":397,"quantity":55,"price":4,"discount_percent":0,"notes":null},{"id":24052,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":24053,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24054,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24055,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-24 15:08:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4882,"items_count":9} 
[2026-02-24 15:08:37] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24047,"menu_item_id":417,"quantity":1},{"id":24048,"menu_item_id":400,"quantity":150},{"id":24049,"menu_item_id":106,"quantity":1},{"id":24050,"menu_item_id":105,"quantity":1},{"id":24051,"menu_item_id":397,"quantity":55},{"id":24052,"menu_item_id":396,"quantity":4},{"id":24053,"menu_item_id":61,"quantity":2},{"id":24054,"menu_item_id":56,"quantity":2},{"id":24055,"menu_item_id":5,"quantity":1}]} 
[2026-02-24 15:08:37] local.INFO: PosOrderController::update - Item changes check {"order_id":4882,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["417|1|","400|150|","106|1|","105|1|","397|55|","396|4|","61|2|","56|2|","5|1|"],"new_items_map_keys":["417|1|","400|150|","106|1|","105|1|","397|55|","396|4|","61|2|","56|2|","5|1|"]} 
[2026-02-24 15:08:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4882,"order_number":"AZS-240226-007"} 
[2026-02-24 15:08:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4882,"order_number":"AZS-240226-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-24 15:08:37"} 
[2026-02-24 15:33:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":4882,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24047},{"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null,"id":24048},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":24049},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":24050},{"menu_item_id":397,"quantity":55,"price":4,"discount_percent":0,"notes":null,"id":24051},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":24052},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24053},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24054},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24055}],"validated_items":[{"id":24047,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24048,"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null},{"id":24049,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":24050,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":24051,"menu_item_id":397,"quantity":55,"price":4,"discount_percent":0,"notes":null},{"id":24052,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":24053,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24054,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24055,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-24 15:33:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4882,"items_count":9} 
[2026-02-24 15:33:51] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24047,"menu_item_id":417,"quantity":1},{"id":24048,"menu_item_id":400,"quantity":150},{"id":24049,"menu_item_id":106,"quantity":1},{"id":24050,"menu_item_id":105,"quantity":1},{"id":24051,"menu_item_id":397,"quantity":55},{"id":24052,"menu_item_id":396,"quantity":4},{"id":24053,"menu_item_id":61,"quantity":2},{"id":24054,"menu_item_id":56,"quantity":2},{"id":24055,"menu_item_id":5,"quantity":1}]} 
[2026-02-24 15:33:51] local.INFO: PosOrderController::update - Item changes check {"order_id":4882,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["417|1|","400|150|","106|1|","105|1|","397|55|","396|4|","61|2|","56|2|","5|1|"],"new_items_map_keys":["417|1|","400|150|","106|1|","105|1|","397|55|","396|4|","61|2|","56|2|","5|1|"]} 
[2026-02-24 15:33:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4882,"order_number":"AZS-240226-007"} 
[2026-02-24 15:33:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4882,"order_number":"AZS-240226-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-24 15:33:51"} 
[2026-02-24 15:34:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4882,"order_number":"AZS-240226-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":8500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 15:34:27"} 
[2026-02-24 15:34:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4882,"order_number":"AZS-240226-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":8500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 15:34:27"} 
[2026-02-24 15:34:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4882,"order_number":"AZS-240226-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":8500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 15:34:27"} 
[2026-02-24 15:34:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4882,"order_number":"AZS-240226-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":8500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 15:34:27"} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":4882,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24047},{"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null,"id":24048},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":24049},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":24050},{"menu_item_id":397,"quantity":55,"price":4,"discount_percent":0,"notes":null,"id":24051},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":24052},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24053},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24054},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24055}],"validated_items":[{"id":24047,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24048,"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null},{"id":24049,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":24050,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":24051,"menu_item_id":397,"quantity":55,"price":4,"discount_percent":0,"notes":null},{"id":24052,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":24053,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24054,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24055,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4882,"items_count":9} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24047,"menu_item_id":417,"quantity":1},{"id":24048,"menu_item_id":400,"quantity":150},{"id":24049,"menu_item_id":106,"quantity":1},{"id":24050,"menu_item_id":105,"quantity":1},{"id":24051,"menu_item_id":397,"quantity":55},{"id":24052,"menu_item_id":396,"quantity":4},{"id":24053,"menu_item_id":61,"quantity":1},{"id":24054,"menu_item_id":56,"quantity":1},{"id":24055,"menu_item_id":5,"quantity":1}]} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Item changes check {"order_id":4882,"has_item_changes":true,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["417|1|","400|150|","106|1|","105|1|","397|55|","396|4|","61|2|","56|2|","5|1|"],"new_items_map_keys":["417|1|","400|150|","106|1|","105|1|","397|55|","396|4|","61|1|","56|1|","5|1|"]} 
[2026-02-24 15:34:27] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":4882,"order_number":"AZS-240226-007","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":8500,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-02-24 15:34:27","original_payment_amount":"0.00","grand_total":8231.0,"timestamp":"2026-02-24 15:34:27"} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4882,"order_number":"AZS-240226-007"} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-007","replaced_order_id":4882} 
[2026-02-24 15:34:27] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":4882,"new_order_id":4885,"order_number":"AZS-240226-007","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"8500.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-02-24 15:34:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":8500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-02-24 15:34:27"} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4885,"items_count":9,"items":[{"menu_item_id":417,"quantity":1,"price":499.0},{"menu_item_id":400,"quantity":150,"price":1.0},{"menu_item_id":106,"quantity":1,"price":4199.0},{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":397,"quantity":55,"price":4.0},{"menu_item_id":396,"quantity":4,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4885,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":499.0,"discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4885}} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4885,"item_index":0,"menu_item_id":417} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4885,"item_index":1,"item_data":{"menu_item_id":400,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL ITEMS","quantity":150,"price":1.0,"discount_percent":0.0,"discount_amount":0.0,"total":150.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4885}} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4885,"item_index":1,"menu_item_id":400} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4885,"item_index":2,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":4199.0,"discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4885}} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4885,"item_index":2,"menu_item_id":106} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4885,"item_index":3,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4885}} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4885,"item_index":3,"menu_item_id":105} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4885,"item_index":4,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":55,"price":4.0,"discount_percent":0.0,"discount_amount":0.0,"total":220.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4885}} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4885,"item_index":4,"menu_item_id":397} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4885,"item_index":5,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4885}} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4885,"item_index":5,"menu_item_id":396} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4885,"item_index":6,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4885}} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4885,"item_index":6,"menu_item_id":61} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4885,"item_index":7,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4885}} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4885,"item_index":7,"menu_item_id":56} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4885,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4885}} 
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4885,"item_index":8,"menu_item_id":5} 
[2026-02-24 15:34:27] local.ERROR: Error tracking recipe usage for order 4885: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (4885, 106, 196, 1, 1, 0.00, Order #AZS-240226-007 - 1x Mutton Shinwari - Full, 2026-02-24 15:34:27, 2026-02-24 15:34:27))  
[2026-02-24 15:34:27] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4882,"new_order_id":4885,"order_number":"AZS-240226-007"} 
[2026-02-24 15:34:28] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":4882,"new_order_id":4885,"order_number":"AZS-240226-007","route":"api/orders/4882"} 
[2026-02-24 15:59:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":4887,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"discount_percent":0,"notes":null,"id":24069},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":24070},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":24071},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24072},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24073},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":24074},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24069,"menu_item_id":100,"quantity":1,"discount_percent":0,"notes":null},{"id":24070,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":24071,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":24072,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":24073,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":24074,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 15:59:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4887,"items_count":7} 
[2026-02-24 15:59:16] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24069,"menu_item_id":100,"quantity":1},{"id":24070,"menu_item_id":396,"quantity":1},{"id":24071,"menu_item_id":50,"quantity":1},{"id":24072,"menu_item_id":61,"quantity":1},{"id":24073,"menu_item_id":56,"quantity":1},{"id":24074,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-24 15:59:16] local.INFO: PosOrderController::update - Item changes check {"order_id":4887,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["100|1|","396|1|","50|1|","61|1|","56|1|","2|1|"],"new_items_map_keys":["100|1|","396|1|","50|1|","61|1|","56|1|","2|1|","5|1|"]} 
[2026-02-24 15:59:16] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4887,"order_number":"AZS-240226-013"} 
[2026-02-24 15:59:16] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-013","replaced_order_id":4887} 
[2026-02-24 15:59:16] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4888,"items_count":7,"items":[{"menu_item_id":100,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-24 15:59:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4888,"item_index":0,"item_data":{"menu_item_id":100,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Half","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4888}} 
[2026-02-24 15:59:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4888,"item_index":0,"menu_item_id":100} 
[2026-02-24 15:59:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4888,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4888}} 
[2026-02-24 15:59:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4888,"item_index":1,"menu_item_id":396} 
[2026-02-24 15:59:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4888,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4888}} 
[2026-02-24 15:59:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4888,"item_index":2,"menu_item_id":50} 
[2026-02-24 15:59:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4888,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4888}} 
[2026-02-24 15:59:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4888,"item_index":3,"menu_item_id":61} 
[2026-02-24 15:59:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4888,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4888}} 
[2026-02-24 15:59:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4888,"item_index":4,"menu_item_id":56} 
[2026-02-24 15:59:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4888,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4888}} 
[2026-02-24 15:59:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4888,"item_index":5,"menu_item_id":2} 
[2026-02-24 15:59:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4888,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4888}} 
[2026-02-24 15:59:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4888,"item_index":6,"menu_item_id":5} 
[2026-02-24 15:59:16] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4887,"new_order_id":4888,"order_number":"AZS-240226-013"} 
[2026-02-24 15:59:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":4883,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null,"id":24056},{"menu_item_id":400,"quantity":110,"discount_percent":0,"notes":null,"id":24057},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24056,"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"id":24057,"menu_item_id":400,"quantity":110,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 15:59:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4883,"items_count":3} 
[2026-02-24 15:59:53] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24056,"menu_item_id":13,"quantity":1},{"id":24057,"menu_item_id":400,"quantity":110},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-02-24 15:59:53] local.INFO: PosOrderController::update - Item changes check {"order_id":4883,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["13|1|","400|110|"],"new_items_map_keys":["13|1|","400|110|","4|1|"]} 
[2026-02-24 15:59:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4883,"order_number":"AZS-240226-010"} 
[2026-02-24 15:59:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-010","replaced_order_id":4883} 
[2026-02-24 15:59:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4889,"items_count":3,"items":[{"menu_item_id":13,"quantity":1,"price":"249.00"},{"menu_item_id":400,"quantity":110,"price":"1.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-02-24 15:59:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4889,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4889}} 
[2026-02-24 15:59:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4889,"item_index":0,"menu_item_id":13} 
[2026-02-24 15:59:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4889,"item_index":1,"item_data":{"menu_item_id":400,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL ITEMS","quantity":110,"price":"1.00","discount_percent":0.0,"discount_amount":0.0,"total":110.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4889}} 
[2026-02-24 15:59:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4889,"item_index":1,"menu_item_id":400} 
[2026-02-24 15:59:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4889,"item_index":2,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4889}} 
[2026-02-24 15:59:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4889,"item_index":2,"menu_item_id":4} 
[2026-02-24 15:59:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4883,"new_order_id":4889,"order_number":"AZS-240226-010"} 
[2026-02-24 16:09:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4886,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24068}],"validated_items":[{"id":24068,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-24 16:09:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4886,"items_count":1} 
[2026-02-24 16:09:48] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24068,"menu_item_id":6,"quantity":2}]} 
[2026-02-24 16:09:48] local.INFO: PosOrderController::update - Item changes check {"order_id":4886,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-02-24 16:09:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4886,"order_number":"AZS-240226-012"} 
[2026-02-24 16:09:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4886,"order_number":"AZS-240226-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-24 16:09:48"} 
[2026-02-24 16:11:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T04:11:00.515Z","date_to":"2026-02-24T16:11:00.515Z","per_page":"100"} 
[2026-02-24 16:11:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T04:11:00.502Z","date_to":"2026-02-24T16:11:00.502Z","per_page":"100"} 
[2026-02-24 16:11:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","changed","pending","pending","pending","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":7,"paid_count":8,"unpaid_count":5,"unique_order_numbers":13} 
[2026-02-24 16:11:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","changed","pending","pending","pending","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":7,"paid_count":8,"unpaid_count":5,"unique_order_numbers":13} 
[2026-02-24 16:11:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T04:11:00.502Z","date_to":"2026-02-24T16:11:00.502Z","per_page":"100"} 
[2026-02-24 16:11:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","changed","pending","pending","pending","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":7,"paid_count":8,"unpaid_count":5,"unique_order_numbers":13} 
[2026-02-24 16:15:54] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4886,"order_number":"AZS-240226-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 16:15:54"} 
[2026-02-24 16:15:54] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4886,"order_number":"AZS-240226-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 16:15:54"} 
[2026-02-24 16:15:54] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4886,"order_number":"AZS-240226-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 16:15:54"} 
[2026-02-24 16:15:54] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4886,"order_number":"AZS-240226-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 16:15:54"} 
[2026-02-24 16:15:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4886,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24068}],"validated_items":[{"id":24068,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-24 16:15:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4886,"items_count":1} 
[2026-02-24 16:15:54] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24068,"menu_item_id":6,"quantity":2}]} 
[2026-02-24 16:15:54] local.INFO: PosOrderController::update - Item changes check {"order_id":4886,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-02-24 16:15:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4886,"order_number":"AZS-240226-012"} 
[2026-02-24 16:15:54] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4886,"order_number":"AZS-240226-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-24 16:15:54","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 16:15:54"} 
[2026-02-24 16:15:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4886,"order_number":"AZS-240226-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 16:15:54"} 
[2026-02-24 16:15:54] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4886,"order_number":"AZS-240226-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-24 16:15:54","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-02-24 16:15:54"} 
[2026-02-24 16:16:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":4884,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null,"id":24058},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":1,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24058,"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":1,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 16:16:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4884,"items_count":3} 
[2026-02-24 16:16:44] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24058,"menu_item_id":138,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":1,"quantity":1}]} 
[2026-02-24 16:16:44] local.INFO: PosOrderController::update - Item changes check {"order_id":4884,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["138|1|"],"new_items_map_keys":["138|1|","3|1|","1|1|"]} 
[2026-02-24 16:16:44] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4884,"order_number":"AZS-240226-011"} 
[2026-02-24 16:16:44] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-011","replaced_order_id":4884} 
[2026-02-24 16:16:44] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4890,"items_count":3,"items":[{"menu_item_id":138,"quantity":1,"price":"2199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":1,"quantity":1,"price":"170.00"}]} 
[2026-02-24 16:16:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4890,"item_index":0,"item_data":{"menu_item_id":138,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Large","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4890}} 
[2026-02-24 16:16:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4890,"item_index":0,"menu_item_id":138} 
[2026-02-24 16:16:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4890,"item_index":1,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4890}} 
[2026-02-24 16:16:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4890,"item_index":1,"menu_item_id":3} 
[2026-02-24 16:16:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4890,"item_index":2,"item_data":{"menu_item_id":1,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Can","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4890}} 
[2026-02-24 16:16:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4890,"item_index":2,"menu_item_id":1} 
[2026-02-24 16:16:44] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4884,"new_order_id":4890,"order_number":"AZS-240226-011"} 
[2026-02-24 16:23:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T04:23:45.795Z","date_to":"2026-02-24T16:23:45.795Z","per_page":"100"} 
[2026-02-24 16:23:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","pending","changed","paid","pending","changed","pending","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":8,"paid_count":9,"unpaid_count":5,"unique_order_numbers":14} 
[2026-02-24 16:23:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T04:23:45.813Z","date_to":"2026-02-24T16:23:45.813Z","per_page":"100"} 
[2026-02-24 16:23:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","pending","changed","paid","pending","changed","pending","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":8,"paid_count":9,"unpaid_count":5,"unique_order_numbers":14} 
[2026-02-24 16:23:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T04:23:45.795Z","date_to":"2026-02-24T16:23:45.795Z","per_page":"100"} 
[2026-02-24 16:23:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","pending","changed","paid","pending","changed","pending","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":8,"paid_count":9,"unpaid_count":5,"unique_order_numbers":14} 
[2026-02-24 16:24:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":4890,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null,"id":24085},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":24086},{"menu_item_id":1,"quantity":1,"discount_percent":0,"notes":null,"id":24087},{"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":24085,"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null},{"id":24086,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"id":24087,"menu_item_id":1,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-24 16:24:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4890,"items_count":4} 
[2026-02-24 16:24:44] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24085,"menu_item_id":138,"quantity":1},{"id":24086,"menu_item_id":3,"quantity":1},{"id":24087,"menu_item_id":1,"quantity":1},{"id":null,"menu_item_id":163,"quantity":2}]} 
[2026-02-24 16:24:44] local.INFO: PosOrderController::update - Item changes check {"order_id":4890,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["138|1|","3|1|","1|1|"],"new_items_map_keys":["138|1|","3|1|","1|1|","163|2|"]} 
[2026-02-24 16:24:44] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4890,"order_number":"AZS-240226-011"} 
[2026-02-24 16:24:44] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-011","replaced_order_id":4890} 
[2026-02-24 16:24:44] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4892,"items_count":4,"items":[{"menu_item_id":138,"quantity":1,"price":"2199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":1,"quantity":1,"price":"170.00"},{"menu_item_id":163,"quantity":2,"price":"1050.00"}]} 
[2026-02-24 16:24:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4892,"item_index":0,"item_data":{"menu_item_id":138,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Large","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4892}} 
[2026-02-24 16:24:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4892,"item_index":0,"menu_item_id":138} 
[2026-02-24 16:24:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4892,"item_index":1,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4892}} 
[2026-02-24 16:24:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4892,"item_index":1,"menu_item_id":3} 
[2026-02-24 16:24:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4892,"item_index":2,"item_data":{"menu_item_id":1,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Can","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4892}} 
[2026-02-24 16:24:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4892,"item_index":2,"menu_item_id":1} 
[2026-02-24 16:24:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4892,"item_index":3,"item_data":{"menu_item_id":163,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Azan Special Sandwich","quantity":2,"price":"1050.00","discount_percent":0.0,"discount_amount":0.0,"total":2100.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4892}} 
[2026-02-24 16:24:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4892,"item_index":3,"menu_item_id":163} 
[2026-02-24 16:24:44] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4890,"new_order_id":4892,"order_number":"AZS-240226-011"} 
[2026-02-24 16:25:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T04:25:53.463Z","date_to":"2026-02-24T16:25:53.463Z","per_page":"100"} 
[2026-02-24 16:25:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","pending","changed","paid","pending","changed","changed","pending","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":9,"paid_count":9,"unpaid_count":5,"unique_order_numbers":14} 
[2026-02-24 16:25:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T04:25:53.469Z","date_to":"2026-02-24T16:25:53.469Z","per_page":"100"} 
[2026-02-24 16:25:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","pending","changed","paid","pending","changed","changed","pending","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":9,"paid_count":9,"unpaid_count":5,"unique_order_numbers":14} 
[2026-02-24 16:26:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T04:25:53.463Z","date_to":"2026-02-24T16:25:53.463Z","per_page":"100"} 
[2026-02-24 16:26:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","pending","changed","paid","pending","changed","changed","pending","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":9,"paid_count":9,"unpaid_count":5,"unique_order_numbers":14} 
[2026-02-24 16:37:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":4889,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":24082},{"menu_item_id":400,"quantity":110,"price":1,"discount_percent":0,"notes":null,"id":24083},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":24084}],"validated_items":[{"id":24082,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":24083,"menu_item_id":400,"quantity":110,"price":1,"discount_percent":0,"notes":null},{"id":24084,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-24 16:37:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4889,"items_count":3} 
[2026-02-24 16:37:00] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24082,"menu_item_id":13,"quantity":1},{"id":24083,"menu_item_id":400,"quantity":110},{"id":24084,"menu_item_id":4,"quantity":1}]} 
[2026-02-24 16:37:00] local.INFO: PosOrderController::update - Item changes check {"order_id":4889,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["13|1|","400|110|","4|1|"],"new_items_map_keys":["13|1|","400|110|","4|1|"]} 
[2026-02-24 16:37:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4889,"order_number":"AZS-240226-010"} 
[2026-02-24 16:37:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4889,"order_number":"AZS-240226-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-24 16:37:00"} 
[2026-02-24 16:42:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":1,"order_id":4889,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":24082},{"menu_item_id":400,"quantity":110,"price":1,"discount_percent":0,"notes":null,"id":24083}],"validated_items":[{"id":24082,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":24083,"menu_item_id":400,"quantity":110,"price":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 16:42:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4889,"items_count":2} 
[2026-02-24 16:42:13] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":1,"items_to_remove":[24084],"items":[{"id":24082,"menu_item_id":13,"quantity":1},{"id":24083,"menu_item_id":400,"quantity":110}]} 
[2026-02-24 16:42:13] local.INFO: PosOrderController::update - Item changes check {"order_id":4889,"has_item_changes":true,"old_items_count":3,"new_items_count":2,"old_items_map_keys":["13|1|","400|110|","4|1|"],"new_items_map_keys":["13|1|","400|110|"]} 
[2026-02-24 16:42:13] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4889,"order_number":"AZS-240226-010"} 
[2026-02-24 16:42:13] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-010","replaced_order_id":4889} 
[2026-02-24 16:42:13] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4894,"items_count":2,"items":[{"menu_item_id":13,"quantity":1,"price":249.0},{"menu_item_id":400,"quantity":110,"price":1.0}]} 
[2026-02-24 16:42:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4894,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4894}} 
[2026-02-24 16:42:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4894,"item_index":0,"menu_item_id":13} 
[2026-02-24 16:42:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4894,"item_index":1,"item_data":{"menu_item_id":400,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL ITEMS","quantity":110,"price":1.0,"discount_percent":0.0,"discount_amount":0.0,"total":110.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4894}} 
[2026-02-24 16:42:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4894,"item_index":1,"menu_item_id":400} 
[2026-02-24 16:42:14] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4889,"new_order_id":4894,"order_number":"AZS-240226-010"} 
[2026-02-24 16:42:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":4888,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"discount_percent":0,"notes":null,"id":24075},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":24076},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":24077},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24079},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":24080},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24081}],"validated_items":[{"id":24075,"menu_item_id":100,"quantity":1,"discount_percent":0,"notes":null},{"id":24076,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":24077,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":24079,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":24080,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":24081,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 16:42:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4888,"items_count":6} 
[2026-02-24 16:42:41] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[24078],"items":[{"id":24075,"menu_item_id":100,"quantity":1},{"id":24076,"menu_item_id":396,"quantity":1},{"id":24077,"menu_item_id":50,"quantity":1},{"id":24079,"menu_item_id":56,"quantity":1},{"id":24080,"menu_item_id":2,"quantity":1},{"id":24081,"menu_item_id":5,"quantity":1}]} 
[2026-02-24 16:42:41] local.INFO: PosOrderController::update - Item changes check {"order_id":4888,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["100|1|","396|1|","50|1|","61|1|","56|1|","2|1|","5|1|"],"new_items_map_keys":["100|1|","396|1|","50|1|","56|1|","2|1|","5|1|"]} 
[2026-02-24 16:42:41] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4888,"order_number":"AZS-240226-013"} 
[2026-02-24 16:42:41] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-013","replaced_order_id":4888} 
[2026-02-24 16:42:41] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4895,"items_count":6,"items":[{"menu_item_id":100,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-24 16:42:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4895,"item_index":0,"item_data":{"menu_item_id":100,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Half","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4895}} 
[2026-02-24 16:42:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4895,"item_index":0,"menu_item_id":100} 
[2026-02-24 16:42:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4895,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4895}} 
[2026-02-24 16:42:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4895,"item_index":1,"menu_item_id":396} 
[2026-02-24 16:42:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4895,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4895}} 
[2026-02-24 16:42:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4895,"item_index":2,"menu_item_id":50} 
[2026-02-24 16:42:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4895,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4895}} 
[2026-02-24 16:42:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4895,"item_index":3,"menu_item_id":56} 
[2026-02-24 16:42:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4895,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4895}} 
[2026-02-24 16:42:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4895,"item_index":4,"menu_item_id":2} 
[2026-02-24 16:42:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4895,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4895}} 
[2026-02-24 16:42:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4895,"item_index":5,"menu_item_id":5} 
[2026-02-24 16:42:41] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4888,"new_order_id":4895,"order_number":"AZS-240226-013"} 
[2026-02-24 16:53:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":4892,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null,"id":24093},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":24094},{"menu_item_id":1,"quantity":1,"discount_percent":0,"notes":null,"id":24095},{"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null,"id":24096},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24093,"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null},{"id":24094,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"id":24095,"menu_item_id":1,"quantity":1,"discount_percent":0,"notes":null},{"id":24096,"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 16:53:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4892,"items_count":6} 
[2026-02-24 16:53:04] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24093,"menu_item_id":138,"quantity":1},{"id":24094,"menu_item_id":3,"quantity":1},{"id":24095,"menu_item_id":1,"quantity":1},{"id":24096,"menu_item_id":163,"quantity":2},{"id":null,"menu_item_id":13,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-02-24 16:53:04] local.INFO: PosOrderController::update - Item changes check {"order_id":4892,"has_item_changes":true,"old_items_count":4,"new_items_count":6,"old_items_map_keys":["138|1|","3|1|","1|1|","163|2|"],"new_items_map_keys":["138|1|","3|1|","1|1|","163|2|","13|1|","4|1|"]} 
[2026-02-24 16:53:04] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4892,"order_number":"AZS-240226-011"} 
[2026-02-24 16:53:04] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-011","replaced_order_id":4892} 
[2026-02-24 16:53:04] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4897,"items_count":6,"items":[{"menu_item_id":138,"quantity":1,"price":"2199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":1,"quantity":1,"price":"170.00"},{"menu_item_id":163,"quantity":2,"price":"1050.00"},{"menu_item_id":13,"quantity":1,"price":"249.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-02-24 16:53:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4897,"item_index":0,"item_data":{"menu_item_id":138,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Large","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4897}} 
[2026-02-24 16:53:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4897,"item_index":0,"menu_item_id":138} 
[2026-02-24 16:53:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4897,"item_index":1,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4897}} 
[2026-02-24 16:53:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4897,"item_index":1,"menu_item_id":3} 
[2026-02-24 16:53:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4897,"item_index":2,"item_data":{"menu_item_id":1,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Can","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4897}} 
[2026-02-24 16:53:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4897,"item_index":2,"menu_item_id":1} 
[2026-02-24 16:53:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4897,"item_index":3,"item_data":{"menu_item_id":163,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Azan Special Sandwich","quantity":2,"price":"1050.00","discount_percent":0.0,"discount_amount":0.0,"total":2100.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4897}} 
[2026-02-24 16:53:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4897,"item_index":3,"menu_item_id":163} 
[2026-02-24 16:53:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4897,"item_index":4,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4897}} 
[2026-02-24 16:53:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4897,"item_index":4,"menu_item_id":13} 
[2026-02-24 16:53:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4897,"item_index":5,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4897}} 
[2026-02-24 16:53:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4897,"item_index":5,"menu_item_id":4} 
[2026-02-24 16:53:04] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4892,"new_order_id":4897,"order_number":"AZS-240226-011"} 
[2026-02-24 16:55:00] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4894,"order_number":"AZS-240226-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 16:55:00"} 
[2026-02-24 16:55:00] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4894,"order_number":"AZS-240226-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 16:55:00"} 
[2026-02-24 16:55:00] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4894,"order_number":"AZS-240226-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 16:55:00"} 
[2026-02-24 16:55:00] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4894,"order_number":"AZS-240226-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 16:55:00"} 
[2026-02-24 16:55:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":4894,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":24099},{"menu_item_id":400,"quantity":110,"price":1,"discount_percent":0,"notes":null,"id":24100}],"validated_items":[{"id":24099,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":24100,"menu_item_id":400,"quantity":110,"price":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 16:55:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4894,"items_count":2} 
[2026-02-24 16:55:00] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24099,"menu_item_id":13,"quantity":1},{"id":24100,"menu_item_id":400,"quantity":110}]} 
[2026-02-24 16:55:00] local.INFO: PosOrderController::update - Item changes check {"order_id":4894,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|1|","400|110|"],"new_items_map_keys":["13|1|","400|110|"]} 
[2026-02-24 16:55:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4894,"order_number":"AZS-240226-010"} 
[2026-02-24 16:55:00] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4894,"order_number":"AZS-240226-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-24 16:55:00","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 16:55:00"} 
[2026-02-24 16:55:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4894,"order_number":"AZS-240226-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 16:55:00"} 
[2026-02-24 16:55:00] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4894,"order_number":"AZS-240226-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-24 16:55:00","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-02-24 16:55:00"} 
[2026-02-24 16:59:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":4895,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24101},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24102},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":24103},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24104},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":24105},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24106}],"validated_items":[{"id":24101,"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":24102,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":24103,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":24104,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24105,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":24106,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-24 16:59:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4895,"items_count":6} 
[2026-02-24 16:59:08] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24101,"menu_item_id":100,"quantity":1},{"id":24102,"menu_item_id":396,"quantity":1},{"id":24103,"menu_item_id":50,"quantity":1},{"id":24104,"menu_item_id":56,"quantity":1},{"id":24105,"menu_item_id":2,"quantity":1},{"id":24106,"menu_item_id":5,"quantity":1}]} 
[2026-02-24 16:59:08] local.INFO: PosOrderController::update - Item changes check {"order_id":4895,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["100|1|","396|1|","50|1|","56|1|","2|1|","5|1|"],"new_items_map_keys":["100|1|","396|1|","50|1|","56|1|","2|1|","5|1|"]} 
[2026-02-24 16:59:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4895,"order_number":"AZS-240226-013"} 
[2026-02-24 16:59:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4895,"order_number":"AZS-240226-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-24 16:59:08"} 
[2026-02-24 17:01:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":4895,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24101},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24102},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":24103},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24104},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":24105}],"validated_items":[{"id":24101,"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":24102,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":24103,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":24104,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24105,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-02-24 17:01:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4895,"items_count":5} 
[2026-02-24 17:01:10] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[24106],"items":[{"id":24101,"menu_item_id":100,"quantity":1},{"id":24102,"menu_item_id":396,"quantity":1},{"id":24103,"menu_item_id":50,"quantity":1},{"id":24104,"menu_item_id":56,"quantity":1},{"id":24105,"menu_item_id":2,"quantity":1}]} 
[2026-02-24 17:01:10] local.INFO: PosOrderController::update - Item changes check {"order_id":4895,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["100|1|","396|1|","50|1|","56|1|","2|1|","5|1|"],"new_items_map_keys":["100|1|","396|1|","50|1|","56|1|","2|1|"]} 
[2026-02-24 17:01:10] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4895,"order_number":"AZS-240226-013"} 
[2026-02-24 17:01:10] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-013","replaced_order_id":4895} 
[2026-02-24 17:01:10] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4898,"items_count":5,"items":[{"menu_item_id":100,"quantity":1,"price":1299.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":50,"quantity":1,"price":129.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":2,"quantity":1,"price":130.0}]} 
[2026-02-24 17:01:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4898,"item_index":0,"item_data":{"menu_item_id":100,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Half","quantity":1,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4898}} 
[2026-02-24 17:01:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4898,"item_index":0,"menu_item_id":100} 
[2026-02-24 17:01:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4898,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4898}} 
[2026-02-24 17:01:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4898,"item_index":1,"menu_item_id":396} 
[2026-02-24 17:01:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4898,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4898}} 
[2026-02-24 17:01:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4898,"item_index":2,"menu_item_id":50} 
[2026-02-24 17:01:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4898,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4898}} 
[2026-02-24 17:01:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4898,"item_index":3,"menu_item_id":56} 
[2026-02-24 17:01:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4898,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4898}} 
[2026-02-24 17:01:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4898,"item_index":4,"menu_item_id":2} 
[2026-02-24 17:01:10] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4895,"new_order_id":4898,"order_number":"AZS-240226-013"} 
[2026-02-24 17:01:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4898,"item_index":0,"item_id":24101} 
[2026-02-24 17:01:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4898,"item_index":1,"item_id":24102} 
[2026-02-24 17:01:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4898,"item_index":2,"item_id":24103} 
[2026-02-24 17:01:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4898,"item_index":3,"item_id":24104} 
[2026-02-24 17:01:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4898,"item_index":4,"item_id":24105} 
[2026-02-24 17:01:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":4898,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24101},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24102},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":24103},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24104},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":24105}],"validated_items":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-02-24 17:01:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4898,"items_count":5} 
[2026-02-24 17:01:16] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[24114,24115,24116,24117,24118],"items":[{"id":null,"menu_item_id":100,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-02-24 17:01:16] local.INFO: PosOrderController::update - Item changes check {"order_id":4898,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["100|1|","396|1|","50|1|","56|1|","2|1|"],"new_items_map_keys":["100|1|","396|1|","50|1|","56|1|","2|1|"]} 
[2026-02-24 17:01:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4898,"order_number":"AZS-240226-013"} 
[2026-02-24 17:01:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4898,"order_number":"AZS-240226-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-24 17:01:16"} 
[2026-02-24 17:01:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4898,"item_index":0,"item_id":24101} 
[2026-02-24 17:01:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4898,"item_index":1,"item_id":24102} 
[2026-02-24 17:01:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4898,"item_index":2,"item_id":24103} 
[2026-02-24 17:01:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4898,"item_index":3,"item_id":24104} 
[2026-02-24 17:01:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4898,"item_index":4,"item_id":24105} 
[2026-02-24 17:01:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":5,"order_id":4898,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24101},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24102},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":24103},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24104},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":24105},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-24 17:01:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4898,"items_count":6} 
[2026-02-24 17:01:57] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":5,"items_to_remove":[24114,24115,24116,24117,24118],"items":[{"id":null,"menu_item_id":100,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-02-24 17:01:57] local.INFO: PosOrderController::update - Item changes check {"order_id":4898,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["100|1|","396|1|","50|1|","56|1|","2|1|"],"new_items_map_keys":["100|1|","396|1|","50|1|","56|1|","2|1|","4|1|"]} 
[2026-02-24 17:01:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4898,"order_number":"AZS-240226-013"} 
[2026-02-24 17:01:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-013","replaced_order_id":4898} 
[2026-02-24 17:01:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4899,"items_count":6,"items":[{"menu_item_id":100,"quantity":1,"price":1299.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":50,"quantity":1,"price":129.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":2,"quantity":1,"price":130.0},{"menu_item_id":4,"quantity":1,"price":90.0}]} 
[2026-02-24 17:01:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4899,"item_index":0,"item_data":{"menu_item_id":100,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Half","quantity":1,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4899}} 
[2026-02-24 17:01:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4899,"item_index":0,"menu_item_id":100} 
[2026-02-24 17:01:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4899,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4899}} 
[2026-02-24 17:01:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4899,"item_index":1,"menu_item_id":396} 
[2026-02-24 17:01:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4899,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4899}} 
[2026-02-24 17:01:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4899,"item_index":2,"menu_item_id":50} 
[2026-02-24 17:01:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4899,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4899}} 
[2026-02-24 17:01:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4899,"item_index":3,"menu_item_id":56} 
[2026-02-24 17:01:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4899,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4899}} 
[2026-02-24 17:01:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4899,"item_index":4,"menu_item_id":2} 
[2026-02-24 17:01:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4899,"item_index":5,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":90.0,"discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4899}} 
[2026-02-24 17:01:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4899,"item_index":5,"menu_item_id":4} 
[2026-02-24 17:01:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4898,"new_order_id":4899,"order_number":"AZS-240226-013"} 
[2026-02-24 17:02:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4899,"item_index":0,"item_id":24101} 
[2026-02-24 17:02:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4899,"item_index":1,"item_id":24102} 
[2026-02-24 17:02:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4899,"item_index":2,"item_id":24103} 
[2026-02-24 17:02:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4899,"item_index":3,"item_id":24104} 
[2026-02-24 17:02:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4899,"item_index":4,"item_id":24105} 
[2026-02-24 17:02:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":4899,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24101},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24102},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":24103},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24104},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":24105},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-24 17:02:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4899,"items_count":6} 
[2026-02-24 17:02:03] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[24119,24120,24121,24122,24123,24124],"items":[{"id":null,"menu_item_id":100,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-02-24 17:02:03] local.INFO: PosOrderController::update - Item changes check {"order_id":4899,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["100|1|","396|1|","50|1|","56|1|","2|1|","4|1|"],"new_items_map_keys":["100|1|","396|1|","50|1|","56|1|","2|1|","4|1|"]} 
[2026-02-24 17:02:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4899,"order_number":"AZS-240226-013"} 
[2026-02-24 17:02:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4899,"order_number":"AZS-240226-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-24 17:02:03"} 
[2026-02-24 17:05:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":4893,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":161,"quantity":1,"discount_percent":0,"notes":null,"id":24097},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":24098},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24097,"menu_item_id":161,"quantity":1,"discount_percent":0,"notes":null},{"id":24098,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 17:05:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4893,"items_count":3} 
[2026-02-24 17:05:17] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24097,"menu_item_id":161,"quantity":1},{"id":24098,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-24 17:05:17] local.INFO: PosOrderController::update - Item changes check {"order_id":4893,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["161|1|","403|1|"],"new_items_map_keys":["161|1|","403|1|","3|1|"]} 
[2026-02-24 17:05:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4893,"order_number":"AZS-240226-015"} 
[2026-02-24 17:05:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-015","replaced_order_id":4893} 
[2026-02-24 17:05:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4900,"items_count":3,"items":[{"menu_item_id":161,"quantity":1,"price":"1399.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-24 17:05:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4900,"item_index":0,"item_data":{"menu_item_id":161,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Kabab Crust Pizza - Medium","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4900}} 
[2026-02-24 17:05:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4900,"item_index":0,"menu_item_id":161} 
[2026-02-24 17:05:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4900,"item_index":1,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4900}} 
[2026-02-24 17:05:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4900,"item_index":1,"menu_item_id":403} 
[2026-02-24 17:05:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4900,"item_index":2,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4900}} 
[2026-02-24 17:05:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4900,"item_index":2,"menu_item_id":3} 
[2026-02-24 17:05:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4893,"new_order_id":4900,"order_number":"AZS-240226-015"} 
[2026-02-24 17:10:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":4900,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":161,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":24125},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":24126},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24127}],"validated_items":[{"id":24125,"menu_item_id":161,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":24126,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":24127,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-24 17:10:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4900,"items_count":3} 
[2026-02-24 17:10:19] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24125,"menu_item_id":161,"quantity":1},{"id":24126,"menu_item_id":403,"quantity":1},{"id":24127,"menu_item_id":3,"quantity":1}]} 
[2026-02-24 17:10:19] local.INFO: PosOrderController::update - Item changes check {"order_id":4900,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["161|1|","403|1|","3|1|"],"new_items_map_keys":["161|1|","403|1|","3|1|"]} 
[2026-02-24 17:10:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4900,"order_number":"AZS-240226-015"} 
[2026-02-24 17:10:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4900,"order_number":"AZS-240226-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-24 17:10:19"} 
[2026-02-24 17:16:41] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4900,"order_number":"AZS-240226-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2119,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 17:16:41"} 
[2026-02-24 17:16:41] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4900,"order_number":"AZS-240226-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2119,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 17:16:41"} 
[2026-02-24 17:16:41] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4900,"order_number":"AZS-240226-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2119,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 17:16:41"} 
[2026-02-24 17:16:41] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4900,"order_number":"AZS-240226-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2119,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 17:16:41"} 
[2026-02-24 17:16:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":4900,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":161,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":24125},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":24126},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24127}],"validated_items":[{"id":24125,"menu_item_id":161,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":24126,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":24127,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-24 17:16:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4900,"items_count":3} 
[2026-02-24 17:16:41] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24125,"menu_item_id":161,"quantity":1},{"id":24126,"menu_item_id":403,"quantity":1},{"id":24127,"menu_item_id":3,"quantity":1}]} 
[2026-02-24 17:16:41] local.INFO: PosOrderController::update - Item changes check {"order_id":4900,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["161|1|","403|1|","3|1|"],"new_items_map_keys":["161|1|","403|1|","3|1|"]} 
[2026-02-24 17:16:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4900,"order_number":"AZS-240226-015"} 
[2026-02-24 17:16:41] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4900,"order_number":"AZS-240226-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2119,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-24 17:16:41","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 17:16:41"} 
[2026-02-24 17:16:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4900,"order_number":"AZS-240226-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 17:16:41"} 
[2026-02-24 17:16:41] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4900,"order_number":"AZS-240226-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2119.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-24 17:16:41","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2119,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2119.00","database_verification_match":true,"timestamp":"2026-02-24 17:16:41"} 
[2026-02-24 17:24:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":4891,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":24088},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":24089},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24090},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24091},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24092},{"menu_item_id":29,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":24088,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":24089,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"id":24090,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":24091,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":24092,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-02-24 17:24:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4891,"items_count":6} 
[2026-02-24 17:24:23] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24088,"menu_item_id":105,"quantity":1},{"id":24089,"menu_item_id":48,"quantity":1},{"id":24090,"menu_item_id":61,"quantity":1},{"id":24091,"menu_item_id":56,"quantity":1},{"id":24092,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":29,"quantity":3}]} 
[2026-02-24 17:24:23] local.INFO: PosOrderController::update - Item changes check {"order_id":4891,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["105|1|","48|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","48|1|","61|1|","56|1|","5|1|","29|3|"]} 
[2026-02-24 17:24:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4891,"order_number":"AZS-240226-014"} 
[2026-02-24 17:24:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-014","replaced_order_id":4891} 
[2026-02-24 17:24:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4901,"items_count":6,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":29,"quantity":3,"price":"250.00"}]} 
[2026-02-24 17:24:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4901,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4901}} 
[2026-02-24 17:24:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4901,"item_index":0,"menu_item_id":105} 
[2026-02-24 17:24:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4901,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4901}} 
[2026-02-24 17:24:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4901,"item_index":1,"menu_item_id":48} 
[2026-02-24 17:24:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4901,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4901}} 
[2026-02-24 17:24:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4901,"item_index":2,"menu_item_id":61} 
[2026-02-24 17:24:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4901,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4901}} 
[2026-02-24 17:24:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4901,"item_index":3,"menu_item_id":56} 
[2026-02-24 17:24:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4901,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4901}} 
[2026-02-24 17:24:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4901,"item_index":4,"menu_item_id":5} 
[2026-02-24 17:24:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4901,"item_index":5,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":3,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":750.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4901}} 
[2026-02-24 17:24:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4901,"item_index":5,"menu_item_id":29} 
[2026-02-24 17:24:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4891,"new_order_id":4901,"order_number":"AZS-240226-014"} 
[2026-02-24 17:25:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":4896,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"discount_percent":0,"notes":null,"id":24107},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":24107,"menu_item_id":384,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-24 17:25:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4896,"items_count":2} 
[2026-02-24 17:25:43] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24107,"menu_item_id":384,"quantity":1},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-02-24 17:25:43] local.INFO: PosOrderController::update - Item changes check {"order_id":4896,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["384|1|"],"new_items_map_keys":["384|1|","6|2|"]} 
[2026-02-24 17:25:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4896,"order_number":"AZS-240226-016"} 
[2026-02-24 17:25:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-016","replaced_order_id":4896} 
[2026-02-24 17:25:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4902,"items_count":2,"items":[{"menu_item_id":384,"quantity":1,"price":"1399.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-02-24 17:25:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4902,"item_index":0,"item_data":{"menu_item_id":384,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 03","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4902}} 
[2026-02-24 17:25:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4902,"item_index":0,"menu_item_id":384} 
[2026-02-24 17:25:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4902,"item_index":1,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4902}} 
[2026-02-24 17:25:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4902,"item_index":1,"menu_item_id":6} 
[2026-02-24 17:25:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4896,"new_order_id":4902,"order_number":"AZS-240226-016"} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":4897,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null,"id":24108},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":24109},{"menu_item_id":1,"quantity":1,"discount_percent":0,"notes":null,"id":24110},{"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null,"id":24111},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null,"id":24112},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null,"id":24113},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24108,"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null},{"id":24109,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"id":24110,"menu_item_id":1,"quantity":1,"discount_percent":0,"notes":null},{"id":24111,"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null},{"id":24112,"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"id":24113,"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4897,"items_count":9} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24108,"menu_item_id":138,"quantity":1},{"id":24109,"menu_item_id":3,"quantity":1},{"id":24110,"menu_item_id":1,"quantity":1},{"id":24111,"menu_item_id":163,"quantity":2},{"id":24112,"menu_item_id":13,"quantity":1},{"id":24113,"menu_item_id":4,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Item changes check {"order_id":4897,"has_item_changes":true,"old_items_count":6,"new_items_count":9,"old_items_map_keys":["138|1|","3|1|","1|1|","163|2|","13|1|","4|1|"],"new_items_map_keys":["138|1|","3|1|","1|1|","163|2|","13|1|","4|1|","61|1|","56|1|","5|1|"]} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4897,"order_number":"AZS-240226-011"} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-011","replaced_order_id":4897} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4903,"items_count":9,"items":[{"menu_item_id":138,"quantity":1,"price":"2199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":1,"quantity":1,"price":"170.00"},{"menu_item_id":163,"quantity":2,"price":"1050.00"},{"menu_item_id":13,"quantity":1,"price":"249.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4903,"item_index":0,"item_data":{"menu_item_id":138,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Large","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4903}} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4903,"item_index":0,"menu_item_id":138} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4903,"item_index":1,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4903}} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4903,"item_index":1,"menu_item_id":3} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4903,"item_index":2,"item_data":{"menu_item_id":1,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Can","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4903}} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4903,"item_index":2,"menu_item_id":1} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4903,"item_index":3,"item_data":{"menu_item_id":163,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Azan Special Sandwich","quantity":2,"price":"1050.00","discount_percent":0.0,"discount_amount":0.0,"total":2100.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4903}} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4903,"item_index":3,"menu_item_id":163} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4903,"item_index":4,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4903}} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4903,"item_index":4,"menu_item_id":13} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4903,"item_index":5,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4903}} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4903,"item_index":5,"menu_item_id":4} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4903,"item_index":6,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4903}} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4903,"item_index":6,"menu_item_id":61} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4903,"item_index":7,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4903}} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4903,"item_index":7,"menu_item_id":56} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4903,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4903}} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4903,"item_index":8,"menu_item_id":5} 
[2026-02-24 17:30:29] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4897,"new_order_id":4903,"order_number":"AZS-240226-011"} 
[2026-02-24 17:36:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":4901,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":24128},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":24129},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24130},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24131},{"menu_item_id":29,"quantity":3,"discount_percent":0,"notes":null,"id":24133}],"validated_items":[{"id":24128,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":24129,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"id":24130,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":24131,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":24133,"menu_item_id":29,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-02-24 17:36:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4901,"items_count":5} 
[2026-02-24 17:36:55] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[24132],"items":[{"id":24128,"menu_item_id":105,"quantity":1},{"id":24129,"menu_item_id":48,"quantity":1},{"id":24130,"menu_item_id":61,"quantity":1},{"id":24131,"menu_item_id":56,"quantity":1},{"id":24133,"menu_item_id":29,"quantity":3}]} 
[2026-02-24 17:36:55] local.INFO: PosOrderController::update - Item changes check {"order_id":4901,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["105|1|","48|1|","61|1|","56|1|","5|1|","29|3|"],"new_items_map_keys":["105|1|","48|1|","61|1|","56|1|","29|3|"]} 
[2026-02-24 17:36:55] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4901,"order_number":"AZS-240226-014"} 
[2026-02-24 17:36:55] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-014","replaced_order_id":4901} 
[2026-02-24 17:36:55] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4905,"items_count":5,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":29,"quantity":3,"price":"250.00"}]} 
[2026-02-24 17:36:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4905,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4905}} 
[2026-02-24 17:36:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4905,"item_index":0,"menu_item_id":105} 
[2026-02-24 17:36:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4905,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4905}} 
[2026-02-24 17:36:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4905,"item_index":1,"menu_item_id":48} 
[2026-02-24 17:36:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4905,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4905}} 
[2026-02-24 17:36:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4905,"item_index":2,"menu_item_id":61} 
[2026-02-24 17:36:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4905,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4905}} 
[2026-02-24 17:36:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4905,"item_index":3,"menu_item_id":56} 
[2026-02-24 17:36:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4905,"item_index":4,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":3,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":750.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4905}} 
[2026-02-24 17:36:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4905,"item_index":4,"menu_item_id":29} 
[2026-02-24 17:36:55] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4901,"new_order_id":4905,"order_number":"AZS-240226-014"} 
[2026-02-24 17:38:02] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4899,"order_number":"AZS-240226-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2050,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 17:38:02"} 
[2026-02-24 17:38:02] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4899,"order_number":"AZS-240226-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2050,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 17:38:02"} 
[2026-02-24 17:38:02] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4899,"order_number":"AZS-240226-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2050,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 17:38:02"} 
[2026-02-24 17:38:02] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4899,"order_number":"AZS-240226-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2050,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 17:38:02"} 
[2026-02-24 17:38:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":4899,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24119},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24120},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":24121},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24122},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":24123},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":24124}],"validated_items":[{"id":24119,"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":24120,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":24121,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":24122,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24123,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":24124,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-24 17:38:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4899,"items_count":6} 
[2026-02-24 17:38:02] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24119,"menu_item_id":100,"quantity":1},{"id":24120,"menu_item_id":396,"quantity":1},{"id":24121,"menu_item_id":50,"quantity":1},{"id":24122,"menu_item_id":56,"quantity":1},{"id":24123,"menu_item_id":2,"quantity":1},{"id":24124,"menu_item_id":4,"quantity":1}]} 
[2026-02-24 17:38:02] local.INFO: PosOrderController::update - Item changes check {"order_id":4899,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["100|1|","396|1|","50|1|","56|1|","2|1|","4|1|"],"new_items_map_keys":["100|1|","396|1|","50|1|","56|1|","2|1|","4|1|"]} 
[2026-02-24 17:38:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4899,"order_number":"AZS-240226-013"} 
[2026-02-24 17:38:02] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4899,"order_number":"AZS-240226-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2050,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-24 17:38:02","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 17:38:02"} 
[2026-02-24 17:38:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4899,"order_number":"AZS-240226-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 17:38:02"} 
[2026-02-24 17:38:02] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4899,"order_number":"AZS-240226-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2050.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-24 17:38:02","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2050,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2050.00","database_verification_match":true,"timestamp":"2026-02-24 17:38:02"} 
[2026-02-24 17:38:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T05:38:05.874Z","date_to":"2026-02-24T17:38:05.874Z","per_page":"100"} 
[2026-02-24 17:38:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","pending","changed","paid","changed","pending","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":19,"paid_count":12,"unpaid_count":5,"unique_order_numbers":17} 
[2026-02-24 17:38:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T05:38:05.859Z","date_to":"2026-02-24T17:38:05.859Z","per_page":"100"} 
[2026-02-24 17:38:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","pending","changed","paid","changed","pending","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":19,"paid_count":12,"unpaid_count":5,"unique_order_numbers":17} 
[2026-02-24 17:38:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T05:38:05.859Z","date_to":"2026-02-24T17:38:05.859Z","per_page":"100"} 
[2026-02-24 17:38:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","pending","changed","paid","changed","pending","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":19,"paid_count":12,"unpaid_count":5,"unique_order_numbers":17} 
[2026-02-24 17:41:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":4905,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":24150},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":24151},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24152},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24153},{"menu_item_id":29,"quantity":3,"discount_percent":0,"notes":null,"id":24154}],"validated_items":[{"id":24150,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":24151,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"id":24152,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":24153,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":24154,"menu_item_id":29,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-02-24 17:41:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4905,"items_count":5} 
[2026-02-24 17:41:11] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24150,"menu_item_id":105,"quantity":1},{"id":24151,"menu_item_id":48,"quantity":1},{"id":24152,"menu_item_id":61,"quantity":1},{"id":24153,"menu_item_id":56,"quantity":1},{"id":24154,"menu_item_id":29,"quantity":3}]} 
[2026-02-24 17:41:11] local.INFO: PosOrderController::update - Item changes check {"order_id":4905,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","48|1|","61|1|","56|1|","29|3|"],"new_items_map_keys":["105|1|","48|1|","61|1|","56|1|","29|3|"]} 
[2026-02-24 17:41:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4905,"order_number":"AZS-240226-014"} 
[2026-02-24 17:41:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4905,"order_number":"AZS-240226-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-24 17:41:11"} 
[2026-02-24 17:41:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":4905,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":24150},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":24151},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24152},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24153},{"menu_item_id":29,"quantity":3,"price":250,"discount_percent":0,"notes":null,"id":24154}],"validated_items":[{"id":24150,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":24151,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":24152,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24153,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24154,"menu_item_id":29,"quantity":3,"price":250,"discount_percent":0,"notes":null}]} 
[2026-02-24 17:41:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4905,"items_count":5} 
[2026-02-24 17:41:15] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24150,"menu_item_id":105,"quantity":1},{"id":24151,"menu_item_id":48,"quantity":1},{"id":24152,"menu_item_id":61,"quantity":1},{"id":24153,"menu_item_id":56,"quantity":1},{"id":24154,"menu_item_id":29,"quantity":3}]} 
[2026-02-24 17:41:15] local.INFO: PosOrderController::update - Item changes check {"order_id":4905,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","48|1|","61|1|","56|1|","29|3|"],"new_items_map_keys":["105|1|","48|1|","61|1|","56|1|","29|3|"]} 
[2026-02-24 17:41:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4905,"order_number":"AZS-240226-014"} 
[2026-02-24 17:41:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4905,"order_number":"AZS-240226-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-24 17:41:15"} 
[2026-02-24 17:41:20] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4905,"order_number":"AZS-240226-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3777,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 17:41:20"} 
[2026-02-24 17:41:20] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4905,"order_number":"AZS-240226-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3777,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 17:41:20"} 
[2026-02-24 17:41:20] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4905,"order_number":"AZS-240226-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3777,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 17:41:20"} 
[2026-02-24 17:41:20] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4905,"order_number":"AZS-240226-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3777,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 17:41:20"} 
[2026-02-24 17:41:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":4905,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":24150},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":24151},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24152},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24153},{"menu_item_id":29,"quantity":3,"price":250,"discount_percent":0,"notes":null,"id":24154}],"validated_items":[{"id":24150,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":24151,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":24152,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24153,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24154,"menu_item_id":29,"quantity":3,"price":250,"discount_percent":0,"notes":null}]} 
[2026-02-24 17:41:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4905,"items_count":5} 
[2026-02-24 17:41:20] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24150,"menu_item_id":105,"quantity":1},{"id":24151,"menu_item_id":48,"quantity":1},{"id":24152,"menu_item_id":61,"quantity":1},{"id":24153,"menu_item_id":56,"quantity":1},{"id":24154,"menu_item_id":29,"quantity":3}]} 
[2026-02-24 17:41:20] local.INFO: PosOrderController::update - Item changes check {"order_id":4905,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","48|1|","61|1|","56|1|","29|3|"],"new_items_map_keys":["105|1|","48|1|","61|1|","56|1|","29|3|"]} 
[2026-02-24 17:41:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4905,"order_number":"AZS-240226-014"} 
[2026-02-24 17:41:20] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4905,"order_number":"AZS-240226-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3777,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-24 17:41:20","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 17:41:20"} 
[2026-02-24 17:41:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4905,"order_number":"AZS-240226-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 17:41:20"} 
[2026-02-24 17:41:20] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4905,"order_number":"AZS-240226-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3777.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-24 17:41:20","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3777,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3777.00","database_verification_match":true,"timestamp":"2026-02-24 17:41:20"} 
[2026-02-24 17:41:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T05:41:24.232Z","date_to":"2026-02-24T17:41:24.232Z","per_page":"100"} 
[2026-02-24 17:41:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","pending","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":19,"paid_count":13,"unpaid_count":4,"unique_order_numbers":17} 
[2026-02-24 17:41:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T05:41:24.247Z","date_to":"2026-02-24T17:41:24.247Z","per_page":"100"} 
[2026-02-24 17:41:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","pending","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":19,"paid_count":13,"unpaid_count":4,"unique_order_numbers":17} 
[2026-02-24 17:41:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T05:41:24.232Z","date_to":"2026-02-24T17:41:24.232Z","per_page":"100"} 
[2026-02-24 17:41:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","pending","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":19,"paid_count":13,"unpaid_count":4,"unique_order_numbers":17} 
[2026-02-24 17:41:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":4903,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":24136},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24137},{"menu_item_id":1,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24138},{"menu_item_id":163,"quantity":2,"price":1050,"discount_percent":0,"notes":null,"id":24139},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":24140},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":24141},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24142},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24143},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24144}],"validated_items":[{"id":24136,"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":24137,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":24138,"menu_item_id":1,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24139,"menu_item_id":163,"quantity":2,"price":1050,"discount_percent":0,"notes":null},{"id":24140,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":24141,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"id":24142,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24143,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24144,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-24 17:41:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4903,"items_count":9} 
[2026-02-24 17:41:45] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24136,"menu_item_id":138,"quantity":1},{"id":24137,"menu_item_id":3,"quantity":1},{"id":24138,"menu_item_id":1,"quantity":1},{"id":24139,"menu_item_id":163,"quantity":2},{"id":24140,"menu_item_id":13,"quantity":1},{"id":24141,"menu_item_id":4,"quantity":1},{"id":24142,"menu_item_id":61,"quantity":1},{"id":24143,"menu_item_id":56,"quantity":1},{"id":24144,"menu_item_id":5,"quantity":1}]} 
[2026-02-24 17:41:45] local.INFO: PosOrderController::update - Item changes check {"order_id":4903,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["138|1|","3|1|","1|1|","163|2|","13|1|","4|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["138|1|","3|1|","1|1|","163|2|","13|1|","4|1|","61|1|","56|1|","5|1|"]} 
[2026-02-24 17:41:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4903,"order_number":"AZS-240226-011"} 
[2026-02-24 17:41:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4903,"order_number":"AZS-240226-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-02-24 17:41:45"} 
[2026-02-24 17:41:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":4903,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":24136},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24137},{"menu_item_id":1,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24138},{"menu_item_id":163,"quantity":2,"price":1050,"discount_percent":0,"notes":null,"id":24139},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":24140},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":24141},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24142},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24143},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24144}],"validated_items":[{"id":24136,"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":24137,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":24138,"menu_item_id":1,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24139,"menu_item_id":163,"quantity":2,"price":1050,"discount_percent":0,"notes":null},{"id":24140,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":24141,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"id":24142,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24143,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24144,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-24 17:41:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4903,"items_count":9} 
[2026-02-24 17:41:54] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24136,"menu_item_id":138,"quantity":1},{"id":24137,"menu_item_id":3,"quantity":1},{"id":24138,"menu_item_id":1,"quantity":1},{"id":24139,"menu_item_id":163,"quantity":2},{"id":24140,"menu_item_id":13,"quantity":1},{"id":24141,"menu_item_id":4,"quantity":1},{"id":24142,"menu_item_id":61,"quantity":1},{"id":24143,"menu_item_id":56,"quantity":1},{"id":24144,"menu_item_id":5,"quantity":1}]} 
[2026-02-24 17:41:54] local.INFO: PosOrderController::update - Item changes check {"order_id":4903,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["138|1|","3|1|","1|1|","163|2|","13|1|","4|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["138|1|","3|1|","1|1|","163|2|","13|1|","4|1|","61|1|","56|1|","5|1|"]} 
[2026-02-24 17:41:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4903,"order_number":"AZS-240226-011"} 
[2026-02-24 17:41:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4903,"order_number":"AZS-240226-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-02-24 17:41:54"} 
[2026-02-24 17:42:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T05:42:01.980Z","date_to":"2026-02-24T17:42:01.980Z","per_page":"100"} 
[2026-02-24 17:42:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T05:42:01.967Z","date_to":"2026-02-24T17:42:01.967Z","per_page":"100"} 
[2026-02-24 17:42:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","pending","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":19,"paid_count":13,"unpaid_count":4,"unique_order_numbers":17} 
[2026-02-24 17:42:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","pending","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":19,"paid_count":13,"unpaid_count":4,"unique_order_numbers":17} 
[2026-02-24 17:42:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T05:42:01.967Z","date_to":"2026-02-24T17:42:01.967Z","per_page":"100"} 
[2026-02-24 17:42:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","pending","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":19,"paid_count":13,"unpaid_count":4,"unique_order_numbers":17} 
[2026-02-24 17:43:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":4902,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":24134},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24135}],"validated_items":[{"id":24134,"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":24135,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-24 17:43:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4902,"items_count":2} 
[2026-02-24 17:43:23] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24134,"menu_item_id":384,"quantity":1},{"id":24135,"menu_item_id":6,"quantity":2}]} 
[2026-02-24 17:43:23] local.INFO: PosOrderController::update - Item changes check {"order_id":4902,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["384|1|","6|2|"],"new_items_map_keys":["384|1|","6|2|"]} 
[2026-02-24 17:43:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4902,"order_number":"AZS-240226-016"} 
[2026-02-24 17:43:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4902,"order_number":"AZS-240226-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-24 17:43:23"} 
[2026-02-24 17:51:16] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4902,"order_number":"AZS-240226-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1890,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 17:51:16"} 
[2026-02-24 17:51:16] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4902,"order_number":"AZS-240226-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1890,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 17:51:16"} 
[2026-02-24 17:51:16] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4902,"order_number":"AZS-240226-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1890,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 17:51:16"} 
[2026-02-24 17:51:16] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4902,"order_number":"AZS-240226-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1890,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 17:51:16"} 
[2026-02-24 17:51:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":4902,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":24134},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24135}],"validated_items":[{"id":24134,"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":24135,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-24 17:51:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4902,"items_count":2} 
[2026-02-24 17:51:16] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24134,"menu_item_id":384,"quantity":1},{"id":24135,"menu_item_id":6,"quantity":2}]} 
[2026-02-24 17:51:16] local.INFO: PosOrderController::update - Item changes check {"order_id":4902,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["384|1|","6|2|"],"new_items_map_keys":["384|1|","6|2|"]} 
[2026-02-24 17:51:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4902,"order_number":"AZS-240226-016"} 
[2026-02-24 17:51:16] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4902,"order_number":"AZS-240226-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1890,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-24 17:51:16","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 17:51:16"} 
[2026-02-24 17:51:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4902,"order_number":"AZS-240226-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 17:51:16"} 
[2026-02-24 17:51:16] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4902,"order_number":"AZS-240226-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1890.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-24 17:51:16","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1890,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1890.00","database_verification_match":true,"timestamp":"2026-02-24 17:51:16"} 
[2026-02-24 17:51:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T05:51:26.016Z","date_to":"2026-02-24T17:51:26.016Z","per_page":"100"} 
[2026-02-24 17:51:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T05:51:26.028Z","date_to":"2026-02-24T17:51:26.028Z","per_page":"100"} 
[2026-02-24 17:51:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","pending","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":19,"paid_count":14,"unpaid_count":4,"unique_order_numbers":18} 
[2026-02-24 17:51:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","pending","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":19,"paid_count":14,"unpaid_count":4,"unique_order_numbers":18} 
[2026-02-24 17:51:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T05:51:26.016Z","date_to":"2026-02-24T17:51:26.016Z","per_page":"100"} 
[2026-02-24 17:51:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","pending","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":19,"paid_count":14,"unpaid_count":4,"unique_order_numbers":18} 
[2026-02-24 18:13:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4906,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":24155}],"validated_items":[{"id":24155,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-02-24 18:13:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4906,"items_count":1} 
[2026-02-24 18:13:41] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24155,"menu_item_id":13,"quantity":2}]} 
[2026-02-24 18:13:41] local.INFO: PosOrderController::update - Item changes check {"order_id":4906,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|2|"]} 
[2026-02-24 18:13:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4906,"order_number":"AZS-240226-018"} 
[2026-02-24 18:13:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4906,"order_number":"AZS-240226-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-24 18:13:41"} 
[2026-02-24 18:22:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":4904,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":24145},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":24146},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24147},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24148},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24149}],"validated_items":[{"id":24145,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":24146,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":24147,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24148,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24149,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-24 18:22:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4904,"items_count":5} 
[2026-02-24 18:22:57] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24145,"menu_item_id":105,"quantity":1},{"id":24146,"menu_item_id":396,"quantity":3},{"id":24147,"menu_item_id":61,"quantity":1},{"id":24148,"menu_item_id":56,"quantity":1},{"id":24149,"menu_item_id":5,"quantity":1}]} 
[2026-02-24 18:22:57] local.INFO: PosOrderController::update - Item changes check {"order_id":4904,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","396|3|","61|1|","56|1|","5|1|"]} 
[2026-02-24 18:22:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4904,"order_number":"AZS-240226-017"} 
[2026-02-24 18:22:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4904,"order_number":"AZS-240226-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-24 18:22:57"} 
[2026-02-24 18:28:08] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4904,"order_number":"AZS-240226-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3217,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 18:28:08"} 
[2026-02-24 18:28:08] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4904,"order_number":"AZS-240226-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3217,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 18:28:08"} 
[2026-02-24 18:28:08] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4904,"order_number":"AZS-240226-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3217,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 18:28:08"} 
[2026-02-24 18:28:08] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4904,"order_number":"AZS-240226-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3217,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 18:28:08"} 
[2026-02-24 18:28:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":4904,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":24145},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":24146},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24147},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24148},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24149}],"validated_items":[{"id":24145,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":24146,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":24147,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24148,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24149,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-24 18:28:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4904,"items_count":5} 
[2026-02-24 18:28:08] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24145,"menu_item_id":105,"quantity":1},{"id":24146,"menu_item_id":396,"quantity":3},{"id":24147,"menu_item_id":61,"quantity":1},{"id":24148,"menu_item_id":56,"quantity":1},{"id":24149,"menu_item_id":5,"quantity":1}]} 
[2026-02-24 18:28:08] local.INFO: PosOrderController::update - Item changes check {"order_id":4904,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","396|3|","61|1|","56|1|","5|1|"]} 
[2026-02-24 18:28:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4904,"order_number":"AZS-240226-017"} 
[2026-02-24 18:28:08] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4904,"order_number":"AZS-240226-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3217,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-24 18:28:08","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 18:28:08"} 
[2026-02-24 18:28:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4904,"order_number":"AZS-240226-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 18:28:08"} 
[2026-02-24 18:28:08] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4904,"order_number":"AZS-240226-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3217.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-24 18:28:08","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3217,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3217.00","database_verification_match":true,"timestamp":"2026-02-24 18:28:08"} 
[2026-02-24 18:28:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T06:28:14.279Z","date_to":"2026-02-24T18:28:14.279Z","per_page":"100"} 
[2026-02-24 18:28:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T06:28:14.254Z","date_to":"2026-02-24T18:28:14.254Z","per_page":"100"} 
[2026-02-24 18:28:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":19,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-02-24 18:28:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":19,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-02-24 18:28:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T06:28:14.254Z","date_to":"2026-02-24T18:28:14.254Z","per_page":"100"} 
[2026-02-24 18:28:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":19,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-02-24 18:28:49] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4906,"order_number":"AZS-240226-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":530,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 18:28:49"} 
[2026-02-24 18:28:49] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4906,"order_number":"AZS-240226-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":530,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 18:28:49"} 
[2026-02-24 18:28:49] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4906,"order_number":"AZS-240226-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":530,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 18:28:49"} 
[2026-02-24 18:28:49] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4906,"order_number":"AZS-240226-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":530,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 18:28:49"} 
[2026-02-24 18:28:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4906,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":24155}],"validated_items":[{"id":24155,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-02-24 18:28:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4906,"items_count":1} 
[2026-02-24 18:28:49] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24155,"menu_item_id":13,"quantity":2}]} 
[2026-02-24 18:28:49] local.INFO: PosOrderController::update - Item changes check {"order_id":4906,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|2|"]} 
[2026-02-24 18:28:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4906,"order_number":"AZS-240226-018"} 
[2026-02-24 18:28:49] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4906,"order_number":"AZS-240226-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":530,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-24 18:28:49","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 18:28:49"} 
[2026-02-24 18:28:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4906,"order_number":"AZS-240226-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 18:28:49"} 
[2026-02-24 18:28:49] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4906,"order_number":"AZS-240226-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"530.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-24 18:28:49","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":530,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"530.00","database_verification_match":true,"timestamp":"2026-02-24 18:28:49"} 
[2026-02-24 18:29:52] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4903,"order_number":"AZS-240226-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5646,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 18:29:52"} 
[2026-02-24 18:29:52] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4903,"order_number":"AZS-240226-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5646,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 18:29:52"} 
[2026-02-24 18:29:52] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4903,"order_number":"AZS-240226-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5646,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 18:29:52"} 
[2026-02-24 18:29:52] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4903,"order_number":"AZS-240226-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5646,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 18:29:52"} 
[2026-02-24 18:29:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":4903,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":24136},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24137},{"menu_item_id":1,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24138},{"menu_item_id":163,"quantity":2,"price":1050,"discount_percent":0,"notes":null,"id":24139},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":24140},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":24141},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24142},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24143},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24144}],"validated_items":[{"id":24136,"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":24137,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":24138,"menu_item_id":1,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24139,"menu_item_id":163,"quantity":2,"price":1050,"discount_percent":0,"notes":null},{"id":24140,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":24141,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"id":24142,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24143,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24144,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-24 18:29:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4903,"items_count":9} 
[2026-02-24 18:29:52] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24136,"menu_item_id":138,"quantity":1},{"id":24137,"menu_item_id":3,"quantity":1},{"id":24138,"menu_item_id":1,"quantity":1},{"id":24139,"menu_item_id":163,"quantity":2},{"id":24140,"menu_item_id":13,"quantity":1},{"id":24141,"menu_item_id":4,"quantity":1},{"id":24142,"menu_item_id":61,"quantity":1},{"id":24143,"menu_item_id":56,"quantity":1},{"id":24144,"menu_item_id":5,"quantity":1}]} 
[2026-02-24 18:29:52] local.INFO: PosOrderController::update - Item changes check {"order_id":4903,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["138|1|","3|1|","1|1|","163|2|","13|1|","4|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["138|1|","3|1|","1|1|","163|2|","13|1|","4|1|","61|1|","56|1|","5|1|"]} 
[2026-02-24 18:29:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4903,"order_number":"AZS-240226-011"} 
[2026-02-24 18:29:52] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4903,"order_number":"AZS-240226-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5646,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-24 18:29:52","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 18:29:52"} 
[2026-02-24 18:29:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4903,"order_number":"AZS-240226-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 18:29:52"} 
[2026-02-24 18:29:52] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4903,"order_number":"AZS-240226-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5646.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-24 18:29:52","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5646,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5646.00","database_verification_match":true,"timestamp":"2026-02-24 18:29:52"} 
[2026-02-24 18:29:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T06:29:55.953Z","date_to":"2026-02-24T18:29:55.953Z","per_page":"100"} 
[2026-02-24 18:29:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T06:29:55.930Z","date_to":"2026-02-24T18:29:55.930Z","per_page":"100"} 
[2026-02-24 18:29:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":19,"paid_count":17,"unpaid_count":1,"unique_order_numbers":18} 
[2026-02-24 18:29:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":19,"paid_count":17,"unpaid_count":1,"unique_order_numbers":18} 
[2026-02-24 18:29:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T06:29:55.930Z","date_to":"2026-02-24T18:29:55.930Z","per_page":"100"} 
[2026-02-24 18:29:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":19,"paid_count":17,"unpaid_count":1,"unique_order_numbers":18} 
[2026-02-24 20:14:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T08:14:03.173Z","date_to":"2026-02-24T20:14:03.173Z","per_page":"100"} 
[2026-02-24 20:14:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T08:14:03.151Z","date_to":"2026-02-24T20:14:03.151Z","per_page":"100"} 
[2026-02-24 20:14:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":19,"paid_count":17,"unpaid_count":1,"unique_order_numbers":18} 
[2026-02-24 20:14:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":19,"paid_count":17,"unpaid_count":1,"unique_order_numbers":18} 
[2026-02-24 20:14:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T08:14:03.151Z","date_to":"2026-02-24T20:14:03.151Z","per_page":"100"} 
[2026-02-24 20:14:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":19,"paid_count":17,"unpaid_count":1,"unique_order_numbers":18} 
[2026-02-24 20:14:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T08:14:03.151Z","date_to":"2026-02-24T20:14:03.151Z","per_page":"100"} 
[2026-02-24 20:14:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":19,"paid_count":17,"unpaid_count":1,"unique_order_numbers":18} 
[2026-02-24 20:51:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":4908,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":24157},{"menu_item_id":23,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":24,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24157,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":23,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":24,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 20:51:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4908,"items_count":3} 
[2026-02-24 20:51:41] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24157,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":23,"quantity":1},{"id":null,"menu_item_id":24,"quantity":1}]} 
[2026-02-24 20:51:41] local.INFO: PosOrderController::update - Item changes check {"order_id":4908,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|","23|1|","24|1|"]} 
[2026-02-24 20:51:41] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4908,"order_number":"AZS-240226-020"} 
[2026-02-24 20:51:41] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-020","replaced_order_id":4908} 
[2026-02-24 20:51:41] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4909,"items_count":3,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":23,"quantity":1,"price":"249.00"},{"menu_item_id":24,"quantity":1,"price":"249.00"}]} 
[2026-02-24 20:51:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4909,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4909}} 
[2026-02-24 20:51:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4909,"item_index":0,"menu_item_id":411} 
[2026-02-24 20:51:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4909,"item_index":1,"item_data":{"menu_item_id":23,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Vanilla","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4909}} 
[2026-02-24 20:51:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4909,"item_index":1,"menu_item_id":23} 
[2026-02-24 20:51:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4909,"item_index":2,"item_data":{"menu_item_id":24,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Mango","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4909}} 
[2026-02-24 20:51:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4909,"item_index":2,"menu_item_id":24} 
[2026-02-24 20:51:41] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4908,"new_order_id":4909,"order_number":"AZS-240226-020"} 
[2026-02-24 21:06:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":4910,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 21:06:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4910,"items_count":1} 
[2026-02-24 21:06:30] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[24161],"items":[{"id":null,"menu_item_id":385,"quantity":1}]} 
[2026-02-24 21:06:30] local.INFO: PosOrderController::update - Item changes check {"order_id":4910,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["385|1|"]} 
[2026-02-24 21:06:30] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4910,"order_number":"AZS-240226-021"} 
[2026-02-24 21:06:30] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-021","replaced_order_id":4910} 
[2026-02-24 21:06:30] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4911,"items_count":1,"items":[{"menu_item_id":385,"quantity":1,"price":"2899.00"}]} 
[2026-02-24 21:06:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4911,"item_index":0,"item_data":{"menu_item_id":385,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 02","quantity":1,"price":"2899.00","discount_percent":0.0,"discount_amount":0.0,"total":2899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4911}} 
[2026-02-24 21:06:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4911,"item_index":0,"menu_item_id":385} 
[2026-02-24 21:06:30] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4910,"new_order_id":4911,"order_number":"AZS-240226-021"} 
[2026-02-24 21:08:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":4911,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null}]} 
[2026-02-24 21:08:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4911,"items_count":1} 
[2026-02-24 21:08:22] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[24162],"items":[{"id":null,"menu_item_id":385,"quantity":1}]} 
[2026-02-24 21:08:22] local.INFO: PosOrderController::update - Item changes check {"order_id":4911,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-02-24 21:08:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4911,"order_number":"AZS-240226-021"} 
[2026-02-24 21:08:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4911,"order_number":"AZS-240226-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-02-24 21:08:22"} 
[2026-02-24 21:18:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":4909,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":24158},{"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":24159},{"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":24160}],"validated_items":[{"id":24158,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":24159,"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":24160,"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-02-24 21:18:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4909,"items_count":3} 
[2026-02-24 21:18:52] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24158,"menu_item_id":411,"quantity":1},{"id":24159,"menu_item_id":23,"quantity":1},{"id":24160,"menu_item_id":24,"quantity":1}]} 
[2026-02-24 21:18:52] local.INFO: PosOrderController::update - Item changes check {"order_id":4909,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|1|","23|1|","24|1|"],"new_items_map_keys":["411|1|","23|1|","24|1|"]} 
[2026-02-24 21:18:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4909,"order_number":"AZS-240226-020"} 
[2026-02-24 21:18:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4909,"order_number":"AZS-240226-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-24 21:18:52"} 
[2026-02-24 21:53:18] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4909,"order_number":"AZS-240226-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1097,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 21:53:18"} 
[2026-02-24 21:53:18] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4909,"order_number":"AZS-240226-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1097,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 21:53:18"} 
[2026-02-24 21:53:18] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4909,"order_number":"AZS-240226-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1097,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 21:53:18"} 
[2026-02-24 21:53:18] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4909,"order_number":"AZS-240226-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1097,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 21:53:18"} 
[2026-02-24 21:53:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":4909,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":24158},{"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":24159},{"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":24160}],"validated_items":[{"id":24158,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":24159,"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":24160,"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-02-24 21:53:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4909,"items_count":3} 
[2026-02-24 21:53:18] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24158,"menu_item_id":411,"quantity":1},{"id":24159,"menu_item_id":23,"quantity":1},{"id":24160,"menu_item_id":24,"quantity":1}]} 
[2026-02-24 21:53:18] local.INFO: PosOrderController::update - Item changes check {"order_id":4909,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|1|","23|1|","24|1|"],"new_items_map_keys":["411|1|","23|1|","24|1|"]} 
[2026-02-24 21:53:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4909,"order_number":"AZS-240226-020"} 
[2026-02-24 21:53:18] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4909,"order_number":"AZS-240226-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1097,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-24 21:53:18","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 21:53:18"} 
[2026-02-24 21:53:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4909,"order_number":"AZS-240226-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 21:53:18"} 
[2026-02-24 21:53:18] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4909,"order_number":"AZS-240226-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1097.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-24 21:53:18","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1097,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1097.00","database_verification_match":true,"timestamp":"2026-02-24 21:53:18"} 
[2026-02-24 22:07:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4911,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null,"id":24162}],"validated_items":[{"id":24162,"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 22:07:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4911,"items_count":1} 
[2026-02-24 22:07:11] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24162,"menu_item_id":385,"quantity":1}]} 
[2026-02-24 22:07:11] local.INFO: PosOrderController::update - Item changes check {"order_id":4911,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-02-24 22:07:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4911,"order_number":"AZS-240226-021"} 
[2026-02-24 22:07:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4911,"order_number":"AZS-240226-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-02-24 22:07:11"} 
[2026-02-24 22:08:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4911,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":24162}],"validated_items":[{"id":24162,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null}]} 
[2026-02-24 22:08:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4911,"items_count":1} 
[2026-02-24 22:08:08] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24162,"menu_item_id":385,"quantity":1}]} 
[2026-02-24 22:08:08] local.INFO: PosOrderController::update - Item changes check {"order_id":4911,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-02-24 22:08:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4911,"order_number":"AZS-240226-021"} 
[2026-02-24 22:08:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4911,"order_number":"AZS-240226-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-02-24 22:08:08"} 
[2026-02-24 22:08:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4911,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null,"id":24162}],"validated_items":[{"id":24162,"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 22:08:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4911,"items_count":1} 
[2026-02-24 22:08:12] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24162,"menu_item_id":385,"quantity":1}]} 
[2026-02-24 22:08:12] local.INFO: PosOrderController::update - Item changes check {"order_id":4911,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-02-24 22:08:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4911,"order_number":"AZS-240226-021"} 
[2026-02-24 22:08:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4911,"order_number":"AZS-240226-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-02-24 22:08:12"} 
[2026-02-24 22:08:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4911,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null,"id":24162}],"validated_items":[{"id":24162,"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 22:08:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4911,"items_count":1} 
[2026-02-24 22:08:22] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24162,"menu_item_id":385,"quantity":1}]} 
[2026-02-24 22:08:22] local.INFO: PosOrderController::update - Item changes check {"order_id":4911,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-02-24 22:08:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4911,"order_number":"AZS-240226-021"} 
[2026-02-24 22:08:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4911,"order_number":"AZS-240226-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-02-24 22:08:22"} 
[2026-02-24 22:08:36] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4911,"order_number":"AZS-240226-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2899,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 22:08:36"} 
[2026-02-24 22:08:36] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4911,"order_number":"AZS-240226-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2899,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 22:08:36"} 
[2026-02-24 22:08:36] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4911,"order_number":"AZS-240226-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2899,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 22:08:36"} 
[2026-02-24 22:08:36] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4911,"order_number":"AZS-240226-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2899,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 22:08:36"} 
[2026-02-24 22:08:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4911,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":24162}],"validated_items":[{"id":24162,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null}]} 
[2026-02-24 22:08:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4911,"items_count":1} 
[2026-02-24 22:08:36] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24162,"menu_item_id":385,"quantity":1}]} 
[2026-02-24 22:08:36] local.INFO: PosOrderController::update - Item changes check {"order_id":4911,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-02-24 22:08:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4911,"order_number":"AZS-240226-021"} 
[2026-02-24 22:08:36] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4911,"order_number":"AZS-240226-021","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2899,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-24 22:08:36","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 22:08:36"} 
[2026-02-24 22:08:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4911,"order_number":"AZS-240226-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 22:08:36"} 
[2026-02-24 22:08:36] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4911,"order_number":"AZS-240226-021","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2899.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-24 22:08:36","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2899,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2899.00","database_verification_match":true,"timestamp":"2026-02-24 22:08:36"} 
[2026-02-24 22:08:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T10:08:39.308Z","date_to":"2026-02-24T22:08:39.308Z","per_page":"100"} 
[2026-02-24 22:08:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":43,"count":43,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","paid","changed","paid","changed","pending","paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":21,"paid_count":19,"unpaid_count":3,"unique_order_numbers":22} 
[2026-02-24 22:08:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T10:08:39.292Z","date_to":"2026-02-24T22:08:39.292Z","per_page":"100"} 
[2026-02-24 22:08:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":43,"count":43,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","paid","changed","paid","changed","pending","paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":21,"paid_count":19,"unpaid_count":3,"unique_order_numbers":22} 
[2026-02-24 22:08:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T10:08:39.292Z","date_to":"2026-02-24T22:08:39.292Z","per_page":"100"} 
[2026-02-24 22:08:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":43,"count":43,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","paid","changed","paid","changed","pending","paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":21,"paid_count":19,"unpaid_count":3,"unique_order_numbers":22} 
[2026-02-24 22:23:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":4912,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":24163},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null}],"validated_items":[{"id":24163,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null}]} 
[2026-02-24 22:23:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4912,"items_count":2} 
[2026-02-24 22:23:42] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24163,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":49,"quantity":2}]} 
[2026-02-24 22:23:42] local.INFO: PosOrderController::update - Item changes check {"order_id":4912,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|","49|2|"]} 
[2026-02-24 22:23:42] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4912,"order_number":"AZS-240226-022"} 
[2026-02-24 22:23:42] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-022","replaced_order_id":4912} 
[2026-02-24 22:23:42] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4913,"items_count":2,"items":[{"menu_item_id":411,"quantity":1,"price":599.0},{"menu_item_id":49,"quantity":2,"price":70.0}]} 
[2026-02-24 22:23:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4913,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":599.0,"discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4913}} 
[2026-02-24 22:23:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4913,"item_index":0,"menu_item_id":411} 
[2026-02-24 22:23:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4913,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":2,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4913}} 
[2026-02-24 22:23:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4913,"item_index":1,"menu_item_id":49} 
[2026-02-24 22:23:42] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4912,"new_order_id":4913,"order_number":"AZS-240226-022"} 
[2026-02-24 22:23:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4913,"item_index":0,"item_id":24163} 
[2026-02-24 22:23:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":4913,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":24163},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null}]} 
[2026-02-24 22:23:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4913,"items_count":2} 
[2026-02-24 22:23:50] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[24164,24165],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":49,"quantity":2}]} 
[2026-02-24 22:23:50] local.INFO: PosOrderController::update - Item changes check {"order_id":4913,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","49|2|"],"new_items_map_keys":["411|1|","49|2|"]} 
[2026-02-24 22:23:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4913,"order_number":"AZS-240226-022"} 
[2026-02-24 22:23:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4913,"order_number":"AZS-240226-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-24 22:23:50"} 
[2026-02-24 22:55:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4913,"item_index":0,"item_id":24163} 
[2026-02-24 22:55:21] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4913,"order_number":"AZS-240226-022","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 22:55:21"} 
[2026-02-24 22:55:21] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4913,"order_number":"AZS-240226-022","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 22:55:21"} 
[2026-02-24 22:55:21] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4913,"order_number":"AZS-240226-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 22:55:21"} 
[2026-02-24 22:55:21] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4913,"order_number":"AZS-240226-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 22:55:21"} 
[2026-02-24 22:55:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":4913,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":24163},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null}]} 
[2026-02-24 22:55:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4913,"items_count":2} 
[2026-02-24 22:55:21] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[24164,24165],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":49,"quantity":2}]} 
[2026-02-24 22:55:21] local.INFO: PosOrderController::update - Item changes check {"order_id":4913,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","49|2|"],"new_items_map_keys":["411|1|","49|2|"]} 
[2026-02-24 22:55:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4913,"order_number":"AZS-240226-022"} 
[2026-02-24 22:55:21] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4913,"order_number":"AZS-240226-022","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-24 22:55:21","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 22:55:21"} 
[2026-02-24 22:55:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4913,"order_number":"AZS-240226-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 22:55:21"} 
[2026-02-24 22:55:21] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4913,"order_number":"AZS-240226-022","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-24 22:55:21","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-02-24 22:55:21"} 
[2026-02-24 23:28:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T11:28:50.238Z","date_to":"2026-02-24T23:28:50.238Z","per_page":"100"} 
[2026-02-24 23:28:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":45,"count":45,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","paid","changed","paid","changed","paid","changed","pending","paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":22,"paid_count":20,"unpaid_count":3,"unique_order_numbers":23} 
[2026-02-24 23:28:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T11:28:50.255Z","date_to":"2026-02-24T23:28:50.255Z","per_page":"100"} 
[2026-02-24 23:28:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":45,"count":45,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","paid","changed","paid","changed","paid","changed","pending","paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":22,"paid_count":20,"unpaid_count":3,"unique_order_numbers":23} 
[2026-02-24 23:28:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T11:28:50.238Z","date_to":"2026-02-24T23:28:50.238Z","per_page":"100"} 
[2026-02-24 23:28:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":45,"count":45,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","paid","changed","paid","changed","paid","changed","pending","paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":22,"paid_count":20,"unpaid_count":3,"unique_order_numbers":23} 
[2026-02-24 23:30:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":4914,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":24166},{"menu_item_id":416,"quantity":8,"discount_percent":0,"notes":null,"id":24167}],"validated_items":[{"id":24166,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":24167,"menu_item_id":416,"quantity":8,"discount_percent":0,"notes":null}]} 
[2026-02-24 23:30:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4914,"items_count":2} 
[2026-02-24 23:30:22] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24166,"menu_item_id":411,"quantity":2},{"id":24167,"menu_item_id":416,"quantity":8}]} 
[2026-02-24 23:30:22] local.INFO: PosOrderController::update - Item changes check {"order_id":4914,"has_item_changes":true,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|2|","416|2|"],"new_items_map_keys":["411|2|","416|8|"]} 
[2026-02-24 23:30:22] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4914,"order_number":"AZS-240226-023"} 
[2026-02-24 23:30:22] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-023","replaced_order_id":4914} 
[2026-02-24 23:30:22] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4915,"items_count":2,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":416,"quantity":8,"price":"70.00"}]} 
[2026-02-24 23:30:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4915,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4915}} 
[2026-02-24 23:30:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4915,"item_index":0,"menu_item_id":411} 
[2026-02-24 23:30:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4915,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":8,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":560.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4915}} 
[2026-02-24 23:30:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4915,"item_index":1,"menu_item_id":416} 
[2026-02-24 23:30:22] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4914,"new_order_id":4915,"order_number":"AZS-240226-023"} 
[2026-02-24 23:31:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T11:31:07.382Z","date_to":"2026-02-24T23:31:07.382Z","per_page":"100"} 
[2026-02-24 23:31:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":46,"count":46,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","changed","paid","changed","paid","changed","paid","changed","pending","paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":23,"paid_count":20,"unpaid_count":3,"unique_order_numbers":23} 
[2026-02-24 23:31:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T11:31:07.405Z","date_to":"2026-02-24T23:31:07.405Z","per_page":"100"} 
[2026-02-24 23:31:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":46,"count":46,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","changed","paid","changed","paid","changed","paid","changed","pending","paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":23,"paid_count":20,"unpaid_count":3,"unique_order_numbers":23} 
[2026-02-24 23:31:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T11:31:07.382Z","date_to":"2026-02-24T23:31:07.382Z","per_page":"100"} 
[2026-02-24 23:31:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":46,"count":46,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","changed","paid","changed","paid","changed","paid","changed","pending","paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":23,"paid_count":20,"unpaid_count":3,"unique_order_numbers":23} 
[2026-02-24 23:33:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T11:33:52.380Z","date_to":"2026-02-24T23:33:52.380Z","per_page":"100"} 
[2026-02-24 23:33:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":46,"count":46,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","changed","paid","changed","paid","changed","paid","changed","pending","paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":23,"paid_count":20,"unpaid_count":3,"unique_order_numbers":23} 
[2026-02-24 23:33:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T11:33:52.364Z","date_to":"2026-02-24T23:33:52.364Z","per_page":"100"} 
[2026-02-24 23:33:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":46,"count":46,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","changed","paid","changed","paid","changed","paid","changed","pending","paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":23,"paid_count":20,"unpaid_count":3,"unique_order_numbers":23} 
[2026-02-24 23:33:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T11:33:52.364Z","date_to":"2026-02-24T23:33:52.364Z","per_page":"100"} 
[2026-02-24 23:33:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":46,"count":46,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","changed","paid","changed","paid","changed","paid","changed","pending","paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","pending","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":23,"paid_count":20,"unpaid_count":3,"unique_order_numbers":23} 
[2026-02-24 23:41:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":4915,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":24168},{"menu_item_id":416,"quantity":8,"discount_percent":0,"notes":null,"id":24169},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24168,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":24169,"menu_item_id":416,"quantity":8,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-24 23:41:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4915,"items_count":3} 
[2026-02-24 23:41:34] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24168,"menu_item_id":411,"quantity":2},{"id":24169,"menu_item_id":416,"quantity":8},{"id":null,"menu_item_id":425,"quantity":1}]} 
[2026-02-24 23:41:34] local.INFO: PosOrderController::update - Item changes check {"order_id":4915,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["411|2|","416|8|"],"new_items_map_keys":["411|2|","416|8|","425|1|"]} 
[2026-02-24 23:41:34] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4915,"order_number":"AZS-240226-023"} 
[2026-02-24 23:41:34] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-023","replaced_order_id":4915} 
[2026-02-24 23:41:34] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4917,"items_count":3,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":416,"quantity":8,"price":"70.00"},{"menu_item_id":425,"quantity":1,"price":"99.00"}]} 
[2026-02-24 23:41:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4917,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4917}} 
[2026-02-24 23:41:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4917,"item_index":0,"menu_item_id":411} 
[2026-02-24 23:41:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4917,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":8,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":560.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4917}} 
[2026-02-24 23:41:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4917,"item_index":1,"menu_item_id":416} 
[2026-02-24 23:41:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4917,"item_index":2,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4917}} 
[2026-02-24 23:41:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4917,"item_index":2,"menu_item_id":425} 
[2026-02-24 23:41:34] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4915,"new_order_id":4917,"order_number":"AZS-240226-023"} 
[2026-02-24 23:51:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":4917,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":24172},{"menu_item_id":416,"quantity":8,"price":70,"discount_percent":0,"notes":null,"id":24173},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24174}],"validated_items":[{"id":24172,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":24173,"menu_item_id":416,"quantity":8,"price":70,"discount_percent":0,"notes":null},{"id":24174,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-02-24 23:51:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4917,"items_count":3} 
[2026-02-24 23:51:25] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24172,"menu_item_id":411,"quantity":2},{"id":24173,"menu_item_id":416,"quantity":8},{"id":24174,"menu_item_id":425,"quantity":1}]} 
[2026-02-24 23:51:25] local.INFO: PosOrderController::update - Item changes check {"order_id":4917,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|2|","416|8|","425|1|"],"new_items_map_keys":["411|2|","416|8|","425|1|"]} 
[2026-02-24 23:51:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4917,"order_number":"AZS-240226-023"} 
[2026-02-24 23:51:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4917,"order_number":"AZS-240226-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-24 23:51:25"} 
[2026-02-24 23:53:48] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4917,"order_number":"AZS-240226-023","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 23:53:48"} 
[2026-02-24 23:53:48] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4917,"order_number":"AZS-240226-023","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 23:53:48"} 
[2026-02-24 23:53:48] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4917,"order_number":"AZS-240226-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 23:53:48"} 
[2026-02-24 23:53:48] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4917,"order_number":"AZS-240226-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 23:53:48"} 
[2026-02-24 23:53:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":4917,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":24172},{"menu_item_id":416,"quantity":8,"price":70,"discount_percent":0,"notes":null,"id":24173},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24174}],"validated_items":[{"id":24172,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":24173,"menu_item_id":416,"quantity":8,"price":70,"discount_percent":0,"notes":null},{"id":24174,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-02-24 23:53:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4917,"items_count":3} 
[2026-02-24 23:53:48] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24172,"menu_item_id":411,"quantity":2},{"id":24173,"menu_item_id":416,"quantity":8},{"id":24174,"menu_item_id":425,"quantity":1}]} 
[2026-02-24 23:53:48] local.INFO: PosOrderController::update - Item changes check {"order_id":4917,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|2|","416|8|","425|1|"],"new_items_map_keys":["411|2|","416|8|","425|1|"]} 
[2026-02-24 23:53:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4917,"order_number":"AZS-240226-023"} 
[2026-02-24 23:53:48] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4917,"order_number":"AZS-240226-023","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-24 23:53:48","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 23:53:48"} 
[2026-02-24 23:53:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4917,"order_number":"AZS-240226-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 23:53:48"} 
[2026-02-24 23:53:48] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4917,"order_number":"AZS-240226-023","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-24 23:53:48","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-02-24 23:53:48"} 
[2026-02-24 23:56:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":4916,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null,"id":24170},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":24171}],"validated_items":[{"id":24170,"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null},{"id":24171,"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null}]} 
[2026-02-24 23:56:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4916,"items_count":2} 
[2026-02-24 23:56:39] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24170,"menu_item_id":414,"quantity":1},{"id":24171,"menu_item_id":49,"quantity":2}]} 
[2026-02-24 23:56:39] local.INFO: PosOrderController::update - Item changes check {"order_id":4916,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["414|1|","49|2|"],"new_items_map_keys":["414|1|","49|2|"]} 
[2026-02-24 23:56:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4916,"order_number":"AZS-240226-024"} 
[2026-02-24 23:56:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4916,"order_number":"AZS-240226-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-24 23:56:39"} 
[2026-02-24 23:57:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":4918,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null,"id":24175},{"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null,"id":24176}],"validated_items":[{"id":24175,"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null},{"id":24176,"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null}]} 
[2026-02-24 23:57:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4918,"items_count":2} 
[2026-02-24 23:57:15] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24175,"menu_item_id":414,"quantity":1},{"id":24176,"menu_item_id":286,"quantity":3}]} 
[2026-02-24 23:57:15] local.INFO: PosOrderController::update - Item changes check {"order_id":4918,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["414|1|","286|3|"],"new_items_map_keys":["414|1|","286|3|"]} 
[2026-02-24 23:57:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4918,"order_number":"AZS-240226-025"} 
[2026-02-24 23:57:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4918,"order_number":"AZS-240226-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-24 23:57:15"} 
[2026-02-24 23:57:58] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4907,"order_number":"AZS-240226-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1400,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 23:57:58"} 
[2026-02-24 23:57:58] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4907,"order_number":"AZS-240226-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1400,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 23:57:58"} 
[2026-02-24 23:57:58] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4907,"order_number":"AZS-240226-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1400,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 23:57:58"} 
[2026-02-24 23:57:58] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4907,"order_number":"AZS-240226-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1400,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 23:57:58"} 
[2026-02-24 23:57:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4907,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":161,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":24156}],"validated_items":[{"id":24156,"menu_item_id":161,"quantity":1,"price":1399,"discount_percent":0,"notes":null}]} 
[2026-02-24 23:57:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4907,"items_count":1} 
[2026-02-24 23:57:58] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24156,"menu_item_id":161,"quantity":1}]} 
[2026-02-24 23:57:58] local.INFO: PosOrderController::update - Item changes check {"order_id":4907,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["161|1|"],"new_items_map_keys":["161|1|"]} 
[2026-02-24 23:57:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4907,"order_number":"AZS-240226-019"} 
[2026-02-24 23:57:58] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4907,"order_number":"AZS-240226-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1400,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-24 23:57:58","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 23:57:58"} 
[2026-02-24 23:57:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4907,"order_number":"AZS-240226-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 23:57:58"} 
[2026-02-24 23:57:58] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4907,"order_number":"AZS-240226-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1400.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-24 23:57:58","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1400,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1400.00","database_verification_match":true,"timestamp":"2026-02-24 23:57:58"} 
[2026-02-24 23:58:48] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4916,"order_number":"AZS-240226-024","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":300,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 23:58:48"} 
[2026-02-24 23:58:48] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4916,"order_number":"AZS-240226-024","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":300,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-24 23:58:48"} 
[2026-02-24 23:58:48] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4916,"order_number":"AZS-240226-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 23:58:48"} 
[2026-02-24 23:58:48] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4916,"order_number":"AZS-240226-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-24 23:58:48"} 
[2026-02-24 23:58:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":4916,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null,"id":24170},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":24171}],"validated_items":[{"id":24170,"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null},{"id":24171,"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null}]} 
[2026-02-24 23:58:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4916,"items_count":2} 
[2026-02-24 23:58:48] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24170,"menu_item_id":414,"quantity":1},{"id":24171,"menu_item_id":49,"quantity":2}]} 
[2026-02-24 23:58:48] local.INFO: PosOrderController::update - Item changes check {"order_id":4916,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["414|1|","49|2|"],"new_items_map_keys":["414|1|","49|2|"]} 
[2026-02-24 23:58:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4916,"order_number":"AZS-240226-024"} 
[2026-02-24 23:58:48] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4916,"order_number":"AZS-240226-024","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":300,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-24 23:58:48","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-24 23:58:48"} 
[2026-02-24 23:58:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4916,"order_number":"AZS-240226-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-24 23:58:48"} 
[2026-02-24 23:58:48] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4916,"order_number":"AZS-240226-024","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"300.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-24 23:58:48","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":300,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"300.00","database_verification_match":true,"timestamp":"2026-02-24 23:58:48"} 
[2026-02-25 00:08:36] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4881,"order_number":"AZS-240226-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":398,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 00:08:36"} 
[2026-02-25 00:08:36] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4881,"order_number":"AZS-240226-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":398,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 00:08:36"} 
[2026-02-25 00:08:36] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4881,"order_number":"AZS-240226-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":398,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 00:08:36"} 
[2026-02-25 00:08:36] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4881,"order_number":"AZS-240226-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":398,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 00:08:36"} 
[2026-02-25 00:08:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4881,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24046}],"validated_items":[{"id":24046,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-25 00:08:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4881,"items_count":1} 
[2026-02-25 00:08:36] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24046,"menu_item_id":6,"quantity":2}]} 
[2026-02-25 00:08:36] local.INFO: PosOrderController::update - Item changes check {"order_id":4881,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-02-25 00:08:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4881,"order_number":"AZS-240226-009"} 
[2026-02-25 00:08:36] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4881,"order_number":"AZS-240226-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":398,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-25 00:08:36","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 00:08:36"} 
[2026-02-25 00:08:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4881,"order_number":"AZS-240226-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 00:08:36"} 
[2026-02-25 00:08:36] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4881,"order_number":"AZS-240226-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"398.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-25 00:08:36","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":398,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"398.00","database_verification_match":true,"timestamp":"2026-02-25 00:08:36"} 
[2026-02-25 00:08:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T12:08:44.667Z","date_to":"2026-02-25T00:08:44.667Z","per_page":"100"} 
[2026-02-25 00:08:45] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":49,"count":49,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-025","AZS-240226-024","AZS-240226-023","AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","paid","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":24,"paid_count":24,"unpaid_count":1,"unique_order_numbers":25} 
[2026-02-25 00:08:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T12:08:44.684Z","date_to":"2026-02-25T00:08:44.684Z","per_page":"100"} 
[2026-02-25 00:08:45] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":49,"count":49,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-025","AZS-240226-024","AZS-240226-023","AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","paid","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":24,"paid_count":24,"unpaid_count":1,"unique_order_numbers":25} 
[2026-02-25 00:08:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T12:08:44.667Z","date_to":"2026-02-25T00:08:44.667Z","per_page":"100"} 
[2026-02-25 00:08:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":49,"count":49,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-025","AZS-240226-024","AZS-240226-023","AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["pending","paid","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":24,"paid_count":24,"unpaid_count":1,"unique_order_numbers":25} 
[2026-02-25 00:09:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":4918,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":414,"quantity":1,"discount_percent":0,"notes":null,"id":24175},{"menu_item_id":286,"quantity":3,"discount_percent":0,"notes":null,"id":24176},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24175,"menu_item_id":414,"quantity":1,"discount_percent":0,"notes":null},{"id":24176,"menu_item_id":286,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 00:09:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4918,"items_count":3} 
[2026-02-25 00:09:07] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24175,"menu_item_id":414,"quantity":1},{"id":24176,"menu_item_id":286,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 00:09:07] local.INFO: PosOrderController::update - Item changes check {"order_id":4918,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["414|1|","286|3|"],"new_items_map_keys":["414|1|","286|3|","5|1|"]} 
[2026-02-25 00:09:07] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4918,"order_number":"AZS-240226-025"} 
[2026-02-25 00:09:07] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240226-025","replaced_order_id":4918} 
[2026-02-25 00:09:07] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4919,"items_count":3,"items":[{"menu_item_id":414,"quantity":1,"price":"150.00"},{"menu_item_id":286,"quantity":3,"price":"15.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-25 00:09:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4919,"item_index":0,"item_data":{"menu_item_id":414,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sada Channy","quantity":1,"price":"150.00","discount_percent":0.0,"discount_amount":0.0,"total":150.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4919}} 
[2026-02-25 00:09:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4919,"item_index":0,"menu_item_id":414} 
[2026-02-25 00:09:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4919,"item_index":1,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":3,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":45.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4919}} 
[2026-02-25 00:09:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4919,"item_index":1,"menu_item_id":286} 
[2026-02-25 00:09:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4919,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4919}} 
[2026-02-25 00:09:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4919,"item_index":2,"menu_item_id":5} 
[2026-02-25 00:09:07] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4918,"new_order_id":4919,"order_number":"AZS-240226-025"} 
[2026-02-25 00:09:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4919,"item_index":0,"item_id":24175} 
[2026-02-25 00:09:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4919,"item_index":1,"item_id":24176} 
[2026-02-25 00:09:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":4919,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null,"id":24175},{"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null,"id":24176},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-25 00:09:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4919,"items_count":3} 
[2026-02-25 00:09:13] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[24177,24178,24179],"items":[{"id":null,"menu_item_id":414,"quantity":1},{"id":null,"menu_item_id":286,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 00:09:13] local.INFO: PosOrderController::update - Item changes check {"order_id":4919,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["414|1|","286|3|","5|1|"],"new_items_map_keys":["414|1|","286|3|","5|1|"]} 
[2026-02-25 00:09:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4919,"order_number":"AZS-240226-025"} 
[2026-02-25 00:09:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4919,"order_number":"AZS-240226-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 00:09:13"} 
[2026-02-25 00:13:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4919,"item_index":0,"item_id":24175} 
[2026-02-25 00:13:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4919,"item_index":1,"item_id":24176} 
[2026-02-25 00:13:32] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4919,"order_number":"AZS-240226-025","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":365,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 00:13:32"} 
[2026-02-25 00:13:32] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4919,"order_number":"AZS-240226-025","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":365,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 00:13:32"} 
[2026-02-25 00:13:32] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4919,"order_number":"AZS-240226-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":365,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 00:13:32"} 
[2026-02-25 00:13:32] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4919,"order_number":"AZS-240226-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":365,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 00:13:32"} 
[2026-02-25 00:13:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":4919,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null,"id":24175},{"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null,"id":24176},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-25 00:13:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4919,"items_count":3} 
[2026-02-25 00:13:32] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[24177,24178,24179],"items":[{"id":null,"menu_item_id":414,"quantity":1},{"id":null,"menu_item_id":286,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 00:13:32] local.INFO: PosOrderController::update - Item changes check {"order_id":4919,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["414|1|","286|3|","5|1|"],"new_items_map_keys":["414|1|","286|3|","5|1|"]} 
[2026-02-25 00:13:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4919,"order_number":"AZS-240226-025"} 
[2026-02-25 00:13:32] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4919,"order_number":"AZS-240226-025","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":365,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-25 00:13:32","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 00:13:32"} 
[2026-02-25 00:13:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4919,"order_number":"AZS-240226-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 00:13:32"} 
[2026-02-25 00:13:32] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4919,"order_number":"AZS-240226-025","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"365.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-25 00:13:32","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":365,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"365.00","database_verification_match":true,"timestamp":"2026-02-25 00:13:32"} 
[2026-02-25 00:13:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T12:13:37.574Z","date_to":"2026-02-25T00:13:37.574Z","per_page":"100"} 
[2026-02-25 00:13:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":50,"count":50,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-025","AZS-240226-025","AZS-240226-024","AZS-240226-023","AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":25,"paid_count":25,"unpaid_count":0,"unique_order_numbers":25} 
[2026-02-25 00:13:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T12:13:37.586Z","date_to":"2026-02-25T00:13:37.586Z","per_page":"100"} 
[2026-02-25 00:13:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":50,"count":50,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-025","AZS-240226-025","AZS-240226-024","AZS-240226-023","AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":25,"paid_count":25,"unpaid_count":0,"unique_order_numbers":25} 
[2026-02-25 00:13:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T12:13:37.574Z","date_to":"2026-02-25T00:13:37.574Z","per_page":"100"} 
[2026-02-25 00:13:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":50,"count":50,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-025","AZS-240226-025","AZS-240226-024","AZS-240226-023","AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":25,"paid_count":25,"unpaid_count":0,"unique_order_numbers":25} 
[2026-02-25 05:07:02] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T17:07:00.658Z","date_to":"2026-02-25T05:07:00.658Z","per_page":"100"} 
[2026-02-25 05:07:02] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T17:07:00.694Z","date_to":"2026-02-25T05:07:00.694Z","per_page":"100"} 
[2026-02-25 05:07:02] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-025","AZS-240226-025","AZS-240226-024","AZS-240226-023","AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017"],"order_statuses":["paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","paid","paid"],"deleted_count":6,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-02-25 05:07:02] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-025","AZS-240226-025","AZS-240226-024","AZS-240226-023","AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017"],"order_statuses":["paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","paid","paid"],"deleted_count":6,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-02-25 05:07:03] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T17:07:00.658Z","date_to":"2026-02-25T05:07:00.658Z","per_page":"100"} 
[2026-02-25 05:07:03] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-025","AZS-240226-025","AZS-240226-024","AZS-240226-023","AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017"],"order_statuses":["paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","paid","paid"],"deleted_count":6,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-02-25 06:00:09] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T18:00:08.280Z","date_to":"2026-02-25T06:00:08.280Z","per_page":"100"} 
[2026-02-25 06:00:09] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-025","AZS-240226-025","AZS-240226-024","AZS-240226-023","AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019"],"order_statuses":["paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":6,"paid_count":7,"unpaid_count":0,"unique_order_numbers":7} 
[2026-02-25 06:00:09] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T18:00:08.280Z","date_to":"2026-02-25T06:00:08.280Z","per_page":"100"} 
[2026-02-25 06:00:09] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-025","AZS-240226-025","AZS-240226-024","AZS-240226-023","AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019"],"order_statuses":["paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":6,"paid_count":7,"unpaid_count":0,"unique_order_numbers":7} 
[2026-02-25 06:00:19] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T06:00:18.656Z","date_to":"2026-02-25T06:00:18.656Z","per_page":"100"} 
[2026-02-25 06:00:19] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":50,"count":50,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-025","AZS-240226-025","AZS-240226-024","AZS-240226-023","AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":25,"paid_count":25,"unpaid_count":0,"unique_order_numbers":25} 
[2026-02-25 06:00:28] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T06:00:18.656Z","date_to":"2026-02-25T06:00:18.656Z","per_page":"100"} 
[2026-02-25 06:00:28] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":50,"count":50,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-025","AZS-240226-025","AZS-240226-024","AZS-240226-023","AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","paid","paid","paid","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","paid","changed"],"deleted_count":25,"paid_count":25,"unpaid_count":0,"unique_order_numbers":25} 
[2026-02-25 06:00:58] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T06:00:58.344Z","date_to":"2026-02-25T06:00:58.344Z","per_page":"100"} 
[2026-02-25 06:00:58] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-025","AZS-240226-024","AZS-240226-023","AZS-240226-022","AZS-240226-021","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-015","AZS-240226-014","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":0,"unique_order_numbers":25} 
[2026-02-25 06:06:56] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T18:06:56.060Z","date_to":"2026-02-25T06:06:56.060Z","per_page":"100"} 
[2026-02-25 06:06:56] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-025","AZS-240226-025","AZS-240226-024","AZS-240226-023","AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019"],"order_statuses":["paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":6,"paid_count":7,"unpaid_count":0,"unique_order_numbers":7} 
[2026-02-25 06:06:56] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T18:06:56.043Z","date_to":"2026-02-25T06:06:56.043Z","per_page":"100"} 
[2026-02-25 06:06:56] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-025","AZS-240226-025","AZS-240226-024","AZS-240226-023","AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019"],"order_statuses":["paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":6,"paid_count":7,"unpaid_count":0,"unique_order_numbers":7} 
[2026-02-25 06:06:57] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T18:06:56.043Z","date_to":"2026-02-25T06:06:56.043Z","per_page":"100"} 
[2026-02-25 06:06:57] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-025","AZS-240226-025","AZS-240226-024","AZS-240226-023","AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019"],"order_statuses":["paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":6,"paid_count":7,"unpaid_count":0,"unique_order_numbers":7} 
[2026-02-25 06:07:15] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T18:07:14.763Z","date_to":"2026-02-25T06:07:14.763Z","per_page":"100"} 
[2026-02-25 06:07:15] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-025","AZS-240226-025","AZS-240226-024","AZS-240226-023","AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019"],"order_statuses":["paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":6,"paid_count":7,"unpaid_count":0,"unique_order_numbers":7} 
[2026-02-25 06:07:15] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T18:07:14.787Z","date_to":"2026-02-25T06:07:14.787Z","per_page":"100"} 
[2026-02-25 06:07:15] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-025","AZS-240226-025","AZS-240226-024","AZS-240226-023","AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019"],"order_statuses":["paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":6,"paid_count":7,"unpaid_count":0,"unique_order_numbers":7} 
[2026-02-25 06:07:16] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T18:07:14.763Z","date_to":"2026-02-25T06:07:14.763Z","per_page":"100"} 
[2026-02-25 06:07:16] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-025","AZS-240226-025","AZS-240226-024","AZS-240226-023","AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019"],"order_statuses":["paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":6,"paid_count":7,"unpaid_count":0,"unique_order_numbers":7} 
[2026-02-25 06:07:21] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T18:07:14.787Z","date_to":"2026-02-25T06:07:14.787Z","per_page":"100"} 
[2026-02-25 06:07:21] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-025","AZS-240226-025","AZS-240226-024","AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019"],"order_statuses":["paid","changed","paid","paid","changed","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":5,"paid_count":7,"unpaid_count":0,"unique_order_numbers":7} 
[2026-02-25 06:07:46] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T06:07:46.431Z","date_to":"2026-02-25T06:07:46.431Z","per_page":"100"} 
[2026-02-25 06:07:46] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240226-025","AZS-240226-025","AZS-240226-024","AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["paid","changed","paid","paid","changed","paid","changed","paid","changed","paid","changed","paid","paid","paid","paid","changed","paid","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","paid","paid","paid","paid","paid","changed","paid","changed"],"deleted_count":14,"paid_count":25,"unpaid_count":0,"unique_order_numbers":25} 
[2026-02-25 06:08:51] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-24T06:07:46.431Z","date_to":"2026-02-25T06:07:46.431Z","per_page":"150"} 
[2026-02-25 06:08:51] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":150,"order_branch_ids":[1],"order_numbers":["AZS-240226-025","AZS-240226-025","AZS-240226-024","AZS-240226-023","AZS-240226-023","AZS-240226-022","AZS-240226-022","AZS-240226-021","AZS-240226-021","AZS-240226-020","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-016","AZS-240226-015","AZS-240226-015","AZS-240226-014","AZS-240226-014","AZS-240226-013","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-011","AZS-240226-010","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-002","AZS-240226-001","AZS-240226-001"],"order_statuses":["paid","changed","paid","paid","changed","paid","changed","paid","changed","paid","changed","paid","paid","paid","paid","changed","paid","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","paid","paid","paid","paid","paid","changed","paid","changed"],"deleted_count":14,"paid_count":25,"unpaid_count":0,"unique_order_numbers":25} 
[2026-02-25 06:23:23] local.INFO: Login attempt {"email":"mr@pos.com","ip":"182.176.113.26"} 
[2026-02-25 06:41:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":4920,"user_id":9,"user_role":"restaurant_owner","request_items":"yes","request_items_raw":[{"menu_item_id":281,"quantity":1,"discount_percent":0,"notes":null,"id":24180},{"menu_item_id":213,"quantity":1,"discount_percent":0,"notes":null,"id":24181},{"menu_item_id":211,"quantity":1,"discount_percent":0,"notes":null,"id":24182},{"menu_item_id":209,"quantity":1,"discount_percent":0,"notes":null,"id":24183}],"validated_items":[{"id":24180,"menu_item_id":281,"quantity":1,"discount_percent":0,"notes":null},{"id":24181,"menu_item_id":213,"quantity":1,"discount_percent":0,"notes":null},{"id":24182,"menu_item_id":211,"quantity":1,"discount_percent":0,"notes":null},{"id":24183,"menu_item_id":209,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 06:41:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4920,"items_count":4} 
[2026-02-25 06:41:30] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24180,"menu_item_id":281,"quantity":1},{"id":24181,"menu_item_id":213,"quantity":1},{"id":24182,"menu_item_id":211,"quantity":1},{"id":24183,"menu_item_id":209,"quantity":1}]} 
[2026-02-25 06:41:30] local.INFO: PosOrderController::update - Item changes check {"order_id":4920,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["281|1|","213|1|","211|1|","209|1|"],"new_items_map_keys":["281|1|","213|1|","211|1|","209|1|"]} 
[2026-02-25 06:41:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4920,"order_number":"BISM2-250226-001"} 
[2026-02-25 06:41:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4920,"order_number":"BISM2-250226-001","user_id":9,"user_role":"restaurant_owner","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-02-25 06:41:30"} 
[2026-02-25 06:41:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":4920,"user_id":9,"user_role":"restaurant_owner","request_items":"yes","request_items_raw":[{"menu_item_id":281,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24180},{"menu_item_id":213,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24181},{"menu_item_id":211,"quantity":1,"price":80,"discount_percent":0,"notes":null,"id":24182},{"menu_item_id":209,"quantity":1,"price":80,"discount_percent":0,"notes":null,"id":24183}],"validated_items":[{"id":24180,"menu_item_id":281,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":24181,"menu_item_id":213,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":24182,"menu_item_id":211,"quantity":1,"price":80,"discount_percent":0,"notes":null},{"id":24183,"menu_item_id":209,"quantity":1,"price":80,"discount_percent":0,"notes":null}]} 
[2026-02-25 06:41:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4920,"items_count":4} 
[2026-02-25 06:41:39] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24180,"menu_item_id":281,"quantity":1},{"id":24181,"menu_item_id":213,"quantity":1},{"id":24182,"menu_item_id":211,"quantity":1},{"id":24183,"menu_item_id":209,"quantity":1}]} 
[2026-02-25 06:41:39] local.INFO: PosOrderController::update - Item changes check {"order_id":4920,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["281|1|","213|1|","211|1|","209|1|"],"new_items_map_keys":["281|1|","213|1|","211|1|","209|1|"]} 
[2026-02-25 06:41:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4920,"order_number":"BISM2-250226-001"} 
[2026-02-25 06:41:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4920,"order_number":"BISM2-250226-001","user_id":9,"user_role":"restaurant_owner","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-02-25 06:41:39"} 
[2026-02-25 06:41:59] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4920,"order_number":"BISM2-250226-001","user_id":9,"user_role":"restaurant_owner","detected_status":"paid","incoming_payment_amount":315,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 06:41:59"} 
[2026-02-25 06:41:59] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4920,"order_number":"BISM2-250226-001","user_id":9,"user_role":"restaurant_owner","incoming_is_paid":true,"incoming_payment_amount":315,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 06:41:59"} 
[2026-02-25 06:41:59] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4920,"order_number":"BISM2-250226-001","user_id":9,"user_role":"restaurant_owner","normalized_payment_amount":315,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 06:41:59"} 
[2026-02-25 06:41:59] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4920,"order_number":"BISM2-250226-001","user_id":9,"user_role":"restaurant_owner","normalized_payment_amount":315,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 06:41:59"} 
[2026-02-25 06:41:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":4920,"user_id":9,"user_role":"restaurant_owner","request_items":"yes","request_items_raw":[{"menu_item_id":281,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24180},{"menu_item_id":213,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24181},{"menu_item_id":211,"quantity":1,"price":80,"discount_percent":0,"notes":null,"id":24182},{"menu_item_id":209,"quantity":1,"price":80,"discount_percent":0,"notes":null,"id":24183}],"validated_items":[{"id":24180,"menu_item_id":281,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":24181,"menu_item_id":213,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":24182,"menu_item_id":211,"quantity":1,"price":80,"discount_percent":0,"notes":null},{"id":24183,"menu_item_id":209,"quantity":1,"price":80,"discount_percent":0,"notes":null}]} 
[2026-02-25 06:41:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4920,"items_count":4} 
[2026-02-25 06:41:59] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24180,"menu_item_id":281,"quantity":1},{"id":24181,"menu_item_id":213,"quantity":1},{"id":24182,"menu_item_id":211,"quantity":1},{"id":24183,"menu_item_id":209,"quantity":1}]} 
[2026-02-25 06:41:59] local.INFO: PosOrderController::update - Item changes check {"order_id":4920,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["281|1|","213|1|","211|1|","209|1|"],"new_items_map_keys":["281|1|","213|1|","211|1|","209|1|"]} 
[2026-02-25 06:41:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4920,"order_number":"BISM2-250226-001"} 
[2026-02-25 06:41:59] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4920,"order_number":"BISM2-250226-001","user_id":9,"user_role":"restaurant_owner","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":315,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-25 06:41:59","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 06:41:59"} 
[2026-02-25 06:41:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4920,"order_number":"BISM2-250226-001","user_id":9,"user_role":"restaurant_owner","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 06:41:59"} 
[2026-02-25 06:41:59] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4920,"order_number":"BISM2-250226-001","user_id":9,"user_role":"restaurant_owner","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"315.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-25 06:41:59","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":315,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"315.00","database_verification_match":true,"timestamp":"2026-02-25 06:41:59"} 
[2026-02-25 13:12:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4923,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":24189}],"validated_items":[{"id":24189,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 13:12:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4923,"items_count":1} 
[2026-02-25 13:12:44] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24189,"menu_item_id":3,"quantity":1}]} 
[2026-02-25 13:12:44] local.INFO: PosOrderController::update - Item changes check {"order_id":4923,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["3|1|"],"new_items_map_keys":["3|1|"]} 
[2026-02-25 13:12:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4923,"order_number":"AZS-250226-002"} 
[2026-02-25 13:12:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4923,"order_number":"AZS-250226-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-02-25 13:12:44"} 
[2026-02-25 13:19:51] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4925,"order_number":"AZS-250226-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 13:19:51"} 
[2026-02-25 13:19:51] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4925,"order_number":"AZS-250226-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 13:19:51"} 
[2026-02-25 13:19:51] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4925,"order_number":"AZS-250226-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 13:19:51"} 
[2026-02-25 13:19:51] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4925,"order_number":"AZS-250226-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 13:19:51"} 
[2026-02-25 13:19:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4925,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":24194}],"validated_items":[{"id":24194,"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null}]} 
[2026-02-25 13:19:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4925,"items_count":1} 
[2026-02-25 13:19:51] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24194,"menu_item_id":417,"quantity":2}]} 
[2026-02-25 13:19:51] local.INFO: PosOrderController::update - Item changes check {"order_id":4925,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|2|"],"new_items_map_keys":["417|2|"]} 
[2026-02-25 13:19:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4925,"order_number":"AZS-250226-004"} 
[2026-02-25 13:19:51] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4925,"order_number":"AZS-250226-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-25 13:19:51","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 13:19:51"} 
[2026-02-25 13:19:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4925,"order_number":"AZS-250226-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 13:19:51"} 
[2026-02-25 13:19:51] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4925,"order_number":"AZS-250226-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-25 13:19:51","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-02-25 13:19:51"} 
[2026-02-25 13:19:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T01:19:55.696Z","date_to":"2026-02-25T13:19:55.696Z","per_page":"100"} 
[2026-02-25 13:19:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":4,"count":4,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-004","AZS-250226-003","AZS-250226-002","AZS-250226-001"],"order_statuses":["paid","pending","pending","pending"],"deleted_count":0,"paid_count":1,"unpaid_count":3,"unique_order_numbers":4} 
[2026-02-25 13:19:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T01:19:55.709Z","date_to":"2026-02-25T13:19:55.709Z","per_page":"100"} 
[2026-02-25 13:19:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":4,"count":4,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-004","AZS-250226-003","AZS-250226-002","AZS-250226-001"],"order_statuses":["paid","pending","pending","pending"],"deleted_count":0,"paid_count":1,"unpaid_count":3,"unique_order_numbers":4} 
[2026-02-25 13:19:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T01:19:55.696Z","date_to":"2026-02-25T13:19:55.696Z","per_page":"100"} 
[2026-02-25 13:19:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":4,"count":4,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-004","AZS-250226-003","AZS-250226-002","AZS-250226-001"],"order_statuses":["paid","pending","pending","pending"],"deleted_count":0,"paid_count":1,"unpaid_count":3,"unique_order_numbers":4} 
[2026-02-25 13:32:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":4924,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":24190},{"menu_item_id":54,"quantity":3,"discount_percent":0,"notes":null,"id":24191},{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":24192},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24193},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":24190,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":24191,"menu_item_id":54,"quantity":3,"discount_percent":0,"notes":null},{"id":24192,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":24193,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-25 13:32:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4924,"items_count":5} 
[2026-02-25 13:32:15] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24190,"menu_item_id":96,"quantity":1},{"id":24191,"menu_item_id":54,"quantity":3},{"id":24192,"menu_item_id":417,"quantity":1},{"id":24193,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-02-25 13:32:15] local.INFO: PosOrderController::update - Item changes check {"order_id":4924,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["96|1|","54|3|","417|1|","61|1|"],"new_items_map_keys":["96|1|","54|3|","417|1|","61|1|","2|2|"]} 
[2026-02-25 13:32:15] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4924,"order_number":"AZS-250226-003"} 
[2026-02-25 13:32:15] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-003","replaced_order_id":4924} 
[2026-02-25 13:32:15] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4928,"items_count":5,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":54,"quantity":3,"price":"159.00"},{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-02-25 13:32:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4928,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4928}} 
[2026-02-25 13:32:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4928,"item_index":0,"menu_item_id":96} 
[2026-02-25 13:32:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4928,"item_index":1,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":3,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":477.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4928}} 
[2026-02-25 13:32:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4928,"item_index":1,"menu_item_id":54} 
[2026-02-25 13:32:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4928,"item_index":2,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4928}} 
[2026-02-25 13:32:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4928,"item_index":2,"menu_item_id":417} 
[2026-02-25 13:32:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4928,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4928}} 
[2026-02-25 13:32:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4928,"item_index":3,"menu_item_id":61} 
[2026-02-25 13:32:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4928,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4928}} 
[2026-02-25 13:32:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4928,"item_index":4,"menu_item_id":2} 
[2026-02-25 13:32:15] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4924,"new_order_id":4928,"order_number":"AZS-250226-003"} 
[2026-02-25 13:32:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4929,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":400,"quantity":450,"price":1,"discount_percent":0,"notes":null,"id":24217}],"validated_items":[{"id":24217,"menu_item_id":400,"quantity":450,"price":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 13:32:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4929,"items_count":1} 
[2026-02-25 13:32:54] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24217,"menu_item_id":400,"quantity":450}]} 
[2026-02-25 13:32:54] local.INFO: PosOrderController::update - Item changes check {"order_id":4929,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["400|50|"],"new_items_map_keys":["400|450|"]} 
[2026-02-25 13:32:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4929,"order_number":"AZS-250226-007"} 
[2026-02-25 13:32:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-007","replaced_order_id":4929} 
[2026-02-25 13:32:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4930,"items_count":1,"items":[{"menu_item_id":400,"quantity":450,"price":1.0}]} 
[2026-02-25 13:32:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4930,"item_index":0,"item_data":{"menu_item_id":400,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL ITEMS","quantity":450,"price":1.0,"discount_percent":0.0,"discount_amount":0.0,"total":450.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4930}} 
[2026-02-25 13:32:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4930,"item_index":0,"menu_item_id":400} 
[2026-02-25 13:32:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4929,"new_order_id":4930,"order_number":"AZS-250226-007"} 
[2026-02-25 13:32:58] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4930,"item_index":0,"item_id":24217} 
[2026-02-25 13:32:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":4930,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":400,"quantity":450,"price":1,"discount_percent":0,"notes":null,"id":24217}],"validated_items":[{"menu_item_id":400,"quantity":450,"price":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 13:32:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4930,"items_count":1} 
[2026-02-25 13:32:58] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[24218],"items":[{"id":null,"menu_item_id":400,"quantity":450}]} 
[2026-02-25 13:32:58] local.INFO: PosOrderController::update - Item changes check {"order_id":4930,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["400|450|"],"new_items_map_keys":["400|450|"]} 
[2026-02-25 13:32:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4930,"order_number":"AZS-250226-007"} 
[2026-02-25 13:32:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4930,"order_number":"AZS-250226-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 13:32:58"} 
[2026-02-25 13:33:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4930,"item_index":0,"item_id":24217} 
[2026-02-25 13:33:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":4930,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":400,"quantity":450,"discount_percent":0,"notes":null,"id":24217}],"validated_items":[{"menu_item_id":400,"quantity":450,"discount_percent":0,"notes":null}]} 
[2026-02-25 13:33:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4930,"items_count":1} 
[2026-02-25 13:33:07] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[24218],"items":[{"id":null,"menu_item_id":400,"quantity":450}]} 
[2026-02-25 13:33:07] local.INFO: PosOrderController::update - Item changes check {"order_id":4930,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["400|450|"],"new_items_map_keys":["400|450|"]} 
[2026-02-25 13:33:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4930,"order_number":"AZS-250226-007"} 
[2026-02-25 13:33:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4930,"order_number":"AZS-250226-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-25 13:33:07"} 
[2026-02-25 13:35:07] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4930,"order_number":"AZS-250226-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":450,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 13:35:07"} 
[2026-02-25 13:35:07] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4930,"order_number":"AZS-250226-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":450,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 13:35:07"} 
[2026-02-25 13:35:07] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4930,"order_number":"AZS-250226-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":450,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 13:35:07"} 
[2026-02-25 13:35:07] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4930,"order_number":"AZS-250226-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":450,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 13:35:07"} 
[2026-02-25 13:35:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4930,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":400,"quantity":450,"price":1,"discount_percent":0,"notes":null,"id":24218}],"validated_items":[{"id":24218,"menu_item_id":400,"quantity":450,"price":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 13:35:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4930,"items_count":1} 
[2026-02-25 13:35:07] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24218,"menu_item_id":400,"quantity":450}]} 
[2026-02-25 13:35:07] local.INFO: PosOrderController::update - Item changes check {"order_id":4930,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["400|450|"],"new_items_map_keys":["400|450|"]} 
[2026-02-25 13:35:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4930,"order_number":"AZS-250226-007"} 
[2026-02-25 13:35:07] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4930,"order_number":"AZS-250226-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":450,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-25 13:35:07","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 13:35:07"} 
[2026-02-25 13:35:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4930,"order_number":"AZS-250226-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 13:35:07"} 
[2026-02-25 13:35:07] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4930,"order_number":"AZS-250226-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"450.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-25 13:35:07","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":450,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"450.00","database_verification_match":true,"timestamp":"2026-02-25 13:35:07"} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":4926,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":2,"discount_percent":0,"notes":null,"id":24195},{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null,"id":24196},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":24197},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":24198},{"menu_item_id":396,"quantity":6,"discount_percent":0,"notes":null,"id":24199},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null,"id":24200},{"menu_item_id":55,"quantity":3,"discount_percent":0,"notes":null,"id":24201},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":24202},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":24203},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":24204},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":24205}],"validated_items":[{"id":24195,"menu_item_id":106,"quantity":2,"discount_percent":0,"notes":null},{"id":24196,"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null},{"id":24197,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":24198,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"id":24199,"menu_item_id":396,"quantity":6,"discount_percent":0,"notes":null},{"id":24200,"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"id":24201,"menu_item_id":55,"quantity":3,"discount_percent":0,"notes":null},{"id":24202,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":24203,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":24204,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":24205,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4926,"items_count":11} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24195,"menu_item_id":106,"quantity":2},{"id":24196,"menu_item_id":114,"quantity":2},{"id":24197,"menu_item_id":62,"quantity":1},{"id":24198,"menu_item_id":63,"quantity":1},{"id":24199,"menu_item_id":396,"quantity":6},{"id":24200,"menu_item_id":50,"quantity":3},{"id":24201,"menu_item_id":55,"quantity":3},{"id":24202,"menu_item_id":61,"quantity":3},{"id":24203,"menu_item_id":56,"quantity":2},{"id":24204,"menu_item_id":5,"quantity":2},{"id":24205,"menu_item_id":2,"quantity":1}]} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Item changes check {"order_id":4926,"has_item_changes":true,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["106|2|","114|2|","62|1|","63|1|","396|6|","50|3|","55|3|","61|3|","56|3|","5|2|","2|1|"],"new_items_map_keys":["106|2|","114|2|","62|1|","63|1|","396|6|","50|3|","55|3|","61|3|","56|2|","5|2|","2|1|"]} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4926,"order_number":"AZS-250226-005"} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-005","replaced_order_id":4926} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4933,"items_count":11,"items":[{"menu_item_id":106,"quantity":2,"price":"4199.00"},{"menu_item_id":114,"quantity":2,"price":"2299.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":63,"quantity":1,"price":"1099.00"},{"menu_item_id":396,"quantity":6,"price":"99.00"},{"menu_item_id":50,"quantity":3,"price":"129.00"},{"menu_item_id":55,"quantity":3,"price":"159.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4933,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":2,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":8398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4933}} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4933,"item_index":0,"menu_item_id":106} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4933,"item_index":1,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4933}} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4933,"item_index":1,"menu_item_id":114} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4933,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4933}} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4933,"item_index":2,"menu_item_id":62} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4933,"item_index":3,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4933}} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4933,"item_index":3,"menu_item_id":63} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4933,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":6,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":594.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4933}} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4933,"item_index":4,"menu_item_id":396} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4933,"item_index":5,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4933}} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4933,"item_index":5,"menu_item_id":50} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4933,"item_index":6,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":3,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":477.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4933}} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4933,"item_index":6,"menu_item_id":55} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4933,"item_index":7,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4933}} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4933,"item_index":7,"menu_item_id":61} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4933,"item_index":8,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4933}} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4933,"item_index":8,"menu_item_id":56} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4933,"item_index":9,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4933}} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4933,"item_index":9,"menu_item_id":5} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4933,"item_index":10,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4933}} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4933,"item_index":10,"menu_item_id":2} 
[2026-02-25 13:52:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4926,"new_order_id":4933,"order_number":"AZS-250226-005"} 
[2026-02-25 14:08:37] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4931,"order_number":"AZS-250226-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":530,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 14:08:37"} 
[2026-02-25 14:08:37] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4931,"order_number":"AZS-250226-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":530,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 14:08:37"} 
[2026-02-25 14:08:37] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4931,"order_number":"AZS-250226-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":530,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 14:08:37"} 
[2026-02-25 14:08:37] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4931,"order_number":"AZS-250226-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":530,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 14:08:37"} 
[2026-02-25 14:08:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4931,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":24219}],"validated_items":[{"id":24219,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-02-25 14:08:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4931,"items_count":1} 
[2026-02-25 14:08:37] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24219,"menu_item_id":13,"quantity":2}]} 
[2026-02-25 14:08:37] local.INFO: PosOrderController::update - Item changes check {"order_id":4931,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|2|"]} 
[2026-02-25 14:08:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4931,"order_number":"AZS-250226-008"} 
[2026-02-25 14:08:37] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4931,"order_number":"AZS-250226-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":530,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-25 14:08:37","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 14:08:37"} 
[2026-02-25 14:08:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4931,"order_number":"AZS-250226-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 14:08:37"} 
[2026-02-25 14:08:37] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4931,"order_number":"AZS-250226-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"530.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-25 14:08:37","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":530,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"530.00","database_verification_match":true,"timestamp":"2026-02-25 14:08:37"} 
[2026-02-25 14:09:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":4928,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24212},{"menu_item_id":54,"quantity":3,"price":159,"discount_percent":0,"notes":null,"id":24213},{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24214},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24215},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":24216}],"validated_items":[{"id":24212,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24213,"menu_item_id":54,"quantity":3,"price":159,"discount_percent":0,"notes":null},{"id":24214,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24215,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24216,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-02-25 14:09:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4928,"items_count":5} 
[2026-02-25 14:09:07] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24212,"menu_item_id":96,"quantity":1},{"id":24213,"menu_item_id":54,"quantity":3},{"id":24214,"menu_item_id":417,"quantity":1},{"id":24215,"menu_item_id":61,"quantity":1},{"id":24216,"menu_item_id":2,"quantity":2}]} 
[2026-02-25 14:09:07] local.INFO: PosOrderController::update - Item changes check {"order_id":4928,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","54|3|","417|1|","61|1|","2|2|"],"new_items_map_keys":["96|1|","54|3|","417|1|","61|1|","2|2|"]} 
[2026-02-25 14:09:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4928,"order_number":"AZS-250226-003"} 
[2026-02-25 14:09:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4928,"order_number":"AZS-250226-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 14:09:07"} 
[2026-02-25 14:12:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T02:12:55.339Z","date_to":"2026-02-25T14:12:55.339Z","per_page":"100"} 
[2026-02-25 14:12:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T02:12:55.323Z","date_to":"2026-02-25T14:12:55.323Z","per_page":"100"} 
[2026-02-25 14:12:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-001"],"order_statuses":["pending","paid","paid","changed","pending","pending","changed","paid","pending","changed","pending","pending"],"deleted_count":3,"paid_count":3,"unpaid_count":6,"unique_order_numbers":9} 
[2026-02-25 14:12:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-001"],"order_statuses":["pending","paid","paid","changed","pending","pending","changed","paid","pending","changed","pending","pending"],"deleted_count":3,"paid_count":3,"unpaid_count":6,"unique_order_numbers":9} 
[2026-02-25 14:12:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T02:12:55.323Z","date_to":"2026-02-25T14:12:55.323Z","per_page":"100"} 
[2026-02-25 14:12:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-001"],"order_statuses":["pending","paid","paid","changed","pending","pending","changed","paid","pending","changed","pending","pending"],"deleted_count":3,"paid_count":3,"unpaid_count":6,"unique_order_numbers":9} 
[2026-02-25 14:19:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":4928,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24212},{"menu_item_id":54,"quantity":3,"price":159,"discount_percent":0,"notes":null,"id":24213},{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24214},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24215},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":24216}],"validated_items":[{"id":24212,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24213,"menu_item_id":54,"quantity":3,"price":159,"discount_percent":0,"notes":null},{"id":24214,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24215,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24216,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-02-25 14:19:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4928,"items_count":5} 
[2026-02-25 14:19:30] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24212,"menu_item_id":96,"quantity":1},{"id":24213,"menu_item_id":54,"quantity":3},{"id":24214,"menu_item_id":417,"quantity":1},{"id":24215,"menu_item_id":61,"quantity":1},{"id":24216,"menu_item_id":2,"quantity":2}]} 
[2026-02-25 14:19:30] local.INFO: PosOrderController::update - Item changes check {"order_id":4928,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","54|3|","417|1|","61|1|","2|2|"],"new_items_map_keys":["96|1|","54|3|","417|1|","61|1|","2|2|"]} 
[2026-02-25 14:19:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4928,"order_number":"AZS-250226-003"} 
[2026-02-25 14:19:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4928,"order_number":"AZS-250226-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 14:19:30"} 
[2026-02-25 14:21:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":4927,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":24206},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":24207},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":24208},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":24209},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":24210},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24211},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24206,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":24207,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":24208,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":24209,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":24210,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":24211,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 14:21:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4927,"items_count":7} 
[2026-02-25 14:21:39] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24206,"menu_item_id":97,"quantity":1},{"id":24207,"menu_item_id":64,"quantity":1},{"id":24208,"menu_item_id":396,"quantity":4},{"id":24209,"menu_item_id":61,"quantity":2},{"id":24210,"menu_item_id":56,"quantity":2},{"id":24211,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-25 14:21:39] local.INFO: PosOrderController::update - Item changes check {"order_id":4927,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["97|1|","64|1|","396|4|","61|2|","56|2|","5|1|"],"new_items_map_keys":["97|1|","64|1|","396|4|","61|2|","56|2|","5|1|","3|1|"]} 
[2026-02-25 14:21:39] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4927,"order_number":"AZS-250226-006"} 
[2026-02-25 14:21:39] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-006","replaced_order_id":4927} 
[2026-02-25 14:21:39] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4934,"items_count":7,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-25 14:21:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4934,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4934}} 
[2026-02-25 14:21:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4934,"item_index":0,"menu_item_id":97} 
[2026-02-25 14:21:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4934,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4934}} 
[2026-02-25 14:21:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4934,"item_index":1,"menu_item_id":64} 
[2026-02-25 14:21:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4934,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4934}} 
[2026-02-25 14:21:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4934,"item_index":2,"menu_item_id":396} 
[2026-02-25 14:21:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4934,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4934}} 
[2026-02-25 14:21:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4934,"item_index":3,"menu_item_id":61} 
[2026-02-25 14:21:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4934,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4934}} 
[2026-02-25 14:21:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4934,"item_index":4,"menu_item_id":56} 
[2026-02-25 14:21:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4934,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4934}} 
[2026-02-25 14:21:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4934,"item_index":5,"menu_item_id":5} 
[2026-02-25 14:21:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4934,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4934}} 
[2026-02-25 14:21:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4934,"item_index":6,"menu_item_id":3} 
[2026-02-25 14:21:39] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4927,"new_order_id":4934,"order_number":"AZS-250226-006"} 
[2026-02-25 14:33:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":4932,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":24220},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":24221},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":24222},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":24223},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24224},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24225},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":24220,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":24221,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":24222,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":24223,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":24224,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":24225,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-02-25 14:33:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4932,"items_count":7} 
[2026-02-25 14:33:06] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24220,"menu_item_id":98,"quantity":1},{"id":24221,"menu_item_id":64,"quantity":1},{"id":24222,"menu_item_id":396,"quantity":3},{"id":24223,"menu_item_id":61,"quantity":2},{"id":24224,"menu_item_id":56,"quantity":1},{"id":24225,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-02-25 14:33:06] local.INFO: PosOrderController::update - Item changes check {"order_id":4932,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["98|1|","64|1|","396|3|","61|2|","56|1|","5|1|"],"new_items_map_keys":["98|1|","64|1|","396|3|","61|2|","56|1|","5|1|","2|3|"]} 
[2026-02-25 14:33:06] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4932,"order_number":"AZS-250226-009"} 
[2026-02-25 14:33:06] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-009","replaced_order_id":4932} 
[2026-02-25 14:33:06] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4935,"items_count":7,"items":[{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"}]} 
[2026-02-25 14:33:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4935,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4935}} 
[2026-02-25 14:33:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4935,"item_index":0,"menu_item_id":98} 
[2026-02-25 14:33:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4935,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4935}} 
[2026-02-25 14:33:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4935,"item_index":1,"menu_item_id":64} 
[2026-02-25 14:33:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4935,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4935}} 
[2026-02-25 14:33:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4935,"item_index":2,"menu_item_id":396} 
[2026-02-25 14:33:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4935,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4935}} 
[2026-02-25 14:33:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4935,"item_index":3,"menu_item_id":61} 
[2026-02-25 14:33:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4935,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4935}} 
[2026-02-25 14:33:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4935,"item_index":4,"menu_item_id":56} 
[2026-02-25 14:33:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4935,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4935}} 
[2026-02-25 14:33:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4935,"item_index":5,"menu_item_id":5} 
[2026-02-25 14:33:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4935,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4935}} 
[2026-02-25 14:33:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4935,"item_index":6,"menu_item_id":2} 
[2026-02-25 14:33:06] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4932,"new_order_id":4935,"order_number":"AZS-250226-009"} 
[2026-02-25 14:37:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":4934,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":24237},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":24238},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":24239},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":24240},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":24241},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24242},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":24243}],"validated_items":[{"id":24237,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":24238,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":24239,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":24240,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":24241,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":24242,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":24243,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 14:37:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4934,"items_count":7} 
[2026-02-25 14:37:21] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24237,"menu_item_id":97,"quantity":1},{"id":24238,"menu_item_id":64,"quantity":1},{"id":24239,"menu_item_id":396,"quantity":4},{"id":24240,"menu_item_id":61,"quantity":2},{"id":24241,"menu_item_id":56,"quantity":2},{"id":24242,"menu_item_id":5,"quantity":1},{"id":24243,"menu_item_id":3,"quantity":1}]} 
[2026-02-25 14:37:21] local.INFO: PosOrderController::update - Item changes check {"order_id":4934,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["97|1|","64|1|","396|4|","61|2|","56|2|","5|1|","3|1|"],"new_items_map_keys":["97|1|","64|1|","396|4|","61|2|","56|2|","5|1|","3|1|"]} 
[2026-02-25 14:37:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4934,"order_number":"AZS-250226-006"} 
[2026-02-25 14:37:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4934,"order_number":"AZS-250226-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-25 14:37:21"} 
[2026-02-25 14:37:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":4934,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":24237},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":24238},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":24239},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24240},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24241},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24242},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24243}],"validated_items":[{"id":24237,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":24238,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":24239,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":24240,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24241,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24242,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24243,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-25 14:37:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4934,"items_count":7} 
[2026-02-25 14:37:25] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24237,"menu_item_id":97,"quantity":1},{"id":24238,"menu_item_id":64,"quantity":1},{"id":24239,"menu_item_id":396,"quantity":4},{"id":24240,"menu_item_id":61,"quantity":2},{"id":24241,"menu_item_id":56,"quantity":2},{"id":24242,"menu_item_id":5,"quantity":1},{"id":24243,"menu_item_id":3,"quantity":1}]} 
[2026-02-25 14:37:25] local.INFO: PosOrderController::update - Item changes check {"order_id":4934,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["97|1|","64|1|","396|4|","61|2|","56|2|","5|1|","3|1|"],"new_items_map_keys":["97|1|","64|1|","396|4|","61|2|","56|2|","5|1|","3|1|"]} 
[2026-02-25 14:37:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4934,"order_number":"AZS-250226-006"} 
[2026-02-25 14:37:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4934,"order_number":"AZS-250226-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 14:37:25"} 
[2026-02-25 14:37:47] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4928,"order_number":"AZS-250226-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 14:37:47"} 
[2026-02-25 14:37:47] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4928,"order_number":"AZS-250226-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 14:37:47"} 
[2026-02-25 14:37:47] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4928,"order_number":"AZS-250226-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 14:37:47"} 
[2026-02-25 14:37:47] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4928,"order_number":"AZS-250226-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 14:37:47"} 
[2026-02-25 14:37:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":4928,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24212},{"menu_item_id":54,"quantity":3,"price":159,"discount_percent":0,"notes":null,"id":24213},{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24214},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":24216}],"validated_items":[{"id":24212,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24213,"menu_item_id":54,"quantity":3,"price":159,"discount_percent":0,"notes":null},{"id":24214,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24216,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-02-25 14:37:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4928,"items_count":4} 
[2026-02-25 14:37:47] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[24215],"items":[{"id":24212,"menu_item_id":96,"quantity":1},{"id":24213,"menu_item_id":54,"quantity":3},{"id":24214,"menu_item_id":417,"quantity":1},{"id":24216,"menu_item_id":2,"quantity":2}]} 
[2026-02-25 14:37:47] local.INFO: PosOrderController::update - Item changes check {"order_id":4928,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["96|1|","54|3|","417|1|","61|1|","2|2|"],"new_items_map_keys":["96|1|","54|3|","417|1|","2|2|"]} 
[2026-02-25 14:37:47] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":4928,"order_number":"AZS-250226-003","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-02-25 14:37:47","original_payment_amount":"0.00","grand_total":2557.0,"timestamp":"2026-02-25 14:37:47"} 
[2026-02-25 14:37:47] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4928,"order_number":"AZS-250226-003"} 
[2026-02-25 14:37:47] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-003","replaced_order_id":4928} 
[2026-02-25 14:37:47] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":4928,"new_order_id":4936,"order_number":"AZS-250226-003","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-02-25 14:37:47","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-02-25 14:37:47"} 
[2026-02-25 14:37:47] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4936,"items_count":4,"items":[{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":54,"quantity":3,"price":159.0},{"menu_item_id":417,"quantity":1,"price":499.0},{"menu_item_id":2,"quantity":2,"price":130.0}]} 
[2026-02-25 14:37:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4936,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4936}} 
[2026-02-25 14:37:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4936,"item_index":0,"menu_item_id":96} 
[2026-02-25 14:37:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4936,"item_index":1,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":3,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":477.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4936}} 
[2026-02-25 14:37:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4936,"item_index":1,"menu_item_id":54} 
[2026-02-25 14:37:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4936,"item_index":2,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":499.0,"discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4936}} 
[2026-02-25 14:37:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4936,"item_index":2,"menu_item_id":417} 
[2026-02-25 14:37:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4936,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4936}} 
[2026-02-25 14:37:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4936,"item_index":3,"menu_item_id":2} 
[2026-02-25 14:37:47] local.ERROR: Error tracking recipe usage for order 4936: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (4936, 96, 77, 1, 1, 0.00, Order #AZS-250226-003 - 1x Chicken Karahi - Half, 2026-02-25 14:37:47, 2026-02-25 14:37:47))  
[2026-02-25 14:37:47] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4928,"new_order_id":4936,"order_number":"AZS-250226-003"} 
[2026-02-25 14:37:47] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":4928,"new_order_id":4936,"order_number":"AZS-250226-003","route":"api/orders/4928"} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":4933,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":2,"discount_percent":0,"notes":null,"id":24226},{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null,"id":24227},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":24228},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":24229},{"menu_item_id":396,"quantity":6,"discount_percent":0,"notes":null,"id":24230},{"menu_item_id":50,"quantity":6,"discount_percent":0,"notes":null,"id":24231},{"menu_item_id":55,"quantity":3,"discount_percent":0,"notes":null,"id":24232},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":24233},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":24234},{"menu_item_id":5,"quantity":3,"discount_percent":0,"notes":null,"id":24235},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":24236},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":24226,"menu_item_id":106,"quantity":2,"discount_percent":0,"notes":null},{"id":24227,"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null},{"id":24228,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":24229,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"id":24230,"menu_item_id":396,"quantity":6,"discount_percent":0,"notes":null},{"id":24231,"menu_item_id":50,"quantity":6,"discount_percent":0,"notes":null},{"id":24232,"menu_item_id":55,"quantity":3,"discount_percent":0,"notes":null},{"id":24233,"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"id":24234,"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"id":24235,"menu_item_id":5,"quantity":3,"discount_percent":0,"notes":null},{"id":24236,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4933,"items_count":12} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24226,"menu_item_id":106,"quantity":2},{"id":24227,"menu_item_id":114,"quantity":2},{"id":24228,"menu_item_id":62,"quantity":1},{"id":24229,"menu_item_id":63,"quantity":1},{"id":24230,"menu_item_id":396,"quantity":6},{"id":24231,"menu_item_id":50,"quantity":6},{"id":24232,"menu_item_id":55,"quantity":3},{"id":24233,"menu_item_id":61,"quantity":4},{"id":24234,"menu_item_id":56,"quantity":3},{"id":24235,"menu_item_id":5,"quantity":3},{"id":24236,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Item changes check {"order_id":4933,"has_item_changes":true,"old_items_count":11,"new_items_count":12,"old_items_map_keys":["106|2|","114|2|","62|1|","63|1|","396|6|","50|3|","55|3|","61|3|","56|2|","5|2|","2|1|"],"new_items_map_keys":["106|2|","114|2|","62|1|","63|1|","396|6|","50|6|","55|3|","61|4|","56|3|","5|3|","2|1|","3|2|"]} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4933,"order_number":"AZS-250226-005"} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-005","replaced_order_id":4933} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4937,"items_count":12,"items":[{"menu_item_id":106,"quantity":2,"price":"4199.00"},{"menu_item_id":114,"quantity":2,"price":"2299.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":63,"quantity":1,"price":"1099.00"},{"menu_item_id":396,"quantity":6,"price":"99.00"},{"menu_item_id":50,"quantity":6,"price":"129.00"},{"menu_item_id":55,"quantity":3,"price":"159.00"},{"menu_item_id":61,"quantity":4,"price":"199.00"},{"menu_item_id":56,"quantity":3,"price":"199.00"},{"menu_item_id":5,"quantity":3,"price":"170.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4937,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":2,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":8398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4937}} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4937,"item_index":0,"menu_item_id":106} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4937,"item_index":1,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4937}} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4937,"item_index":1,"menu_item_id":114} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4937,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4937}} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4937,"item_index":2,"menu_item_id":62} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4937,"item_index":3,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4937}} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4937,"item_index":3,"menu_item_id":63} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4937,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":6,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":594.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4937}} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4937,"item_index":4,"menu_item_id":396} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4937,"item_index":5,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":6,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":774.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4937}} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4937,"item_index":5,"menu_item_id":50} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4937,"item_index":6,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":3,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":477.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4937}} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4937,"item_index":6,"menu_item_id":55} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4937,"item_index":7,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4937}} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4937,"item_index":7,"menu_item_id":61} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4937,"item_index":8,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4937}} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4937,"item_index":8,"menu_item_id":56} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4937,"item_index":9,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":3,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":510.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4937}} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4937,"item_index":9,"menu_item_id":5} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4937,"item_index":10,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4937}} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4937,"item_index":10,"menu_item_id":2} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4937,"item_index":11,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4937}} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4937,"item_index":11,"menu_item_id":3} 
[2026-02-25 14:38:08] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4933,"new_order_id":4937,"order_number":"AZS-250226-005"} 
[2026-02-25 14:41:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":4934,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":24237},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":24238},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":24239},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24240},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24241},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24242},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24243}],"validated_items":[{"id":24237,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":24238,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":24239,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":24240,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24241,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24242,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24243,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-25 14:41:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4934,"items_count":7} 
[2026-02-25 14:41:48] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24237,"menu_item_id":97,"quantity":1},{"id":24238,"menu_item_id":64,"quantity":1},{"id":24239,"menu_item_id":396,"quantity":4},{"id":24240,"menu_item_id":61,"quantity":2},{"id":24241,"menu_item_id":56,"quantity":2},{"id":24242,"menu_item_id":5,"quantity":1},{"id":24243,"menu_item_id":3,"quantity":1}]} 
[2026-02-25 14:41:48] local.INFO: PosOrderController::update - Item changes check {"order_id":4934,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["97|1|","64|1|","396|4|","61|2|","56|2|","5|1|","3|1|"],"new_items_map_keys":["97|1|","64|1|","396|4|","61|2|","56|2|","5|1|","3|1|"]} 
[2026-02-25 14:41:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4934,"order_number":"AZS-250226-006"} 
[2026-02-25 14:41:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4934,"order_number":"AZS-250226-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 14:41:48"} 
[2026-02-25 14:44:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":4935,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24244},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":24245},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":24246},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24247},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24248},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24249},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":24250}],"validated_items":[{"id":24244,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24245,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":24246,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":24247,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24248,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24249,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24250,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-02-25 14:44:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4935,"items_count":7} 
[2026-02-25 14:44:48] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24244,"menu_item_id":98,"quantity":1},{"id":24245,"menu_item_id":64,"quantity":1},{"id":24246,"menu_item_id":396,"quantity":3},{"id":24247,"menu_item_id":61,"quantity":2},{"id":24248,"menu_item_id":56,"quantity":1},{"id":24249,"menu_item_id":5,"quantity":1},{"id":24250,"menu_item_id":2,"quantity":3}]} 
[2026-02-25 14:44:48] local.INFO: PosOrderController::update - Item changes check {"order_id":4935,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["98|1|","64|1|","396|3|","61|2|","56|1|","5|1|","2|3|"],"new_items_map_keys":["98|1|","64|1|","396|3|","61|2|","56|1|","5|1|","2|3|"]} 
[2026-02-25 14:44:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4935,"order_number":"AZS-250226-009"} 
[2026-02-25 14:44:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4935,"order_number":"AZS-250226-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 14:44:48"} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":4937,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":2,"discount_percent":0,"notes":null,"id":24255},{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null,"id":24256},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":24257},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":24258},{"menu_item_id":396,"quantity":6,"discount_percent":0,"notes":null,"id":24259},{"menu_item_id":50,"quantity":6,"discount_percent":0,"notes":null,"id":24260},{"menu_item_id":55,"quantity":3,"discount_percent":0,"notes":null,"id":24261},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":24262},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":24263},{"menu_item_id":5,"quantity":3,"discount_percent":0,"notes":null,"id":24264},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":24265},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null,"id":24266}],"validated_items":[{"id":24255,"menu_item_id":106,"quantity":2,"discount_percent":0,"notes":null},{"id":24256,"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null},{"id":24257,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":24258,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"id":24259,"menu_item_id":396,"quantity":6,"discount_percent":0,"notes":null},{"id":24260,"menu_item_id":50,"quantity":6,"discount_percent":0,"notes":null},{"id":24261,"menu_item_id":55,"quantity":3,"discount_percent":0,"notes":null},{"id":24262,"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"id":24263,"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"id":24264,"menu_item_id":5,"quantity":3,"discount_percent":0,"notes":null},{"id":24265,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":24266,"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4937,"items_count":12} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24255,"menu_item_id":106,"quantity":2},{"id":24256,"menu_item_id":114,"quantity":2},{"id":24257,"menu_item_id":62,"quantity":1},{"id":24258,"menu_item_id":63,"quantity":1},{"id":24259,"menu_item_id":396,"quantity":6},{"id":24260,"menu_item_id":50,"quantity":6},{"id":24261,"menu_item_id":55,"quantity":3},{"id":24262,"menu_item_id":61,"quantity":4},{"id":24263,"menu_item_id":56,"quantity":3},{"id":24264,"menu_item_id":5,"quantity":3},{"id":24265,"menu_item_id":2,"quantity":1},{"id":24266,"menu_item_id":3,"quantity":3}]} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Item changes check {"order_id":4937,"has_item_changes":true,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["106|2|","114|2|","62|1|","63|1|","396|6|","50|6|","55|3|","61|4|","56|3|","5|3|","2|1|","3|2|"],"new_items_map_keys":["106|2|","114|2|","62|1|","63|1|","396|6|","50|6|","55|3|","61|4|","56|3|","5|3|","2|1|","3|3|"]} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4937,"order_number":"AZS-250226-005"} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-005","replaced_order_id":4937} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4938,"items_count":12,"items":[{"menu_item_id":106,"quantity":2,"price":"4199.00"},{"menu_item_id":114,"quantity":2,"price":"2299.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":63,"quantity":1,"price":"1099.00"},{"menu_item_id":396,"quantity":6,"price":"99.00"},{"menu_item_id":50,"quantity":6,"price":"129.00"},{"menu_item_id":55,"quantity":3,"price":"159.00"},{"menu_item_id":61,"quantity":4,"price":"199.00"},{"menu_item_id":56,"quantity":3,"price":"199.00"},{"menu_item_id":5,"quantity":3,"price":"170.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":3,"quantity":3,"price":"270.00"}]} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4938,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":2,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":8398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4938}} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4938,"item_index":0,"menu_item_id":106} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4938,"item_index":1,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4938}} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4938,"item_index":1,"menu_item_id":114} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4938,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4938}} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4938,"item_index":2,"menu_item_id":62} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4938,"item_index":3,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4938}} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4938,"item_index":3,"menu_item_id":63} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4938,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":6,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":594.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4938}} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4938,"item_index":4,"menu_item_id":396} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4938,"item_index":5,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":6,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":774.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4938}} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4938,"item_index":5,"menu_item_id":50} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4938,"item_index":6,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":3,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":477.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4938}} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4938,"item_index":6,"menu_item_id":55} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4938,"item_index":7,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4938}} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4938,"item_index":7,"menu_item_id":61} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4938,"item_index":8,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4938}} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4938,"item_index":8,"menu_item_id":56} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4938,"item_index":9,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":3,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":510.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4938}} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4938,"item_index":9,"menu_item_id":5} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4938,"item_index":10,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4938}} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4938,"item_index":10,"menu_item_id":2} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4938,"item_index":11,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":3,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":810.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4938}} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4938,"item_index":11,"menu_item_id":3} 
[2026-02-25 14:46:35] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4937,"new_order_id":4938,"order_number":"AZS-250226-005"} 
[2026-02-25 14:47:03] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4934,"order_number":"AZS-250226-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 14:47:03"} 
[2026-02-25 14:47:03] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4934,"order_number":"AZS-250226-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 14:47:03"} 
[2026-02-25 14:47:03] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4934,"order_number":"AZS-250226-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 14:47:03"} 
[2026-02-25 14:47:03] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4934,"order_number":"AZS-250226-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 14:47:03"} 
[2026-02-25 14:47:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":4934,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":24237},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":24238},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":24239},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24240},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24241},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24242},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24243}],"validated_items":[{"id":24237,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":24238,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":24239,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":24240,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24241,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24242,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24243,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-25 14:47:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4934,"items_count":7} 
[2026-02-25 14:47:03] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24237,"menu_item_id":97,"quantity":1},{"id":24238,"menu_item_id":64,"quantity":1},{"id":24239,"menu_item_id":396,"quantity":4},{"id":24240,"menu_item_id":61,"quantity":1},{"id":24241,"menu_item_id":56,"quantity":1},{"id":24242,"menu_item_id":5,"quantity":1},{"id":24243,"menu_item_id":3,"quantity":1}]} 
[2026-02-25 14:47:03] local.INFO: PosOrderController::update - Item changes check {"order_id":4934,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["97|1|","64|1|","396|4|","61|2|","56|2|","5|1|","3|1|"],"new_items_map_keys":["97|1|","64|1|","396|4|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-02-25 14:47:03] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":4934,"order_number":"AZS-250226-006","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-02-25 14:47:03","original_payment_amount":"0.00","grand_total":4759.0,"timestamp":"2026-02-25 14:47:03"} 
[2026-02-25 14:47:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4934,"order_number":"AZS-250226-006"} 
[2026-02-25 14:47:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-006","replaced_order_id":4934} 
[2026-02-25 14:47:03] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":4934,"new_order_id":4939,"order_number":"AZS-250226-006","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-02-25 14:47:03","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-02-25 14:47:03"} 
[2026-02-25 14:47:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4939,"items_count":7,"items":[{"menu_item_id":97,"quantity":1,"price":2299.0},{"menu_item_id":64,"quantity":1,"price":999.0},{"menu_item_id":396,"quantity":4,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-02-25 14:47:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4939,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4939}} 
[2026-02-25 14:47:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4939,"item_index":0,"menu_item_id":97} 
[2026-02-25 14:47:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4939,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":999.0,"discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4939}} 
[2026-02-25 14:47:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4939,"item_index":1,"menu_item_id":64} 
[2026-02-25 14:47:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4939,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4939}} 
[2026-02-25 14:47:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4939,"item_index":2,"menu_item_id":396} 
[2026-02-25 14:47:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4939,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4939}} 
[2026-02-25 14:47:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4939,"item_index":3,"menu_item_id":61} 
[2026-02-25 14:47:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4939,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4939}} 
[2026-02-25 14:47:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4939,"item_index":4,"menu_item_id":56} 
[2026-02-25 14:47:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4939,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4939}} 
[2026-02-25 14:47:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4939,"item_index":5,"menu_item_id":5} 
[2026-02-25 14:47:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4939,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4939}} 
[2026-02-25 14:47:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4939,"item_index":6,"menu_item_id":3} 
[2026-02-25 14:47:03] local.ERROR: Error tracking recipe usage for order 4939: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (4939, 61, 66, 1, 250, 0.00, Order #AZS-250226-006 - 1x Mint Raita, 2026-02-25 14:47:03, 2026-02-25 14:47:03))  
[2026-02-25 14:47:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4934,"new_order_id":4939,"order_number":"AZS-250226-006"} 
[2026-02-25 14:47:04] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":4934,"new_order_id":4939,"order_number":"AZS-250226-006","route":"api/orders/4934"} 
[2026-02-25 14:50:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T02:50:38.838Z","date_to":"2026-02-25T14:50:38.838Z","per_page":"100"} 
[2026-02-25 14:50:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-001"],"order_statuses":["pending","changed","paid","paid","changed","paid","changed","changed","pending","changed","changed","changed","paid","paid","changed","changed","pending","pending"],"deleted_count":9,"paid_count":5,"unpaid_count":4,"unique_order_numbers":9} 
[2026-02-25 14:50:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T02:50:38.854Z","date_to":"2026-02-25T14:50:38.854Z","per_page":"100"} 
[2026-02-25 14:50:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-001"],"order_statuses":["pending","changed","paid","paid","changed","paid","changed","changed","pending","changed","changed","changed","paid","paid","changed","changed","pending","pending"],"deleted_count":9,"paid_count":5,"unpaid_count":4,"unique_order_numbers":9} 
[2026-02-25 14:50:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T02:50:38.838Z","date_to":"2026-02-25T14:50:38.838Z","per_page":"100"} 
[2026-02-25 14:50:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-001"],"order_statuses":["pending","changed","paid","paid","changed","paid","changed","changed","pending","changed","changed","changed","paid","paid","changed","changed","pending","pending"],"deleted_count":9,"paid_count":5,"unpaid_count":4,"unique_order_numbers":9} 
[2026-02-25 14:54:54] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4935,"order_number":"AZS-250226-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3835,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 14:54:54"} 
[2026-02-25 14:54:54] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4935,"order_number":"AZS-250226-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3835,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 14:54:54"} 
[2026-02-25 14:54:54] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4935,"order_number":"AZS-250226-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3835,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 14:54:54"} 
[2026-02-25 14:54:54] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4935,"order_number":"AZS-250226-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3835,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 14:54:54"} 
[2026-02-25 14:54:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":4935,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24244},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":24245},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":24246},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24247},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24248},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24249},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":24250}],"validated_items":[{"id":24244,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24245,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":24246,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":24247,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24248,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24249,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24250,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-02-25 14:54:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4935,"items_count":7} 
[2026-02-25 14:54:54] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24244,"menu_item_id":98,"quantity":1},{"id":24245,"menu_item_id":64,"quantity":1},{"id":24246,"menu_item_id":396,"quantity":3},{"id":24247,"menu_item_id":61,"quantity":2},{"id":24248,"menu_item_id":56,"quantity":1},{"id":24249,"menu_item_id":5,"quantity":1},{"id":24250,"menu_item_id":2,"quantity":3}]} 
[2026-02-25 14:54:54] local.INFO: PosOrderController::update - Item changes check {"order_id":4935,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["98|1|","64|1|","396|3|","61|2|","56|1|","5|1|","2|3|"],"new_items_map_keys":["98|1|","64|1|","396|3|","61|2|","56|1|","5|1|","2|3|"]} 
[2026-02-25 14:54:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4935,"order_number":"AZS-250226-009"} 
[2026-02-25 14:54:54] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4935,"order_number":"AZS-250226-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3835,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-25 14:54:54","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 14:54:54"} 
[2026-02-25 14:54:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4935,"order_number":"AZS-250226-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 14:54:54"} 
[2026-02-25 14:54:54] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4935,"order_number":"AZS-250226-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3835.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-25 14:54:54","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3835,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3835.00","database_verification_match":true,"timestamp":"2026-02-25 14:54:54"} 
[2026-02-25 14:56:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":4938,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":2,"price":4199,"discount_percent":0,"notes":null,"id":24267},{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":24268},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":24269},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":24270},{"menu_item_id":396,"quantity":6,"price":99,"discount_percent":0,"notes":null,"id":24271},{"menu_item_id":50,"quantity":6,"price":129,"discount_percent":0,"notes":null,"id":24272},{"menu_item_id":55,"quantity":3,"price":159,"discount_percent":0,"notes":null,"id":24273},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":24274},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":24275},{"menu_item_id":5,"quantity":3,"price":170,"discount_percent":0,"notes":null,"id":24276},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":24277},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null,"id":24278}],"validated_items":[{"id":24267,"menu_item_id":106,"quantity":2,"price":4199,"discount_percent":0,"notes":null},{"id":24268,"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"id":24269,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":24270,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":24271,"menu_item_id":396,"quantity":6,"price":99,"discount_percent":0,"notes":null},{"id":24272,"menu_item_id":50,"quantity":6,"price":129,"discount_percent":0,"notes":null},{"id":24273,"menu_item_id":55,"quantity":3,"price":159,"discount_percent":0,"notes":null},{"id":24274,"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":24275,"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":24276,"menu_item_id":5,"quantity":3,"price":170,"discount_percent":0,"notes":null},{"id":24277,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":24278,"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-25 14:56:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4938,"items_count":12} 
[2026-02-25 14:56:25] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24267,"menu_item_id":106,"quantity":2},{"id":24268,"menu_item_id":114,"quantity":2},{"id":24269,"menu_item_id":62,"quantity":1},{"id":24270,"menu_item_id":63,"quantity":1},{"id":24271,"menu_item_id":396,"quantity":6},{"id":24272,"menu_item_id":50,"quantity":6},{"id":24273,"menu_item_id":55,"quantity":3},{"id":24274,"menu_item_id":61,"quantity":4},{"id":24275,"menu_item_id":56,"quantity":3},{"id":24276,"menu_item_id":5,"quantity":3},{"id":24277,"menu_item_id":2,"quantity":1},{"id":24278,"menu_item_id":3,"quantity":3}]} 
[2026-02-25 14:56:25] local.INFO: PosOrderController::update - Item changes check {"order_id":4938,"has_item_changes":false,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["106|2|","114|2|","62|1|","63|1|","396|6|","50|6|","55|3|","61|4|","56|3|","5|3|","2|1|","3|3|"],"new_items_map_keys":["106|2|","114|2|","62|1|","63|1|","396|6|","50|6|","55|3|","61|4|","56|3|","5|3|","2|1|","3|3|"]} 
[2026-02-25 14:56:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4938,"order_number":"AZS-250226-005"} 
[2026-02-25 14:56:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4938,"order_number":"AZS-250226-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 14:56:25"} 
[2026-02-25 15:19:39] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4938,"order_number":"AZS-250226-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":21296,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 15:19:39"} 
[2026-02-25 15:19:39] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4938,"order_number":"AZS-250226-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":21296,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 15:19:39"} 
[2026-02-25 15:19:39] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4938,"order_number":"AZS-250226-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":21296,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 15:19:39"} 
[2026-02-25 15:19:39] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4938,"order_number":"AZS-250226-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":21296,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 15:19:39"} 
[2026-02-25 15:19:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":4938,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":2,"price":4199,"discount_percent":0,"notes":null,"id":24267},{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":24268},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":24269},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":24270},{"menu_item_id":396,"quantity":6,"price":99,"discount_percent":0,"notes":null,"id":24271},{"menu_item_id":50,"quantity":6,"price":129,"discount_percent":0,"notes":null,"id":24272},{"menu_item_id":55,"quantity":3,"price":159,"discount_percent":0,"notes":null,"id":24273},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":24274},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":24275},{"menu_item_id":5,"quantity":3,"price":170,"discount_percent":0,"notes":null,"id":24276},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":24277},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null,"id":24278}],"validated_items":[{"id":24267,"menu_item_id":106,"quantity":2,"price":4199,"discount_percent":0,"notes":null},{"id":24268,"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"id":24269,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":24270,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":24271,"menu_item_id":396,"quantity":6,"price":99,"discount_percent":0,"notes":null},{"id":24272,"menu_item_id":50,"quantity":6,"price":129,"discount_percent":0,"notes":null},{"id":24273,"menu_item_id":55,"quantity":3,"price":159,"discount_percent":0,"notes":null},{"id":24274,"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":24275,"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":24276,"menu_item_id":5,"quantity":3,"price":170,"discount_percent":0,"notes":null},{"id":24277,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":24278,"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-25 15:19:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4938,"items_count":12} 
[2026-02-25 15:19:39] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24267,"menu_item_id":106,"quantity":2},{"id":24268,"menu_item_id":114,"quantity":2},{"id":24269,"menu_item_id":62,"quantity":1},{"id":24270,"menu_item_id":63,"quantity":1},{"id":24271,"menu_item_id":396,"quantity":6},{"id":24272,"menu_item_id":50,"quantity":6},{"id":24273,"menu_item_id":55,"quantity":3},{"id":24274,"menu_item_id":61,"quantity":4},{"id":24275,"menu_item_id":56,"quantity":3},{"id":24276,"menu_item_id":5,"quantity":3},{"id":24277,"menu_item_id":2,"quantity":1},{"id":24278,"menu_item_id":3,"quantity":3}]} 
[2026-02-25 15:19:39] local.INFO: PosOrderController::update - Item changes check {"order_id":4938,"has_item_changes":false,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["106|2|","114|2|","62|1|","63|1|","396|6|","50|6|","55|3|","61|4|","56|3|","5|3|","2|1|","3|3|"],"new_items_map_keys":["106|2|","114|2|","62|1|","63|1|","396|6|","50|6|","55|3|","61|4|","56|3|","5|3|","2|1|","3|3|"]} 
[2026-02-25 15:19:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4938,"order_number":"AZS-250226-005"} 
[2026-02-25 15:19:39] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4938,"order_number":"AZS-250226-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":21296,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-25 15:19:39","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 15:19:39"} 
[2026-02-25 15:19:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4938,"order_number":"AZS-250226-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 15:19:39"} 
[2026-02-25 15:19:39] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4938,"order_number":"AZS-250226-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"21296.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-25 15:19:39","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":21296,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"21296.00","database_verification_match":true,"timestamp":"2026-02-25 15:19:39"} 
[2026-02-25 15:19:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T03:19:44.521Z","date_to":"2026-02-25T15:19:44.521Z","per_page":"100"} 
[2026-02-25 15:19:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-001"],"order_statuses":["paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","pending","pending"],"deleted_count":9,"paid_count":7,"unpaid_count":2,"unique_order_numbers":9} 
[2026-02-25 15:19:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T03:19:44.535Z","date_to":"2026-02-25T15:19:44.535Z","per_page":"100"} 
[2026-02-25 15:19:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-001"],"order_statuses":["paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","pending","pending"],"deleted_count":9,"paid_count":7,"unpaid_count":2,"unique_order_numbers":9} 
[2026-02-25 15:19:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T03:19:44.521Z","date_to":"2026-02-25T15:19:44.521Z","per_page":"100"} 
[2026-02-25 15:19:45] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-001"],"order_statuses":["paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","pending","pending"],"deleted_count":9,"paid_count":7,"unpaid_count":2,"unique_order_numbers":9} 
[2026-02-25 15:29:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T03:29:22.285Z","date_to":"2026-02-25T15:29:22.285Z","per_page":"100"} 
[2026-02-25 15:29:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T03:29:22.271Z","date_to":"2026-02-25T15:29:22.271Z","per_page":"100"} 
[2026-02-25 15:29:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-001"],"order_statuses":["pending","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","pending","pending"],"deleted_count":9,"paid_count":7,"unpaid_count":3,"unique_order_numbers":10} 
[2026-02-25 15:29:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-001"],"order_statuses":["pending","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","pending","pending"],"deleted_count":9,"paid_count":7,"unpaid_count":3,"unique_order_numbers":10} 
[2026-02-25 15:29:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T03:29:22.271Z","date_to":"2026-02-25T15:29:22.271Z","per_page":"100"} 
[2026-02-25 15:29:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-001"],"order_statuses":["pending","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","pending","pending"],"deleted_count":9,"paid_count":7,"unpaid_count":3,"unique_order_numbers":10} 
[2026-02-25 15:38:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":4923,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":24189},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24189,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 15:38:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4923,"items_count":5} 
[2026-02-25 15:38:16] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24189,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":48,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-02-25 15:38:16] local.INFO: PosOrderController::update - Item changes check {"order_id":4923,"has_item_changes":true,"old_items_count":1,"new_items_count":5,"old_items_map_keys":["3|1|"],"new_items_map_keys":["3|1|","105|1|","48|1|","61|1|","56|1|"]} 
[2026-02-25 15:38:16] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4923,"order_number":"AZS-250226-002"} 
[2026-02-25 15:38:16] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-002","replaced_order_id":4923} 
[2026-02-25 15:38:16] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4942,"items_count":5,"items":[{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"}]} 
[2026-02-25 15:38:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4942,"item_index":0,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4942}} 
[2026-02-25 15:38:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4942,"item_index":0,"menu_item_id":3} 
[2026-02-25 15:38:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4942,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4942}} 
[2026-02-25 15:38:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4942,"item_index":1,"menu_item_id":105} 
[2026-02-25 15:38:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4942,"item_index":2,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4942}} 
[2026-02-25 15:38:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4942,"item_index":2,"menu_item_id":48} 
[2026-02-25 15:38:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4942,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4942}} 
[2026-02-25 15:38:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4942,"item_index":3,"menu_item_id":61} 
[2026-02-25 15:38:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4942,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4942}} 
[2026-02-25 15:38:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4942,"item_index":4,"menu_item_id":56} 
[2026-02-25 15:38:16] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4923,"new_order_id":4942,"order_number":"AZS-250226-002"} 
[2026-02-25 15:47:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":4942,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":24288},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":24289},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":24290},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24291},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24292},{"menu_item_id":393,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":172,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":24288,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"id":24289,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":24290,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"id":24291,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":24292,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":393,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":172,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-02-25 15:47:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4942,"items_count":8} 
[2026-02-25 15:47:40] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24288,"menu_item_id":3,"quantity":1},{"id":24289,"menu_item_id":105,"quantity":1},{"id":24290,"menu_item_id":48,"quantity":1},{"id":24291,"menu_item_id":61,"quantity":1},{"id":24292,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":393,"quantity":2},{"id":null,"menu_item_id":172,"quantity":2},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-02-25 15:47:40] local.INFO: PosOrderController::update - Item changes check {"order_id":4942,"has_item_changes":true,"old_items_count":5,"new_items_count":8,"old_items_map_keys":["3|1|","105|1|","48|1|","61|1|","56|1|"],"new_items_map_keys":["3|1|","105|1|","48|1|","61|1|","56|1|","393|2|","172|2|","2|3|"]} 
[2026-02-25 15:47:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4942,"order_number":"AZS-250226-002"} 
[2026-02-25 15:47:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-002","replaced_order_id":4942} 
[2026-02-25 15:47:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4944,"items_count":8,"items":[{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":393,"quantity":2,"price":"499.00"},{"menu_item_id":172,"quantity":2,"price":"999.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"}]} 
[2026-02-25 15:47:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4944,"item_index":0,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4944}} 
[2026-02-25 15:47:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4944,"item_index":0,"menu_item_id":3} 
[2026-02-25 15:47:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4944,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4944}} 
[2026-02-25 15:47:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4944,"item_index":1,"menu_item_id":105} 
[2026-02-25 15:47:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4944,"item_index":2,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4944}} 
[2026-02-25 15:47:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4944,"item_index":2,"menu_item_id":48} 
[2026-02-25 15:47:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4944,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4944}} 
[2026-02-25 15:47:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4944,"item_index":3,"menu_item_id":61} 
[2026-02-25 15:47:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4944,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4944}} 
[2026-02-25 15:47:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4944,"item_index":4,"menu_item_id":56} 
[2026-02-25 15:47:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4944,"item_index":5,"item_data":{"menu_item_id":393,"restaurant_category_id":35,"restaurant_category_name":"ROCK N ROLL","item_name":"Chicken Shawarma","quantity":2,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4944}} 
[2026-02-25 15:47:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4944,"item_index":5,"menu_item_id":393} 
[2026-02-25 15:47:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4944,"item_index":6,"item_data":{"menu_item_id":172,"restaurant_category_id":17,"restaurant_category_name":"BURGER","item_name":"Zinger Burger","quantity":2,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":1998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4944}} 
[2026-02-25 15:47:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4944,"item_index":6,"menu_item_id":172} 
[2026-02-25 15:47:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4944,"item_index":7,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4944}} 
[2026-02-25 15:47:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4944,"item_index":7,"menu_item_id":2} 
[2026-02-25 15:47:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4942,"new_order_id":4944,"order_number":"AZS-250226-002"} 
[2026-02-25 16:08:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4941,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":383,"quantity":1,"discount_percent":0,"notes":null,"id":24287}],"validated_items":[{"id":24287,"menu_item_id":383,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 16:08:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4941,"items_count":1} 
[2026-02-25 16:08:17] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24287,"menu_item_id":383,"quantity":1}]} 
[2026-02-25 16:08:17] local.INFO: PosOrderController::update - Item changes check {"order_id":4941,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["383|1|"],"new_items_map_keys":["383|1|"]} 
[2026-02-25 16:08:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4941,"order_number":"AZS-250226-011"} 
[2026-02-25 16:08:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4941,"order_number":"AZS-250226-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-25 16:08:17"} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":4944,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":24298},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":24299},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":24300},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24301},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24302},{"menu_item_id":393,"quantity":2,"discount_percent":0,"notes":null,"id":24303},{"menu_item_id":172,"quantity":2,"discount_percent":0,"notes":null,"id":24304},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":24305},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24298,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"id":24299,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":24300,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"id":24301,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":24302,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":24303,"menu_item_id":393,"quantity":2,"discount_percent":0,"notes":null},{"id":24304,"menu_item_id":172,"quantity":2,"discount_percent":0,"notes":null},{"id":24305,"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4944,"items_count":10} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24298,"menu_item_id":3,"quantity":1},{"id":24299,"menu_item_id":105,"quantity":1},{"id":24300,"menu_item_id":48,"quantity":1},{"id":24301,"menu_item_id":61,"quantity":1},{"id":24302,"menu_item_id":56,"quantity":1},{"id":24303,"menu_item_id":393,"quantity":2},{"id":24304,"menu_item_id":172,"quantity":2},{"id":24305,"menu_item_id":2,"quantity":3},{"id":null,"menu_item_id":13,"quantity":1},{"id":null,"menu_item_id":9,"quantity":1}]} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Item changes check {"order_id":4944,"has_item_changes":true,"old_items_count":8,"new_items_count":10,"old_items_map_keys":["3|1|","105|1|","48|1|","61|1|","56|1|","393|2|","172|2|","2|3|"],"new_items_map_keys":["3|1|","105|1|","48|1|","61|1|","56|1|","393|2|","172|2|","2|3|","13|1|","9|1|"]} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4944,"order_number":"AZS-250226-002"} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-002","replaced_order_id":4944} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4946,"items_count":10,"items":[{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":393,"quantity":2,"price":"499.00"},{"menu_item_id":172,"quantity":2,"price":"999.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"},{"menu_item_id":13,"quantity":1,"price":"249.00"},{"menu_item_id":9,"quantity":1,"price":"229.00"}]} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4946,"item_index":0,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4946}} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4946,"item_index":0,"menu_item_id":3} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4946,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4946}} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4946,"item_index":1,"menu_item_id":105} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4946,"item_index":2,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4946}} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4946,"item_index":2,"menu_item_id":48} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4946,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4946}} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4946,"item_index":3,"menu_item_id":61} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4946,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4946}} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4946,"item_index":4,"menu_item_id":56} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4946,"item_index":5,"item_data":{"menu_item_id":393,"restaurant_category_id":35,"restaurant_category_name":"ROCK N ROLL","item_name":"Chicken Shawarma","quantity":2,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4946}} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4946,"item_index":5,"menu_item_id":393} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4946,"item_index":6,"item_data":{"menu_item_id":172,"restaurant_category_id":17,"restaurant_category_name":"BURGER","item_name":"Zinger Burger","quantity":2,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":1998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4946}} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4946,"item_index":6,"menu_item_id":172} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4946,"item_index":7,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4946}} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4946,"item_index":7,"menu_item_id":2} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4946,"item_index":8,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4946}} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4946,"item_index":8,"menu_item_id":13} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4946,"item_index":9,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":1,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":229.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4946}} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4946,"item_index":9,"menu_item_id":9} 
[2026-02-25 16:12:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4944,"new_order_id":4946,"order_number":"AZS-250226-002"} 
[2026-02-25 16:25:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4940,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24286}],"validated_items":[{"id":24286,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-25 16:25:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4940,"items_count":1} 
[2026-02-25 16:25:16] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24286,"menu_item_id":6,"quantity":2}]} 
[2026-02-25 16:25:16] local.INFO: PosOrderController::update - Item changes check {"order_id":4940,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-02-25 16:25:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4940,"order_number":"AZS-250226-010"} 
[2026-02-25 16:25:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4940,"order_number":"AZS-250226-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 16:25:16"} 
[2026-02-25 16:25:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4941,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":383,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":24287}],"validated_items":[{"id":24287,"menu_item_id":383,"quantity":1,"price":1999,"discount_percent":0,"notes":null}]} 
[2026-02-25 16:25:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4941,"items_count":1} 
[2026-02-25 16:25:53] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24287,"menu_item_id":383,"quantity":1}]} 
[2026-02-25 16:25:53] local.INFO: PosOrderController::update - Item changes check {"order_id":4941,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["383|1|"],"new_items_map_keys":["383|1|"]} 
[2026-02-25 16:25:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4941,"order_number":"AZS-250226-011"} 
[2026-02-25 16:25:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4941,"order_number":"AZS-250226-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 16:25:53"} 
[2026-02-25 16:33:04] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4941,"order_number":"AZS-250226-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 16:33:04"} 
[2026-02-25 16:33:04] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4941,"order_number":"AZS-250226-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 16:33:04"} 
[2026-02-25 16:33:04] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4941,"order_number":"AZS-250226-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 16:33:04"} 
[2026-02-25 16:33:04] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4941,"order_number":"AZS-250226-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 16:33:04"} 
[2026-02-25 16:33:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4941,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":383,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":24287}],"validated_items":[{"id":24287,"menu_item_id":383,"quantity":1,"price":1999,"discount_percent":0,"notes":null}]} 
[2026-02-25 16:33:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4941,"items_count":1} 
[2026-02-25 16:33:04] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24287,"menu_item_id":383,"quantity":1}]} 
[2026-02-25 16:33:04] local.INFO: PosOrderController::update - Item changes check {"order_id":4941,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["383|1|"],"new_items_map_keys":["383|1|"]} 
[2026-02-25 16:33:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4941,"order_number":"AZS-250226-011"} 
[2026-02-25 16:33:04] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4941,"order_number":"AZS-250226-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-25 16:33:04","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 16:33:04"} 
[2026-02-25 16:33:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4941,"order_number":"AZS-250226-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 16:33:04"} 
[2026-02-25 16:33:04] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4941,"order_number":"AZS-250226-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-25 16:33:04","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2100.00","database_verification_match":true,"timestamp":"2026-02-25 16:33:04"} 
[2026-02-25 16:46:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":4947,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null,"id":24321},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":24322},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null,"id":24323},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24321,"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null},{"id":24322,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":24323,"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 16:46:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4947,"items_count":4} 
[2026-02-25 16:46:20] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24321,"menu_item_id":67,"quantity":1},{"id":24322,"menu_item_id":396,"quantity":1},{"id":24323,"menu_item_id":6,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-02-25 16:46:20] local.INFO: PosOrderController::update - Item changes check {"order_id":4947,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["67|1|","396|1|","6|1|"],"new_items_map_keys":["67|1|","396|1|","6|1|","61|1|"]} 
[2026-02-25 16:46:20] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4947,"order_number":"AZS-250226-014"} 
[2026-02-25 16:46:20] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-014","replaced_order_id":4947} 
[2026-02-25 16:46:20] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4949,"items_count":4,"items":[{"menu_item_id":67,"quantity":1,"price":"599.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":6,"quantity":1,"price":"199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"}]} 
[2026-02-25 16:46:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4949,"item_index":0,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4949}} 
[2026-02-25 16:46:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4949,"item_index":0,"menu_item_id":67} 
[2026-02-25 16:46:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4949,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4949}} 
[2026-02-25 16:46:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4949,"item_index":1,"menu_item_id":396} 
[2026-02-25 16:46:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4949,"item_index":2,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4949}} 
[2026-02-25 16:46:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4949,"item_index":2,"menu_item_id":6} 
[2026-02-25 16:46:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4949,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4949}} 
[2026-02-25 16:46:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4949,"item_index":3,"menu_item_id":61} 
[2026-02-25 16:46:20] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4947,"new_order_id":4949,"order_number":"AZS-250226-014"} 
[2026-02-25 16:46:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":4943,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":24293},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":24294},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null,"id":24295},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24296},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24297},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24293,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":24294,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":24295,"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null},{"id":24296,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":24297,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 16:46:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4943,"items_count":6} 
[2026-02-25 16:46:43] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24293,"menu_item_id":105,"quantity":1},{"id":24294,"menu_item_id":396,"quantity":1},{"id":24295,"menu_item_id":51,"quantity":1},{"id":24296,"menu_item_id":61,"quantity":1},{"id":24297,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":6,"quantity":1}]} 
[2026-02-25 16:46:43] local.INFO: PosOrderController::update - Item changes check {"order_id":4943,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["105|1|","396|1|","51|1|","61|1|","5|1|"],"new_items_map_keys":["105|1|","396|1|","51|1|","61|1|","5|1|","6|1|"]} 
[2026-02-25 16:46:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4943,"order_number":"AZS-250226-012"} 
[2026-02-25 16:46:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-012","replaced_order_id":4943} 
[2026-02-25 16:46:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4950,"items_count":6,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":51,"quantity":1,"price":"199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":6,"quantity":1,"price":"199.00"}]} 
[2026-02-25 16:46:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4950,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4950}} 
[2026-02-25 16:46:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4950,"item_index":0,"menu_item_id":105} 
[2026-02-25 16:46:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4950,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4950}} 
[2026-02-25 16:46:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4950,"item_index":1,"menu_item_id":396} 
[2026-02-25 16:46:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4950,"item_index":2,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4950}} 
[2026-02-25 16:46:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4950,"item_index":2,"menu_item_id":51} 
[2026-02-25 16:46:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4950,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4950}} 
[2026-02-25 16:46:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4950,"item_index":3,"menu_item_id":61} 
[2026-02-25 16:46:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4950,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4950}} 
[2026-02-25 16:46:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4950,"item_index":4,"menu_item_id":5} 
[2026-02-25 16:46:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4950,"item_index":5,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4950}} 
[2026-02-25 16:46:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4950,"item_index":5,"menu_item_id":6} 
[2026-02-25 16:46:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4943,"new_order_id":4950,"order_number":"AZS-250226-012"} 
[2026-02-25 16:46:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4950,"item_index":0,"item_id":24293} 
[2026-02-25 16:46:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4950,"item_index":1,"item_id":24294} 
[2026-02-25 16:46:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4950,"item_index":2,"item_id":24295} 
[2026-02-25 16:46:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4950,"item_index":3,"item_id":24296} 
[2026-02-25 16:46:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4950,"item_index":4,"item_id":24297} 
[2026-02-25 16:46:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":4950,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":24293},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24294},{"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24295},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24296},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24297},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-25 16:46:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4950,"items_count":6} 
[2026-02-25 16:46:51] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[24329,24330,24331,24332,24333,24334],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":51,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":6,"quantity":1}]} 
[2026-02-25 16:46:51] local.INFO: PosOrderController::update - Item changes check {"order_id":4950,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["105|1|","396|1|","51|1|","61|1|","5|1|","6|1|"],"new_items_map_keys":["105|1|","396|1|","51|1|","61|1|","5|1|","6|1|"]} 
[2026-02-25 16:46:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4950,"order_number":"AZS-250226-012"} 
[2026-02-25 16:46:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4950,"order_number":"AZS-250226-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 16:46:51"} 
[2026-02-25 16:51:55] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4940,"order_number":"AZS-250226-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 16:51:55"} 
[2026-02-25 16:51:55] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4940,"order_number":"AZS-250226-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 16:51:55"} 
[2026-02-25 16:51:55] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4940,"order_number":"AZS-250226-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 16:51:55"} 
[2026-02-25 16:51:55] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4940,"order_number":"AZS-250226-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 16:51:55"} 
[2026-02-25 16:51:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4940,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24286}],"validated_items":[{"id":24286,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-25 16:51:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4940,"items_count":1} 
[2026-02-25 16:51:55] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24286,"menu_item_id":6,"quantity":2}]} 
[2026-02-25 16:51:55] local.INFO: PosOrderController::update - Item changes check {"order_id":4940,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-02-25 16:51:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4940,"order_number":"AZS-250226-010"} 
[2026-02-25 16:51:55] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4940,"order_number":"AZS-250226-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-25 16:51:55","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 16:51:55"} 
[2026-02-25 16:51:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4940,"order_number":"AZS-250226-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 16:51:55"} 
[2026-02-25 16:51:55] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4940,"order_number":"AZS-250226-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-25 16:51:55","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-02-25 16:51:55"} 
[2026-02-25 16:52:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":4945,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":24306},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":24307},{"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null,"id":24308},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24309},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24310},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24306,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":24307,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":24308,"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null},{"id":24309,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":24310,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 16:52:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4945,"items_count":6} 
[2026-02-25 16:52:30] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24306,"menu_item_id":62,"quantity":1},{"id":24307,"menu_item_id":65,"quantity":1},{"id":24308,"menu_item_id":52,"quantity":4},{"id":24309,"menu_item_id":61,"quantity":1},{"id":24310,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-02-25 16:52:30] local.INFO: PosOrderController::update - Item changes check {"order_id":4945,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["62|1|","65|1|","52|3|","61|1|","5|1|"],"new_items_map_keys":["62|1|","65|1|","52|4|","61|1|","5|1|","4|1|"]} 
[2026-02-25 16:52:30] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4945,"order_number":"AZS-250226-013"} 
[2026-02-25 16:52:30] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-013","replaced_order_id":4945} 
[2026-02-25 16:52:30] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4952,"items_count":6,"items":[{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":52,"quantity":4,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-02-25 16:52:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4952,"item_index":0,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4952}} 
[2026-02-25 16:52:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4952,"item_index":0,"menu_item_id":62} 
[2026-02-25 16:52:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4952,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4952}} 
[2026-02-25 16:52:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4952,"item_index":1,"menu_item_id":65} 
[2026-02-25 16:52:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4952,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4952}} 
[2026-02-25 16:52:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4952,"item_index":2,"menu_item_id":52} 
[2026-02-25 16:52:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4952,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4952}} 
[2026-02-25 16:52:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4952,"item_index":3,"menu_item_id":61} 
[2026-02-25 16:52:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4952,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4952}} 
[2026-02-25 16:52:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4952,"item_index":4,"menu_item_id":5} 
[2026-02-25 16:52:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4952,"item_index":5,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4952}} 
[2026-02-25 16:52:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4952,"item_index":5,"menu_item_id":4} 
[2026-02-25 16:52:30] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4945,"new_order_id":4952,"order_number":"AZS-250226-013"} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":4946,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":24311},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":24312},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":24313},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24314},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24315},{"menu_item_id":393,"quantity":2,"discount_percent":0,"notes":null,"id":24316},{"menu_item_id":172,"quantity":2,"discount_percent":0,"notes":null,"id":24317},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":24318},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null,"id":24319},{"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null,"id":24320}],"validated_items":[{"id":24311,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"id":24312,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":24313,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"id":24314,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":24315,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":24316,"menu_item_id":393,"quantity":2,"discount_percent":0,"notes":null},{"id":24317,"menu_item_id":172,"quantity":2,"discount_percent":0,"notes":null},{"id":24318,"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null},{"id":24319,"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"id":24320,"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4946,"items_count":10} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24311,"menu_item_id":3,"quantity":1},{"id":24312,"menu_item_id":105,"quantity":1},{"id":24313,"menu_item_id":48,"quantity":1},{"id":24314,"menu_item_id":61,"quantity":1},{"id":24315,"menu_item_id":56,"quantity":1},{"id":24316,"menu_item_id":393,"quantity":2},{"id":24317,"menu_item_id":172,"quantity":2},{"id":24318,"menu_item_id":2,"quantity":3},{"id":24319,"menu_item_id":13,"quantity":2},{"id":24320,"menu_item_id":9,"quantity":1}]} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Item changes check {"order_id":4946,"has_item_changes":true,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["3|1|","105|1|","48|1|","61|1|","56|1|","393|2|","172|2|","2|3|","13|1|","9|1|"],"new_items_map_keys":["3|1|","105|1|","48|1|","61|1|","56|1|","393|2|","172|2|","2|3|","13|2|","9|1|"]} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4946,"order_number":"AZS-250226-002"} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-002","replaced_order_id":4946} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4953,"items_count":10,"items":[{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":393,"quantity":2,"price":"499.00"},{"menu_item_id":172,"quantity":2,"price":"999.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":9,"quantity":1,"price":"229.00"}]} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4953,"item_index":0,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4953}} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4953,"item_index":0,"menu_item_id":3} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4953,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4953}} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4953,"item_index":1,"menu_item_id":105} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4953,"item_index":2,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4953}} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4953,"item_index":2,"menu_item_id":48} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4953,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4953}} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4953,"item_index":3,"menu_item_id":61} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4953,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4953}} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4953,"item_index":4,"menu_item_id":56} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4953,"item_index":5,"item_data":{"menu_item_id":393,"restaurant_category_id":35,"restaurant_category_name":"ROCK N ROLL","item_name":"Chicken Shawarma","quantity":2,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4953}} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4953,"item_index":5,"menu_item_id":393} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4953,"item_index":6,"item_data":{"menu_item_id":172,"restaurant_category_id":17,"restaurant_category_name":"BURGER","item_name":"Zinger Burger","quantity":2,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":1998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4953}} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4953,"item_index":6,"menu_item_id":172} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4953,"item_index":7,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4953}} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4953,"item_index":7,"menu_item_id":2} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4953,"item_index":8,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4953}} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4953,"item_index":8,"menu_item_id":13} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4953,"item_index":9,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":1,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":229.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4953}} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4953,"item_index":9,"menu_item_id":9} 
[2026-02-25 16:53:07] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4946,"new_order_id":4953,"order_number":"AZS-250226-002"} 
[2026-02-25 16:56:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":4952,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":24336},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24337},{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":24338},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24339},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24340},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":24341}],"validated_items":[{"id":24336,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":24337,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":24338,"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":24339,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24340,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24341,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-25 16:56:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4952,"items_count":6} 
[2026-02-25 16:56:13] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24336,"menu_item_id":62,"quantity":1},{"id":24337,"menu_item_id":65,"quantity":1},{"id":24338,"menu_item_id":52,"quantity":4},{"id":24339,"menu_item_id":61,"quantity":1},{"id":24340,"menu_item_id":5,"quantity":1},{"id":24341,"menu_item_id":4,"quantity":1}]} 
[2026-02-25 16:56:13] local.INFO: PosOrderController::update - Item changes check {"order_id":4952,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["62|1|","65|1|","52|4|","61|1|","5|1|","4|1|"],"new_items_map_keys":["62|1|","65|1|","52|4|","61|1|","5|1|","4|1|"]} 
[2026-02-25 16:56:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4952,"order_number":"AZS-250226-013"} 
[2026-02-25 16:56:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4952,"order_number":"AZS-250226-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 16:56:13"} 
[2026-02-25 16:56:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":4952,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":24336},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24337},{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":24338},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24339},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":24341}],"validated_items":[{"id":24336,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":24337,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":24338,"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":24339,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24341,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-25 16:56:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4952,"items_count":5} 
[2026-02-25 16:56:27] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[24340],"items":[{"id":24336,"menu_item_id":62,"quantity":1},{"id":24337,"menu_item_id":65,"quantity":1},{"id":24338,"menu_item_id":52,"quantity":4},{"id":24339,"menu_item_id":61,"quantity":1},{"id":24341,"menu_item_id":4,"quantity":1}]} 
[2026-02-25 16:56:27] local.INFO: PosOrderController::update - Item changes check {"order_id":4952,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["62|1|","65|1|","52|4|","61|1|","5|1|","4|1|"],"new_items_map_keys":["62|1|","65|1|","52|4|","61|1|","4|1|"]} 
[2026-02-25 16:56:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4952,"order_number":"AZS-250226-013"} 
[2026-02-25 16:56:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-013","replaced_order_id":4952} 
[2026-02-25 16:56:28] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4954,"items_count":5,"items":[{"menu_item_id":62,"quantity":1,"price":1499.0},{"menu_item_id":65,"quantity":1,"price":1299.0},{"menu_item_id":52,"quantity":4,"price":70.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":4,"quantity":1,"price":90.0}]} 
[2026-02-25 16:56:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4954,"item_index":0,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":1499.0,"discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4954}} 
[2026-02-25 16:56:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4954,"item_index":0,"menu_item_id":62} 
[2026-02-25 16:56:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4954,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4954}} 
[2026-02-25 16:56:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4954,"item_index":1,"menu_item_id":65} 
[2026-02-25 16:56:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4954,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":4,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4954}} 
[2026-02-25 16:56:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4954,"item_index":2,"menu_item_id":52} 
[2026-02-25 16:56:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4954,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4954}} 
[2026-02-25 16:56:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4954,"item_index":3,"menu_item_id":61} 
[2026-02-25 16:56:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4954,"item_index":4,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":90.0,"discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4954}} 
[2026-02-25 16:56:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4954,"item_index":4,"menu_item_id":4} 
[2026-02-25 16:56:28] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4952,"new_order_id":4954,"order_number":"AZS-250226-013"} 
[2026-02-25 16:56:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4954,"item_index":0,"item_id":24336} 
[2026-02-25 16:56:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4954,"item_index":1,"item_id":24337} 
[2026-02-25 16:56:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4954,"item_index":2,"item_id":24338} 
[2026-02-25 16:56:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4954,"item_index":3,"item_id":24339} 
[2026-02-25 16:56:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4954,"item_index":4,"item_id":24341} 
[2026-02-25 16:56:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":4954,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":24336},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24337},{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":24338},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24339},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":24341}],"validated_items":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-25 16:56:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4954,"items_count":5} 
[2026-02-25 16:56:33] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[24352,24353,24354,24355,24356],"items":[{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":52,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-02-25 16:56:33] local.INFO: PosOrderController::update - Item changes check {"order_id":4954,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["62|1|","65|1|","52|4|","61|1|","4|1|"],"new_items_map_keys":["62|1|","65|1|","52|4|","61|1|","4|1|"]} 
[2026-02-25 16:56:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4954,"order_number":"AZS-250226-013"} 
[2026-02-25 16:56:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4954,"order_number":"AZS-250226-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 16:56:33"} 
[2026-02-25 16:56:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":4950,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":24329},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24330},{"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24331},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24332},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24333},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24334}],"validated_items":[{"id":24329,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":24330,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":24331,"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24332,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24333,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24334,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-25 16:56:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4950,"items_count":6} 
[2026-02-25 16:56:51] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24329,"menu_item_id":105,"quantity":1},{"id":24330,"menu_item_id":396,"quantity":1},{"id":24331,"menu_item_id":51,"quantity":1},{"id":24332,"menu_item_id":61,"quantity":1},{"id":24333,"menu_item_id":5,"quantity":1},{"id":24334,"menu_item_id":6,"quantity":1}]} 
[2026-02-25 16:56:51] local.INFO: PosOrderController::update - Item changes check {"order_id":4950,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["105|1|","396|1|","51|1|","61|1|","5|1|","6|1|"],"new_items_map_keys":["105|1|","396|1|","51|1|","61|1|","5|1|","6|1|"]} 
[2026-02-25 16:56:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4950,"order_number":"AZS-250226-012"} 
[2026-02-25 16:56:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4950,"order_number":"AZS-250226-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 16:56:51"} 
[2026-02-25 16:57:10] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4950,"order_number":"AZS-250226-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 16:57:10"} 
[2026-02-25 16:57:10] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4950,"order_number":"AZS-250226-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 16:57:10"} 
[2026-02-25 16:57:10] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4950,"order_number":"AZS-250226-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 16:57:10"} 
[2026-02-25 16:57:10] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4950,"order_number":"AZS-250226-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 16:57:10"} 
[2026-02-25 16:57:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":4950,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":24329},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24330},{"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24331},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24333},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24334}],"validated_items":[{"id":24329,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":24330,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":24331,"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24333,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24334,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-25 16:57:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4950,"items_count":5} 
[2026-02-25 16:57:10] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[24332],"items":[{"id":24329,"menu_item_id":105,"quantity":1},{"id":24330,"menu_item_id":396,"quantity":1},{"id":24331,"menu_item_id":51,"quantity":1},{"id":24333,"menu_item_id":5,"quantity":1},{"id":24334,"menu_item_id":6,"quantity":1}]} 
[2026-02-25 16:57:10] local.INFO: PosOrderController::update - Item changes check {"order_id":4950,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["105|1|","396|1|","51|1|","61|1|","5|1|","6|1|"],"new_items_map_keys":["105|1|","396|1|","51|1|","5|1|","6|1|"]} 
[2026-02-25 16:57:10] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":4950,"order_number":"AZS-250226-012","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-02-25 16:57:10","original_payment_amount":"0.00","grand_total":2866.0,"timestamp":"2026-02-25 16:57:10"} 
[2026-02-25 16:57:10] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4950,"order_number":"AZS-250226-012"} 
[2026-02-25 16:57:10] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-012","replaced_order_id":4950} 
[2026-02-25 16:57:10] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":4950,"new_order_id":4955,"order_number":"AZS-250226-012","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-02-25 16:57:10","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-02-25 16:57:10"} 
[2026-02-25 16:57:10] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4955,"items_count":5,"items":[{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":51,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":6,"quantity":1,"price":199.0}]} 
[2026-02-25 16:57:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4955,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4955}} 
[2026-02-25 16:57:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4955,"item_index":0,"menu_item_id":105} 
[2026-02-25 16:57:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4955,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4955}} 
[2026-02-25 16:57:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4955,"item_index":1,"menu_item_id":396} 
[2026-02-25 16:57:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4955,"item_index":2,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4955}} 
[2026-02-25 16:57:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4955,"item_index":2,"menu_item_id":51} 
[2026-02-25 16:57:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4955,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4955}} 
[2026-02-25 16:57:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4955,"item_index":3,"menu_item_id":5} 
[2026-02-25 16:57:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4955,"item_index":4,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4955}} 
[2026-02-25 16:57:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4955,"item_index":4,"menu_item_id":6} 
[2026-02-25 16:57:10] local.ERROR: Error tracking recipe usage for order 4955: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (4955, 105, 196, 1, 500, 0.00, Order #AZS-250226-012 - 1x Mutton Shinwari - Half, 2026-02-25 16:57:10, 2026-02-25 16:57:10))  
[2026-02-25 16:57:10] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4950,"new_order_id":4955,"order_number":"AZS-250226-012"} 
[2026-02-25 16:57:11] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":4950,"new_order_id":4955,"order_number":"AZS-250226-012","route":"api/orders/4950"} 
[2026-02-25 17:04:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4951,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24335}],"validated_items":[{"id":24335,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-25 17:04:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4951,"items_count":1} 
[2026-02-25 17:04:39] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24335,"menu_item_id":6,"quantity":2}]} 
[2026-02-25 17:04:39] local.INFO: PosOrderController::update - Item changes check {"order_id":4951,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-02-25 17:04:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4951,"order_number":"AZS-250226-016"} 
[2026-02-25 17:04:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4951,"order_number":"AZS-250226-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 17:04:39"} 
[2026-02-25 17:06:17] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4951,"order_number":"AZS-250226-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 17:06:17"} 
[2026-02-25 17:06:17] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4951,"order_number":"AZS-250226-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 17:06:17"} 
[2026-02-25 17:06:17] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4951,"order_number":"AZS-250226-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 17:06:17"} 
[2026-02-25 17:06:17] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4951,"order_number":"AZS-250226-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 17:06:17"} 
[2026-02-25 17:06:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4951,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24335}],"validated_items":[{"id":24335,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-25 17:06:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4951,"items_count":1} 
[2026-02-25 17:06:17] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24335,"menu_item_id":6,"quantity":2}]} 
[2026-02-25 17:06:17] local.INFO: PosOrderController::update - Item changes check {"order_id":4951,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-02-25 17:06:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4951,"order_number":"AZS-250226-016"} 
[2026-02-25 17:06:17] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4951,"order_number":"AZS-250226-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-25 17:06:17","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 17:06:17"} 
[2026-02-25 17:06:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4951,"order_number":"AZS-250226-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 17:06:17"} 
[2026-02-25 17:06:17] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4951,"order_number":"AZS-250226-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-25 17:06:17","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-02-25 17:06:17"} 
[2026-02-25 17:08:31] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4954,"order_number":"AZS-250226-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3535,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 17:08:31"} 
[2026-02-25 17:08:31] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4954,"order_number":"AZS-250226-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3535,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 17:08:31"} 
[2026-02-25 17:08:31] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4954,"order_number":"AZS-250226-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3535,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 17:08:31"} 
[2026-02-25 17:08:31] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4954,"order_number":"AZS-250226-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3535,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 17:08:31"} 
[2026-02-25 17:08:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":4954,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":24352},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24353},{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":24354},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24355},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":24356}],"validated_items":[{"id":24352,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":24353,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":24354,"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":24355,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24356,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-25 17:08:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4954,"items_count":5} 
[2026-02-25 17:08:31] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24352,"menu_item_id":62,"quantity":1},{"id":24353,"menu_item_id":65,"quantity":1},{"id":24354,"menu_item_id":52,"quantity":4},{"id":24355,"menu_item_id":61,"quantity":1},{"id":24356,"menu_item_id":4,"quantity":1}]} 
[2026-02-25 17:08:31] local.INFO: PosOrderController::update - Item changes check {"order_id":4954,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["62|1|","65|1|","52|4|","61|1|","4|1|"],"new_items_map_keys":["62|1|","65|1|","52|4|","61|1|","4|1|"]} 
[2026-02-25 17:08:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4954,"order_number":"AZS-250226-013"} 
[2026-02-25 17:08:31] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4954,"order_number":"AZS-250226-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3535,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-25 17:08:31","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 17:08:31"} 
[2026-02-25 17:08:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4954,"order_number":"AZS-250226-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 17:08:31"} 
[2026-02-25 17:08:31] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4954,"order_number":"AZS-250226-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3535.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-25 17:08:31","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3535,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3535.00","database_verification_match":true,"timestamp":"2026-02-25 17:08:31"} 
[2026-02-25 17:12:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":4949,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null,"id":24325},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":24326},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null,"id":24327},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24328},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24325,"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null},{"id":24326,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":24327,"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null},{"id":24328,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 17:12:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4949,"items_count":5} 
[2026-02-25 17:12:33] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24325,"menu_item_id":67,"quantity":1},{"id":24326,"menu_item_id":396,"quantity":1},{"id":24327,"menu_item_id":6,"quantity":1},{"id":24328,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 17:12:33] local.INFO: PosOrderController::update - Item changes check {"order_id":4949,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["67|1|","396|1|","6|1|","61|1|"],"new_items_map_keys":["67|1|","396|1|","6|1|","61|1|","5|1|"]} 
[2026-02-25 17:12:33] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4949,"order_number":"AZS-250226-014"} 
[2026-02-25 17:12:33] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-014","replaced_order_id":4949} 
[2026-02-25 17:12:33] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4957,"items_count":5,"items":[{"menu_item_id":67,"quantity":1,"price":"599.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":6,"quantity":1,"price":"199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-25 17:12:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4957,"item_index":0,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4957}} 
[2026-02-25 17:12:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4957,"item_index":0,"menu_item_id":67} 
[2026-02-25 17:12:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4957,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4957}} 
[2026-02-25 17:12:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4957,"item_index":1,"menu_item_id":396} 
[2026-02-25 17:12:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4957,"item_index":2,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4957}} 
[2026-02-25 17:12:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4957,"item_index":2,"menu_item_id":6} 
[2026-02-25 17:12:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4957,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4957}} 
[2026-02-25 17:12:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4957,"item_index":3,"menu_item_id":61} 
[2026-02-25 17:12:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4957,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4957}} 
[2026-02-25 17:12:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4957,"item_index":4,"menu_item_id":5} 
[2026-02-25 17:12:33] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4949,"new_order_id":4957,"order_number":"AZS-250226-014"} 
[2026-02-25 17:12:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4957,"item_index":0,"item_id":24325} 
[2026-02-25 17:12:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4957,"item_index":1,"item_id":24326} 
[2026-02-25 17:12:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4957,"item_index":2,"item_id":24327} 
[2026-02-25 17:12:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4957,"item_index":3,"item_id":24328} 
[2026-02-25 17:12:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":4957,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":24325},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24326},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24327},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24328},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-25 17:12:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4957,"items_count":5} 
[2026-02-25 17:12:40] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[24365,24366,24367,24368,24369],"items":[{"id":null,"menu_item_id":67,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":6,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 17:12:40] local.INFO: PosOrderController::update - Item changes check {"order_id":4957,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["67|1|","396|1|","6|1|","61|1|","5|1|"],"new_items_map_keys":["67|1|","396|1|","6|1|","61|1|","5|1|"]} 
[2026-02-25 17:12:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4957,"order_number":"AZS-250226-014"} 
[2026-02-25 17:12:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4957,"order_number":"AZS-250226-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 17:12:40"} 
[2026-02-25 17:28:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":4960,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":24373},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":24374},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24375},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24376},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24373,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":24374,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":24375,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":24376,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 17:28:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4960,"items_count":5} 
[2026-02-25 17:28:54] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24373,"menu_item_id":98,"quantity":1},{"id":24374,"menu_item_id":396,"quantity":2},{"id":24375,"menu_item_id":61,"quantity":1},{"id":24376,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 17:28:54] local.INFO: PosOrderController::update - Item changes check {"order_id":4960,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["98|1|","396|2|","61|1|","56|1|"],"new_items_map_keys":["98|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-02-25 17:28:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4960,"order_number":"AZS-250226-020"} 
[2026-02-25 17:28:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-020","replaced_order_id":4960} 
[2026-02-25 17:28:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4961,"items_count":5,"items":[{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-25 17:28:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4961,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4961}} 
[2026-02-25 17:28:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4961,"item_index":0,"menu_item_id":98} 
[2026-02-25 17:28:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4961,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4961}} 
[2026-02-25 17:28:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4961,"item_index":1,"menu_item_id":396} 
[2026-02-25 17:28:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4961,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4961}} 
[2026-02-25 17:28:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4961,"item_index":2,"menu_item_id":61} 
[2026-02-25 17:28:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4961,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4961}} 
[2026-02-25 17:28:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4961,"item_index":3,"menu_item_id":56} 
[2026-02-25 17:28:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4961,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4961}} 
[2026-02-25 17:28:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4961,"item_index":4,"menu_item_id":5} 
[2026-02-25 17:28:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4960,"new_order_id":4961,"order_number":"AZS-250226-020"} 
[2026-02-25 17:28:58] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4961,"item_index":0,"item_id":24373} 
[2026-02-25 17:28:58] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4961,"item_index":1,"item_id":24374} 
[2026-02-25 17:28:58] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4961,"item_index":2,"item_id":24375} 
[2026-02-25 17:28:58] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4961,"item_index":3,"item_id":24376} 
[2026-02-25 17:28:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":4961,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":24373},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":24374},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24375},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24376},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 17:28:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4961,"items_count":5} 
[2026-02-25 17:28:58] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[24377,24378,24379,24380,24381],"items":[{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 17:28:58] local.INFO: PosOrderController::update - Item changes check {"order_id":4961,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["98|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["98|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-02-25 17:28:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4961,"order_number":"AZS-250226-020"} 
[2026-02-25 17:28:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4961,"order_number":"AZS-250226-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-25 17:28:58"} 
[2026-02-25 17:31:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":4957,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":24365},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24366},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24367},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24368},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24369}],"validated_items":[{"id":24365,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":24366,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":24367,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24368,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24369,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-25 17:31:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4957,"items_count":5} 
[2026-02-25 17:31:58] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24365,"menu_item_id":67,"quantity":1},{"id":24366,"menu_item_id":396,"quantity":1},{"id":24367,"menu_item_id":6,"quantity":1},{"id":24368,"menu_item_id":61,"quantity":1},{"id":24369,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 17:31:58] local.INFO: PosOrderController::update - Item changes check {"order_id":4957,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["67|1|","396|1|","6|1|","61|1|","5|1|"],"new_items_map_keys":["67|1|","396|1|","6|1|","61|1|","5|1|"]} 
[2026-02-25 17:31:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4957,"order_number":"AZS-250226-014"} 
[2026-02-25 17:31:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4957,"order_number":"AZS-250226-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 17:31:58"} 
[2026-02-25 17:32:25] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4957,"order_number":"AZS-250226-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 17:32:25"} 
[2026-02-25 17:32:25] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4957,"order_number":"AZS-250226-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 17:32:25"} 
[2026-02-25 17:32:25] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4957,"order_number":"AZS-250226-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 17:32:25"} 
[2026-02-25 17:32:25] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4957,"order_number":"AZS-250226-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 17:32:25"} 
[2026-02-25 17:32:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":4957,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":24365},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24366},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24367},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24369}],"validated_items":[{"id":24365,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":24366,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":24367,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24369,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-25 17:32:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4957,"items_count":4} 
[2026-02-25 17:32:25] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[24368],"items":[{"id":24365,"menu_item_id":67,"quantity":1},{"id":24366,"menu_item_id":396,"quantity":1},{"id":24367,"menu_item_id":6,"quantity":1},{"id":24369,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 17:32:25] local.INFO: PosOrderController::update - Item changes check {"order_id":4957,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["67|1|","396|1|","6|1|","61|1|","5|1|"],"new_items_map_keys":["67|1|","396|1|","6|1|","5|1|"]} 
[2026-02-25 17:32:25] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":4957,"order_number":"AZS-250226-014","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":1200,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-02-25 17:32:25","original_payment_amount":"0.00","grand_total":1120.0,"timestamp":"2026-02-25 17:32:25"} 
[2026-02-25 17:32:25] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4957,"order_number":"AZS-250226-014"} 
[2026-02-25 17:32:25] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-014","replaced_order_id":4957} 
[2026-02-25 17:32:25] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":4957,"new_order_id":4963,"order_number":"AZS-250226-014","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"1200.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-02-25 17:32:25","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-02-25 17:32:25"} 
[2026-02-25 17:32:25] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4963,"items_count":4,"items":[{"menu_item_id":67,"quantity":1,"price":599.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":6,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-02-25 17:32:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4963,"item_index":0,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":1,"price":599.0,"discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4963}} 
[2026-02-25 17:32:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4963,"item_index":0,"menu_item_id":67} 
[2026-02-25 17:32:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4963,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4963}} 
[2026-02-25 17:32:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4963,"item_index":1,"menu_item_id":396} 
[2026-02-25 17:32:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4963,"item_index":2,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4963}} 
[2026-02-25 17:32:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4963,"item_index":2,"menu_item_id":6} 
[2026-02-25 17:32:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4963,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4963}} 
[2026-02-25 17:32:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4963,"item_index":3,"menu_item_id":5} 
[2026-02-25 17:32:25] local.ERROR: Error tracking recipe usage for order 4963: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (4963, 6, 177, 1, 333, 0.00, Order #AZS-250226-014 - 1x Karak Tea, 2026-02-25 17:32:25, 2026-02-25 17:32:25))  
[2026-02-25 17:32:25] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4957,"new_order_id":4963,"order_number":"AZS-250226-014"} 
[2026-02-25 17:32:26] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":4957,"new_order_id":4963,"order_number":"AZS-250226-014","route":"api/orders/4957"} 
[2026-02-25 17:36:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":4956,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":24362},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":24363},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null,"id":24364},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24362,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":24363,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":24364,"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 17:36:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4956,"items_count":4} 
[2026-02-25 17:36:08] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24362,"menu_item_id":98,"quantity":1},{"id":24363,"menu_item_id":396,"quantity":1},{"id":24364,"menu_item_id":29,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-02-25 17:36:08] local.INFO: PosOrderController::update - Item changes check {"order_id":4956,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["98|1|","396|1|","29|1|"],"new_items_map_keys":["98|1|","396|1|","29|1|","2|1|"]} 
[2026-02-25 17:36:08] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4956,"order_number":"AZS-250226-017"} 
[2026-02-25 17:36:08] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-017","replaced_order_id":4956} 
[2026-02-25 17:36:08] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4964,"items_count":4,"items":[{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-02-25 17:36:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4964,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4964}} 
[2026-02-25 17:36:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4964,"item_index":0,"menu_item_id":98} 
[2026-02-25 17:36:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4964,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4964}} 
[2026-02-25 17:36:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4964,"item_index":1,"menu_item_id":396} 
[2026-02-25 17:36:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4964,"item_index":2,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4964}} 
[2026-02-25 17:36:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4964,"item_index":2,"menu_item_id":29} 
[2026-02-25 17:36:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4964,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4964}} 
[2026-02-25 17:36:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4964,"item_index":3,"menu_item_id":2} 
[2026-02-25 17:36:08] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4956,"new_order_id":4964,"order_number":"AZS-250226-017"} 
[2026-02-25 17:49:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":4959,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":7,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":24371},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24372}],"validated_items":[{"id":24371,"menu_item_id":7,"quantity":5,"price":249,"discount_percent":0,"notes":null},{"id":24372,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-25 17:49:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4959,"items_count":2} 
[2026-02-25 17:49:18] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24371,"menu_item_id":7,"quantity":5},{"id":24372,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 17:49:18] local.INFO: PosOrderController::update - Item changes check {"order_id":4959,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["7|5|","5|1|"],"new_items_map_keys":["7|5|","5|1|"]} 
[2026-02-25 17:49:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4959,"order_number":"AZS-250226-019"} 
[2026-02-25 17:49:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4959,"order_number":"AZS-250226-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 17:49:18"} 
[2026-02-25 17:50:23] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4959,"order_number":"AZS-250226-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 17:50:23"} 
[2026-02-25 17:50:23] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4959,"order_number":"AZS-250226-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 17:50:23"} 
[2026-02-25 17:50:23] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4959,"order_number":"AZS-250226-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 17:50:23"} 
[2026-02-25 17:50:23] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4959,"order_number":"AZS-250226-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 17:50:23"} 
[2026-02-25 17:50:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":4959,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":7,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":24371},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24372}],"validated_items":[{"id":24371,"menu_item_id":7,"quantity":5,"price":249,"discount_percent":0,"notes":null},{"id":24372,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-25 17:50:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4959,"items_count":2} 
[2026-02-25 17:50:23] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24371,"menu_item_id":7,"quantity":5},{"id":24372,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 17:50:23] local.INFO: PosOrderController::update - Item changes check {"order_id":4959,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["7|5|","5|1|"],"new_items_map_keys":["7|5|","5|1|"]} 
[2026-02-25 17:50:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4959,"order_number":"AZS-250226-019"} 
[2026-02-25 17:50:23] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4959,"order_number":"AZS-250226-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-25 17:50:23","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 17:50:23"} 
[2026-02-25 17:50:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4959,"order_number":"AZS-250226-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 17:50:23"} 
[2026-02-25 17:50:23] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4959,"order_number":"AZS-250226-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-25 17:50:23","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1500.00","database_verification_match":true,"timestamp":"2026-02-25 17:50:23"} 
[2026-02-25 17:57:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":4964,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24389},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24390},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":24391},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":24392}],"validated_items":[{"id":24389,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24390,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":24391,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":24392,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-02-25 17:57:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4964,"items_count":4} 
[2026-02-25 17:57:26] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24389,"menu_item_id":98,"quantity":1},{"id":24390,"menu_item_id":396,"quantity":1},{"id":24391,"menu_item_id":29,"quantity":1},{"id":24392,"menu_item_id":2,"quantity":1}]} 
[2026-02-25 17:57:26] local.INFO: PosOrderController::update - Item changes check {"order_id":4964,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["98|1|","396|1|","29|1|","2|1|"],"new_items_map_keys":["98|1|","396|1|","29|1|","2|1|"]} 
[2026-02-25 17:57:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4964,"order_number":"AZS-250226-017"} 
[2026-02-25 17:57:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4964,"order_number":"AZS-250226-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 17:57:26"} 
[2026-02-25 18:02:30] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4964,"order_number":"AZS-250226-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 18:02:30"} 
[2026-02-25 18:02:30] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4964,"order_number":"AZS-250226-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 18:02:30"} 
[2026-02-25 18:02:30] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4964,"order_number":"AZS-250226-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 18:02:30"} 
[2026-02-25 18:02:30] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4964,"order_number":"AZS-250226-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 18:02:30"} 
[2026-02-25 18:02:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":4964,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24389},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24390},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":24391},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":24392}],"validated_items":[{"id":24389,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24390,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":24391,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":24392,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-02-25 18:02:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4964,"items_count":4} 
[2026-02-25 18:02:30] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24389,"menu_item_id":98,"quantity":1},{"id":24390,"menu_item_id":396,"quantity":1},{"id":24391,"menu_item_id":29,"quantity":1},{"id":24392,"menu_item_id":2,"quantity":1}]} 
[2026-02-25 18:02:30] local.INFO: PosOrderController::update - Item changes check {"order_id":4964,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["98|1|","396|1|","29|1|","2|1|"],"new_items_map_keys":["98|1|","396|1|","29|1|","2|1|"]} 
[2026-02-25 18:02:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4964,"order_number":"AZS-250226-017"} 
[2026-02-25 18:02:30] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4964,"order_number":"AZS-250226-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-25 18:02:30","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 18:02:30"} 
[2026-02-25 18:02:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4964,"order_number":"AZS-250226-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 18:02:30"} 
[2026-02-25 18:02:30] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4964,"order_number":"AZS-250226-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-25 18:02:30","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-02-25 18:02:30"} 
[2026-02-25 18:03:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":4961,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24377},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24378},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24379},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24380},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24381}],"validated_items":[{"id":24377,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24378,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24379,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24380,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24381,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-25 18:03:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4961,"items_count":5} 
[2026-02-25 18:03:49] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24377,"menu_item_id":98,"quantity":1},{"id":24378,"menu_item_id":396,"quantity":2},{"id":24379,"menu_item_id":61,"quantity":1},{"id":24380,"menu_item_id":56,"quantity":1},{"id":24381,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 18:03:49] local.INFO: PosOrderController::update - Item changes check {"order_id":4961,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["98|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["98|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-02-25 18:03:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4961,"order_number":"AZS-250226-020"} 
[2026-02-25 18:03:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4961,"order_number":"AZS-250226-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 18:03:49"} 
[2026-02-25 18:04:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T06:04:47.433Z","date_to":"2026-02-25T18:04:47.433Z","per_page":"100"} 
[2026-02-25 18:04:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":45,"count":45,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-023","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001"],"order_statuses":["pending","pending","pending","pending","changed","paid","pending","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","pending","changed","changed","changed","changed","pending"],"deleted_count":22,"paid_count":15,"unpaid_count":8,"unique_order_numbers":23} 
[2026-02-25 18:04:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T06:04:47.453Z","date_to":"2026-02-25T18:04:47.453Z","per_page":"100"} 
[2026-02-25 18:04:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":45,"count":45,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-023","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001"],"order_statuses":["pending","pending","pending","pending","changed","paid","pending","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","pending","changed","changed","changed","changed","pending"],"deleted_count":22,"paid_count":15,"unpaid_count":8,"unique_order_numbers":23} 
[2026-02-25 18:04:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T06:04:47.433Z","date_to":"2026-02-25T18:04:47.433Z","per_page":"100"} 
[2026-02-25 18:04:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":45,"count":45,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-023","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001"],"order_statuses":["pending","pending","pending","pending","changed","paid","pending","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","pending","changed","changed","changed","changed","pending"],"deleted_count":22,"paid_count":15,"unpaid_count":8,"unique_order_numbers":23} 
[2026-02-25 18:07:43] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4961,"order_number":"AZS-250226-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2063,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 18:07:43"} 
[2026-02-25 18:07:43] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4961,"order_number":"AZS-250226-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2063,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 18:07:43"} 
[2026-02-25 18:07:43] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4961,"order_number":"AZS-250226-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2063,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 18:07:43"} 
[2026-02-25 18:07:43] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4961,"order_number":"AZS-250226-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2063,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 18:07:43"} 
[2026-02-25 18:07:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":4961,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24377},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24378},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24379},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24380},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24381}],"validated_items":[{"id":24377,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24378,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24379,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24380,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24381,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-25 18:07:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4961,"items_count":5} 
[2026-02-25 18:07:43] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24377,"menu_item_id":98,"quantity":1},{"id":24378,"menu_item_id":396,"quantity":2},{"id":24379,"menu_item_id":61,"quantity":1},{"id":24380,"menu_item_id":56,"quantity":1},{"id":24381,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 18:07:43] local.INFO: PosOrderController::update - Item changes check {"order_id":4961,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["98|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["98|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-02-25 18:07:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4961,"order_number":"AZS-250226-020"} 
[2026-02-25 18:07:43] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4961,"order_number":"AZS-250226-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2063,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-25 18:07:43","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 18:07:43"} 
[2026-02-25 18:07:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4961,"order_number":"AZS-250226-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 18:07:43"} 
[2026-02-25 18:07:43] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4961,"order_number":"AZS-250226-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2063.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-25 18:07:43","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2063,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2063.00","database_verification_match":true,"timestamp":"2026-02-25 18:07:43"} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":4953,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":24342},{"menu_item_id":105,"quantity":2,"discount_percent":0,"notes":null,"id":24343},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":24344},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24345},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24346},{"menu_item_id":393,"quantity":2,"discount_percent":0,"notes":null,"id":24347},{"menu_item_id":172,"quantity":2,"discount_percent":0,"notes":null,"id":24348},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":24349},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null,"id":24350},{"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null,"id":24351}],"validated_items":[{"id":24342,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"id":24343,"menu_item_id":105,"quantity":2,"discount_percent":0,"notes":null},{"id":24344,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"id":24345,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":24346,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":24347,"menu_item_id":393,"quantity":2,"discount_percent":0,"notes":null},{"id":24348,"menu_item_id":172,"quantity":2,"discount_percent":0,"notes":null},{"id":24349,"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null},{"id":24350,"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"id":24351,"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4953,"items_count":10} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24342,"menu_item_id":3,"quantity":1},{"id":24343,"menu_item_id":105,"quantity":2},{"id":24344,"menu_item_id":48,"quantity":1},{"id":24345,"menu_item_id":61,"quantity":1},{"id":24346,"menu_item_id":56,"quantity":1},{"id":24347,"menu_item_id":393,"quantity":2},{"id":24348,"menu_item_id":172,"quantity":2},{"id":24349,"menu_item_id":2,"quantity":3},{"id":24350,"menu_item_id":13,"quantity":2},{"id":24351,"menu_item_id":9,"quantity":1}]} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Item changes check {"order_id":4953,"has_item_changes":true,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["3|1|","105|1|","48|1|","61|1|","56|1|","393|2|","172|2|","2|3|","13|2|","9|1|"],"new_items_map_keys":["3|1|","105|2|","48|1|","61|1|","56|1|","393|2|","172|2|","2|3|","13|2|","9|1|"]} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4953,"order_number":"AZS-250226-002"} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-002","replaced_order_id":4953} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4967,"items_count":10,"items":[{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":105,"quantity":2,"price":"2199.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":393,"quantity":2,"price":"499.00"},{"menu_item_id":172,"quantity":2,"price":"999.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":9,"quantity":1,"price":"229.00"}]} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4967,"item_index":0,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4967}} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4967,"item_index":0,"menu_item_id":3} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4967,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":2,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":4398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4967}} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4967,"item_index":1,"menu_item_id":105} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4967,"item_index":2,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4967}} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4967,"item_index":2,"menu_item_id":48} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4967,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4967}} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4967,"item_index":3,"menu_item_id":61} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4967,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4967}} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4967,"item_index":4,"menu_item_id":56} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4967,"item_index":5,"item_data":{"menu_item_id":393,"restaurant_category_id":35,"restaurant_category_name":"ROCK N ROLL","item_name":"Chicken Shawarma","quantity":2,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4967}} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4967,"item_index":5,"menu_item_id":393} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4967,"item_index":6,"item_data":{"menu_item_id":172,"restaurant_category_id":17,"restaurant_category_name":"BURGER","item_name":"Zinger Burger","quantity":2,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":1998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4967}} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4967,"item_index":6,"menu_item_id":172} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4967,"item_index":7,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4967}} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4967,"item_index":7,"menu_item_id":2} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4967,"item_index":8,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4967}} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4967,"item_index":8,"menu_item_id":13} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4967,"item_index":9,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":1,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":229.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4967}} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4967,"item_index":9,"menu_item_id":9} 
[2026-02-25 18:07:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4953,"new_order_id":4967,"order_number":"AZS-250226-002"} 
[2026-02-25 18:08:36] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4967,"order_number":"AZS-250226-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":9429,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 18:08:36"} 
[2026-02-25 18:08:36] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4967,"order_number":"AZS-250226-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":9429,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 18:08:36"} 
[2026-02-25 18:08:36] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4967,"order_number":"AZS-250226-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":9429,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 18:08:36"} 
[2026-02-25 18:08:36] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4967,"order_number":"AZS-250226-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":9429,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 18:08:36"} 
[2026-02-25 18:08:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":4967,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24400},{"menu_item_id":105,"quantity":2,"price":2199,"discount_percent":0,"notes":null,"id":24401},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":24402},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24403},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24404},{"menu_item_id":393,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":24405},{"menu_item_id":172,"quantity":2,"price":999,"discount_percent":0,"notes":null,"id":24406},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":24407},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":24408},{"menu_item_id":9,"quantity":1,"price":229,"discount_percent":0,"notes":null,"id":24409}],"validated_items":[{"id":24400,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":24401,"menu_item_id":105,"quantity":2,"price":2199,"discount_percent":0,"notes":null},{"id":24402,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":24403,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24404,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24405,"menu_item_id":393,"quantity":2,"price":499,"discount_percent":0,"notes":null},{"id":24406,"menu_item_id":172,"quantity":2,"price":999,"discount_percent":0,"notes":null},{"id":24407,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":24408,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":24409,"menu_item_id":9,"quantity":1,"price":229,"discount_percent":0,"notes":null}]} 
[2026-02-25 18:08:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4967,"items_count":10} 
[2026-02-25 18:08:36] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24400,"menu_item_id":3,"quantity":1},{"id":24401,"menu_item_id":105,"quantity":2},{"id":24402,"menu_item_id":48,"quantity":1},{"id":24403,"menu_item_id":61,"quantity":1},{"id":24404,"menu_item_id":56,"quantity":1},{"id":24405,"menu_item_id":393,"quantity":2},{"id":24406,"menu_item_id":172,"quantity":2},{"id":24407,"menu_item_id":2,"quantity":3},{"id":24408,"menu_item_id":13,"quantity":2},{"id":24409,"menu_item_id":9,"quantity":1}]} 
[2026-02-25 18:08:36] local.INFO: PosOrderController::update - Item changes check {"order_id":4967,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["3|1|","105|2|","48|1|","61|1|","56|1|","393|2|","172|2|","2|3|","13|2|","9|1|"],"new_items_map_keys":["3|1|","105|2|","48|1|","61|1|","56|1|","393|2|","172|2|","2|3|","13|2|","9|1|"]} 
[2026-02-25 18:08:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4967,"order_number":"AZS-250226-002"} 
[2026-02-25 18:08:36] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4967,"order_number":"AZS-250226-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":9429,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-25 18:08:36","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 18:08:36"} 
[2026-02-25 18:08:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4967,"order_number":"AZS-250226-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 18:08:36"} 
[2026-02-25 18:08:36] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4967,"order_number":"AZS-250226-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"9429.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-25 18:08:36","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":9429,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"9429.00","database_verification_match":true,"timestamp":"2026-02-25 18:08:36"} 
[2026-02-25 18:08:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T06:08:40.029Z","date_to":"2026-02-25T18:08:40.029Z","per_page":"100"} 
[2026-02-25 18:08:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":46,"count":46,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-023","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001"],"order_statuses":["pending","pending","pending","paid","changed","paid","pending","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","pending"],"deleted_count":23,"paid_count":17,"unpaid_count":6,"unique_order_numbers":23} 
[2026-02-25 18:08:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T06:08:40.051Z","date_to":"2026-02-25T18:08:40.051Z","per_page":"100"} 
[2026-02-25 18:08:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":46,"count":46,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-023","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001"],"order_statuses":["pending","pending","pending","paid","changed","paid","pending","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","pending"],"deleted_count":23,"paid_count":17,"unpaid_count":6,"unique_order_numbers":23} 
[2026-02-25 18:08:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T06:08:40.029Z","date_to":"2026-02-25T18:08:40.029Z","per_page":"100"} 
[2026-02-25 18:08:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":46,"count":46,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-023","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001"],"order_statuses":["pending","pending","pending","paid","changed","paid","pending","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","pending"],"deleted_count":23,"paid_count":17,"unpaid_count":6,"unique_order_numbers":23} 
[2026-02-25 18:09:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":4965,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":24393},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":24394},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":24395},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":24396},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":24397},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24398},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24393,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":24394,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":24395,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":24396,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":24397,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":24398,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 18:09:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4965,"items_count":7} 
[2026-02-25 18:09:28] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24393,"menu_item_id":78,"quantity":1},{"id":24394,"menu_item_id":98,"quantity":1},{"id":24395,"menu_item_id":50,"quantity":2},{"id":24396,"menu_item_id":61,"quantity":2},{"id":24397,"menu_item_id":56,"quantity":2},{"id":24398,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1}]} 
[2026-02-25 18:09:28] local.INFO: PosOrderController::update - Item changes check {"order_id":4965,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["78|1|","98|1|","50|2|","61|2|","56|2|","5|1|"],"new_items_map_keys":["78|1|","98|1|","50|2|","61|2|","56|2|","5|1|","403|1|"]} 
[2026-02-25 18:09:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4965,"order_number":"AZS-250226-022"} 
[2026-02-25 18:09:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-022","replaced_order_id":4965} 
[2026-02-25 18:09:28] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4968,"items_count":7,"items":[{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"}]} 
[2026-02-25 18:09:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4968,"item_index":0,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4968}} 
[2026-02-25 18:09:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4968,"item_index":0,"menu_item_id":78} 
[2026-02-25 18:09:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4968,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4968}} 
[2026-02-25 18:09:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4968,"item_index":1,"menu_item_id":98} 
[2026-02-25 18:09:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4968,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4968}} 
[2026-02-25 18:09:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4968,"item_index":2,"menu_item_id":50} 
[2026-02-25 18:09:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4968,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4968}} 
[2026-02-25 18:09:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4968,"item_index":3,"menu_item_id":61} 
[2026-02-25 18:09:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4968,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4968}} 
[2026-02-25 18:09:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4968,"item_index":4,"menu_item_id":56} 
[2026-02-25 18:09:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4968,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4968}} 
[2026-02-25 18:09:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4968,"item_index":5,"menu_item_id":5} 
[2026-02-25 18:09:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4968,"item_index":6,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4968}} 
[2026-02-25 18:09:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4968,"item_index":6,"menu_item_id":403} 
[2026-02-25 18:09:28] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4965,"new_order_id":4968,"order_number":"AZS-250226-022"} 
[2026-02-25 18:09:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4958,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24370}],"validated_items":[{"id":24370,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-25 18:09:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4958,"items_count":1} 
[2026-02-25 18:09:48] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24370,"menu_item_id":6,"quantity":2}]} 
[2026-02-25 18:09:48] local.INFO: PosOrderController::update - Item changes check {"order_id":4958,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-02-25 18:09:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4958,"order_number":"AZS-250226-018"} 
[2026-02-25 18:09:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4958,"order_number":"AZS-250226-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 18:09:48"} 
[2026-02-25 18:13:33] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4958,"order_number":"AZS-250226-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 18:13:33"} 
[2026-02-25 18:13:33] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4958,"order_number":"AZS-250226-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 18:13:33"} 
[2026-02-25 18:13:33] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4958,"order_number":"AZS-250226-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 18:13:33"} 
[2026-02-25 18:13:33] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4958,"order_number":"AZS-250226-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 18:13:33"} 
[2026-02-25 18:13:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4958,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24370}],"validated_items":[{"id":24370,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-25 18:13:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4958,"items_count":1} 
[2026-02-25 18:13:33] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24370,"menu_item_id":6,"quantity":2}]} 
[2026-02-25 18:13:33] local.INFO: PosOrderController::update - Item changes check {"order_id":4958,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-02-25 18:13:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4958,"order_number":"AZS-250226-018"} 
[2026-02-25 18:13:33] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4958,"order_number":"AZS-250226-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-25 18:13:33","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 18:13:33"} 
[2026-02-25 18:13:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4958,"order_number":"AZS-250226-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 18:13:33"} 
[2026-02-25 18:13:33] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4958,"order_number":"AZS-250226-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-25 18:13:33","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-02-25 18:13:33"} 
[2026-02-25 18:14:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":4962,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":24382},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24383},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":24384}],"validated_items":[{"id":24382,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null},{"id":24383,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24384,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null}]} 
[2026-02-25 18:14:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4962,"items_count":3} 
[2026-02-25 18:14:04] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24382,"menu_item_id":13,"quantity":3},{"id":24383,"menu_item_id":6,"quantity":1},{"id":24384,"menu_item_id":403,"quantity":1}]} 
[2026-02-25 18:14:04] local.INFO: PosOrderController::update - Item changes check {"order_id":4962,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["13|3|","6|1|","403|1|"],"new_items_map_keys":["13|3|","6|1|","403|1|"]} 
[2026-02-25 18:14:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4962,"order_number":"AZS-250226-021"} 
[2026-02-25 18:14:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4962,"order_number":"AZS-250226-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 18:14:04"} 
[2026-02-25 18:26:29] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4962,"order_number":"AZS-250226-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 18:26:29"} 
[2026-02-25 18:26:29] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4962,"order_number":"AZS-250226-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 18:26:29"} 
[2026-02-25 18:26:29] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4962,"order_number":"AZS-250226-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 18:26:29"} 
[2026-02-25 18:26:29] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4962,"order_number":"AZS-250226-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 18:26:29"} 
[2026-02-25 18:26:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":4962,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":24382},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24383},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":24384}],"validated_items":[{"id":24382,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null},{"id":24383,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24384,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null}]} 
[2026-02-25 18:26:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4962,"items_count":3} 
[2026-02-25 18:26:29] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24382,"menu_item_id":13,"quantity":3},{"id":24383,"menu_item_id":6,"quantity":1},{"id":24384,"menu_item_id":403,"quantity":1}]} 
[2026-02-25 18:26:29] local.INFO: PosOrderController::update - Item changes check {"order_id":4962,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["13|3|","6|1|","403|1|"],"new_items_map_keys":["13|3|","6|1|","403|1|"]} 
[2026-02-25 18:26:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4962,"order_number":"AZS-250226-021"} 
[2026-02-25 18:26:29] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4962,"order_number":"AZS-250226-021","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-25 18:26:29","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 18:26:29"} 
[2026-02-25 18:26:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4962,"order_number":"AZS-250226-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 18:26:29"} 
[2026-02-25 18:26:29] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4962,"order_number":"AZS-250226-021","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-25 18:26:29","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-02-25 18:26:29"} 
[2026-02-25 18:26:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":4968,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":24410},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":24411},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":24412},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":24413},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":24414},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24415},{"menu_item_id":403,"quantity":2,"discount_percent":0,"notes":null,"id":24416}],"validated_items":[{"id":24410,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":24411,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":24412,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":24413,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":24414,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":24415,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":24416,"menu_item_id":403,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-25 18:26:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4968,"items_count":7} 
[2026-02-25 18:26:38] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24410,"menu_item_id":78,"quantity":1},{"id":24411,"menu_item_id":98,"quantity":1},{"id":24412,"menu_item_id":50,"quantity":2},{"id":24413,"menu_item_id":61,"quantity":2},{"id":24414,"menu_item_id":56,"quantity":2},{"id":24415,"menu_item_id":5,"quantity":1},{"id":24416,"menu_item_id":403,"quantity":2}]} 
[2026-02-25 18:26:38] local.INFO: PosOrderController::update - Item changes check {"order_id":4968,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["78|1|","98|1|","50|2|","61|2|","56|2|","5|1|","403|1|"],"new_items_map_keys":["78|1|","98|1|","50|2|","61|2|","56|2|","5|1|","403|2|"]} 
[2026-02-25 18:26:38] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4968,"order_number":"AZS-250226-022"} 
[2026-02-25 18:26:38] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-022","replaced_order_id":4968} 
[2026-02-25 18:26:38] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4970,"items_count":7,"items":[{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":403,"quantity":2,"price":"349.00"}]} 
[2026-02-25 18:26:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4970,"item_index":0,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4970}} 
[2026-02-25 18:26:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4970,"item_index":0,"menu_item_id":78} 
[2026-02-25 18:26:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4970,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4970}} 
[2026-02-25 18:26:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4970,"item_index":1,"menu_item_id":98} 
[2026-02-25 18:26:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4970,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4970}} 
[2026-02-25 18:26:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4970,"item_index":2,"menu_item_id":50} 
[2026-02-25 18:26:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4970,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4970}} 
[2026-02-25 18:26:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4970,"item_index":3,"menu_item_id":61} 
[2026-02-25 18:26:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4970,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4970}} 
[2026-02-25 18:26:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4970,"item_index":4,"menu_item_id":56} 
[2026-02-25 18:26:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4970,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4970}} 
[2026-02-25 18:26:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4970,"item_index":5,"menu_item_id":5} 
[2026-02-25 18:26:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4970,"item_index":6,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":2,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":698.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4970}} 
[2026-02-25 18:26:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4970,"item_index":6,"menu_item_id":403} 
[2026-02-25 18:26:38] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4968,"new_order_id":4970,"order_number":"AZS-250226-022"} 
[2026-02-25 18:28:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4966,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":24399}],"validated_items":[{"id":24399,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-02-25 18:28:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4966,"items_count":1} 
[2026-02-25 18:28:18] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24399,"menu_item_id":13,"quantity":2}]} 
[2026-02-25 18:28:18] local.INFO: PosOrderController::update - Item changes check {"order_id":4966,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|2|"]} 
[2026-02-25 18:28:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4966,"order_number":"AZS-250226-023"} 
[2026-02-25 18:28:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4966,"order_number":"AZS-250226-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 18:28:18"} 
[2026-02-25 18:43:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":4969,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":24417},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":24418},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24417,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":24418,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 18:43:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4969,"items_count":4} 
[2026-02-25 18:43:04] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24417,"menu_item_id":113,"quantity":1},{"id":24418,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 18:43:04] local.INFO: PosOrderController::update - Item changes check {"order_id":4969,"has_item_changes":true,"old_items_count":2,"new_items_count":4,"old_items_map_keys":["113|1|","396|1|"],"new_items_map_keys":["113|1|","396|1|","2|1|","5|1|"]} 
[2026-02-25 18:43:04] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4969,"order_number":"AZS-250226-024"} 
[2026-02-25 18:43:04] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-024","replaced_order_id":4969} 
[2026-02-25 18:43:04] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4972,"items_count":4,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-25 18:43:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4972,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4972}} 
[2026-02-25 18:43:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4972,"item_index":0,"menu_item_id":113} 
[2026-02-25 18:43:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4972,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4972}} 
[2026-02-25 18:43:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4972,"item_index":1,"menu_item_id":396} 
[2026-02-25 18:43:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4972,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4972}} 
[2026-02-25 18:43:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4972,"item_index":2,"menu_item_id":2} 
[2026-02-25 18:43:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4972,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4972}} 
[2026-02-25 18:43:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4972,"item_index":3,"menu_item_id":5} 
[2026-02-25 18:43:04] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4969,"new_order_id":4972,"order_number":"AZS-250226-024"} 
[2026-02-25 18:44:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4966,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":24399}],"validated_items":[{"id":24399,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-02-25 18:44:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4966,"items_count":1} 
[2026-02-25 18:44:58] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24399,"menu_item_id":13,"quantity":2}]} 
[2026-02-25 18:44:58] local.INFO: PosOrderController::update - Item changes check {"order_id":4966,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|2|"]} 
[2026-02-25 18:44:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4966,"order_number":"AZS-250226-023"} 
[2026-02-25 18:44:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4966,"order_number":"AZS-250226-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 18:44:58"} 
[2026-02-25 18:46:04] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4966,"order_number":"AZS-250226-023","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":261,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 18:46:04"} 
[2026-02-25 18:46:04] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4966,"order_number":"AZS-250226-023","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":261,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 18:46:04"} 
[2026-02-25 18:46:04] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4966,"order_number":"AZS-250226-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":261,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 18:46:04"} 
[2026-02-25 18:46:04] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4966,"order_number":"AZS-250226-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":261,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 18:46:04"} 
[2026-02-25 18:46:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4966,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":24399}],"validated_items":[{"id":24399,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-02-25 18:46:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4966,"items_count":1} 
[2026-02-25 18:46:04] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24399,"menu_item_id":13,"quantity":1}]} 
[2026-02-25 18:46:04] local.INFO: PosOrderController::update - Item changes check {"order_id":4966,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|1|"]} 
[2026-02-25 18:46:04] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":4966,"order_number":"AZS-250226-023","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":261,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-02-25 18:46:04","original_payment_amount":"0.00","grand_total":261.0,"timestamp":"2026-02-25 18:46:04"} 
[2026-02-25 18:46:04] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4966,"order_number":"AZS-250226-023"} 
[2026-02-25 18:46:04] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-023","replaced_order_id":4966} 
[2026-02-25 18:46:04] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":4966,"new_order_id":4974,"order_number":"AZS-250226-023","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"261.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-02-25 18:46:04","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":261,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-02-25 18:46:04"} 
[2026-02-25 18:46:04] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4974,"items_count":1,"items":[{"menu_item_id":13,"quantity":1,"price":249.0}]} 
[2026-02-25 18:46:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4974,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4974}} 
[2026-02-25 18:46:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4974,"item_index":0,"menu_item_id":13} 
[2026-02-25 18:46:04] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4966,"new_order_id":4974,"order_number":"AZS-250226-023"} 
[2026-02-25 18:46:04] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":4966,"new_order_id":4974,"order_number":"AZS-250226-023","route":"api/orders/4966"} 
[2026-02-25 18:46:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":4970,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":24419},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":24420},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null,"id":24421},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":24422},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":24423},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24424},{"menu_item_id":403,"quantity":2,"discount_percent":0,"notes":null,"id":24425},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24419,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":24420,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":24421,"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null},{"id":24422,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":24423,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":24424,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":24425,"menu_item_id":403,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 18:46:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4970,"items_count":8} 
[2026-02-25 18:46:32] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24419,"menu_item_id":78,"quantity":1},{"id":24420,"menu_item_id":98,"quantity":1},{"id":24421,"menu_item_id":50,"quantity":4},{"id":24422,"menu_item_id":61,"quantity":2},{"id":24423,"menu_item_id":56,"quantity":2},{"id":24424,"menu_item_id":5,"quantity":1},{"id":24425,"menu_item_id":403,"quantity":2},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-25 18:46:32] local.INFO: PosOrderController::update - Item changes check {"order_id":4970,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["78|1|","98|1|","50|2|","61|2|","56|2|","5|1|","403|2|"],"new_items_map_keys":["78|1|","98|1|","50|4|","61|2|","56|2|","5|1|","403|2|","3|1|"]} 
[2026-02-25 18:46:32] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4970,"order_number":"AZS-250226-022"} 
[2026-02-25 18:46:32] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-022","replaced_order_id":4970} 
[2026-02-25 18:46:32] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4975,"items_count":8,"items":[{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":50,"quantity":4,"price":"129.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":403,"quantity":2,"price":"349.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-25 18:46:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4975,"item_index":0,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4975}} 
[2026-02-25 18:46:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4975,"item_index":0,"menu_item_id":78} 
[2026-02-25 18:46:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4975,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4975}} 
[2026-02-25 18:46:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4975,"item_index":1,"menu_item_id":98} 
[2026-02-25 18:46:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4975,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4975}} 
[2026-02-25 18:46:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4975,"item_index":2,"menu_item_id":50} 
[2026-02-25 18:46:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4975,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4975}} 
[2026-02-25 18:46:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4975,"item_index":3,"menu_item_id":61} 
[2026-02-25 18:46:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4975,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4975}} 
[2026-02-25 18:46:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4975,"item_index":4,"menu_item_id":56} 
[2026-02-25 18:46:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4975,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4975}} 
[2026-02-25 18:46:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4975,"item_index":5,"menu_item_id":5} 
[2026-02-25 18:46:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4975,"item_index":6,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":2,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":698.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4975}} 
[2026-02-25 18:46:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4975,"item_index":6,"menu_item_id":403} 
[2026-02-25 18:46:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4975,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4975}} 
[2026-02-25 18:46:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4975,"item_index":7,"menu_item_id":3} 
[2026-02-25 18:46:32] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4970,"new_order_id":4975,"order_number":"AZS-250226-022"} 
[2026-02-25 18:48:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":4972,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24427},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24428},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":24429},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24430}],"validated_items":[{"id":24427,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24428,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":24429,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":24430,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-25 18:48:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4972,"items_count":4} 
[2026-02-25 18:48:41] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24427,"menu_item_id":113,"quantity":1},{"id":24428,"menu_item_id":396,"quantity":1},{"id":24429,"menu_item_id":2,"quantity":1},{"id":24430,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 18:48:41] local.INFO: PosOrderController::update - Item changes check {"order_id":4972,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","396|1|","2|1|","5|1|"],"new_items_map_keys":["113|1|","396|1|","2|1|","5|1|"]} 
[2026-02-25 18:48:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4972,"order_number":"AZS-250226-024"} 
[2026-02-25 18:48:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4972,"order_number":"AZS-250226-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 18:48:41"} 
[2026-02-25 18:53:19] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4972,"order_number":"AZS-250226-024","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 18:53:19"} 
[2026-02-25 18:53:19] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4972,"order_number":"AZS-250226-024","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 18:53:19"} 
[2026-02-25 18:53:19] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4972,"order_number":"AZS-250226-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 18:53:19"} 
[2026-02-25 18:53:19] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4972,"order_number":"AZS-250226-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 18:53:19"} 
[2026-02-25 18:53:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":4972,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24427},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24428},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":24429},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24430}],"validated_items":[{"id":24427,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24428,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":24429,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":24430,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-25 18:53:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4972,"items_count":4} 
[2026-02-25 18:53:19] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24427,"menu_item_id":113,"quantity":1},{"id":24428,"menu_item_id":396,"quantity":1},{"id":24429,"menu_item_id":2,"quantity":1},{"id":24430,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 18:53:19] local.INFO: PosOrderController::update - Item changes check {"order_id":4972,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","396|1|","2|1|","5|1|"],"new_items_map_keys":["113|1|","396|1|","2|1|","5|1|"]} 
[2026-02-25 18:53:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4972,"order_number":"AZS-250226-024"} 
[2026-02-25 18:53:19] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4972,"order_number":"AZS-250226-024","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-25 18:53:19","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 18:53:19"} 
[2026-02-25 18:53:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4972,"order_number":"AZS-250226-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 18:53:19"} 
[2026-02-25 18:53:19] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4972,"order_number":"AZS-250226-024","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-25 18:53:19","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-02-25 18:53:19"} 
[2026-02-25 18:55:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":4975,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":24435},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":24436},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null,"id":24437},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":24438},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":24439},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24440},{"menu_item_id":403,"quantity":2,"discount_percent":0,"notes":null,"id":24441},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":24442}],"validated_items":[{"id":24435,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":24436,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":24437,"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null},{"id":24438,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":24439,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":24440,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":24441,"menu_item_id":403,"quantity":2,"discount_percent":0,"notes":null},{"id":24442,"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-25 18:55:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4975,"items_count":8} 
[2026-02-25 18:55:54] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24435,"menu_item_id":78,"quantity":1},{"id":24436,"menu_item_id":98,"quantity":1},{"id":24437,"menu_item_id":50,"quantity":4},{"id":24438,"menu_item_id":61,"quantity":2},{"id":24439,"menu_item_id":56,"quantity":2},{"id":24440,"menu_item_id":5,"quantity":1},{"id":24441,"menu_item_id":403,"quantity":2},{"id":24442,"menu_item_id":3,"quantity":2}]} 
[2026-02-25 18:55:54] local.INFO: PosOrderController::update - Item changes check {"order_id":4975,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["78|1|","98|1|","50|4|","61|2|","56|2|","5|1|","403|2|","3|1|"],"new_items_map_keys":["78|1|","98|1|","50|4|","61|2|","56|2|","5|1|","403|2|","3|2|"]} 
[2026-02-25 18:55:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4975,"order_number":"AZS-250226-022"} 
[2026-02-25 18:55:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-022","replaced_order_id":4975} 
[2026-02-25 18:55:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4976,"items_count":8,"items":[{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":50,"quantity":4,"price":"129.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":403,"quantity":2,"price":"349.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-02-25 18:55:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4976,"item_index":0,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4976}} 
[2026-02-25 18:55:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4976,"item_index":0,"menu_item_id":78} 
[2026-02-25 18:55:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4976,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4976}} 
[2026-02-25 18:55:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4976,"item_index":1,"menu_item_id":98} 
[2026-02-25 18:55:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4976,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4976}} 
[2026-02-25 18:55:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4976,"item_index":2,"menu_item_id":50} 
[2026-02-25 18:55:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4976,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4976}} 
[2026-02-25 18:55:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4976,"item_index":3,"menu_item_id":61} 
[2026-02-25 18:55:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4976,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4976}} 
[2026-02-25 18:55:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4976,"item_index":4,"menu_item_id":56} 
[2026-02-25 18:55:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4976,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4976}} 
[2026-02-25 18:55:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4976,"item_index":5,"menu_item_id":5} 
[2026-02-25 18:55:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4976,"item_index":6,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":2,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":698.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4976}} 
[2026-02-25 18:55:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4976,"item_index":6,"menu_item_id":403} 
[2026-02-25 18:55:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4976,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4976}} 
[2026-02-25 18:55:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4976,"item_index":7,"menu_item_id":3} 
[2026-02-25 18:55:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4975,"new_order_id":4976,"order_number":"AZS-250226-022"} 
[2026-02-25 18:57:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T06:57:30.410Z","date_to":"2026-02-25T18:57:30.410Z","per_page":"100"} 
[2026-02-25 18:57:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":55,"count":55,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001"],"order_statuses":["pending","pending","paid","changed","paid","changed","pending","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","pending"],"deleted_count":29,"paid_count":21,"unpaid_count":5,"unique_order_numbers":26} 
[2026-02-25 18:57:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T06:57:30.423Z","date_to":"2026-02-25T18:57:30.423Z","per_page":"100"} 
[2026-02-25 18:57:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":55,"count":55,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001"],"order_statuses":["pending","pending","paid","changed","paid","changed","pending","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","pending"],"deleted_count":29,"paid_count":21,"unpaid_count":5,"unique_order_numbers":26} 
[2026-02-25 18:57:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T06:57:30.410Z","date_to":"2026-02-25T18:57:30.410Z","per_page":"100"} 
[2026-02-25 18:57:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":55,"count":55,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001"],"order_statuses":["pending","pending","paid","changed","paid","changed","pending","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","pending"],"deleted_count":29,"paid_count":21,"unpaid_count":5,"unique_order_numbers":26} 
[2026-02-25 19:04:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4971,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":24426}],"validated_items":[{"id":24426,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-25 19:04:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4971,"items_count":1} 
[2026-02-25 19:04:05] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24426,"menu_item_id":6,"quantity":3}]} 
[2026-02-25 19:04:05] local.INFO: PosOrderController::update - Item changes check {"order_id":4971,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|3|"],"new_items_map_keys":["6|3|"]} 
[2026-02-25 19:04:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4971,"order_number":"AZS-250226-025"} 
[2026-02-25 19:04:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4971,"order_number":"AZS-250226-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 19:04:05"} 
[2026-02-25 19:04:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T07:04:27.318Z","date_to":"2026-02-25T19:04:27.318Z","per_page":"100"} 
[2026-02-25 19:04:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":56,"count":56,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-027","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001"],"order_statuses":["pending","pending","pending","paid","changed","paid","changed","pending","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","pending"],"deleted_count":29,"paid_count":21,"unpaid_count":6,"unique_order_numbers":27} 
[2026-02-25 19:04:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T07:04:27.305Z","date_to":"2026-02-25T19:04:27.305Z","per_page":"100"} 
[2026-02-25 19:04:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":56,"count":56,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-027","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001"],"order_statuses":["pending","pending","pending","paid","changed","paid","changed","pending","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","pending"],"deleted_count":29,"paid_count":21,"unpaid_count":6,"unique_order_numbers":27} 
[2026-02-25 19:04:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T07:04:27.305Z","date_to":"2026-02-25T19:04:27.305Z","per_page":"100"} 
[2026-02-25 19:04:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":56,"count":56,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-027","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001"],"order_statuses":["pending","pending","pending","paid","changed","paid","changed","pending","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","pending"],"deleted_count":29,"paid_count":21,"unpaid_count":6,"unique_order_numbers":27} 
[2026-02-25 19:04:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":4976,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":24443},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24444},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":24445},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24446},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24447},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24448},{"menu_item_id":403,"quantity":2,"price":349,"discount_percent":0,"notes":null,"id":24449},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":24450}],"validated_items":[{"id":24443,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":24444,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24445,"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"id":24446,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24447,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24448,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24449,"menu_item_id":403,"quantity":2,"price":349,"discount_percent":0,"notes":null},{"id":24450,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-25 19:04:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4976,"items_count":8} 
[2026-02-25 19:04:54] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24443,"menu_item_id":78,"quantity":1},{"id":24444,"menu_item_id":98,"quantity":1},{"id":24445,"menu_item_id":50,"quantity":4},{"id":24446,"menu_item_id":61,"quantity":2},{"id":24447,"menu_item_id":56,"quantity":2},{"id":24448,"menu_item_id":5,"quantity":1},{"id":24449,"menu_item_id":403,"quantity":2},{"id":24450,"menu_item_id":3,"quantity":2}]} 
[2026-02-25 19:04:54] local.INFO: PosOrderController::update - Item changes check {"order_id":4976,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["78|1|","98|1|","50|4|","61|2|","56|2|","5|1|","403|2|","3|2|"],"new_items_map_keys":["78|1|","98|1|","50|4|","61|2|","56|2|","5|1|","403|2|","3|2|"]} 
[2026-02-25 19:04:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4976,"order_number":"AZS-250226-022"} 
[2026-02-25 19:04:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4976,"order_number":"AZS-250226-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 19:04:54"} 
[2026-02-25 19:09:41] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4976,"order_number":"AZS-250226-022","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 19:09:41"} 
[2026-02-25 19:09:41] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4976,"order_number":"AZS-250226-022","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 19:09:41"} 
[2026-02-25 19:09:41] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4976,"order_number":"AZS-250226-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 19:09:41"} 
[2026-02-25 19:09:41] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4976,"order_number":"AZS-250226-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 19:09:41"} 
[2026-02-25 19:09:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":4976,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":24443},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24444},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":24445},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24446},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24447},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24448},{"menu_item_id":403,"quantity":2,"price":349,"discount_percent":0,"notes":null,"id":24449},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":24450}],"validated_items":[{"id":24443,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":24444,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24445,"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"id":24446,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24447,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24448,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24449,"menu_item_id":403,"quantity":2,"price":349,"discount_percent":0,"notes":null},{"id":24450,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-25 19:09:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4976,"items_count":8} 
[2026-02-25 19:09:41] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24443,"menu_item_id":78,"quantity":1},{"id":24444,"menu_item_id":98,"quantity":1},{"id":24445,"menu_item_id":50,"quantity":4},{"id":24446,"menu_item_id":61,"quantity":2},{"id":24447,"menu_item_id":56,"quantity":2},{"id":24448,"menu_item_id":5,"quantity":1},{"id":24449,"menu_item_id":403,"quantity":2},{"id":24450,"menu_item_id":3,"quantity":2}]} 
[2026-02-25 19:09:41] local.INFO: PosOrderController::update - Item changes check {"order_id":4976,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["78|1|","98|1|","50|4|","61|2|","56|2|","5|1|","403|2|","3|2|"],"new_items_map_keys":["78|1|","98|1|","50|4|","61|2|","56|2|","5|1|","403|2|","3|2|"]} 
[2026-02-25 19:09:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4976,"order_number":"AZS-250226-022"} 
[2026-02-25 19:09:41] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4976,"order_number":"AZS-250226-022","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":10000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-25 19:09:41","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 19:09:41"} 
[2026-02-25 19:09:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4976,"order_number":"AZS-250226-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 19:09:41"} 
[2026-02-25 19:09:41] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4976,"order_number":"AZS-250226-022","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"10000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-25 19:09:41","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"10000.00","database_verification_match":true,"timestamp":"2026-02-25 19:09:41"} 
[2026-02-25 19:12:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4948,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null,"id":24324}],"validated_items":[{"id":24324,"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 19:12:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4948,"items_count":1} 
[2026-02-25 19:12:23] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24324,"menu_item_id":385,"quantity":1}]} 
[2026-02-25 19:12:23] local.INFO: PosOrderController::update - Item changes check {"order_id":4948,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-02-25 19:12:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4948,"order_number":"AZS-250226-015"} 
[2026-02-25 19:12:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4948,"order_number":"AZS-250226-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-02-25 19:12:23"} 
[2026-02-25 19:12:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4948,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":24324}],"validated_items":[{"id":24324,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null}]} 
[2026-02-25 19:12:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4948,"items_count":1} 
[2026-02-25 19:12:40] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24324,"menu_item_id":385,"quantity":1}]} 
[2026-02-25 19:12:40] local.INFO: PosOrderController::update - Item changes check {"order_id":4948,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-02-25 19:12:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4948,"order_number":"AZS-250226-015"} 
[2026-02-25 19:12:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4948,"order_number":"AZS-250226-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-02-25 19:12:40"} 
[2026-02-25 19:14:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":4973,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":24431},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null,"id":24432},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24433},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24431,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"id":24432,"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null},{"id":24433,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 19:14:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4973,"items_count":4} 
[2026-02-25 19:14:18] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24431,"menu_item_id":63,"quantity":1},{"id":24432,"menu_item_id":52,"quantity":2},{"id":24433,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-02-25 19:14:18] local.INFO: PosOrderController::update - Item changes check {"order_id":4973,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["63|1|","52|2|","61|1|"],"new_items_map_keys":["63|1|","52|2|","61|1|","2|1|"]} 
[2026-02-25 19:14:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4973,"order_number":"AZS-250226-026"} 
[2026-02-25 19:14:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-026","replaced_order_id":4973} 
[2026-02-25 19:14:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4978,"items_count":4,"items":[{"menu_item_id":63,"quantity":1,"price":"1099.00"},{"menu_item_id":52,"quantity":2,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-02-25 19:14:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4978,"item_index":0,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4978}} 
[2026-02-25 19:14:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4978,"item_index":0,"menu_item_id":63} 
[2026-02-25 19:14:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4978,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4978}} 
[2026-02-25 19:14:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4978,"item_index":1,"menu_item_id":52} 
[2026-02-25 19:14:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4978,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4978}} 
[2026-02-25 19:14:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4978,"item_index":2,"menu_item_id":61} 
[2026-02-25 19:14:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4978,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4978}} 
[2026-02-25 19:14:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4978,"item_index":3,"menu_item_id":2} 
[2026-02-25 19:14:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4973,"new_order_id":4978,"order_number":"AZS-250226-026"} 
[2026-02-25 19:25:53] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4971,"order_number":"AZS-250226-025","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 19:25:53"} 
[2026-02-25 19:25:53] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4971,"order_number":"AZS-250226-025","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 19:25:53"} 
[2026-02-25 19:25:53] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4971,"order_number":"AZS-250226-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 19:25:53"} 
[2026-02-25 19:25:53] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4971,"order_number":"AZS-250226-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 19:25:53"} 
[2026-02-25 19:25:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4971,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":24426}],"validated_items":[{"id":24426,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-25 19:25:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4971,"items_count":1} 
[2026-02-25 19:25:53] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24426,"menu_item_id":6,"quantity":3}]} 
[2026-02-25 19:25:53] local.INFO: PosOrderController::update - Item changes check {"order_id":4971,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|3|"],"new_items_map_keys":["6|3|"]} 
[2026-02-25 19:25:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4971,"order_number":"AZS-250226-025"} 
[2026-02-25 19:25:53] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4971,"order_number":"AZS-250226-025","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-25 19:25:53","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 19:25:53"} 
[2026-02-25 19:25:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4971,"order_number":"AZS-250226-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 19:25:53"} 
[2026-02-25 19:25:53] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4971,"order_number":"AZS-250226-025","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-25 19:25:53","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-02-25 19:25:53"} 
[2026-02-25 19:32:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":4978,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":24457},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":24458},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24459},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":24460}],"validated_items":[{"id":24457,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":24458,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":24459,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24460,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-02-25 19:32:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4978,"items_count":4} 
[2026-02-25 19:32:01] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24457,"menu_item_id":63,"quantity":1},{"id":24458,"menu_item_id":52,"quantity":2},{"id":24459,"menu_item_id":61,"quantity":1},{"id":24460,"menu_item_id":2,"quantity":1}]} 
[2026-02-25 19:32:01] local.INFO: PosOrderController::update - Item changes check {"order_id":4978,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["63|1|","52|2|","61|1|","2|1|"],"new_items_map_keys":["63|1|","52|2|","61|1|","2|1|"]} 
[2026-02-25 19:32:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4978,"order_number":"AZS-250226-026"} 
[2026-02-25 19:32:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4978,"order_number":"AZS-250226-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 19:32:01"} 
[2026-02-25 19:51:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":4977,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null,"id":24451},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":24452},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24453},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24454},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":24455},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24456},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":24451,"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null},{"id":24452,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":24453,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":24454,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":24455,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":24456,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-25 19:51:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4977,"items_count":7} 
[2026-02-25 19:51:23] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24451,"menu_item_id":87,"quantity":1},{"id":24452,"menu_item_id":65,"quantity":1},{"id":24453,"menu_item_id":61,"quantity":1},{"id":24454,"menu_item_id":56,"quantity":1},{"id":24455,"menu_item_id":396,"quantity":2},{"id":24456,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-02-25 19:51:23] local.INFO: PosOrderController::update - Item changes check {"order_id":4977,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["87|1|","65|1|","61|1|","56|1|","396|2|","5|1|"],"new_items_map_keys":["87|1|","65|1|","61|1|","56|1|","396|2|","5|1|","2|2|"]} 
[2026-02-25 19:51:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4977,"order_number":"AZS-250226-027"} 
[2026-02-25 19:51:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-027","replaced_order_id":4977} 
[2026-02-25 19:51:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4980,"items_count":7,"items":[{"menu_item_id":87,"quantity":1,"price":"1999.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-02-25 19:51:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4980,"item_index":0,"item_data":{"menu_item_id":87,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4980}} 
[2026-02-25 19:51:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4980,"item_index":0,"menu_item_id":87} 
[2026-02-25 19:51:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4980,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4980}} 
[2026-02-25 19:51:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4980,"item_index":1,"menu_item_id":65} 
[2026-02-25 19:51:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4980,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4980}} 
[2026-02-25 19:51:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4980,"item_index":2,"menu_item_id":61} 
[2026-02-25 19:51:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4980,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4980}} 
[2026-02-25 19:51:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4980,"item_index":3,"menu_item_id":56} 
[2026-02-25 19:51:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4980,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4980}} 
[2026-02-25 19:51:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4980,"item_index":4,"menu_item_id":396} 
[2026-02-25 19:51:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4980,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4980}} 
[2026-02-25 19:51:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4980,"item_index":5,"menu_item_id":5} 
[2026-02-25 19:51:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4980,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4980}} 
[2026-02-25 19:51:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4980,"item_index":6,"menu_item_id":2} 
[2026-02-25 19:51:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4977,"new_order_id":4980,"order_number":"AZS-250226-027"} 
[2026-02-25 19:51:47] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4978,"order_number":"AZS-250226-026","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1650,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 19:51:47"} 
[2026-02-25 19:51:47] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4978,"order_number":"AZS-250226-026","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1650,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 19:51:47"} 
[2026-02-25 19:51:47] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4978,"order_number":"AZS-250226-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1650,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 19:51:47"} 
[2026-02-25 19:51:47] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4978,"order_number":"AZS-250226-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1650,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 19:51:47"} 
[2026-02-25 19:51:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":4978,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":24457},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":24458},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24459},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":24460}],"validated_items":[{"id":24457,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":24458,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":24459,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24460,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-02-25 19:51:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4978,"items_count":4} 
[2026-02-25 19:51:47] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24457,"menu_item_id":63,"quantity":1},{"id":24458,"menu_item_id":52,"quantity":2},{"id":24459,"menu_item_id":61,"quantity":1},{"id":24460,"menu_item_id":2,"quantity":1}]} 
[2026-02-25 19:51:47] local.INFO: PosOrderController::update - Item changes check {"order_id":4978,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["63|1|","52|2|","61|1|","2|1|"],"new_items_map_keys":["63|1|","52|2|","61|1|","2|1|"]} 
[2026-02-25 19:51:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4978,"order_number":"AZS-250226-026"} 
[2026-02-25 19:51:47] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4978,"order_number":"AZS-250226-026","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1650,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-25 19:51:47","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 19:51:47"} 
[2026-02-25 19:51:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4978,"order_number":"AZS-250226-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 19:51:47"} 
[2026-02-25 19:51:47] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4978,"order_number":"AZS-250226-026","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1650.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-25 19:51:47","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1650,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1650.00","database_verification_match":true,"timestamp":"2026-02-25 19:51:47"} 
[2026-02-25 20:01:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4922,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":143,"quantity":2,"discount_percent":0,"notes":null,"id":24188}],"validated_items":[{"id":24188,"menu_item_id":143,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-25 20:01:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4922,"items_count":1} 
[2026-02-25 20:01:12] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24188,"menu_item_id":143,"quantity":2}]} 
[2026-02-25 20:01:12] local.INFO: PosOrderController::update - Item changes check {"order_id":4922,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["143|1|"],"new_items_map_keys":["143|2|"]} 
[2026-02-25 20:01:12] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4922,"order_number":"AZS-250226-001"} 
[2026-02-25 20:01:12] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-001","replaced_order_id":4922} 
[2026-02-25 20:01:12] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4981,"items_count":1,"items":[{"menu_item_id":143,"quantity":2,"price":"1099.00"}]} 
[2026-02-25 20:01:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4981,"item_index":0,"item_data":{"menu_item_id":143,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Chicken Fajita Pizza - Medium","quantity":2,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":2198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4981}} 
[2026-02-25 20:01:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4981,"item_index":0,"menu_item_id":143} 
[2026-02-25 20:01:12] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4922,"new_order_id":4981,"order_number":"AZS-250226-001"} 
[2026-02-25 20:05:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":4980,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":24463},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24464},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24465},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24466},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24467},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24468},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":24469}],"validated_items":[{"id":24463,"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":24464,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":24465,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24466,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24467,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24468,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24469,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-02-25 20:05:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4980,"items_count":7} 
[2026-02-25 20:05:30] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24463,"menu_item_id":87,"quantity":1},{"id":24464,"menu_item_id":65,"quantity":1},{"id":24465,"menu_item_id":61,"quantity":1},{"id":24466,"menu_item_id":56,"quantity":1},{"id":24467,"menu_item_id":396,"quantity":2},{"id":24468,"menu_item_id":5,"quantity":1},{"id":24469,"menu_item_id":2,"quantity":2}]} 
[2026-02-25 20:05:30] local.INFO: PosOrderController::update - Item changes check {"order_id":4980,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["87|1|","65|1|","61|1|","56|1|","396|2|","5|1|","2|2|"],"new_items_map_keys":["87|1|","65|1|","61|1|","56|1|","396|2|","5|1|","2|2|"]} 
[2026-02-25 20:05:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4980,"order_number":"AZS-250226-027"} 
[2026-02-25 20:05:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4980,"order_number":"AZS-250226-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 20:05:30"} 
[2026-02-25 20:28:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":4980,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":24463},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24464},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24465},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24466},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24467},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24468},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":24469}],"validated_items":[{"id":24463,"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":24464,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":24465,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24466,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24467,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24468,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24469,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-02-25 20:28:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4980,"items_count":7} 
[2026-02-25 20:28:28] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24463,"menu_item_id":87,"quantity":1},{"id":24464,"menu_item_id":65,"quantity":1},{"id":24465,"menu_item_id":61,"quantity":1},{"id":24466,"menu_item_id":56,"quantity":1},{"id":24467,"menu_item_id":396,"quantity":2},{"id":24468,"menu_item_id":5,"quantity":1},{"id":24469,"menu_item_id":2,"quantity":2}]} 
[2026-02-25 20:28:28] local.INFO: PosOrderController::update - Item changes check {"order_id":4980,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["87|1|","65|1|","61|1|","56|1|","396|2|","5|1|","2|2|"],"new_items_map_keys":["87|1|","65|1|","61|1|","56|1|","396|2|","5|1|","2|2|"]} 
[2026-02-25 20:28:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4980,"order_number":"AZS-250226-027"} 
[2026-02-25 20:28:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4980,"order_number":"AZS-250226-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 20:28:28"} 
[2026-02-25 20:29:51] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4980,"order_number":"AZS-250226-027","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4540,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 20:29:51"} 
[2026-02-25 20:29:51] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4980,"order_number":"AZS-250226-027","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4540,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 20:29:51"} 
[2026-02-25 20:29:51] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4980,"order_number":"AZS-250226-027","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4540,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 20:29:51"} 
[2026-02-25 20:29:51] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4980,"order_number":"AZS-250226-027","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4540,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 20:29:51"} 
[2026-02-25 20:29:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":4980,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":24463},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24464},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24465},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24466},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24467},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24468},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":24469}],"validated_items":[{"id":24463,"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":24464,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":24465,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24466,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24467,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24468,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24469,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-02-25 20:29:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4980,"items_count":7} 
[2026-02-25 20:29:51] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24463,"menu_item_id":87,"quantity":1},{"id":24464,"menu_item_id":65,"quantity":1},{"id":24465,"menu_item_id":61,"quantity":1},{"id":24466,"menu_item_id":56,"quantity":1},{"id":24467,"menu_item_id":396,"quantity":2},{"id":24468,"menu_item_id":5,"quantity":1},{"id":24469,"menu_item_id":2,"quantity":2}]} 
[2026-02-25 20:29:51] local.INFO: PosOrderController::update - Item changes check {"order_id":4980,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["87|1|","65|1|","61|1|","56|1|","396|2|","5|1|","2|2|"],"new_items_map_keys":["87|1|","65|1|","61|1|","56|1|","396|2|","5|1|","2|2|"]} 
[2026-02-25 20:29:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4980,"order_number":"AZS-250226-027"} 
[2026-02-25 20:29:51] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4980,"order_number":"AZS-250226-027","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4540,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-25 20:29:51","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 20:29:51"} 
[2026-02-25 20:29:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4980,"order_number":"AZS-250226-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 20:29:51"} 
[2026-02-25 20:29:51] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4980,"order_number":"AZS-250226-027","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4540.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-25 20:29:51","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4540,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4540.00","database_verification_match":true,"timestamp":"2026-02-25 20:29:51"} 
[2026-02-25 21:21:51] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4982,"order_number":"AZS-250226-029","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 21:21:51"} 
[2026-02-25 21:21:51] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4982,"order_number":"AZS-250226-029","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 21:21:51"} 
[2026-02-25 21:21:51] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4982,"order_number":"AZS-250226-029","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 21:21:51"} 
[2026-02-25 21:21:51] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4982,"order_number":"AZS-250226-029","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 21:21:51"} 
[2026-02-25 21:21:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4982,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":24471}],"validated_items":[{"id":24471,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-25 21:21:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4982,"items_count":1} 
[2026-02-25 21:21:51] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24471,"menu_item_id":6,"quantity":3}]} 
[2026-02-25 21:21:51] local.INFO: PosOrderController::update - Item changes check {"order_id":4982,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|3|"],"new_items_map_keys":["6|3|"]} 
[2026-02-25 21:21:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4982,"order_number":"AZS-250226-029"} 
[2026-02-25 21:21:51] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4982,"order_number":"AZS-250226-029","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-25 21:21:51","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 21:21:51"} 
[2026-02-25 21:21:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4982,"order_number":"AZS-250226-029","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 21:21:51"} 
[2026-02-25 21:21:51] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4982,"order_number":"AZS-250226-029","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-25 21:21:51","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-02-25 21:21:51"} 
[2026-02-25 21:36:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4948,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":24324}],"validated_items":[{"id":24324,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null}]} 
[2026-02-25 21:36:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4948,"items_count":1} 
[2026-02-25 21:36:42] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24324,"menu_item_id":385,"quantity":1}]} 
[2026-02-25 21:36:42] local.INFO: PosOrderController::update - Item changes check {"order_id":4948,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-02-25 21:36:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4948,"order_number":"AZS-250226-015"} 
[2026-02-25 21:36:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4948,"order_number":"AZS-250226-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-02-25 21:36:42"} 
[2026-02-25 21:36:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4981,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":143,"quantity":2,"price":1099,"discount_percent":0,"notes":null,"id":24470}],"validated_items":[{"id":24470,"menu_item_id":143,"quantity":2,"price":1099,"discount_percent":0,"notes":null}]} 
[2026-02-25 21:36:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4981,"items_count":1} 
[2026-02-25 21:36:56] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24470,"menu_item_id":143,"quantity":2}]} 
[2026-02-25 21:36:56] local.INFO: PosOrderController::update - Item changes check {"order_id":4981,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["143|2|"],"new_items_map_keys":["143|2|"]} 
[2026-02-25 21:36:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4981,"order_number":"AZS-250226-001"} 
[2026-02-25 21:36:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4981,"order_number":"AZS-250226-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-02-25 21:36:56"} 
[2026-02-25 21:37:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4984,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24479}],"validated_items":[{"id":24479,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-25 21:37:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4984,"items_count":1} 
[2026-02-25 21:37:51] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24479,"menu_item_id":6,"quantity":1}]} 
[2026-02-25 21:37:51] local.INFO: PosOrderController::update - Item changes check {"order_id":4984,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-02-25 21:37:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4984,"order_number":"AZS-250226-031"} 
[2026-02-25 21:37:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4984,"order_number":"AZS-250226-031","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 21:37:51"} 
[2026-02-25 21:46:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":4983,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24472},{"menu_item_id":399,"quantity":250,"price":2.600000000000000088817841970012523233890533447265625,"discount_percent":0,"notes":null,"id":24473},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":24474},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24475},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24476},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24477},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24478}],"validated_items":[{"id":24472,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24473,"menu_item_id":399,"quantity":250,"price":2.600000000000000088817841970012523233890533447265625,"discount_percent":0,"notes":null},{"id":24474,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":24475,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24476,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24477,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24478,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-25 21:46:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4983,"items_count":7} 
[2026-02-25 21:46:27] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24472,"menu_item_id":98,"quantity":1},{"id":24473,"menu_item_id":399,"quantity":250},{"id":24474,"menu_item_id":55,"quantity":2},{"id":24475,"menu_item_id":396,"quantity":2},{"id":24476,"menu_item_id":61,"quantity":1},{"id":24477,"menu_item_id":56,"quantity":1},{"id":24478,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 21:46:27] local.INFO: PosOrderController::update - Item changes check {"order_id":4983,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["98|1|","399|250|","55|2|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["98|1|","399|250|","55|2|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-02-25 21:46:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4983,"order_number":"AZS-250226-030"} 
[2026-02-25 21:46:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4983,"order_number":"AZS-250226-030","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 21:46:27"} 
[2026-02-25 21:55:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":4979,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":24461},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":24462}],"validated_items":[{"id":24461,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":24462,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null}]} 
[2026-02-25 21:55:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4979,"items_count":2} 
[2026-02-25 21:55:30] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24461,"menu_item_id":6,"quantity":4},{"id":24462,"menu_item_id":403,"quantity":1}]} 
[2026-02-25 21:55:30] local.INFO: PosOrderController::update - Item changes check {"order_id":4979,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|4|","403|1|"],"new_items_map_keys":["6|4|","403|1|"]} 
[2026-02-25 21:55:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4979,"order_number":"AZS-250226-028"} 
[2026-02-25 21:55:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4979,"order_number":"AZS-250226-028","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 21:55:30"} 
[2026-02-25 21:55:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":4983,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24472},{"menu_item_id":399,"quantity":250,"price":2.600000000000000088817841970012523233890533447265625,"discount_percent":0,"notes":null,"id":24473},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":24474},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24475},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24476},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24477},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24478}],"validated_items":[{"id":24472,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24473,"menu_item_id":399,"quantity":250,"price":2.600000000000000088817841970012523233890533447265625,"discount_percent":0,"notes":null},{"id":24474,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":24475,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24476,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24477,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24478,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-25 21:55:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4983,"items_count":7} 
[2026-02-25 21:55:52] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24472,"menu_item_id":98,"quantity":1},{"id":24473,"menu_item_id":399,"quantity":250},{"id":24474,"menu_item_id":55,"quantity":2},{"id":24475,"menu_item_id":396,"quantity":2},{"id":24476,"menu_item_id":61,"quantity":1},{"id":24477,"menu_item_id":56,"quantity":1},{"id":24478,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 21:55:52] local.INFO: PosOrderController::update - Item changes check {"order_id":4983,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["98|1|","399|250|","55|2|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["98|1|","399|250|","55|2|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-02-25 21:55:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4983,"order_number":"AZS-250226-030"} 
[2026-02-25 21:55:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4983,"order_number":"AZS-250226-030","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 21:55:52"} 
[2026-02-25 21:56:20] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4983,"order_number":"AZS-250226-030","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 21:56:20"} 
[2026-02-25 21:56:20] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4983,"order_number":"AZS-250226-030","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 21:56:20"} 
[2026-02-25 21:56:20] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4983,"order_number":"AZS-250226-030","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 21:56:20"} 
[2026-02-25 21:56:20] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4983,"order_number":"AZS-250226-030","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 21:56:20"} 
[2026-02-25 21:56:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":4983,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24472},{"menu_item_id":399,"quantity":250,"price":2.600000000000000088817841970012523233890533447265625,"discount_percent":0,"notes":null,"id":24473},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":24474},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24475},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24477},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24478}],"validated_items":[{"id":24472,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24473,"menu_item_id":399,"quantity":250,"price":2.600000000000000088817841970012523233890533447265625,"discount_percent":0,"notes":null},{"id":24474,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":24475,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24477,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24478,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-25 21:56:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4983,"items_count":6} 
[2026-02-25 21:56:20] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[24476],"items":[{"id":24472,"menu_item_id":98,"quantity":1},{"id":24473,"menu_item_id":399,"quantity":250},{"id":24474,"menu_item_id":55,"quantity":2},{"id":24475,"menu_item_id":396,"quantity":2},{"id":24477,"menu_item_id":56,"quantity":1},{"id":24478,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 21:56:20] local.INFO: PosOrderController::update - Item changes check {"order_id":4983,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["98|1|","399|250|","55|2|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["98|1|","399|250|","55|2|","396|2|","56|1|","5|1|"]} 
[2026-02-25 21:56:20] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":4983,"order_number":"AZS-250226-030","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-02-25 21:56:20","original_payment_amount":"0.00","grand_total":2871.0,"timestamp":"2026-02-25 21:56:20"} 
[2026-02-25 21:56:20] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4983,"order_number":"AZS-250226-030"} 
[2026-02-25 21:56:20] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-030","replaced_order_id":4983} 
[2026-02-25 21:56:20] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":4983,"new_order_id":4985,"order_number":"AZS-250226-030","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-02-25 21:56:20","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-02-25 21:56:20"} 
[2026-02-25 21:56:20] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4985,"items_count":6,"items":[{"menu_item_id":98,"quantity":1,"price":1199.0},{"menu_item_id":399,"quantity":250,"price":2.600000000000000088817841970012523233890533447265625},{"menu_item_id":55,"quantity":2,"price":159.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-02-25 21:56:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4985,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4985}} 
[2026-02-25 21:56:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4985,"item_index":0,"menu_item_id":98} 
[2026-02-25 21:56:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4985,"item_index":1,"item_data":{"menu_item_id":399,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL WHITE CHICKEN 1 GRAM","quantity":250,"price":2.600000000000000088817841970012523233890533447265625,"discount_percent":0.0,"discount_amount":0.0,"total":650.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4985}} 
[2026-02-25 21:56:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4985,"item_index":1,"menu_item_id":399} 
[2026-02-25 21:56:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4985,"item_index":2,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4985}} 
[2026-02-25 21:56:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4985,"item_index":2,"menu_item_id":55} 
[2026-02-25 21:56:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4985,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4985}} 
[2026-02-25 21:56:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4985,"item_index":3,"menu_item_id":396} 
[2026-02-25 21:56:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4985,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4985}} 
[2026-02-25 21:56:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4985,"item_index":4,"menu_item_id":56} 
[2026-02-25 21:56:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4985,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4985}} 
[2026-02-25 21:56:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4985,"item_index":5,"menu_item_id":5} 
[2026-02-25 21:56:20] local.ERROR: Error tracking recipe usage for order 4985: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (4985, 55, 102, 1, 20, 0.00, Order #AZS-250226-030 - 2x Garlic Naan, 2026-02-25 21:56:20, 2026-02-25 21:56:20))  
[2026-02-25 21:56:20] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4983,"new_order_id":4985,"order_number":"AZS-250226-030"} 
[2026-02-25 21:56:20] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":4983,"new_order_id":4985,"order_number":"AZS-250226-030","route":"api/orders/4983"} 
[2026-02-25 22:01:49] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4979,"order_number":"AZS-250226-028","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1202,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 22:01:49"} 
[2026-02-25 22:01:49] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4979,"order_number":"AZS-250226-028","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1202,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 22:01:49"} 
[2026-02-25 22:01:49] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4979,"order_number":"AZS-250226-028","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1202,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 22:01:49"} 
[2026-02-25 22:01:49] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4979,"order_number":"AZS-250226-028","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1202,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 22:01:49"} 
[2026-02-25 22:01:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":4979,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":24461},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":24462}],"validated_items":[{"id":24461,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":24462,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null}]} 
[2026-02-25 22:01:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4979,"items_count":2} 
[2026-02-25 22:01:49] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24461,"menu_item_id":6,"quantity":4},{"id":24462,"menu_item_id":403,"quantity":1}]} 
[2026-02-25 22:01:49] local.INFO: PosOrderController::update - Item changes check {"order_id":4979,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|4|","403|1|"],"new_items_map_keys":["6|4|","403|1|"]} 
[2026-02-25 22:01:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4979,"order_number":"AZS-250226-028"} 
[2026-02-25 22:01:49] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4979,"order_number":"AZS-250226-028","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1202,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-25 22:01:49","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 22:01:49"} 
[2026-02-25 22:01:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4979,"order_number":"AZS-250226-028","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 22:01:49"} 
[2026-02-25 22:01:49] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4979,"order_number":"AZS-250226-028","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1202.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-25 22:01:49","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1202,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1202.00","database_verification_match":true,"timestamp":"2026-02-25 22:01:49"} 
[2026-02-25 22:37:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4987,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":24495}],"validated_items":[{"id":24495,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 22:37:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4987,"items_count":1} 
[2026-02-25 22:37:57] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24495,"menu_item_id":411,"quantity":1}]} 
[2026-02-25 22:37:57] local.INFO: PosOrderController::update - Item changes check {"order_id":4987,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|"]} 
[2026-02-25 22:37:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4987,"order_number":"AZS-250226-033"} 
[2026-02-25 22:37:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4987,"order_number":"AZS-250226-033","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-25 22:37:57"} 
[2026-02-25 22:53:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":4987,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":24495},{"menu_item_id":49,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24495,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 22:53:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4987,"items_count":2} 
[2026-02-25 22:53:46] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24495,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":49,"quantity":1}]} 
[2026-02-25 22:53:46] local.INFO: PosOrderController::update - Item changes check {"order_id":4987,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|","49|1|"]} 
[2026-02-25 22:53:46] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4987,"order_number":"AZS-250226-033"} 
[2026-02-25 22:53:46] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-033","replaced_order_id":4987} 
[2026-02-25 22:53:46] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4988,"items_count":2,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":49,"quantity":1,"price":"70.00"}]} 
[2026-02-25 22:53:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4988,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4988}} 
[2026-02-25 22:53:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4988,"item_index":0,"menu_item_id":411} 
[2026-02-25 22:53:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4988,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4988}} 
[2026-02-25 22:53:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4988,"item_index":1,"menu_item_id":49} 
[2026-02-25 22:53:46] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4987,"new_order_id":4988,"order_number":"AZS-250226-033"} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":4986,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":24486},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":24487},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":24488},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":24489},{"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null,"id":24490},{"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null,"id":24491},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":24492},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24493},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24494},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24486,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":24487,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":24488,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":24489,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":24490,"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null},{"id":24491,"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null},{"id":24492,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":24493,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":24494,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4986,"items_count":10} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24486,"menu_item_id":106,"quantity":1},{"id":24487,"menu_item_id":65,"quantity":1},{"id":24488,"menu_item_id":396,"quantity":2},{"id":24489,"menu_item_id":50,"quantity":1},{"id":24490,"menu_item_id":54,"quantity":1},{"id":24491,"menu_item_id":55,"quantity":1},{"id":24492,"menu_item_id":61,"quantity":2},{"id":24493,"menu_item_id":56,"quantity":1},{"id":24494,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Item changes check {"order_id":4986,"has_item_changes":true,"old_items_count":9,"new_items_count":10,"old_items_map_keys":["106|1|","65|1|","396|2|","50|1|","54|1|","55|1|","61|2|","56|1|","5|1|"],"new_items_map_keys":["106|1|","65|1|","396|2|","50|1|","54|1|","55|1|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4986,"order_number":"AZS-250226-032"} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-032","replaced_order_id":4986} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4989,"items_count":10,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":54,"quantity":1,"price":"159.00"},{"menu_item_id":55,"quantity":1,"price":"159.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4989,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4989}} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4989,"item_index":0,"menu_item_id":106} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4989,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4989}} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4989,"item_index":1,"menu_item_id":65} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4989,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4989}} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4989,"item_index":2,"menu_item_id":396} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4989,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4989}} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4989,"item_index":3,"menu_item_id":50} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4989,"item_index":4,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4989}} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4989,"item_index":4,"menu_item_id":54} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4989,"item_index":5,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4989}} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4989,"item_index":5,"menu_item_id":55} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4989,"item_index":6,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4989}} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4989,"item_index":6,"menu_item_id":61} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4989,"item_index":7,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4989}} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4989,"item_index":7,"menu_item_id":56} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4989,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4989}} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4989,"item_index":8,"menu_item_id":5} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4989,"item_index":9,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4989}} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4989,"item_index":9,"menu_item_id":3} 
[2026-02-25 23:00:15] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4986,"new_order_id":4989,"order_number":"AZS-250226-032"} 
[2026-02-25 23:05:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":4988,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":24496},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24497},{"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null}],"validated_items":[{"id":24496,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":24497,"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:05:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4988,"items_count":3} 
[2026-02-25 23:05:26] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24496,"menu_item_id":411,"quantity":1},{"id":24497,"menu_item_id":49,"quantity":1},{"id":null,"menu_item_id":286,"quantity":1}]} 
[2026-02-25 23:05:26] local.INFO: PosOrderController::update - Item changes check {"order_id":4988,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["411|1|","49|1|"],"new_items_map_keys":["411|1|","49|1|","286|1|"]} 
[2026-02-25 23:05:26] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4988,"order_number":"AZS-250226-033"} 
[2026-02-25 23:05:26] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-033","replaced_order_id":4988} 
[2026-02-25 23:05:26] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4990,"items_count":3,"items":[{"menu_item_id":411,"quantity":1,"price":599.0},{"menu_item_id":49,"quantity":1,"price":70.0},{"menu_item_id":286,"quantity":1,"price":15.0}]} 
[2026-02-25 23:05:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4990,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":599.0,"discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4990}} 
[2026-02-25 23:05:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4990,"item_index":0,"menu_item_id":411} 
[2026-02-25 23:05:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4990,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":1,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4990}} 
[2026-02-25 23:05:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4990,"item_index":1,"menu_item_id":49} 
[2026-02-25 23:05:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4990,"item_index":2,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":1,"price":15.0,"discount_percent":0.0,"discount_amount":0.0,"total":15.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4990}} 
[2026-02-25 23:05:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4990,"item_index":2,"menu_item_id":286} 
[2026-02-25 23:05:26] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4988,"new_order_id":4990,"order_number":"AZS-250226-033"} 
[2026-02-25 23:05:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4990,"item_index":0,"item_id":24496} 
[2026-02-25 23:05:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4990,"item_index":1,"item_id":24497} 
[2026-02-25 23:05:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":4990,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":24496},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24497},{"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:05:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4990,"items_count":3} 
[2026-02-25 23:05:37] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[24508,24509,24510],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":49,"quantity":1},{"id":null,"menu_item_id":286,"quantity":1}]} 
[2026-02-25 23:05:37] local.INFO: PosOrderController::update - Item changes check {"order_id":4990,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|1|","49|1|","286|1|"],"new_items_map_keys":["411|1|","49|1|","286|1|"]} 
[2026-02-25 23:05:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4990,"order_number":"AZS-250226-033"} 
[2026-02-25 23:05:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4990,"order_number":"AZS-250226-033","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 23:05:37"} 
[2026-02-25 23:09:36] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4990,"order_number":"AZS-250226-033","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 23:09:36"} 
[2026-02-25 23:09:36] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4990,"order_number":"AZS-250226-033","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 23:09:36"} 
[2026-02-25 23:09:36] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4990,"order_number":"AZS-250226-033","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 23:09:36"} 
[2026-02-25 23:09:36] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4990,"order_number":"AZS-250226-033","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 23:09:36"} 
[2026-02-25 23:09:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":4990,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":24508},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24509},{"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null,"id":24510}],"validated_items":[{"id":24508,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":24509,"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":24510,"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:09:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4990,"items_count":3} 
[2026-02-25 23:09:36] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24508,"menu_item_id":411,"quantity":1},{"id":24509,"menu_item_id":49,"quantity":1},{"id":24510,"menu_item_id":286,"quantity":1}]} 
[2026-02-25 23:09:36] local.INFO: PosOrderController::update - Item changes check {"order_id":4990,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|1|","49|1|","286|1|"],"new_items_map_keys":["411|1|","49|1|","286|1|"]} 
[2026-02-25 23:09:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4990,"order_number":"AZS-250226-033"} 
[2026-02-25 23:09:36] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4990,"order_number":"AZS-250226-033","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-25 23:09:36","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 23:09:36"} 
[2026-02-25 23:09:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4990,"order_number":"AZS-250226-033","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 23:09:36"} 
[2026-02-25 23:09:36] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4990,"order_number":"AZS-250226-033","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-25 23:09:36","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-02-25 23:09:36"} 
[2026-02-25 23:09:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":4989,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":24498},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24499},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24500},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":24501},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":24502},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":24503},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24504},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24505},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24506},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24507}],"validated_items":[{"id":24498,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":24499,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":24500,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24501,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":24502,"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":24503,"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":24504,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24505,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24506,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24507,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:09:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4989,"items_count":10} 
[2026-02-25 23:09:49] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24498,"menu_item_id":106,"quantity":1},{"id":24499,"menu_item_id":65,"quantity":1},{"id":24500,"menu_item_id":396,"quantity":2},{"id":24501,"menu_item_id":50,"quantity":1},{"id":24502,"menu_item_id":54,"quantity":1},{"id":24503,"menu_item_id":55,"quantity":1},{"id":24504,"menu_item_id":61,"quantity":2},{"id":24505,"menu_item_id":56,"quantity":1},{"id":24506,"menu_item_id":5,"quantity":1},{"id":24507,"menu_item_id":3,"quantity":1}]} 
[2026-02-25 23:09:49] local.INFO: PosOrderController::update - Item changes check {"order_id":4989,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["106|1|","65|1|","396|2|","50|1|","54|1|","55|1|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["106|1|","65|1|","396|2|","50|1|","54|1|","55|1|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-02-25 23:09:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4989,"order_number":"AZS-250226-032"} 
[2026-02-25 23:09:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4989,"order_number":"AZS-250226-032","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 23:09:49"} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":1,"order_id":4989,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":24498},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24499},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24500},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":24501},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":24502},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24504},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24505},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24506},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24507}],"validated_items":[{"id":24498,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":24499,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":24500,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24501,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":24502,"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":24504,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24505,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24506,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24507,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4989,"items_count":9} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":1,"items_to_remove":[24503],"items":[{"id":24498,"menu_item_id":106,"quantity":1},{"id":24499,"menu_item_id":65,"quantity":1},{"id":24500,"menu_item_id":396,"quantity":2},{"id":24501,"menu_item_id":50,"quantity":1},{"id":24502,"menu_item_id":54,"quantity":1},{"id":24504,"menu_item_id":61,"quantity":2},{"id":24505,"menu_item_id":56,"quantity":1},{"id":24506,"menu_item_id":5,"quantity":1},{"id":24507,"menu_item_id":3,"quantity":1}]} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Item changes check {"order_id":4989,"has_item_changes":true,"old_items_count":10,"new_items_count":9,"old_items_map_keys":["106|1|","65|1|","396|2|","50|1|","54|1|","55|1|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["106|1|","65|1|","396|2|","50|1|","54|1|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4989,"order_number":"AZS-250226-032"} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-032","replaced_order_id":4989} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4992,"items_count":9,"items":[{"menu_item_id":106,"quantity":1,"price":4199.0},{"menu_item_id":65,"quantity":1,"price":1299.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":50,"quantity":1,"price":129.0},{"menu_item_id":54,"quantity":1,"price":159.0},{"menu_item_id":61,"quantity":2,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4992,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":4199.0,"discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4992}} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4992,"item_index":0,"menu_item_id":106} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4992,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4992}} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4992,"item_index":1,"menu_item_id":65} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4992,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4992}} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4992,"item_index":2,"menu_item_id":396} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4992,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4992}} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4992,"item_index":3,"menu_item_id":50} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4992,"item_index":4,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":1,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4992}} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4992,"item_index":4,"menu_item_id":54} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4992,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4992}} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4992,"item_index":5,"menu_item_id":61} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4992,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4992}} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4992,"item_index":6,"menu_item_id":56} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4992,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4992}} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4992,"item_index":7,"menu_item_id":5} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4992,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4992}} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4992,"item_index":8,"menu_item_id":3} 
[2026-02-25 23:10:16] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4989,"new_order_id":4992,"order_number":"AZS-250226-032"} 
[2026-02-25 23:10:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4992,"item_index":0,"item_id":24498} 
[2026-02-25 23:10:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4992,"item_index":1,"item_id":24499} 
[2026-02-25 23:10:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4992,"item_index":2,"item_id":24500} 
[2026-02-25 23:10:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4992,"item_index":3,"item_id":24501} 
[2026-02-25 23:10:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4992,"item_index":4,"item_id":24502} 
[2026-02-25 23:10:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4992,"item_index":5,"item_id":24504} 
[2026-02-25 23:10:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4992,"item_index":6,"item_id":24505} 
[2026-02-25 23:10:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4992,"item_index":7,"item_id":24506} 
[2026-02-25 23:10:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":4992,"item_index":8,"item_id":24507} 
[2026-02-25 23:10:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":9,"order_id":4992,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":24498},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24499},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24500},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":24501},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":24502},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24504},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24505},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24506},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24507}],"validated_items":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:10:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4992,"items_count":9} 
[2026-02-25 23:10:21] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":9,"items_to_remove":[24512,24513,24514,24515,24516,24517,24518,24519,24520],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":54,"quantity":1},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-25 23:10:21] local.INFO: PosOrderController::update - Item changes check {"order_id":4992,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["106|1|","65|1|","396|2|","50|1|","54|1|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["106|1|","65|1|","396|2|","50|1|","54|1|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-02-25 23:10:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4992,"order_number":"AZS-250226-032"} 
[2026-02-25 23:10:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4992,"order_number":"AZS-250226-032","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 23:10:21"} 
[2026-02-25 23:11:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4991,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24511}],"validated_items":[{"id":24511,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:11:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4991,"items_count":1} 
[2026-02-25 23:11:00] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24511,"menu_item_id":96,"quantity":1}]} 
[2026-02-25 23:11:00] local.INFO: PosOrderController::update - Item changes check {"order_id":4991,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["96|1|"],"new_items_map_keys":["96|1|"]} 
[2026-02-25 23:11:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4991,"order_number":"AZS-250226-034"} 
[2026-02-25 23:11:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4991,"order_number":"AZS-250226-034","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-02-25 23:11:00"} 
[2026-02-25 23:13:50] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4991,"order_number":"AZS-250226-034","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1230,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 23:13:50"} 
[2026-02-25 23:13:50] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4991,"order_number":"AZS-250226-034","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1230,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 23:13:50"} 
[2026-02-25 23:13:50] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4991,"order_number":"AZS-250226-034","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1230,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 23:13:50"} 
[2026-02-25 23:13:50] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4991,"order_number":"AZS-250226-034","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1230,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 23:13:50"} 
[2026-02-25 23:13:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":4991,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24511},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null}],"validated_items":[{"id":24511,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:13:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4991,"items_count":2} 
[2026-02-25 23:13:50] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24511,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":286,"quantity":2}]} 
[2026-02-25 23:13:50] local.INFO: PosOrderController::update - Item changes check {"order_id":4991,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["96|1|"],"new_items_map_keys":["96|1|","286|2|"]} 
[2026-02-25 23:13:50] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":4991,"order_number":"AZS-250226-034","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":1230,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-02-25 23:13:50","original_payment_amount":"0.00","grand_total":1229.0,"timestamp":"2026-02-25 23:13:50"} 
[2026-02-25 23:13:50] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4991,"order_number":"AZS-250226-034"} 
[2026-02-25 23:13:50] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-034","replaced_order_id":4991} 
[2026-02-25 23:13:50] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":4991,"new_order_id":4994,"order_number":"AZS-250226-034","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"1230.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-02-25 23:13:50","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1230,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-02-25 23:13:50"} 
[2026-02-25 23:13:50] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4994,"items_count":2,"items":[{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":286,"quantity":2,"price":15.0}]} 
[2026-02-25 23:13:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4994,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4994}} 
[2026-02-25 23:13:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4994,"item_index":0,"menu_item_id":96} 
[2026-02-25 23:13:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4994,"item_index":1,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":2,"price":15.0,"discount_percent":0.0,"discount_amount":0.0,"total":30.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4994}} 
[2026-02-25 23:13:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4994,"item_index":1,"menu_item_id":286} 
[2026-02-25 23:13:50] local.ERROR: Error tracking recipe usage for order 4994: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (4994, 96, 77, 1, 1, 0.00, Order #AZS-250226-034 - 1x Chicken Karahi - Half, 2026-02-25 23:13:50, 2026-02-25 23:13:50))  
[2026-02-25 23:13:50] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4991,"new_order_id":4994,"order_number":"AZS-250226-034"} 
[2026-02-25 23:13:50] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":4991,"new_order_id":4994,"order_number":"AZS-250226-034","route":"api/orders/4991"} 
[2026-02-25 23:13:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T11:13:58.651Z","date_to":"2026-02-25T23:13:58.651Z","per_page":"100"} 
[2026-02-25 23:13:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T11:13:58.667Z","date_to":"2026-02-25T23:13:58.667Z","per_page":"100"} 
[2026-02-25 23:13:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":73,"count":73,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["pending","paid","changed","paid","changed","changed","pending","changed","changed","pending","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed"],"deleted_count":38,"paid_count":30,"unpaid_count":5,"unique_order_numbers":35} 
[2026-02-25 23:13:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":73,"count":73,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["pending","paid","changed","paid","changed","changed","pending","changed","changed","pending","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed"],"deleted_count":38,"paid_count":30,"unpaid_count":5,"unique_order_numbers":35} 
[2026-02-25 23:14:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T11:13:58.651Z","date_to":"2026-02-25T23:13:58.651Z","per_page":"100"} 
[2026-02-25 23:14:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":73,"count":73,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["pending","paid","changed","paid","changed","changed","pending","changed","changed","pending","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed"],"deleted_count":38,"paid_count":30,"unpaid_count":5,"unique_order_numbers":35} 
[2026-02-25 23:14:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T11:14:55.829Z","date_to":"2026-02-25T23:14:55.829Z","per_page":"100"} 
[2026-02-25 23:14:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T11:14:55.806Z","date_to":"2026-02-25T23:14:55.806Z","per_page":"100"} 
[2026-02-25 23:14:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":73,"count":73,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["pending","paid","changed","paid","changed","changed","pending","changed","changed","pending","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed"],"deleted_count":38,"paid_count":30,"unpaid_count":5,"unique_order_numbers":35} 
[2026-02-25 23:14:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":73,"count":73,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["pending","paid","changed","paid","changed","changed","pending","changed","changed","pending","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed"],"deleted_count":38,"paid_count":30,"unpaid_count":5,"unique_order_numbers":35} 
[2026-02-25 23:14:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T11:14:55.806Z","date_to":"2026-02-25T23:14:55.806Z","per_page":"100"} 
[2026-02-25 23:14:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":73,"count":73,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["pending","paid","changed","paid","changed","changed","pending","changed","changed","pending","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed"],"deleted_count":38,"paid_count":30,"unpaid_count":5,"unique_order_numbers":35} 
[2026-02-25 23:15:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":4992,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":24512},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24513},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24514},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":24515},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":24516},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24517},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24518},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24519},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24520}],"validated_items":[{"id":24512,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":24513,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":24514,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24515,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":24516,"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":24517,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24518,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24519,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24520,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:15:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4992,"items_count":9} 
[2026-02-25 23:15:34] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24512,"menu_item_id":106,"quantity":1},{"id":24513,"menu_item_id":65,"quantity":1},{"id":24514,"menu_item_id":396,"quantity":2},{"id":24515,"menu_item_id":50,"quantity":1},{"id":24516,"menu_item_id":54,"quantity":1},{"id":24517,"menu_item_id":61,"quantity":2},{"id":24518,"menu_item_id":56,"quantity":1},{"id":24519,"menu_item_id":5,"quantity":1},{"id":24520,"menu_item_id":3,"quantity":1}]} 
[2026-02-25 23:15:34] local.INFO: PosOrderController::update - Item changes check {"order_id":4992,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["106|1|","65|1|","396|2|","50|1|","54|1|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["106|1|","65|1|","396|2|","50|1|","54|1|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-02-25 23:15:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4992,"order_number":"AZS-250226-032"} 
[2026-02-25 23:15:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4992,"order_number":"AZS-250226-032","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 23:15:34"} 
[2026-02-25 23:16:48] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4992,"order_number":"AZS-250226-032","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":7000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 23:16:48"} 
[2026-02-25 23:16:48] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4992,"order_number":"AZS-250226-032","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":7000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 23:16:48"} 
[2026-02-25 23:16:48] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4992,"order_number":"AZS-250226-032","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 23:16:48"} 
[2026-02-25 23:16:48] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4992,"order_number":"AZS-250226-032","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 23:16:48"} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":4992,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":24512},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24513},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24514},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":24515},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":24516},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24517},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24518},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24519},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24520}],"validated_items":[{"id":24512,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":24513,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":24514,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24515,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":24516,"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":24517,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24518,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24519,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24520,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4992,"items_count":9} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24512,"menu_item_id":106,"quantity":1},{"id":24513,"menu_item_id":65,"quantity":1},{"id":24514,"menu_item_id":396,"quantity":2},{"id":24515,"menu_item_id":50,"quantity":1},{"id":24516,"menu_item_id":54,"quantity":1},{"id":24517,"menu_item_id":61,"quantity":1},{"id":24518,"menu_item_id":56,"quantity":1},{"id":24519,"menu_item_id":5,"quantity":1},{"id":24520,"menu_item_id":3,"quantity":1}]} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Item changes check {"order_id":4992,"has_item_changes":true,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["106|1|","65|1|","396|2|","50|1|","54|1|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["106|1|","65|1|","396|2|","50|1|","54|1|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-02-25 23:16:48] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":4992,"order_number":"AZS-250226-032","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":7000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-02-25 23:16:48","original_payment_amount":"0.00","grand_total":6822.0,"timestamp":"2026-02-25 23:16:48"} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4992,"order_number":"AZS-250226-032"} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-032","replaced_order_id":4992} 
[2026-02-25 23:16:48] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":4992,"new_order_id":4995,"order_number":"AZS-250226-032","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"7000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-02-25 23:16:48","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":7000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-02-25 23:16:48"} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4995,"items_count":9,"items":[{"menu_item_id":106,"quantity":1,"price":4199.0},{"menu_item_id":65,"quantity":1,"price":1299.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":50,"quantity":1,"price":129.0},{"menu_item_id":54,"quantity":1,"price":159.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4995,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":4199.0,"discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4995}} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4995,"item_index":0,"menu_item_id":106} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4995,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4995}} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4995,"item_index":1,"menu_item_id":65} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4995,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4995}} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4995,"item_index":2,"menu_item_id":396} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4995,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4995}} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4995,"item_index":3,"menu_item_id":50} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4995,"item_index":4,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":1,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4995}} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4995,"item_index":4,"menu_item_id":54} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4995,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4995}} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4995,"item_index":5,"menu_item_id":61} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4995,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4995}} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4995,"item_index":6,"menu_item_id":56} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4995,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4995}} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4995,"item_index":7,"menu_item_id":5} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4995,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4995}} 
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4995,"item_index":8,"menu_item_id":3} 
[2026-02-25 23:16:48] local.ERROR: Error tracking recipe usage for order 4995: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (4995, 106, 196, 1, 1, 0.00, Order #AZS-250226-032 - 1x Mutton Shinwari - Full, 2026-02-25 23:16:48, 2026-02-25 23:16:48))  
[2026-02-25 23:16:48] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4992,"new_order_id":4995,"order_number":"AZS-250226-032"} 
[2026-02-25 23:16:49] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":4992,"new_order_id":4995,"order_number":"AZS-250226-032","route":"api/orders/4992"} 
[2026-02-25 23:20:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T11:20:44.113Z","date_to":"2026-02-25T23:20:44.113Z","per_page":"100"} 
[2026-02-25 23:20:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T11:20:44.101Z","date_to":"2026-02-25T23:20:44.101Z","per_page":"100"} 
[2026-02-25 23:20:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":74,"count":74,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["pending","paid","changed","paid","changed","changed","paid","changed","changed","changed","pending","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed"],"deleted_count":39,"paid_count":31,"unpaid_count":4,"unique_order_numbers":35} 
[2026-02-25 23:20:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":74,"count":74,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["pending","paid","changed","paid","changed","changed","paid","changed","changed","changed","pending","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed"],"deleted_count":39,"paid_count":31,"unpaid_count":4,"unique_order_numbers":35} 
[2026-02-25 23:20:46] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T11:20:44.101Z","date_to":"2026-02-25T23:20:44.101Z","per_page":"100"} 
[2026-02-25 23:20:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":74,"count":74,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["pending","paid","changed","paid","changed","changed","paid","changed","changed","changed","pending","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed"],"deleted_count":39,"paid_count":31,"unpaid_count":4,"unique_order_numbers":35} 
[2026-02-25 23:33:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":4996,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":24535},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":24535,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:33:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4996,"items_count":2} 
[2026-02-25 23:33:07] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24535,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":416,"quantity":2}]} 
[2026-02-25 23:33:07] local.INFO: PosOrderController::update - Item changes check {"order_id":4996,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|2|"],"new_items_map_keys":["411|2|","416|2|"]} 
[2026-02-25 23:33:07] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4996,"order_number":"AZS-250226-036"} 
[2026-02-25 23:33:07] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-036","replaced_order_id":4996} 
[2026-02-25 23:33:07] local.INFO: PosOrderController::update - Creating order items {"new_order_id":4999,"items_count":2,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"}]} 
[2026-02-25 23:33:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4999,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4999}} 
[2026-02-25 23:33:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4999,"item_index":0,"menu_item_id":411} 
[2026-02-25 23:33:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":4999,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":4999}} 
[2026-02-25 23:33:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":4999,"item_index":1,"menu_item_id":416} 
[2026-02-25 23:33:07] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4996,"new_order_id":4999,"order_number":"AZS-250226-036"} 
[2026-02-25 23:34:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":4993,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":24521},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":24522},{"menu_item_id":49,"quantity":1,"discount_percent":0,"notes":null,"id":24523},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24521,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":24522,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":24523,"menu_item_id":49,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:34:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4993,"items_count":4} 
[2026-02-25 23:34:40] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24521,"menu_item_id":96,"quantity":1},{"id":24522,"menu_item_id":396,"quantity":2},{"id":24523,"menu_item_id":49,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-02-25 23:34:40] local.INFO: PosOrderController::update - Item changes check {"order_id":4993,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["96|1|","396|2|","49|1|"],"new_items_map_keys":["96|1|","396|2|","49|1|","61|1|"]} 
[2026-02-25 23:34:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4993,"order_number":"AZS-250226-035"} 
[2026-02-25 23:34:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-035","replaced_order_id":4993} 
[2026-02-25 23:34:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5002,"items_count":4,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":49,"quantity":1,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"}]} 
[2026-02-25 23:34:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5002,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5002}} 
[2026-02-25 23:34:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5002,"item_index":0,"menu_item_id":96} 
[2026-02-25 23:34:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5002,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5002}} 
[2026-02-25 23:34:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5002,"item_index":1,"menu_item_id":396} 
[2026-02-25 23:34:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5002,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5002}} 
[2026-02-25 23:34:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5002,"item_index":2,"menu_item_id":49} 
[2026-02-25 23:34:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5002,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5002}} 
[2026-02-25 23:34:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5002,"item_index":3,"menu_item_id":61} 
[2026-02-25 23:34:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4993,"new_order_id":5002,"order_number":"AZS-250226-035"} 
[2026-02-25 23:39:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":4999,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":24543},{"menu_item_id":416,"quantity":4,"discount_percent":0,"notes":null,"id":24544}],"validated_items":[{"id":24543,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":24544,"menu_item_id":416,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:39:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4999,"items_count":2} 
[2026-02-25 23:39:35] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24543,"menu_item_id":411,"quantity":2},{"id":24544,"menu_item_id":416,"quantity":4}]} 
[2026-02-25 23:39:35] local.INFO: PosOrderController::update - Item changes check {"order_id":4999,"has_item_changes":true,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|2|","416|2|"],"new_items_map_keys":["411|2|","416|4|"]} 
[2026-02-25 23:39:35] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":4999,"order_number":"AZS-250226-036"} 
[2026-02-25 23:39:35] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-036","replaced_order_id":4999} 
[2026-02-25 23:39:35] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5003,"items_count":2,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":416,"quantity":4,"price":"70.00"}]} 
[2026-02-25 23:39:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5003,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5003}} 
[2026-02-25 23:39:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5003,"item_index":0,"menu_item_id":411} 
[2026-02-25 23:39:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5003,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5003}} 
[2026-02-25 23:39:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5003,"item_index":1,"menu_item_id":416} 
[2026-02-25 23:39:35] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":4999,"new_order_id":5003,"order_number":"AZS-250226-036"} 
[2026-02-25 23:43:39] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4984,"order_number":"AZS-250226-031","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":210,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 23:43:39"} 
[2026-02-25 23:43:39] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4984,"order_number":"AZS-250226-031","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":210,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 23:43:39"} 
[2026-02-25 23:43:39] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4984,"order_number":"AZS-250226-031","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":210,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 23:43:39"} 
[2026-02-25 23:43:39] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4984,"order_number":"AZS-250226-031","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":210,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 23:43:39"} 
[2026-02-25 23:43:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4984,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24479}],"validated_items":[{"id":24479,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:43:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4984,"items_count":1} 
[2026-02-25 23:43:39] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24479,"menu_item_id":6,"quantity":1}]} 
[2026-02-25 23:43:39] local.INFO: PosOrderController::update - Item changes check {"order_id":4984,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-02-25 23:43:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4984,"order_number":"AZS-250226-031"} 
[2026-02-25 23:43:39] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4984,"order_number":"AZS-250226-031","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":210,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-25 23:43:39","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 23:43:39"} 
[2026-02-25 23:43:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4984,"order_number":"AZS-250226-031","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 23:43:39"} 
[2026-02-25 23:43:39] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4984,"order_number":"AZS-250226-031","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"210.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-25 23:43:39","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":210,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"210.00","database_verification_match":true,"timestamp":"2026-02-25 23:43:39"} 
[2026-02-25 23:44:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":4997,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":24536},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24537},{"menu_item_id":424,"quantity":1,"price":60,"discount_percent":0,"notes":null,"id":24538},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24539},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24540},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":24541}],"validated_items":[{"id":24536,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":24537,"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":24538,"menu_item_id":424,"quantity":1,"price":60,"discount_percent":0,"notes":null},{"id":24539,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":24540,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24541,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:44:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4997,"items_count":6} 
[2026-02-25 23:44:16] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24536,"menu_item_id":416,"quantity":2},{"id":24537,"menu_item_id":421,"quantity":1},{"id":24538,"menu_item_id":424,"quantity":1},{"id":24539,"menu_item_id":425,"quantity":1},{"id":24540,"menu_item_id":6,"quantity":2},{"id":24541,"menu_item_id":4,"quantity":1}]} 
[2026-02-25 23:44:16] local.INFO: PosOrderController::update - Item changes check {"order_id":4997,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["416|2|","421|1|","424|1|","425|1|","6|2|","4|1|"],"new_items_map_keys":["416|2|","421|1|","424|1|","425|1|","6|2|","4|1|"]} 
[2026-02-25 23:44:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4997,"order_number":"AZS-250226-037"} 
[2026-02-25 23:44:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4997,"order_number":"AZS-250226-037","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 23:44:16"} 
[2026-02-25 23:44:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5000,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":426,"quantity":1,"price":299,"discount_percent":0,"notes":null,"id":24545},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":24546},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":24547}],"validated_items":[{"id":24545,"menu_item_id":426,"quantity":1,"price":299,"discount_percent":0,"notes":null},{"id":24546,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"id":24547,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:44:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5000,"items_count":3} 
[2026-02-25 23:44:59] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24545,"menu_item_id":426,"quantity":1},{"id":24546,"menu_item_id":286,"quantity":2},{"id":24547,"menu_item_id":4,"quantity":1}]} 
[2026-02-25 23:44:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5000,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["426|1|","286|2|","4|1|"],"new_items_map_keys":["426|1|","286|2|","4|1|"]} 
[2026-02-25 23:44:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5000,"order_number":"AZS-250226-039"} 
[2026-02-25 23:44:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5000,"order_number":"AZS-250226-039","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 23:44:59"} 
[2026-02-25 23:46:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5001,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null,"id":24548},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24549}],"validated_items":[{"id":24548,"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null},{"id":24549,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:46:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5001,"items_count":2} 
[2026-02-25 23:46:08] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24548,"menu_item_id":414,"quantity":1},{"id":24549,"menu_item_id":416,"quantity":1}]} 
[2026-02-25 23:46:08] local.INFO: PosOrderController::update - Item changes check {"order_id":5001,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["414|1|","416|1|"],"new_items_map_keys":["414|1|","416|1|"]} 
[2026-02-25 23:46:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5001,"order_number":"AZS-250226-040"} 
[2026-02-25 23:46:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5001,"order_number":"AZS-250226-040","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 23:46:08"} 
[2026-02-25 23:46:39] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5000,"order_number":"AZS-250226-039","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":420,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 23:46:39"} 
[2026-02-25 23:46:39] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5000,"order_number":"AZS-250226-039","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":420,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 23:46:39"} 
[2026-02-25 23:46:39] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5000,"order_number":"AZS-250226-039","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":420,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 23:46:39"} 
[2026-02-25 23:46:39] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5000,"order_number":"AZS-250226-039","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":420,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 23:46:39"} 
[2026-02-25 23:46:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5000,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":426,"quantity":1,"price":299,"discount_percent":0,"notes":null,"id":24545},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":24546},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":24547}],"validated_items":[{"id":24545,"menu_item_id":426,"quantity":1,"price":299,"discount_percent":0,"notes":null},{"id":24546,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"id":24547,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:46:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5000,"items_count":3} 
[2026-02-25 23:46:39] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24545,"menu_item_id":426,"quantity":1},{"id":24546,"menu_item_id":286,"quantity":2},{"id":24547,"menu_item_id":4,"quantity":1}]} 
[2026-02-25 23:46:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5000,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["426|1|","286|2|","4|1|"],"new_items_map_keys":["426|1|","286|2|","4|1|"]} 
[2026-02-25 23:46:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5000,"order_number":"AZS-250226-039"} 
[2026-02-25 23:46:39] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5000,"order_number":"AZS-250226-039","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":420,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-25 23:46:39","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 23:46:39"} 
[2026-02-25 23:46:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5000,"order_number":"AZS-250226-039","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 23:46:39"} 
[2026-02-25 23:46:39] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5000,"order_number":"AZS-250226-039","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"420.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-25 23:46:39","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":420,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"420.00","database_verification_match":true,"timestamp":"2026-02-25 23:46:39"} 
[2026-02-25 23:46:49] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4998,"order_number":"AZS-250226-038","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 23:46:49"} 
[2026-02-25 23:46:49] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4998,"order_number":"AZS-250226-038","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 23:46:49"} 
[2026-02-25 23:46:49] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4998,"order_number":"AZS-250226-038","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 23:46:49"} 
[2026-02-25 23:46:49] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4998,"order_number":"AZS-250226-038","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 23:46:49"} 
[2026-02-25 23:46:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4998,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24542}],"validated_items":[{"id":24542,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:46:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4998,"items_count":1} 
[2026-02-25 23:46:49] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24542,"menu_item_id":61,"quantity":1}]} 
[2026-02-25 23:46:49] local.INFO: PosOrderController::update - Item changes check {"order_id":4998,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["61|1|"],"new_items_map_keys":["61|1|"]} 
[2026-02-25 23:46:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4998,"order_number":"AZS-250226-038"} 
[2026-02-25 23:46:49] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4998,"order_number":"AZS-250226-038","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-25 23:46:49","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 23:46:49"} 
[2026-02-25 23:46:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4998,"order_number":"AZS-250226-038","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 23:46:49"} 
[2026-02-25 23:46:49] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4998,"order_number":"AZS-250226-038","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-25 23:46:49","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"200.00","database_verification_match":true,"timestamp":"2026-02-25 23:46:49"} 
[2026-02-25 23:47:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5002,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24550},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24551},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24552},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24553}],"validated_items":[{"id":24550,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24551,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24552,"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":24553,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:47:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5002,"items_count":4} 
[2026-02-25 23:47:11] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24550,"menu_item_id":96,"quantity":1},{"id":24551,"menu_item_id":396,"quantity":2},{"id":24552,"menu_item_id":49,"quantity":1},{"id":24553,"menu_item_id":61,"quantity":1}]} 
[2026-02-25 23:47:11] local.INFO: PosOrderController::update - Item changes check {"order_id":5002,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","396|2|","49|1|","61|1|"],"new_items_map_keys":["96|1|","396|2|","49|1|","61|1|"]} 
[2026-02-25 23:47:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5002,"order_number":"AZS-250226-035"} 
[2026-02-25 23:47:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5002,"order_number":"AZS-250226-035","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 23:47:11"} 
[2026-02-25 23:48:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5002,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":24550},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":24551},{"menu_item_id":49,"quantity":1,"discount_percent":0,"notes":null,"id":24552},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24553},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24550,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":24551,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":24552,"menu_item_id":49,"quantity":1,"discount_percent":0,"notes":null},{"id":24553,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:48:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5002,"items_count":5} 
[2026-02-25 23:48:15] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24550,"menu_item_id":96,"quantity":1},{"id":24551,"menu_item_id":396,"quantity":2},{"id":24552,"menu_item_id":49,"quantity":1},{"id":24553,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 23:48:15] local.INFO: PosOrderController::update - Item changes check {"order_id":5002,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["96|1|","396|2|","49|1|","61|1|"],"new_items_map_keys":["96|1|","396|2|","49|1|","61|1|","5|1|"]} 
[2026-02-25 23:48:15] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5002,"order_number":"AZS-250226-035"} 
[2026-02-25 23:48:15] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-035","replaced_order_id":5002} 
[2026-02-25 23:48:15] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5004,"items_count":5,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":49,"quantity":1,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-25 23:48:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5004,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5004}} 
[2026-02-25 23:48:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5004,"item_index":0,"menu_item_id":96} 
[2026-02-25 23:48:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5004,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5004}} 
[2026-02-25 23:48:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5004,"item_index":1,"menu_item_id":396} 
[2026-02-25 23:48:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5004,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5004}} 
[2026-02-25 23:48:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5004,"item_index":2,"menu_item_id":49} 
[2026-02-25 23:48:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5004,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5004}} 
[2026-02-25 23:48:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5004,"item_index":3,"menu_item_id":61} 
[2026-02-25 23:48:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5004,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5004}} 
[2026-02-25 23:48:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5004,"item_index":4,"menu_item_id":5} 
[2026-02-25 23:48:15] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5002,"new_order_id":5004,"order_number":"AZS-250226-035"} 
[2026-02-25 23:48:24] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5004,"item_index":0,"item_id":24550} 
[2026-02-25 23:48:24] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5004,"item_index":1,"item_id":24551} 
[2026-02-25 23:48:24] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5004,"item_index":2,"item_id":24552} 
[2026-02-25 23:48:24] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5004,"item_index":3,"item_id":24553} 
[2026-02-25 23:48:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5004,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24550},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24551},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24552},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24553},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:48:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5004,"items_count":5} 
[2026-02-25 23:48:24] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[24556,24557,24558,24559,24560],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":49,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 23:48:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5004,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","396|2|","49|1|","61|1|","5|1|"],"new_items_map_keys":["96|1|","396|2|","49|1|","61|1|","5|1|"]} 
[2026-02-25 23:48:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5004,"order_number":"AZS-250226-035"} 
[2026-02-25 23:48:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5004,"order_number":"AZS-250226-035","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 23:48:24"} 
[2026-02-25 23:49:33] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5001,"order_number":"AZS-250226-040","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 23:49:33"} 
[2026-02-25 23:49:33] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5001,"order_number":"AZS-250226-040","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 23:49:33"} 
[2026-02-25 23:49:33] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5001,"order_number":"AZS-250226-040","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 23:49:33"} 
[2026-02-25 23:49:33] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5001,"order_number":"AZS-250226-040","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 23:49:33"} 
[2026-02-25 23:49:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5001,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null,"id":24548},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24549}],"validated_items":[{"id":24548,"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null},{"id":24549,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:49:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5001,"items_count":2} 
[2026-02-25 23:49:33] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24548,"menu_item_id":414,"quantity":1},{"id":24549,"menu_item_id":416,"quantity":1}]} 
[2026-02-25 23:49:33] local.INFO: PosOrderController::update - Item changes check {"order_id":5001,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["414|1|","416|1|"],"new_items_map_keys":["414|1|","416|1|"]} 
[2026-02-25 23:49:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5001,"order_number":"AZS-250226-040"} 
[2026-02-25 23:49:33] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5001,"order_number":"AZS-250226-040","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-25 23:49:33","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 23:49:33"} 
[2026-02-25 23:49:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5001,"order_number":"AZS-250226-040","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 23:49:33"} 
[2026-02-25 23:49:33] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5001,"order_number":"AZS-250226-040","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-25 23:49:33","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-02-25 23:49:33"} 
[2026-02-25 23:50:50] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4997,"order_number":"AZS-250226-037","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 23:50:50"} 
[2026-02-25 23:50:50] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4997,"order_number":"AZS-250226-037","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 23:50:50"} 
[2026-02-25 23:50:50] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4997,"order_number":"AZS-250226-037","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 23:50:50"} 
[2026-02-25 23:50:50] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4997,"order_number":"AZS-250226-037","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 23:50:50"} 
[2026-02-25 23:50:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":4997,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":24536},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24537},{"menu_item_id":424,"quantity":1,"price":60,"discount_percent":0,"notes":null,"id":24538},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24539},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24540},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":24541}],"validated_items":[{"id":24536,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":24537,"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":24538,"menu_item_id":424,"quantity":1,"price":60,"discount_percent":0,"notes":null},{"id":24539,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":24540,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24541,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:50:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4997,"items_count":6} 
[2026-02-25 23:50:50] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24536,"menu_item_id":416,"quantity":2},{"id":24537,"menu_item_id":421,"quantity":1},{"id":24538,"menu_item_id":424,"quantity":1},{"id":24539,"menu_item_id":425,"quantity":1},{"id":24540,"menu_item_id":6,"quantity":2},{"id":24541,"menu_item_id":4,"quantity":1}]} 
[2026-02-25 23:50:50] local.INFO: PosOrderController::update - Item changes check {"order_id":4997,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["416|2|","421|1|","424|1|","425|1|","6|2|","4|1|"],"new_items_map_keys":["416|2|","421|1|","424|1|","425|1|","6|2|","4|1|"]} 
[2026-02-25 23:50:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4997,"order_number":"AZS-250226-037"} 
[2026-02-25 23:50:50] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4997,"order_number":"AZS-250226-037","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-25 23:50:50","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 23:50:50"} 
[2026-02-25 23:50:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4997,"order_number":"AZS-250226-037","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 23:50:50"} 
[2026-02-25 23:50:50] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4997,"order_number":"AZS-250226-037","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-25 23:50:50","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-02-25 23:50:50"} 
[2026-02-25 23:51:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":5004,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24556},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24557},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24559},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24560}],"validated_items":[{"id":24556,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24557,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24559,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24560,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:51:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5004,"items_count":4} 
[2026-02-25 23:51:06] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[24558],"items":[{"id":24556,"menu_item_id":96,"quantity":1},{"id":24557,"menu_item_id":396,"quantity":2},{"id":24559,"menu_item_id":61,"quantity":1},{"id":24560,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 23:51:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5004,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["96|1|","396|2|","49|1|","61|1|","5|1|"],"new_items_map_keys":["96|1|","396|2|","61|1|","5|1|"]} 
[2026-02-25 23:51:06] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5004,"order_number":"AZS-250226-035"} 
[2026-02-25 23:51:06] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-035","replaced_order_id":5004} 
[2026-02-25 23:51:06] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5006,"items_count":4,"items":[{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-02-25 23:51:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5006,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5006}} 
[2026-02-25 23:51:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5006,"item_index":0,"menu_item_id":96} 
[2026-02-25 23:51:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5006,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5006}} 
[2026-02-25 23:51:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5006,"item_index":1,"menu_item_id":396} 
[2026-02-25 23:51:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5006,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5006}} 
[2026-02-25 23:51:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5006,"item_index":2,"menu_item_id":61} 
[2026-02-25 23:51:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5006,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5006}} 
[2026-02-25 23:51:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5006,"item_index":3,"menu_item_id":5} 
[2026-02-25 23:51:06] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5004,"new_order_id":5006,"order_number":"AZS-250226-035"} 
[2026-02-25 23:51:11] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5006,"item_index":0,"item_id":24556} 
[2026-02-25 23:51:11] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5006,"item_index":1,"item_id":24557} 
[2026-02-25 23:51:11] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5006,"item_index":2,"item_id":24559} 
[2026-02-25 23:51:11] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5006,"item_index":3,"item_id":24560} 
[2026-02-25 23:51:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5006,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24556},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24557},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24559},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24560}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:51:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5006,"items_count":4} 
[2026-02-25 23:51:11] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[24563,24564,24565,24566],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 23:51:11] local.INFO: PosOrderController::update - Item changes check {"order_id":5006,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","396|2|","61|1|","5|1|"],"new_items_map_keys":["96|1|","396|2|","61|1|","5|1|"]} 
[2026-02-25 23:51:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5006,"order_number":"AZS-250226-035"} 
[2026-02-25 23:51:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5006,"order_number":"AZS-250226-035","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 23:51:11"} 
[2026-02-25 23:51:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5003,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":24554},{"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":24555}],"validated_items":[{"id":24554,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":24555,"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:51:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5003,"items_count":2} 
[2026-02-25 23:51:51] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24554,"menu_item_id":411,"quantity":2},{"id":24555,"menu_item_id":416,"quantity":4}]} 
[2026-02-25 23:51:51] local.INFO: PosOrderController::update - Item changes check {"order_id":5003,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|2|","416|4|"],"new_items_map_keys":["411|2|","416|4|"]} 
[2026-02-25 23:51:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5003,"order_number":"AZS-250226-036"} 
[2026-02-25 23:51:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5003,"order_number":"AZS-250226-036","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 23:51:51"} 
[2026-02-25 23:52:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5003,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":24554},{"menu_item_id":416,"quantity":4,"discount_percent":0,"notes":null,"id":24555},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24554,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":24555,"menu_item_id":416,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:52:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5003,"items_count":3} 
[2026-02-25 23:52:22] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24554,"menu_item_id":411,"quantity":2},{"id":24555,"menu_item_id":416,"quantity":4},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 23:52:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5003,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["411|2|","416|4|"],"new_items_map_keys":["411|2|","416|4|","5|1|"]} 
[2026-02-25 23:52:22] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5003,"order_number":"AZS-250226-036"} 
[2026-02-25 23:52:22] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-036","replaced_order_id":5003} 
[2026-02-25 23:52:22] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5007,"items_count":3,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":416,"quantity":4,"price":"70.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-25 23:52:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5007,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5007}} 
[2026-02-25 23:52:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5007,"item_index":0,"menu_item_id":411} 
[2026-02-25 23:52:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5007,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5007}} 
[2026-02-25 23:52:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5007,"item_index":1,"menu_item_id":416} 
[2026-02-25 23:52:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5007,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5007}} 
[2026-02-25 23:52:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5007,"item_index":2,"menu_item_id":5} 
[2026-02-25 23:52:22] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5003,"new_order_id":5007,"order_number":"AZS-250226-036"} 
[2026-02-25 23:52:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5007,"item_index":0,"item_id":24554} 
[2026-02-25 23:52:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5007,"item_index":1,"item_id":24555} 
[2026-02-25 23:52:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":5007,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":24554},{"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":24555},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:52:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5007,"items_count":3} 
[2026-02-25 23:52:28] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[24567,24568,24569],"items":[{"id":null,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":416,"quantity":4},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 23:52:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5007,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|2|","416|4|","5|1|"],"new_items_map_keys":["411|2|","416|4|","5|1|"]} 
[2026-02-25 23:52:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5007,"order_number":"AZS-250226-036"} 
[2026-02-25 23:52:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5007,"order_number":"AZS-250226-036","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-25 23:52:28"} 
[2026-02-25 23:52:59] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5006,"order_number":"AZS-250226-035","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 23:52:59"} 
[2026-02-25 23:52:59] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5006,"order_number":"AZS-250226-035","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 23:52:59"} 
[2026-02-25 23:52:59] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5006,"order_number":"AZS-250226-035","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 23:52:59"} 
[2026-02-25 23:52:59] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5006,"order_number":"AZS-250226-035","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 23:52:59"} 
[2026-02-25 23:52:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5006,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24563},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24564},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24565},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24566}],"validated_items":[{"id":24563,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24564,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24565,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24566,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:52:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5006,"items_count":4} 
[2026-02-25 23:52:59] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24563,"menu_item_id":96,"quantity":1},{"id":24564,"menu_item_id":396,"quantity":2},{"id":24565,"menu_item_id":61,"quantity":1},{"id":24566,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 23:52:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5006,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","396|2|","61|1|","5|1|"],"new_items_map_keys":["96|1|","396|2|","61|1|","5|1|"]} 
[2026-02-25 23:52:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5006,"order_number":"AZS-250226-035"} 
[2026-02-25 23:52:59] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5006,"order_number":"AZS-250226-035","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-25 23:52:59","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 23:52:59"} 
[2026-02-25 23:52:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5006,"order_number":"AZS-250226-035","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 23:52:59"} 
[2026-02-25 23:52:59] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5006,"order_number":"AZS-250226-035","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-25 23:52:59","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-02-25 23:52:59"} 
[2026-02-25 23:54:02] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5007,"order_number":"AZS-250226-036","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1700,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 23:54:02"} 
[2026-02-25 23:54:02] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5007,"order_number":"AZS-250226-036","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1700,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 23:54:02"} 
[2026-02-25 23:54:02] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5007,"order_number":"AZS-250226-036","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1700,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 23:54:02"} 
[2026-02-25 23:54:02] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5007,"order_number":"AZS-250226-036","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1700,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 23:54:02"} 
[2026-02-25 23:54:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5007,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":24567},{"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":24568},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24569}],"validated_items":[{"id":24567,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":24568,"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":24569,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:54:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5007,"items_count":3} 
[2026-02-25 23:54:02] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24567,"menu_item_id":411,"quantity":2},{"id":24568,"menu_item_id":416,"quantity":4},{"id":24569,"menu_item_id":5,"quantity":1}]} 
[2026-02-25 23:54:02] local.INFO: PosOrderController::update - Item changes check {"order_id":5007,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|2|","416|4|","5|1|"],"new_items_map_keys":["411|2|","416|4|","5|1|"]} 
[2026-02-25 23:54:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5007,"order_number":"AZS-250226-036"} 
[2026-02-25 23:54:02] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5007,"order_number":"AZS-250226-036","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1700,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-25 23:54:02","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 23:54:02"} 
[2026-02-25 23:54:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5007,"order_number":"AZS-250226-036","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 23:54:02"} 
[2026-02-25 23:54:02] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5007,"order_number":"AZS-250226-036","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1700.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-25 23:54:02","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1700,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1700.00","database_verification_match":true,"timestamp":"2026-02-25 23:54:02"} 
[2026-02-25 23:54:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5005,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":24561},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null,"id":24562},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24561,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":24562,"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:54:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5005,"items_count":3} 
[2026-02-25 23:54:58] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24561,"menu_item_id":411,"quantity":1},{"id":24562,"menu_item_id":416,"quantity":1},{"id":null,"menu_item_id":6,"quantity":1}]} 
[2026-02-25 23:54:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5005,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["411|1|","416|1|"],"new_items_map_keys":["411|1|","416|1|","6|1|"]} 
[2026-02-25 23:54:58] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5005,"order_number":"AZS-250226-041"} 
[2026-02-25 23:54:58] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-041","replaced_order_id":5005} 
[2026-02-25 23:54:58] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5008,"items_count":3,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":416,"quantity":1,"price":"70.00"},{"menu_item_id":6,"quantity":1,"price":"199.00"}]} 
[2026-02-25 23:54:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5008,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5008}} 
[2026-02-25 23:54:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5008,"item_index":0,"menu_item_id":411} 
[2026-02-25 23:54:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5008,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5008}} 
[2026-02-25 23:54:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5008,"item_index":1,"menu_item_id":416} 
[2026-02-25 23:54:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5008,"item_index":2,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5008}} 
[2026-02-25 23:54:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5008,"item_index":2,"menu_item_id":6} 
[2026-02-25 23:54:58] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5005,"new_order_id":5008,"order_number":"AZS-250226-041"} 
[2026-02-25 23:57:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4981,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":143,"quantity":2,"discount_percent":0,"notes":null,"id":24470}],"validated_items":[{"id":24470,"menu_item_id":143,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:57:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4981,"items_count":1} 
[2026-02-25 23:57:17] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24470,"menu_item_id":143,"quantity":2}]} 
[2026-02-25 23:57:17] local.INFO: PosOrderController::update - Item changes check {"order_id":4981,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["143|2|"],"new_items_map_keys":["143|2|"]} 
[2026-02-25 23:57:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4981,"order_number":"AZS-250226-001"} 
[2026-02-25 23:57:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4981,"order_number":"AZS-250226-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-02-25 23:57:17"} 
[2026-02-25 23:57:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4981,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":143,"quantity":2,"price":1099,"discount_percent":0,"notes":null,"id":24470}],"validated_items":[{"id":24470,"menu_item_id":143,"quantity":2,"price":1099,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:57:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4981,"items_count":1} 
[2026-02-25 23:57:25] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24470,"menu_item_id":143,"quantity":2}]} 
[2026-02-25 23:57:25] local.INFO: PosOrderController::update - Item changes check {"order_id":4981,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["143|2|"],"new_items_map_keys":["143|2|"]} 
[2026-02-25 23:57:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4981,"order_number":"AZS-250226-001"} 
[2026-02-25 23:57:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4981,"order_number":"AZS-250226-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-02-25 23:57:25"} 
[2026-02-25 23:57:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T11:57:31.341Z","date_to":"2026-02-25T23:57:31.341Z","per_page":"100"} 
[2026-02-25 23:57:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":87,"count":87,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-041","AZS-250226-041","AZS-250226-040","AZS-250226-039","AZS-250226-038","AZS-250226-037","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["pending","changed","paid","paid","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed"],"deleted_count":46,"paid_count":38,"unpaid_count":3,"unique_order_numbers":41} 
[2026-02-25 23:57:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T11:57:31.363Z","date_to":"2026-02-25T23:57:31.363Z","per_page":"100"} 
[2026-02-25 23:57:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":87,"count":87,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-041","AZS-250226-041","AZS-250226-040","AZS-250226-039","AZS-250226-038","AZS-250226-037","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["pending","changed","paid","paid","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed"],"deleted_count":46,"paid_count":38,"unpaid_count":3,"unique_order_numbers":41} 
[2026-02-25 23:57:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T11:57:31.341Z","date_to":"2026-02-25T23:57:31.341Z","per_page":"100"} 
[2026-02-25 23:57:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":87,"count":87,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-041","AZS-250226-041","AZS-250226-040","AZS-250226-039","AZS-250226-038","AZS-250226-037","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["pending","changed","paid","paid","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed"],"deleted_count":46,"paid_count":38,"unpaid_count":3,"unique_order_numbers":41} 
[2026-02-25 23:57:46] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4981,"order_number":"AZS-250226-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2198,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 23:57:46"} 
[2026-02-25 23:57:46] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4981,"order_number":"AZS-250226-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2198,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 23:57:46"} 
[2026-02-25 23:57:46] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4981,"order_number":"AZS-250226-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2198,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 23:57:46"} 
[2026-02-25 23:57:46] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4981,"order_number":"AZS-250226-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2198,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 23:57:46"} 
[2026-02-25 23:57:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4981,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":143,"quantity":2,"price":1099,"discount_percent":0,"notes":null,"id":24470}],"validated_items":[{"id":24470,"menu_item_id":143,"quantity":2,"price":1099,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:57:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4981,"items_count":1} 
[2026-02-25 23:57:46] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24470,"menu_item_id":143,"quantity":2}]} 
[2026-02-25 23:57:46] local.INFO: PosOrderController::update - Item changes check {"order_id":4981,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["143|2|"],"new_items_map_keys":["143|2|"]} 
[2026-02-25 23:57:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4981,"order_number":"AZS-250226-001"} 
[2026-02-25 23:57:46] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4981,"order_number":"AZS-250226-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2198,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-25 23:57:46","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 23:57:46"} 
[2026-02-25 23:57:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4981,"order_number":"AZS-250226-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 23:57:46"} 
[2026-02-25 23:57:46] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4981,"order_number":"AZS-250226-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2198.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-25 23:57:46","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2198,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2198.00","database_verification_match":true,"timestamp":"2026-02-25 23:57:46"} 
[2026-02-25 23:57:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T11:57:50.578Z","date_to":"2026-02-25T23:57:50.578Z","per_page":"100"} 
[2026-02-25 23:57:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T11:57:50.555Z","date_to":"2026-02-25T23:57:50.555Z","per_page":"100"} 
[2026-02-25 23:57:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":87,"count":87,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-041","AZS-250226-041","AZS-250226-040","AZS-250226-039","AZS-250226-038","AZS-250226-037","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["pending","changed","paid","paid","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed"],"deleted_count":46,"paid_count":39,"unpaid_count":2,"unique_order_numbers":41} 
[2026-02-25 23:57:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":87,"count":87,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-041","AZS-250226-041","AZS-250226-040","AZS-250226-039","AZS-250226-038","AZS-250226-037","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["pending","changed","paid","paid","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed"],"deleted_count":46,"paid_count":39,"unpaid_count":2,"unique_order_numbers":41} 
[2026-02-25 23:57:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T11:57:50.555Z","date_to":"2026-02-25T23:57:50.555Z","per_page":"100"} 
[2026-02-25 23:57:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":87,"count":87,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-041","AZS-250226-041","AZS-250226-040","AZS-250226-039","AZS-250226-038","AZS-250226-037","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["pending","changed","paid","paid","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","pending","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed"],"deleted_count":46,"paid_count":39,"unpaid_count":2,"unique_order_numbers":41} 
[2026-02-25 23:58:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4948,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":24324}],"validated_items":[{"id":24324,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:58:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4948,"items_count":1} 
[2026-02-25 23:58:02] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24324,"menu_item_id":385,"quantity":1}]} 
[2026-02-25 23:58:02] local.INFO: PosOrderController::update - Item changes check {"order_id":4948,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-02-25 23:58:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4948,"order_number":"AZS-250226-015"} 
[2026-02-25 23:58:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4948,"order_number":"AZS-250226-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-02-25 23:58:02"} 
[2026-02-25 23:58:13] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":4948,"order_number":"AZS-250226-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2899,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 23:58:13"} 
[2026-02-25 23:58:13] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":4948,"order_number":"AZS-250226-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2899,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-25 23:58:13"} 
[2026-02-25 23:58:13] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":4948,"order_number":"AZS-250226-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2899,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 23:58:13"} 
[2026-02-25 23:58:13] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":4948,"order_number":"AZS-250226-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2899,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-25 23:58:13"} 
[2026-02-25 23:58:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":4948,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":24324}],"validated_items":[{"id":24324,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:58:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":4948,"items_count":1} 
[2026-02-25 23:58:13] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24324,"menu_item_id":385,"quantity":1}]} 
[2026-02-25 23:58:13] local.INFO: PosOrderController::update - Item changes check {"order_id":4948,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-02-25 23:58:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":4948,"order_number":"AZS-250226-015"} 
[2026-02-25 23:58:13] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":4948,"order_number":"AZS-250226-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2899,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-25 23:58:13","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-25 23:58:13"} 
[2026-02-25 23:58:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":4948,"order_number":"AZS-250226-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-25 23:58:13"} 
[2026-02-25 23:58:13] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":4948,"order_number":"AZS-250226-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2899.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-25 23:58:13","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2899,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2899.00","database_verification_match":true,"timestamp":"2026-02-25 23:58:13"} 
[2026-02-25 23:58:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T11:58:17.993Z","date_to":"2026-02-25T23:58:17.993Z","per_page":"100"} 
[2026-02-25 23:58:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T11:58:17.978Z","date_to":"2026-02-25T23:58:17.978Z","per_page":"100"} 
[2026-02-25 23:58:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":87,"count":87,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-041","AZS-250226-041","AZS-250226-040","AZS-250226-039","AZS-250226-038","AZS-250226-037","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["pending","changed","paid","paid","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed"],"deleted_count":46,"paid_count":40,"unpaid_count":1,"unique_order_numbers":41} 
[2026-02-25 23:58:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":87,"count":87,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-041","AZS-250226-041","AZS-250226-040","AZS-250226-039","AZS-250226-038","AZS-250226-037","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["pending","changed","paid","paid","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed"],"deleted_count":46,"paid_count":40,"unpaid_count":1,"unique_order_numbers":41} 
[2026-02-25 23:58:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T11:58:17.978Z","date_to":"2026-02-25T23:58:17.978Z","per_page":"100"} 
[2026-02-25 23:58:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":87,"count":87,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-041","AZS-250226-041","AZS-250226-040","AZS-250226-039","AZS-250226-038","AZS-250226-037","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["pending","changed","paid","paid","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed"],"deleted_count":46,"paid_count":40,"unpaid_count":1,"unique_order_numbers":41} 
[2026-02-25 23:58:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T11:58:30.536Z","date_to":"2026-02-25T23:58:30.536Z","per_page":"100"} 
[2026-02-25 23:58:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":87,"count":87,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-041","AZS-250226-041","AZS-250226-040","AZS-250226-039","AZS-250226-038","AZS-250226-037","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["pending","changed","paid","paid","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed"],"deleted_count":46,"paid_count":40,"unpaid_count":1,"unique_order_numbers":41} 
[2026-02-25 23:58:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T11:58:30.559Z","date_to":"2026-02-25T23:58:30.559Z","per_page":"100"} 
[2026-02-25 23:58:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":87,"count":87,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-041","AZS-250226-041","AZS-250226-040","AZS-250226-039","AZS-250226-038","AZS-250226-037","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["pending","changed","paid","paid","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed"],"deleted_count":46,"paid_count":40,"unpaid_count":1,"unique_order_numbers":41} 
[2026-02-25 23:58:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T11:58:30.536Z","date_to":"2026-02-25T23:58:30.536Z","per_page":"100"} 
[2026-02-25 23:58:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":87,"count":87,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-041","AZS-250226-041","AZS-250226-040","AZS-250226-039","AZS-250226-038","AZS-250226-037","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["pending","changed","paid","paid","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed"],"deleted_count":46,"paid_count":40,"unpaid_count":1,"unique_order_numbers":41} 
[2026-02-25 23:59:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5008,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":24570},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null,"id":24571},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null,"id":24572}],"validated_items":[{"id":24570,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":24571,"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"id":24572,"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-25 23:59:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5008,"items_count":3} 
[2026-02-25 23:59:45] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24570,"menu_item_id":411,"quantity":1},{"id":24571,"menu_item_id":416,"quantity":2},{"id":24572,"menu_item_id":6,"quantity":1}]} 
[2026-02-25 23:59:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5008,"has_item_changes":true,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|1|","416|1|","6|1|"],"new_items_map_keys":["411|1|","416|2|","6|1|"]} 
[2026-02-25 23:59:45] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5008,"order_number":"AZS-250226-041"} 
[2026-02-25 23:59:45] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250226-041","replaced_order_id":5008} 
[2026-02-25 23:59:45] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5009,"items_count":3,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"},{"menu_item_id":6,"quantity":1,"price":"199.00"}]} 
[2026-02-25 23:59:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5009,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5009}} 
[2026-02-25 23:59:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5009,"item_index":0,"menu_item_id":411} 
[2026-02-25 23:59:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5009,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5009}} 
[2026-02-25 23:59:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5009,"item_index":1,"menu_item_id":416} 
[2026-02-25 23:59:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5009,"item_index":2,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5009}} 
[2026-02-25 23:59:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5009,"item_index":2,"menu_item_id":6} 
[2026-02-25 23:59:45] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5008,"new_order_id":5009,"order_number":"AZS-250226-041"} 
[2026-02-26 00:01:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T12:01:13.347Z","date_to":"2026-02-26T00:01:13.347Z","per_page":"100"} 
[2026-02-26 00:01:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":88,"count":88,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-041","AZS-250226-041","AZS-250226-041","AZS-250226-040","AZS-250226-039","AZS-250226-038","AZS-250226-037","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["pending","changed","changed","paid","paid","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed"],"deleted_count":47,"paid_count":40,"unpaid_count":1,"unique_order_numbers":41} 
[2026-02-26 00:01:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T12:01:13.362Z","date_to":"2026-02-26T00:01:13.362Z","per_page":"100"} 
[2026-02-26 00:01:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":88,"count":88,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-041","AZS-250226-041","AZS-250226-041","AZS-250226-040","AZS-250226-039","AZS-250226-038","AZS-250226-037","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["pending","changed","changed","paid","paid","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed"],"deleted_count":47,"paid_count":40,"unpaid_count":1,"unique_order_numbers":41} 
[2026-02-26 00:01:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T12:01:13.347Z","date_to":"2026-02-26T00:01:13.347Z","per_page":"100"} 
[2026-02-26 00:01:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":88,"count":88,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-041","AZS-250226-041","AZS-250226-041","AZS-250226-040","AZS-250226-039","AZS-250226-038","AZS-250226-037","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["pending","changed","changed","paid","paid","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed"],"deleted_count":47,"paid_count":40,"unpaid_count":1,"unique_order_numbers":41} 
[2026-02-26 00:07:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5009,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":24573},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":24574},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24575}],"validated_items":[{"id":24573,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":24574,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":24575,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-26 00:07:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5009,"items_count":3} 
[2026-02-26 00:07:34] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24573,"menu_item_id":411,"quantity":1},{"id":24574,"menu_item_id":416,"quantity":2},{"id":24575,"menu_item_id":6,"quantity":1}]} 
[2026-02-26 00:07:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5009,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|1|","416|2|","6|1|"],"new_items_map_keys":["411|1|","416|2|","6|1|"]} 
[2026-02-26 00:07:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5009,"order_number":"AZS-250226-041"} 
[2026-02-26 00:07:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5009,"order_number":"AZS-250226-041","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 00:07:34"} 
[2026-02-26 00:09:03] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5009,"order_number":"AZS-250226-041","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":940,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 00:09:03"} 
[2026-02-26 00:09:03] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5009,"order_number":"AZS-250226-041","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":940,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 00:09:03"} 
[2026-02-26 00:09:03] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5009,"order_number":"AZS-250226-041","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":940,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 00:09:03"} 
[2026-02-26 00:09:03] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5009,"order_number":"AZS-250226-041","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":940,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 00:09:03"} 
[2026-02-26 00:09:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5009,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":24573},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":24574},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24575}],"validated_items":[{"id":24573,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":24574,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":24575,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-26 00:09:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5009,"items_count":3} 
[2026-02-26 00:09:03] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24573,"menu_item_id":411,"quantity":1},{"id":24574,"menu_item_id":416,"quantity":2},{"id":24575,"menu_item_id":6,"quantity":1}]} 
[2026-02-26 00:09:03] local.INFO: PosOrderController::update - Item changes check {"order_id":5009,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|1|","416|2|","6|1|"],"new_items_map_keys":["411|1|","416|2|","6|1|"]} 
[2026-02-26 00:09:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5009,"order_number":"AZS-250226-041"} 
[2026-02-26 00:09:03] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5009,"order_number":"AZS-250226-041","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":940,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-26 00:09:03","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-26 00:09:03"} 
[2026-02-26 00:09:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5009,"order_number":"AZS-250226-041","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-26 00:09:03"} 
[2026-02-26 00:09:03] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5009,"order_number":"AZS-250226-041","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"940.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-26 00:09:03","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":940,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"940.00","database_verification_match":true,"timestamp":"2026-02-26 00:09:03"} 
[2026-02-26 00:09:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T12:09:12.797Z","date_to":"2026-02-26T00:09:12.797Z","per_page":"100"} 
[2026-02-26 00:09:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":88,"count":88,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-041","AZS-250226-041","AZS-250226-041","AZS-250226-040","AZS-250226-039","AZS-250226-038","AZS-250226-037","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed"],"deleted_count":47,"paid_count":41,"unpaid_count":0,"unique_order_numbers":41} 
[2026-02-26 00:09:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T12:09:12.769Z","date_to":"2026-02-26T00:09:12.769Z","per_page":"100"} 
[2026-02-26 00:09:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":88,"count":88,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-041","AZS-250226-041","AZS-250226-041","AZS-250226-040","AZS-250226-039","AZS-250226-038","AZS-250226-037","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed"],"deleted_count":47,"paid_count":41,"unpaid_count":0,"unique_order_numbers":41} 
[2026-02-26 00:09:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T12:09:12.769Z","date_to":"2026-02-26T00:09:12.769Z","per_page":"100"} 
[2026-02-26 00:09:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":88,"count":88,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250226-041","AZS-250226-041","AZS-250226-041","AZS-250226-040","AZS-250226-039","AZS-250226-038","AZS-250226-037","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed"],"deleted_count":47,"paid_count":41,"unpaid_count":0,"unique_order_numbers":41} 
[2026-02-26 00:09:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-25T12:09:12.797Z","date_to":"2026-02-26T00:09:12.797Z","per_page":"1000"} 
[2026-02-26 00:09:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":88,"count":88,"current_page":1,"last_page":1,"per_page":1000,"order_branch_ids":[1],"order_numbers":["AZS-250226-041","AZS-250226-041","AZS-250226-041","AZS-250226-040","AZS-250226-039","AZS-250226-038","AZS-250226-037","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-036","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-035","AZS-250226-034","AZS-250226-034","AZS-250226-033","AZS-250226-033","AZS-250226-033","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-027","AZS-250226-026","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-024","AZS-250226-023","AZS-250226-023","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-014","AZS-250226-013","AZS-250226-013","AZS-250226-013","AZS-250226-012","AZS-250226-012","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-007","AZS-250226-006","AZS-250226-006","AZS-250226-006","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-003","AZS-250226-003","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-002","AZS-250226-001","AZS-250226-001"],"order_statuses":["paid","changed","changed","paid","paid","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed"],"deleted_count":47,"paid_count":41,"unpaid_count":0,"unique_order_numbers":41} 
[2026-02-26 05:06:39] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"182.176.113.26"} 
[2026-02-26 05:49:17] local.INFO: Update request - hasFile(image): NO  
[2026-02-26 05:49:17] local.INFO: Update request - all files: []  
[2026-02-26 05:49:17] local.INFO: Update request - method: POST  
[2026-02-26 05:49:17] local.INFO: Update request - input keys: ["name","price","restaurant_id","branch_id","description","restaurant_category_id","is_available","recipes","id"]  
[2026-02-26 07:58:17] local.INFO: Login attempt {"email":"bmadmin@pos.com","ip":"182.176.113.26"} 
[2026-02-26 07:59:19] local.INFO: Orders query for branch user {"user_id":8,"user_role":"branch_manager","branch_id":2,"request_branch_id":"2","date_from":"2026-02-25T20:08:35.699Z","date_to":"2026-02-26T08:08:35.699Z","per_page":"100"} 
[2026-02-26 07:59:19] local.INFO: Orders query results {"user_id":8,"user_role":"branch_manager","user_branch_id":2,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[2],"order_numbers":["BISM2-260226-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-02-26 07:59:19] local.INFO: Orders query for branch user {"user_id":8,"user_role":"branch_manager","branch_id":2,"request_branch_id":"2","date_from":"2026-02-25T20:08:35.666Z","date_to":"2026-02-26T08:08:35.666Z","per_page":"100"} 
[2026-02-26 07:59:19] local.INFO: Orders query results {"user_id":8,"user_role":"branch_manager","user_branch_id":2,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[2],"order_numbers":["BISM2-260226-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-02-26 07:59:19] local.INFO: Orders query for branch user {"user_id":8,"user_role":"branch_manager","branch_id":2,"request_branch_id":"2","date_from":"2026-02-25T20:08:35.666Z","date_to":"2026-02-26T08:08:35.666Z","per_page":"100"} 
[2026-02-26 07:59:19] local.INFO: Orders query results {"user_id":8,"user_role":"branch_manager","user_branch_id":2,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[2],"order_numbers":["BISM2-260226-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-02-26 07:59:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5010,"user_id":8,"user_role":"branch_manager","request_items":"yes","request_items_raw":[{"menu_item_id":287,"quantity":1,"discount_percent":0,"notes":null,"id":24576},{"menu_item_id":317,"quantity":1,"discount_percent":0,"notes":null,"id":24577},{"menu_item_id":300,"quantity":1,"discount_percent":0,"notes":null,"id":24578},{"menu_item_id":213,"quantity":1,"discount_percent":0,"notes":null,"id":24579}],"validated_items":[{"id":24576,"menu_item_id":287,"quantity":1,"discount_percent":0,"notes":null},{"id":24577,"menu_item_id":317,"quantity":1,"discount_percent":0,"notes":null},{"id":24578,"menu_item_id":300,"quantity":1,"discount_percent":0,"notes":null},{"id":24579,"menu_item_id":213,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 07:59:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5010,"items_count":4} 
[2026-02-26 07:59:32] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24576,"menu_item_id":287,"quantity":1},{"id":24577,"menu_item_id":317,"quantity":1},{"id":24578,"menu_item_id":300,"quantity":1},{"id":24579,"menu_item_id":213,"quantity":1}]} 
[2026-02-26 07:59:32] local.INFO: PosOrderController::update - Item changes check {"order_id":5010,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["287|1|","317|1|","300|1|","213|1|"],"new_items_map_keys":["287|1|","317|1|","300|1|","213|1|"]} 
[2026-02-26 07:59:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5010,"order_number":"BISM2-260226-001"} 
[2026-02-26 07:59:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5010,"order_number":"BISM2-260226-001","user_id":8,"user_role":"branch_manager","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-26 07:59:32"} 
[2026-02-26 08:00:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5010,"user_id":8,"user_role":"branch_manager","request_items":"yes","request_items_raw":[{"menu_item_id":287,"quantity":1,"discount_percent":0,"notes":null,"id":24576},{"menu_item_id":317,"quantity":1,"discount_percent":0,"notes":null,"id":24577},{"menu_item_id":300,"quantity":1,"discount_percent":0,"notes":null,"id":24578},{"menu_item_id":213,"quantity":1,"discount_percent":0,"notes":null,"id":24579}],"validated_items":[{"id":24576,"menu_item_id":287,"quantity":1,"discount_percent":0,"notes":null},{"id":24577,"menu_item_id":317,"quantity":1,"discount_percent":0,"notes":null},{"id":24578,"menu_item_id":300,"quantity":1,"discount_percent":0,"notes":null},{"id":24579,"menu_item_id":213,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 08:00:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5010,"items_count":4} 
[2026-02-26 08:00:04] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24576,"menu_item_id":287,"quantity":1},{"id":24577,"menu_item_id":317,"quantity":1},{"id":24578,"menu_item_id":300,"quantity":1},{"id":24579,"menu_item_id":213,"quantity":1}]} 
[2026-02-26 08:00:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5010,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["287|1|","317|1|","300|1|","213|1|"],"new_items_map_keys":["287|1|","317|1|","300|1|","213|1|"]} 
[2026-02-26 08:00:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5010,"order_number":"BISM2-260226-001"} 
[2026-02-26 08:00:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5010,"order_number":"BISM2-260226-001","user_id":8,"user_role":"branch_manager","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-26 08:00:04"} 
[2026-02-26 08:00:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5010,"user_id":8,"user_role":"branch_manager","request_items":"yes","request_items_raw":[{"menu_item_id":287,"quantity":1,"discount_percent":0,"notes":null,"id":24576},{"menu_item_id":317,"quantity":1,"discount_percent":0,"notes":null,"id":24577},{"menu_item_id":300,"quantity":1,"discount_percent":0,"notes":null,"id":24578},{"menu_item_id":213,"quantity":1,"discount_percent":0,"notes":null,"id":24579}],"validated_items":[{"id":24576,"menu_item_id":287,"quantity":1,"discount_percent":0,"notes":null},{"id":24577,"menu_item_id":317,"quantity":1,"discount_percent":0,"notes":null},{"id":24578,"menu_item_id":300,"quantity":1,"discount_percent":0,"notes":null},{"id":24579,"menu_item_id":213,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 08:00:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5010,"items_count":4} 
[2026-02-26 08:00:05] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24576,"menu_item_id":287,"quantity":1},{"id":24577,"menu_item_id":317,"quantity":1},{"id":24578,"menu_item_id":300,"quantity":1},{"id":24579,"menu_item_id":213,"quantity":1}]} 
[2026-02-26 08:00:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5010,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["287|1|","317|1|","300|1|","213|1|"],"new_items_map_keys":["287|1|","317|1|","300|1|","213|1|"]} 
[2026-02-26 08:00:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5010,"order_number":"BISM2-260226-001"} 
[2026-02-26 08:00:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5010,"order_number":"BISM2-260226-001","user_id":8,"user_role":"branch_manager","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-26 08:00:05"} 
[2026-02-26 08:00:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5010,"user_id":8,"user_role":"branch_manager","request_items":"yes","request_items_raw":[{"menu_item_id":287,"quantity":1,"price":30,"discount_percent":0,"notes":null,"id":24576},{"menu_item_id":317,"quantity":1,"price":30,"discount_percent":0,"notes":null,"id":24577},{"menu_item_id":300,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24578},{"menu_item_id":213,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24579}],"validated_items":[{"id":24576,"menu_item_id":287,"quantity":1,"price":30,"discount_percent":0,"notes":null},{"id":24577,"menu_item_id":317,"quantity":1,"price":30,"discount_percent":0,"notes":null},{"id":24578,"menu_item_id":300,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":24579,"menu_item_id":213,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-02-26 08:00:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5010,"items_count":4} 
[2026-02-26 08:00:06] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24576,"menu_item_id":287,"quantity":1},{"id":24577,"menu_item_id":317,"quantity":1},{"id":24578,"menu_item_id":300,"quantity":1},{"id":24579,"menu_item_id":213,"quantity":1}]} 
[2026-02-26 08:00:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5010,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["287|1|","317|1|","300|1|","213|1|"],"new_items_map_keys":["287|1|","317|1|","300|1|","213|1|"]} 
[2026-02-26 08:00:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5010,"order_number":"BISM2-260226-001"} 
[2026-02-26 08:00:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5010,"order_number":"BISM2-260226-001","user_id":8,"user_role":"branch_manager","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests"],"timestamp":"2026-02-26 08:00:06"} 
[2026-02-26 08:00:29] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5010,"order_number":"BISM2-260226-001","user_id":8,"user_role":"branch_manager","detected_status":"paid","incoming_payment_amount":200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 08:00:29"} 
[2026-02-26 08:00:29] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5010,"order_number":"BISM2-260226-001","user_id":8,"user_role":"branch_manager","incoming_is_paid":true,"incoming_payment_amount":200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 08:00:29"} 
[2026-02-26 08:00:29] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5010,"order_number":"BISM2-260226-001","user_id":8,"user_role":"branch_manager","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 08:00:29"} 
[2026-02-26 08:00:29] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5010,"order_number":"BISM2-260226-001","user_id":8,"user_role":"branch_manager","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 08:00:29"} 
[2026-02-26 08:00:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5010,"user_id":8,"user_role":"branch_manager","request_items":"yes","request_items_raw":[{"menu_item_id":287,"quantity":1,"price":30,"discount_percent":0,"notes":null,"id":24576},{"menu_item_id":317,"quantity":1,"price":30,"discount_percent":0,"notes":null,"id":24577},{"menu_item_id":300,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24578},{"menu_item_id":213,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24579}],"validated_items":[{"id":24576,"menu_item_id":287,"quantity":1,"price":30,"discount_percent":0,"notes":null},{"id":24577,"menu_item_id":317,"quantity":1,"price":30,"discount_percent":0,"notes":null},{"id":24578,"menu_item_id":300,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":24579,"menu_item_id":213,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-02-26 08:00:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5010,"items_count":4} 
[2026-02-26 08:00:29] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24576,"menu_item_id":287,"quantity":1},{"id":24577,"menu_item_id":317,"quantity":1},{"id":24578,"menu_item_id":300,"quantity":1},{"id":24579,"menu_item_id":213,"quantity":1}]} 
[2026-02-26 08:00:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5010,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["287|1|","317|1|","300|1|","213|1|"],"new_items_map_keys":["287|1|","317|1|","300|1|","213|1|"]} 
[2026-02-26 08:00:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5010,"order_number":"BISM2-260226-001"} 
[2026-02-26 08:00:29] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5010,"order_number":"BISM2-260226-001","user_id":8,"user_role":"branch_manager","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-26 08:00:29","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-26 08:00:29"} 
[2026-02-26 08:00:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5010,"order_number":"BISM2-260226-001","user_id":8,"user_role":"branch_manager","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-26 08:00:29"} 
[2026-02-26 08:00:29] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5010,"order_number":"BISM2-260226-001","user_id":8,"user_role":"branch_manager","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-26 08:00:29","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"200.00","database_verification_match":true,"timestamp":"2026-02-26 08:00:29"} 
[2026-02-26 08:00:40] local.INFO: Orders query for branch user {"user_id":8,"user_role":"branch_manager","branch_id":2,"request_branch_id":"2","date_from":"2026-02-25T20:09:56.075Z","date_to":"2026-02-26T08:09:56.075Z","per_page":"100"} 
[2026-02-26 08:00:40] local.INFO: Orders query results {"user_id":8,"user_role":"branch_manager","user_branch_id":2,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[2],"order_numbers":["BISM2-260226-001"],"order_statuses":["paid"],"deleted_count":0,"paid_count":1,"unpaid_count":0,"unique_order_numbers":1} 
[2026-02-26 08:00:40] local.INFO: Orders query for branch user {"user_id":8,"user_role":"branch_manager","branch_id":2,"request_branch_id":"2","date_from":"2026-02-25T20:09:56.108Z","date_to":"2026-02-26T08:09:56.108Z","per_page":"100"} 
[2026-02-26 08:00:40] local.INFO: Orders query results {"user_id":8,"user_role":"branch_manager","user_branch_id":2,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[2],"order_numbers":["BISM2-260226-001"],"order_statuses":["paid"],"deleted_count":0,"paid_count":1,"unpaid_count":0,"unique_order_numbers":1} 
[2026-02-26 08:00:40] local.INFO: Orders query for branch user {"user_id":8,"user_role":"branch_manager","branch_id":2,"request_branch_id":"2","date_from":"2026-02-25T20:09:56.075Z","date_to":"2026-02-26T08:09:56.075Z","per_page":"100"} 
[2026-02-26 08:00:40] local.INFO: Orders query results {"user_id":8,"user_role":"branch_manager","user_branch_id":2,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[2],"order_numbers":["BISM2-260226-001"],"order_statuses":["paid"],"deleted_count":0,"paid_count":1,"unpaid_count":0,"unique_order_numbers":1} 
[2026-02-26 09:00:56] local.INFO: Update request - hasFile(image): NO  
[2026-02-26 09:00:56] local.INFO: Update request - all files: []  
[2026-02-26 09:00:56] local.INFO: Update request - method: POST  
[2026-02-26 09:00:56] local.INFO: Update request - input keys: ["name","price","restaurant_id","branch_id","description","restaurant_category_id","is_available","recipes","id"]  
[2026-02-26 12:13:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-26T00:13:16.401Z","date_to":"2026-02-26T12:13:16.401Z","per_page":"100"} 
[2026-02-26 12:13:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-02-26 12:13:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-26T00:13:16.401Z","date_to":"2026-02-26T12:13:16.401Z","per_page":"100"} 
[2026-02-26 12:13:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-02-26 13:11:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5017,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":24593},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":6,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24593,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":6,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 13:11:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5017,"items_count":6} 
[2026-02-26 13:11:38] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24593,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":52,"quantity":6},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-26 13:11:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5017,"has_item_changes":true,"old_items_count":1,"new_items_count":6,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","106|1|","52|6|","61|1|","56|1|","5|1|"]} 
[2026-02-26 13:11:38] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5017,"order_number":"AZS-260226-007"} 
[2026-02-26 13:11:38] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-007","replaced_order_id":5017} 
[2026-02-26 13:11:38] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5018,"items_count":6,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":52,"quantity":6,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-26 13:11:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5018,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5018}} 
[2026-02-26 13:11:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5018,"item_index":0,"menu_item_id":417} 
[2026-02-26 13:11:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5018,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5018}} 
[2026-02-26 13:11:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5018,"item_index":1,"menu_item_id":106} 
[2026-02-26 13:11:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5018,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":6,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":420.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5018}} 
[2026-02-26 13:11:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5018,"item_index":2,"menu_item_id":52} 
[2026-02-26 13:11:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5018,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5018}} 
[2026-02-26 13:11:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5018,"item_index":3,"menu_item_id":61} 
[2026-02-26 13:11:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5018,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5018}} 
[2026-02-26 13:11:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5018,"item_index":4,"menu_item_id":56} 
[2026-02-26 13:11:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5018,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5018}} 
[2026-02-26 13:11:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5018,"item_index":5,"menu_item_id":5} 
[2026-02-26 13:11:38] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5017,"new_order_id":5018,"order_number":"AZS-260226-007"} 
[2026-02-26 13:12:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5011,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24580}],"validated_items":[{"id":24580,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-02-26 13:12:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5011,"items_count":1} 
[2026-02-26 13:12:13] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24580,"menu_item_id":417,"quantity":1}]} 
[2026-02-26 13:12:13] local.INFO: PosOrderController::update - Item changes check {"order_id":5011,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-02-26 13:12:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5011,"order_number":"AZS-260226-001"} 
[2026-02-26 13:12:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5011,"order_number":"AZS-260226-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 13:12:13"} 
[2026-02-26 13:15:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5019,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":24600},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":24601},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24602},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24603},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24600,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":24601,"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"id":24602,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":24603,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 13:15:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5019,"items_count":5} 
[2026-02-26 13:15:32] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24600,"menu_item_id":98,"quantity":1},{"id":24601,"menu_item_id":52,"quantity":3},{"id":24602,"menu_item_id":61,"quantity":1},{"id":24603,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-26 13:15:32] local.INFO: PosOrderController::update - Item changes check {"order_id":5019,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["98|1|","52|3|","61|1|","56|1|"],"new_items_map_keys":["98|1|","52|3|","61|1|","56|1|","5|1|"]} 
[2026-02-26 13:15:32] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5019,"order_number":"AZS-260226-008"} 
[2026-02-26 13:15:32] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-008","replaced_order_id":5019} 
[2026-02-26 13:15:32] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5020,"items_count":5,"items":[{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":52,"quantity":3,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-26 13:15:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5020,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5020}} 
[2026-02-26 13:15:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5020,"item_index":0,"menu_item_id":98} 
[2026-02-26 13:15:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5020,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5020}} 
[2026-02-26 13:15:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5020,"item_index":1,"menu_item_id":52} 
[2026-02-26 13:15:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5020,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5020}} 
[2026-02-26 13:15:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5020,"item_index":2,"menu_item_id":61} 
[2026-02-26 13:15:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5020,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5020}} 
[2026-02-26 13:15:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5020,"item_index":3,"menu_item_id":56} 
[2026-02-26 13:15:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5020,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5020}} 
[2026-02-26 13:15:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5020,"item_index":4,"menu_item_id":5} 
[2026-02-26 13:15:32] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5019,"new_order_id":5020,"order_number":"AZS-260226-008"} 
[2026-02-26 13:17:34] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5011,"order_number":"AZS-260226-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 13:17:34"} 
[2026-02-26 13:17:34] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5011,"order_number":"AZS-260226-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 13:17:34"} 
[2026-02-26 13:17:34] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5011,"order_number":"AZS-260226-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 13:17:34"} 
[2026-02-26 13:17:34] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5011,"order_number":"AZS-260226-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 13:17:34"} 
[2026-02-26 13:17:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5011,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24580}],"validated_items":[{"id":24580,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-02-26 13:17:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5011,"items_count":1} 
[2026-02-26 13:17:34] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24580,"menu_item_id":417,"quantity":1}]} 
[2026-02-26 13:17:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5011,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-02-26 13:17:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5011,"order_number":"AZS-260226-001"} 
[2026-02-26 13:17:34] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5011,"order_number":"AZS-260226-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-26 13:17:34","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-26 13:17:34"} 
[2026-02-26 13:17:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5011,"order_number":"AZS-260226-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-26 13:17:34"} 
[2026-02-26 13:17:34] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5011,"order_number":"AZS-260226-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-26 13:17:34","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-02-26 13:17:34"} 
[2026-02-26 13:17:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5015,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24591}],"validated_items":[{"id":24591,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-02-26 13:17:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5015,"items_count":1} 
[2026-02-26 13:17:57] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24591,"menu_item_id":417,"quantity":1}]} 
[2026-02-26 13:17:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5015,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-02-26 13:17:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5015,"order_number":"AZS-260226-005"} 
[2026-02-26 13:17:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5015,"order_number":"AZS-260226-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 13:17:57"} 
[2026-02-26 13:18:47] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5015,"order_number":"AZS-260226-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 13:18:47"} 
[2026-02-26 13:18:47] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5015,"order_number":"AZS-260226-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 13:18:47"} 
[2026-02-26 13:18:47] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5015,"order_number":"AZS-260226-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 13:18:47"} 
[2026-02-26 13:18:47] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5015,"order_number":"AZS-260226-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 13:18:47"} 
[2026-02-26 13:18:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5015,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24591}],"validated_items":[{"id":24591,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-02-26 13:18:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5015,"items_count":1} 
[2026-02-26 13:18:47] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24591,"menu_item_id":417,"quantity":1}]} 
[2026-02-26 13:18:47] local.INFO: PosOrderController::update - Item changes check {"order_id":5015,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-02-26 13:18:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5015,"order_number":"AZS-260226-005"} 
[2026-02-26 13:18:47] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5015,"order_number":"AZS-260226-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-26 13:18:47","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-26 13:18:47"} 
[2026-02-26 13:18:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5015,"order_number":"AZS-260226-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-26 13:18:47"} 
[2026-02-26 13:18:47] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5015,"order_number":"AZS-260226-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-26 13:18:47","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-02-26 13:18:47"} 
[2026-02-26 13:22:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5013,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":24584},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":24584,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-26 13:22:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5013,"items_count":2} 
[2026-02-26 13:22:08] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24584,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-02-26 13:22:08] local.INFO: PosOrderController::update - Item changes check {"order_id":5013,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","6|2|"]} 
[2026-02-26 13:22:08] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5013,"order_number":"AZS-260226-003"} 
[2026-02-26 13:22:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-003","replaced_order_id":5013} 
[2026-02-26 13:22:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5021,"items_count":2,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-02-26 13:22:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5021,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5021}} 
[2026-02-26 13:22:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5021,"item_index":0,"menu_item_id":417} 
[2026-02-26 13:22:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5021,"item_index":1,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5021}} 
[2026-02-26 13:22:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5021,"item_index":1,"menu_item_id":6} 
[2026-02-26 13:22:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5013,"new_order_id":5021,"order_number":"AZS-260226-003"} 
[2026-02-26 13:33:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5016,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":24592}],"validated_items":[{"id":24592,"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null}]} 
[2026-02-26 13:33:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5016,"items_count":1} 
[2026-02-26 13:33:41] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24592,"menu_item_id":417,"quantity":2}]} 
[2026-02-26 13:33:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5016,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|2|"],"new_items_map_keys":["417|2|"]} 
[2026-02-26 13:33:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5016,"order_number":"AZS-260226-006"} 
[2026-02-26 13:33:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5016,"order_number":"AZS-260226-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 13:33:41"} 
[2026-02-26 13:39:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5014,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24585},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":24586},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24587},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24588},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24589},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24590}],"validated_items":[{"id":24585,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24586,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":24587,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24588,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24589,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24590,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-26 13:39:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5014,"items_count":6} 
[2026-02-26 13:39:05] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24585,"menu_item_id":417,"quantity":1},{"id":24586,"menu_item_id":102,"quantity":1},{"id":24587,"menu_item_id":396,"quantity":2},{"id":24588,"menu_item_id":61,"quantity":1},{"id":24589,"menu_item_id":56,"quantity":1},{"id":24590,"menu_item_id":5,"quantity":1}]} 
[2026-02-26 13:39:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5014,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["417|1|","102|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["417|1|","102|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-02-26 13:39:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5014,"order_number":"AZS-260226-004"} 
[2026-02-26 13:39:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5014,"order_number":"AZS-260226-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 13:39:05"} 
[2026-02-26 13:40:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":5014,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24585},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":24586},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24587},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24588},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24589}],"validated_items":[{"id":24585,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24586,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":24587,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24588,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24589,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-26 13:40:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5014,"items_count":5} 
[2026-02-26 13:40:30] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[24590],"items":[{"id":24585,"menu_item_id":417,"quantity":1},{"id":24586,"menu_item_id":102,"quantity":1},{"id":24587,"menu_item_id":396,"quantity":2},{"id":24588,"menu_item_id":61,"quantity":1},{"id":24589,"menu_item_id":56,"quantity":1}]} 
[2026-02-26 13:40:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5014,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["417|1|","102|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["417|1|","102|1|","396|2|","61|1|","56|1|"]} 
[2026-02-26 13:40:30] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5014,"order_number":"AZS-260226-004"} 
[2026-02-26 13:40:30] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-004","replaced_order_id":5014} 
[2026-02-26 13:40:30] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5022,"items_count":5,"items":[{"menu_item_id":417,"quantity":1,"price":499.0},{"menu_item_id":102,"quantity":1,"price":1399.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0}]} 
[2026-02-26 13:40:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5022,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":499.0,"discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5022}} 
[2026-02-26 13:40:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5022,"item_index":0,"menu_item_id":417} 
[2026-02-26 13:40:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5022,"item_index":1,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":1399.0,"discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5022}} 
[2026-02-26 13:40:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5022,"item_index":1,"menu_item_id":102} 
[2026-02-26 13:40:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5022,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5022}} 
[2026-02-26 13:40:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5022,"item_index":2,"menu_item_id":396} 
[2026-02-26 13:40:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5022,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5022}} 
[2026-02-26 13:40:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5022,"item_index":3,"menu_item_id":61} 
[2026-02-26 13:40:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5022,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5022}} 
[2026-02-26 13:40:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5022,"item_index":4,"menu_item_id":56} 
[2026-02-26 13:40:30] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5014,"new_order_id":5022,"order_number":"AZS-260226-004"} 
[2026-02-26 13:40:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5022,"item_index":0,"item_id":24585} 
[2026-02-26 13:40:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5022,"item_index":1,"item_id":24586} 
[2026-02-26 13:40:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5022,"item_index":2,"item_id":24587} 
[2026-02-26 13:40:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5022,"item_index":3,"item_id":24588} 
[2026-02-26 13:40:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5022,"item_index":4,"item_id":24589} 
[2026-02-26 13:40:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5022,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24585},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":24586},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24587},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24588},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24589}],"validated_items":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-26 13:40:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5022,"items_count":5} 
[2026-02-26 13:40:36] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[24611,24612,24613,24614,24615],"items":[{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-02-26 13:40:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5022,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|1|","102|1|","396|2|","61|1|","56|1|"],"new_items_map_keys":["417|1|","102|1|","396|2|","61|1|","56|1|"]} 
[2026-02-26 13:40:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5022,"order_number":"AZS-260226-004"} 
[2026-02-26 13:40:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5022,"order_number":"AZS-260226-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 13:40:36"} 
[2026-02-26 13:40:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5012,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"discount_percent":0,"notes":null,"id":24581},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":24582},{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":24583},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":23,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24581,"menu_item_id":100,"quantity":1,"discount_percent":0,"notes":null},{"id":24582,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":24583,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":23,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 13:40:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5012,"items_count":5} 
[2026-02-26 13:40:55] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24581,"menu_item_id":100,"quantity":1},{"id":24582,"menu_item_id":396,"quantity":2},{"id":24583,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":6,"quantity":1},{"id":null,"menu_item_id":23,"quantity":1}]} 
[2026-02-26 13:40:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5012,"has_item_changes":true,"old_items_count":3,"new_items_count":5,"old_items_map_keys":["100|1|","396|2|","417|1|"],"new_items_map_keys":["100|1|","396|2|","417|1|","6|1|","23|1|"]} 
[2026-02-26 13:40:55] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5012,"order_number":"AZS-260226-002"} 
[2026-02-26 13:40:55] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-002","replaced_order_id":5012} 
[2026-02-26 13:40:55] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5023,"items_count":5,"items":[{"menu_item_id":100,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":6,"quantity":1,"price":"199.00"},{"menu_item_id":23,"quantity":1,"price":"249.00"}]} 
[2026-02-26 13:40:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5023,"item_index":0,"item_data":{"menu_item_id":100,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Half","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5023}} 
[2026-02-26 13:40:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5023,"item_index":0,"menu_item_id":100} 
[2026-02-26 13:40:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5023,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5023}} 
[2026-02-26 13:40:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5023,"item_index":1,"menu_item_id":396} 
[2026-02-26 13:40:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5023,"item_index":2,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5023}} 
[2026-02-26 13:40:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5023,"item_index":2,"menu_item_id":417} 
[2026-02-26 13:40:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5023,"item_index":3,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5023}} 
[2026-02-26 13:40:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5023,"item_index":3,"menu_item_id":6} 
[2026-02-26 13:40:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5023,"item_index":4,"item_data":{"menu_item_id":23,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Vanilla","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5023}} 
[2026-02-26 13:40:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5023,"item_index":4,"menu_item_id":23} 
[2026-02-26 13:40:55] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5012,"new_order_id":5023,"order_number":"AZS-260226-002"} 
[2026-02-26 13:42:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5024,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":11,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":24621}],"validated_items":[{"id":24621,"menu_item_id":11,"quantity":2,"price":159,"discount_percent":0,"notes":null}]} 
[2026-02-26 13:42:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5024,"items_count":1} 
[2026-02-26 13:42:51] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24621,"menu_item_id":11,"quantity":2}]} 
[2026-02-26 13:42:51] local.INFO: PosOrderController::update - Item changes check {"order_id":5024,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["11|2|"],"new_items_map_keys":["11|2|"]} 
[2026-02-26 13:42:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5024,"order_number":"AZS-260226-009"} 
[2026-02-26 13:42:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5024,"order_number":"AZS-260226-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-02-26 13:42:51"} 
[2026-02-26 13:44:43] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5024,"order_number":"AZS-260226-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":320,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 13:44:43"} 
[2026-02-26 13:44:43] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5024,"order_number":"AZS-260226-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":320,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 13:44:43"} 
[2026-02-26 13:44:43] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5024,"order_number":"AZS-260226-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":320,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 13:44:43"} 
[2026-02-26 13:44:43] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5024,"order_number":"AZS-260226-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":320,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 13:44:43"} 
[2026-02-26 13:44:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5024,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":11,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":24621}],"validated_items":[{"id":24621,"menu_item_id":11,"quantity":2,"price":159,"discount_percent":0,"notes":null}]} 
[2026-02-26 13:44:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5024,"items_count":1} 
[2026-02-26 13:44:43] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24621,"menu_item_id":11,"quantity":2}]} 
[2026-02-26 13:44:43] local.INFO: PosOrderController::update - Item changes check {"order_id":5024,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["11|2|"],"new_items_map_keys":["11|2|"]} 
[2026-02-26 13:44:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5024,"order_number":"AZS-260226-009"} 
[2026-02-26 13:44:43] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5024,"order_number":"AZS-260226-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":320,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-26 13:44:43","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-26 13:44:43"} 
[2026-02-26 13:44:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5024,"order_number":"AZS-260226-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-26 13:44:43"} 
[2026-02-26 13:44:43] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5024,"order_number":"AZS-260226-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"320.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-26 13:44:43","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":320,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"320.00","database_verification_match":true,"timestamp":"2026-02-26 13:44:43"} 
[2026-02-26 13:45:15] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5022,"order_number":"AZS-260226-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2619,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 13:45:15"} 
[2026-02-26 13:45:15] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5022,"order_number":"AZS-260226-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2619,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 13:45:15"} 
[2026-02-26 13:45:15] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5022,"order_number":"AZS-260226-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2619,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 13:45:15"} 
[2026-02-26 13:45:15] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5022,"order_number":"AZS-260226-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2619,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 13:45:15"} 
[2026-02-26 13:45:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5022,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24611},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":24612},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24613},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24614},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24615}],"validated_items":[{"id":24611,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24612,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":24613,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24614,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24615,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-26 13:45:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5022,"items_count":5} 
[2026-02-26 13:45:15] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24611,"menu_item_id":417,"quantity":1},{"id":24612,"menu_item_id":102,"quantity":1},{"id":24613,"menu_item_id":396,"quantity":2},{"id":24614,"menu_item_id":61,"quantity":1},{"id":24615,"menu_item_id":56,"quantity":1}]} 
[2026-02-26 13:45:15] local.INFO: PosOrderController::update - Item changes check {"order_id":5022,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|1|","102|1|","396|2|","61|1|","56|1|"],"new_items_map_keys":["417|1|","102|1|","396|2|","61|1|","56|1|"]} 
[2026-02-26 13:45:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5022,"order_number":"AZS-260226-004"} 
[2026-02-26 13:45:15] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5022,"order_number":"AZS-260226-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2619,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-26 13:45:15","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-26 13:45:15"} 
[2026-02-26 13:45:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5022,"order_number":"AZS-260226-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-26 13:45:15"} 
[2026-02-26 13:45:15] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5022,"order_number":"AZS-260226-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2619.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-26 13:45:15","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2619,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2619.00","database_verification_match":true,"timestamp":"2026-02-26 13:45:15"} 
[2026-02-26 13:47:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5025,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":24622},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":24623},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24624},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24625}],"validated_items":[{"id":24622,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":24623,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":24624,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":24625,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 13:47:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5025,"items_count":4} 
[2026-02-26 13:47:45] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24622,"menu_item_id":98,"quantity":1},{"id":24623,"menu_item_id":396,"quantity":3},{"id":24624,"menu_item_id":61,"quantity":1},{"id":24625,"menu_item_id":56,"quantity":1}]} 
[2026-02-26 13:47:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5025,"has_item_changes":true,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["98|1|","396|1|","61|1|","56|1|"],"new_items_map_keys":["98|1|","396|3|","61|1|","56|1|"]} 
[2026-02-26 13:47:45] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5025,"order_number":"AZS-260226-010"} 
[2026-02-26 13:47:45] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-010","replaced_order_id":5025} 
[2026-02-26 13:47:45] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5026,"items_count":4,"items":[{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"}]} 
[2026-02-26 13:47:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5026,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5026}} 
[2026-02-26 13:47:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5026,"item_index":0,"menu_item_id":98} 
[2026-02-26 13:47:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5026,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5026}} 
[2026-02-26 13:47:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5026,"item_index":1,"menu_item_id":396} 
[2026-02-26 13:47:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5026,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5026}} 
[2026-02-26 13:47:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5026,"item_index":2,"menu_item_id":61} 
[2026-02-26 13:47:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5026,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5026}} 
[2026-02-26 13:47:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5026,"item_index":3,"menu_item_id":56} 
[2026-02-26 13:47:45] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5025,"new_order_id":5026,"order_number":"AZS-260226-010"} 
[2026-02-26 13:49:38] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5016,"order_number":"AZS-260226-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 13:49:38"} 
[2026-02-26 13:49:38] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5016,"order_number":"AZS-260226-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 13:49:38"} 
[2026-02-26 13:49:38] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5016,"order_number":"AZS-260226-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 13:49:38"} 
[2026-02-26 13:49:38] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5016,"order_number":"AZS-260226-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 13:49:38"} 
[2026-02-26 13:49:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5016,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":24592}],"validated_items":[{"id":24592,"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null}]} 
[2026-02-26 13:49:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5016,"items_count":1} 
[2026-02-26 13:49:38] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24592,"menu_item_id":417,"quantity":2}]} 
[2026-02-26 13:49:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5016,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|2|"],"new_items_map_keys":["417|2|"]} 
[2026-02-26 13:49:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5016,"order_number":"AZS-260226-006"} 
[2026-02-26 13:49:38] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5016,"order_number":"AZS-260226-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-26 13:49:38","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-26 13:49:38"} 
[2026-02-26 13:49:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5016,"order_number":"AZS-260226-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-26 13:49:38"} 
[2026-02-26 13:49:38] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5016,"order_number":"AZS-260226-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-26 13:49:38","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-02-26 13:49:38"} 
[2026-02-26 14:01:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5020,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24604},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":24605},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24606},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24607},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24608}],"validated_items":[{"id":24604,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24605,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":24606,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24607,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24608,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-26 14:01:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5020,"items_count":5} 
[2026-02-26 14:01:22] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24604,"menu_item_id":98,"quantity":1},{"id":24605,"menu_item_id":52,"quantity":3},{"id":24606,"menu_item_id":61,"quantity":1},{"id":24607,"menu_item_id":56,"quantity":1},{"id":24608,"menu_item_id":5,"quantity":1}]} 
[2026-02-26 14:01:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5020,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["98|1|","52|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["98|1|","52|3|","61|1|","56|1|","5|1|"]} 
[2026-02-26 14:01:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5020,"order_number":"AZS-260226-008"} 
[2026-02-26 14:01:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5020,"order_number":"AZS-260226-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 14:01:22"} 
[2026-02-26 14:01:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5023,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24616},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24617},{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24618},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24619},{"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":24620}],"validated_items":[{"id":24616,"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":24617,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24618,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24619,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24620,"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-02-26 14:01:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5023,"items_count":5} 
[2026-02-26 14:01:34] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24616,"menu_item_id":100,"quantity":1},{"id":24617,"menu_item_id":396,"quantity":2},{"id":24618,"menu_item_id":417,"quantity":1},{"id":24619,"menu_item_id":6,"quantity":1},{"id":24620,"menu_item_id":23,"quantity":1}]} 
[2026-02-26 14:01:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5023,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["100|1|","396|2|","417|1|","6|1|","23|1|"],"new_items_map_keys":["100|1|","396|2|","417|1|","6|1|","23|1|"]} 
[2026-02-26 14:01:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5023,"order_number":"AZS-260226-002"} 
[2026-02-26 14:01:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5023,"order_number":"AZS-260226-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 14:01:34"} 
[2026-02-26 14:06:10] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5023,"order_number":"AZS-260226-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2566,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 14:06:10"} 
[2026-02-26 14:06:10] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5023,"order_number":"AZS-260226-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2566,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 14:06:10"} 
[2026-02-26 14:06:10] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5023,"order_number":"AZS-260226-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2566,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 14:06:10"} 
[2026-02-26 14:06:10] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5023,"order_number":"AZS-260226-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2566,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 14:06:10"} 
[2026-02-26 14:06:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5023,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24616},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24617},{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24618},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24619},{"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":24620}],"validated_items":[{"id":24616,"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":24617,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24618,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24619,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24620,"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-02-26 14:06:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5023,"items_count":5} 
[2026-02-26 14:06:10] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24616,"menu_item_id":100,"quantity":1},{"id":24617,"menu_item_id":396,"quantity":2},{"id":24618,"menu_item_id":417,"quantity":1},{"id":24619,"menu_item_id":6,"quantity":1},{"id":24620,"menu_item_id":23,"quantity":1}]} 
[2026-02-26 14:06:10] local.INFO: PosOrderController::update - Item changes check {"order_id":5023,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["100|1|","396|2|","417|1|","6|1|","23|1|"],"new_items_map_keys":["100|1|","396|2|","417|1|","6|1|","23|1|"]} 
[2026-02-26 14:06:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5023,"order_number":"AZS-260226-002"} 
[2026-02-26 14:06:10] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5023,"order_number":"AZS-260226-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2566,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-26 14:06:10","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-26 14:06:10"} 
[2026-02-26 14:06:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5023,"order_number":"AZS-260226-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-26 14:06:10"} 
[2026-02-26 14:06:10] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5023,"order_number":"AZS-260226-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2566.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-26 14:06:10","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2566,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2566.00","database_verification_match":true,"timestamp":"2026-02-26 14:06:10"} 
[2026-02-26 14:06:50] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5020,"order_number":"AZS-260226-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2076,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 14:06:50"} 
[2026-02-26 14:06:50] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5020,"order_number":"AZS-260226-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2076,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 14:06:50"} 
[2026-02-26 14:06:50] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5020,"order_number":"AZS-260226-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2076,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 14:06:50"} 
[2026-02-26 14:06:50] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5020,"order_number":"AZS-260226-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2076,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 14:06:50"} 
[2026-02-26 14:06:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5020,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24604},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":24605},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24606},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24607},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24608}],"validated_items":[{"id":24604,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24605,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":24606,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24607,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24608,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-26 14:06:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5020,"items_count":5} 
[2026-02-26 14:06:50] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24604,"menu_item_id":98,"quantity":1},{"id":24605,"menu_item_id":52,"quantity":3},{"id":24606,"menu_item_id":61,"quantity":1},{"id":24607,"menu_item_id":56,"quantity":1},{"id":24608,"menu_item_id":5,"quantity":1}]} 
[2026-02-26 14:06:50] local.INFO: PosOrderController::update - Item changes check {"order_id":5020,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["98|1|","52|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["98|1|","52|3|","61|1|","56|1|","5|1|"]} 
[2026-02-26 14:06:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5020,"order_number":"AZS-260226-008"} 
[2026-02-26 14:06:50] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5020,"order_number":"AZS-260226-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2076,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-26 14:06:50","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-26 14:06:50"} 
[2026-02-26 14:06:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5020,"order_number":"AZS-260226-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-26 14:06:50"} 
[2026-02-26 14:06:50] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5020,"order_number":"AZS-260226-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2076.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-26 14:06:50","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2076,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2076.00","database_verification_match":true,"timestamp":"2026-02-26 14:06:50"} 
[2026-02-26 14:18:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5021,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24609},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24610}],"validated_items":[{"id":24609,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24610,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-26 14:18:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5021,"items_count":2} 
[2026-02-26 14:18:39] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24609,"menu_item_id":417,"quantity":1},{"id":24610,"menu_item_id":6,"quantity":2}]} 
[2026-02-26 14:18:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5021,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["417|1|","6|2|"],"new_items_map_keys":["417|1|","6|2|"]} 
[2026-02-26 14:18:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5021,"order_number":"AZS-260226-003"} 
[2026-02-26 14:18:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5021,"order_number":"AZS-260226-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 14:18:39"} 
[2026-02-26 14:21:56] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5021,"order_number":"AZS-260226-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 14:21:56"} 
[2026-02-26 14:21:56] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5021,"order_number":"AZS-260226-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 14:21:56"} 
[2026-02-26 14:21:56] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5021,"order_number":"AZS-260226-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 14:21:56"} 
[2026-02-26 14:21:56] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5021,"order_number":"AZS-260226-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 14:21:56"} 
[2026-02-26 14:21:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5021,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24609},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24610}],"validated_items":[{"id":24609,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24610,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-26 14:21:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5021,"items_count":2} 
[2026-02-26 14:21:56] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24609,"menu_item_id":417,"quantity":1},{"id":24610,"menu_item_id":6,"quantity":2}]} 
[2026-02-26 14:21:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5021,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["417|1|","6|2|"],"new_items_map_keys":["417|1|","6|2|"]} 
[2026-02-26 14:21:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5021,"order_number":"AZS-260226-003"} 
[2026-02-26 14:21:56] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5021,"order_number":"AZS-260226-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-26 14:21:56","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-26 14:21:56"} 
[2026-02-26 14:21:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5021,"order_number":"AZS-260226-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-26 14:21:56"} 
[2026-02-26 14:21:56] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5021,"order_number":"AZS-260226-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-26 14:21:56","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-02-26 14:21:56"} 
[2026-02-26 14:22:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5027,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":24630},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":24631},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":24632},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24633},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24630,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":24631,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":24632,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":24633,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 14:22:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5027,"items_count":5} 
[2026-02-26 14:22:10] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24630,"menu_item_id":96,"quantity":1},{"id":24631,"menu_item_id":396,"quantity":2},{"id":24632,"menu_item_id":50,"quantity":1},{"id":24633,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-26 14:22:10] local.INFO: PosOrderController::update - Item changes check {"order_id":5027,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["96|1|","396|2|","50|1|","61|1|"],"new_items_map_keys":["96|1|","396|2|","50|1|","61|1|","3|1|"]} 
[2026-02-26 14:22:10] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5027,"order_number":"AZS-260226-011"} 
[2026-02-26 14:22:10] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-011","replaced_order_id":5027} 
[2026-02-26 14:22:10] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5029,"items_count":5,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-26 14:22:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5029,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5029}} 
[2026-02-26 14:22:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5029,"item_index":0,"menu_item_id":96} 
[2026-02-26 14:22:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5029,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5029}} 
[2026-02-26 14:22:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5029,"item_index":1,"menu_item_id":396} 
[2026-02-26 14:22:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5029,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5029}} 
[2026-02-26 14:22:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5029,"item_index":2,"menu_item_id":50} 
[2026-02-26 14:22:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5029,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5029}} 
[2026-02-26 14:22:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5029,"item_index":3,"menu_item_id":61} 
[2026-02-26 14:22:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5029,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5029}} 
[2026-02-26 14:22:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5029,"item_index":4,"menu_item_id":3} 
[2026-02-26 14:22:10] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5027,"new_order_id":5029,"order_number":"AZS-260226-011"} 
[2026-02-26 14:23:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5018,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":24594},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":24595},{"menu_item_id":52,"quantity":6,"discount_percent":0,"notes":null,"id":24596},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24597},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24598},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24599},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24594,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":24595,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":24596,"menu_item_id":52,"quantity":6,"discount_percent":0,"notes":null},{"id":24597,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":24598,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":24599,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 14:23:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5018,"items_count":7} 
[2026-02-26 14:23:46] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24594,"menu_item_id":417,"quantity":1},{"id":24595,"menu_item_id":106,"quantity":1},{"id":24596,"menu_item_id":52,"quantity":6},{"id":24597,"menu_item_id":61,"quantity":1},{"id":24598,"menu_item_id":56,"quantity":1},{"id":24599,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-26 14:23:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5018,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["417|1|","106|1|","52|6|","61|1|","56|1|","5|1|"],"new_items_map_keys":["417|1|","106|1|","52|6|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-02-26 14:23:46] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5018,"order_number":"AZS-260226-007"} 
[2026-02-26 14:23:46] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-007","replaced_order_id":5018} 
[2026-02-26 14:23:46] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5030,"items_count":7,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":52,"quantity":6,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-26 14:23:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5030,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5030}} 
[2026-02-26 14:23:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5030,"item_index":0,"menu_item_id":417} 
[2026-02-26 14:23:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5030,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5030}} 
[2026-02-26 14:23:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5030,"item_index":1,"menu_item_id":106} 
[2026-02-26 14:23:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5030,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":6,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":420.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5030}} 
[2026-02-26 14:23:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5030,"item_index":2,"menu_item_id":52} 
[2026-02-26 14:23:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5030,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5030}} 
[2026-02-26 14:23:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5030,"item_index":3,"menu_item_id":61} 
[2026-02-26 14:23:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5030,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5030}} 
[2026-02-26 14:23:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5030,"item_index":4,"menu_item_id":56} 
[2026-02-26 14:23:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5030,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5030}} 
[2026-02-26 14:23:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5030,"item_index":5,"menu_item_id":5} 
[2026-02-26 14:23:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5030,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5030}} 
[2026-02-26 14:23:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5030,"item_index":6,"menu_item_id":3} 
[2026-02-26 14:23:46] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5018,"new_order_id":5030,"order_number":"AZS-260226-007"} 
[2026-02-26 14:24:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5029,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":24637},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":24638},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":24639},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":24640},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":24641}],"validated_items":[{"id":24637,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":24638,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":24639,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":24640,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":24641,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 14:24:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5029,"items_count":5} 
[2026-02-26 14:24:22] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24637,"menu_item_id":96,"quantity":1},{"id":24638,"menu_item_id":396,"quantity":2},{"id":24639,"menu_item_id":50,"quantity":1},{"id":24640,"menu_item_id":61,"quantity":2},{"id":24641,"menu_item_id":3,"quantity":1}]} 
[2026-02-26 14:24:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5029,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","396|2|","50|1|","61|1|","3|1|"],"new_items_map_keys":["96|1|","396|2|","50|1|","61|2|","3|1|"]} 
[2026-02-26 14:24:22] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5029,"order_number":"AZS-260226-011"} 
[2026-02-26 14:24:22] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-011","replaced_order_id":5029} 
[2026-02-26 14:24:22] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5031,"items_count":5,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-26 14:24:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5031,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5031}} 
[2026-02-26 14:24:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5031,"item_index":0,"menu_item_id":96} 
[2026-02-26 14:24:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5031,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5031}} 
[2026-02-26 14:24:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5031,"item_index":1,"menu_item_id":396} 
[2026-02-26 14:24:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5031,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5031}} 
[2026-02-26 14:24:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5031,"item_index":2,"menu_item_id":50} 
[2026-02-26 14:24:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5031,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5031}} 
[2026-02-26 14:24:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5031,"item_index":3,"menu_item_id":61} 
[2026-02-26 14:24:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5031,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5031}} 
[2026-02-26 14:24:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5031,"item_index":4,"menu_item_id":3} 
[2026-02-26 14:24:22] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5029,"new_order_id":5031,"order_number":"AZS-260226-011"} 
[2026-02-26 14:27:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5031,"item_index":0,"item_id":24637} 
[2026-02-26 14:27:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5031,"item_index":1,"item_id":24638} 
[2026-02-26 14:27:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5031,"item_index":2,"item_id":24639} 
[2026-02-26 14:27:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5031,"item_index":3,"item_id":24640} 
[2026-02-26 14:27:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5031,"item_index":4,"item_id":24641} 
[2026-02-26 14:27:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5031,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":24637},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":24638},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":24639},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24640},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":24641}],"validated_items":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 14:27:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5031,"items_count":5} 
[2026-02-26 14:27:16] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[24649,24650,24651,24652,24653],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-26 14:27:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5031,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","396|2|","50|1|","61|2|","3|1|"],"new_items_map_keys":["96|1|","396|2|","50|1|","61|1|","3|1|"]} 
[2026-02-26 14:27:16] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5031,"order_number":"AZS-260226-011"} 
[2026-02-26 14:27:16] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-011","replaced_order_id":5031} 
[2026-02-26 14:27:16] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5032,"items_count":5,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-26 14:27:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5032,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5032}} 
[2026-02-26 14:27:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5032,"item_index":0,"menu_item_id":96} 
[2026-02-26 14:27:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5032,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5032}} 
[2026-02-26 14:27:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5032,"item_index":1,"menu_item_id":396} 
[2026-02-26 14:27:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5032,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5032}} 
[2026-02-26 14:27:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5032,"item_index":2,"menu_item_id":50} 
[2026-02-26 14:27:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5032,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5032}} 
[2026-02-26 14:27:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5032,"item_index":3,"menu_item_id":61} 
[2026-02-26 14:27:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5032,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5032}} 
[2026-02-26 14:27:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5032,"item_index":4,"menu_item_id":3} 
[2026-02-26 14:27:16] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5031,"new_order_id":5032,"order_number":"AZS-260226-011"} 
[2026-02-26 14:30:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5026,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24626},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":24627},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24628},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24629}],"validated_items":[{"id":24626,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24627,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":24628,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24629,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-26 14:30:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5026,"items_count":4} 
[2026-02-26 14:30:22] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24626,"menu_item_id":98,"quantity":1},{"id":24627,"menu_item_id":396,"quantity":3},{"id":24628,"menu_item_id":61,"quantity":1},{"id":24629,"menu_item_id":56,"quantity":1}]} 
[2026-02-26 14:30:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5026,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["98|1|","396|3|","61|1|","56|1|"],"new_items_map_keys":["98|1|","396|3|","61|1|","56|1|"]} 
[2026-02-26 14:30:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5026,"order_number":"AZS-260226-010"} 
[2026-02-26 14:30:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5026,"order_number":"AZS-260226-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 14:30:22"} 
[2026-02-26 14:43:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5032,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24654},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24655},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":24656},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24657},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24658}],"validated_items":[{"id":24654,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24655,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24656,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":24657,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24658,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-26 14:43:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5032,"items_count":5} 
[2026-02-26 14:43:52] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24654,"menu_item_id":96,"quantity":1},{"id":24655,"menu_item_id":396,"quantity":2},{"id":24656,"menu_item_id":50,"quantity":1},{"id":24657,"menu_item_id":61,"quantity":1},{"id":24658,"menu_item_id":3,"quantity":1}]} 
[2026-02-26 14:43:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5032,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","396|2|","50|1|","61|1|","3|1|"],"new_items_map_keys":["96|1|","396|2|","50|1|","61|1|","3|1|"]} 
[2026-02-26 14:43:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5032,"order_number":"AZS-260226-011"} 
[2026-02-26 14:43:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5032,"order_number":"AZS-260226-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 14:43:52"} 
[2026-02-26 14:45:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5030,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24642},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":24643},{"menu_item_id":52,"quantity":6,"price":70,"discount_percent":0,"notes":null,"id":24644},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24645},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24646},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24647},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24648}],"validated_items":[{"id":24642,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24643,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":24644,"menu_item_id":52,"quantity":6,"price":70,"discount_percent":0,"notes":null},{"id":24645,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24646,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24647,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24648,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-26 14:45:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5030,"items_count":7} 
[2026-02-26 14:45:29] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24642,"menu_item_id":417,"quantity":1},{"id":24643,"menu_item_id":106,"quantity":1},{"id":24644,"menu_item_id":52,"quantity":6},{"id":24645,"menu_item_id":61,"quantity":1},{"id":24646,"menu_item_id":56,"quantity":1},{"id":24647,"menu_item_id":5,"quantity":1},{"id":24648,"menu_item_id":3,"quantity":1}]} 
[2026-02-26 14:45:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5030,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["417|1|","106|1|","52|6|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["417|1|","106|1|","52|6|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-02-26 14:45:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5030,"order_number":"AZS-260226-007"} 
[2026-02-26 14:45:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5030,"order_number":"AZS-260226-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 14:45:29"} 
[2026-02-26 14:46:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5028,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":2,"discount_percent":0,"notes":null,"id":24634},{"menu_item_id":52,"quantity":12,"discount_percent":0,"notes":null,"id":24635},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":24636},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":24634,"menu_item_id":103,"quantity":2,"discount_percent":0,"notes":null},{"id":24635,"menu_item_id":52,"quantity":12,"discount_percent":0,"notes":null},{"id":24636,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-02-26 14:46:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5028,"items_count":5} 
[2026-02-26 14:46:54] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24634,"menu_item_id":103,"quantity":2},{"id":24635,"menu_item_id":52,"quantity":12},{"id":24636,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":3}]} 
[2026-02-26 14:46:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5028,"has_item_changes":true,"old_items_count":3,"new_items_count":5,"old_items_map_keys":["103|2|","52|12|","5|2|"],"new_items_map_keys":["103|2|","52|12|","5|2|","61|3|","56|3|"]} 
[2026-02-26 14:46:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5028,"order_number":"AZS-260226-012"} 
[2026-02-26 14:46:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-012","replaced_order_id":5028} 
[2026-02-26 14:46:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5034,"items_count":5,"items":[{"menu_item_id":103,"quantity":2,"price":"2599.00"},{"menu_item_id":52,"quantity":12,"price":"70.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":3,"price":"199.00"}]} 
[2026-02-26 14:46:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5034,"item_index":0,"item_data":{"menu_item_id":103,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Full","quantity":2,"price":"2599.00","discount_percent":0.0,"discount_amount":0.0,"total":5198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5034}} 
[2026-02-26 14:46:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5034,"item_index":0,"menu_item_id":103} 
[2026-02-26 14:46:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5034,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":12,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":840.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5034}} 
[2026-02-26 14:46:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5034,"item_index":1,"menu_item_id":52} 
[2026-02-26 14:46:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5034,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5034}} 
[2026-02-26 14:46:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5034,"item_index":2,"menu_item_id":5} 
[2026-02-26 14:46:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5034,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5034}} 
[2026-02-26 14:46:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5034,"item_index":3,"menu_item_id":61} 
[2026-02-26 14:46:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5034,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5034}} 
[2026-02-26 14:46:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5034,"item_index":4,"menu_item_id":56} 
[2026-02-26 14:46:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5028,"new_order_id":5034,"order_number":"AZS-260226-012"} 
[2026-02-26 14:47:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":5030,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24642},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":24643},{"menu_item_id":52,"quantity":6,"price":70,"discount_percent":0,"notes":null,"id":24644},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24645},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24646},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24648}],"validated_items":[{"id":24642,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24643,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":24644,"menu_item_id":52,"quantity":6,"price":70,"discount_percent":0,"notes":null},{"id":24645,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24646,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24648,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-26 14:47:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5030,"items_count":6} 
[2026-02-26 14:47:19] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[24647],"items":[{"id":24642,"menu_item_id":417,"quantity":1},{"id":24643,"menu_item_id":106,"quantity":1},{"id":24644,"menu_item_id":52,"quantity":6},{"id":24645,"menu_item_id":61,"quantity":1},{"id":24646,"menu_item_id":56,"quantity":1},{"id":24648,"menu_item_id":3,"quantity":1}]} 
[2026-02-26 14:47:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5030,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["417|1|","106|1|","52|6|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["417|1|","106|1|","52|6|","61|1|","56|1|","3|1|"]} 
[2026-02-26 14:47:19] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5030,"order_number":"AZS-260226-007"} 
[2026-02-26 14:47:19] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-007","replaced_order_id":5030} 
[2026-02-26 14:47:19] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5035,"items_count":6,"items":[{"menu_item_id":417,"quantity":1,"price":499.0},{"menu_item_id":106,"quantity":1,"price":4199.0},{"menu_item_id":52,"quantity":6,"price":70.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-02-26 14:47:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5035,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":499.0,"discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5035}} 
[2026-02-26 14:47:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5035,"item_index":0,"menu_item_id":417} 
[2026-02-26 14:47:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5035,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":4199.0,"discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5035}} 
[2026-02-26 14:47:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5035,"item_index":1,"menu_item_id":106} 
[2026-02-26 14:47:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5035,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":6,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":420.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5035}} 
[2026-02-26 14:47:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5035,"item_index":2,"menu_item_id":52} 
[2026-02-26 14:47:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5035,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5035}} 
[2026-02-26 14:47:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5035,"item_index":3,"menu_item_id":61} 
[2026-02-26 14:47:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5035,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5035}} 
[2026-02-26 14:47:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5035,"item_index":4,"menu_item_id":56} 
[2026-02-26 14:47:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5035,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5035}} 
[2026-02-26 14:47:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5035,"item_index":5,"menu_item_id":3} 
[2026-02-26 14:47:19] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5030,"new_order_id":5035,"order_number":"AZS-260226-007"} 
[2026-02-26 14:47:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5035,"item_index":0,"item_id":24642} 
[2026-02-26 14:47:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5035,"item_index":1,"item_id":24643} 
[2026-02-26 14:47:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5035,"item_index":2,"item_id":24644} 
[2026-02-26 14:47:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5035,"item_index":3,"item_id":24645} 
[2026-02-26 14:47:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5035,"item_index":4,"item_id":24646} 
[2026-02-26 14:47:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5035,"item_index":5,"item_id":24648} 
[2026-02-26 14:47:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5035,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24642},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":24643},{"menu_item_id":52,"quantity":6,"price":70,"discount_percent":0,"notes":null,"id":24644},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24645},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24646},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24648}],"validated_items":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":6,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-26 14:47:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5035,"items_count":6} 
[2026-02-26 14:47:22] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[24668,24669,24670,24671,24672,24673],"items":[{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":52,"quantity":6},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-26 14:47:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5035,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["417|1|","106|1|","52|6|","61|1|","56|1|","3|1|"],"new_items_map_keys":["417|1|","106|1|","52|6|","61|1|","56|1|","3|1|"]} 
[2026-02-26 14:47:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5035,"order_number":"AZS-260226-007"} 
[2026-02-26 14:47:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5035,"order_number":"AZS-260226-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 14:47:22"} 
[2026-02-26 14:48:59] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5032,"order_number":"AZS-260226-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2095,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 14:48:59"} 
[2026-02-26 14:48:59] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5032,"order_number":"AZS-260226-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2095,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 14:48:59"} 
[2026-02-26 14:48:59] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5032,"order_number":"AZS-260226-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2095,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 14:48:59"} 
[2026-02-26 14:48:59] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5032,"order_number":"AZS-260226-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2095,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 14:48:59"} 
[2026-02-26 14:48:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5032,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24654},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24655},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":24656},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24657},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24658}],"validated_items":[{"id":24654,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24655,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24656,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":24657,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24658,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-26 14:48:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5032,"items_count":5} 
[2026-02-26 14:48:59] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24654,"menu_item_id":96,"quantity":1},{"id":24655,"menu_item_id":396,"quantity":2},{"id":24656,"menu_item_id":50,"quantity":1},{"id":24657,"menu_item_id":61,"quantity":1},{"id":24658,"menu_item_id":3,"quantity":1}]} 
[2026-02-26 14:48:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5032,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","396|2|","50|1|","61|1|","3|1|"],"new_items_map_keys":["96|1|","396|2|","50|1|","61|1|","3|1|"]} 
[2026-02-26 14:48:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5032,"order_number":"AZS-260226-011"} 
[2026-02-26 14:48:59] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5032,"order_number":"AZS-260226-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2095,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-26 14:48:59","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-26 14:48:59"} 
[2026-02-26 14:48:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5032,"order_number":"AZS-260226-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-26 14:48:59"} 
[2026-02-26 14:48:59] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5032,"order_number":"AZS-260226-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2095.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-26 14:48:59","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2095,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2095.00","database_verification_match":true,"timestamp":"2026-02-26 14:48:59"} 
[2026-02-26 14:53:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5026,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24626},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":24627},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24628},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24629}],"validated_items":[{"id":24626,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24627,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":24628,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24629,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-26 14:53:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5026,"items_count":4} 
[2026-02-26 14:53:35] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24626,"menu_item_id":98,"quantity":1},{"id":24627,"menu_item_id":396,"quantity":3},{"id":24628,"menu_item_id":61,"quantity":1},{"id":24629,"menu_item_id":56,"quantity":1}]} 
[2026-02-26 14:53:35] local.INFO: PosOrderController::update - Item changes check {"order_id":5026,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["98|1|","396|3|","61|1|","56|1|"],"new_items_map_keys":["98|1|","396|3|","61|1|","56|1|"]} 
[2026-02-26 14:53:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5026,"order_number":"AZS-260226-010"} 
[2026-02-26 14:53:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5026,"order_number":"AZS-260226-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 14:53:35"} 
[2026-02-26 14:54:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5034,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":2,"discount_percent":0,"notes":null,"id":24663},{"menu_item_id":52,"quantity":12,"discount_percent":0,"notes":null,"id":24664},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":24665},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":24666},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":24667},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":24663,"menu_item_id":103,"quantity":2,"discount_percent":0,"notes":null},{"id":24664,"menu_item_id":52,"quantity":12,"discount_percent":0,"notes":null},{"id":24665,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":24666,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":24667,"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-26 14:54:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5034,"items_count":6} 
[2026-02-26 14:54:03] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24663,"menu_item_id":103,"quantity":2},{"id":24664,"menu_item_id":52,"quantity":12},{"id":24665,"menu_item_id":5,"quantity":2},{"id":24666,"menu_item_id":61,"quantity":3},{"id":24667,"menu_item_id":56,"quantity":3},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-02-26 14:54:03] local.INFO: PosOrderController::update - Item changes check {"order_id":5034,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["103|2|","52|12|","5|2|","61|3|","56|3|"],"new_items_map_keys":["103|2|","52|12|","5|2|","61|3|","56|3|","3|2|"]} 
[2026-02-26 14:54:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5034,"order_number":"AZS-260226-012"} 
[2026-02-26 14:54:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-012","replaced_order_id":5034} 
[2026-02-26 14:54:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5036,"items_count":6,"items":[{"menu_item_id":103,"quantity":2,"price":"2599.00"},{"menu_item_id":52,"quantity":12,"price":"70.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":3,"price":"199.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-02-26 14:54:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5036,"item_index":0,"item_data":{"menu_item_id":103,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Full","quantity":2,"price":"2599.00","discount_percent":0.0,"discount_amount":0.0,"total":5198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5036}} 
[2026-02-26 14:54:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5036,"item_index":0,"menu_item_id":103} 
[2026-02-26 14:54:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5036,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":12,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":840.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5036}} 
[2026-02-26 14:54:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5036,"item_index":1,"menu_item_id":52} 
[2026-02-26 14:54:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5036,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5036}} 
[2026-02-26 14:54:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5036,"item_index":2,"menu_item_id":5} 
[2026-02-26 14:54:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5036,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5036}} 
[2026-02-26 14:54:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5036,"item_index":3,"menu_item_id":61} 
[2026-02-26 14:54:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5036,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5036}} 
[2026-02-26 14:54:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5036,"item_index":4,"menu_item_id":56} 
[2026-02-26 14:54:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5036,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5036}} 
[2026-02-26 14:54:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5036,"item_index":5,"menu_item_id":3} 
[2026-02-26 14:54:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5034,"new_order_id":5036,"order_number":"AZS-260226-012"} 
[2026-02-26 14:55:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5035,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24668},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":24669},{"menu_item_id":52,"quantity":6,"price":70,"discount_percent":0,"notes":null,"id":24670},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24671},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24672},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24673}],"validated_items":[{"id":24668,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24669,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":24670,"menu_item_id":52,"quantity":6,"price":70,"discount_percent":0,"notes":null},{"id":24671,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24672,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24673,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-26 14:55:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5035,"items_count":6} 
[2026-02-26 14:55:18] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24668,"menu_item_id":417,"quantity":1},{"id":24669,"menu_item_id":106,"quantity":1},{"id":24670,"menu_item_id":52,"quantity":6},{"id":24671,"menu_item_id":61,"quantity":1},{"id":24672,"menu_item_id":56,"quantity":1},{"id":24673,"menu_item_id":3,"quantity":1}]} 
[2026-02-26 14:55:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5035,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["417|1|","106|1|","52|6|","61|1|","56|1|","3|1|"],"new_items_map_keys":["417|1|","106|1|","52|6|","61|1|","56|1|","3|1|"]} 
[2026-02-26 14:55:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5035,"order_number":"AZS-260226-007"} 
[2026-02-26 14:55:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5035,"order_number":"AZS-260226-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 14:55:18"} 
[2026-02-26 14:55:58] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5035,"order_number":"AZS-260226-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 14:55:58"} 
[2026-02-26 14:55:58] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5035,"order_number":"AZS-260226-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 14:55:58"} 
[2026-02-26 14:55:58] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5035,"order_number":"AZS-260226-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 14:55:58"} 
[2026-02-26 14:55:58] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5035,"order_number":"AZS-260226-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 14:55:58"} 
[2026-02-26 14:55:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":5035,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24668},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":24669},{"menu_item_id":52,"quantity":6,"price":70,"discount_percent":0,"notes":null,"id":24670},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24672},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24673}],"validated_items":[{"id":24668,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24669,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":24670,"menu_item_id":52,"quantity":6,"price":70,"discount_percent":0,"notes":null},{"id":24672,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24673,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-26 14:55:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5035,"items_count":5} 
[2026-02-26 14:55:58] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[24671],"items":[{"id":24668,"menu_item_id":417,"quantity":1},{"id":24669,"menu_item_id":106,"quantity":1},{"id":24670,"menu_item_id":52,"quantity":6},{"id":24672,"menu_item_id":56,"quantity":1},{"id":24673,"menu_item_id":3,"quantity":1}]} 
[2026-02-26 14:55:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5035,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["417|1|","106|1|","52|6|","61|1|","56|1|","3|1|"],"new_items_map_keys":["417|1|","106|1|","52|6|","56|1|","3|1|"]} 
[2026-02-26 14:55:58] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5035,"order_number":"AZS-260226-007","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":6000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-02-26 14:55:58","original_payment_amount":"0.00","grand_total":5587.0,"timestamp":"2026-02-26 14:55:58"} 
[2026-02-26 14:55:58] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5035,"order_number":"AZS-260226-007"} 
[2026-02-26 14:55:58] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-007","replaced_order_id":5035} 
[2026-02-26 14:55:58] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5035,"new_order_id":5037,"order_number":"AZS-260226-007","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"6000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-02-26 14:55:58","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-02-26 14:55:58"} 
[2026-02-26 14:55:58] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5037,"items_count":5,"items":[{"menu_item_id":417,"quantity":1,"price":499.0},{"menu_item_id":106,"quantity":1,"price":4199.0},{"menu_item_id":52,"quantity":6,"price":70.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-02-26 14:55:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5037,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":499.0,"discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5037}} 
[2026-02-26 14:55:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5037,"item_index":0,"menu_item_id":417} 
[2026-02-26 14:55:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5037,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":4199.0,"discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5037}} 
[2026-02-26 14:55:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5037,"item_index":1,"menu_item_id":106} 
[2026-02-26 14:55:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5037,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":6,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":420.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5037}} 
[2026-02-26 14:55:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5037,"item_index":2,"menu_item_id":52} 
[2026-02-26 14:55:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5037,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5037}} 
[2026-02-26 14:55:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5037,"item_index":3,"menu_item_id":56} 
[2026-02-26 14:55:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5037,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5037}} 
[2026-02-26 14:55:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5037,"item_index":4,"menu_item_id":3} 
[2026-02-26 14:55:58] local.ERROR: Error tracking recipe usage for order 5037: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5037, 106, 196, 1, 1, 0.00, Order #AZS-260226-007 - 1x Mutton Shinwari - Full, 2026-02-26 14:55:58, 2026-02-26 14:55:58))  
[2026-02-26 14:55:58] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5035,"new_order_id":5037,"order_number":"AZS-260226-007"} 
[2026-02-26 14:55:58] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5035,"new_order_id":5037,"order_number":"AZS-260226-007","route":"api/orders/5035"} 
[2026-02-26 15:04:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5036,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":2,"discount_percent":0,"notes":null,"id":24674},{"menu_item_id":52,"quantity":22,"discount_percent":0,"notes":null,"id":24675},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":24676},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":24677},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":24678},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":24679}],"validated_items":[{"id":24674,"menu_item_id":103,"quantity":2,"discount_percent":0,"notes":null},{"id":24675,"menu_item_id":52,"quantity":22,"discount_percent":0,"notes":null},{"id":24676,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":24677,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":24678,"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"id":24679,"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-26 15:04:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5036,"items_count":6} 
[2026-02-26 15:04:32] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24674,"menu_item_id":103,"quantity":2},{"id":24675,"menu_item_id":52,"quantity":22},{"id":24676,"menu_item_id":5,"quantity":2},{"id":24677,"menu_item_id":61,"quantity":3},{"id":24678,"menu_item_id":56,"quantity":3},{"id":24679,"menu_item_id":3,"quantity":2}]} 
[2026-02-26 15:04:32] local.INFO: PosOrderController::update - Item changes check {"order_id":5036,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["103|2|","52|12|","5|2|","61|3|","56|3|","3|2|"],"new_items_map_keys":["103|2|","52|22|","5|2|","61|3|","56|3|","3|2|"]} 
[2026-02-26 15:04:32] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5036,"order_number":"AZS-260226-012"} 
[2026-02-26 15:04:32] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-012","replaced_order_id":5036} 
[2026-02-26 15:04:32] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5038,"items_count":6,"items":[{"menu_item_id":103,"quantity":2,"price":"2599.00"},{"menu_item_id":52,"quantity":22,"price":"70.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":3,"price":"199.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-02-26 15:04:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5038,"item_index":0,"item_data":{"menu_item_id":103,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Full","quantity":2,"price":"2599.00","discount_percent":0.0,"discount_amount":0.0,"total":5198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5038}} 
[2026-02-26 15:04:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5038,"item_index":0,"menu_item_id":103} 
[2026-02-26 15:04:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5038,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":22,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":1540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5038}} 
[2026-02-26 15:04:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5038,"item_index":1,"menu_item_id":52} 
[2026-02-26 15:04:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5038,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5038}} 
[2026-02-26 15:04:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5038,"item_index":2,"menu_item_id":5} 
[2026-02-26 15:04:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5038,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5038}} 
[2026-02-26 15:04:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5038,"item_index":3,"menu_item_id":61} 
[2026-02-26 15:04:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5038,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5038}} 
[2026-02-26 15:04:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5038,"item_index":4,"menu_item_id":56} 
[2026-02-26 15:04:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5038,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5038}} 
[2026-02-26 15:04:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5038,"item_index":5,"menu_item_id":3} 
[2026-02-26 15:04:32] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5036,"new_order_id":5038,"order_number":"AZS-260226-012"} 
[2026-02-26 15:16:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5033,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"discount_percent":0,"notes":null,"id":24659},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":24660},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":24661},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24662},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24659,"menu_item_id":100,"quantity":1,"discount_percent":0,"notes":null},{"id":24660,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":24661,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":24662,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 15:16:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5033,"items_count":5} 
[2026-02-26 15:16:36] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24659,"menu_item_id":100,"quantity":1},{"id":24660,"menu_item_id":65,"quantity":1},{"id":24661,"menu_item_id":396,"quantity":2},{"id":24662,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-02-26 15:16:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5033,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["100|1|","65|1|","396|2|","5|1|"],"new_items_map_keys":["100|1|","65|1|","396|2|","5|1|","61|1|"]} 
[2026-02-26 15:16:36] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5033,"order_number":"AZS-260226-013"} 
[2026-02-26 15:16:36] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-013","replaced_order_id":5033} 
[2026-02-26 15:16:36] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5039,"items_count":5,"items":[{"menu_item_id":100,"quantity":1,"price":"1299.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"}]} 
[2026-02-26 15:16:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5039,"item_index":0,"item_data":{"menu_item_id":100,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Half","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5039}} 
[2026-02-26 15:16:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5039,"item_index":0,"menu_item_id":100} 
[2026-02-26 15:16:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5039,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5039}} 
[2026-02-26 15:16:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5039,"item_index":1,"menu_item_id":65} 
[2026-02-26 15:16:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5039,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5039}} 
[2026-02-26 15:16:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5039,"item_index":2,"menu_item_id":396} 
[2026-02-26 15:16:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5039,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5039}} 
[2026-02-26 15:16:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5039,"item_index":3,"menu_item_id":5} 
[2026-02-26 15:16:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5039,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5039}} 
[2026-02-26 15:16:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5039,"item_index":4,"menu_item_id":61} 
[2026-02-26 15:16:36] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5033,"new_order_id":5039,"order_number":"AZS-260226-013"} 
[2026-02-26 15:28:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":1,"order_id":5026,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24626},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":24627},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24629}],"validated_items":[{"id":24626,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24627,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":24629,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-26 15:28:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5026,"items_count":3} 
[2026-02-26 15:28:39] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":1,"items_to_remove":[24628],"items":[{"id":24626,"menu_item_id":98,"quantity":1},{"id":24627,"menu_item_id":396,"quantity":3},{"id":24629,"menu_item_id":56,"quantity":1}]} 
[2026-02-26 15:28:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5026,"has_item_changes":true,"old_items_count":4,"new_items_count":3,"old_items_map_keys":["98|1|","396|3|","61|1|","56|1|"],"new_items_map_keys":["98|1|","396|3|","56|1|"]} 
[2026-02-26 15:28:39] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5026,"order_number":"AZS-260226-010"} 
[2026-02-26 15:28:39] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-010","replaced_order_id":5026} 
[2026-02-26 15:28:39] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5040,"items_count":3,"items":[{"menu_item_id":98,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":56,"quantity":1,"price":199.0}]} 
[2026-02-26 15:28:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5040,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5040}} 
[2026-02-26 15:28:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5040,"item_index":0,"menu_item_id":98} 
[2026-02-26 15:28:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5040,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5040}} 
[2026-02-26 15:28:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5040,"item_index":1,"menu_item_id":396} 
[2026-02-26 15:28:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5040,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5040}} 
[2026-02-26 15:28:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5040,"item_index":2,"menu_item_id":56} 
[2026-02-26 15:28:39] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5026,"new_order_id":5040,"order_number":"AZS-260226-010"} 
[2026-02-26 15:28:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5040,"item_index":0,"item_id":24626} 
[2026-02-26 15:28:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5040,"item_index":1,"item_id":24627} 
[2026-02-26 15:28:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5040,"item_index":2,"item_id":24629} 
[2026-02-26 15:28:46] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5040,"order_number":"AZS-260226-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 15:28:46"} 
[2026-02-26 15:28:46] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5040,"order_number":"AZS-260226-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 15:28:46"} 
[2026-02-26 15:28:46] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5040,"order_number":"AZS-260226-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 15:28:46"} 
[2026-02-26 15:28:46] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5040,"order_number":"AZS-260226-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 15:28:46"} 
[2026-02-26 15:28:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":5040,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24626},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":24627},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24629}],"validated_items":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-26 15:28:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5040,"items_count":3} 
[2026-02-26 15:28:46] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[24696,24697,24698],"items":[{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-02-26 15:28:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5040,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["98|1|","396|3|","56|1|"],"new_items_map_keys":["98|1|","396|3|","56|1|"]} 
[2026-02-26 15:28:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5040,"order_number":"AZS-260226-010"} 
[2026-02-26 15:28:46] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5040,"order_number":"AZS-260226-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-26 15:28:46","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-26 15:28:46"} 
[2026-02-26 15:28:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5040,"order_number":"AZS-260226-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-26 15:28:46"} 
[2026-02-26 15:28:46] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5040,"order_number":"AZS-260226-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-26 15:28:46","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-02-26 15:28:46"} 
[2026-02-26 15:33:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5038,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":2,"price":2599,"discount_percent":0,"notes":null,"id":24685},{"menu_item_id":52,"quantity":22,"price":70,"discount_percent":0,"notes":null,"id":24686},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":24687},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":24688},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":24689},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":24690}],"validated_items":[{"id":24685,"menu_item_id":103,"quantity":2,"price":2599,"discount_percent":0,"notes":null},{"id":24686,"menu_item_id":52,"quantity":22,"price":70,"discount_percent":0,"notes":null},{"id":24687,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":24688,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":24689,"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":24690,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-26 15:33:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5038,"items_count":6} 
[2026-02-26 15:33:36] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24685,"menu_item_id":103,"quantity":2},{"id":24686,"menu_item_id":52,"quantity":22},{"id":24687,"menu_item_id":5,"quantity":2},{"id":24688,"menu_item_id":61,"quantity":3},{"id":24689,"menu_item_id":56,"quantity":3},{"id":24690,"menu_item_id":3,"quantity":2}]} 
[2026-02-26 15:33:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5038,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["103|2|","52|22|","5|2|","61|3|","56|3|","3|2|"],"new_items_map_keys":["103|2|","52|22|","5|2|","61|3|","56|3|","3|2|"]} 
[2026-02-26 15:33:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5038,"order_number":"AZS-260226-012"} 
[2026-02-26 15:33:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5038,"order_number":"AZS-260226-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 15:33:36"} 
[2026-02-26 15:37:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5038,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":2,"price":2599,"discount_percent":0,"notes":null,"id":24685},{"menu_item_id":52,"quantity":22,"price":70,"discount_percent":0,"notes":null,"id":24686},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":24687},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":24688},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24689},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":24690}],"validated_items":[{"id":24685,"menu_item_id":103,"quantity":2,"price":2599,"discount_percent":0,"notes":null},{"id":24686,"menu_item_id":52,"quantity":22,"price":70,"discount_percent":0,"notes":null},{"id":24687,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":24688,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":24689,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24690,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-26 15:37:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5038,"items_count":6} 
[2026-02-26 15:37:34] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24685,"menu_item_id":103,"quantity":2},{"id":24686,"menu_item_id":52,"quantity":22},{"id":24687,"menu_item_id":5,"quantity":2},{"id":24688,"menu_item_id":61,"quantity":3},{"id":24689,"menu_item_id":56,"quantity":2},{"id":24690,"menu_item_id":3,"quantity":2}]} 
[2026-02-26 15:37:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5038,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["103|2|","52|22|","5|2|","61|3|","56|3|","3|2|"],"new_items_map_keys":["103|2|","52|22|","5|2|","61|3|","56|2|","3|2|"]} 
[2026-02-26 15:37:34] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5038,"order_number":"AZS-260226-012"} 
[2026-02-26 15:37:34] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-012","replaced_order_id":5038} 
[2026-02-26 15:37:34] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5041,"items_count":6,"items":[{"menu_item_id":103,"quantity":2,"price":2599.0},{"menu_item_id":52,"quantity":22,"price":70.0},{"menu_item_id":5,"quantity":2,"price":170.0},{"menu_item_id":61,"quantity":3,"price":199.0},{"menu_item_id":56,"quantity":2,"price":199.0},{"menu_item_id":3,"quantity":2,"price":270.0}]} 
[2026-02-26 15:37:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5041,"item_index":0,"item_data":{"menu_item_id":103,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Full","quantity":2,"price":2599.0,"discount_percent":0.0,"discount_amount":0.0,"total":5198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5041}} 
[2026-02-26 15:37:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5041,"item_index":0,"menu_item_id":103} 
[2026-02-26 15:37:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5041,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":22,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":1540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5041}} 
[2026-02-26 15:37:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5041,"item_index":1,"menu_item_id":52} 
[2026-02-26 15:37:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5041,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5041}} 
[2026-02-26 15:37:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5041,"item_index":2,"menu_item_id":5} 
[2026-02-26 15:37:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5041,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5041}} 
[2026-02-26 15:37:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5041,"item_index":3,"menu_item_id":61} 
[2026-02-26 15:37:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5041,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5041}} 
[2026-02-26 15:37:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5041,"item_index":4,"menu_item_id":56} 
[2026-02-26 15:37:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5041,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5041}} 
[2026-02-26 15:37:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5041,"item_index":5,"menu_item_id":3} 
[2026-02-26 15:37:34] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5038,"new_order_id":5041,"order_number":"AZS-260226-012"} 
[2026-02-26 15:37:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5041,"item_index":0,"item_id":24685} 
[2026-02-26 15:37:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5041,"item_index":1,"item_id":24686} 
[2026-02-26 15:37:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5041,"item_index":2,"item_id":24687} 
[2026-02-26 15:37:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5041,"item_index":3,"item_id":24688} 
[2026-02-26 15:37:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5041,"item_index":4,"item_id":24689} 
[2026-02-26 15:37:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5041,"item_index":5,"item_id":24690} 
[2026-02-26 15:37:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5041,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":2,"price":2599,"discount_percent":0,"notes":null,"id":24685},{"menu_item_id":52,"quantity":22,"price":70,"discount_percent":0,"notes":null,"id":24686},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":24687},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":24688},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24689},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":24690}],"validated_items":[{"menu_item_id":103,"quantity":2,"price":2599,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":22,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-26 15:37:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5041,"items_count":6} 
[2026-02-26 15:37:39] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[24699,24700,24701,24702,24703,24704],"items":[{"id":null,"menu_item_id":103,"quantity":2},{"id":null,"menu_item_id":52,"quantity":22},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-02-26 15:37:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5041,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["103|2|","52|22|","5|2|","61|3|","56|2|","3|2|"],"new_items_map_keys":["103|2|","52|22|","5|2|","61|3|","56|2|","3|2|"]} 
[2026-02-26 15:37:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5041,"order_number":"AZS-260226-012"} 
[2026-02-26 15:37:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5041,"order_number":"AZS-260226-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 15:37:39"} 
[2026-02-26 15:38:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5041,"item_index":0,"item_id":24685} 
[2026-02-26 15:38:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5041,"item_index":1,"item_id":24686} 
[2026-02-26 15:38:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5041,"item_index":2,"item_id":24687} 
[2026-02-26 15:38:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5041,"item_index":3,"item_id":24688} 
[2026-02-26 15:38:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5041,"item_index":4,"item_id":24689} 
[2026-02-26 15:38:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5041,"item_index":5,"item_id":24690} 
[2026-02-26 15:38:41] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5041,"order_number":"AZS-260226-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 15:38:41"} 
[2026-02-26 15:38:41] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5041,"order_number":"AZS-260226-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 15:38:41"} 
[2026-02-26 15:38:41] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5041,"order_number":"AZS-260226-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 15:38:41"} 
[2026-02-26 15:38:41] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5041,"order_number":"AZS-260226-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 15:38:41"} 
[2026-02-26 15:38:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5041,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":2,"price":2599,"discount_percent":0,"notes":null,"id":24685},{"menu_item_id":52,"quantity":22,"price":70,"discount_percent":0,"notes":null,"id":24686},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":24687},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":24688},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24689},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":24690}],"validated_items":[{"menu_item_id":103,"quantity":2,"price":2599,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":22,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-26 15:38:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5041,"items_count":6} 
[2026-02-26 15:38:41] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[24699,24700,24701,24702,24703,24704],"items":[{"id":null,"menu_item_id":103,"quantity":2},{"id":null,"menu_item_id":52,"quantity":22},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-02-26 15:38:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5041,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["103|2|","52|22|","5|2|","61|3|","56|2|","3|2|"],"new_items_map_keys":["103|2|","52|22|","5|2|","61|3|","56|2|","3|2|"]} 
[2026-02-26 15:38:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5041,"order_number":"AZS-260226-012"} 
[2026-02-26 15:38:41] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5041,"order_number":"AZS-260226-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":10000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-26 15:38:41","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-26 15:38:41"} 
[2026-02-26 15:38:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5041,"order_number":"AZS-260226-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-26 15:38:41"} 
[2026-02-26 15:38:41] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5041,"order_number":"AZS-260226-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"10000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-26 15:38:41","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"10000.00","database_verification_match":true,"timestamp":"2026-02-26 15:38:41"} 
[2026-02-26 15:43:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5039,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"discount_percent":0,"notes":null,"id":24691},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":24692},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":24693},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24694},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24695},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":24691,"menu_item_id":100,"quantity":1,"discount_percent":0,"notes":null},{"id":24692,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":24693,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":24694,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":24695,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-26 15:43:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5039,"items_count":6} 
[2026-02-26 15:43:06] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24691,"menu_item_id":100,"quantity":1},{"id":24692,"menu_item_id":65,"quantity":1},{"id":24693,"menu_item_id":396,"quantity":2},{"id":24694,"menu_item_id":5,"quantity":1},{"id":24695,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-02-26 15:43:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5039,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["100|1|","65|1|","396|2|","5|1|","61|1|"],"new_items_map_keys":["100|1|","65|1|","396|2|","5|1|","61|1|","13|2|"]} 
[2026-02-26 15:43:06] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5039,"order_number":"AZS-260226-013"} 
[2026-02-26 15:43:06] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-013","replaced_order_id":5039} 
[2026-02-26 15:43:06] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5043,"items_count":6,"items":[{"menu_item_id":100,"quantity":1,"price":"1299.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"}]} 
[2026-02-26 15:43:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5043,"item_index":0,"item_data":{"menu_item_id":100,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Half","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5043}} 
[2026-02-26 15:43:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5043,"item_index":0,"menu_item_id":100} 
[2026-02-26 15:43:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5043,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5043}} 
[2026-02-26 15:43:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5043,"item_index":1,"menu_item_id":65} 
[2026-02-26 15:43:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5043,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5043}} 
[2026-02-26 15:43:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5043,"item_index":2,"menu_item_id":396} 
[2026-02-26 15:43:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5043,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5043}} 
[2026-02-26 15:43:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5043,"item_index":3,"menu_item_id":5} 
[2026-02-26 15:43:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5043,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5043}} 
[2026-02-26 15:43:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5043,"item_index":4,"menu_item_id":61} 
[2026-02-26 15:43:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5043,"item_index":5,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5043}} 
[2026-02-26 15:43:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5043,"item_index":5,"menu_item_id":13} 
[2026-02-26 15:43:06] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5039,"new_order_id":5043,"order_number":"AZS-260226-013"} 
[2026-02-26 16:11:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5042,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null,"id":24705}],"validated_items":[{"id":24705,"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-02-26 16:11:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5042,"items_count":1} 
[2026-02-26 16:11:28] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24705,"menu_item_id":13,"quantity":3}]} 
[2026-02-26 16:11:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5042,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|3|"]} 
[2026-02-26 16:11:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5042,"order_number":"AZS-260226-014"} 
[2026-02-26 16:11:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-014","replaced_order_id":5042} 
[2026-02-26 16:11:28] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5045,"items_count":1,"items":[{"menu_item_id":13,"quantity":3,"price":"249.00"}]} 
[2026-02-26 16:11:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5045,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5045}} 
[2026-02-26 16:11:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5045,"item_index":0,"menu_item_id":13} 
[2026-02-26 16:11:28] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5042,"new_order_id":5045,"order_number":"AZS-260226-014"} 
[2026-02-26 16:41:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5043,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24706},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24707},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24708},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24709},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24710},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":24711}],"validated_items":[{"id":24706,"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":24707,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":24708,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24709,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24710,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24711,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-02-26 16:41:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5043,"items_count":6} 
[2026-02-26 16:41:00] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24706,"menu_item_id":100,"quantity":1},{"id":24707,"menu_item_id":65,"quantity":1},{"id":24708,"menu_item_id":396,"quantity":2},{"id":24709,"menu_item_id":5,"quantity":1},{"id":24710,"menu_item_id":61,"quantity":1},{"id":24711,"menu_item_id":13,"quantity":2}]} 
[2026-02-26 16:41:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5043,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["100|1|","65|1|","396|2|","5|1|","61|1|","13|2|"],"new_items_map_keys":["100|1|","65|1|","396|2|","5|1|","61|1|","13|2|"]} 
[2026-02-26 16:41:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5043,"order_number":"AZS-260226-013"} 
[2026-02-26 16:41:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5043,"order_number":"AZS-260226-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 16:41:00"} 
[2026-02-26 16:42:42] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5043,"order_number":"AZS-260226-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 16:42:42"} 
[2026-02-26 16:42:42] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5043,"order_number":"AZS-260226-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 16:42:42"} 
[2026-02-26 16:42:42] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5043,"order_number":"AZS-260226-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 16:42:42"} 
[2026-02-26 16:42:42] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5043,"order_number":"AZS-260226-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 16:42:42"} 
[2026-02-26 16:42:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5043,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24706},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24707},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24708},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24709},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24710},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":24711}],"validated_items":[{"id":24706,"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":24707,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":24708,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24709,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24710,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24711,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-02-26 16:42:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5043,"items_count":6} 
[2026-02-26 16:42:42] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24706,"menu_item_id":100,"quantity":1},{"id":24707,"menu_item_id":65,"quantity":1},{"id":24708,"menu_item_id":396,"quantity":2},{"id":24709,"menu_item_id":5,"quantity":1},{"id":24710,"menu_item_id":61,"quantity":1},{"id":24711,"menu_item_id":13,"quantity":2}]} 
[2026-02-26 16:42:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5043,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["100|1|","65|1|","396|2|","5|1|","61|1|","13|2|"],"new_items_map_keys":["100|1|","65|1|","396|2|","5|1|","61|1|","13|2|"]} 
[2026-02-26 16:42:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5043,"order_number":"AZS-260226-013"} 
[2026-02-26 16:42:42] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5043,"order_number":"AZS-260226-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-26 16:42:42","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-26 16:42:42"} 
[2026-02-26 16:42:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5043,"order_number":"AZS-260226-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-26 16:42:42"} 
[2026-02-26 16:42:43] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5043,"order_number":"AZS-260226-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-26 16:42:42","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4000.00","database_verification_match":true,"timestamp":"2026-02-26 16:42:43"} 
[2026-02-26 16:59:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5045,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":24714},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}],"validated_items":[{"id":24714,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-26 16:59:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5045,"items_count":2} 
[2026-02-26 16:59:22] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24714,"menu_item_id":13,"quantity":3},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-02-26 16:59:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5045,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["13|3|"],"new_items_map_keys":["13|3|","4|1|"]} 
[2026-02-26 16:59:22] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5045,"order_number":"AZS-260226-014"} 
[2026-02-26 16:59:22] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-014","replaced_order_id":5045} 
[2026-02-26 16:59:22] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5046,"items_count":2,"items":[{"menu_item_id":13,"quantity":3,"price":249.0},{"menu_item_id":4,"quantity":1,"price":90.0}]} 
[2026-02-26 16:59:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5046,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5046}} 
[2026-02-26 16:59:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5046,"item_index":0,"menu_item_id":13} 
[2026-02-26 16:59:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5046,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":90.0,"discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5046}} 
[2026-02-26 16:59:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5046,"item_index":1,"menu_item_id":4} 
[2026-02-26 16:59:22] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5045,"new_order_id":5046,"order_number":"AZS-260226-014"} 
[2026-02-26 17:05:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-26T05:05:02.569Z","date_to":"2026-02-26T17:05:02.569Z","per_page":"100"} 
[2026-02-26 17:05:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260226-015","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-013","AZS-260226-013","AZS-260226-013","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-010","AZS-260226-010","AZS-260226-010","AZS-260226-009","AZS-260226-008","AZS-260226-008","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-006","AZS-260226-005","AZS-260226-004","AZS-260226-004","AZS-260226-003","AZS-260226-003","AZS-260226-002","AZS-260226-002","AZS-260226-001"],"order_statuses":["pending","pending","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","paid","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":21,"paid_count":13,"unpaid_count":2,"unique_order_numbers":15} 
[2026-02-26 17:05:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-26T05:05:02.569Z","date_to":"2026-02-26T17:05:02.569Z","per_page":"100"} 
[2026-02-26 17:05:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260226-015","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-013","AZS-260226-013","AZS-260226-013","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-010","AZS-260226-010","AZS-260226-010","AZS-260226-009","AZS-260226-008","AZS-260226-008","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-006","AZS-260226-005","AZS-260226-004","AZS-260226-004","AZS-260226-003","AZS-260226-003","AZS-260226-002","AZS-260226-002","AZS-260226-001"],"order_statuses":["pending","pending","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","paid","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":21,"paid_count":13,"unpaid_count":2,"unique_order_numbers":15} 
[2026-02-26 17:05:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5046,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":24715},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":24716}],"validated_items":[{"id":24715,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null},{"id":24716,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-26 17:05:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5046,"items_count":2} 
[2026-02-26 17:05:27] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24715,"menu_item_id":13,"quantity":3},{"id":24716,"menu_item_id":4,"quantity":1}]} 
[2026-02-26 17:05:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5046,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|3|","4|1|"],"new_items_map_keys":["13|3|","4|1|"]} 
[2026-02-26 17:05:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5046,"order_number":"AZS-260226-014"} 
[2026-02-26 17:05:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5046,"order_number":"AZS-260226-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 17:05:27"} 
[2026-02-26 17:09:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5044,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null,"id":24712},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24713},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":398,"quantity":250,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24712,"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"id":24713,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":398,"quantity":250,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 17:09:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5044,"items_count":7} 
[2026-02-26 17:09:40] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24712,"menu_item_id":2,"quantity":2},{"id":24713,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":398,"quantity":250},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-02-26 17:09:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5044,"has_item_changes":true,"old_items_count":2,"new_items_count":7,"old_items_map_keys":["2|2|","5|1|"],"new_items_map_keys":["2|2|","5|1|","96|1|","398|250|","396|3|","61|3|","56|1|"]} 
[2026-02-26 17:09:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5044,"order_number":"AZS-260226-015"} 
[2026-02-26 17:09:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-015","replaced_order_id":5044} 
[2026-02-26 17:09:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5047,"items_count":7,"items":[{"menu_item_id":2,"quantity":2,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":398,"quantity":250,"price":"2.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"}]} 
[2026-02-26 17:09:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5047,"item_index":0,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5047}} 
[2026-02-26 17:09:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5047,"item_index":0,"menu_item_id":2} 
[2026-02-26 17:09:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5047,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5047}} 
[2026-02-26 17:09:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5047,"item_index":1,"menu_item_id":5} 
[2026-02-26 17:09:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5047,"item_index":2,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5047}} 
[2026-02-26 17:09:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5047,"item_index":2,"menu_item_id":96} 
[2026-02-26 17:09:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5047,"item_index":3,"item_data":{"menu_item_id":398,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL CHICKEN 1 GRAM","quantity":250,"price":"2.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5047}} 
[2026-02-26 17:09:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5047,"item_index":3,"menu_item_id":398} 
[2026-02-26 17:09:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5047,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5047}} 
[2026-02-26 17:09:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5047,"item_index":4,"menu_item_id":396} 
[2026-02-26 17:09:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5047,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5047}} 
[2026-02-26 17:09:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5047,"item_index":5,"menu_item_id":61} 
[2026-02-26 17:09:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5047,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5047}} 
[2026-02-26 17:09:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5047,"item_index":6,"menu_item_id":56} 
[2026-02-26 17:09:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5044,"new_order_id":5047,"order_number":"AZS-260226-015"} 
[2026-02-26 17:15:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5046,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":24715},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":24716}],"validated_items":[{"id":24715,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null},{"id":24716,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-26 17:15:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5046,"items_count":2} 
[2026-02-26 17:15:19] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24715,"menu_item_id":13,"quantity":3},{"id":24716,"menu_item_id":4,"quantity":1}]} 
[2026-02-26 17:15:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5046,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|3|","4|1|"],"new_items_map_keys":["13|3|","4|1|"]} 
[2026-02-26 17:15:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5046,"order_number":"AZS-260226-014"} 
[2026-02-26 17:15:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5046,"order_number":"AZS-260226-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 17:15:19"} 
[2026-02-26 17:15:45] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5046,"order_number":"AZS-260226-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":700,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 17:15:45"} 
[2026-02-26 17:15:45] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5046,"order_number":"AZS-260226-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":700,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 17:15:45"} 
[2026-02-26 17:15:45] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5046,"order_number":"AZS-260226-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":700,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 17:15:45"} 
[2026-02-26 17:15:45] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5046,"order_number":"AZS-260226-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":700,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 17:15:45"} 
[2026-02-26 17:15:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5046,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":24715},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":24716}],"validated_items":[{"id":24715,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":24716,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-26 17:15:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5046,"items_count":2} 
[2026-02-26 17:15:45] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24715,"menu_item_id":13,"quantity":2},{"id":24716,"menu_item_id":4,"quantity":1}]} 
[2026-02-26 17:15:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5046,"has_item_changes":true,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|3|","4|1|"],"new_items_map_keys":["13|2|","4|1|"]} 
[2026-02-26 17:15:45] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5046,"order_number":"AZS-260226-014","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":700,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-02-26 17:15:45","original_payment_amount":"0.00","grand_total":617.0,"timestamp":"2026-02-26 17:15:45"} 
[2026-02-26 17:15:45] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5046,"order_number":"AZS-260226-014"} 
[2026-02-26 17:15:45] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-014","replaced_order_id":5046} 
[2026-02-26 17:15:45] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5046,"new_order_id":5048,"order_number":"AZS-260226-014","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"700.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-02-26 17:15:45","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":700,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-02-26 17:15:45"} 
[2026-02-26 17:15:45] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5048,"items_count":2,"items":[{"menu_item_id":13,"quantity":2,"price":249.0},{"menu_item_id":4,"quantity":1,"price":90.0}]} 
[2026-02-26 17:15:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5048,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5048}} 
[2026-02-26 17:15:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5048,"item_index":0,"menu_item_id":13} 
[2026-02-26 17:15:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5048,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":90.0,"discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5048}} 
[2026-02-26 17:15:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5048,"item_index":1,"menu_item_id":4} 
[2026-02-26 17:15:45] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5046,"new_order_id":5048,"order_number":"AZS-260226-014"} 
[2026-02-26 17:15:45] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5046,"new_order_id":5048,"order_number":"AZS-260226-014","route":"api/orders/5046"} 
[2026-02-26 17:20:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5047,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null,"id":24717},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24718},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":24719},{"menu_item_id":398,"quantity":250,"discount_percent":0,"notes":null,"id":24720},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":24721},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":24722},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24723}],"validated_items":[{"id":24717,"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"id":24718,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":24719,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":24720,"menu_item_id":398,"quantity":250,"discount_percent":0,"notes":null},{"id":24721,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":24722,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":24723,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 17:20:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5047,"items_count":7} 
[2026-02-26 17:20:30] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24717,"menu_item_id":2,"quantity":2},{"id":24718,"menu_item_id":5,"quantity":1},{"id":24719,"menu_item_id":96,"quantity":1},{"id":24720,"menu_item_id":398,"quantity":250},{"id":24721,"menu_item_id":396,"quantity":3},{"id":24722,"menu_item_id":61,"quantity":3},{"id":24723,"menu_item_id":56,"quantity":1}]} 
[2026-02-26 17:20:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5047,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["2|2|","5|1|","96|1|","398|250|","396|3|","61|3|","56|1|"],"new_items_map_keys":["2|2|","5|1|","96|1|","398|250|","396|3|","61|3|","56|1|"]} 
[2026-02-26 17:20:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5047,"order_number":"AZS-260226-015"} 
[2026-02-26 17:20:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5047,"order_number":"AZS-260226-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-26 17:20:30"} 
[2026-02-26 17:31:49] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5049,"order_number":"AZS-260226-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 17:31:49"} 
[2026-02-26 17:31:49] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5049,"order_number":"AZS-260226-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 17:31:49"} 
[2026-02-26 17:31:49] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5049,"order_number":"AZS-260226-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 17:31:49"} 
[2026-02-26 17:31:49] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5049,"order_number":"AZS-260226-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 17:31:49"} 
[2026-02-26 17:31:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5049,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":24726},{"menu_item_id":286,"quantity":7,"price":15,"discount_percent":0,"notes":null,"id":24727}],"validated_items":[{"id":24726,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":24727,"menu_item_id":286,"quantity":7,"price":15,"discount_percent":0,"notes":null}]} 
[2026-02-26 17:31:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5049,"items_count":2} 
[2026-02-26 17:31:49] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24726,"menu_item_id":97,"quantity":1},{"id":24727,"menu_item_id":286,"quantity":7}]} 
[2026-02-26 17:31:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5049,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["97|1|","286|7|"],"new_items_map_keys":["97|1|","286|7|"]} 
[2026-02-26 17:31:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5049,"order_number":"AZS-260226-016"} 
[2026-02-26 17:31:49] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5049,"order_number":"AZS-260226-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-26 17:31:49","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-26 17:31:49"} 
[2026-02-26 17:31:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5049,"order_number":"AZS-260226-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-26 17:31:49"} 
[2026-02-26 17:31:49] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5049,"order_number":"AZS-260226-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-26 17:31:49","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2500.00","database_verification_match":true,"timestamp":"2026-02-26 17:31:49"} 
[2026-02-26 17:34:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-26T05:34:16.340Z","date_to":"2026-02-26T17:34:16.340Z","per_page":"100"} 
[2026-02-26 17:34:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260226-016","AZS-260226-015","AZS-260226-015","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-013","AZS-260226-013","AZS-260226-013","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-010","AZS-260226-010","AZS-260226-010","AZS-260226-009","AZS-260226-008","AZS-260226-008","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-006","AZS-260226-005","AZS-260226-004","AZS-260226-004","AZS-260226-003","AZS-260226-003","AZS-260226-002","AZS-260226-002","AZS-260226-001"],"order_statuses":["paid","pending","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","paid","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":23,"paid_count":15,"unpaid_count":1,"unique_order_numbers":16} 
[2026-02-26 17:34:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-26T05:34:16.353Z","date_to":"2026-02-26T17:34:16.353Z","per_page":"100"} 
[2026-02-26 17:34:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260226-016","AZS-260226-015","AZS-260226-015","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-013","AZS-260226-013","AZS-260226-013","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-010","AZS-260226-010","AZS-260226-010","AZS-260226-009","AZS-260226-008","AZS-260226-008","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-006","AZS-260226-005","AZS-260226-004","AZS-260226-004","AZS-260226-003","AZS-260226-003","AZS-260226-002","AZS-260226-002","AZS-260226-001"],"order_statuses":["paid","pending","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","paid","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":23,"paid_count":15,"unpaid_count":1,"unique_order_numbers":16} 
[2026-02-26 17:34:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-26T05:34:16.340Z","date_to":"2026-02-26T17:34:16.340Z","per_page":"100"} 
[2026-02-26 17:34:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260226-016","AZS-260226-015","AZS-260226-015","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-013","AZS-260226-013","AZS-260226-013","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-010","AZS-260226-010","AZS-260226-010","AZS-260226-009","AZS-260226-008","AZS-260226-008","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-006","AZS-260226-005","AZS-260226-004","AZS-260226-004","AZS-260226-003","AZS-260226-003","AZS-260226-002","AZS-260226-002","AZS-260226-001"],"order_statuses":["paid","pending","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","paid","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":23,"paid_count":15,"unpaid_count":1,"unique_order_numbers":16} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5047,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null,"id":24717},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24718},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":24719},{"menu_item_id":398,"quantity":250,"discount_percent":0,"notes":null,"id":24720},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":24721},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":24722},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24723},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":23,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24717,"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"id":24718,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":24719,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":24720,"menu_item_id":398,"quantity":250,"discount_percent":0,"notes":null},{"id":24721,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":24722,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":24723,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":23,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5047,"items_count":10} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24717,"menu_item_id":2,"quantity":2},{"id":24718,"menu_item_id":5,"quantity":1},{"id":24719,"menu_item_id":96,"quantity":1},{"id":24720,"menu_item_id":398,"quantity":250},{"id":24721,"menu_item_id":396,"quantity":3},{"id":24722,"menu_item_id":61,"quantity":3},{"id":24723,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":23,"quantity":2},{"id":null,"menu_item_id":29,"quantity":1}]} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5047,"has_item_changes":true,"old_items_count":7,"new_items_count":10,"old_items_map_keys":["2|2|","5|1|","96|1|","398|250|","396|3|","61|3|","56|1|"],"new_items_map_keys":["2|2|","5|1|","96|1|","398|250|","396|3|","61|3|","56|1|","6|2|","23|2|","29|1|"]} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5047,"order_number":"AZS-260226-015"} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-015","replaced_order_id":5047} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5051,"items_count":10,"items":[{"menu_item_id":2,"quantity":2,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":398,"quantity":250,"price":"2.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"},{"menu_item_id":23,"quantity":2,"price":"249.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"}]} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5051,"item_index":0,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5051}} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5051,"item_index":0,"menu_item_id":2} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5051,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5051}} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5051,"item_index":1,"menu_item_id":5} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5051,"item_index":2,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5051}} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5051,"item_index":2,"menu_item_id":96} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5051,"item_index":3,"item_data":{"menu_item_id":398,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL CHICKEN 1 GRAM","quantity":250,"price":"2.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5051}} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5051,"item_index":3,"menu_item_id":398} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5051,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5051}} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5051,"item_index":4,"menu_item_id":396} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5051,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5051}} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5051,"item_index":5,"menu_item_id":61} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5051,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5051}} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5051,"item_index":6,"menu_item_id":56} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5051,"item_index":7,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5051}} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5051,"item_index":7,"menu_item_id":6} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5051,"item_index":8,"item_data":{"menu_item_id":23,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Vanilla","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5051}} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5051,"item_index":8,"menu_item_id":23} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5051,"item_index":9,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5051}} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5051,"item_index":9,"menu_item_id":29} 
[2026-02-26 18:03:34] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5047,"new_order_id":5051,"order_number":"AZS-260226-015"} 
[2026-02-26 18:43:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5050,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":24728},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":24729},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":24730},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24731},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24732},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24728,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":24729,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":24730,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":24731,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":24732,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 18:43:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5050,"items_count":6} 
[2026-02-26 18:43:21] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24728,"menu_item_id":96,"quantity":1},{"id":24729,"menu_item_id":62,"quantity":1},{"id":24730,"menu_item_id":396,"quantity":2},{"id":24731,"menu_item_id":61,"quantity":1},{"id":24732,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-26 18:43:21] local.INFO: PosOrderController::update - Item changes check {"order_id":5050,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["96|1|","62|1|","396|2|","61|1|","5|1|"],"new_items_map_keys":["96|1|","62|1|","396|2|","61|1|","5|1|","3|1|"]} 
[2026-02-26 18:43:21] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5050,"order_number":"AZS-260226-017"} 
[2026-02-26 18:43:21] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-017","replaced_order_id":5050} 
[2026-02-26 18:43:21] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5052,"items_count":6,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-26 18:43:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5052,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5052}} 
[2026-02-26 18:43:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5052,"item_index":0,"menu_item_id":96} 
[2026-02-26 18:43:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5052,"item_index":1,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5052}} 
[2026-02-26 18:43:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5052,"item_index":1,"menu_item_id":62} 
[2026-02-26 18:43:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5052,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5052}} 
[2026-02-26 18:43:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5052,"item_index":2,"menu_item_id":396} 
[2026-02-26 18:43:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5052,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5052}} 
[2026-02-26 18:43:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5052,"item_index":3,"menu_item_id":61} 
[2026-02-26 18:43:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5052,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5052}} 
[2026-02-26 18:43:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5052,"item_index":4,"menu_item_id":5} 
[2026-02-26 18:43:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5052,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5052}} 
[2026-02-26 18:43:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5052,"item_index":5,"menu_item_id":3} 
[2026-02-26 18:43:21] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5050,"new_order_id":5052,"order_number":"AZS-260226-017"} 
[2026-02-26 19:00:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5052,"item_index":0,"item_id":24728} 
[2026-02-26 19:00:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5052,"item_index":1,"item_id":24729} 
[2026-02-26 19:00:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5052,"item_index":2,"item_id":24730} 
[2026-02-26 19:00:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5052,"item_index":3,"item_id":24731} 
[2026-02-26 19:00:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5052,"item_index":4,"item_id":24732} 
[2026-02-26 19:00:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5052,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24728},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":24729},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24730},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24731},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24732},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-26 19:00:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5052,"items_count":6} 
[2026-02-26 19:00:40] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[24743,24744,24745,24746,24747,24748],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-26 19:00:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5052,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["96|1|","62|1|","396|2|","61|1|","5|1|","3|1|"],"new_items_map_keys":["96|1|","62|1|","396|2|","61|1|","5|1|","3|1|"]} 
[2026-02-26 19:00:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5052,"order_number":"AZS-260226-017"} 
[2026-02-26 19:00:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5052,"order_number":"AZS-260226-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 19:00:40"} 
[2026-02-26 19:15:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5052,"item_index":0,"item_id":24728} 
[2026-02-26 19:15:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5052,"item_index":1,"item_id":24729} 
[2026-02-26 19:15:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5052,"item_index":2,"item_id":24730} 
[2026-02-26 19:15:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5052,"item_index":3,"item_id":24731} 
[2026-02-26 19:15:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5052,"item_index":4,"item_id":24732} 
[2026-02-26 19:15:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5052,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24728},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":24729},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24730},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24731},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24732},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-26 19:15:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5052,"items_count":6} 
[2026-02-26 19:15:09] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[24743,24744,24745,24746,24747,24748],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-26 19:15:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5052,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["96|1|","62|1|","396|2|","61|1|","5|1|","3|1|"],"new_items_map_keys":["96|1|","62|1|","396|2|","61|1|","5|1|","3|1|"]} 
[2026-02-26 19:15:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5052,"order_number":"AZS-260226-017"} 
[2026-02-26 19:15:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5052,"order_number":"AZS-260226-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 19:15:09"} 
[2026-02-26 19:17:00] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5052,"item_index":0,"item_id":24728} 
[2026-02-26 19:17:00] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5052,"item_index":1,"item_id":24729} 
[2026-02-26 19:17:00] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5052,"item_index":2,"item_id":24730} 
[2026-02-26 19:17:00] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5052,"item_index":3,"item_id":24731} 
[2026-02-26 19:17:00] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5052,"item_index":4,"item_id":24732} 
[2026-02-26 19:17:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5052,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24728},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":24729},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24730},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24731},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24732},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-26 19:17:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5052,"items_count":6} 
[2026-02-26 19:17:00] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[24743,24744,24745,24746,24747,24748],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-26 19:17:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5052,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["96|1|","62|1|","396|2|","61|1|","5|1|","3|1|"],"new_items_map_keys":["96|1|","62|1|","396|2|","61|1|","5|1|","3|1|"]} 
[2026-02-26 19:17:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5052,"order_number":"AZS-260226-017"} 
[2026-02-26 19:17:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5052,"order_number":"AZS-260226-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 19:17:00"} 
[2026-02-26 19:17:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5052,"item_index":0,"item_id":24728} 
[2026-02-26 19:17:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5052,"item_index":1,"item_id":24729} 
[2026-02-26 19:17:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5052,"item_index":2,"item_id":24730} 
[2026-02-26 19:17:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5052,"item_index":3,"item_id":24732} 
[2026-02-26 19:17:15] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5052,"order_number":"AZS-260226-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 19:17:15"} 
[2026-02-26 19:17:15] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5052,"order_number":"AZS-260226-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 19:17:15"} 
[2026-02-26 19:17:15] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5052,"order_number":"AZS-260226-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 19:17:15"} 
[2026-02-26 19:17:15] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5052,"order_number":"AZS-260226-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 19:17:15"} 
[2026-02-26 19:17:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":6,"order_id":5052,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24728},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":24729},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24730},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24732},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-26 19:17:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5052,"items_count":5} 
[2026-02-26 19:17:15] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":6,"items_to_remove":[24743,24744,24745,24746,24747,24748],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-26 19:17:15] local.INFO: PosOrderController::update - Item changes check {"order_id":5052,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["96|1|","62|1|","396|2|","61|1|","5|1|","3|1|"],"new_items_map_keys":["96|1|","62|1|","396|2|","5|1|","3|1|"]} 
[2026-02-26 19:17:15] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5052,"order_number":"AZS-260226-017","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-02-26 19:17:15","original_payment_amount":"0.00","grand_total":3503.0,"timestamp":"2026-02-26 19:17:15"} 
[2026-02-26 19:17:15] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5052,"order_number":"AZS-260226-017"} 
[2026-02-26 19:17:15] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-017","replaced_order_id":5052} 
[2026-02-26 19:17:15] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5052,"new_order_id":5053,"order_number":"AZS-260226-017","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-02-26 19:17:15","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-02-26 19:17:15"} 
[2026-02-26 19:17:15] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5053,"items_count":5,"items":[{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":62,"quantity":1,"price":1499.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-02-26 19:17:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5053,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5053}} 
[2026-02-26 19:17:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5053,"item_index":0,"menu_item_id":96} 
[2026-02-26 19:17:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5053,"item_index":1,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":1499.0,"discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5053}} 
[2026-02-26 19:17:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5053,"item_index":1,"menu_item_id":62} 
[2026-02-26 19:17:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5053,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5053}} 
[2026-02-26 19:17:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5053,"item_index":2,"menu_item_id":396} 
[2026-02-26 19:17:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5053,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5053}} 
[2026-02-26 19:17:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5053,"item_index":3,"menu_item_id":5} 
[2026-02-26 19:17:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5053,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5053}} 
[2026-02-26 19:17:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5053,"item_index":4,"menu_item_id":3} 
[2026-02-26 19:17:15] local.ERROR: Error tracking recipe usage for order 5053: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5053, 96, 77, 1, 1, 0.00, Order #AZS-260226-017 - 1x Chicken Karahi - Half, 2026-02-26 19:17:15, 2026-02-26 19:17:15))  
[2026-02-26 19:17:15] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5052,"new_order_id":5053,"order_number":"AZS-260226-017"} 
[2026-02-26 19:17:15] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5052,"new_order_id":5053,"order_number":"AZS-260226-017","route":"api/orders/5052"} 
[2026-02-26 19:18:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-26T07:18:09.130Z","date_to":"2026-02-26T19:18:09.130Z","per_page":"100"} 
[2026-02-26 19:18:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":43,"count":43,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260226-017","AZS-260226-017","AZS-260226-017","AZS-260226-016","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-013","AZS-260226-013","AZS-260226-013","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-010","AZS-260226-010","AZS-260226-010","AZS-260226-009","AZS-260226-008","AZS-260226-008","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-006","AZS-260226-005","AZS-260226-004","AZS-260226-004","AZS-260226-003","AZS-260226-003","AZS-260226-002","AZS-260226-002","AZS-260226-001"],"order_statuses":["paid","changed","changed","paid","pending","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","paid","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":26,"paid_count":16,"unpaid_count":1,"unique_order_numbers":17} 
[2026-02-26 19:18:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-26T07:18:09.120Z","date_to":"2026-02-26T19:18:09.120Z","per_page":"100"} 
[2026-02-26 19:18:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":43,"count":43,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260226-017","AZS-260226-017","AZS-260226-017","AZS-260226-016","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-013","AZS-260226-013","AZS-260226-013","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-010","AZS-260226-010","AZS-260226-010","AZS-260226-009","AZS-260226-008","AZS-260226-008","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-006","AZS-260226-005","AZS-260226-004","AZS-260226-004","AZS-260226-003","AZS-260226-003","AZS-260226-002","AZS-260226-002","AZS-260226-001"],"order_statuses":["paid","changed","changed","paid","pending","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","paid","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":26,"paid_count":16,"unpaid_count":1,"unique_order_numbers":17} 
[2026-02-26 19:18:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-26T07:18:09.120Z","date_to":"2026-02-26T19:18:09.120Z","per_page":"100"} 
[2026-02-26 19:18:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":43,"count":43,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260226-017","AZS-260226-017","AZS-260226-017","AZS-260226-016","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-013","AZS-260226-013","AZS-260226-013","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-010","AZS-260226-010","AZS-260226-010","AZS-260226-009","AZS-260226-008","AZS-260226-008","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-006","AZS-260226-005","AZS-260226-004","AZS-260226-004","AZS-260226-003","AZS-260226-003","AZS-260226-002","AZS-260226-002","AZS-260226-001"],"order_statuses":["paid","changed","changed","paid","pending","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","paid","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":26,"paid_count":16,"unpaid_count":1,"unique_order_numbers":17} 
[2026-02-26 19:29:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5051,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":24733},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24734},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24735},{"menu_item_id":398,"quantity":250,"price":2,"discount_percent":0,"notes":null,"id":24736},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":24737},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":24738},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24739},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24740},{"menu_item_id":23,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":24741},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":24742}],"validated_items":[{"id":24733,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":24734,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24735,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24736,"menu_item_id":398,"quantity":250,"price":2,"discount_percent":0,"notes":null},{"id":24737,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":24738,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":24739,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24740,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24741,"menu_item_id":23,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":24742,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null}]} 
[2026-02-26 19:29:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5051,"items_count":10} 
[2026-02-26 19:29:25] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24733,"menu_item_id":2,"quantity":2},{"id":24734,"menu_item_id":5,"quantity":1},{"id":24735,"menu_item_id":96,"quantity":1},{"id":24736,"menu_item_id":398,"quantity":250},{"id":24737,"menu_item_id":396,"quantity":3},{"id":24738,"menu_item_id":61,"quantity":3},{"id":24739,"menu_item_id":56,"quantity":1},{"id":24740,"menu_item_id":6,"quantity":2},{"id":24741,"menu_item_id":23,"quantity":2},{"id":24742,"menu_item_id":29,"quantity":1}]} 
[2026-02-26 19:29:25] local.INFO: PosOrderController::update - Item changes check {"order_id":5051,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["2|2|","5|1|","96|1|","398|250|","396|3|","61|3|","56|1|","6|2|","23|2|","29|1|"],"new_items_map_keys":["2|2|","5|1|","96|1|","398|250|","396|3|","61|3|","56|1|","6|2|","23|2|","29|1|"]} 
[2026-02-26 19:29:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5051,"order_number":"AZS-260226-015"} 
[2026-02-26 19:29:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5051,"order_number":"AZS-260226-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 19:29:25"} 
[2026-02-26 20:03:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5051,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":24733},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24734},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24735},{"menu_item_id":398,"quantity":250,"price":2,"discount_percent":0,"notes":null,"id":24736},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":24737},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":24738},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24739},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24740},{"menu_item_id":23,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":24741},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":24742}],"validated_items":[{"id":24733,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":24734,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24735,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24736,"menu_item_id":398,"quantity":250,"price":2,"discount_percent":0,"notes":null},{"id":24737,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":24738,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":24739,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24740,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24741,"menu_item_id":23,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":24742,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null}]} 
[2026-02-26 20:03:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5051,"items_count":10} 
[2026-02-26 20:03:01] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24733,"menu_item_id":2,"quantity":2},{"id":24734,"menu_item_id":5,"quantity":1},{"id":24735,"menu_item_id":96,"quantity":1},{"id":24736,"menu_item_id":398,"quantity":250},{"id":24737,"menu_item_id":396,"quantity":3},{"id":24738,"menu_item_id":61,"quantity":3},{"id":24739,"menu_item_id":56,"quantity":1},{"id":24740,"menu_item_id":6,"quantity":2},{"id":24741,"menu_item_id":23,"quantity":2},{"id":24742,"menu_item_id":29,"quantity":1}]} 
[2026-02-26 20:03:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5051,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["2|2|","5|1|","96|1|","398|250|","396|3|","61|3|","56|1|","6|2|","23|2|","29|1|"],"new_items_map_keys":["2|2|","5|1|","96|1|","398|250|","396|3|","61|3|","56|1|","6|2|","23|2|","29|1|"]} 
[2026-02-26 20:03:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5051,"order_number":"AZS-260226-015"} 
[2026-02-26 20:03:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5051,"order_number":"AZS-260226-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 20:03:01"} 
[2026-02-26 20:03:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5051,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":24733},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24734},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24735},{"menu_item_id":398,"quantity":250,"price":2,"discount_percent":0,"notes":null,"id":24736},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":24737},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":24738},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24739},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24740},{"menu_item_id":23,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":24741},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":24742}],"validated_items":[{"id":24733,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":24734,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24735,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24736,"menu_item_id":398,"quantity":250,"price":2,"discount_percent":0,"notes":null},{"id":24737,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":24738,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":24739,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24740,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24741,"menu_item_id":23,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":24742,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null}]} 
[2026-02-26 20:03:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5051,"items_count":10} 
[2026-02-26 20:03:11] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24733,"menu_item_id":2,"quantity":2},{"id":24734,"menu_item_id":5,"quantity":1},{"id":24735,"menu_item_id":96,"quantity":1},{"id":24736,"menu_item_id":398,"quantity":250},{"id":24737,"menu_item_id":396,"quantity":3},{"id":24738,"menu_item_id":61,"quantity":3},{"id":24739,"menu_item_id":56,"quantity":1},{"id":24740,"menu_item_id":6,"quantity":2},{"id":24741,"menu_item_id":23,"quantity":2},{"id":24742,"menu_item_id":29,"quantity":1}]} 
[2026-02-26 20:03:11] local.INFO: PosOrderController::update - Item changes check {"order_id":5051,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["2|2|","5|1|","96|1|","398|250|","396|3|","61|3|","56|1|","6|2|","23|2|","29|1|"],"new_items_map_keys":["2|2|","5|1|","96|1|","398|250|","396|3|","61|3|","56|1|","6|2|","23|2|","29|1|"]} 
[2026-02-26 20:03:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5051,"order_number":"AZS-260226-015"} 
[2026-02-26 20:03:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5051,"order_number":"AZS-260226-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 20:03:11"} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5051,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null,"id":24733},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24734},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":24735},{"menu_item_id":398,"quantity":250,"discount_percent":0,"notes":null,"id":24736},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":24737},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24738},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24739},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":24740},{"menu_item_id":23,"quantity":2,"discount_percent":0,"notes":null,"id":24741},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null,"id":24742}],"validated_items":[{"id":24733,"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"id":24734,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":24735,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":24736,"menu_item_id":398,"quantity":250,"discount_percent":0,"notes":null},{"id":24737,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":24738,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":24739,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":24740,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"id":24741,"menu_item_id":23,"quantity":2,"discount_percent":0,"notes":null},{"id":24742,"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5051,"items_count":10} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24733,"menu_item_id":2,"quantity":2},{"id":24734,"menu_item_id":5,"quantity":1},{"id":24735,"menu_item_id":96,"quantity":1},{"id":24736,"menu_item_id":398,"quantity":250},{"id":24737,"menu_item_id":396,"quantity":3},{"id":24738,"menu_item_id":61,"quantity":1},{"id":24739,"menu_item_id":56,"quantity":1},{"id":24740,"menu_item_id":6,"quantity":2},{"id":24741,"menu_item_id":23,"quantity":2},{"id":24742,"menu_item_id":29,"quantity":1}]} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5051,"has_item_changes":true,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["2|2|","5|1|","96|1|","398|250|","396|3|","61|3|","56|1|","6|2|","23|2|","29|1|"],"new_items_map_keys":["2|2|","5|1|","96|1|","398|250|","396|3|","61|1|","56|1|","6|2|","23|2|","29|1|"]} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5051,"order_number":"AZS-260226-015"} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-015","replaced_order_id":5051} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5054,"items_count":10,"items":[{"menu_item_id":2,"quantity":2,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":398,"quantity":250,"price":"2.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"},{"menu_item_id":23,"quantity":2,"price":"249.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"}]} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5054,"item_index":0,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5054}} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5054,"item_index":0,"menu_item_id":2} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5054,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5054}} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5054,"item_index":1,"menu_item_id":5} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5054,"item_index":2,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5054}} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5054,"item_index":2,"menu_item_id":96} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5054,"item_index":3,"item_data":{"menu_item_id":398,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL CHICKEN 1 GRAM","quantity":250,"price":"2.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5054}} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5054,"item_index":3,"menu_item_id":398} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5054,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5054}} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5054,"item_index":4,"menu_item_id":396} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5054,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5054}} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5054,"item_index":5,"menu_item_id":61} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5054,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5054}} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5054,"item_index":6,"menu_item_id":56} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5054,"item_index":7,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5054}} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5054,"item_index":7,"menu_item_id":6} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5054,"item_index":8,"item_data":{"menu_item_id":23,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Vanilla","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5054}} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5054,"item_index":8,"menu_item_id":23} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5054,"item_index":9,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5054}} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5054,"item_index":9,"menu_item_id":29} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5051,"new_order_id":5054,"order_number":"AZS-260226-015"} 
[2026-02-26 20:04:46] local.INFO: RouteServiceProvider: Found direct replacement order {"old_order_id":5051,"new_order_id":5054,"order_number":"AZS-260226-015","method":"PUT","route":"api/orders/5051"} 
[2026-02-26 20:04:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5054,"item_index":0,"item_id":24733} 
[2026-02-26 20:04:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5054,"item_index":1,"item_id":24734} 
[2026-02-26 20:04:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5054,"item_index":2,"item_id":24735} 
[2026-02-26 20:04:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5054,"item_index":3,"item_id":24736} 
[2026-02-26 20:04:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5054,"item_index":4,"item_id":24737} 
[2026-02-26 20:04:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5054,"item_index":5,"item_id":24738} 
[2026-02-26 20:04:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5054,"item_index":6,"item_id":24739} 
[2026-02-26 20:04:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5054,"item_index":7,"item_id":24740} 
[2026-02-26 20:04:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5054,"item_index":8,"item_id":24741} 
[2026-02-26 20:04:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5054,"item_index":9,"item_id":24742} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5054,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null,"id":24733},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24734},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":24735},{"menu_item_id":398,"quantity":250,"discount_percent":0,"notes":null,"id":24736},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":24737},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24738},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24739},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":24740},{"menu_item_id":23,"quantity":2,"discount_percent":0,"notes":null,"id":24741},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null,"id":24742}],"validated_items":[{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":398,"quantity":250,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":23,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5054,"items_count":10} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":398,"quantity":250},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":23,"quantity":2},{"id":null,"menu_item_id":29,"quantity":1}]} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5054,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["2|2|","5|1|","96|1|","398|250|","396|3|","61|1|","56|1|","6|2|","23|2|","29|1|"],"new_items_map_keys":["2|2|","5|1|","96|1|","398|250|","396|3|","61|1|","56|1|","6|2|","23|2|","29|1|"]} 
[2026-02-26 20:04:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5054,"order_number":"AZS-260226-015"} 
[2026-02-26 20:04:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5054,"order_number":"AZS-260226-015","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-26 20:04:46"} 
[2026-02-26 20:05:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5054,"item_index":0,"item_id":24733} 
[2026-02-26 20:05:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5054,"item_index":1,"item_id":24734} 
[2026-02-26 20:05:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5054,"item_index":2,"item_id":24735} 
[2026-02-26 20:05:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5054,"item_index":3,"item_id":24736} 
[2026-02-26 20:05:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5054,"item_index":4,"item_id":24737} 
[2026-02-26 20:05:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5054,"item_index":5,"item_id":24738} 
[2026-02-26 20:05:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5054,"item_index":6,"item_id":24739} 
[2026-02-26 20:05:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5054,"item_index":7,"item_id":24740} 
[2026-02-26 20:05:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5054,"item_index":8,"item_id":24741} 
[2026-02-26 20:05:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5054,"item_index":9,"item_id":24742} 
[2026-02-26 20:05:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5054,"order_number":"AZS-260226-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 20:05:27"} 
[2026-02-26 20:05:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5054,"order_number":"AZS-260226-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 20:05:27"} 
[2026-02-26 20:05:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5054,"order_number":"AZS-260226-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 20:05:27"} 
[2026-02-26 20:05:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5054,"order_number":"AZS-260226-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 20:05:27"} 
[2026-02-26 20:05:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":10,"order_id":5054,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":24733},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24734},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24735},{"menu_item_id":398,"quantity":250,"price":2,"discount_percent":0,"notes":null,"id":24736},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":24737},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24738},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24739},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24740},{"menu_item_id":23,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":24741},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":24742}],"validated_items":[{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":398,"quantity":250,"price":2,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":23,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null}]} 
[2026-02-26 20:05:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5054,"items_count":10} 
[2026-02-26 20:05:27] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":10,"items_to_remove":[24754,24755,24756,24757,24758,24759,24760,24761,24762,24763],"items":[{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":398,"quantity":250},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":23,"quantity":2},{"id":null,"menu_item_id":29,"quantity":1}]} 
[2026-02-26 20:05:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5054,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["2|2|","5|1|","96|1|","398|250|","396|3|","61|1|","56|1|","6|2|","23|2|","29|1|"],"new_items_map_keys":["2|2|","5|1|","96|1|","398|250|","396|3|","61|1|","56|1|","6|2|","23|2|","29|1|"]} 
[2026-02-26 20:05:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5054,"order_number":"AZS-260226-015"} 
[2026-02-26 20:05:27] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5054,"order_number":"AZS-260226-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-26 20:05:27","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-26 20:05:27"} 
[2026-02-26 20:05:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5054,"order_number":"AZS-260226-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-26 20:05:27"} 
[2026-02-26 20:05:27] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5054,"order_number":"AZS-260226-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-26 20:05:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-02-26 20:05:27"} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5056,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":24770},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":24771},{"menu_item_id":62,"quantity":2,"discount_percent":0,"notes":null,"id":24772},{"menu_item_id":54,"quantity":2,"discount_percent":0,"notes":null,"id":24773},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null,"id":24774},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":24775},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":24776},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":24777},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":24778},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24770,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":24771,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":24772,"menu_item_id":62,"quantity":2,"discount_percent":0,"notes":null},{"id":24773,"menu_item_id":54,"quantity":2,"discount_percent":0,"notes":null},{"id":24774,"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null},{"id":24775,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":24776,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":24777,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":24778,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5056,"items_count":10} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24770,"menu_item_id":114,"quantity":1},{"id":24771,"menu_item_id":106,"quantity":1},{"id":24772,"menu_item_id":62,"quantity":2},{"id":24773,"menu_item_id":54,"quantity":2},{"id":24774,"menu_item_id":52,"quantity":2},{"id":24775,"menu_item_id":396,"quantity":4},{"id":24776,"menu_item_id":61,"quantity":3},{"id":24777,"menu_item_id":56,"quantity":2},{"id":24778,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":64,"quantity":1}]} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5056,"has_item_changes":true,"old_items_count":9,"new_items_count":10,"old_items_map_keys":["114|1|","106|1|","62|2|","54|2|","52|2|","396|4|","61|3|","56|2|","5|2|"],"new_items_map_keys":["114|1|","106|1|","62|2|","54|2|","52|2|","396|4|","61|3|","56|2|","5|2|","64|1|"]} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5056,"order_number":"AZS-260226-019"} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-019","replaced_order_id":5056} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5057,"items_count":10,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":62,"quantity":2,"price":"1499.00"},{"menu_item_id":54,"quantity":2,"price":"159.00"},{"menu_item_id":52,"quantity":2,"price":"70.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"}]} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5057,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5057}} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5057,"item_index":0,"menu_item_id":114} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5057,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5057}} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5057,"item_index":1,"menu_item_id":106} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5057,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":2,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":2998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5057}} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5057,"item_index":2,"menu_item_id":62} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5057,"item_index":3,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5057}} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5057,"item_index":3,"menu_item_id":54} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5057,"item_index":4,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5057}} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5057,"item_index":4,"menu_item_id":52} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5057,"item_index":5,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5057}} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5057,"item_index":5,"menu_item_id":396} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5057,"item_index":6,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5057}} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5057,"item_index":6,"menu_item_id":61} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5057,"item_index":7,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5057}} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5057,"item_index":7,"menu_item_id":56} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5057,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5057}} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5057,"item_index":8,"menu_item_id":5} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5057,"item_index":9,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5057}} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5057,"item_index":9,"menu_item_id":64} 
[2026-02-26 20:27:41] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5056,"new_order_id":5057,"order_number":"AZS-260226-019"} 
[2026-02-26 20:27:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5057,"item_index":0,"item_id":24770} 
[2026-02-26 20:27:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5057,"item_index":1,"item_id":24771} 
[2026-02-26 20:27:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5057,"item_index":2,"item_id":24772} 
[2026-02-26 20:27:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5057,"item_index":3,"item_id":24773} 
[2026-02-26 20:27:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5057,"item_index":4,"item_id":24774} 
[2026-02-26 20:27:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5057,"item_index":5,"item_id":24775} 
[2026-02-26 20:27:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5057,"item_index":6,"item_id":24776} 
[2026-02-26 20:27:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5057,"item_index":7,"item_id":24777} 
[2026-02-26 20:27:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5057,"item_index":8,"item_id":24778} 
[2026-02-26 20:27:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":10,"order_id":5057,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":24770},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":24771},{"menu_item_id":62,"quantity":2,"discount_percent":0,"notes":null,"id":24772},{"menu_item_id":54,"quantity":2,"discount_percent":0,"notes":null,"id":24773},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null,"id":24774},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":24775},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":24776},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":24777},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":24778},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 20:27:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5057,"items_count":10} 
[2026-02-26 20:27:47] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":10,"items_to_remove":[24779,24780,24781,24782,24783,24784,24785,24786,24787,24788],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":62,"quantity":2},{"id":null,"menu_item_id":54,"quantity":2},{"id":null,"menu_item_id":52,"quantity":2},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":64,"quantity":1}]} 
[2026-02-26 20:27:47] local.INFO: PosOrderController::update - Item changes check {"order_id":5057,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["114|1|","106|1|","62|2|","54|2|","52|2|","396|4|","61|3|","56|2|","5|2|","64|1|"],"new_items_map_keys":["114|1|","106|1|","62|2|","54|2|","52|2|","396|4|","61|3|","56|2|","5|2|","64|1|"]} 
[2026-02-26 20:27:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5057,"order_number":"AZS-260226-019"} 
[2026-02-26 20:27:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5057,"order_number":"AZS-260226-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-26 20:27:47"} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":5057,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":24779},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":24780},{"menu_item_id":62,"quantity":2,"discount_percent":0,"notes":null,"id":24781},{"menu_item_id":54,"quantity":2,"discount_percent":0,"notes":null,"id":24782},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null,"id":24783},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":24784},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":24785},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":24786},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":24787},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":24788},{"menu_item_id":66,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24779,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":24780,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":24781,"menu_item_id":62,"quantity":2,"discount_percent":0,"notes":null},{"id":24782,"menu_item_id":54,"quantity":2,"discount_percent":0,"notes":null},{"id":24783,"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null},{"id":24784,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":24785,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":24786,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":24787,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":24788,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":66,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5057,"items_count":11} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24779,"menu_item_id":114,"quantity":1},{"id":24780,"menu_item_id":106,"quantity":1},{"id":24781,"menu_item_id":62,"quantity":2},{"id":24782,"menu_item_id":54,"quantity":2},{"id":24783,"menu_item_id":52,"quantity":2},{"id":24784,"menu_item_id":396,"quantity":4},{"id":24785,"menu_item_id":61,"quantity":3},{"id":24786,"menu_item_id":56,"quantity":2},{"id":24787,"menu_item_id":5,"quantity":2},{"id":24788,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":66,"quantity":1}]} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Item changes check {"order_id":5057,"has_item_changes":true,"old_items_count":10,"new_items_count":11,"old_items_map_keys":["114|1|","106|1|","62|2|","54|2|","52|2|","396|4|","61|3|","56|2|","5|2|","64|1|"],"new_items_map_keys":["114|1|","106|1|","62|2|","54|2|","52|2|","396|4|","61|3|","56|2|","5|2|","64|1|","66|1|"]} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5057,"order_number":"AZS-260226-019"} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-019","replaced_order_id":5057} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5058,"items_count":11,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":62,"quantity":2,"price":"1499.00"},{"menu_item_id":54,"quantity":2,"price":"159.00"},{"menu_item_id":52,"quantity":2,"price":"70.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":66,"quantity":1,"price":"1399.00"}]} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5058,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5058}} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5058,"item_index":0,"menu_item_id":114} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5058,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5058}} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5058,"item_index":1,"menu_item_id":106} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5058,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":2,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":2998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5058}} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5058,"item_index":2,"menu_item_id":62} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5058,"item_index":3,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5058}} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5058,"item_index":3,"menu_item_id":54} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5058,"item_index":4,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5058}} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5058,"item_index":4,"menu_item_id":52} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5058,"item_index":5,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5058}} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5058,"item_index":5,"menu_item_id":396} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5058,"item_index":6,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5058}} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5058,"item_index":6,"menu_item_id":61} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5058,"item_index":7,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5058}} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5058,"item_index":7,"menu_item_id":56} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5058,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5058}} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5058,"item_index":8,"menu_item_id":5} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5058,"item_index":9,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5058}} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5058,"item_index":9,"menu_item_id":64} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5058,"item_index":10,"item_data":{"menu_item_id":66,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Cheese Kabab (4 pcs)","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5058}} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5058,"item_index":10,"menu_item_id":66} 
[2026-02-26 20:30:07] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5057,"new_order_id":5058,"order_number":"AZS-260226-019"} 
[2026-02-26 20:47:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":5055,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":24764},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null,"id":24765},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":24766},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24767},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24769}],"validated_items":[{"id":24764,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":24765,"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null},{"id":24766,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":24767,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":24769,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 20:47:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5055,"items_count":5} 
[2026-02-26 20:47:45] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[24768],"items":[{"id":24764,"menu_item_id":105,"quantity":1},{"id":24765,"menu_item_id":51,"quantity":1},{"id":24766,"menu_item_id":396,"quantity":1},{"id":24767,"menu_item_id":61,"quantity":1},{"id":24769,"menu_item_id":5,"quantity":1}]} 
[2026-02-26 20:47:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5055,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["105|1|","51|1|","396|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","51|1|","396|1|","61|1|","5|1|"]} 
[2026-02-26 20:47:45] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5055,"order_number":"AZS-260226-018"} 
[2026-02-26 20:47:45] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-018","replaced_order_id":5055} 
[2026-02-26 20:47:45] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5060,"items_count":5,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":51,"quantity":1,"price":"199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-26 20:47:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5060,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5060}} 
[2026-02-26 20:47:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5060,"item_index":0,"menu_item_id":105} 
[2026-02-26 20:47:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5060,"item_index":1,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5060}} 
[2026-02-26 20:47:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5060,"item_index":1,"menu_item_id":51} 
[2026-02-26 20:47:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5060,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5060}} 
[2026-02-26 20:47:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5060,"item_index":2,"menu_item_id":396} 
[2026-02-26 20:47:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5060,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5060}} 
[2026-02-26 20:47:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5060,"item_index":3,"menu_item_id":61} 
[2026-02-26 20:47:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5060,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5060}} 
[2026-02-26 20:47:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5060,"item_index":4,"menu_item_id":5} 
[2026-02-26 20:47:45] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5055,"new_order_id":5060,"order_number":"AZS-260226-018"} 
[2026-02-26 21:04:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5060,"item_index":0,"item_id":24764} 
[2026-02-26 21:04:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5060,"item_index":1,"item_id":24765} 
[2026-02-26 21:04:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5060,"item_index":2,"item_id":24766} 
[2026-02-26 21:04:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5060,"item_index":3,"item_id":24767} 
[2026-02-26 21:04:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5060,"item_index":4,"item_id":24769} 
[2026-02-26 21:04:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":5,"order_id":5060,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":24764},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null,"id":24765},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":24766},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24767},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24769},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 21:04:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5060,"items_count":6} 
[2026-02-26 21:04:39] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":5,"items_to_remove":[24801,24802,24803,24804,24805],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":51,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-26 21:04:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5060,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["105|1|","51|1|","396|1|","61|1|","5|1|"],"new_items_map_keys":["105|1|","51|1|","396|1|","61|1|","5|1|","3|1|"]} 
[2026-02-26 21:04:39] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5060,"order_number":"AZS-260226-018"} 
[2026-02-26 21:04:39] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-018","replaced_order_id":5060} 
[2026-02-26 21:04:39] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5061,"items_count":6,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":51,"quantity":1,"price":"199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-26 21:04:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5061,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5061}} 
[2026-02-26 21:04:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5061,"item_index":0,"menu_item_id":105} 
[2026-02-26 21:04:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5061,"item_index":1,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5061}} 
[2026-02-26 21:04:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5061,"item_index":1,"menu_item_id":51} 
[2026-02-26 21:04:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5061,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5061}} 
[2026-02-26 21:04:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5061,"item_index":2,"menu_item_id":396} 
[2026-02-26 21:04:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5061,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5061}} 
[2026-02-26 21:04:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5061,"item_index":3,"menu_item_id":61} 
[2026-02-26 21:04:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5061,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5061}} 
[2026-02-26 21:04:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5061,"item_index":4,"menu_item_id":5} 
[2026-02-26 21:04:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5061,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5061}} 
[2026-02-26 21:04:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5061,"item_index":5,"menu_item_id":3} 
[2026-02-26 21:04:39] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5060,"new_order_id":5061,"order_number":"AZS-260226-018"} 
[2026-02-26 21:14:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5059,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":24800},{"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":24800,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-26 21:14:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5059,"items_count":3} 
[2026-02-26 21:14:20] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24800,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":49,"quantity":2},{"id":null,"menu_item_id":286,"quantity":2}]} 
[2026-02-26 21:14:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5059,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["106|1|"],"new_items_map_keys":["106|1|","49|2|","286|2|"]} 
[2026-02-26 21:14:20] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5059,"order_number":"AZS-260226-020"} 
[2026-02-26 21:14:20] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-020","replaced_order_id":5059} 
[2026-02-26 21:14:20] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5062,"items_count":3,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":49,"quantity":2,"price":"70.00"},{"menu_item_id":286,"quantity":2,"price":"15.00"}]} 
[2026-02-26 21:14:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5062,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5062}} 
[2026-02-26 21:14:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5062,"item_index":0,"menu_item_id":106} 
[2026-02-26 21:14:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5062,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5062}} 
[2026-02-26 21:14:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5062,"item_index":1,"menu_item_id":49} 
[2026-02-26 21:14:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5062,"item_index":2,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":2,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":30.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5062}} 
[2026-02-26 21:14:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5062,"item_index":2,"menu_item_id":286} 
[2026-02-26 21:14:20] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5059,"new_order_id":5062,"order_number":"AZS-260226-020"} 
[2026-02-26 21:14:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5062,"item_index":0,"item_id":24800} 
[2026-02-26 21:14:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":5062,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":24800},{"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-26 21:14:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5062,"items_count":3} 
[2026-02-26 21:14:25] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[24812,24813,24814],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":49,"quantity":2},{"id":null,"menu_item_id":286,"quantity":2}]} 
[2026-02-26 21:14:25] local.INFO: PosOrderController::update - Item changes check {"order_id":5062,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["106|1|","49|2|","286|2|"],"new_items_map_keys":["106|1|","49|2|","286|2|"]} 
[2026-02-26 21:14:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5062,"order_number":"AZS-260226-020"} 
[2026-02-26 21:14:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5062,"order_number":"AZS-260226-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-02-26 21:14:25"} 
[2026-02-26 21:16:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5062,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":24812},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":24813},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":24814}],"validated_items":[{"id":24812,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":24813,"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":24814,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null}]} 
[2026-02-26 21:16:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5062,"items_count":3} 
[2026-02-26 21:16:57] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24812,"menu_item_id":106,"quantity":1},{"id":24813,"menu_item_id":49,"quantity":2},{"id":24814,"menu_item_id":286,"quantity":2}]} 
[2026-02-26 21:16:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5062,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["106|1|","49|2|","286|2|"],"new_items_map_keys":["106|1|","49|2|","286|2|"]} 
[2026-02-26 21:16:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5062,"order_number":"AZS-260226-020"} 
[2026-02-26 21:16:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5062,"order_number":"AZS-260226-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 21:16:57"} 
[2026-02-26 21:17:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5062,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":24812},{"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null,"id":24813},{"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null,"id":24814}],"validated_items":[{"id":24812,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":24813,"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null},{"id":24814,"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-26 21:17:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5062,"items_count":3} 
[2026-02-26 21:17:12] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24812,"menu_item_id":106,"quantity":1},{"id":24813,"menu_item_id":49,"quantity":2},{"id":24814,"menu_item_id":286,"quantity":2}]} 
[2026-02-26 21:17:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5062,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["106|1|","49|2|","286|2|"],"new_items_map_keys":["106|1|","49|2|","286|2|"]} 
[2026-02-26 21:17:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5062,"order_number":"AZS-260226-020"} 
[2026-02-26 21:17:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5062,"order_number":"AZS-260226-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-02-26 21:17:12"} 
[2026-02-26 21:17:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-26T09:17:36.320Z","date_to":"2026-02-26T21:17:36.320Z","per_page":"100"} 
[2026-02-26 21:17:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":52,"count":52,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260226-020","AZS-260226-020","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-018","AZS-260226-018","AZS-260226-018","AZS-260226-017","AZS-260226-017","AZS-260226-017","AZS-260226-016","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-013","AZS-260226-013","AZS-260226-013","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-010","AZS-260226-010","AZS-260226-010","AZS-260226-009","AZS-260226-008","AZS-260226-008","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-006","AZS-260226-005","AZS-260226-004","AZS-260226-004","AZS-260226-003","AZS-260226-003","AZS-260226-002","AZS-260226-002","AZS-260226-001"],"order_statuses":["pending","changed","pending","changed","changed","pending","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","paid","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":32,"paid_count":17,"unpaid_count":3,"unique_order_numbers":20} 
[2026-02-26 21:17:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-26T09:17:36.335Z","date_to":"2026-02-26T21:17:36.335Z","per_page":"100"} 
[2026-02-26 21:17:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":52,"count":52,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260226-020","AZS-260226-020","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-018","AZS-260226-018","AZS-260226-018","AZS-260226-017","AZS-260226-017","AZS-260226-017","AZS-260226-016","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-013","AZS-260226-013","AZS-260226-013","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-010","AZS-260226-010","AZS-260226-010","AZS-260226-009","AZS-260226-008","AZS-260226-008","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-006","AZS-260226-005","AZS-260226-004","AZS-260226-004","AZS-260226-003","AZS-260226-003","AZS-260226-002","AZS-260226-002","AZS-260226-001"],"order_statuses":["pending","changed","pending","changed","changed","pending","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","paid","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":32,"paid_count":17,"unpaid_count":3,"unique_order_numbers":20} 
[2026-02-26 21:17:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-26T09:17:36.320Z","date_to":"2026-02-26T21:17:36.320Z","per_page":"100"} 
[2026-02-26 21:17:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":52,"count":52,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260226-020","AZS-260226-020","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-018","AZS-260226-018","AZS-260226-018","AZS-260226-017","AZS-260226-017","AZS-260226-017","AZS-260226-016","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-013","AZS-260226-013","AZS-260226-013","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-010","AZS-260226-010","AZS-260226-010","AZS-260226-009","AZS-260226-008","AZS-260226-008","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-006","AZS-260226-005","AZS-260226-004","AZS-260226-004","AZS-260226-003","AZS-260226-003","AZS-260226-002","AZS-260226-002","AZS-260226-001"],"order_statuses":["pending","changed","pending","changed","changed","pending","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","paid","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":32,"paid_count":17,"unpaid_count":3,"unique_order_numbers":20} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":5058,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":24789},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":24790},{"menu_item_id":62,"quantity":2,"discount_percent":0,"notes":null,"id":24791},{"menu_item_id":54,"quantity":2,"discount_percent":0,"notes":null,"id":24792},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null,"id":24793},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":24794},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":24795},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":24796},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":24797},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":24798},{"menu_item_id":66,"quantity":1,"discount_percent":0,"notes":null,"id":24799},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":24789,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":24790,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":24791,"menu_item_id":62,"quantity":2,"discount_percent":0,"notes":null},{"id":24792,"menu_item_id":54,"quantity":2,"discount_percent":0,"notes":null},{"id":24793,"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null},{"id":24794,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":24795,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":24796,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":24797,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":24798,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":24799,"menu_item_id":66,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5058,"items_count":12} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24789,"menu_item_id":114,"quantity":1},{"id":24790,"menu_item_id":106,"quantity":1},{"id":24791,"menu_item_id":62,"quantity":2},{"id":24792,"menu_item_id":54,"quantity":2},{"id":24793,"menu_item_id":52,"quantity":2},{"id":24794,"menu_item_id":396,"quantity":4},{"id":24795,"menu_item_id":61,"quantity":3},{"id":24796,"menu_item_id":56,"quantity":2},{"id":24797,"menu_item_id":5,"quantity":2},{"id":24798,"menu_item_id":64,"quantity":1},{"id":24799,"menu_item_id":66,"quantity":1},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5058,"has_item_changes":true,"old_items_count":11,"new_items_count":12,"old_items_map_keys":["114|1|","106|1|","62|2|","54|2|","52|2|","396|4|","61|3|","56|2|","5|2|","64|1|","66|1|"],"new_items_map_keys":["114|1|","106|1|","62|2|","54|2|","52|2|","396|4|","61|3|","56|2|","5|2|","64|1|","66|1|","3|2|"]} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5058,"order_number":"AZS-260226-019"} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-019","replaced_order_id":5058} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5063,"items_count":12,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":62,"quantity":2,"price":"1499.00"},{"menu_item_id":54,"quantity":2,"price":"159.00"},{"menu_item_id":52,"quantity":2,"price":"70.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":66,"quantity":1,"price":"1399.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5063,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5063}} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5063,"item_index":0,"menu_item_id":114} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5063,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5063}} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5063,"item_index":1,"menu_item_id":106} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5063,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":2,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":2998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5063}} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5063,"item_index":2,"menu_item_id":62} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5063,"item_index":3,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5063}} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5063,"item_index":3,"menu_item_id":54} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5063,"item_index":4,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5063}} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5063,"item_index":4,"menu_item_id":52} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5063,"item_index":5,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5063}} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5063,"item_index":5,"menu_item_id":396} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5063,"item_index":6,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5063}} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5063,"item_index":6,"menu_item_id":61} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5063,"item_index":7,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5063}} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5063,"item_index":7,"menu_item_id":56} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5063,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5063}} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5063,"item_index":8,"menu_item_id":5} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5063,"item_index":9,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5063}} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5063,"item_index":9,"menu_item_id":64} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5063,"item_index":10,"item_data":{"menu_item_id":66,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Cheese Kabab (4 pcs)","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5063}} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5063,"item_index":10,"menu_item_id":66} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5063,"item_index":11,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5063}} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5063,"item_index":11,"menu_item_id":3} 
[2026-02-26 21:23:12] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5058,"new_order_id":5063,"order_number":"AZS-260226-019"} 
[2026-02-26 21:25:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5061,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":24806},{"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24807},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24808},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24809},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24810},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24811}],"validated_items":[{"id":24806,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":24807,"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24808,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":24809,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24810,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24811,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-26 21:25:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5061,"items_count":6} 
[2026-02-26 21:25:05] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24806,"menu_item_id":105,"quantity":1},{"id":24807,"menu_item_id":51,"quantity":1},{"id":24808,"menu_item_id":396,"quantity":1},{"id":24809,"menu_item_id":61,"quantity":1},{"id":24810,"menu_item_id":5,"quantity":1},{"id":24811,"menu_item_id":3,"quantity":1}]} 
[2026-02-26 21:25:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5061,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["105|1|","51|1|","396|1|","61|1|","5|1|","3|1|"],"new_items_map_keys":["105|1|","51|1|","396|1|","61|1|","5|1|","3|1|"]} 
[2026-02-26 21:25:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5061,"order_number":"AZS-260226-018"} 
[2026-02-26 21:25:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5061,"order_number":"AZS-260226-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 21:25:05"} 
[2026-02-26 21:25:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":5061,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":24806},{"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24807},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24808},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24809},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24811}],"validated_items":[{"id":24806,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":24807,"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24808,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":24809,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24811,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-26 21:25:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5061,"items_count":5} 
[2026-02-26 21:25:20] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[24810],"items":[{"id":24806,"menu_item_id":105,"quantity":1},{"id":24807,"menu_item_id":51,"quantity":1},{"id":24808,"menu_item_id":396,"quantity":1},{"id":24809,"menu_item_id":61,"quantity":1},{"id":24811,"menu_item_id":3,"quantity":1}]} 
[2026-02-26 21:25:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5061,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["105|1|","51|1|","396|1|","61|1|","5|1|","3|1|"],"new_items_map_keys":["105|1|","51|1|","396|1|","61|1|","3|1|"]} 
[2026-02-26 21:25:20] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5061,"order_number":"AZS-260226-018"} 
[2026-02-26 21:25:20] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-018","replaced_order_id":5061} 
[2026-02-26 21:25:20] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5064,"items_count":5,"items":[{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":51,"quantity":1,"price":199.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-02-26 21:25:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5064,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5064}} 
[2026-02-26 21:25:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5064,"item_index":0,"menu_item_id":105} 
[2026-02-26 21:25:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5064,"item_index":1,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5064}} 
[2026-02-26 21:25:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5064,"item_index":1,"menu_item_id":51} 
[2026-02-26 21:25:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5064,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5064}} 
[2026-02-26 21:25:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5064,"item_index":2,"menu_item_id":396} 
[2026-02-26 21:25:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5064,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5064}} 
[2026-02-26 21:25:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5064,"item_index":3,"menu_item_id":61} 
[2026-02-26 21:25:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5064,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5064}} 
[2026-02-26 21:25:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5064,"item_index":4,"menu_item_id":3} 
[2026-02-26 21:25:20] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5061,"new_order_id":5064,"order_number":"AZS-260226-018"} 
[2026-02-26 21:25:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5064,"item_index":0,"item_id":24806} 
[2026-02-26 21:25:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5064,"item_index":1,"item_id":24807} 
[2026-02-26 21:25:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5064,"item_index":2,"item_id":24808} 
[2026-02-26 21:25:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5064,"item_index":3,"item_id":24809} 
[2026-02-26 21:25:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5064,"item_index":4,"item_id":24811} 
[2026-02-26 21:25:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5064,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":24806},{"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24807},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24808},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24809},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24811}],"validated_items":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-26 21:25:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5064,"items_count":5} 
[2026-02-26 21:25:25] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[24827,24828,24829,24830,24831],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":51,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-26 21:25:25] local.INFO: PosOrderController::update - Item changes check {"order_id":5064,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","51|1|","396|1|","61|1|","3|1|"],"new_items_map_keys":["105|1|","51|1|","396|1|","61|1|","3|1|"]} 
[2026-02-26 21:25:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5064,"order_number":"AZS-260226-018"} 
[2026-02-26 21:25:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5064,"order_number":"AZS-260226-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 21:25:25"} 
[2026-02-26 21:28:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5064,"item_index":0,"item_id":24806} 
[2026-02-26 21:28:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5064,"item_index":1,"item_id":24807} 
[2026-02-26 21:28:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5064,"item_index":2,"item_id":24808} 
[2026-02-26 21:28:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5064,"item_index":3,"item_id":24809} 
[2026-02-26 21:28:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5064,"item_index":4,"item_id":24811} 
[2026-02-26 21:28:01] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5064,"order_number":"AZS-260226-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3114,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 21:28:01"} 
[2026-02-26 21:28:01] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5064,"order_number":"AZS-260226-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3114,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 21:28:01"} 
[2026-02-26 21:28:01] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5064,"order_number":"AZS-260226-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3114,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 21:28:01"} 
[2026-02-26 21:28:01] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5064,"order_number":"AZS-260226-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3114,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 21:28:01"} 
[2026-02-26 21:28:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5064,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":24806},{"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24807},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24808},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24809},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24811}],"validated_items":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-26 21:28:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5064,"items_count":5} 
[2026-02-26 21:28:01] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[24827,24828,24829,24830,24831],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":51,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-26 21:28:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5064,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","51|1|","396|1|","61|1|","3|1|"],"new_items_map_keys":["105|1|","51|1|","396|1|","61|1|","3|1|"]} 
[2026-02-26 21:28:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5064,"order_number":"AZS-260226-018"} 
[2026-02-26 21:28:01] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5064,"order_number":"AZS-260226-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3114,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-26 21:28:01","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-26 21:28:01"} 
[2026-02-26 21:28:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5064,"order_number":"AZS-260226-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-26 21:28:01"} 
[2026-02-26 21:28:01] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5064,"order_number":"AZS-260226-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3114.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-26 21:28:01","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3114,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3114.00","database_verification_match":true,"timestamp":"2026-02-26 21:28:01"} 
[2026-02-26 21:46:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":5063,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":24815},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":24816},{"menu_item_id":62,"quantity":2,"price":1499,"discount_percent":0,"notes":null,"id":24817},{"menu_item_id":54,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":24818},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":24819},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":24820},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":24821},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24822},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24823},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":24824},{"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":24825},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":24826}],"validated_items":[{"id":24815,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":24816,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":24817,"menu_item_id":62,"quantity":2,"price":1499,"discount_percent":0,"notes":null},{"id":24818,"menu_item_id":54,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":24819,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":24820,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":24821,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":24822,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24823,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24824,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":24825,"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":24826,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-26 21:46:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5063,"items_count":12} 
[2026-02-26 21:46:23] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24815,"menu_item_id":114,"quantity":1},{"id":24816,"menu_item_id":106,"quantity":1},{"id":24817,"menu_item_id":62,"quantity":2},{"id":24818,"menu_item_id":54,"quantity":2},{"id":24819,"menu_item_id":52,"quantity":2},{"id":24820,"menu_item_id":396,"quantity":4},{"id":24821,"menu_item_id":61,"quantity":3},{"id":24822,"menu_item_id":56,"quantity":2},{"id":24823,"menu_item_id":5,"quantity":1},{"id":24824,"menu_item_id":64,"quantity":1},{"id":24825,"menu_item_id":66,"quantity":1},{"id":24826,"menu_item_id":3,"quantity":2}]} 
[2026-02-26 21:46:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5063,"has_item_changes":true,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["114|1|","106|1|","62|2|","54|2|","52|2|","396|4|","61|3|","56|2|","5|2|","64|1|","66|1|","3|2|"],"new_items_map_keys":["114|1|","106|1|","62|2|","54|2|","52|2|","396|4|","61|3|","56|2|","5|1|","64|1|","66|1|","3|2|"]} 
[2026-02-26 21:46:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5063,"order_number":"AZS-260226-019"} 
[2026-02-26 21:46:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-019","replaced_order_id":5063} 
[2026-02-26 21:46:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5065,"items_count":12,"items":[{"menu_item_id":114,"quantity":1,"price":2299.0},{"menu_item_id":106,"quantity":1,"price":4199.0},{"menu_item_id":62,"quantity":2,"price":1499.0},{"menu_item_id":54,"quantity":2,"price":159.0},{"menu_item_id":52,"quantity":2,"price":70.0},{"menu_item_id":396,"quantity":4,"price":99.0},{"menu_item_id":61,"quantity":3,"price":199.0},{"menu_item_id":56,"quantity":2,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":64,"quantity":1,"price":999.0},{"menu_item_id":66,"quantity":1,"price":1399.0},{"menu_item_id":3,"quantity":2,"price":270.0}]} 
[2026-02-26 21:46:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5065,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5065}} 
[2026-02-26 21:46:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5065,"item_index":0,"menu_item_id":114} 
[2026-02-26 21:46:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5065,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":4199.0,"discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5065}} 
[2026-02-26 21:46:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5065,"item_index":1,"menu_item_id":106} 
[2026-02-26 21:46:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5065,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":2,"price":1499.0,"discount_percent":0.0,"discount_amount":0.0,"total":2998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5065}} 
[2026-02-26 21:46:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5065,"item_index":2,"menu_item_id":62} 
[2026-02-26 21:46:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5065,"item_index":3,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":2,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5065}} 
[2026-02-26 21:46:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5065,"item_index":3,"menu_item_id":54} 
[2026-02-26 21:46:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5065,"item_index":4,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5065}} 
[2026-02-26 21:46:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5065,"item_index":4,"menu_item_id":52} 
[2026-02-26 21:46:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5065,"item_index":5,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5065}} 
[2026-02-26 21:46:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5065,"item_index":5,"menu_item_id":396} 
[2026-02-26 21:46:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5065,"item_index":6,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5065}} 
[2026-02-26 21:46:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5065,"item_index":6,"menu_item_id":61} 
[2026-02-26 21:46:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5065,"item_index":7,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5065}} 
[2026-02-26 21:46:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5065,"item_index":7,"menu_item_id":56} 
[2026-02-26 21:46:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5065,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5065}} 
[2026-02-26 21:46:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5065,"item_index":8,"menu_item_id":5} 
[2026-02-26 21:46:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5065,"item_index":9,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":999.0,"discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5065}} 
[2026-02-26 21:46:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5065,"item_index":9,"menu_item_id":64} 
[2026-02-26 21:46:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5065,"item_index":10,"item_data":{"menu_item_id":66,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Cheese Kabab (4 pcs)","quantity":1,"price":1399.0,"discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5065}} 
[2026-02-26 21:46:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5065,"item_index":10,"menu_item_id":66} 
[2026-02-26 21:46:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5065,"item_index":11,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5065}} 
[2026-02-26 21:46:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5065,"item_index":11,"menu_item_id":3} 
[2026-02-26 21:46:24] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5063,"new_order_id":5065,"order_number":"AZS-260226-019"} 
[2026-02-26 21:46:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5065,"item_index":0,"item_id":24815} 
[2026-02-26 21:46:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5065,"item_index":1,"item_id":24816} 
[2026-02-26 21:46:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5065,"item_index":2,"item_id":24817} 
[2026-02-26 21:46:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5065,"item_index":3,"item_id":24818} 
[2026-02-26 21:46:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5065,"item_index":4,"item_id":24819} 
[2026-02-26 21:46:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5065,"item_index":5,"item_id":24820} 
[2026-02-26 21:46:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5065,"item_index":6,"item_id":24821} 
[2026-02-26 21:46:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5065,"item_index":7,"item_id":24822} 
[2026-02-26 21:46:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5065,"item_index":8,"item_id":24823} 
[2026-02-26 21:46:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5065,"item_index":9,"item_id":24824} 
[2026-02-26 21:46:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5065,"item_index":10,"item_id":24825} 
[2026-02-26 21:46:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5065,"item_index":11,"item_id":24826} 
[2026-02-26 21:46:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":12,"order_id":5065,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":24815},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":24816},{"menu_item_id":62,"quantity":2,"price":1499,"discount_percent":0,"notes":null,"id":24817},{"menu_item_id":54,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":24818},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":24819},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":24820},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":24821},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24822},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24823},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":24824},{"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":24825},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":24826}],"validated_items":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":2,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-26 21:46:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5065,"items_count":12} 
[2026-02-26 21:46:31] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":12,"items_to_remove":[24832,24833,24834,24835,24836,24837,24838,24839,24840,24841,24842,24843],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":62,"quantity":2},{"id":null,"menu_item_id":54,"quantity":2},{"id":null,"menu_item_id":52,"quantity":2},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":66,"quantity":1},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-02-26 21:46:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5065,"has_item_changes":false,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["114|1|","106|1|","62|2|","54|2|","52|2|","396|4|","61|3|","56|2|","5|1|","64|1|","66|1|","3|2|"],"new_items_map_keys":["114|1|","106|1|","62|2|","54|2|","52|2|","396|4|","61|3|","56|2|","5|1|","64|1|","66|1|","3|2|"]} 
[2026-02-26 21:46:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5065,"order_number":"AZS-260226-019"} 
[2026-02-26 21:46:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5065,"order_number":"AZS-260226-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 21:46:31"} 
[2026-02-26 21:52:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5065,"item_index":0,"item_id":24815} 
[2026-02-26 21:52:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5065,"item_index":1,"item_id":24816} 
[2026-02-26 21:52:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5065,"item_index":2,"item_id":24817} 
[2026-02-26 21:52:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5065,"item_index":3,"item_id":24818} 
[2026-02-26 21:52:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5065,"item_index":4,"item_id":24819} 
[2026-02-26 21:52:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5065,"item_index":5,"item_id":24820} 
[2026-02-26 21:52:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5065,"item_index":6,"item_id":24821} 
[2026-02-26 21:52:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5065,"item_index":7,"item_id":24822} 
[2026-02-26 21:52:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5065,"item_index":8,"item_id":24823} 
[2026-02-26 21:52:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5065,"item_index":9,"item_id":24824} 
[2026-02-26 21:52:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5065,"item_index":10,"item_id":24825} 
[2026-02-26 21:52:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5065,"item_index":11,"item_id":24826} 
[2026-02-26 21:52:05] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5065,"order_number":"AZS-260226-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":16000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 21:52:05"} 
[2026-02-26 21:52:05] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5065,"order_number":"AZS-260226-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":16000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 21:52:05"} 
[2026-02-26 21:52:05] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5065,"order_number":"AZS-260226-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":16000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 21:52:05"} 
[2026-02-26 21:52:05] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5065,"order_number":"AZS-260226-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":16000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 21:52:05"} 
[2026-02-26 21:52:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":12,"order_id":5065,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":24815},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":24816},{"menu_item_id":62,"quantity":2,"price":1499,"discount_percent":0,"notes":null,"id":24817},{"menu_item_id":54,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":24818},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":24819},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":24820},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":24821},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24822},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24823},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":24824},{"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":24825},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":24826}],"validated_items":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":2,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-26 21:52:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5065,"items_count":12} 
[2026-02-26 21:52:05] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":12,"items_to_remove":[24832,24833,24834,24835,24836,24837,24838,24839,24840,24841,24842,24843],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":62,"quantity":2},{"id":null,"menu_item_id":54,"quantity":2},{"id":null,"menu_item_id":52,"quantity":2},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":66,"quantity":1},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-02-26 21:52:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5065,"has_item_changes":false,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["114|1|","106|1|","62|2|","54|2|","52|2|","396|4|","61|3|","56|2|","5|1|","64|1|","66|1|","3|2|"],"new_items_map_keys":["114|1|","106|1|","62|2|","54|2|","52|2|","396|4|","61|3|","56|2|","5|1|","64|1|","66|1|","3|2|"]} 
[2026-02-26 21:52:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5065,"order_number":"AZS-260226-019"} 
[2026-02-26 21:52:05] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5065,"order_number":"AZS-260226-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":16000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-26 21:52:05","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-26 21:52:05"} 
[2026-02-26 21:52:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5065,"order_number":"AZS-260226-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-26 21:52:05"} 
[2026-02-26 21:52:05] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5065,"order_number":"AZS-260226-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"16000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-26 21:52:05","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":16000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"16000.00","database_verification_match":true,"timestamp":"2026-02-26 21:52:05"} 
[2026-02-26 21:53:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-26T09:53:20.242Z","date_to":"2026-02-26T21:53:20.242Z","per_page":"100"} 
[2026-02-26 21:53:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":55,"count":55,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260226-020","AZS-260226-020","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-018","AZS-260226-018","AZS-260226-018","AZS-260226-018","AZS-260226-017","AZS-260226-017","AZS-260226-017","AZS-260226-016","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-013","AZS-260226-013","AZS-260226-013","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-010","AZS-260226-010","AZS-260226-010","AZS-260226-009","AZS-260226-008","AZS-260226-008","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-006","AZS-260226-005","AZS-260226-004","AZS-260226-004","AZS-260226-003","AZS-260226-003","AZS-260226-002","AZS-260226-002","AZS-260226-001"],"order_statuses":["pending","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","paid","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":35,"paid_count":19,"unpaid_count":1,"unique_order_numbers":20} 
[2026-02-26 21:53:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-26T09:53:20.230Z","date_to":"2026-02-26T21:53:20.230Z","per_page":"100"} 
[2026-02-26 21:53:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":55,"count":55,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260226-020","AZS-260226-020","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-018","AZS-260226-018","AZS-260226-018","AZS-260226-018","AZS-260226-017","AZS-260226-017","AZS-260226-017","AZS-260226-016","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-013","AZS-260226-013","AZS-260226-013","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-010","AZS-260226-010","AZS-260226-010","AZS-260226-009","AZS-260226-008","AZS-260226-008","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-006","AZS-260226-005","AZS-260226-004","AZS-260226-004","AZS-260226-003","AZS-260226-003","AZS-260226-002","AZS-260226-002","AZS-260226-001"],"order_statuses":["pending","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","paid","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":35,"paid_count":19,"unpaid_count":1,"unique_order_numbers":20} 
[2026-02-26 21:53:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-26T09:53:20.230Z","date_to":"2026-02-26T21:53:20.230Z","per_page":"100"} 
[2026-02-26 21:53:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":55,"count":55,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260226-020","AZS-260226-020","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-018","AZS-260226-018","AZS-260226-018","AZS-260226-018","AZS-260226-017","AZS-260226-017","AZS-260226-017","AZS-260226-016","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-013","AZS-260226-013","AZS-260226-013","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-010","AZS-260226-010","AZS-260226-010","AZS-260226-009","AZS-260226-008","AZS-260226-008","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-006","AZS-260226-005","AZS-260226-004","AZS-260226-004","AZS-260226-003","AZS-260226-003","AZS-260226-002","AZS-260226-002","AZS-260226-001"],"order_statuses":["pending","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","paid","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":35,"paid_count":19,"unpaid_count":1,"unique_order_numbers":20} 
[2026-02-26 22:10:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":1,"order_id":5062,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":24812},{"menu_item_id":49,"quantity":3,"discount_percent":0,"notes":null,"id":24813},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":24812,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":24813,"menu_item_id":49,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-26 22:10:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5062,"items_count":3} 
[2026-02-26 22:10:57] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":1,"items_to_remove":[24814],"items":[{"id":24812,"menu_item_id":106,"quantity":1},{"id":24813,"menu_item_id":49,"quantity":3},{"id":null,"menu_item_id":396,"quantity":2}]} 
[2026-02-26 22:10:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5062,"has_item_changes":true,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["106|1|","49|2|","286|2|"],"new_items_map_keys":["106|1|","49|3|","396|2|"]} 
[2026-02-26 22:10:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5062,"order_number":"AZS-260226-020"} 
[2026-02-26 22:10:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-020","replaced_order_id":5062} 
[2026-02-26 22:10:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5066,"items_count":3,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":49,"quantity":3,"price":"70.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"}]} 
[2026-02-26 22:10:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5066,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5066}} 
[2026-02-26 22:10:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5066,"item_index":0,"menu_item_id":106} 
[2026-02-26 22:10:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5066,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5066}} 
[2026-02-26 22:10:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5066,"item_index":1,"menu_item_id":49} 
[2026-02-26 22:10:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5066,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5066}} 
[2026-02-26 22:10:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5066,"item_index":2,"menu_item_id":396} 
[2026-02-26 22:10:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5062,"new_order_id":5066,"order_number":"AZS-260226-020"} 
[2026-02-26 22:21:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5066,"item_index":0,"item_id":24812} 
[2026-02-26 22:21:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5066,"item_index":1,"item_id":24813} 
[2026-02-26 22:21:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":3,"order_id":5066,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":24812},{"menu_item_id":49,"quantity":4,"discount_percent":0,"notes":null,"id":24813},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 22:21:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5066,"items_count":6} 
[2026-02-26 22:21:09] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":3,"items_to_remove":[24844,24845,24846],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":49,"quantity":4},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-26 22:21:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5066,"has_item_changes":true,"old_items_count":3,"new_items_count":6,"old_items_map_keys":["106|1|","49|3|","396|2|"],"new_items_map_keys":["106|1|","49|4|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-02-26 22:21:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5066,"order_number":"AZS-260226-020"} 
[2026-02-26 22:21:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-020","replaced_order_id":5066} 
[2026-02-26 22:21:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5067,"items_count":6,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":49,"quantity":4,"price":"70.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-26 22:21:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5067,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5067}} 
[2026-02-26 22:21:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5067,"item_index":0,"menu_item_id":106} 
[2026-02-26 22:21:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5067,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5067}} 
[2026-02-26 22:21:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5067,"item_index":1,"menu_item_id":49} 
[2026-02-26 22:21:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5067,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5067}} 
[2026-02-26 22:21:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5067,"item_index":2,"menu_item_id":396} 
[2026-02-26 22:21:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5067,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5067}} 
[2026-02-26 22:21:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5067,"item_index":3,"menu_item_id":61} 
[2026-02-26 22:21:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5067,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5067}} 
[2026-02-26 22:21:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5067,"item_index":4,"menu_item_id":56} 
[2026-02-26 22:21:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5067,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5067}} 
[2026-02-26 22:21:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5067,"item_index":5,"menu_item_id":5} 
[2026-02-26 22:21:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5066,"new_order_id":5067,"order_number":"AZS-260226-020"} 
[2026-02-26 22:24:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5067,"item_index":0,"item_id":24812} 
[2026-02-26 22:24:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5067,"item_index":1,"item_id":24813} 
[2026-02-26 22:24:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":6,"order_id":5067,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":24812},{"menu_item_id":49,"quantity":4,"discount_percent":0,"notes":null,"id":24813},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 22:24:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5067,"items_count":7} 
[2026-02-26 22:24:30] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":6,"items_to_remove":[24847,24848,24849,24850,24851,24852],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":49,"quantity":4},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-26 22:24:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5067,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["106|1|","49|4|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["106|1|","49|4|","396|2|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-02-26 22:24:30] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5067,"order_number":"AZS-260226-020"} 
[2026-02-26 22:24:30] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-020","replaced_order_id":5067} 
[2026-02-26 22:24:30] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5068,"items_count":7,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":49,"quantity":4,"price":"70.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-26 22:24:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5068,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5068}} 
[2026-02-26 22:24:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5068,"item_index":0,"menu_item_id":106} 
[2026-02-26 22:24:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5068,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5068}} 
[2026-02-26 22:24:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5068,"item_index":1,"menu_item_id":49} 
[2026-02-26 22:24:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5068,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5068}} 
[2026-02-26 22:24:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5068,"item_index":2,"menu_item_id":396} 
[2026-02-26 22:24:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5068,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5068}} 
[2026-02-26 22:24:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5068,"item_index":3,"menu_item_id":61} 
[2026-02-26 22:24:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5068,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5068}} 
[2026-02-26 22:24:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5068,"item_index":4,"menu_item_id":56} 
[2026-02-26 22:24:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5068,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5068}} 
[2026-02-26 22:24:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5068,"item_index":5,"menu_item_id":5} 
[2026-02-26 22:24:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5068,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5068}} 
[2026-02-26 22:24:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5068,"item_index":6,"menu_item_id":3} 
[2026-02-26 22:24:30] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5067,"new_order_id":5068,"order_number":"AZS-260226-020"} 
[2026-02-26 22:41:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5068,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":24853},{"menu_item_id":49,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":24854},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24855},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24856},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24857},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24858},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24859}],"validated_items":[{"id":24853,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":24854,"menu_item_id":49,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":24855,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24856,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24857,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24858,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24859,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-26 22:41:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5068,"items_count":7} 
[2026-02-26 22:41:46] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24853,"menu_item_id":106,"quantity":1},{"id":24854,"menu_item_id":49,"quantity":4},{"id":24855,"menu_item_id":396,"quantity":2},{"id":24856,"menu_item_id":61,"quantity":1},{"id":24857,"menu_item_id":56,"quantity":1},{"id":24858,"menu_item_id":5,"quantity":1},{"id":24859,"menu_item_id":3,"quantity":1}]} 
[2026-02-26 22:41:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5068,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","49|4|","396|2|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["106|1|","49|4|","396|2|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-02-26 22:41:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5068,"order_number":"AZS-260226-020"} 
[2026-02-26 22:41:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5068,"order_number":"AZS-260226-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-02-26 22:41:46"} 
[2026-02-26 22:46:16] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5068,"order_number":"AZS-260226-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5791,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 22:46:16"} 
[2026-02-26 22:46:16] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5068,"order_number":"AZS-260226-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5791,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 22:46:16"} 
[2026-02-26 22:46:16] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5068,"order_number":"AZS-260226-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5791,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 22:46:16"} 
[2026-02-26 22:46:16] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5068,"order_number":"AZS-260226-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5791,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 22:46:16"} 
[2026-02-26 22:46:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5068,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":24853},{"menu_item_id":49,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":24854},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24855},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24856},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24857},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24858},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24859}],"validated_items":[{"id":24853,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":24854,"menu_item_id":49,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":24855,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24856,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24857,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24858,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24859,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-26 22:46:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5068,"items_count":7} 
[2026-02-26 22:46:16] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24853,"menu_item_id":106,"quantity":1},{"id":24854,"menu_item_id":49,"quantity":4},{"id":24855,"menu_item_id":396,"quantity":2},{"id":24856,"menu_item_id":61,"quantity":1},{"id":24857,"menu_item_id":56,"quantity":1},{"id":24858,"menu_item_id":5,"quantity":1},{"id":24859,"menu_item_id":3,"quantity":1}]} 
[2026-02-26 22:46:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5068,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","49|4|","396|2|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["106|1|","49|4|","396|2|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-02-26 22:46:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5068,"order_number":"AZS-260226-020"} 
[2026-02-26 22:46:16] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5068,"order_number":"AZS-260226-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5791,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-26 22:46:16","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-26 22:46:16"} 
[2026-02-26 22:46:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5068,"order_number":"AZS-260226-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-26 22:46:16"} 
[2026-02-26 22:46:16] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5068,"order_number":"AZS-260226-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5791.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-26 22:46:16","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5791,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5791.00","database_verification_match":true,"timestamp":"2026-02-26 22:46:16"} 
[2026-02-26 22:46:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5069,"order_number":"AZS-260226-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":600,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 22:46:27"} 
[2026-02-26 22:46:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5069,"order_number":"AZS-260226-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 22:46:27"} 
[2026-02-26 22:46:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5069,"order_number":"AZS-260226-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 22:46:27"} 
[2026-02-26 22:46:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5069,"order_number":"AZS-260226-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 22:46:27"} 
[2026-02-26 22:46:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5069,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":24860}],"validated_items":[{"id":24860,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null}]} 
[2026-02-26 22:46:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5069,"items_count":1} 
[2026-02-26 22:46:27] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24860,"menu_item_id":411,"quantity":1}]} 
[2026-02-26 22:46:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5069,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|"]} 
[2026-02-26 22:46:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5069,"order_number":"AZS-260226-021"} 
[2026-02-26 22:46:27] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5069,"order_number":"AZS-260226-021","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":600,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-26 22:46:27","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-26 22:46:27"} 
[2026-02-26 22:46:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5069,"order_number":"AZS-260226-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-26 22:46:27"} 
[2026-02-26 22:46:27] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5069,"order_number":"AZS-260226-021","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"600.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-26 22:46:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"600.00","database_verification_match":true,"timestamp":"2026-02-26 22:46:27"} 
[2026-02-26 23:19:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-26T11:19:48.471Z","date_to":"2026-02-26T23:19:48.471Z","per_page":"100"} 
[2026-02-26 23:19:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":60,"count":60,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260226-022","AZS-260226-021","AZS-260226-020","AZS-260226-020","AZS-260226-020","AZS-260226-020","AZS-260226-020","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-018","AZS-260226-018","AZS-260226-018","AZS-260226-018","AZS-260226-017","AZS-260226-017","AZS-260226-017","AZS-260226-016","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-013","AZS-260226-013","AZS-260226-013","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-010","AZS-260226-010","AZS-260226-010","AZS-260226-009","AZS-260226-008","AZS-260226-008","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-006","AZS-260226-005","AZS-260226-004","AZS-260226-004","AZS-260226-003","AZS-260226-003","AZS-260226-002","AZS-260226-002","AZS-260226-001"],"order_statuses":["pending","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","paid","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":38,"paid_count":21,"unpaid_count":1,"unique_order_numbers":22} 
[2026-02-26 23:19:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-26T11:19:48.457Z","date_to":"2026-02-26T23:19:48.457Z","per_page":"100"} 
[2026-02-26 23:19:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":60,"count":60,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260226-022","AZS-260226-021","AZS-260226-020","AZS-260226-020","AZS-260226-020","AZS-260226-020","AZS-260226-020","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-018","AZS-260226-018","AZS-260226-018","AZS-260226-018","AZS-260226-017","AZS-260226-017","AZS-260226-017","AZS-260226-016","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-013","AZS-260226-013","AZS-260226-013","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-010","AZS-260226-010","AZS-260226-010","AZS-260226-009","AZS-260226-008","AZS-260226-008","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-006","AZS-260226-005","AZS-260226-004","AZS-260226-004","AZS-260226-003","AZS-260226-003","AZS-260226-002","AZS-260226-002","AZS-260226-001"],"order_statuses":["pending","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","paid","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":38,"paid_count":21,"unpaid_count":1,"unique_order_numbers":22} 
[2026-02-26 23:19:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-26T11:19:48.457Z","date_to":"2026-02-26T23:19:48.457Z","per_page":"100"} 
[2026-02-26 23:19:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":60,"count":60,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260226-022","AZS-260226-021","AZS-260226-020","AZS-260226-020","AZS-260226-020","AZS-260226-020","AZS-260226-020","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-018","AZS-260226-018","AZS-260226-018","AZS-260226-018","AZS-260226-017","AZS-260226-017","AZS-260226-017","AZS-260226-016","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-013","AZS-260226-013","AZS-260226-013","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-010","AZS-260226-010","AZS-260226-010","AZS-260226-009","AZS-260226-008","AZS-260226-008","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-006","AZS-260226-005","AZS-260226-004","AZS-260226-004","AZS-260226-003","AZS-260226-003","AZS-260226-002","AZS-260226-002","AZS-260226-001"],"order_statuses":["pending","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","paid","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":38,"paid_count":21,"unpaid_count":1,"unique_order_numbers":22} 
[2026-02-26 23:33:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5073,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null,"id":24867},{"menu_item_id":414,"quantity":1,"discount_percent":0,"notes":null,"id":24868},{"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null,"id":24869},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24867,"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"id":24868,"menu_item_id":414,"quantity":1,"discount_percent":0,"notes":null},{"id":24869,"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-26 23:33:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5073,"items_count":4} 
[2026-02-26 23:33:16] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24867,"menu_item_id":425,"quantity":1},{"id":24868,"menu_item_id":414,"quantity":1},{"id":24869,"menu_item_id":286,"quantity":2},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-02-26 23:33:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5073,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["425|1|","414|1|","286|2|"],"new_items_map_keys":["425|1|","414|1|","286|2|","4|1|"]} 
[2026-02-26 23:33:16] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5073,"order_number":"AZS-260226-025"} 
[2026-02-26 23:33:16] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260226-025","replaced_order_id":5073} 
[2026-02-26 23:33:16] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5074,"items_count":4,"items":[{"menu_item_id":425,"quantity":1,"price":"99.00"},{"menu_item_id":414,"quantity":1,"price":"150.00"},{"menu_item_id":286,"quantity":2,"price":"15.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-02-26 23:33:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5074,"item_index":0,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5074}} 
[2026-02-26 23:33:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5074,"item_index":0,"menu_item_id":425} 
[2026-02-26 23:33:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5074,"item_index":1,"item_data":{"menu_item_id":414,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sada Channy","quantity":1,"price":"150.00","discount_percent":0.0,"discount_amount":0.0,"total":150.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5074}} 
[2026-02-26 23:33:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5074,"item_index":1,"menu_item_id":414} 
[2026-02-26 23:33:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5074,"item_index":2,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":2,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":30.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5074}} 
[2026-02-26 23:33:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5074,"item_index":2,"menu_item_id":286} 
[2026-02-26 23:33:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5074,"item_index":3,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5074}} 
[2026-02-26 23:33:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5074,"item_index":3,"menu_item_id":4} 
[2026-02-26 23:33:16] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5073,"new_order_id":5074,"order_number":"AZS-260226-025"} 
[2026-02-26 23:44:34] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5071,"order_number":"AZS-260226-023","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":210,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 23:44:34"} 
[2026-02-26 23:44:34] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5071,"order_number":"AZS-260226-023","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":210,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 23:44:34"} 
[2026-02-26 23:44:34] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5071,"order_number":"AZS-260226-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":210,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 23:44:34"} 
[2026-02-26 23:44:34] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5071,"order_number":"AZS-260226-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":210,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 23:44:34"} 
[2026-02-26 23:44:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5071,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":421,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":24864}],"validated_items":[{"id":24864,"menu_item_id":421,"quantity":3,"price":70,"discount_percent":0,"notes":null}]} 
[2026-02-26 23:44:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5071,"items_count":1} 
[2026-02-26 23:44:34] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24864,"menu_item_id":421,"quantity":3}]} 
[2026-02-26 23:44:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5071,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["421|3|"],"new_items_map_keys":["421|3|"]} 
[2026-02-26 23:44:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5071,"order_number":"AZS-260226-023"} 
[2026-02-26 23:44:34] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5071,"order_number":"AZS-260226-023","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":210,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-26 23:44:34","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-26 23:44:34"} 
[2026-02-26 23:44:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5071,"order_number":"AZS-260226-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-26 23:44:34"} 
[2026-02-26 23:44:34] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5071,"order_number":"AZS-260226-023","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"210.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-26 23:44:34","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":210,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"210.00","database_verification_match":true,"timestamp":"2026-02-26 23:44:34"} 
[2026-02-26 23:46:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5074,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24870},{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null,"id":24871},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":24872},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":24873}],"validated_items":[{"id":24870,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":24871,"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null},{"id":24872,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"id":24873,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-26 23:46:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5074,"items_count":4} 
[2026-02-26 23:46:42] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24870,"menu_item_id":425,"quantity":1},{"id":24871,"menu_item_id":414,"quantity":1},{"id":24872,"menu_item_id":286,"quantity":2},{"id":24873,"menu_item_id":4,"quantity":1}]} 
[2026-02-26 23:46:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5074,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["425|1|","414|1|","286|2|","4|1|"],"new_items_map_keys":["425|1|","414|1|","286|2|","4|1|"]} 
[2026-02-26 23:46:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5074,"order_number":"AZS-260226-025"} 
[2026-02-26 23:46:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5074,"order_number":"AZS-260226-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 23:46:42"} 
[2026-02-26 23:48:07] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5074,"order_number":"AZS-260226-025","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":370,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 23:48:07"} 
[2026-02-26 23:48:07] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5074,"order_number":"AZS-260226-025","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":370,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 23:48:07"} 
[2026-02-26 23:48:07] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5074,"order_number":"AZS-260226-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":370,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 23:48:07"} 
[2026-02-26 23:48:07] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5074,"order_number":"AZS-260226-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":370,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 23:48:07"} 
[2026-02-26 23:48:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5074,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":24870},{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null,"id":24871},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":24872},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":24873}],"validated_items":[{"id":24870,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":24871,"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null},{"id":24872,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"id":24873,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-26 23:48:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5074,"items_count":4} 
[2026-02-26 23:48:07] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24870,"menu_item_id":425,"quantity":1},{"id":24871,"menu_item_id":414,"quantity":1},{"id":24872,"menu_item_id":286,"quantity":2},{"id":24873,"menu_item_id":4,"quantity":1}]} 
[2026-02-26 23:48:07] local.INFO: PosOrderController::update - Item changes check {"order_id":5074,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["425|1|","414|1|","286|2|","4|1|"],"new_items_map_keys":["425|1|","414|1|","286|2|","4|1|"]} 
[2026-02-26 23:48:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5074,"order_number":"AZS-260226-025"} 
[2026-02-26 23:48:07] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5074,"order_number":"AZS-260226-025","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":370,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-26 23:48:07","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-26 23:48:07"} 
[2026-02-26 23:48:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5074,"order_number":"AZS-260226-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-26 23:48:07"} 
[2026-02-26 23:48:07] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5074,"order_number":"AZS-260226-025","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"370.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-26 23:48:07","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":370,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"370.00","database_verification_match":true,"timestamp":"2026-02-26 23:48:07"} 
[2026-02-26 23:48:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5070,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null,"id":24861},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24862},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24863}],"validated_items":[{"id":24861,"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null},{"id":24862,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":24863,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-26 23:48:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5070,"items_count":3} 
[2026-02-26 23:48:53] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24861,"menu_item_id":414,"quantity":1},{"id":24862,"menu_item_id":416,"quantity":1},{"id":24863,"menu_item_id":6,"quantity":1}]} 
[2026-02-26 23:48:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5070,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["414|1|","416|1|","6|1|"],"new_items_map_keys":["414|1|","416|1|","6|1|"]} 
[2026-02-26 23:48:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5070,"order_number":"AZS-260226-022"} 
[2026-02-26 23:48:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5070,"order_number":"AZS-260226-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 23:48:53"} 
[2026-02-26 23:50:47] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5070,"order_number":"AZS-260226-022","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 23:50:47"} 
[2026-02-26 23:50:47] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5070,"order_number":"AZS-260226-022","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 23:50:47"} 
[2026-02-26 23:50:47] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5070,"order_number":"AZS-260226-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 23:50:47"} 
[2026-02-26 23:50:47] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5070,"order_number":"AZS-260226-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 23:50:47"} 
[2026-02-26 23:50:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5070,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null,"id":24861},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":24862},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24863}],"validated_items":[{"id":24861,"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null},{"id":24862,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":24863,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-26 23:50:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5070,"items_count":3} 
[2026-02-26 23:50:47] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24861,"menu_item_id":414,"quantity":1},{"id":24862,"menu_item_id":416,"quantity":1},{"id":24863,"menu_item_id":6,"quantity":1}]} 
[2026-02-26 23:50:47] local.INFO: PosOrderController::update - Item changes check {"order_id":5070,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["414|1|","416|1|","6|1|"],"new_items_map_keys":["414|1|","416|1|","6|1|"]} 
[2026-02-26 23:50:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5070,"order_number":"AZS-260226-022"} 
[2026-02-26 23:50:47] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5070,"order_number":"AZS-260226-022","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-26 23:50:47","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-26 23:50:47"} 
[2026-02-26 23:50:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5070,"order_number":"AZS-260226-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-26 23:50:47"} 
[2026-02-26 23:50:47] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5070,"order_number":"AZS-260226-022","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-26 23:50:47","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-02-26 23:50:47"} 
[2026-02-26 23:51:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5072,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":24865},{"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null,"id":24866}],"validated_items":[{"id":24865,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":24866,"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null}]} 
[2026-02-26 23:51:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5072,"items_count":2} 
[2026-02-26 23:51:21] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24865,"menu_item_id":411,"quantity":1},{"id":24866,"menu_item_id":286,"quantity":1}]} 
[2026-02-26 23:51:21] local.INFO: PosOrderController::update - Item changes check {"order_id":5072,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","286|1|"],"new_items_map_keys":["411|1|","286|1|"]} 
[2026-02-26 23:51:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5072,"order_number":"AZS-260226-024"} 
[2026-02-26 23:51:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5072,"order_number":"AZS-260226-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-26 23:51:21"} 
[2026-02-26 23:57:17] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5072,"order_number":"AZS-260226-024","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 23:57:17"} 
[2026-02-26 23:57:17] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5072,"order_number":"AZS-260226-024","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-26 23:57:17"} 
[2026-02-26 23:57:17] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5072,"order_number":"AZS-260226-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 23:57:17"} 
[2026-02-26 23:57:17] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5072,"order_number":"AZS-260226-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-26 23:57:17"} 
[2026-02-26 23:57:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5072,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":24865},{"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null,"id":24866}],"validated_items":[{"id":24865,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":24866,"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null}]} 
[2026-02-26 23:57:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5072,"items_count":2} 
[2026-02-26 23:57:17] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24865,"menu_item_id":411,"quantity":1},{"id":24866,"menu_item_id":286,"quantity":1}]} 
[2026-02-26 23:57:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5072,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","286|1|"],"new_items_map_keys":["411|1|","286|1|"]} 
[2026-02-26 23:57:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5072,"order_number":"AZS-260226-024"} 
[2026-02-26 23:57:17] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5072,"order_number":"AZS-260226-024","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-26 23:57:17","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-26 23:57:17"} 
[2026-02-26 23:57:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5072,"order_number":"AZS-260226-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-26 23:57:17"} 
[2026-02-26 23:57:17] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5072,"order_number":"AZS-260226-024","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-26 23:57:17","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-02-26 23:57:17"} 
[2026-02-26 23:57:46] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-26T11:57:45.474Z","date_to":"2026-02-26T23:57:45.474Z","per_page":"100"} 
[2026-02-26 23:57:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":64,"count":64,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260226-025","AZS-260226-025","AZS-260226-024","AZS-260226-023","AZS-260226-022","AZS-260226-021","AZS-260226-020","AZS-260226-020","AZS-260226-020","AZS-260226-020","AZS-260226-020","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-018","AZS-260226-018","AZS-260226-018","AZS-260226-018","AZS-260226-017","AZS-260226-017","AZS-260226-017","AZS-260226-016","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-013","AZS-260226-013","AZS-260226-013","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-010","AZS-260226-010","AZS-260226-010","AZS-260226-009","AZS-260226-008","AZS-260226-008","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-006","AZS-260226-005","AZS-260226-004","AZS-260226-004","AZS-260226-003","AZS-260226-003","AZS-260226-002","AZS-260226-002","AZS-260226-001"],"order_statuses":["paid","changed","paid","paid","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","paid","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":39,"paid_count":25,"unpaid_count":0,"unique_order_numbers":25} 
[2026-02-26 23:57:46] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-26T11:57:45.455Z","date_to":"2026-02-26T23:57:45.455Z","per_page":"100"} 
[2026-02-26 23:57:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":64,"count":64,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260226-025","AZS-260226-025","AZS-260226-024","AZS-260226-023","AZS-260226-022","AZS-260226-021","AZS-260226-020","AZS-260226-020","AZS-260226-020","AZS-260226-020","AZS-260226-020","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-018","AZS-260226-018","AZS-260226-018","AZS-260226-018","AZS-260226-017","AZS-260226-017","AZS-260226-017","AZS-260226-016","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-013","AZS-260226-013","AZS-260226-013","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-010","AZS-260226-010","AZS-260226-010","AZS-260226-009","AZS-260226-008","AZS-260226-008","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-006","AZS-260226-005","AZS-260226-004","AZS-260226-004","AZS-260226-003","AZS-260226-003","AZS-260226-002","AZS-260226-002","AZS-260226-001"],"order_statuses":["paid","changed","paid","paid","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","paid","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":39,"paid_count":25,"unpaid_count":0,"unique_order_numbers":25} 
[2026-02-26 23:57:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-26T11:57:45.455Z","date_to":"2026-02-26T23:57:45.455Z","per_page":"100"} 
[2026-02-26 23:57:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":64,"count":64,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260226-025","AZS-260226-025","AZS-260226-024","AZS-260226-023","AZS-260226-022","AZS-260226-021","AZS-260226-020","AZS-260226-020","AZS-260226-020","AZS-260226-020","AZS-260226-020","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-019","AZS-260226-018","AZS-260226-018","AZS-260226-018","AZS-260226-018","AZS-260226-017","AZS-260226-017","AZS-260226-017","AZS-260226-016","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-015","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-014","AZS-260226-013","AZS-260226-013","AZS-260226-013","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-012","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-011","AZS-260226-010","AZS-260226-010","AZS-260226-010","AZS-260226-009","AZS-260226-008","AZS-260226-008","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-007","AZS-260226-006","AZS-260226-005","AZS-260226-004","AZS-260226-004","AZS-260226-003","AZS-260226-003","AZS-260226-002","AZS-260226-002","AZS-260226-001"],"order_statuses":["paid","changed","paid","paid","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","paid","paid","changed","paid","changed","paid","changed","paid"],"deleted_count":39,"paid_count":25,"unpaid_count":0,"unique_order_numbers":25} 
[2026-02-27 12:50:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5080,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":24884},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24884,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 12:50:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5080,"items_count":6} 
[2026-02-27 12:50:59] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24884,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":95,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":393,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-02-27 12:50:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5080,"has_item_changes":true,"old_items_count":1,"new_items_count":6,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","95|1|","396|2|","393|1|","61|1|","56|1|"]} 
[2026-02-27 12:50:59] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5080,"order_number":"AZS-270226-006"} 
[2026-02-27 12:50:59] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-006","replaced_order_id":5080} 
[2026-02-27 12:50:59] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5082,"items_count":6,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":393,"quantity":1,"price":"499.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"}]} 
[2026-02-27 12:50:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5082,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5082}} 
[2026-02-27 12:50:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5082,"item_index":0,"menu_item_id":417} 
[2026-02-27 12:50:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5082,"item_index":1,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5082}} 
[2026-02-27 12:50:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5082,"item_index":1,"menu_item_id":95} 
[2026-02-27 12:50:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5082,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5082}} 
[2026-02-27 12:50:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5082,"item_index":2,"menu_item_id":396} 
[2026-02-27 12:50:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5082,"item_index":3,"item_data":{"menu_item_id":393,"restaurant_category_id":35,"restaurant_category_name":"ROCK N ROLL","item_name":"Chicken Shawarma","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5082}} 
[2026-02-27 12:50:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5082,"item_index":3,"menu_item_id":393} 
[2026-02-27 12:50:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5082,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5082}} 
[2026-02-27 12:50:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5082,"item_index":4,"menu_item_id":61} 
[2026-02-27 12:50:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5082,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5082}} 
[2026-02-27 12:50:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5082,"item_index":5,"menu_item_id":56} 
[2026-02-27 12:50:59] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5080,"new_order_id":5082,"order_number":"AZS-270226-006"} 
[2026-02-27 12:52:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5075,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":5,"discount_percent":0,"notes":null,"id":24874},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24875}],"validated_items":[{"id":24874,"menu_item_id":417,"quantity":5,"discount_percent":0,"notes":null},{"id":24875,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 12:52:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5075,"items_count":2} 
[2026-02-27 12:52:57] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24874,"menu_item_id":417,"quantity":5},{"id":24875,"menu_item_id":5,"quantity":1}]} 
[2026-02-27 12:52:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5075,"has_item_changes":true,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["417|4|","5|1|"],"new_items_map_keys":["417|5|","5|1|"]} 
[2026-02-27 12:52:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5075,"order_number":"AZS-270226-001"} 
[2026-02-27 12:52:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-001","replaced_order_id":5075} 
[2026-02-27 12:52:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5083,"items_count":2,"items":[{"menu_item_id":417,"quantity":5,"price":"499.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-27 12:52:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5083,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":5,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":2495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5083}} 
[2026-02-27 12:52:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5083,"item_index":0,"menu_item_id":417} 
[2026-02-27 12:52:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5083,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5083}} 
[2026-02-27 12:52:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5083,"item_index":1,"menu_item_id":5} 
[2026-02-27 12:52:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5075,"new_order_id":5083,"order_number":"AZS-270226-001"} 
[2026-02-27 12:55:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5078,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":24882},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24882,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 12:55:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5078,"items_count":2} 
[2026-02-27 12:55:19] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24882,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-02-27 12:55:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5078,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","4|1|"]} 
[2026-02-27 12:55:19] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5078,"order_number":"AZS-270226-004"} 
[2026-02-27 12:55:19] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-004","replaced_order_id":5078} 
[2026-02-27 12:55:19] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5084,"items_count":2,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-02-27 12:55:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5084,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5084}} 
[2026-02-27 12:55:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5084,"item_index":0,"menu_item_id":417} 
[2026-02-27 12:55:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5084,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5084}} 
[2026-02-27 12:55:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5084,"item_index":1,"menu_item_id":4} 
[2026-02-27 12:55:19] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5078,"new_order_id":5084,"order_number":"AZS-270226-004"} 
[2026-02-27 12:56:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5081,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":24885},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":24885,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-02-27 12:56:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5081,"items_count":3} 
[2026-02-27 12:56:44] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24885,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3}]} 
[2026-02-27 12:56:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5081,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","105|1|","52|3|"]} 
[2026-02-27 12:56:44] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5081,"order_number":"AZS-270226-007"} 
[2026-02-27 12:56:44] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-007","replaced_order_id":5081} 
[2026-02-27 12:56:44] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5085,"items_count":3,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":52,"quantity":3,"price":"70.00"}]} 
[2026-02-27 12:56:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5085,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5085}} 
[2026-02-27 12:56:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5085,"item_index":0,"menu_item_id":417} 
[2026-02-27 12:56:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5085,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5085}} 
[2026-02-27 12:56:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5085,"item_index":1,"menu_item_id":105} 
[2026-02-27 12:56:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5085,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5085}} 
[2026-02-27 12:56:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5085,"item_index":2,"menu_item_id":52} 
[2026-02-27 12:56:44] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5081,"new_order_id":5085,"order_number":"AZS-270226-007"} 
[2026-02-27 12:59:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5083,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":5,"discount_percent":0,"notes":null,"id":24892},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24893},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":24892,"menu_item_id":417,"quantity":5,"discount_percent":0,"notes":null},{"id":24893,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-27 12:59:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5083,"items_count":3} 
[2026-02-27 12:59:10] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24892,"menu_item_id":417,"quantity":5},{"id":24893,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":61,"quantity":2}]} 
[2026-02-27 12:59:10] local.INFO: PosOrderController::update - Item changes check {"order_id":5083,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["417|5|","5|1|"],"new_items_map_keys":["417|5|","5|1|","61|2|"]} 
[2026-02-27 12:59:10] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5083,"order_number":"AZS-270226-001"} 
[2026-02-27 12:59:10] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-001","replaced_order_id":5083} 
[2026-02-27 12:59:10] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5086,"items_count":3,"items":[{"menu_item_id":417,"quantity":5,"price":"499.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"}]} 
[2026-02-27 12:59:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5086,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":5,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":2495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5086}} 
[2026-02-27 12:59:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5086,"item_index":0,"menu_item_id":417} 
[2026-02-27 12:59:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5086,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5086}} 
[2026-02-27 12:59:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5086,"item_index":1,"menu_item_id":5} 
[2026-02-27 12:59:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5086,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5086}} 
[2026-02-27 12:59:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5086,"item_index":2,"menu_item_id":61} 
[2026-02-27 12:59:10] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5083,"new_order_id":5086,"order_number":"AZS-270226-001"} 
[2026-02-27 13:13:05] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5079,"order_number":"AZS-270226-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 13:13:05"} 
[2026-02-27 13:13:05] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5079,"order_number":"AZS-270226-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 13:13:05"} 
[2026-02-27 13:13:05] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5079,"order_number":"AZS-270226-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 13:13:05"} 
[2026-02-27 13:13:05] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5079,"order_number":"AZS-270226-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 13:13:05"} 
[2026-02-27 13:13:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5079,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24883}],"validated_items":[{"id":24883,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-02-27 13:13:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5079,"items_count":1} 
[2026-02-27 13:13:05] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24883,"menu_item_id":417,"quantity":1}]} 
[2026-02-27 13:13:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5079,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-02-27 13:13:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5079,"order_number":"AZS-270226-005"} 
[2026-02-27 13:13:05] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5079,"order_number":"AZS-270226-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-27 13:13:05","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-27 13:13:05"} 
[2026-02-27 13:13:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5079,"order_number":"AZS-270226-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-27 13:13:05"} 
[2026-02-27 13:13:05] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5079,"order_number":"AZS-270226-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-27 13:13:05","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-02-27 13:13:05"} 
[2026-02-27 13:16:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5084,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24894},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":24895}],"validated_items":[{"id":24894,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24895,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-27 13:16:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5084,"items_count":2} 
[2026-02-27 13:16:34] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24894,"menu_item_id":417,"quantity":1},{"id":24895,"menu_item_id":4,"quantity":1}]} 
[2026-02-27 13:16:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5084,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["417|1|","4|1|"],"new_items_map_keys":["417|1|","4|1|"]} 
[2026-02-27 13:16:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5084,"order_number":"AZS-270226-004"} 
[2026-02-27 13:16:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5084,"order_number":"AZS-270226-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 13:16:34"} 
[2026-02-27 13:19:01] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5084,"order_number":"AZS-270226-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":589,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 13:19:01"} 
[2026-02-27 13:19:01] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5084,"order_number":"AZS-270226-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":589,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 13:19:01"} 
[2026-02-27 13:19:01] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5084,"order_number":"AZS-270226-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":589,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 13:19:01"} 
[2026-02-27 13:19:01] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5084,"order_number":"AZS-270226-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":589,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 13:19:01"} 
[2026-02-27 13:19:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5084,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24894},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":24895}],"validated_items":[{"id":24894,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24895,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-27 13:19:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5084,"items_count":2} 
[2026-02-27 13:19:01] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24894,"menu_item_id":417,"quantity":1},{"id":24895,"menu_item_id":4,"quantity":1}]} 
[2026-02-27 13:19:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5084,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["417|1|","4|1|"],"new_items_map_keys":["417|1|","4|1|"]} 
[2026-02-27 13:19:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5084,"order_number":"AZS-270226-004"} 
[2026-02-27 13:19:01] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5084,"order_number":"AZS-270226-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":589,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-27 13:19:01","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-27 13:19:01"} 
[2026-02-27 13:19:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5084,"order_number":"AZS-270226-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-27 13:19:01"} 
[2026-02-27 13:19:01] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5084,"order_number":"AZS-270226-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"589.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-27 13:19:01","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":589,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"589.00","database_verification_match":true,"timestamp":"2026-02-27 13:19:01"} 
[2026-02-27 13:19:25] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5076,"order_number":"AZS-270226-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 13:19:25"} 
[2026-02-27 13:19:25] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5076,"order_number":"AZS-270226-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 13:19:25"} 
[2026-02-27 13:19:25] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5076,"order_number":"AZS-270226-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 13:19:25"} 
[2026-02-27 13:19:25] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5076,"order_number":"AZS-270226-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 13:19:25"} 
[2026-02-27 13:19:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5076,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24876}],"validated_items":[{"id":24876,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-02-27 13:19:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5076,"items_count":1} 
[2026-02-27 13:19:25] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24876,"menu_item_id":417,"quantity":1}]} 
[2026-02-27 13:19:25] local.INFO: PosOrderController::update - Item changes check {"order_id":5076,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-02-27 13:19:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5076,"order_number":"AZS-270226-002"} 
[2026-02-27 13:19:25] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5076,"order_number":"AZS-270226-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-27 13:19:25","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-27 13:19:25"} 
[2026-02-27 13:19:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5076,"order_number":"AZS-270226-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-27 13:19:25"} 
[2026-02-27 13:19:25] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5076,"order_number":"AZS-270226-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-27 13:19:25","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-02-27 13:19:25"} 
[2026-02-27 13:19:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5086,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":5,"price":499,"discount_percent":0,"notes":null,"id":24899},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24900},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24901}],"validated_items":[{"id":24899,"menu_item_id":417,"quantity":5,"price":499,"discount_percent":0,"notes":null},{"id":24900,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24901,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-27 13:19:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5086,"items_count":3} 
[2026-02-27 13:19:35] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24899,"menu_item_id":417,"quantity":5},{"id":24900,"menu_item_id":5,"quantity":1},{"id":24901,"menu_item_id":61,"quantity":2}]} 
[2026-02-27 13:19:35] local.INFO: PosOrderController::update - Item changes check {"order_id":5086,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["417|5|","5|1|","61|2|"],"new_items_map_keys":["417|5|","5|1|","61|2|"]} 
[2026-02-27 13:19:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5086,"order_number":"AZS-270226-001"} 
[2026-02-27 13:19:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5086,"order_number":"AZS-270226-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 13:19:35"} 
[2026-02-27 13:20:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":1,"order_id":5086,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":5,"price":499,"discount_percent":0,"notes":null,"id":24899},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24901}],"validated_items":[{"id":24899,"menu_item_id":417,"quantity":5,"price":499,"discount_percent":0,"notes":null},{"id":24901,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-27 13:20:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5086,"items_count":2} 
[2026-02-27 13:20:48] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":1,"items_to_remove":[24900],"items":[{"id":24899,"menu_item_id":417,"quantity":5},{"id":24901,"menu_item_id":61,"quantity":2}]} 
[2026-02-27 13:20:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5086,"has_item_changes":true,"old_items_count":3,"new_items_count":2,"old_items_map_keys":["417|5|","5|1|","61|2|"],"new_items_map_keys":["417|5|","61|2|"]} 
[2026-02-27 13:20:48] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5086,"order_number":"AZS-270226-001"} 
[2026-02-27 13:20:48] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-001","replaced_order_id":5086} 
[2026-02-27 13:20:48] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5087,"items_count":2,"items":[{"menu_item_id":417,"quantity":5,"price":499.0},{"menu_item_id":61,"quantity":2,"price":199.0}]} 
[2026-02-27 13:20:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5087,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":5,"price":499.0,"discount_percent":0.0,"discount_amount":0.0,"total":2495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5087}} 
[2026-02-27 13:20:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5087,"item_index":0,"menu_item_id":417} 
[2026-02-27 13:20:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5087,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5087}} 
[2026-02-27 13:20:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5087,"item_index":1,"menu_item_id":61} 
[2026-02-27 13:20:48] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5086,"new_order_id":5087,"order_number":"AZS-270226-001"} 
[2026-02-27 13:20:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5087,"item_index":0,"item_id":24899} 
[2026-02-27 13:20:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5087,"item_index":1,"item_id":24901} 
[2026-02-27 13:20:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":5087,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":5,"price":499,"discount_percent":0,"notes":null,"id":24899},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24901}],"validated_items":[{"menu_item_id":417,"quantity":5,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-27 13:20:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5087,"items_count":2} 
[2026-02-27 13:20:52] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[24902,24903],"items":[{"id":null,"menu_item_id":417,"quantity":5},{"id":null,"menu_item_id":61,"quantity":2}]} 
[2026-02-27 13:20:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5087,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["417|5|","61|2|"],"new_items_map_keys":["417|5|","61|2|"]} 
[2026-02-27 13:20:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5087,"order_number":"AZS-270226-001"} 
[2026-02-27 13:20:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5087,"order_number":"AZS-270226-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 13:20:52"} 
[2026-02-27 13:25:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5082,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":24886},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":24887},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":24888},{"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null,"id":24889},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24890},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24891},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24886,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":24887,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":24888,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":24889,"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null},{"id":24890,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":24891,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 13:25:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5082,"items_count":7} 
[2026-02-27 13:25:39] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24886,"menu_item_id":417,"quantity":1},{"id":24887,"menu_item_id":95,"quantity":1},{"id":24888,"menu_item_id":396,"quantity":2},{"id":24889,"menu_item_id":393,"quantity":1},{"id":24890,"menu_item_id":61,"quantity":1},{"id":24891,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-02-27 13:25:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5082,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["417|1|","95|1|","396|2|","393|1|","61|1|","56|1|"],"new_items_map_keys":["417|1|","95|1|","396|2|","393|1|","61|1|","56|1|","2|1|"]} 
[2026-02-27 13:25:39] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5082,"order_number":"AZS-270226-006"} 
[2026-02-27 13:25:39] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-006","replaced_order_id":5082} 
[2026-02-27 13:25:39] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5088,"items_count":7,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":393,"quantity":1,"price":"499.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-02-27 13:25:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5088,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5088}} 
[2026-02-27 13:25:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5088,"item_index":0,"menu_item_id":417} 
[2026-02-27 13:25:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5088,"item_index":1,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5088}} 
[2026-02-27 13:25:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5088,"item_index":1,"menu_item_id":95} 
[2026-02-27 13:25:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5088,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5088}} 
[2026-02-27 13:25:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5088,"item_index":2,"menu_item_id":396} 
[2026-02-27 13:25:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5088,"item_index":3,"item_data":{"menu_item_id":393,"restaurant_category_id":35,"restaurant_category_name":"ROCK N ROLL","item_name":"Chicken Shawarma","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5088}} 
[2026-02-27 13:25:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5088,"item_index":3,"menu_item_id":393} 
[2026-02-27 13:25:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5088,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5088}} 
[2026-02-27 13:25:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5088,"item_index":4,"menu_item_id":61} 
[2026-02-27 13:25:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5088,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5088}} 
[2026-02-27 13:25:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5088,"item_index":5,"menu_item_id":56} 
[2026-02-27 13:25:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5088,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5088}} 
[2026-02-27 13:25:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5088,"item_index":6,"menu_item_id":2} 
[2026-02-27 13:25:39] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5082,"new_order_id":5088,"order_number":"AZS-270226-006"} 
[2026-02-27 13:26:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5090,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24914}],"validated_items":[{"id":24914,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-27 13:26:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5090,"items_count":1} 
[2026-02-27 13:26:59] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24914,"menu_item_id":5,"quantity":1}]} 
[2026-02-27 13:26:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5090,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["5|1|"],"new_items_map_keys":["5|1|"]} 
[2026-02-27 13:26:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5090,"order_number":"AZS-270226-009"} 
[2026-02-27 13:26:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5090,"order_number":"AZS-270226-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-02-27 13:26:59"} 
[2026-02-27 13:27:45] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5087,"order_number":"AZS-270226-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 13:27:45"} 
[2026-02-27 13:27:45] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5087,"order_number":"AZS-270226-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 13:27:45"} 
[2026-02-27 13:27:45] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5087,"order_number":"AZS-270226-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 13:27:45"} 
[2026-02-27 13:27:45] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5087,"order_number":"AZS-270226-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 13:27:45"} 
[2026-02-27 13:27:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5087,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":5,"price":499,"discount_percent":0,"notes":null,"id":24902},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24903}],"validated_items":[{"id":24902,"menu_item_id":417,"quantity":5,"price":499,"discount_percent":0,"notes":null},{"id":24903,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-27 13:27:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5087,"items_count":2} 
[2026-02-27 13:27:45] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24902,"menu_item_id":417,"quantity":5},{"id":24903,"menu_item_id":61,"quantity":2}]} 
[2026-02-27 13:27:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5087,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["417|5|","61|2|"],"new_items_map_keys":["417|5|","61|2|"]} 
[2026-02-27 13:27:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5087,"order_number":"AZS-270226-001"} 
[2026-02-27 13:27:45] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5087,"order_number":"AZS-270226-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-27 13:27:45","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-27 13:27:45"} 
[2026-02-27 13:27:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5087,"order_number":"AZS-270226-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-27 13:27:45"} 
[2026-02-27 13:27:45] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5087,"order_number":"AZS-270226-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-27 13:27:45","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-02-27 13:27:45"} 
[2026-02-27 13:33:36] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5090,"order_number":"AZS-270226-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 13:33:36"} 
[2026-02-27 13:33:36] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5090,"order_number":"AZS-270226-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 13:33:36"} 
[2026-02-27 13:33:36] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5090,"order_number":"AZS-270226-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 13:33:36"} 
[2026-02-27 13:33:36] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5090,"order_number":"AZS-270226-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 13:33:36"} 
[2026-02-27 13:33:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5090,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24914}],"validated_items":[{"id":24914,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-27 13:33:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5090,"items_count":1} 
[2026-02-27 13:33:36] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24914,"menu_item_id":5,"quantity":1}]} 
[2026-02-27 13:33:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5090,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["5|1|"],"new_items_map_keys":["5|1|"]} 
[2026-02-27 13:33:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5090,"order_number":"AZS-270226-009"} 
[2026-02-27 13:33:36] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5090,"order_number":"AZS-270226-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-27 13:33:36","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-27 13:33:36"} 
[2026-02-27 13:33:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5090,"order_number":"AZS-270226-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-27 13:33:36"} 
[2026-02-27 13:33:36] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5090,"order_number":"AZS-270226-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-27 13:33:36","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-02-27 13:33:36"} 
[2026-02-27 13:33:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5077,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24877},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":24878},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":24879},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24880},{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24881}],"validated_items":[{"id":24877,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24878,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":24879,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":24880,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24881,"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-02-27 13:33:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5077,"items_count":5} 
[2026-02-27 13:33:42] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24877,"menu_item_id":96,"quantity":1},{"id":24878,"menu_item_id":49,"quantity":3},{"id":24879,"menu_item_id":29,"quantity":2},{"id":24880,"menu_item_id":61,"quantity":1},{"id":24881,"menu_item_id":393,"quantity":1}]} 
[2026-02-27 13:33:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5077,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","49|3|","29|2|","61|1|","393|1|"],"new_items_map_keys":["96|1|","49|3|","29|2|","61|1|","393|1|"]} 
[2026-02-27 13:33:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5077,"order_number":"AZS-270226-003"} 
[2026-02-27 13:33:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5077,"order_number":"AZS-270226-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 13:33:42"} 
[2026-02-27 13:33:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T01:33:54.820Z","date_to":"2026-02-27T13:33:54.820Z","per_page":"100"} 
[2026-02-27 13:33:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T01:33:54.809Z","date_to":"2026-02-27T13:33:54.809Z","per_page":"100"} 
[2026-02-27 13:33:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-009","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["paid","pending","pending","changed","pending","changed","changed","paid","paid","changed","pending","paid","paid","changed","changed","changed"],"deleted_count":7,"paid_count":5,"unpaid_count":4,"unique_order_numbers":9} 
[2026-02-27 13:33:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-009","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["paid","pending","pending","changed","pending","changed","changed","paid","paid","changed","pending","paid","paid","changed","changed","changed"],"deleted_count":7,"paid_count":5,"unpaid_count":4,"unique_order_numbers":9} 
[2026-02-27 13:33:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T01:33:54.809Z","date_to":"2026-02-27T13:33:54.809Z","per_page":"100"} 
[2026-02-27 13:33:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-009","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["paid","pending","pending","changed","pending","changed","changed","paid","paid","changed","pending","paid","paid","changed","changed","changed"],"deleted_count":7,"paid_count":5,"unpaid_count":4,"unique_order_numbers":9} 
[2026-02-27 13:37:36] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5077,"order_number":"AZS-270226-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2737,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 13:37:36"} 
[2026-02-27 13:37:36] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5077,"order_number":"AZS-270226-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2737,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 13:37:36"} 
[2026-02-27 13:37:36] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5077,"order_number":"AZS-270226-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2737,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 13:37:36"} 
[2026-02-27 13:37:36] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5077,"order_number":"AZS-270226-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2737,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 13:37:36"} 
[2026-02-27 13:37:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5077,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24877},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":24878},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":24879},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24880},{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24881}],"validated_items":[{"id":24877,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24878,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":24879,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":24880,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24881,"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-02-27 13:37:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5077,"items_count":5} 
[2026-02-27 13:37:36] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24877,"menu_item_id":96,"quantity":1},{"id":24878,"menu_item_id":49,"quantity":3},{"id":24879,"menu_item_id":29,"quantity":2},{"id":24880,"menu_item_id":61,"quantity":1},{"id":24881,"menu_item_id":393,"quantity":1}]} 
[2026-02-27 13:37:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5077,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","49|3|","29|2|","61|1|","393|1|"],"new_items_map_keys":["96|1|","49|3|","29|2|","61|1|","393|1|"]} 
[2026-02-27 13:37:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5077,"order_number":"AZS-270226-003"} 
[2026-02-27 13:37:36] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5077,"order_number":"AZS-270226-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2737,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-27 13:37:36","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-27 13:37:36"} 
[2026-02-27 13:37:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5077,"order_number":"AZS-270226-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-27 13:37:36"} 
[2026-02-27 13:37:36] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5077,"order_number":"AZS-270226-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2737.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-27 13:37:36","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2737,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2737.00","database_verification_match":true,"timestamp":"2026-02-27 13:37:36"} 
[2026-02-27 13:48:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5088,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24904},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":24905},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24906},{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24907},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24908},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24909},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":24910}],"validated_items":[{"id":24904,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24905,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":24906,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24907,"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24908,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24909,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24910,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-02-27 13:48:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5088,"items_count":7} 
[2026-02-27 13:48:52] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24904,"menu_item_id":417,"quantity":1},{"id":24905,"menu_item_id":95,"quantity":1},{"id":24906,"menu_item_id":396,"quantity":2},{"id":24907,"menu_item_id":393,"quantity":1},{"id":24908,"menu_item_id":61,"quantity":1},{"id":24909,"menu_item_id":56,"quantity":1},{"id":24910,"menu_item_id":2,"quantity":1}]} 
[2026-02-27 13:48:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5088,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["417|1|","95|1|","396|2|","393|1|","61|1|","56|1|","2|1|"],"new_items_map_keys":["417|1|","95|1|","396|2|","393|1|","61|1|","56|1|","2|1|"]} 
[2026-02-27 13:48:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5088,"order_number":"AZS-270226-006"} 
[2026-02-27 13:48:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5088,"order_number":"AZS-270226-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 13:48:52"} 
[2026-02-27 13:50:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5089,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24911},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24912},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24913}],"validated_items":[{"id":24911,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24912,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24913,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-27 13:50:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5089,"items_count":3} 
[2026-02-27 13:50:22] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24911,"menu_item_id":98,"quantity":1},{"id":24912,"menu_item_id":396,"quantity":2},{"id":24913,"menu_item_id":61,"quantity":1}]} 
[2026-02-27 13:50:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5089,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["98|1|","396|2|","61|1|"],"new_items_map_keys":["98|1|","396|2|","61|1|"]} 
[2026-02-27 13:50:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5089,"order_number":"AZS-270226-008"} 
[2026-02-27 13:50:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5089,"order_number":"AZS-270226-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 13:50:22"} 
[2026-02-27 13:51:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5085,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":24896},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":24897},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":24898},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24896,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":24897,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":24898,"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 13:51:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5085,"items_count":4} 
[2026-02-27 13:51:58] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24896,"menu_item_id":417,"quantity":1},{"id":24897,"menu_item_id":105,"quantity":1},{"id":24898,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-02-27 13:51:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5085,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["417|1|","105|1|","52|3|"],"new_items_map_keys":["417|1|","105|1|","52|3|","2|1|"]} 
[2026-02-27 13:51:58] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5085,"order_number":"AZS-270226-007"} 
[2026-02-27 13:51:58] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-007","replaced_order_id":5085} 
[2026-02-27 13:51:58] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5091,"items_count":4,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":52,"quantity":3,"price":"70.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-02-27 13:51:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5091,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5091}} 
[2026-02-27 13:51:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5091,"item_index":0,"menu_item_id":417} 
[2026-02-27 13:51:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5091,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5091}} 
[2026-02-27 13:51:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5091,"item_index":1,"menu_item_id":105} 
[2026-02-27 13:51:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5091,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5091}} 
[2026-02-27 13:51:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5091,"item_index":2,"menu_item_id":52} 
[2026-02-27 13:51:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5091,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5091}} 
[2026-02-27 13:51:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5091,"item_index":3,"menu_item_id":2} 
[2026-02-27 13:51:58] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5085,"new_order_id":5091,"order_number":"AZS-270226-007"} 
[2026-02-27 13:52:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5089,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24911},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24912},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24913}],"validated_items":[{"id":24911,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24912,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24913,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-27 13:52:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5089,"items_count":3} 
[2026-02-27 13:52:24] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24911,"menu_item_id":98,"quantity":1},{"id":24912,"menu_item_id":396,"quantity":2},{"id":24913,"menu_item_id":61,"quantity":1}]} 
[2026-02-27 13:52:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5089,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["98|1|","396|2|","61|1|"],"new_items_map_keys":["98|1|","396|2|","61|1|"]} 
[2026-02-27 13:52:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5089,"order_number":"AZS-270226-008"} 
[2026-02-27 13:52:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5089,"order_number":"AZS-270226-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 13:52:24"} 
[2026-02-27 13:52:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5089,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":24911},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":24912},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24913}],"validated_items":[{"id":24911,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":24912,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":24913,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 13:52:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5089,"items_count":3} 
[2026-02-27 13:52:37] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24911,"menu_item_id":98,"quantity":1},{"id":24912,"menu_item_id":396,"quantity":2},{"id":24913,"menu_item_id":61,"quantity":1}]} 
[2026-02-27 13:52:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5089,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["98|1|","396|2|","61|1|"],"new_items_map_keys":["98|1|","396|2|","61|1|"]} 
[2026-02-27 13:52:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5089,"order_number":"AZS-270226-008"} 
[2026-02-27 13:52:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5089,"order_number":"AZS-270226-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-27 13:52:37"} 
[2026-02-27 13:54:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5088,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24904},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":24905},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24906},{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24907},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24908},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24909},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":24910}],"validated_items":[{"id":24904,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24905,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":24906,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24907,"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24908,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24909,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24910,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-02-27 13:54:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5088,"items_count":7} 
[2026-02-27 13:54:33] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24904,"menu_item_id":417,"quantity":1},{"id":24905,"menu_item_id":95,"quantity":1},{"id":24906,"menu_item_id":396,"quantity":2},{"id":24907,"menu_item_id":393,"quantity":1},{"id":24908,"menu_item_id":61,"quantity":1},{"id":24909,"menu_item_id":56,"quantity":1},{"id":24910,"menu_item_id":2,"quantity":1}]} 
[2026-02-27 13:54:33] local.INFO: PosOrderController::update - Item changes check {"order_id":5088,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["417|1|","95|1|","396|2|","393|1|","61|1|","56|1|","2|1|"],"new_items_map_keys":["417|1|","95|1|","396|2|","393|1|","61|1|","56|1|","2|1|"]} 
[2026-02-27 13:54:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5088,"order_number":"AZS-270226-006"} 
[2026-02-27 13:54:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5088,"order_number":"AZS-270226-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 13:54:33"} 
[2026-02-27 13:55:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5088,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":24904},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":24905},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":24906},{"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null,"id":24907},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24908},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24909},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":24910},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24904,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":24905,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":24906,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":24907,"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null},{"id":24908,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":24909,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":24910,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 13:55:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5088,"items_count":8} 
[2026-02-27 13:55:04] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24904,"menu_item_id":417,"quantity":1},{"id":24905,"menu_item_id":95,"quantity":1},{"id":24906,"menu_item_id":396,"quantity":2},{"id":24907,"menu_item_id":393,"quantity":1},{"id":24908,"menu_item_id":61,"quantity":1},{"id":24909,"menu_item_id":56,"quantity":1},{"id":24910,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-27 13:55:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5088,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["417|1|","95|1|","396|2|","393|1|","61|1|","56|1|","2|1|"],"new_items_map_keys":["417|1|","95|1|","396|2|","393|1|","61|1|","56|1|","2|1|","5|1|"]} 
[2026-02-27 13:55:04] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5088,"order_number":"AZS-270226-006"} 
[2026-02-27 13:55:04] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-006","replaced_order_id":5088} 
[2026-02-27 13:55:04] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5093,"items_count":8,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":393,"quantity":1,"price":"499.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-27 13:55:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5093,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5093}} 
[2026-02-27 13:55:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5093,"item_index":0,"menu_item_id":417} 
[2026-02-27 13:55:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5093,"item_index":1,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5093}} 
[2026-02-27 13:55:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5093,"item_index":1,"menu_item_id":95} 
[2026-02-27 13:55:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5093,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5093}} 
[2026-02-27 13:55:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5093,"item_index":2,"menu_item_id":396} 
[2026-02-27 13:55:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5093,"item_index":3,"item_data":{"menu_item_id":393,"restaurant_category_id":35,"restaurant_category_name":"ROCK N ROLL","item_name":"Chicken Shawarma","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5093}} 
[2026-02-27 13:55:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5093,"item_index":3,"menu_item_id":393} 
[2026-02-27 13:55:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5093,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5093}} 
[2026-02-27 13:55:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5093,"item_index":4,"menu_item_id":61} 
[2026-02-27 13:55:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5093,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5093}} 
[2026-02-27 13:55:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5093,"item_index":5,"menu_item_id":56} 
[2026-02-27 13:55:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5093,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5093}} 
[2026-02-27 13:55:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5093,"item_index":6,"menu_item_id":2} 
[2026-02-27 13:55:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5093,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5093}} 
[2026-02-27 13:55:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5093,"item_index":7,"menu_item_id":5} 
[2026-02-27 13:55:04] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5088,"new_order_id":5093,"order_number":"AZS-270226-006"} 
[2026-02-27 13:55:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5093,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24925},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":24926},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24927},{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24928},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24929},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24930},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":24931},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24932}],"validated_items":[{"id":24925,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24926,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":24927,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24928,"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24929,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24930,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24931,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":24932,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-27 13:55:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5093,"items_count":8} 
[2026-02-27 13:55:33] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24925,"menu_item_id":417,"quantity":1},{"id":24926,"menu_item_id":95,"quantity":1},{"id":24927,"menu_item_id":396,"quantity":2},{"id":24928,"menu_item_id":393,"quantity":1},{"id":24929,"menu_item_id":61,"quantity":1},{"id":24930,"menu_item_id":56,"quantity":1},{"id":24931,"menu_item_id":2,"quantity":1},{"id":24932,"menu_item_id":5,"quantity":1}]} 
[2026-02-27 13:55:33] local.INFO: PosOrderController::update - Item changes check {"order_id":5093,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["417|1|","95|1|","396|2|","393|1|","61|1|","56|1|","2|1|","5|1|"],"new_items_map_keys":["417|1|","95|1|","396|2|","393|1|","61|1|","56|1|","2|1|","5|1|"]} 
[2026-02-27 13:55:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5093,"order_number":"AZS-270226-006"} 
[2026-02-27 13:55:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5093,"order_number":"AZS-270226-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 13:55:33"} 
[2026-02-27 14:04:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5091,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24915},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":24916},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":24917},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":24918}],"validated_items":[{"id":24915,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24916,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":24917,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":24918,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-02-27 14:04:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5091,"items_count":4} 
[2026-02-27 14:04:04] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24915,"menu_item_id":417,"quantity":1},{"id":24916,"menu_item_id":105,"quantity":1},{"id":24917,"menu_item_id":52,"quantity":3},{"id":24918,"menu_item_id":2,"quantity":1}]} 
[2026-02-27 14:04:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5091,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["417|1|","105|1|","52|3|","2|1|"],"new_items_map_keys":["417|1|","105|1|","52|3|","2|1|"]} 
[2026-02-27 14:04:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5091,"order_number":"AZS-270226-007"} 
[2026-02-27 14:04:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5091,"order_number":"AZS-270226-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 14:04:04"} 
[2026-02-27 14:04:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5091,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24915},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":24916},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":24917},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":24918}],"validated_items":[{"id":24915,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24916,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":24917,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":24918,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-02-27 14:04:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5091,"items_count":4} 
[2026-02-27 14:04:15] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24915,"menu_item_id":417,"quantity":1},{"id":24916,"menu_item_id":105,"quantity":1},{"id":24917,"menu_item_id":52,"quantity":3},{"id":24918,"menu_item_id":2,"quantity":1}]} 
[2026-02-27 14:04:15] local.INFO: PosOrderController::update - Item changes check {"order_id":5091,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["417|1|","105|1|","52|3|","2|1|"],"new_items_map_keys":["417|1|","105|1|","52|3|","2|1|"]} 
[2026-02-27 14:04:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5091,"order_number":"AZS-270226-007"} 
[2026-02-27 14:04:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5091,"order_number":"AZS-270226-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 14:04:15"} 
[2026-02-27 14:05:03] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5093,"order_number":"AZS-270226-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4088,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 14:05:03"} 
[2026-02-27 14:05:03] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5093,"order_number":"AZS-270226-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4088,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 14:05:03"} 
[2026-02-27 14:05:03] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5093,"order_number":"AZS-270226-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4088,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 14:05:03"} 
[2026-02-27 14:05:03] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5093,"order_number":"AZS-270226-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4088,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 14:05:03"} 
[2026-02-27 14:05:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5093,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24925},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":24926},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24927},{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24928},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24929},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24930},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":24931},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24932}],"validated_items":[{"id":24925,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24926,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":24927,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24928,"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24929,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24930,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24931,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":24932,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-27 14:05:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5093,"items_count":8} 
[2026-02-27 14:05:03] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24925,"menu_item_id":417,"quantity":1},{"id":24926,"menu_item_id":95,"quantity":1},{"id":24927,"menu_item_id":396,"quantity":2},{"id":24928,"menu_item_id":393,"quantity":1},{"id":24929,"menu_item_id":61,"quantity":1},{"id":24930,"menu_item_id":56,"quantity":1},{"id":24931,"menu_item_id":2,"quantity":1},{"id":24932,"menu_item_id":5,"quantity":1}]} 
[2026-02-27 14:05:03] local.INFO: PosOrderController::update - Item changes check {"order_id":5093,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["417|1|","95|1|","396|2|","393|1|","61|1|","56|1|","2|1|","5|1|"],"new_items_map_keys":["417|1|","95|1|","396|2|","393|1|","61|1|","56|1|","2|1|","5|1|"]} 
[2026-02-27 14:05:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5093,"order_number":"AZS-270226-006"} 
[2026-02-27 14:05:03] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5093,"order_number":"AZS-270226-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4088,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-27 14:05:03","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-27 14:05:03"} 
[2026-02-27 14:05:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5093,"order_number":"AZS-270226-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-27 14:05:03"} 
[2026-02-27 14:05:03] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5093,"order_number":"AZS-270226-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4088.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-27 14:05:03","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4088,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4088.00","database_verification_match":true,"timestamp":"2026-02-27 14:05:03"} 
[2026-02-27 14:07:36] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5091,"order_number":"AZS-270226-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3360,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 14:07:36"} 
[2026-02-27 14:07:36] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5091,"order_number":"AZS-270226-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3360,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 14:07:36"} 
[2026-02-27 14:07:36] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5091,"order_number":"AZS-270226-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3360,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 14:07:36"} 
[2026-02-27 14:07:36] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5091,"order_number":"AZS-270226-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3360,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 14:07:36"} 
[2026-02-27 14:07:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5091,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":24915},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":24916},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":24917},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":24918}],"validated_items":[{"id":24915,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":24916,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":24917,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":24918,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-02-27 14:07:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5091,"items_count":4} 
[2026-02-27 14:07:36] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24915,"menu_item_id":417,"quantity":1},{"id":24916,"menu_item_id":105,"quantity":1},{"id":24917,"menu_item_id":52,"quantity":3},{"id":24918,"menu_item_id":2,"quantity":1}]} 
[2026-02-27 14:07:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5091,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["417|1|","105|1|","52|3|","2|1|"],"new_items_map_keys":["417|1|","105|1|","52|3|","2|1|"]} 
[2026-02-27 14:07:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5091,"order_number":"AZS-270226-007"} 
[2026-02-27 14:07:36] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5091,"order_number":"AZS-270226-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3360,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-27 14:07:36","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-27 14:07:36"} 
[2026-02-27 14:07:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5091,"order_number":"AZS-270226-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-27 14:07:36"} 
[2026-02-27 14:07:36] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5091,"order_number":"AZS-270226-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3360.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-27 14:07:36","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3360,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3360.00","database_verification_match":true,"timestamp":"2026-02-27 14:07:36"} 
[2026-02-27 14:10:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5089,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24911},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24912},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24913}],"validated_items":[{"id":24911,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24912,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24913,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-27 14:10:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5089,"items_count":3} 
[2026-02-27 14:10:33] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24911,"menu_item_id":98,"quantity":1},{"id":24912,"menu_item_id":396,"quantity":2},{"id":24913,"menu_item_id":61,"quantity":1}]} 
[2026-02-27 14:10:33] local.INFO: PosOrderController::update - Item changes check {"order_id":5089,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["98|1|","396|2|","61|1|"],"new_items_map_keys":["98|1|","396|2|","61|1|"]} 
[2026-02-27 14:10:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5089,"order_number":"AZS-270226-008"} 
[2026-02-27 14:10:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5089,"order_number":"AZS-270226-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 14:10:33"} 
[2026-02-27 14:28:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5092,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":2,"discount_percent":0,"notes":null,"id":24919},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":24920},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":24921},{"menu_item_id":49,"quantity":5,"discount_percent":0,"notes":null,"id":24922},{"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null,"id":24923},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24924},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24919,"menu_item_id":96,"quantity":2,"discount_percent":0,"notes":null},{"id":24920,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"id":24921,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":24922,"menu_item_id":49,"quantity":5,"discount_percent":0,"notes":null},{"id":24923,"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null},{"id":24924,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 14:28:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5092,"items_count":8} 
[2026-02-27 14:28:23] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24919,"menu_item_id":96,"quantity":2},{"id":24920,"menu_item_id":63,"quantity":1},{"id":24921,"menu_item_id":64,"quantity":1},{"id":24922,"menu_item_id":49,"quantity":5},{"id":24923,"menu_item_id":286,"quantity":2},{"id":24924,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-27 14:28:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5092,"has_item_changes":true,"old_items_count":6,"new_items_count":8,"old_items_map_keys":["96|2|","63|1|","64|1|","49|5|","286|2|","61|1|"],"new_items_map_keys":["96|2|","63|1|","64|1|","49|5|","286|2|","61|1|","3|1|","5|1|"]} 
[2026-02-27 14:28:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5092,"order_number":"AZS-270226-010"} 
[2026-02-27 14:28:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-010","replaced_order_id":5092} 
[2026-02-27 14:28:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5094,"items_count":8,"items":[{"menu_item_id":96,"quantity":2,"price":"1199.00"},{"menu_item_id":63,"quantity":1,"price":"1099.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":49,"quantity":5,"price":"70.00"},{"menu_item_id":286,"quantity":2,"price":"15.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-27 14:28:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5094,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5094}} 
[2026-02-27 14:28:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5094,"item_index":0,"menu_item_id":96} 
[2026-02-27 14:28:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5094,"item_index":1,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5094}} 
[2026-02-27 14:28:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5094,"item_index":1,"menu_item_id":63} 
[2026-02-27 14:28:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5094,"item_index":2,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5094}} 
[2026-02-27 14:28:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5094,"item_index":2,"menu_item_id":64} 
[2026-02-27 14:28:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5094,"item_index":3,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":5,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":350.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5094}} 
[2026-02-27 14:28:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5094,"item_index":3,"menu_item_id":49} 
[2026-02-27 14:28:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5094,"item_index":4,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":2,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":30.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5094}} 
[2026-02-27 14:28:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5094,"item_index":4,"menu_item_id":286} 
[2026-02-27 14:28:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5094,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5094}} 
[2026-02-27 14:28:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5094,"item_index":5,"menu_item_id":61} 
[2026-02-27 14:28:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5094,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5094}} 
[2026-02-27 14:28:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5094,"item_index":6,"menu_item_id":3} 
[2026-02-27 14:28:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5094,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5094}} 
[2026-02-27 14:28:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5094,"item_index":7,"menu_item_id":5} 
[2026-02-27 14:28:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5092,"new_order_id":5094,"order_number":"AZS-270226-010"} 
[2026-02-27 14:28:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5089,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24911},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24912},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24913}],"validated_items":[{"id":24911,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24912,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24913,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-27 14:28:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5089,"items_count":3} 
[2026-02-27 14:28:40] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24911,"menu_item_id":98,"quantity":1},{"id":24912,"menu_item_id":396,"quantity":2},{"id":24913,"menu_item_id":61,"quantity":1}]} 
[2026-02-27 14:28:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5089,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["98|1|","396|2|","61|1|"],"new_items_map_keys":["98|1|","396|2|","61|1|"]} 
[2026-02-27 14:28:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5089,"order_number":"AZS-270226-008"} 
[2026-02-27 14:28:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5089,"order_number":"AZS-270226-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 14:28:40"} 
[2026-02-27 14:28:56] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5089,"order_number":"AZS-270226-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 14:28:56"} 
[2026-02-27 14:28:56] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5089,"order_number":"AZS-270226-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 14:28:56"} 
[2026-02-27 14:28:56] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5089,"order_number":"AZS-270226-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 14:28:56"} 
[2026-02-27 14:28:56] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5089,"order_number":"AZS-270226-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 14:28:56"} 
[2026-02-27 14:28:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":1,"order_id":5089,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24911},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24912}],"validated_items":[{"id":24911,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24912,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}]} 
[2026-02-27 14:28:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5089,"items_count":2} 
[2026-02-27 14:28:56] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":1,"items_to_remove":[24913],"items":[{"id":24911,"menu_item_id":98,"quantity":1},{"id":24912,"menu_item_id":396,"quantity":2}]} 
[2026-02-27 14:28:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5089,"has_item_changes":true,"old_items_count":3,"new_items_count":2,"old_items_map_keys":["98|1|","396|2|","61|1|"],"new_items_map_keys":["98|1|","396|2|"]} 
[2026-02-27 14:28:56] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5089,"order_number":"AZS-270226-008","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":1500,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-02-27 14:28:56","original_payment_amount":"0.00","grand_total":1467.0,"timestamp":"2026-02-27 14:28:56"} 
[2026-02-27 14:28:56] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5089,"order_number":"AZS-270226-008"} 
[2026-02-27 14:28:56] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-008","replaced_order_id":5089} 
[2026-02-27 14:28:56] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5089,"new_order_id":5095,"order_number":"AZS-270226-008","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"1500.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-02-27 14:28:56","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-02-27 14:28:56"} 
[2026-02-27 14:28:56] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5095,"items_count":2,"items":[{"menu_item_id":98,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":2,"price":99.0}]} 
[2026-02-27 14:28:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5095,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5095}} 
[2026-02-27 14:28:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5095,"item_index":0,"menu_item_id":98} 
[2026-02-27 14:28:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5095,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5095}} 
[2026-02-27 14:28:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5095,"item_index":1,"menu_item_id":396} 
[2026-02-27 14:28:56] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5089,"new_order_id":5095,"order_number":"AZS-270226-008"} 
[2026-02-27 14:28:57] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5089,"new_order_id":5095,"order_number":"AZS-270226-008","route":"api/orders/5089"} 
[2026-02-27 15:11:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5096,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":24943},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24943,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 15:11:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5096,"items_count":2} 
[2026-02-27 15:11:33] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24943,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-02-27 15:11:33] local.INFO: PosOrderController::update - Item changes check {"order_id":5096,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|","4|1|"]} 
[2026-02-27 15:11:33] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5096,"order_number":"AZS-270226-011"} 
[2026-02-27 15:11:33] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-011","replaced_order_id":5096} 
[2026-02-27 15:11:33] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5097,"items_count":2,"items":[{"menu_item_id":6,"quantity":2,"price":"199.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-02-27 15:11:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5097,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5097}} 
[2026-02-27 15:11:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5097,"item_index":0,"menu_item_id":6} 
[2026-02-27 15:11:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5097,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5097}} 
[2026-02-27 15:11:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5097,"item_index":1,"menu_item_id":4} 
[2026-02-27 15:11:33] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5096,"new_order_id":5097,"order_number":"AZS-270226-011"} 
[2026-02-27 15:12:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5094,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":2,"discount_percent":0,"notes":null,"id":24933},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":24934},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":24935},{"menu_item_id":49,"quantity":8,"discount_percent":0,"notes":null,"id":24936},{"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null,"id":24937},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":24938},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":24939},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24940}],"validated_items":[{"id":24933,"menu_item_id":96,"quantity":2,"discount_percent":0,"notes":null},{"id":24934,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"id":24935,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":24936,"menu_item_id":49,"quantity":8,"discount_percent":0,"notes":null},{"id":24937,"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null},{"id":24938,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":24939,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"id":24940,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 15:12:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5094,"items_count":8} 
[2026-02-27 15:12:04] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24933,"menu_item_id":96,"quantity":2},{"id":24934,"menu_item_id":63,"quantity":1},{"id":24935,"menu_item_id":64,"quantity":1},{"id":24936,"menu_item_id":49,"quantity":8},{"id":24937,"menu_item_id":286,"quantity":2},{"id":24938,"menu_item_id":61,"quantity":1},{"id":24939,"menu_item_id":3,"quantity":1},{"id":24940,"menu_item_id":5,"quantity":1}]} 
[2026-02-27 15:12:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5094,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["96|2|","63|1|","64|1|","49|5|","286|2|","61|1|","3|1|","5|1|"],"new_items_map_keys":["96|2|","63|1|","64|1|","49|8|","286|2|","61|1|","3|1|","5|1|"]} 
[2026-02-27 15:12:04] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5094,"order_number":"AZS-270226-010"} 
[2026-02-27 15:12:04] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-010","replaced_order_id":5094} 
[2026-02-27 15:12:04] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5098,"items_count":8,"items":[{"menu_item_id":96,"quantity":2,"price":"1199.00"},{"menu_item_id":63,"quantity":1,"price":"1099.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":49,"quantity":8,"price":"70.00"},{"menu_item_id":286,"quantity":2,"price":"15.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-27 15:12:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5098,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5098}} 
[2026-02-27 15:12:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5098,"item_index":0,"menu_item_id":96} 
[2026-02-27 15:12:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5098,"item_index":1,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5098}} 
[2026-02-27 15:12:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5098,"item_index":1,"menu_item_id":63} 
[2026-02-27 15:12:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5098,"item_index":2,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5098}} 
[2026-02-27 15:12:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5098,"item_index":2,"menu_item_id":64} 
[2026-02-27 15:12:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5098,"item_index":3,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":8,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":560.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5098}} 
[2026-02-27 15:12:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5098,"item_index":3,"menu_item_id":49} 
[2026-02-27 15:12:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5098,"item_index":4,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":2,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":30.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5098}} 
[2026-02-27 15:12:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5098,"item_index":4,"menu_item_id":286} 
[2026-02-27 15:12:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5098,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5098}} 
[2026-02-27 15:12:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5098,"item_index":5,"menu_item_id":61} 
[2026-02-27 15:12:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5098,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5098}} 
[2026-02-27 15:12:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5098,"item_index":6,"menu_item_id":3} 
[2026-02-27 15:12:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5098,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5098}} 
[2026-02-27 15:12:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5098,"item_index":7,"menu_item_id":5} 
[2026-02-27 15:12:04] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5094,"new_order_id":5098,"order_number":"AZS-270226-010"} 
[2026-02-27 15:12:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5098,"item_index":0,"item_id":24933} 
[2026-02-27 15:12:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5098,"item_index":1,"item_id":24934} 
[2026-02-27 15:12:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5098,"item_index":2,"item_id":24935} 
[2026-02-27 15:12:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5098,"item_index":3,"item_id":24936} 
[2026-02-27 15:12:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5098,"item_index":4,"item_id":24937} 
[2026-02-27 15:12:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5098,"item_index":5,"item_id":24938} 
[2026-02-27 15:12:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5098,"item_index":6,"item_id":24939} 
[2026-02-27 15:12:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5098,"item_index":7,"item_id":24940} 
[2026-02-27 15:12:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":8,"order_id":5098,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":24933},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":24934},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":24935},{"menu_item_id":49,"quantity":8,"price":70,"discount_percent":0,"notes":null,"id":24936},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":24937},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24938},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24939},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24940}],"validated_items":[{"menu_item_id":96,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":8,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-27 15:12:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5098,"items_count":8} 
[2026-02-27 15:12:18] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":8,"items_to_remove":[24946,24947,24948,24949,24950,24951,24952,24953],"items":[{"id":null,"menu_item_id":96,"quantity":2},{"id":null,"menu_item_id":63,"quantity":1},{"id":null,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":49,"quantity":8},{"id":null,"menu_item_id":286,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-27 15:12:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5098,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["96|2|","63|1|","64|1|","49|8|","286|2|","61|1|","3|1|","5|1|"],"new_items_map_keys":["96|2|","63|1|","64|1|","49|8|","286|2|","61|1|","3|1|","5|1|"]} 
[2026-02-27 15:12:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5098,"order_number":"AZS-270226-010"} 
[2026-02-27 15:12:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5098,"order_number":"AZS-270226-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 15:12:18"} 
[2026-02-27 15:16:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5098,"item_index":0,"item_id":24933} 
[2026-02-27 15:16:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5098,"item_index":1,"item_id":24934} 
[2026-02-27 15:16:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5098,"item_index":2,"item_id":24935} 
[2026-02-27 15:16:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5098,"item_index":3,"item_id":24936} 
[2026-02-27 15:16:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5098,"item_index":4,"item_id":24937} 
[2026-02-27 15:16:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5098,"item_index":5,"item_id":24938} 
[2026-02-27 15:16:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5098,"item_index":6,"item_id":24939} 
[2026-02-27 15:16:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5098,"item_index":7,"item_id":24940} 
[2026-02-27 15:16:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":8,"order_id":5098,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":24933},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":24934},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":24935},{"menu_item_id":49,"quantity":8,"price":70,"discount_percent":0,"notes":null,"id":24936},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":24937},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24938},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24939},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24940}],"validated_items":[{"menu_item_id":96,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":8,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-27 15:16:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5098,"items_count":8} 
[2026-02-27 15:16:57] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":8,"items_to_remove":[24946,24947,24948,24949,24950,24951,24952,24953],"items":[{"id":null,"menu_item_id":96,"quantity":2},{"id":null,"menu_item_id":63,"quantity":1},{"id":null,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":49,"quantity":8},{"id":null,"menu_item_id":286,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-27 15:16:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5098,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["96|2|","63|1|","64|1|","49|8|","286|2|","61|1|","3|1|","5|1|"],"new_items_map_keys":["96|2|","63|1|","64|1|","49|8|","286|2|","61|1|","3|1|","5|1|"]} 
[2026-02-27 15:16:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5098,"order_number":"AZS-270226-010"} 
[2026-02-27 15:16:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5098,"order_number":"AZS-270226-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 15:16:57"} 
[2026-02-27 15:22:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5098,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":24946},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":24947},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":24948},{"menu_item_id":49,"quantity":8,"price":70,"discount_percent":0,"notes":null,"id":24949},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":24950},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24951},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24952},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24953}],"validated_items":[{"id":24946,"menu_item_id":96,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":24947,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":24948,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":24949,"menu_item_id":49,"quantity":8,"price":70,"discount_percent":0,"notes":null},{"id":24950,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"id":24951,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24952,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":24953,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-27 15:22:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5098,"items_count":8} 
[2026-02-27 15:22:02] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24946,"menu_item_id":96,"quantity":2},{"id":24947,"menu_item_id":63,"quantity":1},{"id":24948,"menu_item_id":64,"quantity":1},{"id":24949,"menu_item_id":49,"quantity":8},{"id":24950,"menu_item_id":286,"quantity":2},{"id":24951,"menu_item_id":61,"quantity":1},{"id":24952,"menu_item_id":3,"quantity":1},{"id":24953,"menu_item_id":5,"quantity":1}]} 
[2026-02-27 15:22:02] local.INFO: PosOrderController::update - Item changes check {"order_id":5098,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["96|2|","63|1|","64|1|","49|8|","286|2|","61|1|","3|1|","5|1|"],"new_items_map_keys":["96|2|","63|1|","64|1|","49|8|","286|2|","61|1|","3|1|","5|1|"]} 
[2026-02-27 15:22:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5098,"order_number":"AZS-270226-010"} 
[2026-02-27 15:22:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5098,"order_number":"AZS-270226-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 15:22:02"} 
[2026-02-27 15:22:45] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5098,"order_number":"AZS-270226-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 15:22:45"} 
[2026-02-27 15:22:45] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5098,"order_number":"AZS-270226-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 15:22:45"} 
[2026-02-27 15:22:45] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5098,"order_number":"AZS-270226-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 15:22:45"} 
[2026-02-27 15:22:45] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5098,"order_number":"AZS-270226-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 15:22:45"} 
[2026-02-27 15:22:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":1,"order_id":5098,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":24946},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":24947},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":24948},{"menu_item_id":49,"quantity":8,"price":70,"discount_percent":0,"notes":null,"id":24949},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":24950},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24952},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24953}],"validated_items":[{"id":24946,"menu_item_id":96,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":24947,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":24948,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":24949,"menu_item_id":49,"quantity":8,"price":70,"discount_percent":0,"notes":null},{"id":24950,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"id":24952,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":24953,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-27 15:22:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5098,"items_count":7} 
[2026-02-27 15:22:45] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":1,"items_to_remove":[24951],"items":[{"id":24946,"menu_item_id":96,"quantity":2},{"id":24947,"menu_item_id":63,"quantity":1},{"id":24948,"menu_item_id":64,"quantity":1},{"id":24949,"menu_item_id":49,"quantity":8},{"id":24950,"menu_item_id":286,"quantity":2},{"id":24952,"menu_item_id":3,"quantity":1},{"id":24953,"menu_item_id":5,"quantity":1}]} 
[2026-02-27 15:22:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5098,"has_item_changes":true,"old_items_count":8,"new_items_count":7,"old_items_map_keys":["96|2|","63|1|","64|1|","49|8|","286|2|","61|1|","3|1|","5|1|"],"new_items_map_keys":["96|2|","63|1|","64|1|","49|8|","286|2|","3|1|","5|1|"]} 
[2026-02-27 15:22:45] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5098,"order_number":"AZS-270226-010","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":6000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-02-27 15:22:45","original_payment_amount":"0.00","grand_total":5526.0,"timestamp":"2026-02-27 15:22:45"} 
[2026-02-27 15:22:45] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5098,"order_number":"AZS-270226-010"} 
[2026-02-27 15:22:45] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-010","replaced_order_id":5098} 
[2026-02-27 15:22:45] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5098,"new_order_id":5100,"order_number":"AZS-270226-010","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"6000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-02-27 15:22:45","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-02-27 15:22:45"} 
[2026-02-27 15:22:45] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5100,"items_count":7,"items":[{"menu_item_id":96,"quantity":2,"price":1199.0},{"menu_item_id":63,"quantity":1,"price":1099.0},{"menu_item_id":64,"quantity":1,"price":999.0},{"menu_item_id":49,"quantity":8,"price":70.0},{"menu_item_id":286,"quantity":2,"price":15.0},{"menu_item_id":3,"quantity":1,"price":270.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-02-27 15:22:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5100,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":2,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5100}} 
[2026-02-27 15:22:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5100,"item_index":0,"menu_item_id":96} 
[2026-02-27 15:22:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5100,"item_index":1,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":1099.0,"discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5100}} 
[2026-02-27 15:22:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5100,"item_index":1,"menu_item_id":63} 
[2026-02-27 15:22:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5100,"item_index":2,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":999.0,"discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5100}} 
[2026-02-27 15:22:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5100,"item_index":2,"menu_item_id":64} 
[2026-02-27 15:22:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5100,"item_index":3,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":8,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":560.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5100}} 
[2026-02-27 15:22:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5100,"item_index":3,"menu_item_id":49} 
[2026-02-27 15:22:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5100,"item_index":4,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":2,"price":15.0,"discount_percent":0.0,"discount_amount":0.0,"total":30.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5100}} 
[2026-02-27 15:22:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5100,"item_index":4,"menu_item_id":286} 
[2026-02-27 15:22:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5100,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5100}} 
[2026-02-27 15:22:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5100,"item_index":5,"menu_item_id":3} 
[2026-02-27 15:22:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5100,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5100}} 
[2026-02-27 15:22:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5100,"item_index":6,"menu_item_id":5} 
[2026-02-27 15:22:45] local.ERROR: Error tracking recipe usage for order 5100: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5100, 96, 77, 1, 2, 0.00, Order #AZS-270226-010 - 2x Chicken Karahi - Half, 2026-02-27 15:22:45, 2026-02-27 15:22:45))  
[2026-02-27 15:22:45] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5098,"new_order_id":5100,"order_number":"AZS-270226-010"} 
[2026-02-27 15:22:46] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5098,"new_order_id":5100,"order_number":"AZS-270226-010","route":"api/orders/5098"} 
[2026-02-27 15:30:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T03:30:16.599Z","date_to":"2026-02-27T15:30:16.599Z","per_page":"100"} 
[2026-02-27 15:30:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T03:30:16.575Z","date_to":"2026-02-27T15:30:16.575Z","per_page":"100"} 
[2026-02-27 15:30:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-012","AZS-270226-011","AZS-270226-011","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["pending","pending","changed","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed"],"deleted_count":14,"paid_count":10,"unpaid_count":2,"unique_order_numbers":12} 
[2026-02-27 15:30:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-012","AZS-270226-011","AZS-270226-011","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["pending","pending","changed","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed"],"deleted_count":14,"paid_count":10,"unpaid_count":2,"unique_order_numbers":12} 
[2026-02-27 15:30:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T03:30:16.575Z","date_to":"2026-02-27T15:30:16.575Z","per_page":"100"} 
[2026-02-27 15:30:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-012","AZS-270226-011","AZS-270226-011","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["pending","pending","changed","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed"],"deleted_count":14,"paid_count":10,"unpaid_count":2,"unique_order_numbers":12} 
[2026-02-27 15:38:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5097,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24944},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":24945}],"validated_items":[{"id":24944,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24945,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-27 15:38:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5097,"items_count":2} 
[2026-02-27 15:38:37] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24944,"menu_item_id":6,"quantity":2},{"id":24945,"menu_item_id":4,"quantity":1}]} 
[2026-02-27 15:38:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5097,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|2|","4|1|"],"new_items_map_keys":["6|2|","4|1|"]} 
[2026-02-27 15:38:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5097,"order_number":"AZS-270226-011"} 
[2026-02-27 15:38:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5097,"order_number":"AZS-270226-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 15:38:37"} 
[2026-02-27 15:46:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5097,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24944},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":24945}],"validated_items":[{"id":24944,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24945,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-27 15:46:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5097,"items_count":2} 
[2026-02-27 15:46:55] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24944,"menu_item_id":6,"quantity":2},{"id":24945,"menu_item_id":4,"quantity":1}]} 
[2026-02-27 15:46:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5097,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|2|","4|1|"],"new_items_map_keys":["6|2|","4|1|"]} 
[2026-02-27 15:46:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5097,"order_number":"AZS-270226-011"} 
[2026-02-27 15:46:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5097,"order_number":"AZS-270226-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 15:46:55"} 
[2026-02-27 15:47:12] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5097,"order_number":"AZS-270226-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":550,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 15:47:12"} 
[2026-02-27 15:47:12] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5097,"order_number":"AZS-270226-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":550,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 15:47:12"} 
[2026-02-27 15:47:12] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5097,"order_number":"AZS-270226-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":550,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 15:47:12"} 
[2026-02-27 15:47:12] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5097,"order_number":"AZS-270226-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":550,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 15:47:12"} 
[2026-02-27 15:47:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5097,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24944},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":24945}],"validated_items":[{"id":24944,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24945,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-27 15:47:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5097,"items_count":2} 
[2026-02-27 15:47:12] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24944,"menu_item_id":6,"quantity":1},{"id":24945,"menu_item_id":4,"quantity":1}]} 
[2026-02-27 15:47:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5097,"has_item_changes":true,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|2|","4|1|"],"new_items_map_keys":["6|1|","4|1|"]} 
[2026-02-27 15:47:12] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5097,"order_number":"AZS-270226-011","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":550,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-02-27 15:47:12","original_payment_amount":"0.00","grand_total":303.0,"timestamp":"2026-02-27 15:47:12"} 
[2026-02-27 15:47:12] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5097,"order_number":"AZS-270226-011"} 
[2026-02-27 15:47:12] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-011","replaced_order_id":5097} 
[2026-02-27 15:47:12] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5097,"new_order_id":5102,"order_number":"AZS-270226-011","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"550.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-02-27 15:47:12","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":550,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-02-27 15:47:12"} 
[2026-02-27 15:47:12] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5102,"items_count":2,"items":[{"menu_item_id":6,"quantity":1,"price":199.0},{"menu_item_id":4,"quantity":1,"price":90.0}]} 
[2026-02-27 15:47:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5102,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5102}} 
[2026-02-27 15:47:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5102,"item_index":0,"menu_item_id":6} 
[2026-02-27 15:47:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5102,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":90.0,"discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5102}} 
[2026-02-27 15:47:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5102,"item_index":1,"menu_item_id":4} 
[2026-02-27 15:47:12] local.ERROR: Error tracking recipe usage for order 5102: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5102, 6, 177, 1, 333, 0.00, Order #AZS-270226-011 - 1x Karak Tea, 2026-02-27 15:47:12, 2026-02-27 15:47:12))  
[2026-02-27 15:47:12] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5097,"new_order_id":5102,"order_number":"AZS-270226-011"} 
[2026-02-27 15:47:12] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5097,"new_order_id":5102,"order_number":"AZS-270226-011","route":"api/orders/5097"} 
[2026-02-27 16:08:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5099,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":2,"discount_percent":0,"notes":null,"id":24954},{"menu_item_id":50,"quantity":10,"discount_percent":0,"notes":null,"id":24955},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":24956},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":24957},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24958},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24954,"menu_item_id":106,"quantity":2,"discount_percent":0,"notes":null},{"id":24955,"menu_item_id":50,"quantity":10,"discount_percent":0,"notes":null},{"id":24956,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":24957,"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"id":24958,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 16:08:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5099,"items_count":6} 
[2026-02-27 16:08:06] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24954,"menu_item_id":106,"quantity":2},{"id":24955,"menu_item_id":50,"quantity":10},{"id":24956,"menu_item_id":61,"quantity":3},{"id":24957,"menu_item_id":56,"quantity":3},{"id":24958,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-27 16:08:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5099,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["106|2|","50|10|","61|3|","56|3|","5|1|"],"new_items_map_keys":["106|2|","50|10|","61|3|","56|3|","5|1|","3|1|"]} 
[2026-02-27 16:08:06] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5099,"order_number":"AZS-270226-012"} 
[2026-02-27 16:08:06] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-012","replaced_order_id":5099} 
[2026-02-27 16:08:06] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5103,"items_count":6,"items":[{"menu_item_id":106,"quantity":2,"price":"4199.00"},{"menu_item_id":50,"quantity":10,"price":"129.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":3,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-27 16:08:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5103,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":2,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":8398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5103}} 
[2026-02-27 16:08:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5103,"item_index":0,"menu_item_id":106} 
[2026-02-27 16:08:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5103,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":10,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":1290.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5103}} 
[2026-02-27 16:08:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5103,"item_index":1,"menu_item_id":50} 
[2026-02-27 16:08:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5103,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5103}} 
[2026-02-27 16:08:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5103,"item_index":2,"menu_item_id":61} 
[2026-02-27 16:08:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5103,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5103}} 
[2026-02-27 16:08:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5103,"item_index":3,"menu_item_id":56} 
[2026-02-27 16:08:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5103,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5103}} 
[2026-02-27 16:08:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5103,"item_index":4,"menu_item_id":5} 
[2026-02-27 16:08:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5103,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5103}} 
[2026-02-27 16:08:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5103,"item_index":5,"menu_item_id":3} 
[2026-02-27 16:08:06] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5099,"new_order_id":5103,"order_number":"AZS-270226-012"} 
[2026-02-27 16:14:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5104,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null,"id":24978}],"validated_items":[{"id":24978,"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-02-27 16:14:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5104,"items_count":1} 
[2026-02-27 16:14:16] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24978,"menu_item_id":6,"quantity":3}]} 
[2026-02-27 16:14:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5104,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|3|"],"new_items_map_keys":["6|3|"]} 
[2026-02-27 16:14:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5104,"order_number":"AZS-270226-014"} 
[2026-02-27 16:14:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5104,"order_number":"AZS-270226-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-02-27 16:14:16"} 
[2026-02-27 16:24:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5105,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":24979},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":24980},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":24981},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24982},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24983}],"validated_items":[{"id":24979,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":24980,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":24981,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":24982,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":24983,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 16:24:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5105,"items_count":5} 
[2026-02-27 16:24:21] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24979,"menu_item_id":114,"quantity":1},{"id":24980,"menu_item_id":396,"quantity":4},{"id":24981,"menu_item_id":61,"quantity":2},{"id":24982,"menu_item_id":56,"quantity":1},{"id":24983,"menu_item_id":5,"quantity":1}]} 
[2026-02-27 16:24:21] local.INFO: PosOrderController::update - Item changes check {"order_id":5105,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|1|","396|4|","61|2|","56|2|","5|1|"],"new_items_map_keys":["114|1|","396|4|","61|2|","56|1|","5|1|"]} 
[2026-02-27 16:24:21] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5105,"order_number":"AZS-270226-015"} 
[2026-02-27 16:24:21] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-015","replaced_order_id":5105} 
[2026-02-27 16:24:21] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5106,"items_count":5,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-27 16:24:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5106,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5106}} 
[2026-02-27 16:24:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5106,"item_index":0,"menu_item_id":114} 
[2026-02-27 16:24:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5106,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5106}} 
[2026-02-27 16:24:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5106,"item_index":1,"menu_item_id":396} 
[2026-02-27 16:24:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5106,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5106}} 
[2026-02-27 16:24:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5106,"item_index":2,"menu_item_id":61} 
[2026-02-27 16:24:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5106,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5106}} 
[2026-02-27 16:24:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5106,"item_index":3,"menu_item_id":56} 
[2026-02-27 16:24:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5106,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5106}} 
[2026-02-27 16:24:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5106,"item_index":4,"menu_item_id":5} 
[2026-02-27 16:24:21] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5105,"new_order_id":5106,"order_number":"AZS-270226-015"} 
[2026-02-27 16:24:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5101,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24966},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24967},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24968},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24969}],"validated_items":[{"id":24966,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24967,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24968,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24969,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-27 16:24:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5101,"items_count":4} 
[2026-02-27 16:24:56] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24966,"menu_item_id":396,"quantity":2},{"id":24967,"menu_item_id":61,"quantity":1},{"id":24968,"menu_item_id":98,"quantity":1},{"id":24969,"menu_item_id":5,"quantity":1}]} 
[2026-02-27 16:24:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5101,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["396|2|","61|1|","98|1|","5|1|"],"new_items_map_keys":["396|2|","61|1|","98|1|","5|1|"]} 
[2026-02-27 16:24:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5101,"order_number":"AZS-270226-013"} 
[2026-02-27 16:24:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5101,"order_number":"AZS-270226-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 16:24:56"} 
[2026-02-27 16:27:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5103,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":2,"price":4199,"discount_percent":0,"notes":null,"id":24972},{"menu_item_id":50,"quantity":10,"price":129,"discount_percent":0,"notes":null,"id":24973},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":24974},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":24975},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24976},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24977},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}],"validated_items":[{"id":24972,"menu_item_id":106,"quantity":2,"price":4199,"discount_percent":0,"notes":null},{"id":24973,"menu_item_id":50,"quantity":10,"price":129,"discount_percent":0,"notes":null},{"id":24974,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":24975,"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":24976,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24977,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}]} 
[2026-02-27 16:27:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5103,"items_count":7} 
[2026-02-27 16:27:50] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24972,"menu_item_id":106,"quantity":2},{"id":24973,"menu_item_id":50,"quantity":10},{"id":24974,"menu_item_id":61,"quantity":3},{"id":24975,"menu_item_id":56,"quantity":3},{"id":24976,"menu_item_id":5,"quantity":1},{"id":24977,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2}]} 
[2026-02-27 16:27:50] local.INFO: PosOrderController::update - Item changes check {"order_id":5103,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["106|2|","50|10|","61|3|","56|3|","5|1|","3|1|"],"new_items_map_keys":["106|2|","50|10|","61|3|","56|3|","5|1|","3|1|","396|2|"]} 
[2026-02-27 16:27:50] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5103,"order_number":"AZS-270226-012"} 
[2026-02-27 16:27:50] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-012","replaced_order_id":5103} 
[2026-02-27 16:27:50] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5107,"items_count":7,"items":[{"menu_item_id":106,"quantity":2,"price":4199.0},{"menu_item_id":50,"quantity":10,"price":129.0},{"menu_item_id":61,"quantity":3,"price":199.0},{"menu_item_id":56,"quantity":3,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0},{"menu_item_id":396,"quantity":2,"price":99.0}]} 
[2026-02-27 16:27:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5107,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":2,"price":4199.0,"discount_percent":0.0,"discount_amount":0.0,"total":8398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5107}} 
[2026-02-27 16:27:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5107,"item_index":0,"menu_item_id":106} 
[2026-02-27 16:27:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5107,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":10,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":1290.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5107}} 
[2026-02-27 16:27:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5107,"item_index":1,"menu_item_id":50} 
[2026-02-27 16:27:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5107,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5107}} 
[2026-02-27 16:27:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5107,"item_index":2,"menu_item_id":61} 
[2026-02-27 16:27:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5107,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5107}} 
[2026-02-27 16:27:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5107,"item_index":3,"menu_item_id":56} 
[2026-02-27 16:27:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5107,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5107}} 
[2026-02-27 16:27:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5107,"item_index":4,"menu_item_id":5} 
[2026-02-27 16:27:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5107,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5107}} 
[2026-02-27 16:27:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5107,"item_index":5,"menu_item_id":3} 
[2026-02-27 16:27:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5107,"item_index":6,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5107}} 
[2026-02-27 16:27:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5107,"item_index":6,"menu_item_id":396} 
[2026-02-27 16:27:50] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5103,"new_order_id":5107,"order_number":"AZS-270226-012"} 
[2026-02-27 16:27:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5107,"item_index":0,"item_id":24972} 
[2026-02-27 16:27:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5107,"item_index":1,"item_id":24973} 
[2026-02-27 16:27:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5107,"item_index":2,"item_id":24974} 
[2026-02-27 16:27:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5107,"item_index":3,"item_id":24975} 
[2026-02-27 16:27:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5107,"item_index":4,"item_id":24976} 
[2026-02-27 16:27:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5107,"item_index":5,"item_id":24977} 
[2026-02-27 16:27:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5107,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":2,"price":4199,"discount_percent":0,"notes":null,"id":24972},{"menu_item_id":50,"quantity":10,"price":129,"discount_percent":0,"notes":null,"id":24973},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":24974},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":24975},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24976},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24977},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":106,"quantity":2,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":10,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}]} 
[2026-02-27 16:27:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5107,"items_count":7} 
[2026-02-27 16:27:55] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[24989,24990,24991,24992,24993,24994,24995],"items":[{"id":null,"menu_item_id":106,"quantity":2},{"id":null,"menu_item_id":50,"quantity":10},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2}]} 
[2026-02-27 16:27:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5107,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|2|","50|10|","61|3|","56|3|","5|1|","3|1|","396|2|"],"new_items_map_keys":["106|2|","50|10|","61|3|","56|3|","5|1|","3|1|","396|2|"]} 
[2026-02-27 16:27:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5107,"order_number":"AZS-270226-012"} 
[2026-02-27 16:27:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5107,"order_number":"AZS-270226-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 16:27:55"} 
[2026-02-27 16:29:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5107,"item_index":0,"item_id":24972} 
[2026-02-27 16:29:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5107,"item_index":1,"item_id":24973} 
[2026-02-27 16:29:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5107,"item_index":2,"item_id":24974} 
[2026-02-27 16:29:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5107,"item_index":3,"item_id":24975} 
[2026-02-27 16:29:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5107,"item_index":4,"item_id":24976} 
[2026-02-27 16:29:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5107,"item_index":5,"item_id":24977} 
[2026-02-27 16:29:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5107,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":2,"price":4199,"discount_percent":0,"notes":null,"id":24972},{"menu_item_id":50,"quantity":10,"price":129,"discount_percent":0,"notes":null,"id":24973},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":24974},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":24975},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24976},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24977},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":106,"quantity":2,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":10,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}]} 
[2026-02-27 16:29:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5107,"items_count":7} 
[2026-02-27 16:29:31] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[24989,24990,24991,24992,24993,24994,24995],"items":[{"id":null,"menu_item_id":106,"quantity":2},{"id":null,"menu_item_id":50,"quantity":10},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2}]} 
[2026-02-27 16:29:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5107,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|2|","50|10|","61|3|","56|3|","5|1|","3|1|","396|2|"],"new_items_map_keys":["106|2|","50|10|","61|3|","56|3|","5|1|","3|1|","396|2|"]} 
[2026-02-27 16:29:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5107,"order_number":"AZS-270226-012"} 
[2026-02-27 16:29:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5107,"order_number":"AZS-270226-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 16:29:31"} 
[2026-02-27 16:31:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5101,"order_number":"AZS-270226-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1855,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 16:31:27"} 
[2026-02-27 16:31:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5101,"order_number":"AZS-270226-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1855,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 16:31:27"} 
[2026-02-27 16:31:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5101,"order_number":"AZS-270226-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1855,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 16:31:27"} 
[2026-02-27 16:31:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5101,"order_number":"AZS-270226-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1855,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 16:31:27"} 
[2026-02-27 16:31:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5101,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24966},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24967},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":24968},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24969}],"validated_items":[{"id":24966,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":24967,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":24968,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":24969,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-27 16:31:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5101,"items_count":4} 
[2026-02-27 16:31:27] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24966,"menu_item_id":396,"quantity":2},{"id":24967,"menu_item_id":61,"quantity":1},{"id":24968,"menu_item_id":98,"quantity":1},{"id":24969,"menu_item_id":5,"quantity":1}]} 
[2026-02-27 16:31:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5101,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["396|2|","61|1|","98|1|","5|1|"],"new_items_map_keys":["396|2|","61|1|","98|1|","5|1|"]} 
[2026-02-27 16:31:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5101,"order_number":"AZS-270226-013"} 
[2026-02-27 16:31:27] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5101,"order_number":"AZS-270226-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1855,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-27 16:31:27","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-27 16:31:27"} 
[2026-02-27 16:31:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5101,"order_number":"AZS-270226-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-27 16:31:27"} 
[2026-02-27 16:31:27] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5101,"order_number":"AZS-270226-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1855.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-27 16:31:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1855,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1855.00","database_verification_match":true,"timestamp":"2026-02-27 16:31:27"} 
[2026-02-27 16:34:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5108,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24996},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":24997},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24998}],"validated_items":[{"id":24996,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":24997,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":24998,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-27 16:34:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5108,"items_count":3} 
[2026-02-27 16:34:23] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24996,"menu_item_id":65,"quantity":1},{"id":24997,"menu_item_id":50,"quantity":2},{"id":24998,"menu_item_id":56,"quantity":1}]} 
[2026-02-27 16:34:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5108,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["65|1|","50|2|","56|1|"],"new_items_map_keys":["65|1|","50|2|","56|1|"]} 
[2026-02-27 16:34:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5108,"order_number":"AZS-270226-016"} 
[2026-02-27 16:34:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5108,"order_number":"AZS-270226-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-02-27 16:34:23"} 
[2026-02-27 16:36:41] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5108,"order_number":"AZS-270226-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 16:36:41"} 
[2026-02-27 16:36:41] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5108,"order_number":"AZS-270226-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 16:36:41"} 
[2026-02-27 16:36:41] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5108,"order_number":"AZS-270226-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 16:36:41"} 
[2026-02-27 16:36:41] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5108,"order_number":"AZS-270226-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 16:36:41"} 
[2026-02-27 16:36:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5108,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":24996},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":24997},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24998}],"validated_items":[{"id":24996,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":24997,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":24998,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-27 16:36:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5108,"items_count":3} 
[2026-02-27 16:36:41] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24996,"menu_item_id":65,"quantity":1},{"id":24997,"menu_item_id":50,"quantity":2},{"id":24998,"menu_item_id":56,"quantity":1}]} 
[2026-02-27 16:36:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5108,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["65|1|","50|2|","56|1|"],"new_items_map_keys":["65|1|","50|2|","56|1|"]} 
[2026-02-27 16:36:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5108,"order_number":"AZS-270226-016"} 
[2026-02-27 16:36:41] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5108,"order_number":"AZS-270226-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-27 16:36:41","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-27 16:36:41"} 
[2026-02-27 16:36:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5108,"order_number":"AZS-270226-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-27 16:36:41"} 
[2026-02-27 16:36:41] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5108,"order_number":"AZS-270226-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-27 16:36:41","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-02-27 16:36:41"} 
[2026-02-27 16:37:03] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5107,"order_number":"AZS-270226-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":12000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 16:37:03"} 
[2026-02-27 16:37:03] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5107,"order_number":"AZS-270226-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":12000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 16:37:03"} 
[2026-02-27 16:37:03] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5107,"order_number":"AZS-270226-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":12000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 16:37:03"} 
[2026-02-27 16:37:03] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5107,"order_number":"AZS-270226-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":12000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 16:37:03"} 
[2026-02-27 16:37:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5107,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":2,"price":4199,"discount_percent":0,"notes":null,"id":24989},{"menu_item_id":50,"quantity":10,"price":129,"discount_percent":0,"notes":null,"id":24990},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24991},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":24992},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":24993},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":24994},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":24995}],"validated_items":[{"id":24989,"menu_item_id":106,"quantity":2,"price":4199,"discount_percent":0,"notes":null},{"id":24990,"menu_item_id":50,"quantity":10,"price":129,"discount_percent":0,"notes":null},{"id":24991,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24992,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":24993,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":24994,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":24995,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}]} 
[2026-02-27 16:37:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5107,"items_count":7} 
[2026-02-27 16:37:03] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24989,"menu_item_id":106,"quantity":2},{"id":24990,"menu_item_id":50,"quantity":10},{"id":24991,"menu_item_id":61,"quantity":2},{"id":24992,"menu_item_id":56,"quantity":2},{"id":24993,"menu_item_id":5,"quantity":1},{"id":24994,"menu_item_id":3,"quantity":1},{"id":24995,"menu_item_id":396,"quantity":2}]} 
[2026-02-27 16:37:03] local.INFO: PosOrderController::update - Item changes check {"order_id":5107,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|2|","50|10|","61|3|","56|3|","5|1|","3|1|","396|2|"],"new_items_map_keys":["106|2|","50|10|","61|2|","56|2|","5|1|","3|1|","396|2|"]} 
[2026-02-27 16:37:03] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5107,"order_number":"AZS-270226-012","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":12000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-02-27 16:37:03","original_payment_amount":"0.00","grand_total":11122.0,"timestamp":"2026-02-27 16:37:03"} 
[2026-02-27 16:37:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5107,"order_number":"AZS-270226-012"} 
[2026-02-27 16:37:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-012","replaced_order_id":5107} 
[2026-02-27 16:37:03] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5107,"new_order_id":5110,"order_number":"AZS-270226-012","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"12000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-02-27 16:37:03","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":12000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-02-27 16:37:03"} 
[2026-02-27 16:37:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5110,"items_count":7,"items":[{"menu_item_id":106,"quantity":2,"price":4199.0},{"menu_item_id":50,"quantity":10,"price":129.0},{"menu_item_id":61,"quantity":2,"price":199.0},{"menu_item_id":56,"quantity":2,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0},{"menu_item_id":396,"quantity":2,"price":99.0}]} 
[2026-02-27 16:37:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5110,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":2,"price":4199.0,"discount_percent":0.0,"discount_amount":0.0,"total":8398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5110}} 
[2026-02-27 16:37:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5110,"item_index":0,"menu_item_id":106} 
[2026-02-27 16:37:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5110,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":10,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":1290.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5110}} 
[2026-02-27 16:37:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5110,"item_index":1,"menu_item_id":50} 
[2026-02-27 16:37:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5110,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5110}} 
[2026-02-27 16:37:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5110,"item_index":2,"menu_item_id":61} 
[2026-02-27 16:37:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5110,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5110}} 
[2026-02-27 16:37:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5110,"item_index":3,"menu_item_id":56} 
[2026-02-27 16:37:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5110,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5110}} 
[2026-02-27 16:37:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5110,"item_index":4,"menu_item_id":5} 
[2026-02-27 16:37:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5110,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5110}} 
[2026-02-27 16:37:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5110,"item_index":5,"menu_item_id":3} 
[2026-02-27 16:37:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5110,"item_index":6,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5110}} 
[2026-02-27 16:37:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5110,"item_index":6,"menu_item_id":396} 
[2026-02-27 16:37:03] local.ERROR: Error tracking recipe usage for order 5110: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5110, 106, 196, 1, 2, 0.00, Order #AZS-270226-012 - 2x Mutton Shinwari - Full, 2026-02-27 16:37:03, 2026-02-27 16:37:03))  
[2026-02-27 16:37:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5107,"new_order_id":5110,"order_number":"AZS-270226-012"} 
[2026-02-27 16:37:04] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5107,"new_order_id":5110,"order_number":"AZS-270226-012","route":"api/orders/5107"} 
[2026-02-27 16:48:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T04:48:55.359Z","date_to":"2026-02-27T16:48:55.359Z","per_page":"100"} 
[2026-02-27 16:48:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-017","AZS-270226-016","AZS-270226-015","AZS-270226-015","AZS-270226-014","AZS-270226-013","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-011","AZS-270226-011","AZS-270226-011","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["pending","paid","pending","changed","pending","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed"],"deleted_count":19,"paid_count":14,"unpaid_count":3,"unique_order_numbers":17} 
[2026-02-27 16:48:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T04:48:55.384Z","date_to":"2026-02-27T16:48:55.384Z","per_page":"100"} 
[2026-02-27 16:48:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-017","AZS-270226-016","AZS-270226-015","AZS-270226-015","AZS-270226-014","AZS-270226-013","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-011","AZS-270226-011","AZS-270226-011","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["pending","paid","pending","changed","pending","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed"],"deleted_count":19,"paid_count":14,"unpaid_count":3,"unique_order_numbers":17} 
[2026-02-27 16:48:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T04:48:55.359Z","date_to":"2026-02-27T16:48:55.359Z","per_page":"100"} 
[2026-02-27 16:48:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-017","AZS-270226-016","AZS-270226-015","AZS-270226-015","AZS-270226-014","AZS-270226-013","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-011","AZS-270226-011","AZS-270226-011","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["pending","paid","pending","changed","pending","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed"],"deleted_count":19,"paid_count":14,"unpaid_count":3,"unique_order_numbers":17} 
[2026-02-27 16:50:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5106,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":24984},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":24985},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":24986},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":24987},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":24988},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":24984,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":24985,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":24986,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":24987,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":24988,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 16:50:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5106,"items_count":6} 
[2026-02-27 16:50:17] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24984,"menu_item_id":114,"quantity":1},{"id":24985,"menu_item_id":396,"quantity":4},{"id":24986,"menu_item_id":61,"quantity":2},{"id":24987,"menu_item_id":56,"quantity":1},{"id":24988,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-27 16:50:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5106,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["114|1|","396|4|","61|2|","56|1|","5|1|"],"new_items_map_keys":["114|1|","396|4|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-02-27 16:50:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5106,"order_number":"AZS-270226-015"} 
[2026-02-27 16:50:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-015","replaced_order_id":5106} 
[2026-02-27 16:50:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5111,"items_count":6,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-27 16:50:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5111,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5111}} 
[2026-02-27 16:50:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5111,"item_index":0,"menu_item_id":114} 
[2026-02-27 16:50:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5111,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5111}} 
[2026-02-27 16:50:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5111,"item_index":1,"menu_item_id":396} 
[2026-02-27 16:50:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5111,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5111}} 
[2026-02-27 16:50:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5111,"item_index":2,"menu_item_id":61} 
[2026-02-27 16:50:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5111,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5111}} 
[2026-02-27 16:50:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5111,"item_index":3,"menu_item_id":56} 
[2026-02-27 16:50:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5111,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5111}} 
[2026-02-27 16:50:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5111,"item_index":4,"menu_item_id":5} 
[2026-02-27 16:50:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5111,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5111}} 
[2026-02-27 16:50:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5111,"item_index":5,"menu_item_id":3} 
[2026-02-27 16:50:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5106,"new_order_id":5111,"order_number":"AZS-270226-015"} 
[2026-02-27 17:08:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5109,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24999}],"validated_items":[{"id":24999,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-27 17:08:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5109,"items_count":1} 
[2026-02-27 17:08:12] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24999,"menu_item_id":6,"quantity":1}]} 
[2026-02-27 17:08:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5109,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-02-27 17:08:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5109,"order_number":"AZS-270226-017"} 
[2026-02-27 17:08:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5109,"order_number":"AZS-270226-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 17:08:12"} 
[2026-02-27 17:13:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5111,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25007},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":25008},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25009},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25010},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25011},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25012}],"validated_items":[{"id":25007,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25008,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":25009,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25010,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25011,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25012,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-27 17:13:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5111,"items_count":6} 
[2026-02-27 17:13:30] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25007,"menu_item_id":114,"quantity":1},{"id":25008,"menu_item_id":396,"quantity":4},{"id":25009,"menu_item_id":61,"quantity":2},{"id":25010,"menu_item_id":56,"quantity":1},{"id":25011,"menu_item_id":5,"quantity":1},{"id":25012,"menu_item_id":3,"quantity":1}]} 
[2026-02-27 17:13:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5111,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","396|4|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["114|1|","396|4|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-02-27 17:13:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5111,"order_number":"AZS-270226-015"} 
[2026-02-27 17:13:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5111,"order_number":"AZS-270226-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 17:13:30"} 
[2026-02-27 17:17:48] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5111,"order_number":"AZS-270226-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 17:17:48"} 
[2026-02-27 17:17:48] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5111,"order_number":"AZS-270226-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 17:17:48"} 
[2026-02-27 17:17:48] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5111,"order_number":"AZS-270226-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 17:17:48"} 
[2026-02-27 17:17:48] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5111,"order_number":"AZS-270226-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 17:17:48"} 
[2026-02-27 17:17:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5111,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25007},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":25008},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25009},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25010},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25011},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25012}],"validated_items":[{"id":25007,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25008,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":25009,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25010,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25011,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25012,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-27 17:17:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5111,"items_count":6} 
[2026-02-27 17:17:48] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25007,"menu_item_id":114,"quantity":1},{"id":25008,"menu_item_id":396,"quantity":4},{"id":25009,"menu_item_id":61,"quantity":2},{"id":25010,"menu_item_id":56,"quantity":1},{"id":25011,"menu_item_id":5,"quantity":1},{"id":25012,"menu_item_id":3,"quantity":1}]} 
[2026-02-27 17:17:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5111,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","396|4|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["114|1|","396|4|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-02-27 17:17:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5111,"order_number":"AZS-270226-015"} 
[2026-02-27 17:17:48] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5111,"order_number":"AZS-270226-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-27 17:17:48","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-27 17:17:48"} 
[2026-02-27 17:17:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5111,"order_number":"AZS-270226-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-27 17:17:48"} 
[2026-02-27 17:17:48] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5111,"order_number":"AZS-270226-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-27 17:17:48","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-02-27 17:17:48"} 
[2026-02-27 17:32:47] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5109,"order_number":"AZS-270226-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 17:32:47"} 
[2026-02-27 17:32:47] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5109,"order_number":"AZS-270226-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 17:32:47"} 
[2026-02-27 17:32:47] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5109,"order_number":"AZS-270226-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 17:32:47"} 
[2026-02-27 17:32:47] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5109,"order_number":"AZS-270226-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 17:32:47"} 
[2026-02-27 17:32:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5109,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":24999}],"validated_items":[{"id":24999,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-27 17:32:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5109,"items_count":1} 
[2026-02-27 17:32:47] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24999,"menu_item_id":6,"quantity":1}]} 
[2026-02-27 17:32:47] local.INFO: PosOrderController::update - Item changes check {"order_id":5109,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-02-27 17:32:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5109,"order_number":"AZS-270226-017"} 
[2026-02-27 17:32:47] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5109,"order_number":"AZS-270226-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-27 17:32:47","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-27 17:32:47"} 
[2026-02-27 17:32:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5109,"order_number":"AZS-270226-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-27 17:32:47"} 
[2026-02-27 17:32:47] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5109,"order_number":"AZS-270226-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-27 17:32:47","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"200.00","database_verification_match":true,"timestamp":"2026-02-27 17:32:47"} 
[2026-02-27 17:39:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T05:39:41.588Z","date_to":"2026-02-27T17:39:41.588Z","per_page":"100"} 
[2026-02-27 17:39:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T05:39:41.574Z","date_to":"2026-02-27T17:39:41.574Z","per_page":"100"} 
[2026-02-27 17:39:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":38,"count":38,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-018","AZS-270226-017","AZS-270226-016","AZS-270226-015","AZS-270226-015","AZS-270226-015","AZS-270226-014","AZS-270226-013","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-011","AZS-270226-011","AZS-270226-011","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["pending","paid","paid","paid","changed","changed","pending","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed"],"deleted_count":20,"paid_count":16,"unpaid_count":2,"unique_order_numbers":18} 
[2026-02-27 17:39:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":38,"count":38,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-018","AZS-270226-017","AZS-270226-016","AZS-270226-015","AZS-270226-015","AZS-270226-015","AZS-270226-014","AZS-270226-013","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-011","AZS-270226-011","AZS-270226-011","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["pending","paid","paid","paid","changed","changed","pending","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed"],"deleted_count":20,"paid_count":16,"unpaid_count":2,"unique_order_numbers":18} 
[2026-02-27 17:39:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T05:39:41.574Z","date_to":"2026-02-27T17:39:41.574Z","per_page":"100"} 
[2026-02-27 17:39:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":38,"count":38,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-018","AZS-270226-017","AZS-270226-016","AZS-270226-015","AZS-270226-015","AZS-270226-015","AZS-270226-014","AZS-270226-013","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-011","AZS-270226-011","AZS-270226-011","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["pending","paid","paid","paid","changed","changed","pending","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed"],"deleted_count":20,"paid_count":16,"unpaid_count":2,"unique_order_numbers":18} 
[2026-02-27 17:51:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5112,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25013},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":25014},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25015},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25016},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":25017},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25018},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25019}],"validated_items":[{"id":25013,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25014,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":25015,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":25016,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25017,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":25018,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25019,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-27 17:51:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5112,"items_count":7} 
[2026-02-27 17:51:08] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25013,"menu_item_id":113,"quantity":1},{"id":25014,"menu_item_id":64,"quantity":1},{"id":25015,"menu_item_id":67,"quantity":1},{"id":25016,"menu_item_id":396,"quantity":2},{"id":25017,"menu_item_id":50,"quantity":1},{"id":25018,"menu_item_id":61,"quantity":1},{"id":25019,"menu_item_id":5,"quantity":1}]} 
[2026-02-27 17:51:08] local.INFO: PosOrderController::update - Item changes check {"order_id":5112,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["113|1|","64|1|","67|1|","396|2|","50|1|","61|1|","5|1|"],"new_items_map_keys":["113|1|","64|1|","67|1|","396|2|","50|1|","61|1|","5|1|"]} 
[2026-02-27 17:51:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5112,"order_number":"AZS-270226-018"} 
[2026-02-27 17:51:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5112,"order_number":"AZS-270226-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 17:51:08"} 
[2026-02-27 17:55:13] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5112,"order_number":"AZS-270226-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 17:55:13"} 
[2026-02-27 17:55:13] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5112,"order_number":"AZS-270226-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 17:55:13"} 
[2026-02-27 17:55:13] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5112,"order_number":"AZS-270226-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 17:55:13"} 
[2026-02-27 17:55:13] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5112,"order_number":"AZS-270226-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 17:55:13"} 
[2026-02-27 17:55:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5112,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25013},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":25014},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25015},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25016},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":25017},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25018},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25019}],"validated_items":[{"id":25013,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25014,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":25015,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":25016,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25017,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":25018,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25019,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-27 17:55:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5112,"items_count":7} 
[2026-02-27 17:55:13] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25013,"menu_item_id":113,"quantity":1},{"id":25014,"menu_item_id":64,"quantity":1},{"id":25015,"menu_item_id":67,"quantity":1},{"id":25016,"menu_item_id":396,"quantity":2},{"id":25017,"menu_item_id":50,"quantity":1},{"id":25018,"menu_item_id":61,"quantity":1},{"id":25019,"menu_item_id":5,"quantity":1}]} 
[2026-02-27 17:55:13] local.INFO: PosOrderController::update - Item changes check {"order_id":5112,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["113|1|","64|1|","67|1|","396|2|","50|1|","61|1|","5|1|"],"new_items_map_keys":["113|1|","64|1|","67|1|","396|2|","50|1|","61|1|","5|1|"]} 
[2026-02-27 17:55:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5112,"order_number":"AZS-270226-018"} 
[2026-02-27 17:55:13] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5112,"order_number":"AZS-270226-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-27 17:55:13","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-27 17:55:13"} 
[2026-02-27 17:55:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5112,"order_number":"AZS-270226-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-27 17:55:13"} 
[2026-02-27 17:55:13] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5112,"order_number":"AZS-270226-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-27 17:55:13","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4000.00","database_verification_match":true,"timestamp":"2026-02-27 17:55:13"} 
[2026-02-27 18:17:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5113,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":25020}],"validated_items":[{"id":25020,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-27 18:17:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5113,"items_count":1} 
[2026-02-27 18:17:55] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25020,"menu_item_id":6,"quantity":4}]} 
[2026-02-27 18:17:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5113,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|4|"],"new_items_map_keys":["6|4|"]} 
[2026-02-27 18:17:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5113,"order_number":"AZS-270226-019"} 
[2026-02-27 18:17:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5113,"order_number":"AZS-270226-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 18:17:55"} 
[2026-02-27 18:21:11] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5113,"order_number":"AZS-270226-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":836,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 18:21:11"} 
[2026-02-27 18:21:11] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5113,"order_number":"AZS-270226-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":836,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 18:21:11"} 
[2026-02-27 18:21:11] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5113,"order_number":"AZS-270226-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":836,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 18:21:11"} 
[2026-02-27 18:21:11] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5113,"order_number":"AZS-270226-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":836,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 18:21:11"} 
[2026-02-27 18:21:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5113,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":25020}],"validated_items":[{"id":25020,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-27 18:21:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5113,"items_count":1} 
[2026-02-27 18:21:11] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25020,"menu_item_id":6,"quantity":4}]} 
[2026-02-27 18:21:11] local.INFO: PosOrderController::update - Item changes check {"order_id":5113,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|4|"],"new_items_map_keys":["6|4|"]} 
[2026-02-27 18:21:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5113,"order_number":"AZS-270226-019"} 
[2026-02-27 18:21:11] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5113,"order_number":"AZS-270226-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":836,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-27 18:21:11","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-27 18:21:11"} 
[2026-02-27 18:21:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5113,"order_number":"AZS-270226-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-27 18:21:11"} 
[2026-02-27 18:21:11] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5113,"order_number":"AZS-270226-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"836.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-27 18:21:11","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":836,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"836.00","database_verification_match":true,"timestamp":"2026-02-27 18:21:11"} 
[2026-02-27 18:35:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5114,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":143,"quantity":1,"discount_percent":0,"notes":null,"id":25021},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":25022},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25021,"menu_item_id":143,"quantity":1,"discount_percent":0,"notes":null},{"id":25022,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 18:35:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5114,"items_count":3} 
[2026-02-27 18:35:47] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25021,"menu_item_id":143,"quantity":1},{"id":25022,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-27 18:35:47] local.INFO: PosOrderController::update - Item changes check {"order_id":5114,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["143|1|","403|1|"],"new_items_map_keys":["143|1|","403|1|","3|1|"]} 
[2026-02-27 18:35:47] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5114,"order_number":"AZS-270226-020"} 
[2026-02-27 18:35:47] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-020","replaced_order_id":5114} 
[2026-02-27 18:35:47] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5115,"items_count":3,"items":[{"menu_item_id":143,"quantity":1,"price":"1099.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-27 18:35:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5115,"item_index":0,"item_data":{"menu_item_id":143,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Chicken Fajita Pizza - Medium","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5115}} 
[2026-02-27 18:35:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5115,"item_index":0,"menu_item_id":143} 
[2026-02-27 18:35:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5115,"item_index":1,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5115}} 
[2026-02-27 18:35:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5115,"item_index":1,"menu_item_id":403} 
[2026-02-27 18:35:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5115,"item_index":2,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5115}} 
[2026-02-27 18:35:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5115,"item_index":2,"menu_item_id":3} 
[2026-02-27 18:35:47] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5114,"new_order_id":5115,"order_number":"AZS-270226-020"} 
[2026-02-27 18:54:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5115,"item_index":0,"item_id":25021} 
[2026-02-27 18:54:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5115,"item_index":1,"item_id":25022} 
[2026-02-27 18:54:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":5115,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":143,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":25021},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":25022},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":143,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-27 18:54:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5115,"items_count":3} 
[2026-02-27 18:54:55] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[25023,25024,25025],"items":[{"id":null,"menu_item_id":143,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-27 18:54:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5115,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["143|1|","403|1|","3|1|"],"new_items_map_keys":["143|1|","403|1|","3|1|"]} 
[2026-02-27 18:54:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5115,"order_number":"AZS-270226-020"} 
[2026-02-27 18:54:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5115,"order_number":"AZS-270226-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 18:54:55"} 
[2026-02-27 19:12:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5115,"item_index":0,"item_id":25021} 
[2026-02-27 19:12:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5115,"item_index":1,"item_id":25022} 
[2026-02-27 19:12:35] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5115,"order_number":"AZS-270226-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1804,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 19:12:35"} 
[2026-02-27 19:12:35] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5115,"order_number":"AZS-270226-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1804,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 19:12:35"} 
[2026-02-27 19:12:35] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5115,"order_number":"AZS-270226-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1804,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 19:12:35"} 
[2026-02-27 19:12:35] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5115,"order_number":"AZS-270226-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1804,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 19:12:35"} 
[2026-02-27 19:12:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":5115,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":143,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":25021},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":25022},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":143,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-27 19:12:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5115,"items_count":3} 
[2026-02-27 19:12:35] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[25023,25024,25025],"items":[{"id":null,"menu_item_id":143,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-27 19:12:35] local.INFO: PosOrderController::update - Item changes check {"order_id":5115,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["143|1|","403|1|","3|1|"],"new_items_map_keys":["143|1|","403|1|","3|1|"]} 
[2026-02-27 19:12:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5115,"order_number":"AZS-270226-020"} 
[2026-02-27 19:12:35] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5115,"order_number":"AZS-270226-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1804,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-27 19:12:35","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-27 19:12:35"} 
[2026-02-27 19:12:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5115,"order_number":"AZS-270226-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-27 19:12:35"} 
[2026-02-27 19:12:35] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5115,"order_number":"AZS-270226-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1804.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-27 19:12:35","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1804,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1804.00","database_verification_match":true,"timestamp":"2026-02-27 19:12:35"} 
[2026-02-27 20:37:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T08:37:08.891Z","date_to":"2026-02-27T20:37:08.891Z","per_page":"100"} 
[2026-02-27 20:37:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T08:37:08.878Z","date_to":"2026-02-27T20:37:08.878Z","per_page":"100"} 
[2026-02-27 20:37:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":41,"count":41,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-020","AZS-270226-020","AZS-270226-019","AZS-270226-018","AZS-270226-017","AZS-270226-016","AZS-270226-015","AZS-270226-015","AZS-270226-015","AZS-270226-014","AZS-270226-013","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-011","AZS-270226-011","AZS-270226-011","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["paid","changed","paid","paid","paid","paid","paid","changed","changed","pending","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed"],"deleted_count":21,"paid_count":19,"unpaid_count":1,"unique_order_numbers":20} 
[2026-02-27 20:37:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":41,"count":41,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-020","AZS-270226-020","AZS-270226-019","AZS-270226-018","AZS-270226-017","AZS-270226-016","AZS-270226-015","AZS-270226-015","AZS-270226-015","AZS-270226-014","AZS-270226-013","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-011","AZS-270226-011","AZS-270226-011","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["paid","changed","paid","paid","paid","paid","paid","changed","changed","pending","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed"],"deleted_count":21,"paid_count":19,"unpaid_count":1,"unique_order_numbers":20} 
[2026-02-27 20:37:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T08:37:08.878Z","date_to":"2026-02-27T20:37:08.878Z","per_page":"100"} 
[2026-02-27 20:37:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":41,"count":41,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-020","AZS-270226-020","AZS-270226-019","AZS-270226-018","AZS-270226-017","AZS-270226-016","AZS-270226-015","AZS-270226-015","AZS-270226-015","AZS-270226-014","AZS-270226-013","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-011","AZS-270226-011","AZS-270226-011","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["paid","changed","paid","paid","paid","paid","paid","changed","changed","pending","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed"],"deleted_count":21,"paid_count":19,"unpaid_count":1,"unique_order_numbers":20} 
[2026-02-27 21:22:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T09:22:07.408Z","date_to":"2026-02-27T21:22:07.408Z","per_page":"100"} 
[2026-02-27 21:22:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-021","AZS-270226-020","AZS-270226-020","AZS-270226-019","AZS-270226-018","AZS-270226-017","AZS-270226-016","AZS-270226-015","AZS-270226-015","AZS-270226-015","AZS-270226-014","AZS-270226-013","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-011","AZS-270226-011","AZS-270226-011","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["pending","paid","changed","paid","paid","paid","paid","paid","changed","changed","pending","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed"],"deleted_count":21,"paid_count":19,"unpaid_count":2,"unique_order_numbers":21} 
[2026-02-27 21:22:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T09:22:07.389Z","date_to":"2026-02-27T21:22:07.389Z","per_page":"100"} 
[2026-02-27 21:22:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-021","AZS-270226-020","AZS-270226-020","AZS-270226-019","AZS-270226-018","AZS-270226-017","AZS-270226-016","AZS-270226-015","AZS-270226-015","AZS-270226-015","AZS-270226-014","AZS-270226-013","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-011","AZS-270226-011","AZS-270226-011","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["pending","paid","changed","paid","paid","paid","paid","paid","changed","changed","pending","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed"],"deleted_count":21,"paid_count":19,"unpaid_count":2,"unique_order_numbers":21} 
[2026-02-27 21:22:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T09:22:07.389Z","date_to":"2026-02-27T21:22:07.389Z","per_page":"100"} 
[2026-02-27 21:22:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-021","AZS-270226-020","AZS-270226-020","AZS-270226-019","AZS-270226-018","AZS-270226-017","AZS-270226-016","AZS-270226-015","AZS-270226-015","AZS-270226-015","AZS-270226-014","AZS-270226-013","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-011","AZS-270226-011","AZS-270226-011","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["pending","paid","changed","paid","paid","paid","paid","paid","changed","changed","pending","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed"],"deleted_count":21,"paid_count":19,"unpaid_count":2,"unique_order_numbers":21} 
[2026-02-27 22:20:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5116,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":3,"discount_percent":0,"notes":null,"id":25026},{"menu_item_id":397,"quantity":40,"discount_percent":0,"notes":null,"id":25027},{"menu_item_id":48,"quantity":3,"discount_percent":0,"notes":null,"id":25028},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25029},{"menu_item_id":61,"quantity":5,"discount_percent":0,"notes":null,"id":25030},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":25031},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25032}],"validated_items":[{"id":25026,"menu_item_id":106,"quantity":3,"discount_percent":0,"notes":null},{"id":25027,"menu_item_id":397,"quantity":40,"discount_percent":0,"notes":null},{"id":25028,"menu_item_id":48,"quantity":3,"discount_percent":0,"notes":null},{"id":25029,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":25030,"menu_item_id":61,"quantity":5,"discount_percent":0,"notes":null},{"id":25031,"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"id":25032,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 22:20:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5116,"items_count":7} 
[2026-02-27 22:20:17] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25026,"menu_item_id":106,"quantity":3},{"id":25027,"menu_item_id":397,"quantity":40},{"id":25028,"menu_item_id":48,"quantity":3},{"id":25029,"menu_item_id":396,"quantity":2},{"id":25030,"menu_item_id":61,"quantity":5},{"id":25031,"menu_item_id":56,"quantity":3},{"id":25032,"menu_item_id":5,"quantity":1}]} 
[2026-02-27 22:20:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5116,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|3|","397|40|","48|3|","396|2|","61|3|","56|3|","5|1|"],"new_items_map_keys":["106|3|","397|40|","48|3|","396|2|","61|5|","56|3|","5|1|"]} 
[2026-02-27 22:20:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5116,"order_number":"AZS-270226-021"} 
[2026-02-27 22:20:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-021","replaced_order_id":5116} 
[2026-02-27 22:20:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5117,"items_count":7,"items":[{"menu_item_id":106,"quantity":3,"price":"4199.00"},{"menu_item_id":397,"quantity":40,"price":"4.00"},{"menu_item_id":48,"quantity":3,"price":"250.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":5,"price":"199.00"},{"menu_item_id":56,"quantity":3,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-27 22:20:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5117,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":3,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":12597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5117}} 
[2026-02-27 22:20:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5117,"item_index":0,"menu_item_id":106} 
[2026-02-27 22:20:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5117,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":40,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":160.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5117}} 
[2026-02-27 22:20:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5117,"item_index":1,"menu_item_id":397} 
[2026-02-27 22:20:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5117,"item_index":2,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":3,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":750.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5117}} 
[2026-02-27 22:20:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5117,"item_index":2,"menu_item_id":48} 
[2026-02-27 22:20:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5117,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5117}} 
[2026-02-27 22:20:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5117,"item_index":3,"menu_item_id":396} 
[2026-02-27 22:20:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5117,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":5,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":995.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5117}} 
[2026-02-27 22:20:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5117,"item_index":4,"menu_item_id":61} 
[2026-02-27 22:20:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5117,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5117}} 
[2026-02-27 22:20:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5117,"item_index":5,"menu_item_id":56} 
[2026-02-27 22:20:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5117,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5117}} 
[2026-02-27 22:20:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5117,"item_index":6,"menu_item_id":5} 
[2026-02-27 22:20:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5116,"new_order_id":5117,"order_number":"AZS-270226-021"} 
[2026-02-27 22:25:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5117,"item_index":0,"item_id":25026} 
[2026-02-27 22:25:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5117,"item_index":1,"item_id":25027} 
[2026-02-27 22:25:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5117,"item_index":2,"item_id":25028} 
[2026-02-27 22:25:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5117,"item_index":3,"item_id":25029} 
[2026-02-27 22:25:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5117,"item_index":4,"item_id":25030} 
[2026-02-27 22:25:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5117,"item_index":5,"item_id":25031} 
[2026-02-27 22:25:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5117,"item_index":6,"item_id":25032} 
[2026-02-27 22:25:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5117,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":3,"discount_percent":0,"notes":null,"id":25026},{"menu_item_id":397,"quantity":40,"discount_percent":0,"notes":null,"id":25027},{"menu_item_id":48,"quantity":5,"discount_percent":0,"notes":null,"id":25028},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25029},{"menu_item_id":61,"quantity":5,"discount_percent":0,"notes":null,"id":25030},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":25031},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25032}],"validated_items":[{"menu_item_id":106,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":397,"quantity":40,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 22:25:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5117,"items_count":7} 
[2026-02-27 22:25:36] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[25033,25034,25035,25036,25037,25038,25039],"items":[{"id":null,"menu_item_id":106,"quantity":3},{"id":null,"menu_item_id":397,"quantity":40},{"id":null,"menu_item_id":48,"quantity":5},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":5},{"id":null,"menu_item_id":56,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-27 22:25:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5117,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|3|","397|40|","48|3|","396|2|","61|5|","56|3|","5|1|"],"new_items_map_keys":["106|3|","397|40|","48|5|","396|2|","61|5|","56|3|","5|1|"]} 
[2026-02-27 22:25:36] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5117,"order_number":"AZS-270226-021"} 
[2026-02-27 22:25:36] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-021","replaced_order_id":5117} 
[2026-02-27 22:25:36] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5118,"items_count":7,"items":[{"menu_item_id":106,"quantity":3,"price":"4199.00"},{"menu_item_id":397,"quantity":40,"price":"4.00"},{"menu_item_id":48,"quantity":5,"price":"250.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":5,"price":"199.00"},{"menu_item_id":56,"quantity":3,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-27 22:25:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5118,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":3,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":12597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5118}} 
[2026-02-27 22:25:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5118,"item_index":0,"menu_item_id":106} 
[2026-02-27 22:25:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5118,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":40,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":160.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5118}} 
[2026-02-27 22:25:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5118,"item_index":1,"menu_item_id":397} 
[2026-02-27 22:25:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5118,"item_index":2,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":5,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5118}} 
[2026-02-27 22:25:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5118,"item_index":2,"menu_item_id":48} 
[2026-02-27 22:25:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5118,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5118}} 
[2026-02-27 22:25:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5118,"item_index":3,"menu_item_id":396} 
[2026-02-27 22:25:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5118,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":5,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":995.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5118}} 
[2026-02-27 22:25:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5118,"item_index":4,"menu_item_id":61} 
[2026-02-27 22:25:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5118,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5118}} 
[2026-02-27 22:25:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5118,"item_index":5,"menu_item_id":56} 
[2026-02-27 22:25:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5118,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5118}} 
[2026-02-27 22:25:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5118,"item_index":6,"menu_item_id":5} 
[2026-02-27 22:25:36] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5117,"new_order_id":5118,"order_number":"AZS-270226-021"} 
[2026-02-27 22:38:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5118,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":3,"discount_percent":0,"notes":null,"id":25040},{"menu_item_id":397,"quantity":40,"discount_percent":0,"notes":null,"id":25041},{"menu_item_id":48,"quantity":5,"discount_percent":0,"notes":null,"id":25042},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25043},{"menu_item_id":61,"quantity":5,"discount_percent":0,"notes":null,"id":25044},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":25045},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25046}],"validated_items":[{"id":25040,"menu_item_id":106,"quantity":3,"discount_percent":0,"notes":null},{"id":25041,"menu_item_id":397,"quantity":40,"discount_percent":0,"notes":null},{"id":25042,"menu_item_id":48,"quantity":5,"discount_percent":0,"notes":null},{"id":25043,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":25044,"menu_item_id":61,"quantity":5,"discount_percent":0,"notes":null},{"id":25045,"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"id":25046,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 22:38:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5118,"items_count":7} 
[2026-02-27 22:38:14] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25040,"menu_item_id":106,"quantity":3},{"id":25041,"menu_item_id":397,"quantity":40},{"id":25042,"menu_item_id":48,"quantity":5},{"id":25043,"menu_item_id":396,"quantity":2},{"id":25044,"menu_item_id":61,"quantity":5},{"id":25045,"menu_item_id":56,"quantity":3},{"id":25046,"menu_item_id":5,"quantity":1}]} 
[2026-02-27 22:38:14] local.INFO: PosOrderController::update - Item changes check {"order_id":5118,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|3|","397|40|","48|5|","396|2|","61|5|","56|3|","5|1|"],"new_items_map_keys":["106|3|","397|40|","48|5|","396|2|","61|5|","56|3|","5|1|"]} 
[2026-02-27 22:38:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5118,"order_number":"AZS-270226-021"} 
[2026-02-27 22:38:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5118,"order_number":"AZS-270226-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-27 22:38:14"} 
[2026-02-27 22:38:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5118,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":3,"price":4199,"discount_percent":0,"notes":null,"id":25040},{"menu_item_id":397,"quantity":40,"price":4,"discount_percent":0,"notes":null,"id":25041},{"menu_item_id":48,"quantity":5,"price":250,"discount_percent":0,"notes":null,"id":25042},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25043},{"menu_item_id":61,"quantity":5,"price":199,"discount_percent":0,"notes":null,"id":25044},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":25045},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25046}],"validated_items":[{"id":25040,"menu_item_id":106,"quantity":3,"price":4199,"discount_percent":0,"notes":null},{"id":25041,"menu_item_id":397,"quantity":40,"price":4,"discount_percent":0,"notes":null},{"id":25042,"menu_item_id":48,"quantity":5,"price":250,"discount_percent":0,"notes":null},{"id":25043,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25044,"menu_item_id":61,"quantity":5,"price":199,"discount_percent":0,"notes":null},{"id":25045,"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":25046,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-27 22:38:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5118,"items_count":7} 
[2026-02-27 22:38:24] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25040,"menu_item_id":106,"quantity":3},{"id":25041,"menu_item_id":397,"quantity":40},{"id":25042,"menu_item_id":48,"quantity":5},{"id":25043,"menu_item_id":396,"quantity":2},{"id":25044,"menu_item_id":61,"quantity":5},{"id":25045,"menu_item_id":56,"quantity":3},{"id":25046,"menu_item_id":5,"quantity":1}]} 
[2026-02-27 22:38:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5118,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|3|","397|40|","48|5|","396|2|","61|5|","56|3|","5|1|"],"new_items_map_keys":["106|3|","397|40|","48|5|","396|2|","61|5|","56|3|","5|1|"]} 
[2026-02-27 22:38:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5118,"order_number":"AZS-270226-021"} 
[2026-02-27 22:38:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5118,"order_number":"AZS-270226-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 22:38:24"} 
[2026-02-27 22:46:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5118,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":3,"discount_percent":0,"notes":null,"id":25040},{"menu_item_id":397,"quantity":40,"discount_percent":0,"notes":null,"id":25041},{"menu_item_id":48,"quantity":5,"discount_percent":0,"notes":null,"id":25042},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25043},{"menu_item_id":61,"quantity":5,"discount_percent":0,"notes":null,"id":25044},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":25045},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25046},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25040,"menu_item_id":106,"quantity":3,"discount_percent":0,"notes":null},{"id":25041,"menu_item_id":397,"quantity":40,"discount_percent":0,"notes":null},{"id":25042,"menu_item_id":48,"quantity":5,"discount_percent":0,"notes":null},{"id":25043,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":25044,"menu_item_id":61,"quantity":5,"discount_percent":0,"notes":null},{"id":25045,"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"id":25046,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 22:46:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5118,"items_count":8} 
[2026-02-27 22:46:37] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25040,"menu_item_id":106,"quantity":3},{"id":25041,"menu_item_id":397,"quantity":40},{"id":25042,"menu_item_id":48,"quantity":5},{"id":25043,"menu_item_id":396,"quantity":2},{"id":25044,"menu_item_id":61,"quantity":5},{"id":25045,"menu_item_id":56,"quantity":3},{"id":25046,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-27 22:46:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5118,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["106|3|","397|40|","48|5|","396|2|","61|5|","56|3|","5|1|"],"new_items_map_keys":["106|3|","397|40|","48|5|","396|2|","61|5|","56|3|","5|1|","3|1|"]} 
[2026-02-27 22:46:37] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5118,"order_number":"AZS-270226-021"} 
[2026-02-27 22:46:37] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-021","replaced_order_id":5118} 
[2026-02-27 22:46:37] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5122,"items_count":8,"items":[{"menu_item_id":106,"quantity":3,"price":"4199.00"},{"menu_item_id":397,"quantity":40,"price":"4.00"},{"menu_item_id":48,"quantity":5,"price":"250.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":5,"price":"199.00"},{"menu_item_id":56,"quantity":3,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-27 22:46:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5122,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":3,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":12597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5122}} 
[2026-02-27 22:46:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5122,"item_index":0,"menu_item_id":106} 
[2026-02-27 22:46:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5122,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":40,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":160.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5122}} 
[2026-02-27 22:46:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5122,"item_index":1,"menu_item_id":397} 
[2026-02-27 22:46:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5122,"item_index":2,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":5,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5122}} 
[2026-02-27 22:46:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5122,"item_index":2,"menu_item_id":48} 
[2026-02-27 22:46:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5122,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5122}} 
[2026-02-27 22:46:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5122,"item_index":3,"menu_item_id":396} 
[2026-02-27 22:46:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5122,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":5,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":995.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5122}} 
[2026-02-27 22:46:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5122,"item_index":4,"menu_item_id":61} 
[2026-02-27 22:46:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5122,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5122}} 
[2026-02-27 22:46:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5122,"item_index":5,"menu_item_id":56} 
[2026-02-27 22:46:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5122,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5122}} 
[2026-02-27 22:46:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5122,"item_index":6,"menu_item_id":5} 
[2026-02-27 22:46:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5122,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5122}} 
[2026-02-27 22:46:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5122,"item_index":7,"menu_item_id":3} 
[2026-02-27 22:46:37] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5118,"new_order_id":5122,"order_number":"AZS-270226-021"} 
[2026-02-27 22:46:43] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5122,"item_index":0,"item_id":25040} 
[2026-02-27 22:46:43] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5122,"item_index":1,"item_id":25041} 
[2026-02-27 22:46:43] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5122,"item_index":2,"item_id":25042} 
[2026-02-27 22:46:43] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5122,"item_index":3,"item_id":25043} 
[2026-02-27 22:46:43] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5122,"item_index":4,"item_id":25044} 
[2026-02-27 22:46:43] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5122,"item_index":5,"item_id":25045} 
[2026-02-27 22:46:43] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5122,"item_index":6,"item_id":25046} 
[2026-02-27 22:46:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":8,"order_id":5122,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":3,"price":4199,"discount_percent":0,"notes":null,"id":25040},{"menu_item_id":397,"quantity":40,"price":4,"discount_percent":0,"notes":null,"id":25041},{"menu_item_id":48,"quantity":5,"price":250,"discount_percent":0,"notes":null,"id":25042},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25043},{"menu_item_id":61,"quantity":5,"price":199,"discount_percent":0,"notes":null,"id":25044},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":25045},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25046},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":106,"quantity":3,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":397,"quantity":40,"price":4,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":5,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":5,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-27 22:46:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5122,"items_count":8} 
[2026-02-27 22:46:43] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":8,"items_to_remove":[25050,25051,25052,25053,25054,25055,25056,25057],"items":[{"id":null,"menu_item_id":106,"quantity":3},{"id":null,"menu_item_id":397,"quantity":40},{"id":null,"menu_item_id":48,"quantity":5},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":5},{"id":null,"menu_item_id":56,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-27 22:46:43] local.INFO: PosOrderController::update - Item changes check {"order_id":5122,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["106|3|","397|40|","48|5|","396|2|","61|5|","56|3|","5|1|","3|1|"],"new_items_map_keys":["106|3|","397|40|","48|5|","396|2|","61|5|","56|3|","5|1|","3|1|"]} 
[2026-02-27 22:46:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5122,"order_number":"AZS-270226-021"} 
[2026-02-27 22:46:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5122,"order_number":"AZS-270226-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 22:46:43"} 
[2026-02-27 22:47:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5121,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":25049},{"menu_item_id":421,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25049,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":421,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 22:47:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5121,"items_count":2} 
[2026-02-27 22:47:06] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25049,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":421,"quantity":1}]} 
[2026-02-27 22:47:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5121,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|","421|1|"]} 
[2026-02-27 22:47:06] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5121,"order_number":"AZS-270226-024"} 
[2026-02-27 22:47:06] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-024","replaced_order_id":5121} 
[2026-02-27 22:47:06] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5123,"items_count":2,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":421,"quantity":1,"price":"70.00"}]} 
[2026-02-27 22:47:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5123,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5123}} 
[2026-02-27 22:47:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5123,"item_index":0,"menu_item_id":411} 
[2026-02-27 22:47:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5123,"item_index":1,"item_data":{"menu_item_id":421,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Omlate","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5123}} 
[2026-02-27 22:47:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5123,"item_index":1,"menu_item_id":421} 
[2026-02-27 22:47:06] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5121,"new_order_id":5123,"order_number":"AZS-270226-024"} 
[2026-02-27 22:48:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5120,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":25048},{"menu_item_id":412,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":25048,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-02-27 22:48:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5120,"items_count":2} 
[2026-02-27 22:48:58] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25048,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":412,"quantity":3}]} 
[2026-02-27 22:48:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5120,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|2|"],"new_items_map_keys":["411|2|","412|3|"]} 
[2026-02-27 22:48:58] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5120,"order_number":"AZS-270226-023"} 
[2026-02-27 22:48:58] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-023","replaced_order_id":5120} 
[2026-02-27 22:48:58] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5124,"items_count":2,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":412,"quantity":3,"price":"220.00"}]} 
[2026-02-27 22:48:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5124,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5124}} 
[2026-02-27 22:48:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5124,"item_index":0,"menu_item_id":411} 
[2026-02-27 22:48:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5124,"item_index":1,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":3,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":660.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5124}} 
[2026-02-27 22:48:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5124,"item_index":1,"menu_item_id":412} 
[2026-02-27 22:48:58] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5120,"new_order_id":5124,"order_number":"AZS-270226-023"} 
[2026-02-27 23:01:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5126,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":25065},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25065,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:01:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5126,"items_count":2} 
[2026-02-27 23:01:24] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25065,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":413,"quantity":1}]} 
[2026-02-27 23:01:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5126,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|","413|1|"]} 
[2026-02-27 23:01:24] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5126,"order_number":"AZS-270226-026"} 
[2026-02-27 23:01:24] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-026","replaced_order_id":5126} 
[2026-02-27 23:01:24] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5127,"items_count":2,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":413,"quantity":1,"price":"200.00"}]} 
[2026-02-27 23:01:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5127,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5127}} 
[2026-02-27 23:01:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5127,"item_index":0,"menu_item_id":411} 
[2026-02-27 23:01:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5127,"item_index":1,"item_data":{"menu_item_id":413,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Namkeen Lassi","quantity":1,"price":"200.00","discount_percent":0.0,"discount_amount":0.0,"total":200.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5127}} 
[2026-02-27 23:01:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5127,"item_index":1,"menu_item_id":413} 
[2026-02-27 23:01:24] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5126,"new_order_id":5127,"order_number":"AZS-270226-026"} 
[2026-02-27 23:02:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5124,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":25060},{"menu_item_id":412,"quantity":3,"discount_percent":0,"notes":null,"id":25061},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":25060,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":25061,"menu_item_id":412,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:02:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5124,"items_count":3} 
[2026-02-27 23:02:28] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25060,"menu_item_id":411,"quantity":2},{"id":25061,"menu_item_id":412,"quantity":3},{"id":null,"menu_item_id":416,"quantity":2}]} 
[2026-02-27 23:02:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5124,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["411|2|","412|3|"],"new_items_map_keys":["411|2|","412|3|","416|2|"]} 
[2026-02-27 23:02:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5124,"order_number":"AZS-270226-023"} 
[2026-02-27 23:02:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-023","replaced_order_id":5124} 
[2026-02-27 23:02:28] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5128,"items_count":3,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":412,"quantity":3,"price":"220.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"}]} 
[2026-02-27 23:02:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5128,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5128}} 
[2026-02-27 23:02:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5128,"item_index":0,"menu_item_id":411} 
[2026-02-27 23:02:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5128,"item_index":1,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":3,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":660.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5128}} 
[2026-02-27 23:02:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5128,"item_index":1,"menu_item_id":412} 
[2026-02-27 23:02:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5128,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5128}} 
[2026-02-27 23:02:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5128,"item_index":2,"menu_item_id":416} 
[2026-02-27 23:02:28] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5124,"new_order_id":5128,"order_number":"AZS-270226-023"} 
[2026-02-27 23:07:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5122,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":3,"discount_percent":0,"notes":null,"id":25050},{"menu_item_id":397,"quantity":40,"discount_percent":0,"notes":null,"id":25051},{"menu_item_id":48,"quantity":5,"discount_percent":0,"notes":null,"id":25052},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25053},{"menu_item_id":61,"quantity":5,"discount_percent":0,"notes":null,"id":25054},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":25055},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25056},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":25057}],"validated_items":[{"id":25050,"menu_item_id":106,"quantity":3,"discount_percent":0,"notes":null},{"id":25051,"menu_item_id":397,"quantity":40,"discount_percent":0,"notes":null},{"id":25052,"menu_item_id":48,"quantity":5,"discount_percent":0,"notes":null},{"id":25053,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":25054,"menu_item_id":61,"quantity":5,"discount_percent":0,"notes":null},{"id":25055,"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"id":25056,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":25057,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:07:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5122,"items_count":8} 
[2026-02-27 23:07:31] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25050,"menu_item_id":106,"quantity":3},{"id":25051,"menu_item_id":397,"quantity":40},{"id":25052,"menu_item_id":48,"quantity":5},{"id":25053,"menu_item_id":396,"quantity":2},{"id":25054,"menu_item_id":61,"quantity":5},{"id":25055,"menu_item_id":56,"quantity":3},{"id":25056,"menu_item_id":5,"quantity":1},{"id":25057,"menu_item_id":3,"quantity":1}]} 
[2026-02-27 23:07:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5122,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["106|3|","397|40|","48|5|","396|2|","61|5|","56|3|","5|1|","3|1|"],"new_items_map_keys":["106|3|","397|40|","48|5|","396|2|","61|5|","56|3|","5|1|","3|1|"]} 
[2026-02-27 23:07:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5122,"order_number":"AZS-270226-021"} 
[2026-02-27 23:07:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5122,"order_number":"AZS-270226-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-27 23:07:31"} 
[2026-02-27 23:08:02] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5122,"order_number":"AZS-270226-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":17049,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 23:08:02"} 
[2026-02-27 23:08:02] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5122,"order_number":"AZS-270226-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":17049,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 23:08:02"} 
[2026-02-27 23:08:02] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5122,"order_number":"AZS-270226-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":17049,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 23:08:02"} 
[2026-02-27 23:08:02] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5122,"order_number":"AZS-270226-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":17049,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 23:08:02"} 
[2026-02-27 23:08:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5122,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":3,"price":4199,"discount_percent":0,"notes":null,"id":25050},{"menu_item_id":397,"quantity":40,"price":4,"discount_percent":0,"notes":null,"id":25051},{"menu_item_id":48,"quantity":5,"price":250,"discount_percent":0,"notes":null,"id":25052},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25053},{"menu_item_id":61,"quantity":5,"price":199,"discount_percent":0,"notes":null,"id":25054},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":25055},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25056},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25057}],"validated_items":[{"id":25050,"menu_item_id":106,"quantity":3,"price":4199,"discount_percent":0,"notes":null},{"id":25051,"menu_item_id":397,"quantity":40,"price":4,"discount_percent":0,"notes":null},{"id":25052,"menu_item_id":48,"quantity":5,"price":250,"discount_percent":0,"notes":null},{"id":25053,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25054,"menu_item_id":61,"quantity":5,"price":199,"discount_percent":0,"notes":null},{"id":25055,"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":25056,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25057,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:08:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5122,"items_count":8} 
[2026-02-27 23:08:02] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25050,"menu_item_id":106,"quantity":3},{"id":25051,"menu_item_id":397,"quantity":40},{"id":25052,"menu_item_id":48,"quantity":5},{"id":25053,"menu_item_id":396,"quantity":2},{"id":25054,"menu_item_id":61,"quantity":5},{"id":25055,"menu_item_id":56,"quantity":3},{"id":25056,"menu_item_id":5,"quantity":1},{"id":25057,"menu_item_id":3,"quantity":1}]} 
[2026-02-27 23:08:02] local.INFO: PosOrderController::update - Item changes check {"order_id":5122,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["106|3|","397|40|","48|5|","396|2|","61|5|","56|3|","5|1|","3|1|"],"new_items_map_keys":["106|3|","397|40|","48|5|","396|2|","61|5|","56|3|","5|1|","3|1|"]} 
[2026-02-27 23:08:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5122,"order_number":"AZS-270226-021"} 
[2026-02-27 23:08:02] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5122,"order_number":"AZS-270226-021","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":17049,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-27 23:08:02","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-27 23:08:02"} 
[2026-02-27 23:08:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5122,"order_number":"AZS-270226-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-27 23:08:02"} 
[2026-02-27 23:08:02] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5122,"order_number":"AZS-270226-021","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"17049.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-27 23:08:02","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":17049,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"17049.00","database_verification_match":true,"timestamp":"2026-02-27 23:08:02"} 
[2026-02-27 23:08:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T11:08:07.127Z","date_to":"2026-02-27T23:08:07.127Z","per_page":"100"} 
[2026-02-27 23:08:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":54,"count":54,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-026","AZS-270226-026","AZS-270226-025","AZS-270226-024","AZS-270226-024","AZS-270226-023","AZS-270226-023","AZS-270226-023","AZS-270226-022","AZS-270226-021","AZS-270226-021","AZS-270226-021","AZS-270226-021","AZS-270226-020","AZS-270226-020","AZS-270226-019","AZS-270226-018","AZS-270226-017","AZS-270226-016","AZS-270226-015","AZS-270226-015","AZS-270226-015","AZS-270226-014","AZS-270226-013","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-011","AZS-270226-011","AZS-270226-011","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["pending","changed","pending","pending","changed","pending","changed","changed","pending","paid","changed","changed","changed","paid","changed","paid","paid","paid","paid","paid","changed","changed","pending","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed"],"deleted_count":28,"paid_count":20,"unpaid_count":6,"unique_order_numbers":26} 
[2026-02-27 23:08:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T11:08:07.109Z","date_to":"2026-02-27T23:08:07.109Z","per_page":"100"} 
[2026-02-27 23:08:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":54,"count":54,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-026","AZS-270226-026","AZS-270226-025","AZS-270226-024","AZS-270226-024","AZS-270226-023","AZS-270226-023","AZS-270226-023","AZS-270226-022","AZS-270226-021","AZS-270226-021","AZS-270226-021","AZS-270226-021","AZS-270226-020","AZS-270226-020","AZS-270226-019","AZS-270226-018","AZS-270226-017","AZS-270226-016","AZS-270226-015","AZS-270226-015","AZS-270226-015","AZS-270226-014","AZS-270226-013","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-011","AZS-270226-011","AZS-270226-011","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["pending","changed","pending","pending","changed","pending","changed","changed","pending","paid","changed","changed","changed","paid","changed","paid","paid","paid","paid","paid","changed","changed","pending","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed"],"deleted_count":28,"paid_count":20,"unpaid_count":6,"unique_order_numbers":26} 
[2026-02-27 23:08:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T11:08:07.109Z","date_to":"2026-02-27T23:08:07.109Z","per_page":"100"} 
[2026-02-27 23:08:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":54,"count":54,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-026","AZS-270226-026","AZS-270226-025","AZS-270226-024","AZS-270226-024","AZS-270226-023","AZS-270226-023","AZS-270226-023","AZS-270226-022","AZS-270226-021","AZS-270226-021","AZS-270226-021","AZS-270226-021","AZS-270226-020","AZS-270226-020","AZS-270226-019","AZS-270226-018","AZS-270226-017","AZS-270226-016","AZS-270226-015","AZS-270226-015","AZS-270226-015","AZS-270226-014","AZS-270226-013","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-011","AZS-270226-011","AZS-270226-011","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["pending","changed","pending","pending","changed","pending","changed","changed","pending","paid","changed","changed","changed","paid","changed","paid","paid","paid","paid","paid","changed","changed","pending","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed"],"deleted_count":28,"paid_count":20,"unpaid_count":6,"unique_order_numbers":26} 
[2026-02-27 23:10:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5125,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null,"id":25062},{"menu_item_id":414,"quantity":1,"discount_percent":0,"notes":null,"id":25063},{"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null,"id":25064},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25062,"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"id":25063,"menu_item_id":414,"quantity":1,"discount_percent":0,"notes":null},{"id":25064,"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:10:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5125,"items_count":4} 
[2026-02-27 23:10:13] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25062,"menu_item_id":416,"quantity":2},{"id":25063,"menu_item_id":414,"quantity":1},{"id":25064,"menu_item_id":412,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-02-27 23:10:13] local.INFO: PosOrderController::update - Item changes check {"order_id":5125,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["416|2|","414|1|","412|1|"],"new_items_map_keys":["416|2|","414|1|","412|1|","4|1|"]} 
[2026-02-27 23:10:13] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5125,"order_number":"AZS-270226-025"} 
[2026-02-27 23:10:13] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-025","replaced_order_id":5125} 
[2026-02-27 23:10:13] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5129,"items_count":4,"items":[{"menu_item_id":416,"quantity":2,"price":"70.00"},{"menu_item_id":414,"quantity":1,"price":"150.00"},{"menu_item_id":412,"quantity":1,"price":"220.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-02-27 23:10:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5129,"item_index":0,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5129}} 
[2026-02-27 23:10:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5129,"item_index":0,"menu_item_id":416} 
[2026-02-27 23:10:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5129,"item_index":1,"item_data":{"menu_item_id":414,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sada Channy","quantity":1,"price":"150.00","discount_percent":0.0,"discount_amount":0.0,"total":150.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5129}} 
[2026-02-27 23:10:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5129,"item_index":1,"menu_item_id":414} 
[2026-02-27 23:10:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5129,"item_index":2,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":1,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":220.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5129}} 
[2026-02-27 23:10:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5129,"item_index":2,"menu_item_id":412} 
[2026-02-27 23:10:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5129,"item_index":3,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5129}} 
[2026-02-27 23:10:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5129,"item_index":3,"menu_item_id":4} 
[2026-02-27 23:10:13] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5125,"new_order_id":5129,"order_number":"AZS-270226-025"} 
[2026-02-27 23:10:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5123,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":25058},{"menu_item_id":421,"quantity":1,"discount_percent":0,"notes":null,"id":25059},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25058,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":25059,"menu_item_id":421,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:10:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5123,"items_count":4} 
[2026-02-27 23:10:33] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25058,"menu_item_id":411,"quantity":1},{"id":25059,"menu_item_id":421,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1}]} 
[2026-02-27 23:10:33] local.INFO: PosOrderController::update - Item changes check {"order_id":5123,"has_item_changes":true,"old_items_count":2,"new_items_count":4,"old_items_map_keys":["411|1|","421|1|"],"new_items_map_keys":["411|1|","421|1|","5|1|","50|1|"]} 
[2026-02-27 23:10:33] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5123,"order_number":"AZS-270226-024"} 
[2026-02-27 23:10:33] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-024","replaced_order_id":5123} 
[2026-02-27 23:10:33] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5130,"items_count":4,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":421,"quantity":1,"price":"70.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"}]} 
[2026-02-27 23:10:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5130,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5130}} 
[2026-02-27 23:10:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5130,"item_index":0,"menu_item_id":411} 
[2026-02-27 23:10:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5130,"item_index":1,"item_data":{"menu_item_id":421,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Omlate","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5130}} 
[2026-02-27 23:10:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5130,"item_index":1,"menu_item_id":421} 
[2026-02-27 23:10:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5130,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5130}} 
[2026-02-27 23:10:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5130,"item_index":2,"menu_item_id":5} 
[2026-02-27 23:10:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5130,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5130}} 
[2026-02-27 23:10:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5130,"item_index":3,"menu_item_id":50} 
[2026-02-27 23:10:33] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5123,"new_order_id":5130,"order_number":"AZS-270226-024"} 
[2026-02-27 23:20:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5119,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25047}],"validated_items":[{"id":25047,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:20:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5119,"items_count":1} 
[2026-02-27 23:20:04] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25047,"menu_item_id":6,"quantity":2}]} 
[2026-02-27 23:20:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5119,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-02-27 23:20:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5119,"order_number":"AZS-270226-022"} 
[2026-02-27 23:20:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5119,"order_number":"AZS-270226-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 23:20:04"} 
[2026-02-27 23:24:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5130,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":25075},{"menu_item_id":421,"quantity":1,"discount_percent":0,"notes":null,"id":25076},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25077},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":25078},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25075,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":25076,"menu_item_id":421,"quantity":1,"discount_percent":0,"notes":null},{"id":25077,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":25078,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:24:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5130,"items_count":5} 
[2026-02-27 23:24:23] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25075,"menu_item_id":411,"quantity":1},{"id":25076,"menu_item_id":421,"quantity":1},{"id":25077,"menu_item_id":5,"quantity":1},{"id":25078,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":6,"quantity":1}]} 
[2026-02-27 23:24:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5130,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["411|1|","421|1|","5|1|","50|1|"],"new_items_map_keys":["411|1|","421|1|","5|1|","50|1|","6|1|"]} 
[2026-02-27 23:24:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5130,"order_number":"AZS-270226-024"} 
[2026-02-27 23:24:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-024","replaced_order_id":5130} 
[2026-02-27 23:24:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5132,"items_count":5,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":421,"quantity":1,"price":"70.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":6,"quantity":1,"price":"199.00"}]} 
[2026-02-27 23:24:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5132,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5132}} 
[2026-02-27 23:24:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5132,"item_index":0,"menu_item_id":411} 
[2026-02-27 23:24:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5132,"item_index":1,"item_data":{"menu_item_id":421,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Omlate","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5132}} 
[2026-02-27 23:24:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5132,"item_index":1,"menu_item_id":421} 
[2026-02-27 23:24:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5132,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5132}} 
[2026-02-27 23:24:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5132,"item_index":2,"menu_item_id":5} 
[2026-02-27 23:24:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5132,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5132}} 
[2026-02-27 23:24:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5132,"item_index":3,"menu_item_id":50} 
[2026-02-27 23:24:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5132,"item_index":4,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5132}} 
[2026-02-27 23:24:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5132,"item_index":4,"menu_item_id":6} 
[2026-02-27 23:24:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5130,"new_order_id":5132,"order_number":"AZS-270226-024"} 
[2026-02-27 23:25:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5131,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":25079},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":25079,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:25:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5131,"items_count":3} 
[2026-02-27 23:25:19] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25079,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2}]} 
[2026-02-27 23:25:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5131,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["411|2|"],"new_items_map_keys":["411|2|","106|1|","396|2|"]} 
[2026-02-27 23:25:19] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5131,"order_number":"AZS-270226-027"} 
[2026-02-27 23:25:19] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-027","replaced_order_id":5131} 
[2026-02-27 23:25:19] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5133,"items_count":3,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"}]} 
[2026-02-27 23:25:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5133,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5133}} 
[2026-02-27 23:25:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5133,"item_index":0,"menu_item_id":411} 
[2026-02-27 23:25:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5133,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5133}} 
[2026-02-27 23:25:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5133,"item_index":1,"menu_item_id":106} 
[2026-02-27 23:25:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5133,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5133}} 
[2026-02-27 23:25:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5133,"item_index":2,"menu_item_id":396} 
[2026-02-27 23:25:19] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5131,"new_order_id":5133,"order_number":"AZS-270226-027"} 
[2026-02-27 23:25:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5128,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":25068},{"menu_item_id":412,"quantity":3,"discount_percent":0,"notes":null,"id":25069},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null,"id":25070},{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":25068,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":25069,"menu_item_id":412,"quantity":3,"discount_percent":0,"notes":null},{"id":25070,"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:25:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5128,"items_count":4} 
[2026-02-27 23:25:36] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25068,"menu_item_id":411,"quantity":2},{"id":25069,"menu_item_id":412,"quantity":3},{"id":25070,"menu_item_id":416,"quantity":2},{"id":null,"menu_item_id":6,"quantity":3}]} 
[2026-02-27 23:25:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5128,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["411|2|","412|3|","416|2|"],"new_items_map_keys":["411|2|","412|3|","416|2|","6|3|"]} 
[2026-02-27 23:25:36] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5128,"order_number":"AZS-270226-023"} 
[2026-02-27 23:25:36] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-023","replaced_order_id":5128} 
[2026-02-27 23:25:36] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5134,"items_count":4,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":412,"quantity":3,"price":"220.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"},{"menu_item_id":6,"quantity":3,"price":"199.00"}]} 
[2026-02-27 23:25:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5134,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5134}} 
[2026-02-27 23:25:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5134,"item_index":0,"menu_item_id":411} 
[2026-02-27 23:25:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5134,"item_index":1,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":3,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":660.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5134}} 
[2026-02-27 23:25:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5134,"item_index":1,"menu_item_id":412} 
[2026-02-27 23:25:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5134,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5134}} 
[2026-02-27 23:25:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5134,"item_index":2,"menu_item_id":416} 
[2026-02-27 23:25:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5134,"item_index":3,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5134}} 
[2026-02-27 23:25:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5134,"item_index":3,"menu_item_id":6} 
[2026-02-27 23:25:36] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5128,"new_order_id":5134,"order_number":"AZS-270226-023"} 
[2026-02-27 23:25:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5129,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null,"id":25071},{"menu_item_id":414,"quantity":1,"discount_percent":0,"notes":null,"id":25072},{"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null,"id":25073},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null,"id":25074},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25071,"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"id":25072,"menu_item_id":414,"quantity":1,"discount_percent":0,"notes":null},{"id":25073,"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null},{"id":25074,"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:25:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5129,"items_count":5} 
[2026-02-27 23:25:57] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25071,"menu_item_id":416,"quantity":2},{"id":25072,"menu_item_id":414,"quantity":1},{"id":25073,"menu_item_id":412,"quantity":1},{"id":25074,"menu_item_id":4,"quantity":1},{"id":null,"menu_item_id":425,"quantity":1}]} 
[2026-02-27 23:25:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5129,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["416|2|","414|1|","412|1|","4|1|"],"new_items_map_keys":["416|2|","414|1|","412|1|","4|1|","425|1|"]} 
[2026-02-27 23:25:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5129,"order_number":"AZS-270226-025"} 
[2026-02-27 23:25:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-025","replaced_order_id":5129} 
[2026-02-27 23:25:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5135,"items_count":5,"items":[{"menu_item_id":416,"quantity":2,"price":"70.00"},{"menu_item_id":414,"quantity":1,"price":"150.00"},{"menu_item_id":412,"quantity":1,"price":"220.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"},{"menu_item_id":425,"quantity":1,"price":"99.00"}]} 
[2026-02-27 23:25:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5135,"item_index":0,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5135}} 
[2026-02-27 23:25:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5135,"item_index":0,"menu_item_id":416} 
[2026-02-27 23:25:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5135,"item_index":1,"item_data":{"menu_item_id":414,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sada Channy","quantity":1,"price":"150.00","discount_percent":0.0,"discount_amount":0.0,"total":150.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5135}} 
[2026-02-27 23:25:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5135,"item_index":1,"menu_item_id":414} 
[2026-02-27 23:25:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5135,"item_index":2,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":1,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":220.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5135}} 
[2026-02-27 23:25:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5135,"item_index":2,"menu_item_id":412} 
[2026-02-27 23:25:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5135,"item_index":3,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5135}} 
[2026-02-27 23:25:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5135,"item_index":3,"menu_item_id":4} 
[2026-02-27 23:25:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5135,"item_index":4,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5135}} 
[2026-02-27 23:25:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5135,"item_index":4,"menu_item_id":425} 
[2026-02-27 23:25:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5129,"new_order_id":5135,"order_number":"AZS-270226-025"} 
[2026-02-27 23:29:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5135,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25092},{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null,"id":25093},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null,"id":25094},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":25095},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25096}],"validated_items":[{"id":25092,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":25093,"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null},{"id":25094,"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null},{"id":25095,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"id":25096,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:29:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5135,"items_count":5} 
[2026-02-27 23:29:48] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25092,"menu_item_id":416,"quantity":2},{"id":25093,"menu_item_id":414,"quantity":1},{"id":25094,"menu_item_id":412,"quantity":1},{"id":25095,"menu_item_id":4,"quantity":1},{"id":25096,"menu_item_id":425,"quantity":1}]} 
[2026-02-27 23:29:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5135,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["416|2|","414|1|","412|1|","4|1|","425|1|"],"new_items_map_keys":["416|2|","414|1|","412|1|","4|1|","425|1|"]} 
[2026-02-27 23:29:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5135,"order_number":"AZS-270226-025"} 
[2026-02-27 23:29:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5135,"order_number":"AZS-270226-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 23:29:48"} 
[2026-02-27 23:31:24] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5127,"order_number":"AZS-270226-026","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":800,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 23:31:24"} 
[2026-02-27 23:31:24] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5127,"order_number":"AZS-270226-026","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":800,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 23:31:24"} 
[2026-02-27 23:31:24] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5127,"order_number":"AZS-270226-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":800,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 23:31:24"} 
[2026-02-27 23:31:24] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5127,"order_number":"AZS-270226-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":800,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 23:31:24"} 
[2026-02-27 23:31:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5127,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25066},{"menu_item_id":413,"quantity":1,"price":200,"discount_percent":0,"notes":null,"id":25067}],"validated_items":[{"id":25066,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":25067,"menu_item_id":413,"quantity":1,"price":200,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:31:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5127,"items_count":2} 
[2026-02-27 23:31:24] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25066,"menu_item_id":411,"quantity":1},{"id":25067,"menu_item_id":413,"quantity":1}]} 
[2026-02-27 23:31:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5127,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","413|1|"],"new_items_map_keys":["411|1|","413|1|"]} 
[2026-02-27 23:31:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5127,"order_number":"AZS-270226-026"} 
[2026-02-27 23:31:24] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5127,"order_number":"AZS-270226-026","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":800,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-27 23:31:24","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-27 23:31:24"} 
[2026-02-27 23:31:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5127,"order_number":"AZS-270226-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-27 23:31:24"} 
[2026-02-27 23:31:24] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5127,"order_number":"AZS-270226-026","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"800.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-27 23:31:24","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":800,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"800.00","database_verification_match":true,"timestamp":"2026-02-27 23:31:24"} 
[2026-02-27 23:31:55] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5119,"order_number":"AZS-270226-022","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 23:31:55"} 
[2026-02-27 23:31:55] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5119,"order_number":"AZS-270226-022","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 23:31:55"} 
[2026-02-27 23:31:55] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5119,"order_number":"AZS-270226-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 23:31:55"} 
[2026-02-27 23:31:55] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5119,"order_number":"AZS-270226-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 23:31:55"} 
[2026-02-27 23:31:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5119,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25047}],"validated_items":[{"id":25047,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:31:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5119,"items_count":1} 
[2026-02-27 23:31:55] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25047,"menu_item_id":6,"quantity":2}]} 
[2026-02-27 23:31:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5119,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-02-27 23:31:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5119,"order_number":"AZS-270226-022"} 
[2026-02-27 23:31:55] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5119,"order_number":"AZS-270226-022","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-27 23:31:55","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-27 23:31:55"} 
[2026-02-27 23:31:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5119,"order_number":"AZS-270226-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-27 23:31:55"} 
[2026-02-27 23:31:55] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5119,"order_number":"AZS-270226-022","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-27 23:31:55","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-02-27 23:31:55"} 
[2026-02-27 23:34:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5136,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25097},{"menu_item_id":416,"quantity":3,"discount_percent":0,"notes":null,"id":25098},{"menu_item_id":414,"quantity":1,"discount_percent":0,"notes":null,"id":25099}],"validated_items":[{"id":25097,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":25098,"menu_item_id":416,"quantity":3,"discount_percent":0,"notes":null},{"id":25099,"menu_item_id":414,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:34:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5136,"items_count":3} 
[2026-02-27 23:34:48] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25097,"menu_item_id":5,"quantity":1},{"id":25098,"menu_item_id":416,"quantity":3},{"id":25099,"menu_item_id":414,"quantity":1}]} 
[2026-02-27 23:34:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5136,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["5|1|","416|3|","414|1|"],"new_items_map_keys":["5|1|","416|3|","414|1|"]} 
[2026-02-27 23:34:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5136,"order_number":"AZS-270226-028"} 
[2026-02-27 23:34:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5136,"order_number":"AZS-270226-028","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-27 23:34:48"} 
[2026-02-27 23:35:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5133,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":25085},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":25086},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25087},{"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25085,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":25086,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":25087,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:35:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5133,"items_count":4} 
[2026-02-27 23:35:18] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25085,"menu_item_id":411,"quantity":2},{"id":25086,"menu_item_id":106,"quantity":1},{"id":25087,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":422,"quantity":1}]} 
[2026-02-27 23:35:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5133,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["411|2|","106|1|","396|2|"],"new_items_map_keys":["411|2|","106|1|","396|2|","422|1|"]} 
[2026-02-27 23:35:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5133,"order_number":"AZS-270226-027"} 
[2026-02-27 23:35:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-027","replaced_order_id":5133} 
[2026-02-27 23:35:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5138,"items_count":4,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":422,"quantity":1,"price":"70.00"}]} 
[2026-02-27 23:35:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5138,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5138}} 
[2026-02-27 23:35:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5138,"item_index":0,"menu_item_id":411} 
[2026-02-27 23:35:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5138,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5138}} 
[2026-02-27 23:35:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5138,"item_index":1,"menu_item_id":106} 
[2026-02-27 23:35:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5138,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5138}} 
[2026-02-27 23:35:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5138,"item_index":2,"menu_item_id":396} 
[2026-02-27 23:35:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5138,"item_index":3,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5138}} 
[2026-02-27 23:35:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5138,"item_index":3,"menu_item_id":422} 
[2026-02-27 23:35:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5133,"new_order_id":5138,"order_number":"AZS-270226-027"} 
[2026-02-27 23:37:01] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5135,"order_number":"AZS-270226-025","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 23:37:00"} 
[2026-02-27 23:37:01] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5135,"order_number":"AZS-270226-025","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 23:37:01"} 
[2026-02-27 23:37:01] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5135,"order_number":"AZS-270226-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 23:37:01"} 
[2026-02-27 23:37:01] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5135,"order_number":"AZS-270226-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 23:37:01"} 
[2026-02-27 23:37:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5135,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25092},{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null,"id":25093},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null,"id":25094},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":25095},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25096}],"validated_items":[{"id":25092,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":25093,"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null},{"id":25094,"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null},{"id":25095,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"id":25096,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:37:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5135,"items_count":5} 
[2026-02-27 23:37:01] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25092,"menu_item_id":416,"quantity":2},{"id":25093,"menu_item_id":414,"quantity":1},{"id":25094,"menu_item_id":412,"quantity":1},{"id":25095,"menu_item_id":4,"quantity":1},{"id":25096,"menu_item_id":425,"quantity":1}]} 
[2026-02-27 23:37:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5135,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["416|2|","414|1|","412|1|","4|1|","425|1|"],"new_items_map_keys":["416|2|","414|1|","412|1|","4|1|","425|1|"]} 
[2026-02-27 23:37:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5135,"order_number":"AZS-270226-025"} 
[2026-02-27 23:37:01] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5135,"order_number":"AZS-270226-025","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-27 23:37:01","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-27 23:37:01"} 
[2026-02-27 23:37:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5135,"order_number":"AZS-270226-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-27 23:37:01"} 
[2026-02-27 23:37:01] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5135,"order_number":"AZS-270226-025","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-27 23:37:01","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-02-27 23:37:01"} 
[2026-02-27 23:39:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5138,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":25102},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":25103},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25104},{"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null,"id":25105},{"menu_item_id":416,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":25102,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":25103,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":25104,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":25105,"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:39:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5138,"items_count":5} 
[2026-02-27 23:39:15] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25102,"menu_item_id":411,"quantity":2},{"id":25103,"menu_item_id":106,"quantity":1},{"id":25104,"menu_item_id":396,"quantity":2},{"id":25105,"menu_item_id":422,"quantity":1},{"id":null,"menu_item_id":416,"quantity":3}]} 
[2026-02-27 23:39:15] local.INFO: PosOrderController::update - Item changes check {"order_id":5138,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["411|2|","106|1|","396|2|","422|1|"],"new_items_map_keys":["411|2|","106|1|","396|2|","422|1|","416|3|"]} 
[2026-02-27 23:39:15] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5138,"order_number":"AZS-270226-027"} 
[2026-02-27 23:39:15] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-027","replaced_order_id":5138} 
[2026-02-27 23:39:15] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5139,"items_count":5,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":422,"quantity":1,"price":"70.00"},{"menu_item_id":416,"quantity":3,"price":"70.00"}]} 
[2026-02-27 23:39:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5139,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5139}} 
[2026-02-27 23:39:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5139,"item_index":0,"menu_item_id":411} 
[2026-02-27 23:39:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5139,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5139}} 
[2026-02-27 23:39:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5139,"item_index":1,"menu_item_id":106} 
[2026-02-27 23:39:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5139,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5139}} 
[2026-02-27 23:39:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5139,"item_index":2,"menu_item_id":396} 
[2026-02-27 23:39:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5139,"item_index":3,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5139}} 
[2026-02-27 23:39:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5139,"item_index":3,"menu_item_id":422} 
[2026-02-27 23:39:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5139,"item_index":4,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5139}} 
[2026-02-27 23:39:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5139,"item_index":4,"menu_item_id":416} 
[2026-02-27 23:39:15] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5138,"new_order_id":5139,"order_number":"AZS-270226-027"} 
[2026-02-27 23:40:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5136,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25097},{"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25098},{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null,"id":25099}],"validated_items":[{"id":25097,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25098,"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":25099,"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:40:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5136,"items_count":3} 
[2026-02-27 23:40:38] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25097,"menu_item_id":5,"quantity":1},{"id":25098,"menu_item_id":416,"quantity":3},{"id":25099,"menu_item_id":414,"quantity":1}]} 
[2026-02-27 23:40:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5136,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["5|1|","416|3|","414|1|"],"new_items_map_keys":["5|1|","416|3|","414|1|"]} 
[2026-02-27 23:40:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5136,"order_number":"AZS-270226-028"} 
[2026-02-27 23:40:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5136,"order_number":"AZS-270226-028","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 23:40:38"} 
[2026-02-27 23:41:31] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5136,"order_number":"AZS-270226-028","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 23:41:31"} 
[2026-02-27 23:41:31] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5136,"order_number":"AZS-270226-028","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 23:41:31"} 
[2026-02-27 23:41:31] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5136,"order_number":"AZS-270226-028","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 23:41:31"} 
[2026-02-27 23:41:31] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5136,"order_number":"AZS-270226-028","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 23:41:31"} 
[2026-02-27 23:41:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5136,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25097},{"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25098},{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null,"id":25099}],"validated_items":[{"id":25097,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25098,"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":25099,"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:41:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5136,"items_count":3} 
[2026-02-27 23:41:31] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25097,"menu_item_id":5,"quantity":1},{"id":25098,"menu_item_id":416,"quantity":3},{"id":25099,"menu_item_id":414,"quantity":1}]} 
[2026-02-27 23:41:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5136,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["5|1|","416|3|","414|1|"],"new_items_map_keys":["5|1|","416|3|","414|1|"]} 
[2026-02-27 23:41:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5136,"order_number":"AZS-270226-028"} 
[2026-02-27 23:41:31] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5136,"order_number":"AZS-270226-028","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-27 23:41:31","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-27 23:41:31"} 
[2026-02-27 23:41:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5136,"order_number":"AZS-270226-028","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-27 23:41:31"} 
[2026-02-27 23:41:31] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5136,"order_number":"AZS-270226-028","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-27 23:41:31","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-02-27 23:41:31"} 
[2026-02-27 23:45:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5132,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25080},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25081},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25082},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":25083},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25084}],"validated_items":[{"id":25080,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":25081,"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":25082,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25083,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":25084,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:45:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5132,"items_count":5} 
[2026-02-27 23:45:16] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25080,"menu_item_id":411,"quantity":1},{"id":25081,"menu_item_id":421,"quantity":1},{"id":25082,"menu_item_id":5,"quantity":1},{"id":25083,"menu_item_id":50,"quantity":1},{"id":25084,"menu_item_id":6,"quantity":1}]} 
[2026-02-27 23:45:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5132,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|1|","421|1|","5|1|","50|1|","6|1|"],"new_items_map_keys":["411|1|","421|1|","5|1|","50|1|","6|1|"]} 
[2026-02-27 23:45:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5132,"order_number":"AZS-270226-024"} 
[2026-02-27 23:45:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5132,"order_number":"AZS-270226-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 23:45:16"} 
[2026-02-27 23:46:04] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5104,"order_number":"AZS-270226-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":600,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 23:46:04"} 
[2026-02-27 23:46:04] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5104,"order_number":"AZS-270226-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 23:46:04"} 
[2026-02-27 23:46:04] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5104,"order_number":"AZS-270226-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 23:46:04"} 
[2026-02-27 23:46:04] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5104,"order_number":"AZS-270226-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 23:46:04"} 
[2026-02-27 23:46:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5104,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":24978}],"validated_items":[{"id":24978,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:46:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5104,"items_count":1} 
[2026-02-27 23:46:04] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":24978,"menu_item_id":6,"quantity":3}]} 
[2026-02-27 23:46:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5104,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|3|"],"new_items_map_keys":["6|3|"]} 
[2026-02-27 23:46:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5104,"order_number":"AZS-270226-014"} 
[2026-02-27 23:46:04] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5104,"order_number":"AZS-270226-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":600,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-27 23:46:04","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-27 23:46:04"} 
[2026-02-27 23:46:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5104,"order_number":"AZS-270226-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-27 23:46:04"} 
[2026-02-27 23:46:04] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5104,"order_number":"AZS-270226-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"600.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-27 23:46:04","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"600.00","database_verification_match":true,"timestamp":"2026-02-27 23:46:04"} 
[2026-02-27 23:48:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5139,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":25106},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":25107},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25108},{"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null,"id":25109},{"menu_item_id":416,"quantity":3,"discount_percent":0,"notes":null,"id":25110},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25106,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":25107,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":25108,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":25109,"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null},{"id":25110,"menu_item_id":416,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:48:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5139,"items_count":6} 
[2026-02-27 23:48:44] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25106,"menu_item_id":411,"quantity":2},{"id":25107,"menu_item_id":106,"quantity":1},{"id":25108,"menu_item_id":396,"quantity":2},{"id":25109,"menu_item_id":422,"quantity":1},{"id":25110,"menu_item_id":416,"quantity":3},{"id":null,"menu_item_id":29,"quantity":1}]} 
[2026-02-27 23:48:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5139,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["411|2|","106|1|","396|2|","422|1|","416|3|"],"new_items_map_keys":["411|2|","106|1|","396|2|","422|1|","416|3|","29|1|"]} 
[2026-02-27 23:48:44] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5139,"order_number":"AZS-270226-027"} 
[2026-02-27 23:48:44] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-027","replaced_order_id":5139} 
[2026-02-27 23:48:44] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5141,"items_count":6,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":422,"quantity":1,"price":"70.00"},{"menu_item_id":416,"quantity":3,"price":"70.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"}]} 
[2026-02-27 23:48:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5141,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5141}} 
[2026-02-27 23:48:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5141,"item_index":0,"menu_item_id":411} 
[2026-02-27 23:48:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5141,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5141}} 
[2026-02-27 23:48:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5141,"item_index":1,"menu_item_id":106} 
[2026-02-27 23:48:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5141,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5141}} 
[2026-02-27 23:48:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5141,"item_index":2,"menu_item_id":396} 
[2026-02-27 23:48:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5141,"item_index":3,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5141}} 
[2026-02-27 23:48:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5141,"item_index":3,"menu_item_id":422} 
[2026-02-27 23:48:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5141,"item_index":4,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5141}} 
[2026-02-27 23:48:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5141,"item_index":4,"menu_item_id":416} 
[2026-02-27 23:48:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5141,"item_index":5,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5141}} 
[2026-02-27 23:48:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5141,"item_index":5,"menu_item_id":29} 
[2026-02-27 23:48:44] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5139,"new_order_id":5141,"order_number":"AZS-270226-027"} 
[2026-02-27 23:52:25] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5132,"order_number":"AZS-270226-024","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1170,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 23:52:25"} 
[2026-02-27 23:52:25] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5132,"order_number":"AZS-270226-024","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1170,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 23:52:25"} 
[2026-02-27 23:52:25] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5132,"order_number":"AZS-270226-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1170,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 23:52:25"} 
[2026-02-27 23:52:25] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5132,"order_number":"AZS-270226-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1170,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 23:52:25"} 
[2026-02-27 23:52:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5132,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25080},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25081},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25082},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":25083},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25084}],"validated_items":[{"id":25080,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":25081,"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":25082,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25083,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":25084,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:52:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5132,"items_count":5} 
[2026-02-27 23:52:25] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25080,"menu_item_id":411,"quantity":1},{"id":25081,"menu_item_id":421,"quantity":1},{"id":25082,"menu_item_id":5,"quantity":1},{"id":25083,"menu_item_id":50,"quantity":1},{"id":25084,"menu_item_id":6,"quantity":1}]} 
[2026-02-27 23:52:25] local.INFO: PosOrderController::update - Item changes check {"order_id":5132,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|1|","421|1|","5|1|","50|1|","6|1|"],"new_items_map_keys":["411|1|","421|1|","5|1|","50|1|","6|1|"]} 
[2026-02-27 23:52:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5132,"order_number":"AZS-270226-024"} 
[2026-02-27 23:52:25] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5132,"order_number":"AZS-270226-024","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1170,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-27 23:52:25","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-27 23:52:25"} 
[2026-02-27 23:52:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5132,"order_number":"AZS-270226-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-27 23:52:25"} 
[2026-02-27 23:52:25] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5132,"order_number":"AZS-270226-024","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1170.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-27 23:52:25","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1170,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1170.00","database_verification_match":true,"timestamp":"2026-02-27 23:52:25"} 
[2026-02-27 23:53:59] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5137,"order_number":"AZS-270226-029","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":210,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 23:53:59"} 
[2026-02-27 23:53:59] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5137,"order_number":"AZS-270226-029","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":210,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-27 23:53:59"} 
[2026-02-27 23:53:59] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5137,"order_number":"AZS-270226-029","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":210,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 23:53:59"} 
[2026-02-27 23:53:59] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5137,"order_number":"AZS-270226-029","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":210,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-27 23:53:59"} 
[2026-02-27 23:53:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5137,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25100},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25101}],"validated_items":[{"id":25100,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":25101,"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:53:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5137,"items_count":2} 
[2026-02-27 23:53:59] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25100,"menu_item_id":416,"quantity":2},{"id":25101,"menu_item_id":421,"quantity":1}]} 
[2026-02-27 23:53:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5137,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["416|2|","421|1|"],"new_items_map_keys":["416|2|","421|1|"]} 
[2026-02-27 23:53:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5137,"order_number":"AZS-270226-029"} 
[2026-02-27 23:53:59] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5137,"order_number":"AZS-270226-029","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":210,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-27 23:53:59","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-27 23:53:59"} 
[2026-02-27 23:53:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5137,"order_number":"AZS-270226-029","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-27 23:53:59"} 
[2026-02-27 23:53:59] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5137,"order_number":"AZS-270226-029","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"210.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-27 23:53:59","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":210,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"210.00","database_verification_match":true,"timestamp":"2026-02-27 23:53:59"} 
[2026-02-27 23:54:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5134,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":25088},{"menu_item_id":412,"quantity":3,"price":220,"discount_percent":0,"notes":null,"id":25089},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25090},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":25091}],"validated_items":[{"id":25088,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":25089,"menu_item_id":412,"quantity":3,"price":220,"discount_percent":0,"notes":null},{"id":25090,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":25091,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:54:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5134,"items_count":4} 
[2026-02-27 23:54:09] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25088,"menu_item_id":411,"quantity":2},{"id":25089,"menu_item_id":412,"quantity":3},{"id":25090,"menu_item_id":416,"quantity":2},{"id":25091,"menu_item_id":6,"quantity":3}]} 
[2026-02-27 23:54:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5134,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|2|","412|3|","416|2|","6|3|"],"new_items_map_keys":["411|2|","412|3|","416|2|","6|3|"]} 
[2026-02-27 23:54:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5134,"order_number":"AZS-270226-023"} 
[2026-02-27 23:54:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5134,"order_number":"AZS-270226-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 23:54:09"} 
[2026-02-27 23:54:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5134,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":25088},{"menu_item_id":412,"quantity":3,"discount_percent":0,"notes":null,"id":25089},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null,"id":25090},{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null,"id":25091},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25088,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":25089,"menu_item_id":412,"quantity":3,"discount_percent":0,"notes":null},{"id":25090,"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"id":25091,"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:54:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5134,"items_count":5} 
[2026-02-27 23:54:30] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25088,"menu_item_id":411,"quantity":2},{"id":25089,"menu_item_id":412,"quantity":3},{"id":25090,"menu_item_id":416,"quantity":2},{"id":25091,"menu_item_id":6,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-27 23:54:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5134,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["411|2|","412|3|","416|2|","6|3|"],"new_items_map_keys":["411|2|","412|3|","416|2|","6|3|","5|1|"]} 
[2026-02-27 23:54:30] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5134,"order_number":"AZS-270226-023"} 
[2026-02-27 23:54:30] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-023","replaced_order_id":5134} 
[2026-02-27 23:54:30] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5142,"items_count":5,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":412,"quantity":3,"price":"220.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"},{"menu_item_id":6,"quantity":3,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-27 23:54:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5142,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5142}} 
[2026-02-27 23:54:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5142,"item_index":0,"menu_item_id":411} 
[2026-02-27 23:54:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5142,"item_index":1,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":3,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":660.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5142}} 
[2026-02-27 23:54:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5142,"item_index":1,"menu_item_id":412} 
[2026-02-27 23:54:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5142,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5142}} 
[2026-02-27 23:54:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5142,"item_index":2,"menu_item_id":416} 
[2026-02-27 23:54:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5142,"item_index":3,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5142}} 
[2026-02-27 23:54:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5142,"item_index":3,"menu_item_id":6} 
[2026-02-27 23:54:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5142,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5142}} 
[2026-02-27 23:54:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5142,"item_index":4,"menu_item_id":5} 
[2026-02-27 23:54:30] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5134,"new_order_id":5142,"order_number":"AZS-270226-023"} 
[2026-02-27 23:54:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5142,"item_index":0,"item_id":25088} 
[2026-02-27 23:54:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5142,"item_index":1,"item_id":25089} 
[2026-02-27 23:54:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5142,"item_index":2,"item_id":25090} 
[2026-02-27 23:54:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5142,"item_index":3,"item_id":25091} 
[2026-02-27 23:54:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5142,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":25088},{"menu_item_id":412,"quantity":3,"price":220,"discount_percent":0,"notes":null,"id":25089},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25090},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":25091},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":3,"price":220,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-27 23:54:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5142,"items_count":5} 
[2026-02-27 23:54:35] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[25119,25120,25121,25122,25123],"items":[{"id":null,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":412,"quantity":3},{"id":null,"menu_item_id":416,"quantity":2},{"id":null,"menu_item_id":6,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-27 23:54:35] local.INFO: PosOrderController::update - Item changes check {"order_id":5142,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|2|","412|3|","416|2|","6|3|","5|1|"],"new_items_map_keys":["411|2|","412|3|","416|2|","6|3|","5|1|"]} 
[2026-02-27 23:54:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5142,"order_number":"AZS-270226-023"} 
[2026-02-27 23:54:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5142,"order_number":"AZS-270226-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-27 23:54:35"} 
[2026-02-28 00:02:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5140,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":25111},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25112},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}],"validated_items":[{"id":25111,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"id":25112,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-28 00:02:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5140,"items_count":3} 
[2026-02-28 00:02:22] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25111,"menu_item_id":286,"quantity":2},{"id":25112,"menu_item_id":425,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-02-28 00:02:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5140,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["286|2|","425|1|"],"new_items_map_keys":["286|2|","425|1|","4|1|"]} 
[2026-02-28 00:02:22] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5140,"order_number":"AZS-270226-030"} 
[2026-02-28 00:02:22] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-030","replaced_order_id":5140} 
[2026-02-28 00:02:22] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5143,"items_count":3,"items":[{"menu_item_id":286,"quantity":2,"price":15.0},{"menu_item_id":425,"quantity":1,"price":99.0},{"menu_item_id":4,"quantity":1,"price":90.0}]} 
[2026-02-28 00:02:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5143,"item_index":0,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":2,"price":15.0,"discount_percent":0.0,"discount_amount":0.0,"total":30.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5143}} 
[2026-02-28 00:02:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5143,"item_index":0,"menu_item_id":286} 
[2026-02-28 00:02:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5143,"item_index":1,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5143}} 
[2026-02-28 00:02:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5143,"item_index":1,"menu_item_id":425} 
[2026-02-28 00:02:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5143,"item_index":2,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":90.0,"discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5143}} 
[2026-02-28 00:02:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5143,"item_index":2,"menu_item_id":4} 
[2026-02-28 00:02:22] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5140,"new_order_id":5143,"order_number":"AZS-270226-030"} 
[2026-02-28 00:02:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5143,"item_index":0,"item_id":25111} 
[2026-02-28 00:02:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5143,"item_index":1,"item_id":25112} 
[2026-02-28 00:02:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":5143,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":25111},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25112},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-28 00:02:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5143,"items_count":3} 
[2026-02-28 00:02:32] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[25124,25125,25126],"items":[{"id":null,"menu_item_id":286,"quantity":2},{"id":null,"menu_item_id":425,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-02-28 00:02:32] local.INFO: PosOrderController::update - Item changes check {"order_id":5143,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["286|2|","425|1|","4|1|"],"new_items_map_keys":["286|2|","425|1|","4|1|"]} 
[2026-02-28 00:02:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5143,"order_number":"AZS-270226-030"} 
[2026-02-28 00:02:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5143,"order_number":"AZS-270226-030","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 00:02:32"} 
[2026-02-28 00:03:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5143,"item_index":0,"item_id":25111} 
[2026-02-28 00:03:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5143,"item_index":1,"item_id":25112} 
[2026-02-28 00:03:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5143,"order_number":"AZS-270226-030","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":220,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 00:03:27"} 
[2026-02-28 00:03:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5143,"order_number":"AZS-270226-030","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":220,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 00:03:27"} 
[2026-02-28 00:03:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5143,"order_number":"AZS-270226-030","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":220,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 00:03:27"} 
[2026-02-28 00:03:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5143,"order_number":"AZS-270226-030","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":220,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 00:03:27"} 
[2026-02-28 00:03:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":5143,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":25111},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25112},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-28 00:03:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5143,"items_count":3} 
[2026-02-28 00:03:27] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[25124,25125,25126],"items":[{"id":null,"menu_item_id":286,"quantity":2},{"id":null,"menu_item_id":425,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-02-28 00:03:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5143,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["286|2|","425|1|","4|1|"],"new_items_map_keys":["286|2|","425|1|","4|1|"]} 
[2026-02-28 00:03:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5143,"order_number":"AZS-270226-030"} 
[2026-02-28 00:03:27] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5143,"order_number":"AZS-270226-030","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":220,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-28 00:03:27","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 00:03:27"} 
[2026-02-28 00:03:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5143,"order_number":"AZS-270226-030","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 00:03:27"} 
[2026-02-28 00:03:27] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5143,"order_number":"AZS-270226-030","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"220.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-28 00:03:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":220,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"220.00","database_verification_match":true,"timestamp":"2026-02-28 00:03:27"} 
[2026-02-28 00:05:24] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5142,"order_number":"AZS-270226-023","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 00:05:24"} 
[2026-02-28 00:05:24] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5142,"order_number":"AZS-270226-023","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 00:05:24"} 
[2026-02-28 00:05:24] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5142,"order_number":"AZS-270226-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 00:05:24"} 
[2026-02-28 00:05:24] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5142,"order_number":"AZS-270226-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 00:05:24"} 
[2026-02-28 00:05:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5142,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":25119},{"menu_item_id":412,"quantity":3,"price":220,"discount_percent":0,"notes":null,"id":25120},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25121},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":25122},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25123}],"validated_items":[{"id":25119,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":25120,"menu_item_id":412,"quantity":3,"price":220,"discount_percent":0,"notes":null},{"id":25121,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":25122,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":25123,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-28 00:05:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5142,"items_count":5} 
[2026-02-28 00:05:24] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25119,"menu_item_id":411,"quantity":2},{"id":25120,"menu_item_id":412,"quantity":3},{"id":25121,"menu_item_id":416,"quantity":2},{"id":25122,"menu_item_id":6,"quantity":3},{"id":25123,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 00:05:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5142,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|2|","412|3|","416|2|","6|3|","5|1|"],"new_items_map_keys":["411|2|","412|3|","416|2|","6|3|","5|1|"]} 
[2026-02-28 00:05:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5142,"order_number":"AZS-270226-023"} 
[2026-02-28 00:05:24] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5142,"order_number":"AZS-270226-023","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-28 00:05:24","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 00:05:24"} 
[2026-02-28 00:05:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5142,"order_number":"AZS-270226-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 00:05:24"} 
[2026-02-28 00:05:24] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5142,"order_number":"AZS-270226-023","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-28 00:05:24","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-02-28 00:05:24"} 
[2026-02-28 00:05:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5141,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":25113},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":25114},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25115},{"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null,"id":25116},{"menu_item_id":416,"quantity":3,"discount_percent":0,"notes":null,"id":25117},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null,"id":25118},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25113,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":25114,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":25115,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":25116,"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null},{"id":25117,"menu_item_id":416,"quantity":3,"discount_percent":0,"notes":null},{"id":25118,"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 00:05:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5141,"items_count":7} 
[2026-02-28 00:05:35] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25113,"menu_item_id":411,"quantity":2},{"id":25114,"menu_item_id":106,"quantity":1},{"id":25115,"menu_item_id":396,"quantity":2},{"id":25116,"menu_item_id":422,"quantity":1},{"id":25117,"menu_item_id":416,"quantity":3},{"id":25118,"menu_item_id":29,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 00:05:35] local.INFO: PosOrderController::update - Item changes check {"order_id":5141,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["411|2|","106|1|","396|2|","422|1|","416|3|","29|1|"],"new_items_map_keys":["411|2|","106|1|","396|2|","422|1|","416|3|","29|1|","5|1|"]} 
[2026-02-28 00:05:35] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5141,"order_number":"AZS-270226-027"} 
[2026-02-28 00:05:35] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-027","replaced_order_id":5141} 
[2026-02-28 00:05:35] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5144,"items_count":7,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":422,"quantity":1,"price":"70.00"},{"menu_item_id":416,"quantity":3,"price":"70.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-28 00:05:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5144,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5144}} 
[2026-02-28 00:05:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5144,"item_index":0,"menu_item_id":411} 
[2026-02-28 00:05:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5144,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5144}} 
[2026-02-28 00:05:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5144,"item_index":1,"menu_item_id":106} 
[2026-02-28 00:05:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5144,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5144}} 
[2026-02-28 00:05:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5144,"item_index":2,"menu_item_id":396} 
[2026-02-28 00:05:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5144,"item_index":3,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5144}} 
[2026-02-28 00:05:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5144,"item_index":3,"menu_item_id":422} 
[2026-02-28 00:05:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5144,"item_index":4,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5144}} 
[2026-02-28 00:05:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5144,"item_index":4,"menu_item_id":416} 
[2026-02-28 00:05:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5144,"item_index":5,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5144}} 
[2026-02-28 00:05:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5144,"item_index":5,"menu_item_id":29} 
[2026-02-28 00:05:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5144,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5144}} 
[2026-02-28 00:05:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5144,"item_index":6,"menu_item_id":5} 
[2026-02-28 00:05:35] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5141,"new_order_id":5144,"order_number":"AZS-270226-027"} 
[2026-02-28 00:05:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T12:05:58.818Z","date_to":"2026-02-28T00:05:58.818Z","per_page":"100"} 
[2026-02-28 00:05:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T12:05:58.835Z","date_to":"2026-02-28T00:05:58.835Z","per_page":"100"} 
[2026-02-28 00:05:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":70,"count":70,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-030","AZS-270226-030","AZS-270226-029","AZS-270226-028","AZS-270226-027","AZS-270226-027","AZS-270226-027","AZS-270226-027","AZS-270226-027","AZS-270226-027","AZS-270226-026","AZS-270226-026","AZS-270226-025","AZS-270226-025","AZS-270226-025","AZS-270226-024","AZS-270226-024","AZS-270226-024","AZS-270226-024","AZS-270226-023","AZS-270226-023","AZS-270226-023","AZS-270226-023","AZS-270226-023","AZS-270226-022","AZS-270226-021","AZS-270226-021","AZS-270226-021","AZS-270226-021","AZS-270226-020","AZS-270226-020","AZS-270226-019","AZS-270226-018","AZS-270226-017","AZS-270226-016","AZS-270226-015","AZS-270226-015","AZS-270226-015","AZS-270226-014","AZS-270226-013","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-011","AZS-270226-011","AZS-270226-011","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["paid","changed","paid","paid","pending","changed","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","paid","paid","paid","paid","paid","changed","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed"],"deleted_count":40,"paid_count":29,"unpaid_count":1,"unique_order_numbers":30} 
[2026-02-28 00:05:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":70,"count":70,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-030","AZS-270226-030","AZS-270226-029","AZS-270226-028","AZS-270226-027","AZS-270226-027","AZS-270226-027","AZS-270226-027","AZS-270226-027","AZS-270226-027","AZS-270226-026","AZS-270226-026","AZS-270226-025","AZS-270226-025","AZS-270226-025","AZS-270226-024","AZS-270226-024","AZS-270226-024","AZS-270226-024","AZS-270226-023","AZS-270226-023","AZS-270226-023","AZS-270226-023","AZS-270226-023","AZS-270226-022","AZS-270226-021","AZS-270226-021","AZS-270226-021","AZS-270226-021","AZS-270226-020","AZS-270226-020","AZS-270226-019","AZS-270226-018","AZS-270226-017","AZS-270226-016","AZS-270226-015","AZS-270226-015","AZS-270226-015","AZS-270226-014","AZS-270226-013","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-011","AZS-270226-011","AZS-270226-011","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["paid","changed","paid","paid","pending","changed","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","paid","paid","paid","paid","paid","changed","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed"],"deleted_count":40,"paid_count":29,"unpaid_count":1,"unique_order_numbers":30} 
[2026-02-28 00:06:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T12:05:58.818Z","date_to":"2026-02-28T00:05:58.818Z","per_page":"100"} 
[2026-02-28 00:06:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":70,"count":70,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-030","AZS-270226-030","AZS-270226-029","AZS-270226-028","AZS-270226-027","AZS-270226-027","AZS-270226-027","AZS-270226-027","AZS-270226-027","AZS-270226-027","AZS-270226-026","AZS-270226-026","AZS-270226-025","AZS-270226-025","AZS-270226-025","AZS-270226-024","AZS-270226-024","AZS-270226-024","AZS-270226-024","AZS-270226-023","AZS-270226-023","AZS-270226-023","AZS-270226-023","AZS-270226-023","AZS-270226-022","AZS-270226-021","AZS-270226-021","AZS-270226-021","AZS-270226-021","AZS-270226-020","AZS-270226-020","AZS-270226-019","AZS-270226-018","AZS-270226-017","AZS-270226-016","AZS-270226-015","AZS-270226-015","AZS-270226-015","AZS-270226-014","AZS-270226-013","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-011","AZS-270226-011","AZS-270226-011","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["paid","changed","paid","paid","pending","changed","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","paid","paid","paid","paid","paid","changed","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed"],"deleted_count":40,"paid_count":29,"unpaid_count":1,"unique_order_numbers":30} 
[2026-02-28 00:07:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5144,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":25127},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":25128},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25129},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25130},{"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25131},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":25132},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25133}],"validated_items":[{"id":25127,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":25128,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":25129,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25130,"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":25131,"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":25132,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":25133,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-28 00:07:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5144,"items_count":7} 
[2026-02-28 00:07:54] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25127,"menu_item_id":411,"quantity":2},{"id":25128,"menu_item_id":106,"quantity":1},{"id":25129,"menu_item_id":396,"quantity":2},{"id":25130,"menu_item_id":422,"quantity":1},{"id":25131,"menu_item_id":416,"quantity":3},{"id":25132,"menu_item_id":29,"quantity":1},{"id":25133,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 00:07:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5144,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["411|2|","106|1|","396|2|","422|1|","416|3|","29|1|","5|1|"],"new_items_map_keys":["411|2|","106|1|","396|2|","422|1|","416|3|","29|1|","5|1|"]} 
[2026-02-28 00:07:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5144,"order_number":"AZS-270226-027"} 
[2026-02-28 00:07:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5144,"order_number":"AZS-270226-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 00:07:54"} 
[2026-02-28 00:08:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5144,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":25127},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":25128},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25129},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25130},{"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25131},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":25132},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":25133}],"validated_items":[{"id":25127,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":25128,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":25129,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25130,"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":25131,"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":25132,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":25133,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-28 00:08:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5144,"items_count":7} 
[2026-02-28 00:08:34] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25127,"menu_item_id":411,"quantity":2},{"id":25128,"menu_item_id":106,"quantity":1},{"id":25129,"menu_item_id":396,"quantity":2},{"id":25130,"menu_item_id":422,"quantity":1},{"id":25131,"menu_item_id":416,"quantity":3},{"id":25132,"menu_item_id":29,"quantity":1},{"id":25133,"menu_item_id":5,"quantity":2}]} 
[2026-02-28 00:08:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5144,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["411|2|","106|1|","396|2|","422|1|","416|3|","29|1|","5|1|"],"new_items_map_keys":["411|2|","106|1|","396|2|","422|1|","416|3|","29|1|","5|2|"]} 
[2026-02-28 00:08:34] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5144,"order_number":"AZS-270226-027"} 
[2026-02-28 00:08:34] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270226-027","replaced_order_id":5144} 
[2026-02-28 00:08:34] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5145,"items_count":7,"items":[{"menu_item_id":411,"quantity":2,"price":599.0},{"menu_item_id":106,"quantity":1,"price":4199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":422,"quantity":1,"price":70.0},{"menu_item_id":416,"quantity":3,"price":70.0},{"menu_item_id":29,"quantity":1,"price":250.0},{"menu_item_id":5,"quantity":2,"price":170.0}]} 
[2026-02-28 00:08:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5145,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":599.0,"discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5145}} 
[2026-02-28 00:08:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5145,"item_index":0,"menu_item_id":411} 
[2026-02-28 00:08:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5145,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":4199.0,"discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5145}} 
[2026-02-28 00:08:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5145,"item_index":1,"menu_item_id":106} 
[2026-02-28 00:08:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5145,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5145}} 
[2026-02-28 00:08:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5145,"item_index":2,"menu_item_id":396} 
[2026-02-28 00:08:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5145,"item_index":3,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":1,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5145}} 
[2026-02-28 00:08:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5145,"item_index":3,"menu_item_id":422} 
[2026-02-28 00:08:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5145,"item_index":4,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":3,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5145}} 
[2026-02-28 00:08:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5145,"item_index":4,"menu_item_id":416} 
[2026-02-28 00:08:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5145,"item_index":5,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":250.0,"discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5145}} 
[2026-02-28 00:08:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5145,"item_index":5,"menu_item_id":29} 
[2026-02-28 00:08:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5145,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5145}} 
[2026-02-28 00:08:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5145,"item_index":6,"menu_item_id":5} 
[2026-02-28 00:08:34] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5144,"new_order_id":5145,"order_number":"AZS-270226-027"} 
[2026-02-28 00:08:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5145,"item_index":0,"item_id":25127} 
[2026-02-28 00:08:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5145,"item_index":1,"item_id":25128} 
[2026-02-28 00:08:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5145,"item_index":2,"item_id":25129} 
[2026-02-28 00:08:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5145,"item_index":3,"item_id":25130} 
[2026-02-28 00:08:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5145,"item_index":4,"item_id":25131} 
[2026-02-28 00:08:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5145,"item_index":5,"item_id":25132} 
[2026-02-28 00:08:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5145,"item_index":6,"item_id":25133} 
[2026-02-28 00:08:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5145,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":25127},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":25128},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25129},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25130},{"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25131},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":25132},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":25133}],"validated_items":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-28 00:08:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5145,"items_count":7} 
[2026-02-28 00:08:40] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[25134,25135,25136,25137,25138,25139,25140],"items":[{"id":null,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":422,"quantity":1},{"id":null,"menu_item_id":416,"quantity":3},{"id":null,"menu_item_id":29,"quantity":1},{"id":null,"menu_item_id":5,"quantity":2}]} 
[2026-02-28 00:08:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5145,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["411|2|","106|1|","396|2|","422|1|","416|3|","29|1|","5|2|"],"new_items_map_keys":["411|2|","106|1|","396|2|","422|1|","416|3|","29|1|","5|2|"]} 
[2026-02-28 00:08:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5145,"order_number":"AZS-270226-027"} 
[2026-02-28 00:08:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5145,"order_number":"AZS-270226-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 00:08:40"} 
[2026-02-28 00:08:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5145,"item_index":0,"item_id":25127} 
[2026-02-28 00:08:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5145,"item_index":1,"item_id":25128} 
[2026-02-28 00:08:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5145,"item_index":2,"item_id":25129} 
[2026-02-28 00:08:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5145,"item_index":3,"item_id":25130} 
[2026-02-28 00:08:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5145,"item_index":4,"item_id":25131} 
[2026-02-28 00:08:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5145,"item_index":5,"item_id":25132} 
[2026-02-28 00:08:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5145,"item_index":6,"item_id":25133} 
[2026-02-28 00:08:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5145,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":25127},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":25128},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25129},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25130},{"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25131},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":25132},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":25133}],"validated_items":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-28 00:08:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5145,"items_count":7} 
[2026-02-28 00:08:41] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[25134,25135,25136,25137,25138,25139,25140],"items":[{"id":null,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":422,"quantity":1},{"id":null,"menu_item_id":416,"quantity":3},{"id":null,"menu_item_id":29,"quantity":1},{"id":null,"menu_item_id":5,"quantity":2}]} 
[2026-02-28 00:08:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5145,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["411|2|","106|1|","396|2|","422|1|","416|3|","29|1|","5|2|"],"new_items_map_keys":["411|2|","106|1|","396|2|","422|1|","416|3|","29|1|","5|2|"]} 
[2026-02-28 00:08:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5145,"order_number":"AZS-270226-027"} 
[2026-02-28 00:08:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5145,"order_number":"AZS-270226-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 00:08:41"} 
[2026-02-28 00:13:21] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5145,"order_number":"AZS-270226-027","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6788,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 00:13:21"} 
[2026-02-28 00:13:21] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5145,"order_number":"AZS-270226-027","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6788,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 00:13:21"} 
[2026-02-28 00:13:21] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5145,"order_number":"AZS-270226-027","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6788,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 00:13:21"} 
[2026-02-28 00:13:21] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5145,"order_number":"AZS-270226-027","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6788,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 00:13:21"} 
[2026-02-28 00:13:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5145,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":25134},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":25135},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25136},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25137},{"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25138},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":25139},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":25140}],"validated_items":[{"id":25134,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":25135,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":25136,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25137,"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":25138,"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":25139,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":25140,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-28 00:13:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5145,"items_count":7} 
[2026-02-28 00:13:21] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25134,"menu_item_id":411,"quantity":2},{"id":25135,"menu_item_id":106,"quantity":1},{"id":25136,"menu_item_id":396,"quantity":2},{"id":25137,"menu_item_id":422,"quantity":1},{"id":25138,"menu_item_id":416,"quantity":3},{"id":25139,"menu_item_id":29,"quantity":1},{"id":25140,"menu_item_id":5,"quantity":2}]} 
[2026-02-28 00:13:21] local.INFO: PosOrderController::update - Item changes check {"order_id":5145,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["411|2|","106|1|","396|2|","422|1|","416|3|","29|1|","5|2|"],"new_items_map_keys":["411|2|","106|1|","396|2|","422|1|","416|3|","29|1|","5|2|"]} 
[2026-02-28 00:13:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5145,"order_number":"AZS-270226-027"} 
[2026-02-28 00:13:21] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5145,"order_number":"AZS-270226-027","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":6788,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-28 00:13:21","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 00:13:21"} 
[2026-02-28 00:13:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5145,"order_number":"AZS-270226-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 00:13:21"} 
[2026-02-28 00:13:21] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5145,"order_number":"AZS-270226-027","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"6788.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-28 00:13:21","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6788,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"6788.00","database_verification_match":true,"timestamp":"2026-02-28 00:13:21"} 
[2026-02-28 00:13:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T12:13:26.289Z","date_to":"2026-02-28T00:13:26.289Z","per_page":"100"} 
[2026-02-28 00:13:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":71,"count":71,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270226-030","AZS-270226-030","AZS-270226-029","AZS-270226-028","AZS-270226-027","AZS-270226-027","AZS-270226-027","AZS-270226-027","AZS-270226-027","AZS-270226-027","AZS-270226-027","AZS-270226-026","AZS-270226-026","AZS-270226-025","AZS-270226-025","AZS-270226-025","AZS-270226-024","AZS-270226-024","AZS-270226-024","AZS-270226-024","AZS-270226-023","AZS-270226-023","AZS-270226-023","AZS-270226-023","AZS-270226-023","AZS-270226-022","AZS-270226-021","AZS-270226-021","AZS-270226-021","AZS-270226-021","AZS-270226-020","AZS-270226-020","AZS-270226-019","AZS-270226-018","AZS-270226-017","AZS-270226-016","AZS-270226-015","AZS-270226-015","AZS-270226-015","AZS-270226-014","AZS-270226-013","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-011","AZS-270226-011","AZS-270226-011","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["paid","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","paid","paid","paid","paid","paid","changed","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed"],"deleted_count":41,"paid_count":30,"unpaid_count":0,"unique_order_numbers":30} 
[2026-02-28 00:13:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-27T12:13:26.308Z","date_to":"2026-02-28T00:13:26.308Z","per_page":"1000"} 
[2026-02-28 00:13:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":71,"count":71,"current_page":1,"last_page":1,"per_page":1000,"order_branch_ids":[1],"order_numbers":["AZS-270226-030","AZS-270226-030","AZS-270226-029","AZS-270226-028","AZS-270226-027","AZS-270226-027","AZS-270226-027","AZS-270226-027","AZS-270226-027","AZS-270226-027","AZS-270226-027","AZS-270226-026","AZS-270226-026","AZS-270226-025","AZS-270226-025","AZS-270226-025","AZS-270226-024","AZS-270226-024","AZS-270226-024","AZS-270226-024","AZS-270226-023","AZS-270226-023","AZS-270226-023","AZS-270226-023","AZS-270226-023","AZS-270226-022","AZS-270226-021","AZS-270226-021","AZS-270226-021","AZS-270226-021","AZS-270226-020","AZS-270226-020","AZS-270226-019","AZS-270226-018","AZS-270226-017","AZS-270226-016","AZS-270226-015","AZS-270226-015","AZS-270226-015","AZS-270226-014","AZS-270226-013","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-012","AZS-270226-011","AZS-270226-011","AZS-270226-011","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-008","AZS-270226-007","AZS-270226-007","AZS-270226-007","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-270226-001","AZS-270226-001","AZS-270226-001"],"order_statuses":["paid","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","paid","paid","paid","paid","paid","changed","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed"],"deleted_count":41,"paid_count":30,"unpaid_count":0,"unique_order_numbers":30} 
[2026-02-28 13:39:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5148,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":25143}],"validated_items":[{"id":25143,"menu_item_id":97,"quantity":2,"price":2299,"discount_percent":0,"notes":null}]} 
[2026-02-28 13:39:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5148,"items_count":1} 
[2026-02-28 13:39:28] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25143,"menu_item_id":97,"quantity":2}]} 
[2026-02-28 13:39:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5148,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["97|2|"],"new_items_map_keys":["97|2|"]} 
[2026-02-28 13:39:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5148,"order_number":"AZS-280226-003"} 
[2026-02-28 13:39:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5148,"order_number":"AZS-280226-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-02-28 13:39:28"} 
[2026-02-28 13:42:02] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5148,"order_number":"AZS-280226-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4600,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 13:42:02"} 
[2026-02-28 13:42:02] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5148,"order_number":"AZS-280226-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 13:42:02"} 
[2026-02-28 13:42:02] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5148,"order_number":"AZS-280226-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4600,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 13:42:02"} 
[2026-02-28 13:42:02] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5148,"order_number":"AZS-280226-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4600,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 13:42:02"} 
[2026-02-28 13:42:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5148,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":25143}],"validated_items":[{"id":25143,"menu_item_id":97,"quantity":2,"price":2299,"discount_percent":0,"notes":null}]} 
[2026-02-28 13:42:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5148,"items_count":1} 
[2026-02-28 13:42:02] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25143,"menu_item_id":97,"quantity":2}]} 
[2026-02-28 13:42:02] local.INFO: PosOrderController::update - Item changes check {"order_id":5148,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["97|2|"],"new_items_map_keys":["97|2|"]} 
[2026-02-28 13:42:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5148,"order_number":"AZS-280226-003"} 
[2026-02-28 13:42:02] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5148,"order_number":"AZS-280226-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4600,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-28 13:42:02","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 13:42:02"} 
[2026-02-28 13:42:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5148,"order_number":"AZS-280226-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 13:42:02"} 
[2026-02-28 13:42:02] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5148,"order_number":"AZS-280226-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4600.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-28 13:42:02","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4600.00","database_verification_match":true,"timestamp":"2026-02-28 13:42:02"} 
[2026-02-28 14:02:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5146,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":25141},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":25141,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-28 14:02:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5146,"items_count":2} 
[2026-02-28 14:02:41] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25141,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-02-28 14:02:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5146,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","6|2|"]} 
[2026-02-28 14:02:41] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5146,"order_number":"AZS-280226-001"} 
[2026-02-28 14:02:41] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-001","replaced_order_id":5146} 
[2026-02-28 14:02:41] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5151,"items_count":2,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-02-28 14:02:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5151,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5151}} 
[2026-02-28 14:02:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5151,"item_index":0,"menu_item_id":417} 
[2026-02-28 14:02:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5151,"item_index":1,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5151}} 
[2026-02-28 14:02:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5151,"item_index":1,"menu_item_id":6} 
[2026-02-28 14:02:41] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5146,"new_order_id":5151,"order_number":"AZS-280226-001"} 
[2026-02-28 14:14:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5149,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":25144},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":25145},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":25146},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null,"id":25147},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":25148},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":25149},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25150},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25144,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":25145,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":25146,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":25147,"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"id":25148,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":25149,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":25150,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 14:14:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5149,"items_count":8} 
[2026-02-28 14:14:55] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25144,"menu_item_id":96,"quantity":1},{"id":25145,"menu_item_id":65,"quantity":1},{"id":25146,"menu_item_id":396,"quantity":1},{"id":25147,"menu_item_id":55,"quantity":2},{"id":25148,"menu_item_id":61,"quantity":1},{"id":25149,"menu_item_id":56,"quantity":1},{"id":25150,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 14:14:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5149,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["96|1|","65|1|","396|1|","55|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["96|1|","65|1|","396|1|","55|2|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-02-28 14:14:55] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5149,"order_number":"AZS-280226-004"} 
[2026-02-28 14:14:55] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-004","replaced_order_id":5149} 
[2026-02-28 14:14:55] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5152,"items_count":8,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-28 14:14:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5152,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5152}} 
[2026-02-28 14:14:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5152,"item_index":0,"menu_item_id":96} 
[2026-02-28 14:14:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5152,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5152}} 
[2026-02-28 14:14:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5152,"item_index":1,"menu_item_id":65} 
[2026-02-28 14:14:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5152,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5152}} 
[2026-02-28 14:14:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5152,"item_index":2,"menu_item_id":396} 
[2026-02-28 14:14:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5152,"item_index":3,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5152}} 
[2026-02-28 14:14:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5152,"item_index":3,"menu_item_id":55} 
[2026-02-28 14:14:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5152,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5152}} 
[2026-02-28 14:14:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5152,"item_index":4,"menu_item_id":61} 
[2026-02-28 14:14:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5152,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5152}} 
[2026-02-28 14:14:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5152,"item_index":5,"menu_item_id":56} 
[2026-02-28 14:14:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5152,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5152}} 
[2026-02-28 14:14:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5152,"item_index":6,"menu_item_id":5} 
[2026-02-28 14:14:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5152,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5152}} 
[2026-02-28 14:14:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5152,"item_index":7,"menu_item_id":3} 
[2026-02-28 14:14:55] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5149,"new_order_id":5152,"order_number":"AZS-280226-004"} 
[2026-02-28 14:21:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5150,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null,"id":25151},{"menu_item_id":64,"quantity":2,"discount_percent":0,"notes":null,"id":25152},{"menu_item_id":52,"quantity":5,"discount_percent":0,"notes":null,"id":25153},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":25154},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25155},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25151,"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null},{"id":25152,"menu_item_id":64,"quantity":2,"discount_percent":0,"notes":null},{"id":25153,"menu_item_id":52,"quantity":5,"discount_percent":0,"notes":null},{"id":25154,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":25155,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 14:21:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5150,"items_count":6} 
[2026-02-28 14:21:17] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25151,"menu_item_id":103,"quantity":1},{"id":25152,"menu_item_id":64,"quantity":2},{"id":25153,"menu_item_id":52,"quantity":5},{"id":25154,"menu_item_id":61,"quantity":2},{"id":25155,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 14:21:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5150,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["103|1|","64|2|","52|5|","61|2|","5|1|"],"new_items_map_keys":["103|1|","64|2|","52|5|","61|2|","5|1|","3|1|"]} 
[2026-02-28 14:21:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5150,"order_number":"AZS-280226-005"} 
[2026-02-28 14:21:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-005","replaced_order_id":5150} 
[2026-02-28 14:21:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5154,"items_count":6,"items":[{"menu_item_id":103,"quantity":1,"price":"2599.00"},{"menu_item_id":64,"quantity":2,"price":"999.00"},{"menu_item_id":52,"quantity":5,"price":"70.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-28 14:21:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5154,"item_index":0,"item_data":{"menu_item_id":103,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Full","quantity":1,"price":"2599.00","discount_percent":0.0,"discount_amount":0.0,"total":2599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5154}} 
[2026-02-28 14:21:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5154,"item_index":0,"menu_item_id":103} 
[2026-02-28 14:21:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5154,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":2,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":1998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5154}} 
[2026-02-28 14:21:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5154,"item_index":1,"menu_item_id":64} 
[2026-02-28 14:21:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5154,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":5,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":350.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5154}} 
[2026-02-28 14:21:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5154,"item_index":2,"menu_item_id":52} 
[2026-02-28 14:21:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5154,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5154}} 
[2026-02-28 14:21:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5154,"item_index":3,"menu_item_id":61} 
[2026-02-28 14:21:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5154,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5154}} 
[2026-02-28 14:21:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5154,"item_index":4,"menu_item_id":5} 
[2026-02-28 14:21:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5154,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5154}} 
[2026-02-28 14:21:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5154,"item_index":5,"menu_item_id":3} 
[2026-02-28 14:21:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5150,"new_order_id":5154,"order_number":"AZS-280226-005"} 
[2026-02-28 14:29:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5154,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null,"id":25172},{"menu_item_id":64,"quantity":2,"discount_percent":0,"notes":null,"id":25173},{"menu_item_id":52,"quantity":9,"discount_percent":0,"notes":null,"id":25174},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":25175},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25176},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":25177}],"validated_items":[{"id":25172,"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null},{"id":25173,"menu_item_id":64,"quantity":2,"discount_percent":0,"notes":null},{"id":25174,"menu_item_id":52,"quantity":9,"discount_percent":0,"notes":null},{"id":25175,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":25176,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":25177,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 14:29:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5154,"items_count":6} 
[2026-02-28 14:29:12] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25172,"menu_item_id":103,"quantity":1},{"id":25173,"menu_item_id":64,"quantity":2},{"id":25174,"menu_item_id":52,"quantity":9},{"id":25175,"menu_item_id":61,"quantity":2},{"id":25176,"menu_item_id":5,"quantity":1},{"id":25177,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 14:29:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5154,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["103|1|","64|2|","52|5|","61|2|","5|1|","3|1|"],"new_items_map_keys":["103|1|","64|2|","52|9|","61|2|","5|1|","3|1|"]} 
[2026-02-28 14:29:12] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5154,"order_number":"AZS-280226-005"} 
[2026-02-28 14:29:12] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-005","replaced_order_id":5154} 
[2026-02-28 14:29:12] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5155,"items_count":6,"items":[{"menu_item_id":103,"quantity":1,"price":"2599.00"},{"menu_item_id":64,"quantity":2,"price":"999.00"},{"menu_item_id":52,"quantity":9,"price":"70.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-28 14:29:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5155,"item_index":0,"item_data":{"menu_item_id":103,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Full","quantity":1,"price":"2599.00","discount_percent":0.0,"discount_amount":0.0,"total":2599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5155}} 
[2026-02-28 14:29:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5155,"item_index":0,"menu_item_id":103} 
[2026-02-28 14:29:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5155,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":2,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":1998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5155}} 
[2026-02-28 14:29:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5155,"item_index":1,"menu_item_id":64} 
[2026-02-28 14:29:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5155,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":9,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":630.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5155}} 
[2026-02-28 14:29:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5155,"item_index":2,"menu_item_id":52} 
[2026-02-28 14:29:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5155,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5155}} 
[2026-02-28 14:29:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5155,"item_index":3,"menu_item_id":61} 
[2026-02-28 14:29:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5155,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5155}} 
[2026-02-28 14:29:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5155,"item_index":4,"menu_item_id":5} 
[2026-02-28 14:29:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5155,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5155}} 
[2026-02-28 14:29:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5155,"item_index":5,"menu_item_id":3} 
[2026-02-28 14:29:12] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5154,"new_order_id":5155,"order_number":"AZS-280226-005"} 
[2026-02-28 14:34:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5151,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":25156},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25157}],"validated_items":[{"id":25156,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":25157,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-28 14:34:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5151,"items_count":2} 
[2026-02-28 14:34:58] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25156,"menu_item_id":417,"quantity":1},{"id":25157,"menu_item_id":6,"quantity":2}]} 
[2026-02-28 14:34:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5151,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["417|1|","6|2|"],"new_items_map_keys":["417|1|","6|2|"]} 
[2026-02-28 14:34:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5151,"order_number":"AZS-280226-001"} 
[2026-02-28 14:34:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5151,"order_number":"AZS-280226-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 14:34:58"} 
[2026-02-28 14:39:19] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5151,"order_number":"AZS-280226-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":900,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 14:39:19"} 
[2026-02-28 14:39:19] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5151,"order_number":"AZS-280226-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":900,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 14:39:19"} 
[2026-02-28 14:39:19] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5151,"order_number":"AZS-280226-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":900,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 14:39:19"} 
[2026-02-28 14:39:19] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5151,"order_number":"AZS-280226-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":900,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 14:39:19"} 
[2026-02-28 14:39:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5151,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":25156},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25157}],"validated_items":[{"id":25156,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":25157,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-28 14:39:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5151,"items_count":2} 
[2026-02-28 14:39:19] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25156,"menu_item_id":417,"quantity":1},{"id":25157,"menu_item_id":6,"quantity":2}]} 
[2026-02-28 14:39:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5151,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["417|1|","6|2|"],"new_items_map_keys":["417|1|","6|2|"]} 
[2026-02-28 14:39:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5151,"order_number":"AZS-280226-001"} 
[2026-02-28 14:39:19] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5151,"order_number":"AZS-280226-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":900,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-28 14:39:19","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 14:39:19"} 
[2026-02-28 14:39:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5151,"order_number":"AZS-280226-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 14:39:19"} 
[2026-02-28 14:39:19] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5151,"order_number":"AZS-280226-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"900.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-28 14:39:19","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":900,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"900.00","database_verification_match":true,"timestamp":"2026-02-28 14:39:19"} 
[2026-02-28 14:39:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5155,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null,"id":25178},{"menu_item_id":64,"quantity":2,"discount_percent":0,"notes":null,"id":25179},{"menu_item_id":52,"quantity":11,"discount_percent":0,"notes":null,"id":25180},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":25181},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25182},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":25183}],"validated_items":[{"id":25178,"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null},{"id":25179,"menu_item_id":64,"quantity":2,"discount_percent":0,"notes":null},{"id":25180,"menu_item_id":52,"quantity":11,"discount_percent":0,"notes":null},{"id":25181,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":25182,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":25183,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 14:39:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5155,"items_count":6} 
[2026-02-28 14:39:31] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25178,"menu_item_id":103,"quantity":1},{"id":25179,"menu_item_id":64,"quantity":2},{"id":25180,"menu_item_id":52,"quantity":11},{"id":25181,"menu_item_id":61,"quantity":2},{"id":25182,"menu_item_id":5,"quantity":1},{"id":25183,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 14:39:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5155,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["103|1|","64|2|","52|9|","61|2|","5|1|","3|1|"],"new_items_map_keys":["103|1|","64|2|","52|11|","61|2|","5|1|","3|1|"]} 
[2026-02-28 14:39:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5155,"order_number":"AZS-280226-005"} 
[2026-02-28 14:39:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-005","replaced_order_id":5155} 
[2026-02-28 14:39:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5156,"items_count":6,"items":[{"menu_item_id":103,"quantity":1,"price":"2599.00"},{"menu_item_id":64,"quantity":2,"price":"999.00"},{"menu_item_id":52,"quantity":11,"price":"70.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-28 14:39:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5156,"item_index":0,"item_data":{"menu_item_id":103,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Full","quantity":1,"price":"2599.00","discount_percent":0.0,"discount_amount":0.0,"total":2599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5156}} 
[2026-02-28 14:39:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5156,"item_index":0,"menu_item_id":103} 
[2026-02-28 14:39:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5156,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":2,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":1998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5156}} 
[2026-02-28 14:39:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5156,"item_index":1,"menu_item_id":64} 
[2026-02-28 14:39:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5156,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":11,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":770.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5156}} 
[2026-02-28 14:39:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5156,"item_index":2,"menu_item_id":52} 
[2026-02-28 14:39:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5156,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5156}} 
[2026-02-28 14:39:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5156,"item_index":3,"menu_item_id":61} 
[2026-02-28 14:39:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5156,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5156}} 
[2026-02-28 14:39:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5156,"item_index":4,"menu_item_id":5} 
[2026-02-28 14:39:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5156,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5156}} 
[2026-02-28 14:39:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5156,"item_index":5,"menu_item_id":3} 
[2026-02-28 14:39:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5155,"new_order_id":5156,"order_number":"AZS-280226-005"} 
[2026-02-28 14:54:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5152,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25158},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":25159},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25160},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":25161},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25162},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25163},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25164},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25165}],"validated_items":[{"id":25158,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25159,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":25160,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":25161,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":25162,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25163,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25164,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25165,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-28 14:54:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5152,"items_count":8} 
[2026-02-28 14:54:19] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25158,"menu_item_id":96,"quantity":1},{"id":25159,"menu_item_id":65,"quantity":1},{"id":25160,"menu_item_id":396,"quantity":1},{"id":25161,"menu_item_id":55,"quantity":2},{"id":25162,"menu_item_id":61,"quantity":1},{"id":25163,"menu_item_id":56,"quantity":1},{"id":25164,"menu_item_id":5,"quantity":1},{"id":25165,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 14:54:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5152,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["96|1|","65|1|","396|1|","55|2|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["96|1|","65|1|","396|1|","55|2|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-02-28 14:54:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5152,"order_number":"AZS-280226-004"} 
[2026-02-28 14:54:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5152,"order_number":"AZS-280226-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 14:54:19"} 
[2026-02-28 14:54:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":5153,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":25166},{"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null,"id":25167},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":25168},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":25169},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null,"id":25171}],"validated_items":[{"id":25166,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":25167,"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null},{"id":25168,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":25169,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":25171,"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 14:54:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5153,"items_count":5} 
[2026-02-28 14:54:45] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[25170],"items":[{"id":25166,"menu_item_id":98,"quantity":1},{"id":25167,"menu_item_id":55,"quantity":1},{"id":25168,"menu_item_id":396,"quantity":1},{"id":25169,"menu_item_id":61,"quantity":1},{"id":25171,"menu_item_id":4,"quantity":1}]} 
[2026-02-28 14:54:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5153,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["98|1|","55|1|","396|1|","61|1|","56|1|","4|1|"],"new_items_map_keys":["98|1|","55|1|","396|1|","61|1|","4|1|"]} 
[2026-02-28 14:54:45] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5153,"order_number":"AZS-280226-006"} 
[2026-02-28 14:54:45] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-006","replaced_order_id":5153} 
[2026-02-28 14:54:45] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5158,"items_count":5,"items":[{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":55,"quantity":1,"price":"159.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-02-28 14:54:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5158,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5158}} 
[2026-02-28 14:54:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5158,"item_index":0,"menu_item_id":98} 
[2026-02-28 14:54:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5158,"item_index":1,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5158}} 
[2026-02-28 14:54:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5158,"item_index":1,"menu_item_id":55} 
[2026-02-28 14:54:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5158,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5158}} 
[2026-02-28 14:54:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5158,"item_index":2,"menu_item_id":396} 
[2026-02-28 14:54:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5158,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5158}} 
[2026-02-28 14:54:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5158,"item_index":3,"menu_item_id":61} 
[2026-02-28 14:54:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5158,"item_index":4,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5158}} 
[2026-02-28 14:54:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5158,"item_index":4,"menu_item_id":4} 
[2026-02-28 14:54:45] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5153,"new_order_id":5158,"order_number":"AZS-280226-006"} 
[2026-02-28 14:56:45] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5152,"order_number":"AZS-280226-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 14:56:45"} 
[2026-02-28 14:56:45] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5152,"order_number":"AZS-280226-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 14:56:45"} 
[2026-02-28 14:56:45] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5152,"order_number":"AZS-280226-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 14:56:45"} 
[2026-02-28 14:56:45] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5152,"order_number":"AZS-280226-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 14:56:45"} 
[2026-02-28 14:56:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5152,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25158},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":25159},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25160},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":25161},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25162},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25163},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25164},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25165}],"validated_items":[{"id":25158,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25159,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":25160,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":25161,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":25162,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25163,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25164,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25165,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-28 14:56:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5152,"items_count":8} 
[2026-02-28 14:56:45] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25158,"menu_item_id":96,"quantity":1},{"id":25159,"menu_item_id":65,"quantity":1},{"id":25160,"menu_item_id":396,"quantity":1},{"id":25161,"menu_item_id":55,"quantity":2},{"id":25162,"menu_item_id":61,"quantity":1},{"id":25163,"menu_item_id":56,"quantity":1},{"id":25164,"menu_item_id":5,"quantity":1},{"id":25165,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 14:56:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5152,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["96|1|","65|1|","396|1|","55|2|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["96|1|","65|1|","396|1|","55|2|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-02-28 14:56:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5152,"order_number":"AZS-280226-004"} 
[2026-02-28 14:56:45] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5152,"order_number":"AZS-280226-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4000,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-28 14:56:45","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 14:56:45"} 
[2026-02-28 14:56:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5152,"order_number":"AZS-280226-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 14:56:45"} 
[2026-02-28 14:56:45] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5152,"order_number":"AZS-280226-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4000.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-28 14:56:45","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4000.00","database_verification_match":true,"timestamp":"2026-02-28 14:56:45"} 
[2026-02-28 14:57:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5156,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null,"id":25184},{"menu_item_id":64,"quantity":2,"discount_percent":0,"notes":null,"id":25185},{"menu_item_id":52,"quantity":11,"discount_percent":0,"notes":null,"id":25186},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":25187},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25188},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":25189},{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":25184,"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null},{"id":25185,"menu_item_id":64,"quantity":2,"discount_percent":0,"notes":null},{"id":25186,"menu_item_id":52,"quantity":11,"discount_percent":0,"notes":null},{"id":25187,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":25188,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":25189,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-02-28 14:57:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5156,"items_count":7} 
[2026-02-28 14:57:39] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25184,"menu_item_id":103,"quantity":1},{"id":25185,"menu_item_id":64,"quantity":2},{"id":25186,"menu_item_id":52,"quantity":11},{"id":25187,"menu_item_id":61,"quantity":2},{"id":25188,"menu_item_id":5,"quantity":1},{"id":25189,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":6,"quantity":3}]} 
[2026-02-28 14:57:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5156,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["103|1|","64|2|","52|11|","61|2|","5|1|","3|1|"],"new_items_map_keys":["103|1|","64|2|","52|11|","61|2|","5|1|","3|1|","6|3|"]} 
[2026-02-28 14:57:39] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5156,"order_number":"AZS-280226-005"} 
[2026-02-28 14:57:39] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-005","replaced_order_id":5156} 
[2026-02-28 14:57:39] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5159,"items_count":7,"items":[{"menu_item_id":103,"quantity":1,"price":"2599.00"},{"menu_item_id":64,"quantity":2,"price":"999.00"},{"menu_item_id":52,"quantity":11,"price":"70.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":6,"quantity":3,"price":"199.00"}]} 
[2026-02-28 14:57:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5159,"item_index":0,"item_data":{"menu_item_id":103,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Full","quantity":1,"price":"2599.00","discount_percent":0.0,"discount_amount":0.0,"total":2599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5159}} 
[2026-02-28 14:57:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5159,"item_index":0,"menu_item_id":103} 
[2026-02-28 14:57:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5159,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":2,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":1998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5159}} 
[2026-02-28 14:57:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5159,"item_index":1,"menu_item_id":64} 
[2026-02-28 14:57:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5159,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":11,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":770.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5159}} 
[2026-02-28 14:57:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5159,"item_index":2,"menu_item_id":52} 
[2026-02-28 14:57:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5159,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5159}} 
[2026-02-28 14:57:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5159,"item_index":3,"menu_item_id":61} 
[2026-02-28 14:57:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5159,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5159}} 
[2026-02-28 14:57:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5159,"item_index":4,"menu_item_id":5} 
[2026-02-28 14:57:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5159,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5159}} 
[2026-02-28 14:57:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5159,"item_index":5,"menu_item_id":3} 
[2026-02-28 14:57:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5159,"item_index":6,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5159}} 
[2026-02-28 14:57:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5159,"item_index":6,"menu_item_id":6} 
[2026-02-28 14:57:39] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5156,"new_order_id":5159,"order_number":"AZS-280226-005"} 
[2026-02-28 14:57:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5158,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25196},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":25197},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25198},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25199},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":25200}],"validated_items":[{"id":25196,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25197,"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":25198,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":25199,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25200,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-28 14:57:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5158,"items_count":5} 
[2026-02-28 14:57:59] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25196,"menu_item_id":98,"quantity":1},{"id":25197,"menu_item_id":55,"quantity":1},{"id":25198,"menu_item_id":396,"quantity":1},{"id":25199,"menu_item_id":61,"quantity":1},{"id":25200,"menu_item_id":4,"quantity":1}]} 
[2026-02-28 14:57:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5158,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["98|1|","55|1|","396|1|","61|1|","4|1|"],"new_items_map_keys":["98|1|","55|1|","396|1|","61|1|","4|1|"]} 
[2026-02-28 14:57:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5158,"order_number":"AZS-280226-006"} 
[2026-02-28 14:57:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5158,"order_number":"AZS-280226-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 14:57:59"} 
[2026-02-28 15:09:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5157,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":25190},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25191},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":25192},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":25193},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":25194},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25195},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25190,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":25191,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":25192,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":25193,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":25194,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":25195,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 15:09:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5157,"items_count":7} 
[2026-02-28 15:09:44] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25190,"menu_item_id":97,"quantity":1},{"id":25191,"menu_item_id":396,"quantity":2},{"id":25192,"menu_item_id":50,"quantity":2},{"id":25193,"menu_item_id":61,"quantity":1},{"id":25194,"menu_item_id":56,"quantity":1},{"id":25195,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 15:09:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5157,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["97|1|","396|2|","50|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["97|1|","396|2|","50|2|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-02-28 15:09:44] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5157,"order_number":"AZS-280226-007"} 
[2026-02-28 15:09:44] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-007","replaced_order_id":5157} 
[2026-02-28 15:09:44] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5160,"items_count":7,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-28 15:09:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5160,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5160}} 
[2026-02-28 15:09:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5160,"item_index":0,"menu_item_id":97} 
[2026-02-28 15:09:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5160,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5160}} 
[2026-02-28 15:09:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5160,"item_index":1,"menu_item_id":396} 
[2026-02-28 15:09:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5160,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5160}} 
[2026-02-28 15:09:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5160,"item_index":2,"menu_item_id":50} 
[2026-02-28 15:09:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5160,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5160}} 
[2026-02-28 15:09:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5160,"item_index":3,"menu_item_id":61} 
[2026-02-28 15:09:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5160,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5160}} 
[2026-02-28 15:09:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5160,"item_index":4,"menu_item_id":56} 
[2026-02-28 15:09:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5160,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5160}} 
[2026-02-28 15:09:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5160,"item_index":5,"menu_item_id":5} 
[2026-02-28 15:09:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5160,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5160}} 
[2026-02-28 15:09:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5160,"item_index":6,"menu_item_id":3} 
[2026-02-28 15:09:44] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5157,"new_order_id":5160,"order_number":"AZS-280226-007"} 
[2026-02-28 15:29:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":5160,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":25208},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25209},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":25210},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":25211},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":25212},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":25214}],"validated_items":[{"id":25208,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":25209,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":25210,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":25211,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":25212,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":25214,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 15:29:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5160,"items_count":6} 
[2026-02-28 15:29:30] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[25213],"items":[{"id":25208,"menu_item_id":97,"quantity":1},{"id":25209,"menu_item_id":396,"quantity":2},{"id":25210,"menu_item_id":50,"quantity":2},{"id":25211,"menu_item_id":61,"quantity":1},{"id":25212,"menu_item_id":56,"quantity":1},{"id":25214,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 15:29:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5160,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["97|1|","396|2|","50|2|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["97|1|","396|2|","50|2|","61|1|","56|1|","3|1|"]} 
[2026-02-28 15:29:30] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5160,"order_number":"AZS-280226-007"} 
[2026-02-28 15:29:30] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-007","replaced_order_id":5160} 
[2026-02-28 15:29:30] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5161,"items_count":6,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-28 15:29:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5161,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5161}} 
[2026-02-28 15:29:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5161,"item_index":0,"menu_item_id":97} 
[2026-02-28 15:29:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5161,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5161}} 
[2026-02-28 15:29:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5161,"item_index":1,"menu_item_id":396} 
[2026-02-28 15:29:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5161,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5161}} 
[2026-02-28 15:29:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5161,"item_index":2,"menu_item_id":50} 
[2026-02-28 15:29:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5161,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5161}} 
[2026-02-28 15:29:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5161,"item_index":3,"menu_item_id":61} 
[2026-02-28 15:29:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5161,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5161}} 
[2026-02-28 15:29:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5161,"item_index":4,"menu_item_id":56} 
[2026-02-28 15:29:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5161,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5161}} 
[2026-02-28 15:29:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5161,"item_index":5,"menu_item_id":3} 
[2026-02-28 15:29:30] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5160,"new_order_id":5161,"order_number":"AZS-280226-007"} 
[2026-02-28 15:31:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5159,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null,"id":25201},{"menu_item_id":64,"quantity":2,"price":999,"discount_percent":0,"notes":null,"id":25202},{"menu_item_id":52,"quantity":11,"price":70,"discount_percent":0,"notes":null,"id":25203},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25204},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25205},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25206},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":25207}],"validated_items":[{"id":25201,"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null},{"id":25202,"menu_item_id":64,"quantity":2,"price":999,"discount_percent":0,"notes":null},{"id":25203,"menu_item_id":52,"quantity":11,"price":70,"discount_percent":0,"notes":null},{"id":25204,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25205,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25206,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":25207,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-28 15:31:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5159,"items_count":7} 
[2026-02-28 15:31:09] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25201,"menu_item_id":103,"quantity":1},{"id":25202,"menu_item_id":64,"quantity":2},{"id":25203,"menu_item_id":52,"quantity":11},{"id":25204,"menu_item_id":61,"quantity":2},{"id":25205,"menu_item_id":5,"quantity":1},{"id":25206,"menu_item_id":3,"quantity":1},{"id":25207,"menu_item_id":6,"quantity":3}]} 
[2026-02-28 15:31:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5159,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["103|1|","64|2|","52|11|","61|2|","5|1|","3|1|","6|3|"],"new_items_map_keys":["103|1|","64|2|","52|11|","61|2|","5|1|","3|1|","6|3|"]} 
[2026-02-28 15:31:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5159,"order_number":"AZS-280226-005"} 
[2026-02-28 15:31:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5159,"order_number":"AZS-280226-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 15:31:09"} 
[2026-02-28 15:31:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5162,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":172,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":25221}],"validated_items":[{"id":25221,"menu_item_id":172,"quantity":1,"price":999,"discount_percent":0,"notes":null}]} 
[2026-02-28 15:31:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5162,"items_count":1} 
[2026-02-28 15:31:56] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25221,"menu_item_id":172,"quantity":1}]} 
[2026-02-28 15:31:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5162,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["172|1|"],"new_items_map_keys":["172|1|"]} 
[2026-02-28 15:31:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5162,"order_number":"AZS-280226-008"} 
[2026-02-28 15:31:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5162,"order_number":"AZS-280226-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-02-28 15:31:56"} 
[2026-02-28 15:32:59] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5162,"order_number":"AZS-280226-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 15:32:59"} 
[2026-02-28 15:32:59] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5162,"order_number":"AZS-280226-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 15:32:59"} 
[2026-02-28 15:32:59] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5162,"order_number":"AZS-280226-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 15:32:59"} 
[2026-02-28 15:32:59] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5162,"order_number":"AZS-280226-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 15:32:59"} 
[2026-02-28 15:32:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5162,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":172,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":25221}],"validated_items":[{"id":25221,"menu_item_id":172,"quantity":1,"price":999,"discount_percent":0,"notes":null}]} 
[2026-02-28 15:32:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5162,"items_count":1} 
[2026-02-28 15:32:59] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25221,"menu_item_id":172,"quantity":1}]} 
[2026-02-28 15:32:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5162,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["172|1|"],"new_items_map_keys":["172|1|"]} 
[2026-02-28 15:32:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5162,"order_number":"AZS-280226-008"} 
[2026-02-28 15:32:59] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5162,"order_number":"AZS-280226-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-28 15:32:59","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 15:32:59"} 
[2026-02-28 15:32:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5162,"order_number":"AZS-280226-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 15:32:59"} 
[2026-02-28 15:32:59] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5162,"order_number":"AZS-280226-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-28 15:32:59","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-02-28 15:32:59"} 
[2026-02-28 15:33:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5161,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25215},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25216},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":25217},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25218},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25219},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25220}],"validated_items":[{"id":25215,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25216,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25217,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":25218,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25219,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25220,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-28 15:33:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5161,"items_count":6} 
[2026-02-28 15:33:15] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25215,"menu_item_id":97,"quantity":1},{"id":25216,"menu_item_id":396,"quantity":2},{"id":25217,"menu_item_id":50,"quantity":2},{"id":25218,"menu_item_id":61,"quantity":1},{"id":25219,"menu_item_id":56,"quantity":1},{"id":25220,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 15:33:15] local.INFO: PosOrderController::update - Item changes check {"order_id":5161,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["97|1|","396|2|","50|2|","61|1|","56|1|","3|1|"],"new_items_map_keys":["97|1|","396|2|","50|2|","61|1|","56|1|","3|1|"]} 
[2026-02-28 15:33:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5161,"order_number":"AZS-280226-007"} 
[2026-02-28 15:33:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5161,"order_number":"AZS-280226-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 15:33:15"} 
[2026-02-28 15:35:26] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5161,"order_number":"AZS-280226-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3600,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 15:35:26"} 
[2026-02-28 15:35:26] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5161,"order_number":"AZS-280226-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 15:35:26"} 
[2026-02-28 15:35:26] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5161,"order_number":"AZS-280226-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3600,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 15:35:26"} 
[2026-02-28 15:35:26] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5161,"order_number":"AZS-280226-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3600,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 15:35:26"} 
[2026-02-28 15:35:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5161,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25215},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25216},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":25217},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25218},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25219},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25220}],"validated_items":[{"id":25215,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25216,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25217,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":25218,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25219,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25220,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-28 15:35:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5161,"items_count":6} 
[2026-02-28 15:35:26] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25215,"menu_item_id":97,"quantity":1},{"id":25216,"menu_item_id":396,"quantity":2},{"id":25217,"menu_item_id":50,"quantity":2},{"id":25218,"menu_item_id":61,"quantity":1},{"id":25219,"menu_item_id":56,"quantity":1},{"id":25220,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 15:35:26] local.INFO: PosOrderController::update - Item changes check {"order_id":5161,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["97|1|","396|2|","50|2|","61|1|","56|1|","3|1|"],"new_items_map_keys":["97|1|","396|2|","50|2|","61|1|","56|1|","3|1|"]} 
[2026-02-28 15:35:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5161,"order_number":"AZS-280226-007"} 
[2026-02-28 15:35:26] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5161,"order_number":"AZS-280226-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3600,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-28 15:35:26","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 15:35:26"} 
[2026-02-28 15:35:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5161,"order_number":"AZS-280226-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 15:35:26"} 
[2026-02-28 15:35:26] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5161,"order_number":"AZS-280226-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3600.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-28 15:35:26","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3600.00","database_verification_match":true,"timestamp":"2026-02-28 15:35:26"} 
[2026-02-28 15:36:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T03:36:07.392Z","date_to":"2026-02-28T15:36:07.392Z","per_page":"100"} 
[2026-02-28 15:36:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T03:36:07.376Z","date_to":"2026-02-28T15:36:07.376Z","per_page":"100"} 
[2026-02-28 15:36:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["paid","paid","changed","changed","pending","changed","pending","changed","changed","changed","changed","paid","changed","paid","pending","paid","changed"],"deleted_count":9,"paid_count":5,"unpaid_count":3,"unique_order_numbers":8} 
[2026-02-28 15:36:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["paid","paid","changed","changed","pending","changed","pending","changed","changed","changed","changed","paid","changed","paid","pending","paid","changed"],"deleted_count":9,"paid_count":5,"unpaid_count":3,"unique_order_numbers":8} 
[2026-02-28 15:36:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T03:36:07.376Z","date_to":"2026-02-28T15:36:07.376Z","per_page":"100"} 
[2026-02-28 15:36:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["paid","paid","changed","changed","pending","changed","pending","changed","changed","changed","changed","paid","changed","paid","pending","paid","changed"],"deleted_count":9,"paid_count":5,"unpaid_count":3,"unique_order_numbers":8} 
[2026-02-28 15:36:55] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5158,"order_number":"AZS-280226-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1890,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 15:36:55"} 
[2026-02-28 15:36:55] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5158,"order_number":"AZS-280226-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1890,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 15:36:55"} 
[2026-02-28 15:36:55] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5158,"order_number":"AZS-280226-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1890,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 15:36:55"} 
[2026-02-28 15:36:55] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5158,"order_number":"AZS-280226-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1890,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 15:36:55"} 
[2026-02-28 15:36:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5158,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25196},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":25197},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25198},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25199},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":25200}],"validated_items":[{"id":25196,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25197,"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":25198,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":25199,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25200,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-28 15:36:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5158,"items_count":5} 
[2026-02-28 15:36:55] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25196,"menu_item_id":98,"quantity":1},{"id":25197,"menu_item_id":55,"quantity":1},{"id":25198,"menu_item_id":396,"quantity":1},{"id":25199,"menu_item_id":61,"quantity":1},{"id":25200,"menu_item_id":4,"quantity":1}]} 
[2026-02-28 15:36:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5158,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["98|1|","55|1|","396|1|","61|1|","4|1|"],"new_items_map_keys":["98|1|","55|1|","396|1|","61|1|","4|1|"]} 
[2026-02-28 15:36:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5158,"order_number":"AZS-280226-006"} 
[2026-02-28 15:36:55] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5158,"order_number":"AZS-280226-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1890,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-28 15:36:55","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 15:36:55"} 
[2026-02-28 15:36:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5158,"order_number":"AZS-280226-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 15:36:55"} 
[2026-02-28 15:36:55] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5158,"order_number":"AZS-280226-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1890.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-28 15:36:55","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1890,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1890.00","database_verification_match":true,"timestamp":"2026-02-28 15:36:55"} 
[2026-02-28 16:33:44] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5159,"order_number":"AZS-280226-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":7142,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 16:33:44"} 
[2026-02-28 16:33:44] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5159,"order_number":"AZS-280226-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":7142,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 16:33:44"} 
[2026-02-28 16:33:44] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5159,"order_number":"AZS-280226-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7142,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 16:33:44"} 
[2026-02-28 16:33:44] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5159,"order_number":"AZS-280226-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7142,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 16:33:44"} 
[2026-02-28 16:33:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5159,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null,"id":25201},{"menu_item_id":64,"quantity":2,"price":999,"discount_percent":0,"notes":null,"id":25202},{"menu_item_id":52,"quantity":11,"price":70,"discount_percent":0,"notes":null,"id":25203},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25204},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25205},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25206},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":25207}],"validated_items":[{"id":25201,"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null},{"id":25202,"menu_item_id":64,"quantity":2,"price":999,"discount_percent":0,"notes":null},{"id":25203,"menu_item_id":52,"quantity":11,"price":70,"discount_percent":0,"notes":null},{"id":25204,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25205,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25206,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":25207,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-28 16:33:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5159,"items_count":7} 
[2026-02-28 16:33:44] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25201,"menu_item_id":103,"quantity":1},{"id":25202,"menu_item_id":64,"quantity":2},{"id":25203,"menu_item_id":52,"quantity":11},{"id":25204,"menu_item_id":61,"quantity":2},{"id":25205,"menu_item_id":5,"quantity":1},{"id":25206,"menu_item_id":3,"quantity":1},{"id":25207,"menu_item_id":6,"quantity":3}]} 
[2026-02-28 16:33:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5159,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["103|1|","64|2|","52|11|","61|2|","5|1|","3|1|","6|3|"],"new_items_map_keys":["103|1|","64|2|","52|11|","61|2|","5|1|","3|1|","6|3|"]} 
[2026-02-28 16:33:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5159,"order_number":"AZS-280226-005"} 
[2026-02-28 16:33:44] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5159,"order_number":"AZS-280226-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":7142,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-28 16:33:44","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 16:33:44"} 
[2026-02-28 16:33:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5159,"order_number":"AZS-280226-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 16:33:44"} 
[2026-02-28 16:33:44] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5159,"order_number":"AZS-280226-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"7142.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-28 16:33:44","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":7142,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"7142.00","database_verification_match":true,"timestamp":"2026-02-28 16:33:44"} 
[2026-02-28 17:23:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5165,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":25225},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":25226},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25227}],"validated_items":[{"id":25225,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":25226,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"id":25227,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-28 17:23:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5165,"items_count":3} 
[2026-02-28 17:23:30] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25225,"menu_item_id":85,"quantity":1},{"id":25226,"menu_item_id":4,"quantity":1},{"id":25227,"menu_item_id":6,"quantity":2}]} 
[2026-02-28 17:23:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5165,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["85|1|","4|1|","6|2|"],"new_items_map_keys":["85|1|","4|1|","6|2|"]} 
[2026-02-28 17:23:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5165,"order_number":"AZS-280226-011"} 
[2026-02-28 17:23:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5165,"order_number":"AZS-280226-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 17:23:30"} 
[2026-02-28 17:37:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5164,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25224}],"validated_items":[{"id":25224,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-28 17:37:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5164,"items_count":1} 
[2026-02-28 17:37:18] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25224,"menu_item_id":6,"quantity":2}]} 
[2026-02-28 17:37:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5164,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-02-28 17:37:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5164,"order_number":"AZS-280226-010"} 
[2026-02-28 17:37:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5164,"order_number":"AZS-280226-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 17:37:18"} 
[2026-02-28 17:37:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":1,"order_id":5167,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":173,"quantity":1,"discount_percent":0,"notes":null,"id":25229},{"menu_item_id":146,"quantity":1,"discount_percent":0,"notes":null,"id":25231},{"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25229,"menu_item_id":173,"quantity":1,"discount_percent":0,"notes":null},{"id":25231,"menu_item_id":146,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 17:37:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5167,"items_count":3} 
[2026-02-28 17:37:43] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":1,"items_to_remove":[25230],"items":[{"id":25229,"menu_item_id":173,"quantity":1},{"id":25231,"menu_item_id":146,"quantity":1},{"id":null,"menu_item_id":393,"quantity":1}]} 
[2026-02-28 17:37:43] local.INFO: PosOrderController::update - Item changes check {"order_id":5167,"has_item_changes":true,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["173|1|","387|1|","146|1|"],"new_items_map_keys":["173|1|","146|1|","393|1|"]} 
[2026-02-28 17:37:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5167,"order_number":"AZS-280226-013"} 
[2026-02-28 17:37:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-013","replaced_order_id":5167} 
[2026-02-28 17:37:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5168,"items_count":3,"items":[{"menu_item_id":173,"quantity":1,"price":"649.00"},{"menu_item_id":146,"quantity":1,"price":"1299.00"},{"menu_item_id":393,"quantity":1,"price":"499.00"}]} 
[2026-02-28 17:37:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5168,"item_index":0,"item_data":{"menu_item_id":173,"restaurant_category_id":17,"restaurant_category_name":"BURGER","item_name":"Grilled Cheese Burger","quantity":1,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":649.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5168}} 
[2026-02-28 17:37:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5168,"item_index":0,"menu_item_id":173} 
[2026-02-28 17:37:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5168,"item_index":1,"item_data":{"menu_item_id":146,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Chicken Supreeme Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5168}} 
[2026-02-28 17:37:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5168,"item_index":1,"menu_item_id":146} 
[2026-02-28 17:37:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5168,"item_index":2,"item_data":{"menu_item_id":393,"restaurant_category_id":35,"restaurant_category_name":"ROCK N ROLL","item_name":"Chicken Shawarma","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5168}} 
[2026-02-28 17:37:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5168,"item_index":2,"menu_item_id":393} 
[2026-02-28 17:37:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5167,"new_order_id":5168,"order_number":"AZS-280226-013"} 
[2026-02-28 17:40:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5165,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":25225},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":25226},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25227}],"validated_items":[{"id":25225,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":25226,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"id":25227,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-28 17:40:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5165,"items_count":3} 
[2026-02-28 17:40:06] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25225,"menu_item_id":85,"quantity":1},{"id":25226,"menu_item_id":4,"quantity":1},{"id":25227,"menu_item_id":6,"quantity":2}]} 
[2026-02-28 17:40:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5165,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["85|1|","4|1|","6|2|"],"new_items_map_keys":["85|1|","4|1|","6|2|"]} 
[2026-02-28 17:40:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5165,"order_number":"AZS-280226-011"} 
[2026-02-28 17:40:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5165,"order_number":"AZS-280226-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 17:40:06"} 
[2026-02-28 17:40:29] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5165,"order_number":"AZS-280226-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 17:40:29"} 
[2026-02-28 17:40:29] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5165,"order_number":"AZS-280226-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 17:40:29"} 
[2026-02-28 17:40:29] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5165,"order_number":"AZS-280226-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 17:40:29"} 
[2026-02-28 17:40:29] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5165,"order_number":"AZS-280226-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 17:40:29"} 
[2026-02-28 17:40:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5165,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":25225},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":25226},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25227}],"validated_items":[{"id":25225,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":25226,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"id":25227,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-28 17:40:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5165,"items_count":3} 
[2026-02-28 17:40:29] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25225,"menu_item_id":85,"quantity":1},{"id":25226,"menu_item_id":4,"quantity":1},{"id":25227,"menu_item_id":6,"quantity":1}]} 
[2026-02-28 17:40:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5165,"has_item_changes":true,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["85|1|","4|1|","6|2|"],"new_items_map_keys":["85|1|","4|1|","6|1|"]} 
[2026-02-28 17:40:29] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5165,"order_number":"AZS-280226-011","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":1200,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-02-28 17:40:29","original_payment_amount":"0.00","grand_total":1037.0,"timestamp":"2026-02-28 17:40:29"} 
[2026-02-28 17:40:29] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5165,"order_number":"AZS-280226-011"} 
[2026-02-28 17:40:29] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-011","replaced_order_id":5165} 
[2026-02-28 17:40:29] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5165,"new_order_id":5171,"order_number":"AZS-280226-011","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"1200.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-02-28 17:40:29","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-02-28 17:40:29"} 
[2026-02-28 17:40:29] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5171,"items_count":3,"items":[{"menu_item_id":85,"quantity":1,"price":699.0},{"menu_item_id":4,"quantity":1,"price":90.0},{"menu_item_id":6,"quantity":1,"price":199.0}]} 
[2026-02-28 17:40:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5171,"item_index":0,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":1,"price":699.0,"discount_percent":0.0,"discount_amount":0.0,"total":699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5171}} 
[2026-02-28 17:40:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5171,"item_index":0,"menu_item_id":85} 
[2026-02-28 17:40:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5171,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":90.0,"discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5171}} 
[2026-02-28 17:40:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5171,"item_index":1,"menu_item_id":4} 
[2026-02-28 17:40:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5171,"item_index":2,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5171}} 
[2026-02-28 17:40:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5171,"item_index":2,"menu_item_id":6} 
[2026-02-28 17:40:29] local.ERROR: Error tracking recipe usage for order 5171: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5171, 85, 80, 1, 15, 0.00, Order #AZS-280226-011 - 1x Loaded Fries, 2026-02-28 17:40:29, 2026-02-28 17:40:29))  
[2026-02-28 17:40:29] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5165,"new_order_id":5171,"order_number":"AZS-280226-011"} 
[2026-02-28 17:40:29] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5165,"new_order_id":5171,"order_number":"AZS-280226-011","route":"api/orders/5165"} 
[2026-02-28 17:40:49] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5166,"order_number":"AZS-280226-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":300,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 17:40:49"} 
[2026-02-28 17:40:49] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5166,"order_number":"AZS-280226-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":300,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 17:40:49"} 
[2026-02-28 17:40:49] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5166,"order_number":"AZS-280226-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 17:40:49"} 
[2026-02-28 17:40:49] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5166,"order_number":"AZS-280226-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 17:40:49"} 
[2026-02-28 17:40:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5166,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25228}],"validated_items":[{"id":25228,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-28 17:40:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5166,"items_count":1} 
[2026-02-28 17:40:49] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25228,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 17:40:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5166,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["3|1|"],"new_items_map_keys":["3|1|"]} 
[2026-02-28 17:40:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5166,"order_number":"AZS-280226-012"} 
[2026-02-28 17:40:49] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5166,"order_number":"AZS-280226-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":300,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-28 17:40:49","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 17:40:49"} 
[2026-02-28 17:40:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5166,"order_number":"AZS-280226-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 17:40:49"} 
[2026-02-28 17:40:49] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5166,"order_number":"AZS-280226-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"300.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-28 17:40:49","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":300,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"300.00","database_verification_match":true,"timestamp":"2026-02-28 17:40:49"} 
[2026-02-28 17:41:03] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5164,"order_number":"AZS-280226-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":210,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 17:41:03"} 
[2026-02-28 17:41:03] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5164,"order_number":"AZS-280226-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":210,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 17:41:03"} 
[2026-02-28 17:41:03] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5164,"order_number":"AZS-280226-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":210,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 17:41:03"} 
[2026-02-28 17:41:03] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5164,"order_number":"AZS-280226-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":210,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 17:41:03"} 
[2026-02-28 17:41:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5164,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25224}],"validated_items":[{"id":25224,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-28 17:41:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5164,"items_count":1} 
[2026-02-28 17:41:03] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25224,"menu_item_id":6,"quantity":1}]} 
[2026-02-28 17:41:03] local.INFO: PosOrderController::update - Item changes check {"order_id":5164,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|1|"]} 
[2026-02-28 17:41:03] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5164,"order_number":"AZS-280226-010","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":210,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-02-28 17:41:03","original_payment_amount":"0.00","grand_total":209.0,"timestamp":"2026-02-28 17:41:03"} 
[2026-02-28 17:41:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5164,"order_number":"AZS-280226-010"} 
[2026-02-28 17:41:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-010","replaced_order_id":5164} 
[2026-02-28 17:41:03] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5164,"new_order_id":5172,"order_number":"AZS-280226-010","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"210.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-02-28 17:41:03","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":210,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-02-28 17:41:03"} 
[2026-02-28 17:41:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5172,"items_count":1,"items":[{"menu_item_id":6,"quantity":1,"price":199.0}]} 
[2026-02-28 17:41:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5172,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5172}} 
[2026-02-28 17:41:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5172,"item_index":0,"menu_item_id":6} 
[2026-02-28 17:41:03] local.ERROR: Error tracking recipe usage for order 5172: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5172, 6, 177, 1, 333, 0.00, Order #AZS-280226-010 - 1x Karak Tea, 2026-02-28 17:41:03, 2026-02-28 17:41:03))  
[2026-02-28 17:41:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5164,"new_order_id":5172,"order_number":"AZS-280226-010"} 
[2026-02-28 17:41:04] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5164,"new_order_id":5172,"order_number":"AZS-280226-010","route":"api/orders/5164"} 
[2026-02-28 18:01:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5169,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":25235},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25236}],"validated_items":[{"id":25235,"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":25236,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-28 18:01:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5169,"items_count":2} 
[2026-02-28 18:01:23] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25235,"menu_item_id":23,"quantity":1},{"id":25236,"menu_item_id":6,"quantity":1}]} 
[2026-02-28 18:01:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5169,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["23|1|","6|1|"],"new_items_map_keys":["23|1|","6|1|"]} 
[2026-02-28 18:01:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5169,"order_number":"AZS-280226-014"} 
[2026-02-28 18:01:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5169,"order_number":"AZS-280226-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 18:01:23"} 
[2026-02-28 18:02:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5169,"order_number":"AZS-280226-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":470,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 18:02:27"} 
[2026-02-28 18:02:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5169,"order_number":"AZS-280226-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":470,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 18:02:27"} 
[2026-02-28 18:02:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5169,"order_number":"AZS-280226-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":470,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 18:02:27"} 
[2026-02-28 18:02:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5169,"order_number":"AZS-280226-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":470,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 18:02:27"} 
[2026-02-28 18:02:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5169,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":25235},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25236}],"validated_items":[{"id":25235,"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":25236,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-28 18:02:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5169,"items_count":2} 
[2026-02-28 18:02:27] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25235,"menu_item_id":23,"quantity":1},{"id":25236,"menu_item_id":6,"quantity":1}]} 
[2026-02-28 18:02:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5169,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["23|1|","6|1|"],"new_items_map_keys":["23|1|","6|1|"]} 
[2026-02-28 18:02:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5169,"order_number":"AZS-280226-014"} 
[2026-02-28 18:02:27] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5169,"order_number":"AZS-280226-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":470,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-28 18:02:27","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 18:02:27"} 
[2026-02-28 18:02:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5169,"order_number":"AZS-280226-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 18:02:27"} 
[2026-02-28 18:02:27] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5169,"order_number":"AZS-280226-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"470.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-28 18:02:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":470,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"470.00","database_verification_match":true,"timestamp":"2026-02-28 18:02:27"} 
[2026-02-28 18:06:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5170,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":115,"quantity":1,"discount_percent":0,"notes":null,"id":25237},{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":25238},{"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null,"id":25239},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":25240},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":25241},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25242},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25237,"menu_item_id":115,"quantity":1,"discount_percent":0,"notes":null},{"id":25238,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":25239,"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null},{"id":25240,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":25241,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":25242,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 18:06:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5170,"items_count":7} 
[2026-02-28 18:06:23] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25237,"menu_item_id":115,"quantity":1},{"id":25238,"menu_item_id":102,"quantity":1},{"id":25239,"menu_item_id":48,"quantity":2},{"id":25240,"menu_item_id":61,"quantity":2},{"id":25241,"menu_item_id":56,"quantity":1},{"id":25242,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1}]} 
[2026-02-28 18:06:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5170,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["115|1|","102|1|","48|2|","61|2|","56|1|","5|1|"],"new_items_map_keys":["115|1|","102|1|","48|2|","61|2|","56|1|","5|1|","403|1|"]} 
[2026-02-28 18:06:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5170,"order_number":"AZS-280226-015"} 
[2026-02-28 18:06:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-015","replaced_order_id":5170} 
[2026-02-28 18:06:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5173,"items_count":7,"items":[{"menu_item_id":115,"quantity":1,"price":"4199.00"},{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":48,"quantity":2,"price":"250.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"}]} 
[2026-02-28 18:06:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5173,"item_index":0,"item_data":{"menu_item_id":115,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Shinwari Qeema","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5173}} 
[2026-02-28 18:06:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5173,"item_index":0,"menu_item_id":115} 
[2026-02-28 18:06:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5173,"item_index":1,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5173}} 
[2026-02-28 18:06:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5173,"item_index":1,"menu_item_id":102} 
[2026-02-28 18:06:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5173,"item_index":2,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5173}} 
[2026-02-28 18:06:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5173,"item_index":2,"menu_item_id":48} 
[2026-02-28 18:06:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5173,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5173}} 
[2026-02-28 18:06:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5173,"item_index":3,"menu_item_id":61} 
[2026-02-28 18:06:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5173,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5173}} 
[2026-02-28 18:06:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5173,"item_index":4,"menu_item_id":56} 
[2026-02-28 18:06:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5173,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5173}} 
[2026-02-28 18:06:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5173,"item_index":5,"menu_item_id":5} 
[2026-02-28 18:06:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5173,"item_index":6,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5173}} 
[2026-02-28 18:06:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5173,"item_index":6,"menu_item_id":403} 
[2026-02-28 18:06:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5170,"new_order_id":5173,"order_number":"AZS-280226-015"} 
[2026-02-28 18:20:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5174,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"discount_percent":0,"notes":null,"id":25254},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":25255},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":25256},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":25257},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":25258},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25259},{"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25254,"menu_item_id":101,"quantity":1,"discount_percent":0,"notes":null},{"id":25255,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":25256,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":25257,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":25258,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":25259,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 18:20:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5174,"items_count":7} 
[2026-02-28 18:20:43] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25254,"menu_item_id":101,"quantity":1},{"id":25255,"menu_item_id":64,"quantity":1},{"id":25256,"menu_item_id":396,"quantity":4},{"id":25257,"menu_item_id":61,"quantity":2},{"id":25258,"menu_item_id":56,"quantity":1},{"id":25259,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":67,"quantity":1}]} 
[2026-02-28 18:20:43] local.INFO: PosOrderController::update - Item changes check {"order_id":5174,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["101|1|","64|1|","396|4|","61|2|","56|1|","5|1|"],"new_items_map_keys":["101|1|","64|1|","396|4|","61|2|","56|1|","5|1|","67|1|"]} 
[2026-02-28 18:20:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5174,"order_number":"AZS-280226-016"} 
[2026-02-28 18:20:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-016","replaced_order_id":5174} 
[2026-02-28 18:20:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5176,"items_count":7,"items":[{"menu_item_id":101,"quantity":1,"price":"2399.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":67,"quantity":1,"price":"599.00"}]} 
[2026-02-28 18:20:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5176,"item_index":0,"item_data":{"menu_item_id":101,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Full","quantity":1,"price":"2399.00","discount_percent":0.0,"discount_amount":0.0,"total":2399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5176}} 
[2026-02-28 18:20:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5176,"item_index":0,"menu_item_id":101} 
[2026-02-28 18:20:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5176,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5176}} 
[2026-02-28 18:20:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5176,"item_index":1,"menu_item_id":64} 
[2026-02-28 18:20:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5176,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5176}} 
[2026-02-28 18:20:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5176,"item_index":2,"menu_item_id":396} 
[2026-02-28 18:20:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5176,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5176}} 
[2026-02-28 18:20:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5176,"item_index":3,"menu_item_id":61} 
[2026-02-28 18:20:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5176,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5176}} 
[2026-02-28 18:20:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5176,"item_index":4,"menu_item_id":56} 
[2026-02-28 18:20:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5176,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5176}} 
[2026-02-28 18:20:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5176,"item_index":5,"menu_item_id":5} 
[2026-02-28 18:20:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5176,"item_index":6,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5176}} 
[2026-02-28 18:20:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5176,"item_index":6,"menu_item_id":67} 
[2026-02-28 18:20:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5174,"new_order_id":5176,"order_number":"AZS-280226-016"} 
[2026-02-28 18:23:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5168,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":173,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":25232},{"menu_item_id":146,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":25233},{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":25234},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"id":25232,"menu_item_id":173,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":25233,"menu_item_id":146,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":25234,"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-28 18:23:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5168,"items_count":4} 
[2026-02-28 18:23:17] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25232,"menu_item_id":173,"quantity":1},{"id":25233,"menu_item_id":146,"quantity":1},{"id":25234,"menu_item_id":393,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 18:23:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5168,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["173|1|","146|1|","393|1|"],"new_items_map_keys":["173|1|","146|1|","393|1|","5|1|"]} 
[2026-02-28 18:23:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5168,"order_number":"AZS-280226-013"} 
[2026-02-28 18:23:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-013","replaced_order_id":5168} 
[2026-02-28 18:23:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5177,"items_count":4,"items":[{"menu_item_id":173,"quantity":1,"price":649.0},{"menu_item_id":146,"quantity":1,"price":1299.0},{"menu_item_id":393,"quantity":1,"price":499.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-02-28 18:23:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5177,"item_index":0,"item_data":{"menu_item_id":173,"restaurant_category_id":17,"restaurant_category_name":"BURGER","item_name":"Grilled Cheese Burger","quantity":1,"price":649.0,"discount_percent":0.0,"discount_amount":0.0,"total":649.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5177}} 
[2026-02-28 18:23:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5177,"item_index":0,"menu_item_id":173} 
[2026-02-28 18:23:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5177,"item_index":1,"item_data":{"menu_item_id":146,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Chicken Supreeme Pizza - Medium","quantity":1,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5177}} 
[2026-02-28 18:23:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5177,"item_index":1,"menu_item_id":146} 
[2026-02-28 18:23:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5177,"item_index":2,"item_data":{"menu_item_id":393,"restaurant_category_id":35,"restaurant_category_name":"ROCK N ROLL","item_name":"Chicken Shawarma","quantity":1,"price":499.0,"discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5177}} 
[2026-02-28 18:23:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5177,"item_index":2,"menu_item_id":393} 
[2026-02-28 18:23:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5177,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5177}} 
[2026-02-28 18:23:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5177,"item_index":3,"menu_item_id":5} 
[2026-02-28 18:23:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5168,"new_order_id":5177,"order_number":"AZS-280226-013"} 
[2026-02-28 18:23:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5177,"item_index":0,"item_id":25232} 
[2026-02-28 18:23:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5177,"item_index":1,"item_id":25233} 
[2026-02-28 18:23:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5177,"item_index":2,"item_id":25234} 
[2026-02-28 18:23:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5177,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":173,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":25232},{"menu_item_id":146,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":25233},{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":25234},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":173,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"menu_item_id":146,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-28 18:23:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5177,"items_count":4} 
[2026-02-28 18:23:22] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[25268,25269,25270,25271],"items":[{"id":null,"menu_item_id":173,"quantity":1},{"id":null,"menu_item_id":146,"quantity":1},{"id":null,"menu_item_id":393,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 18:23:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5177,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["173|1|","146|1|","393|1|","5|1|"],"new_items_map_keys":["173|1|","146|1|","393|1|","5|1|"]} 
[2026-02-28 18:23:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5177,"order_number":"AZS-280226-013"} 
[2026-02-28 18:23:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5177,"order_number":"AZS-280226-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 18:23:22"} 
[2026-02-28 18:30:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5173,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":115,"quantity":1,"discount_percent":0,"notes":null,"id":25247},{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":25248},{"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null,"id":25249},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":25250},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":25251},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25252},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":25253},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25247,"menu_item_id":115,"quantity":1,"discount_percent":0,"notes":null},{"id":25248,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":25249,"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null},{"id":25250,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":25251,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":25252,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":25253,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 18:30:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5173,"items_count":8} 
[2026-02-28 18:30:26] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25247,"menu_item_id":115,"quantity":1},{"id":25248,"menu_item_id":102,"quantity":1},{"id":25249,"menu_item_id":48,"quantity":2},{"id":25250,"menu_item_id":61,"quantity":2},{"id":25251,"menu_item_id":56,"quantity":1},{"id":25252,"menu_item_id":5,"quantity":1},{"id":25253,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 18:30:26] local.INFO: PosOrderController::update - Item changes check {"order_id":5173,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["115|1|","102|1|","48|2|","61|2|","56|1|","5|1|","403|1|"],"new_items_map_keys":["115|1|","102|1|","48|2|","61|2|","56|1|","5|1|","403|1|","3|1|"]} 
[2026-02-28 18:30:26] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5173,"order_number":"AZS-280226-015"} 
[2026-02-28 18:30:26] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-015","replaced_order_id":5173} 
[2026-02-28 18:30:26] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5178,"items_count":8,"items":[{"menu_item_id":115,"quantity":1,"price":"4199.00"},{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":48,"quantity":2,"price":"250.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-28 18:30:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5178,"item_index":0,"item_data":{"menu_item_id":115,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Shinwari Qeema","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5178}} 
[2026-02-28 18:30:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5178,"item_index":0,"menu_item_id":115} 
[2026-02-28 18:30:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5178,"item_index":1,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5178}} 
[2026-02-28 18:30:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5178,"item_index":1,"menu_item_id":102} 
[2026-02-28 18:30:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5178,"item_index":2,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5178}} 
[2026-02-28 18:30:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5178,"item_index":2,"menu_item_id":48} 
[2026-02-28 18:30:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5178,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5178}} 
[2026-02-28 18:30:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5178,"item_index":3,"menu_item_id":61} 
[2026-02-28 18:30:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5178,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5178}} 
[2026-02-28 18:30:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5178,"item_index":4,"menu_item_id":56} 
[2026-02-28 18:30:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5178,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5178}} 
[2026-02-28 18:30:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5178,"item_index":5,"menu_item_id":5} 
[2026-02-28 18:30:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5178,"item_index":6,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5178}} 
[2026-02-28 18:30:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5178,"item_index":6,"menu_item_id":403} 
[2026-02-28 18:30:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5178,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5178}} 
[2026-02-28 18:30:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5178,"item_index":7,"menu_item_id":3} 
[2026-02-28 18:30:26] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5173,"new_order_id":5178,"order_number":"AZS-280226-015"} 
[2026-02-28 18:42:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5175,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":25260}],"validated_items":[{"id":25260,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null}]} 
[2026-02-28 18:42:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5175,"items_count":1} 
[2026-02-28 18:42:36] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25260,"menu_item_id":13,"quantity":4}]} 
[2026-02-28 18:42:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5175,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|4|"],"new_items_map_keys":["13|4|"]} 
[2026-02-28 18:42:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5175,"order_number":"AZS-280226-017"} 
[2026-02-28 18:42:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5175,"order_number":"AZS-280226-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 18:42:36"} 
[2026-02-28 18:44:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T06:44:56.287Z","date_to":"2026-02-28T18:44:56.287Z","per_page":"100"} 
[2026-02-28 18:44:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T06:44:56.300Z","date_to":"2026-02-28T18:44:56.300Z","per_page":"100"} 
[2026-02-28 18:44:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","pending","pending","pending","changed","pending","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","pending","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","pending","paid","changed"],"deleted_count":16,"paid_count":11,"unpaid_count":8,"unique_order_numbers":19} 
[2026-02-28 18:44:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","pending","pending","pending","changed","pending","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","pending","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","pending","paid","changed"],"deleted_count":16,"paid_count":11,"unpaid_count":8,"unique_order_numbers":19} 
[2026-02-28 18:44:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T06:44:56.287Z","date_to":"2026-02-28T18:44:56.287Z","per_page":"100"} 
[2026-02-28 18:44:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","pending","pending","pending","changed","pending","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","pending","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","pending","paid","changed"],"deleted_count":16,"paid_count":11,"unpaid_count":8,"unique_order_numbers":19} 
[2026-02-28 18:49:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5176,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"discount_percent":0,"notes":null,"id":25261},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":25262},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":25263},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":25264},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":25265},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25266},{"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null,"id":25267},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25261,"menu_item_id":101,"quantity":1,"discount_percent":0,"notes":null},{"id":25262,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":25263,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":25264,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":25265,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":25266,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":25267,"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 18:49:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5176,"items_count":8} 
[2026-02-28 18:49:35] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25261,"menu_item_id":101,"quantity":1},{"id":25262,"menu_item_id":64,"quantity":1},{"id":25263,"menu_item_id":396,"quantity":4},{"id":25264,"menu_item_id":61,"quantity":2},{"id":25265,"menu_item_id":56,"quantity":1},{"id":25266,"menu_item_id":5,"quantity":1},{"id":25267,"menu_item_id":67,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 18:49:35] local.INFO: PosOrderController::update - Item changes check {"order_id":5176,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["101|1|","64|1|","396|4|","61|2|","56|1|","5|1|","67|1|"],"new_items_map_keys":["101|1|","64|1|","396|4|","61|2|","56|1|","5|1|","67|1|","3|1|"]} 
[2026-02-28 18:49:35] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5176,"order_number":"AZS-280226-016"} 
[2026-02-28 18:49:35] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-016","replaced_order_id":5176} 
[2026-02-28 18:49:35] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5181,"items_count":8,"items":[{"menu_item_id":101,"quantity":1,"price":"2399.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":67,"quantity":1,"price":"599.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-28 18:49:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5181,"item_index":0,"item_data":{"menu_item_id":101,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Full","quantity":1,"price":"2399.00","discount_percent":0.0,"discount_amount":0.0,"total":2399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5181}} 
[2026-02-28 18:49:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5181,"item_index":0,"menu_item_id":101} 
[2026-02-28 18:49:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5181,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5181}} 
[2026-02-28 18:49:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5181,"item_index":1,"menu_item_id":64} 
[2026-02-28 18:49:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5181,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5181}} 
[2026-02-28 18:49:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5181,"item_index":2,"menu_item_id":396} 
[2026-02-28 18:49:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5181,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5181}} 
[2026-02-28 18:49:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5181,"item_index":3,"menu_item_id":61} 
[2026-02-28 18:49:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5181,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5181}} 
[2026-02-28 18:49:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5181,"item_index":4,"menu_item_id":56} 
[2026-02-28 18:49:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5181,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5181}} 
[2026-02-28 18:49:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5181,"item_index":5,"menu_item_id":5} 
[2026-02-28 18:49:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5181,"item_index":6,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5181}} 
[2026-02-28 18:49:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5181,"item_index":6,"menu_item_id":67} 
[2026-02-28 18:49:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5181,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5181}} 
[2026-02-28 18:49:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5181,"item_index":7,"menu_item_id":3} 
[2026-02-28 18:49:35] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5176,"new_order_id":5181,"order_number":"AZS-280226-016"} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5178,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":115,"quantity":1,"discount_percent":0,"notes":null,"id":25272},{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":25273},{"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null,"id":25274},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":25275},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":25276},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25277},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":25278},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":25279},{"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":402,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":25272,"menu_item_id":115,"quantity":1,"discount_percent":0,"notes":null},{"id":25273,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":25274,"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null},{"id":25275,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":25276,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":25277,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":25278,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"id":25279,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":402,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5178,"items_count":10} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25272,"menu_item_id":115,"quantity":1},{"id":25273,"menu_item_id":102,"quantity":1},{"id":25274,"menu_item_id":48,"quantity":2},{"id":25275,"menu_item_id":61,"quantity":2},{"id":25276,"menu_item_id":56,"quantity":1},{"id":25277,"menu_item_id":5,"quantity":1},{"id":25278,"menu_item_id":403,"quantity":1},{"id":25279,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":13,"quantity":5},{"id":null,"menu_item_id":402,"quantity":2}]} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Item changes check {"order_id":5178,"has_item_changes":true,"old_items_count":8,"new_items_count":10,"old_items_map_keys":["115|1|","102|1|","48|2|","61|2|","56|1|","5|1|","403|1|","3|1|"],"new_items_map_keys":["115|1|","102|1|","48|2|","61|2|","56|1|","5|1|","403|1|","3|1|","13|5|","402|2|"]} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5178,"order_number":"AZS-280226-015"} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-015","replaced_order_id":5178} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5182,"items_count":10,"items":[{"menu_item_id":115,"quantity":1,"price":"4199.00"},{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":48,"quantity":2,"price":"250.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":13,"quantity":5,"price":"249.00"},{"menu_item_id":402,"quantity":2,"price":"325.00"}]} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5182,"item_index":0,"item_data":{"menu_item_id":115,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Shinwari Qeema","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5182}} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5182,"item_index":0,"menu_item_id":115} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5182,"item_index":1,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5182}} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5182,"item_index":1,"menu_item_id":102} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5182,"item_index":2,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5182}} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5182,"item_index":2,"menu_item_id":48} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5182,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5182}} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5182,"item_index":3,"menu_item_id":61} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5182,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5182}} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5182,"item_index":4,"menu_item_id":56} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5182,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5182}} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5182,"item_index":5,"menu_item_id":5} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5182,"item_index":6,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5182}} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5182,"item_index":6,"menu_item_id":403} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5182,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5182}} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5182,"item_index":7,"menu_item_id":3} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5182,"item_index":8,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":5,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":1245.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5182}} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5182,"item_index":8,"menu_item_id":13} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5182,"item_index":9,"item_data":{"menu_item_id":402,"restaurant_category_id":39,"restaurant_category_name":"DESSERT BAR","item_name":"HOT GULAB JAMUN","quantity":2,"price":"325.00","discount_percent":0.0,"discount_amount":0.0,"total":650.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5182}} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5182,"item_index":9,"menu_item_id":402} 
[2026-02-28 18:50:08] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5178,"new_order_id":5182,"order_number":"AZS-280226-015"} 
[2026-02-28 18:57:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5184,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":25304},{"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null,"id":25305},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":25306},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25304,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":25305,"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null},{"id":25306,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 18:57:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5184,"items_count":4} 
[2026-02-28 18:57:24] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25304,"menu_item_id":113,"quantity":1},{"id":25305,"menu_item_id":49,"quantity":2},{"id":25306,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 18:57:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5184,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["113|1|","49|2|","50|2|"],"new_items_map_keys":["113|1|","49|2|","50|2|","5|1|"]} 
[2026-02-28 18:57:24] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5184,"order_number":"AZS-280226-021"} 
[2026-02-28 18:57:24] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-021","replaced_order_id":5184} 
[2026-02-28 18:57:24] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5185,"items_count":4,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":49,"quantity":2,"price":"70.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-28 18:57:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5185,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5185}} 
[2026-02-28 18:57:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5185,"item_index":0,"menu_item_id":113} 
[2026-02-28 18:57:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5185,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5185}} 
[2026-02-28 18:57:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5185,"item_index":1,"menu_item_id":49} 
[2026-02-28 18:57:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5185,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5185}} 
[2026-02-28 18:57:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5185,"item_index":2,"menu_item_id":50} 
[2026-02-28 18:57:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5185,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5185}} 
[2026-02-28 18:57:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5185,"item_index":3,"menu_item_id":5} 
[2026-02-28 18:57:24] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5184,"new_order_id":5185,"order_number":"AZS-280226-021"} 
[2026-02-28 18:58:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5177,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":173,"quantity":1,"discount_percent":0,"notes":null,"id":25268},{"menu_item_id":146,"quantity":1,"discount_percent":0,"notes":null,"id":25269},{"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null,"id":25270},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25271}],"validated_items":[{"id":25268,"menu_item_id":173,"quantity":1,"discount_percent":0,"notes":null},{"id":25269,"menu_item_id":146,"quantity":1,"discount_percent":0,"notes":null},{"id":25270,"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null},{"id":25271,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 18:58:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5177,"items_count":4} 
[2026-02-28 18:58:29] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25268,"menu_item_id":173,"quantity":1},{"id":25269,"menu_item_id":146,"quantity":1},{"id":25270,"menu_item_id":393,"quantity":1},{"id":25271,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 18:58:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5177,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["173|1|","146|1|","393|1|","5|1|"],"new_items_map_keys":["173|1|","146|1|","393|1|","5|1|"]} 
[2026-02-28 18:58:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5177,"order_number":"AZS-280226-013"} 
[2026-02-28 18:58:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5177,"order_number":"AZS-280226-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-02-28 18:58:29"} 
[2026-02-28 19:00:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5180,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":25282},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":25283},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25282,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":25283,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 19:00:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5180,"items_count":3} 
[2026-02-28 19:00:17] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25282,"menu_item_id":99,"quantity":1},{"id":25283,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 19:00:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5180,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["99|1|","396|3|"],"new_items_map_keys":["99|1|","396|3|","5|1|"]} 
[2026-02-28 19:00:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5180,"order_number":"AZS-280226-019"} 
[2026-02-28 19:00:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-019","replaced_order_id":5180} 
[2026-02-28 19:00:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5186,"items_count":3,"items":[{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-28 19:00:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5186,"item_index":0,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5186}} 
[2026-02-28 19:00:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5186,"item_index":0,"menu_item_id":99} 
[2026-02-28 19:00:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5186,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5186}} 
[2026-02-28 19:00:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5186,"item_index":1,"menu_item_id":396} 
[2026-02-28 19:00:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5186,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5186}} 
[2026-02-28 19:00:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5186,"item_index":2,"menu_item_id":5} 
[2026-02-28 19:00:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5180,"new_order_id":5186,"order_number":"AZS-280226-019"} 
[2026-02-28 19:05:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5175,"order_number":"AZS-280226-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1046,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 19:05:27"} 
[2026-02-28 19:05:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5175,"order_number":"AZS-280226-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1046,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 19:05:27"} 
[2026-02-28 19:05:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5175,"order_number":"AZS-280226-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1046,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 19:05:27"} 
[2026-02-28 19:05:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5175,"order_number":"AZS-280226-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1046,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 19:05:27"} 
[2026-02-28 19:05:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5175,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":25260}],"validated_items":[{"id":25260,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null}]} 
[2026-02-28 19:05:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5175,"items_count":1} 
[2026-02-28 19:05:27] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25260,"menu_item_id":13,"quantity":4}]} 
[2026-02-28 19:05:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5175,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|4|"],"new_items_map_keys":["13|4|"]} 
[2026-02-28 19:05:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5175,"order_number":"AZS-280226-017"} 
[2026-02-28 19:05:27] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5175,"order_number":"AZS-280226-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1046,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-28 19:05:27","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 19:05:27"} 
[2026-02-28 19:05:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5175,"order_number":"AZS-280226-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 19:05:27"} 
[2026-02-28 19:05:27] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5175,"order_number":"AZS-280226-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1046.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-28 19:05:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1046,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1046.00","database_verification_match":true,"timestamp":"2026-02-28 19:05:27"} 
[2026-02-28 19:07:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5182,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":115,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":25292},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":25293},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":25294},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25295},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25296},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25297},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":25298},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25299},{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":25300},{"menu_item_id":402,"quantity":2,"price":325,"discount_percent":0,"notes":null,"id":25301}],"validated_items":[{"id":25292,"menu_item_id":115,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":25293,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":25294,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":25295,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25296,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25297,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25298,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":25299,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":25300,"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null},{"id":25301,"menu_item_id":402,"quantity":2,"price":325,"discount_percent":0,"notes":null}]} 
[2026-02-28 19:07:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5182,"items_count":10} 
[2026-02-28 19:07:41] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25292,"menu_item_id":115,"quantity":1},{"id":25293,"menu_item_id":102,"quantity":1},{"id":25294,"menu_item_id":48,"quantity":2},{"id":25295,"menu_item_id":61,"quantity":2},{"id":25296,"menu_item_id":56,"quantity":1},{"id":25297,"menu_item_id":5,"quantity":1},{"id":25298,"menu_item_id":403,"quantity":1},{"id":25299,"menu_item_id":3,"quantity":1},{"id":25300,"menu_item_id":13,"quantity":5},{"id":25301,"menu_item_id":402,"quantity":2}]} 
[2026-02-28 19:07:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5182,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["115|1|","102|1|","48|2|","61|2|","56|1|","5|1|","403|1|","3|1|","13|5|","402|2|"],"new_items_map_keys":["115|1|","102|1|","48|2|","61|2|","56|1|","5|1|","403|1|","3|1|","13|5|","402|2|"]} 
[2026-02-28 19:07:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5182,"order_number":"AZS-280226-015"} 
[2026-02-28 19:07:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5182,"order_number":"AZS-280226-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 19:07:41"} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":5182,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":115,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":25292},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":25293},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":25294},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25295},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25296},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25297},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":25298},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25299},{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":25300},{"menu_item_id":402,"quantity":2,"price":325,"discount_percent":0,"notes":null,"id":25301},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}],"validated_items":[{"id":25292,"menu_item_id":115,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":25293,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":25294,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":25295,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25296,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25297,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25298,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":25299,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":25300,"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null},{"id":25301,"menu_item_id":402,"quantity":2,"price":325,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5182,"items_count":11} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25292,"menu_item_id":115,"quantity":1},{"id":25293,"menu_item_id":102,"quantity":1},{"id":25294,"menu_item_id":48,"quantity":2},{"id":25295,"menu_item_id":61,"quantity":2},{"id":25296,"menu_item_id":56,"quantity":1},{"id":25297,"menu_item_id":5,"quantity":1},{"id":25298,"menu_item_id":403,"quantity":1},{"id":25299,"menu_item_id":3,"quantity":1},{"id":25300,"menu_item_id":13,"quantity":5},{"id":25301,"menu_item_id":402,"quantity":2},{"id":null,"menu_item_id":396,"quantity":1}]} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5182,"has_item_changes":true,"old_items_count":10,"new_items_count":11,"old_items_map_keys":["115|1|","102|1|","48|2|","61|2|","56|1|","5|1|","403|1|","3|1|","13|5|","402|2|"],"new_items_map_keys":["115|1|","102|1|","48|2|","61|2|","56|1|","5|1|","403|1|","3|1|","13|5|","402|2|","396|1|"]} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5182,"order_number":"AZS-280226-015"} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-015","replaced_order_id":5182} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5187,"items_count":11,"items":[{"menu_item_id":115,"quantity":1,"price":4199.0},{"menu_item_id":102,"quantity":1,"price":1399.0},{"menu_item_id":48,"quantity":2,"price":250.0},{"menu_item_id":61,"quantity":2,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":403,"quantity":1,"price":349.0},{"menu_item_id":3,"quantity":1,"price":270.0},{"menu_item_id":13,"quantity":5,"price":249.0},{"menu_item_id":402,"quantity":2,"price":325.0},{"menu_item_id":396,"quantity":1,"price":99.0}]} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5187,"item_index":0,"item_data":{"menu_item_id":115,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Shinwari Qeema","quantity":1,"price":4199.0,"discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5187}} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5187,"item_index":0,"menu_item_id":115} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5187,"item_index":1,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":1399.0,"discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5187}} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5187,"item_index":1,"menu_item_id":102} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5187,"item_index":2,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":2,"price":250.0,"discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5187}} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5187,"item_index":2,"menu_item_id":48} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5187,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5187}} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5187,"item_index":3,"menu_item_id":61} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5187,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5187}} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5187,"item_index":4,"menu_item_id":56} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5187,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5187}} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5187,"item_index":5,"menu_item_id":5} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5187,"item_index":6,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":349.0,"discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5187}} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5187,"item_index":6,"menu_item_id":403} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5187,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5187}} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5187,"item_index":7,"menu_item_id":3} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5187,"item_index":8,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":5,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":1245.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5187}} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5187,"item_index":8,"menu_item_id":13} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5187,"item_index":9,"item_data":{"menu_item_id":402,"restaurant_category_id":39,"restaurant_category_name":"DESSERT BAR","item_name":"HOT GULAB JAMUN","quantity":2,"price":325.0,"discount_percent":0.0,"discount_amount":0.0,"total":650.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5187}} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5187,"item_index":9,"menu_item_id":402} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5187,"item_index":10,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5187}} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5187,"item_index":10,"menu_item_id":396} 
[2026-02-28 19:08:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5182,"new_order_id":5187,"order_number":"AZS-280226-015"} 
[2026-02-28 19:08:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5187,"item_index":0,"item_id":25292} 
[2026-02-28 19:08:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5187,"item_index":1,"item_id":25293} 
[2026-02-28 19:08:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5187,"item_index":2,"item_id":25294} 
[2026-02-28 19:08:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5187,"item_index":3,"item_id":25295} 
[2026-02-28 19:08:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5187,"item_index":4,"item_id":25296} 
[2026-02-28 19:08:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5187,"item_index":5,"item_id":25297} 
[2026-02-28 19:08:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5187,"item_index":6,"item_id":25298} 
[2026-02-28 19:08:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5187,"item_index":7,"item_id":25299} 
[2026-02-28 19:08:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5187,"item_index":8,"item_id":25300} 
[2026-02-28 19:08:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5187,"item_index":9,"item_id":25301} 
[2026-02-28 19:08:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":11,"order_id":5187,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":115,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":25292},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":25293},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":25294},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25295},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25296},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25297},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":25298},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25299},{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":25300},{"menu_item_id":402,"quantity":2,"price":325,"discount_percent":0,"notes":null,"id":25301},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":115,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":402,"quantity":2,"price":325,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-02-28 19:08:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5187,"items_count":11} 
[2026-02-28 19:08:21] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":11,"items_to_remove":[25314,25315,25316,25317,25318,25319,25320,25321,25322,25323,25324],"items":[{"id":null,"menu_item_id":115,"quantity":1},{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":48,"quantity":2},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":13,"quantity":5},{"id":null,"menu_item_id":402,"quantity":2},{"id":null,"menu_item_id":396,"quantity":1}]} 
[2026-02-28 19:08:21] local.INFO: PosOrderController::update - Item changes check {"order_id":5187,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["115|1|","102|1|","48|2|","61|2|","56|1|","5|1|","403|1|","3|1|","13|5|","402|2|","396|1|"],"new_items_map_keys":["115|1|","102|1|","48|2|","61|2|","56|1|","5|1|","403|1|","3|1|","13|5|","402|2|","396|1|"]} 
[2026-02-28 19:08:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5187,"order_number":"AZS-280226-015"} 
[2026-02-28 19:08:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5187,"order_number":"AZS-280226-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 19:08:21"} 
[2026-02-28 19:11:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5181,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null,"id":25284},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":25285},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":25286},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25287},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25288},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25289},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25290},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25291}],"validated_items":[{"id":25284,"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null},{"id":25285,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":25286,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":25287,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25288,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25289,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25290,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":25291,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-28 19:11:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5181,"items_count":8} 
[2026-02-28 19:11:12] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25284,"menu_item_id":101,"quantity":1},{"id":25285,"menu_item_id":64,"quantity":1},{"id":25286,"menu_item_id":396,"quantity":4},{"id":25287,"menu_item_id":61,"quantity":2},{"id":25288,"menu_item_id":56,"quantity":1},{"id":25289,"menu_item_id":5,"quantity":1},{"id":25290,"menu_item_id":67,"quantity":1},{"id":25291,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 19:11:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5181,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["101|1|","64|1|","396|4|","61|2|","56|1|","5|1|","67|1|","3|1|"],"new_items_map_keys":["101|1|","64|1|","396|4|","61|2|","56|1|","5|1|","67|1|","3|1|"]} 
[2026-02-28 19:11:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5181,"order_number":"AZS-280226-016"} 
[2026-02-28 19:11:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5181,"order_number":"AZS-280226-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 19:11:12"} 
[2026-02-28 19:12:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5179,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":7,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":25280},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":25281}],"validated_items":[{"id":25280,"menu_item_id":7,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":25281,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-02-28 19:12:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5179,"items_count":2} 
[2026-02-28 19:12:13] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25280,"menu_item_id":7,"quantity":1},{"id":25281,"menu_item_id":13,"quantity":1}]} 
[2026-02-28 19:12:13] local.INFO: PosOrderController::update - Item changes check {"order_id":5179,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["7|1|","13|1|"],"new_items_map_keys":["7|1|","13|1|"]} 
[2026-02-28 19:12:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5179,"order_number":"AZS-280226-018"} 
[2026-02-28 19:12:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5179,"order_number":"AZS-280226-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 19:12:13"} 
[2026-02-28 19:16:31] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5179,"order_number":"AZS-280226-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 19:16:31"} 
[2026-02-28 19:16:31] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5179,"order_number":"AZS-280226-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 19:16:31"} 
[2026-02-28 19:16:31] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5179,"order_number":"AZS-280226-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 19:16:31"} 
[2026-02-28 19:16:31] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5179,"order_number":"AZS-280226-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 19:16:31"} 
[2026-02-28 19:16:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5179,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":7,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":25280},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":25281}],"validated_items":[{"id":25280,"menu_item_id":7,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":25281,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-02-28 19:16:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5179,"items_count":2} 
[2026-02-28 19:16:31] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25280,"menu_item_id":7,"quantity":1},{"id":25281,"menu_item_id":13,"quantity":1}]} 
[2026-02-28 19:16:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5179,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["7|1|","13|1|"],"new_items_map_keys":["7|1|","13|1|"]} 
[2026-02-28 19:16:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5179,"order_number":"AZS-280226-018"} 
[2026-02-28 19:16:31] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5179,"order_number":"AZS-280226-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-28 19:16:31","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 19:16:31"} 
[2026-02-28 19:16:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5179,"order_number":"AZS-280226-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 19:16:31"} 
[2026-02-28 19:16:31] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5179,"order_number":"AZS-280226-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-28 19:16:31","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-02-28 19:16:31"} 
[2026-02-28 19:16:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5181,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null,"id":25284},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":25285},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":25286},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25287},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25288},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25289},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25290},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25291}],"validated_items":[{"id":25284,"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null},{"id":25285,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":25286,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":25287,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25288,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25289,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25290,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":25291,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-28 19:16:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5181,"items_count":8} 
[2026-02-28 19:16:44] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25284,"menu_item_id":101,"quantity":1},{"id":25285,"menu_item_id":64,"quantity":1},{"id":25286,"menu_item_id":396,"quantity":4},{"id":25287,"menu_item_id":61,"quantity":2},{"id":25288,"menu_item_id":56,"quantity":1},{"id":25289,"menu_item_id":5,"quantity":1},{"id":25290,"menu_item_id":67,"quantity":1},{"id":25291,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 19:16:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5181,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["101|1|","64|1|","396|4|","61|2|","56|1|","5|1|","67|1|","3|1|"],"new_items_map_keys":["101|1|","64|1|","396|4|","61|2|","56|1|","5|1|","67|1|","3|1|"]} 
[2026-02-28 19:16:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5181,"order_number":"AZS-280226-016"} 
[2026-02-28 19:16:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5181,"order_number":"AZS-280226-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 19:16:44"} 
[2026-02-28 19:20:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":5187,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":115,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":25314},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":25315},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":25316},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25317},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25318},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25319},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":25320},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25321},{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":25322},{"menu_item_id":402,"quantity":2,"price":325,"discount_percent":0,"notes":null,"id":25323},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25324}],"validated_items":[{"id":25314,"menu_item_id":115,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":25315,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":25316,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":25317,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25318,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25319,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25320,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":25321,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":25322,"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null},{"id":25323,"menu_item_id":402,"quantity":2,"price":325,"discount_percent":0,"notes":null},{"id":25324,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-02-28 19:20:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5187,"items_count":11} 
[2026-02-28 19:20:14] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25314,"menu_item_id":115,"quantity":1},{"id":25315,"menu_item_id":102,"quantity":1},{"id":25316,"menu_item_id":48,"quantity":2},{"id":25317,"menu_item_id":61,"quantity":2},{"id":25318,"menu_item_id":56,"quantity":1},{"id":25319,"menu_item_id":5,"quantity":1},{"id":25320,"menu_item_id":403,"quantity":1},{"id":25321,"menu_item_id":3,"quantity":1},{"id":25322,"menu_item_id":13,"quantity":5},{"id":25323,"menu_item_id":402,"quantity":2},{"id":25324,"menu_item_id":396,"quantity":1}]} 
[2026-02-28 19:20:14] local.INFO: PosOrderController::update - Item changes check {"order_id":5187,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["115|1|","102|1|","48|2|","61|2|","56|1|","5|1|","403|1|","3|1|","13|5|","402|2|","396|1|"],"new_items_map_keys":["115|1|","102|1|","48|2|","61|2|","56|1|","5|1|","403|1|","3|1|","13|5|","402|2|","396|1|"]} 
[2026-02-28 19:20:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5187,"order_number":"AZS-280226-015"} 
[2026-02-28 19:20:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5187,"order_number":"AZS-280226-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 19:20:14"} 
[2026-02-28 19:20:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":5187,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":115,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":25314},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":25315},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":25316},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25317},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25318},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25319},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":25320},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25321},{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":25322},{"menu_item_id":402,"quantity":2,"price":325,"discount_percent":0,"notes":null,"id":25323},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25324}],"validated_items":[{"id":25314,"menu_item_id":115,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":25315,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":25316,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":25317,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25318,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25319,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25320,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":25321,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":25322,"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null},{"id":25323,"menu_item_id":402,"quantity":2,"price":325,"discount_percent":0,"notes":null},{"id":25324,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-02-28 19:20:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5187,"items_count":11} 
[2026-02-28 19:20:24] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25314,"menu_item_id":115,"quantity":1},{"id":25315,"menu_item_id":102,"quantity":1},{"id":25316,"menu_item_id":48,"quantity":2},{"id":25317,"menu_item_id":61,"quantity":2},{"id":25318,"menu_item_id":56,"quantity":1},{"id":25319,"menu_item_id":5,"quantity":1},{"id":25320,"menu_item_id":403,"quantity":1},{"id":25321,"menu_item_id":3,"quantity":1},{"id":25322,"menu_item_id":13,"quantity":5},{"id":25323,"menu_item_id":402,"quantity":2},{"id":25324,"menu_item_id":396,"quantity":1}]} 
[2026-02-28 19:20:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5187,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["115|1|","102|1|","48|2|","61|2|","56|1|","5|1|","403|1|","3|1|","13|5|","402|2|","396|1|"],"new_items_map_keys":["115|1|","102|1|","48|2|","61|2|","56|1|","5|1|","403|1|","3|1|","13|5|","402|2|","396|1|"]} 
[2026-02-28 19:20:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5187,"order_number":"AZS-280226-015"} 
[2026-02-28 19:20:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5187,"order_number":"AZS-280226-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 19:20:24"} 
[2026-02-28 19:20:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":5187,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":115,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":25314},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":25315},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":25316},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25317},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25318},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25319},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":25320},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25321},{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":25322},{"menu_item_id":402,"quantity":2,"price":325,"discount_percent":0,"notes":null,"id":25323},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25324}],"validated_items":[{"id":25314,"menu_item_id":115,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":25315,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":25316,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":25317,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25318,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25319,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25320,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":25321,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":25322,"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null},{"id":25323,"menu_item_id":402,"quantity":2,"price":325,"discount_percent":0,"notes":null},{"id":25324,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-02-28 19:20:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5187,"items_count":11} 
[2026-02-28 19:20:56] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25314,"menu_item_id":115,"quantity":1},{"id":25315,"menu_item_id":102,"quantity":1},{"id":25316,"menu_item_id":48,"quantity":2},{"id":25317,"menu_item_id":61,"quantity":2},{"id":25318,"menu_item_id":56,"quantity":1},{"id":25319,"menu_item_id":5,"quantity":1},{"id":25320,"menu_item_id":403,"quantity":1},{"id":25321,"menu_item_id":3,"quantity":1},{"id":25322,"menu_item_id":13,"quantity":5},{"id":25323,"menu_item_id":402,"quantity":2},{"id":25324,"menu_item_id":396,"quantity":1}]} 
[2026-02-28 19:20:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5187,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["115|1|","102|1|","48|2|","61|2|","56|1|","5|1|","403|1|","3|1|","13|5|","402|2|","396|1|"],"new_items_map_keys":["115|1|","102|1|","48|2|","61|2|","56|1|","5|1|","403|1|","3|1|","13|5|","402|2|","396|1|"]} 
[2026-02-28 19:20:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5187,"order_number":"AZS-280226-015"} 
[2026-02-28 19:20:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5187,"order_number":"AZS-280226-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 19:20:56"} 
[2026-02-28 19:21:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5186,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25311},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":25312},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25313}],"validated_items":[{"id":25311,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25312,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":25313,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-28 19:21:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5186,"items_count":3} 
[2026-02-28 19:21:25] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25311,"menu_item_id":99,"quantity":1},{"id":25312,"menu_item_id":396,"quantity":3},{"id":25313,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 19:21:25] local.INFO: PosOrderController::update - Item changes check {"order_id":5186,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["99|1|","396|3|","5|1|"],"new_items_map_keys":["99|1|","396|3|","5|1|"]} 
[2026-02-28 19:21:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5186,"order_number":"AZS-280226-019"} 
[2026-02-28 19:21:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5186,"order_number":"AZS-280226-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 19:21:25"} 
[2026-02-28 19:21:45] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5181,"order_number":"AZS-280226-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 19:21:45"} 
[2026-02-28 19:21:45] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5181,"order_number":"AZS-280226-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 19:21:45"} 
[2026-02-28 19:21:45] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5181,"order_number":"AZS-280226-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 19:21:45"} 
[2026-02-28 19:21:45] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5181,"order_number":"AZS-280226-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 19:21:45"} 
[2026-02-28 19:21:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5181,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null,"id":25284},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":25285},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":25286},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25287},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25288},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25289},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25290},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25291}],"validated_items":[{"id":25284,"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null},{"id":25285,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":25286,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":25287,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25288,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25289,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25290,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":25291,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-28 19:21:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5181,"items_count":8} 
[2026-02-28 19:21:45] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25284,"menu_item_id":101,"quantity":1},{"id":25285,"menu_item_id":64,"quantity":1},{"id":25286,"menu_item_id":396,"quantity":4},{"id":25287,"menu_item_id":61,"quantity":1},{"id":25288,"menu_item_id":56,"quantity":1},{"id":25289,"menu_item_id":5,"quantity":1},{"id":25290,"menu_item_id":67,"quantity":1},{"id":25291,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 19:21:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5181,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["101|1|","64|1|","396|4|","61|2|","56|1|","5|1|","67|1|","3|1|"],"new_items_map_keys":["101|1|","64|1|","396|4|","61|1|","56|1|","5|1|","67|1|","3|1|"]} 
[2026-02-28 19:21:45] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5181,"order_number":"AZS-280226-016","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5500,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-02-28 19:21:45","original_payment_amount":"0.00","grand_total":5231.0,"timestamp":"2026-02-28 19:21:45"} 
[2026-02-28 19:21:45] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5181,"order_number":"AZS-280226-016"} 
[2026-02-28 19:21:45] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-016","replaced_order_id":5181} 
[2026-02-28 19:21:45] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5181,"new_order_id":5188,"order_number":"AZS-280226-016","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5500.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-02-28 19:21:45","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-02-28 19:21:45"} 
[2026-02-28 19:21:45] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5188,"items_count":8,"items":[{"menu_item_id":101,"quantity":1,"price":2399.0},{"menu_item_id":64,"quantity":1,"price":999.0},{"menu_item_id":396,"quantity":4,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":67,"quantity":1,"price":599.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-02-28 19:21:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5188,"item_index":0,"item_data":{"menu_item_id":101,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Full","quantity":1,"price":2399.0,"discount_percent":0.0,"discount_amount":0.0,"total":2399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5188}} 
[2026-02-28 19:21:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5188,"item_index":0,"menu_item_id":101} 
[2026-02-28 19:21:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5188,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":999.0,"discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5188}} 
[2026-02-28 19:21:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5188,"item_index":1,"menu_item_id":64} 
[2026-02-28 19:21:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5188,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5188}} 
[2026-02-28 19:21:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5188,"item_index":2,"menu_item_id":396} 
[2026-02-28 19:21:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5188,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5188}} 
[2026-02-28 19:21:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5188,"item_index":3,"menu_item_id":61} 
[2026-02-28 19:21:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5188,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5188}} 
[2026-02-28 19:21:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5188,"item_index":4,"menu_item_id":56} 
[2026-02-28 19:21:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5188,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5188}} 
[2026-02-28 19:21:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5188,"item_index":5,"menu_item_id":5} 
[2026-02-28 19:21:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5188,"item_index":6,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":1,"price":599.0,"discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5188}} 
[2026-02-28 19:21:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5188,"item_index":6,"menu_item_id":67} 
[2026-02-28 19:21:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5188,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5188}} 
[2026-02-28 19:21:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5188,"item_index":7,"menu_item_id":3} 
[2026-02-28 19:21:45] local.ERROR: Error tracking recipe usage for order 5188: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5188, 101, 77, 1, 1, 0.00, Order #AZS-280226-016 - 1x Chicken Peshawari Karahi - Full, 2026-02-28 19:21:45, 2026-02-28 19:21:45))  
[2026-02-28 19:21:45] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5181,"new_order_id":5188,"order_number":"AZS-280226-016"} 
[2026-02-28 19:21:46] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5181,"new_order_id":5188,"order_number":"AZS-280226-016","route":"api/orders/5181"} 
[2026-02-28 19:23:41] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5186,"order_number":"AZS-280226-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 19:23:41"} 
[2026-02-28 19:23:41] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5186,"order_number":"AZS-280226-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 19:23:41"} 
[2026-02-28 19:23:41] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5186,"order_number":"AZS-280226-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 19:23:41"} 
[2026-02-28 19:23:41] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5186,"order_number":"AZS-280226-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 19:23:41"} 
[2026-02-28 19:23:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5186,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25311},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":25312},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25313}],"validated_items":[{"id":25311,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25312,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":25313,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-28 19:23:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5186,"items_count":3} 
[2026-02-28 19:23:41] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25311,"menu_item_id":99,"quantity":1},{"id":25312,"menu_item_id":396,"quantity":3},{"id":25313,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 19:23:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5186,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["99|1|","396|3|","5|1|"],"new_items_map_keys":["99|1|","396|3|","5|1|"]} 
[2026-02-28 19:23:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5186,"order_number":"AZS-280226-019"} 
[2026-02-28 19:23:41] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5186,"order_number":"AZS-280226-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-28 19:23:41","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 19:23:41"} 
[2026-02-28 19:23:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5186,"order_number":"AZS-280226-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 19:23:41"} 
[2026-02-28 19:23:41] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5186,"order_number":"AZS-280226-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-28 19:23:41","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-02-28 19:23:41"} 
[2026-02-28 19:26:26] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5187,"order_number":"AZS-280226-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 19:26:26"} 
[2026-02-28 19:26:26] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5187,"order_number":"AZS-280226-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 19:26:26"} 
[2026-02-28 19:26:26] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5187,"order_number":"AZS-280226-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 19:26:26"} 
[2026-02-28 19:26:26] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5187,"order_number":"AZS-280226-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 19:26:26"} 
[2026-02-28 19:26:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":5187,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":115,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":25314},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":25315},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":25316},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25317},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25318},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25319},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":25320},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25321},{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":25322},{"menu_item_id":402,"quantity":2,"price":325,"discount_percent":0,"notes":null,"id":25323},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25324}],"validated_items":[{"id":25314,"menu_item_id":115,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":25315,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":25316,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":25317,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25318,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25319,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25320,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":25321,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":25322,"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null},{"id":25323,"menu_item_id":402,"quantity":2,"price":325,"discount_percent":0,"notes":null},{"id":25324,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-02-28 19:26:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5187,"items_count":11} 
[2026-02-28 19:26:26] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25314,"menu_item_id":115,"quantity":1},{"id":25315,"menu_item_id":102,"quantity":1},{"id":25316,"menu_item_id":48,"quantity":2},{"id":25317,"menu_item_id":61,"quantity":2},{"id":25318,"menu_item_id":56,"quantity":1},{"id":25319,"menu_item_id":5,"quantity":1},{"id":25320,"menu_item_id":403,"quantity":1},{"id":25321,"menu_item_id":3,"quantity":1},{"id":25322,"menu_item_id":13,"quantity":5},{"id":25323,"menu_item_id":402,"quantity":2},{"id":25324,"menu_item_id":396,"quantity":1}]} 
[2026-02-28 19:26:26] local.INFO: PosOrderController::update - Item changes check {"order_id":5187,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["115|1|","102|1|","48|2|","61|2|","56|1|","5|1|","403|1|","3|1|","13|5|","402|2|","396|1|"],"new_items_map_keys":["115|1|","102|1|","48|2|","61|2|","56|1|","5|1|","403|1|","3|1|","13|5|","402|2|","396|1|"]} 
[2026-02-28 19:26:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5187,"order_number":"AZS-280226-015"} 
[2026-02-28 19:26:26] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5187,"order_number":"AZS-280226-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":10000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-28 19:26:26","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 19:26:26"} 
[2026-02-28 19:26:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5187,"order_number":"AZS-280226-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 19:26:26"} 
[2026-02-28 19:26:26] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5187,"order_number":"AZS-280226-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"10000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-28 19:26:26","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"10000.00","database_verification_match":true,"timestamp":"2026-02-28 19:26:26"} 
[2026-02-28 19:27:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5185,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":25307},{"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null,"id":25308},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":25309},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25310},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25307,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":25308,"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null},{"id":25309,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":25310,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 19:27:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5185,"items_count":5} 
[2026-02-28 19:27:05] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25307,"menu_item_id":113,"quantity":1},{"id":25308,"menu_item_id":49,"quantity":2},{"id":25309,"menu_item_id":50,"quantity":2},{"id":25310,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 19:27:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5185,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["113|1|","49|2|","50|2|","5|1|"],"new_items_map_keys":["113|1|","49|2|","50|2|","5|1|","3|1|"]} 
[2026-02-28 19:27:05] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5185,"order_number":"AZS-280226-021"} 
[2026-02-28 19:27:05] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-021","replaced_order_id":5185} 
[2026-02-28 19:27:05] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5189,"items_count":5,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":49,"quantity":2,"price":"70.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-28 19:27:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5189,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5189}} 
[2026-02-28 19:27:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5189,"item_index":0,"menu_item_id":113} 
[2026-02-28 19:27:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5189,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5189}} 
[2026-02-28 19:27:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5189,"item_index":1,"menu_item_id":49} 
[2026-02-28 19:27:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5189,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5189}} 
[2026-02-28 19:27:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5189,"item_index":2,"menu_item_id":50} 
[2026-02-28 19:27:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5189,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5189}} 
[2026-02-28 19:27:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5189,"item_index":3,"menu_item_id":5} 
[2026-02-28 19:27:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5189,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5189}} 
[2026-02-28 19:27:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5189,"item_index":4,"menu_item_id":3} 
[2026-02-28 19:27:05] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5185,"new_order_id":5189,"order_number":"AZS-280226-021"} 
[2026-02-28 19:28:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5183,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":25302},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":25303}],"validated_items":[{"id":25302,"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":25303,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-02-28 19:28:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5183,"items_count":2} 
[2026-02-28 19:28:14] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25302,"menu_item_id":393,"quantity":1},{"id":25303,"menu_item_id":13,"quantity":2}]} 
[2026-02-28 19:28:14] local.INFO: PosOrderController::update - Item changes check {"order_id":5183,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["393|1|","13|2|"],"new_items_map_keys":["393|1|","13|2|"]} 
[2026-02-28 19:28:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5183,"order_number":"AZS-280226-020"} 
[2026-02-28 19:28:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5183,"order_number":"AZS-280226-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 19:28:14"} 
[2026-02-28 19:30:06] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5147,"order_number":"AZS-280226-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 19:30:06"} 
[2026-02-28 19:30:06] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5147,"order_number":"AZS-280226-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 19:30:06"} 
[2026-02-28 19:30:06] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5147,"order_number":"AZS-280226-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 19:30:06"} 
[2026-02-28 19:30:06] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5147,"order_number":"AZS-280226-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 19:30:06"} 
[2026-02-28 19:30:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5147,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25142}],"validated_items":[{"id":25142,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null}]} 
[2026-02-28 19:30:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5147,"items_count":1} 
[2026-02-28 19:30:06] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25142,"menu_item_id":96,"quantity":1}]} 
[2026-02-28 19:30:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5147,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["96|1|"],"new_items_map_keys":["96|1|"]} 
[2026-02-28 19:30:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5147,"order_number":"AZS-280226-002"} 
[2026-02-28 19:30:06] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5147,"order_number":"AZS-280226-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-28 19:30:06","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 19:30:06"} 
[2026-02-28 19:30:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5147,"order_number":"AZS-280226-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 19:30:06"} 
[2026-02-28 19:30:06] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5147,"order_number":"AZS-280226-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-28 19:30:06","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1200.00","database_verification_match":true,"timestamp":"2026-02-28 19:30:06"} 
[2026-02-28 19:30:23] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5183,"order_number":"AZS-280226-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 19:30:23"} 
[2026-02-28 19:30:23] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5183,"order_number":"AZS-280226-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 19:30:23"} 
[2026-02-28 19:30:23] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5183,"order_number":"AZS-280226-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 19:30:23"} 
[2026-02-28 19:30:23] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5183,"order_number":"AZS-280226-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 19:30:23"} 
[2026-02-28 19:30:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5183,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":25302},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":25303}],"validated_items":[{"id":25302,"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":25303,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-02-28 19:30:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5183,"items_count":2} 
[2026-02-28 19:30:23] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25302,"menu_item_id":393,"quantity":1},{"id":25303,"menu_item_id":13,"quantity":2}]} 
[2026-02-28 19:30:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5183,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["393|1|","13|2|"],"new_items_map_keys":["393|1|","13|2|"]} 
[2026-02-28 19:30:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5183,"order_number":"AZS-280226-020"} 
[2026-02-28 19:30:23] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5183,"order_number":"AZS-280226-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-28 19:30:23","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 19:30:23"} 
[2026-02-28 19:30:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5183,"order_number":"AZS-280226-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 19:30:23"} 
[2026-02-28 19:30:23] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5183,"order_number":"AZS-280226-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-28 19:30:23","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1100.00","database_verification_match":true,"timestamp":"2026-02-28 19:30:23"} 
[2026-02-28 19:31:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5189,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":25333},{"menu_item_id":49,"quantity":3,"discount_percent":0,"notes":null,"id":25334},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":25335},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25336},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":25337}],"validated_items":[{"id":25333,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":25334,"menu_item_id":49,"quantity":3,"discount_percent":0,"notes":null},{"id":25335,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":25336,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":25337,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 19:31:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5189,"items_count":5} 
[2026-02-28 19:31:07] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25333,"menu_item_id":113,"quantity":1},{"id":25334,"menu_item_id":49,"quantity":3},{"id":25335,"menu_item_id":50,"quantity":2},{"id":25336,"menu_item_id":5,"quantity":1},{"id":25337,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 19:31:07] local.INFO: PosOrderController::update - Item changes check {"order_id":5189,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["113|1|","49|2|","50|2|","5|1|","3|1|"],"new_items_map_keys":["113|1|","49|3|","50|2|","5|1|","3|1|"]} 
[2026-02-28 19:31:07] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5189,"order_number":"AZS-280226-021"} 
[2026-02-28 19:31:07] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-021","replaced_order_id":5189} 
[2026-02-28 19:31:07] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5190,"items_count":5,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":49,"quantity":3,"price":"70.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-28 19:31:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5190,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5190}} 
[2026-02-28 19:31:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5190,"item_index":0,"menu_item_id":113} 
[2026-02-28 19:31:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5190,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5190}} 
[2026-02-28 19:31:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5190,"item_index":1,"menu_item_id":49} 
[2026-02-28 19:31:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5190,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5190}} 
[2026-02-28 19:31:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5190,"item_index":2,"menu_item_id":50} 
[2026-02-28 19:31:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5190,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5190}} 
[2026-02-28 19:31:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5190,"item_index":3,"menu_item_id":5} 
[2026-02-28 19:31:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5190,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5190}} 
[2026-02-28 19:31:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5190,"item_index":4,"menu_item_id":3} 
[2026-02-28 19:31:07] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5189,"new_order_id":5190,"order_number":"AZS-280226-021"} 
[2026-02-28 19:35:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T07:35:05.910Z","date_to":"2026-02-28T19:35:05.910Z","per_page":"100"} 
[2026-02-28 19:35:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":45,"count":45,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","pending","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":24,"paid_count":18,"unpaid_count":3,"unique_order_numbers":21} 
[2026-02-28 19:35:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T07:35:05.879Z","date_to":"2026-02-28T19:35:05.879Z","per_page":"100"} 
[2026-02-28 19:35:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":45,"count":45,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","pending","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":24,"paid_count":18,"unpaid_count":3,"unique_order_numbers":21} 
[2026-02-28 19:35:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T07:35:05.879Z","date_to":"2026-02-28T19:35:05.879Z","per_page":"100"} 
[2026-02-28 19:35:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":45,"count":45,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","pending","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":24,"paid_count":18,"unpaid_count":3,"unique_order_numbers":21} 
[2026-02-28 19:43:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5190,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25338},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25339},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":25340},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25341},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25342}],"validated_items":[{"id":25338,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25339,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":25340,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":25341,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25342,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-28 19:43:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5190,"items_count":5} 
[2026-02-28 19:43:13] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25338,"menu_item_id":113,"quantity":1},{"id":25339,"menu_item_id":49,"quantity":3},{"id":25340,"menu_item_id":50,"quantity":2},{"id":25341,"menu_item_id":5,"quantity":1},{"id":25342,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 19:43:13] local.INFO: PosOrderController::update - Item changes check {"order_id":5190,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["113|1|","49|3|","50|2|","5|1|","3|1|"],"new_items_map_keys":["113|1|","49|3|","50|2|","5|1|","3|1|"]} 
[2026-02-28 19:43:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5190,"order_number":"AZS-280226-021"} 
[2026-02-28 19:43:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5190,"order_number":"AZS-280226-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 19:43:13"} 
[2026-02-28 19:43:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T07:43:35.251Z","date_to":"2026-02-28T19:43:35.251Z","per_page":"100"} 
[2026-02-28 19:43:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T07:43:35.232Z","date_to":"2026-02-28T19:43:35.232Z","per_page":"100"} 
[2026-02-28 19:43:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":45,"count":45,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","pending","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":24,"paid_count":18,"unpaid_count":3,"unique_order_numbers":21} 
[2026-02-28 19:43:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":45,"count":45,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","pending","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":24,"paid_count":18,"unpaid_count":3,"unique_order_numbers":21} 
[2026-02-28 19:43:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T07:43:35.232Z","date_to":"2026-02-28T19:43:35.232Z","per_page":"100"} 
[2026-02-28 19:43:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":45,"count":45,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","pending","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":24,"paid_count":18,"unpaid_count":3,"unique_order_numbers":21} 
[2026-02-28 19:44:31] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5163,"order_number":"AZS-280226-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3696,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 19:44:31"} 
[2026-02-28 19:44:31] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5163,"order_number":"AZS-280226-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3696,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 19:44:31"} 
[2026-02-28 19:44:31] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5163,"order_number":"AZS-280226-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3696,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 19:44:31"} 
[2026-02-28 19:44:31] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5163,"order_number":"AZS-280226-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3696,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 19:44:31"} 
[2026-02-28 19:44:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5163,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":393,"quantity":3,"price":499,"discount_percent":0,"notes":null,"id":25222},{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":25223}],"validated_items":[{"id":25222,"menu_item_id":393,"quantity":3,"price":499,"discount_percent":0,"notes":null},{"id":25223,"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null}]} 
[2026-02-28 19:44:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5163,"items_count":2} 
[2026-02-28 19:44:31] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25222,"menu_item_id":393,"quantity":3},{"id":25223,"menu_item_id":138,"quantity":1}]} 
[2026-02-28 19:44:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5163,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["393|3|","138|1|"],"new_items_map_keys":["393|3|","138|1|"]} 
[2026-02-28 19:44:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5163,"order_number":"AZS-280226-009"} 
[2026-02-28 19:44:31] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5163,"order_number":"AZS-280226-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3696,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-28 19:44:31","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 19:44:31"} 
[2026-02-28 19:44:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5163,"order_number":"AZS-280226-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 19:44:31"} 
[2026-02-28 19:44:31] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5163,"order_number":"AZS-280226-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3696.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-28 19:44:31","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3696,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3696.00","database_verification_match":true,"timestamp":"2026-02-28 19:44:31"} 
[2026-02-28 19:44:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T07:44:34.143Z","date_to":"2026-02-28T19:44:34.143Z","per_page":"100"} 
[2026-02-28 19:44:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":45,"count":45,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":24,"paid_count":19,"unpaid_count":2,"unique_order_numbers":21} 
[2026-02-28 19:44:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T07:44:34.162Z","date_to":"2026-02-28T19:44:34.162Z","per_page":"100"} 
[2026-02-28 19:44:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":45,"count":45,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":24,"paid_count":19,"unpaid_count":2,"unique_order_numbers":21} 
[2026-02-28 19:44:35] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T07:44:34.143Z","date_to":"2026-02-28T19:44:34.143Z","per_page":"100"} 
[2026-02-28 19:44:35] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":45,"count":45,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":24,"paid_count":19,"unpaid_count":2,"unique_order_numbers":21} 
[2026-02-28 20:00:05] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5190,"order_number":"AZS-280226-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2220,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 20:00:05"} 
[2026-02-28 20:00:05] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5190,"order_number":"AZS-280226-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2220,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 20:00:05"} 
[2026-02-28 20:00:05] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5190,"order_number":"AZS-280226-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2220,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 20:00:05"} 
[2026-02-28 20:00:05] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5190,"order_number":"AZS-280226-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2220,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 20:00:05"} 
[2026-02-28 20:00:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5190,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25338},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25339},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":25340},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25341},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25342}],"validated_items":[{"id":25338,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25339,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":25340,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":25341,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25342,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-28 20:00:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5190,"items_count":5} 
[2026-02-28 20:00:05] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25338,"menu_item_id":113,"quantity":1},{"id":25339,"menu_item_id":49,"quantity":3},{"id":25340,"menu_item_id":50,"quantity":2},{"id":25341,"menu_item_id":5,"quantity":1},{"id":25342,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 20:00:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5190,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["113|1|","49|3|","50|2|","5|1|","3|1|"],"new_items_map_keys":["113|1|","49|3|","50|2|","5|1|","3|1|"]} 
[2026-02-28 20:00:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5190,"order_number":"AZS-280226-021"} 
[2026-02-28 20:00:05] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5190,"order_number":"AZS-280226-021","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2220,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-28 20:00:05","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 20:00:05"} 
[2026-02-28 20:00:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5190,"order_number":"AZS-280226-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 20:00:05"} 
[2026-02-28 20:00:05] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5190,"order_number":"AZS-280226-021","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2220.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-28 20:00:05","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2220,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2220.00","database_verification_match":true,"timestamp":"2026-02-28 20:00:05"} 
[2026-02-28 21:25:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5191,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":7,"discount_percent":0,"notes":null,"id":25343},{"menu_item_id":48,"quantity":6,"discount_percent":0,"notes":null,"id":25344},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":25345},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":25343,"menu_item_id":98,"quantity":7,"discount_percent":0,"notes":null},{"id":25344,"menu_item_id":48,"quantity":6,"discount_percent":0,"notes":null},{"id":25345,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-02-28 21:25:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5191,"items_count":4} 
[2026-02-28 21:25:22] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25343,"menu_item_id":98,"quantity":7},{"id":25344,"menu_item_id":48,"quantity":6},{"id":25345,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":3}]} 
[2026-02-28 21:25:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5191,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["98|7|","48|6|","5|2|"],"new_items_map_keys":["98|7|","48|6|","5|2|","3|3|"]} 
[2026-02-28 21:25:22] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5191,"order_number":"AZS-280226-022"} 
[2026-02-28 21:25:22] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-022","replaced_order_id":5191} 
[2026-02-28 21:25:22] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5194,"items_count":4,"items":[{"menu_item_id":98,"quantity":7,"price":"1199.00"},{"menu_item_id":48,"quantity":6,"price":"250.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":3,"price":"270.00"}]} 
[2026-02-28 21:25:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5194,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":7,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":8393.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5194}} 
[2026-02-28 21:25:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5194,"item_index":0,"menu_item_id":98} 
[2026-02-28 21:25:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5194,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":6,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5194}} 
[2026-02-28 21:25:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5194,"item_index":1,"menu_item_id":48} 
[2026-02-28 21:25:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5194,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5194}} 
[2026-02-28 21:25:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5194,"item_index":2,"menu_item_id":5} 
[2026-02-28 21:25:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5194,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":3,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":810.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5194}} 
[2026-02-28 21:25:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5194,"item_index":3,"menu_item_id":3} 
[2026-02-28 21:25:22] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5191,"new_order_id":5194,"order_number":"AZS-280226-022"} 
[2026-02-28 21:29:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5194,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":7,"discount_percent":0,"notes":null,"id":25353},{"menu_item_id":48,"quantity":6,"discount_percent":0,"notes":null,"id":25354},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":25355},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null,"id":25356}],"validated_items":[{"id":25353,"menu_item_id":98,"quantity":7,"discount_percent":0,"notes":null},{"id":25354,"menu_item_id":48,"quantity":6,"discount_percent":0,"notes":null},{"id":25355,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":25356,"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-02-28 21:29:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5194,"items_count":4} 
[2026-02-28 21:29:00] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25353,"menu_item_id":98,"quantity":7},{"id":25354,"menu_item_id":48,"quantity":6},{"id":25355,"menu_item_id":5,"quantity":2},{"id":25356,"menu_item_id":3,"quantity":3}]} 
[2026-02-28 21:29:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5194,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["98|7|","48|6|","5|2|","3|3|"],"new_items_map_keys":["98|7|","48|6|","5|2|","3|3|"]} 
[2026-02-28 21:29:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5194,"order_number":"AZS-280226-022"} 
[2026-02-28 21:29:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5194,"order_number":"AZS-280226-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-28 21:29:00"} 
[2026-02-28 21:47:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5194,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":7,"discount_percent":0,"notes":null,"id":25353},{"menu_item_id":48,"quantity":10,"discount_percent":0,"notes":null,"id":25354},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":25355},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null,"id":25356},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":25353,"menu_item_id":98,"quantity":7,"discount_percent":0,"notes":null},{"id":25354,"menu_item_id":48,"quantity":10,"discount_percent":0,"notes":null},{"id":25355,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":25356,"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-28 21:47:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5194,"items_count":5} 
[2026-02-28 21:47:44] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25353,"menu_item_id":98,"quantity":7},{"id":25354,"menu_item_id":48,"quantity":10},{"id":25355,"menu_item_id":5,"quantity":2},{"id":25356,"menu_item_id":3,"quantity":3},{"id":null,"menu_item_id":396,"quantity":2}]} 
[2026-02-28 21:47:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5194,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["98|7|","48|6|","5|2|","3|3|"],"new_items_map_keys":["98|7|","48|10|","5|2|","3|3|","396|2|"]} 
[2026-02-28 21:47:44] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5194,"order_number":"AZS-280226-022"} 
[2026-02-28 21:47:44] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-022","replaced_order_id":5194} 
[2026-02-28 21:47:44] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5197,"items_count":5,"items":[{"menu_item_id":98,"quantity":7,"price":"1199.00"},{"menu_item_id":48,"quantity":10,"price":"250.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":3,"price":"270.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"}]} 
[2026-02-28 21:47:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5197,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":7,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":8393.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5197}} 
[2026-02-28 21:47:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5197,"item_index":0,"menu_item_id":98} 
[2026-02-28 21:47:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5197,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":10,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":2500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5197}} 
[2026-02-28 21:47:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5197,"item_index":1,"menu_item_id":48} 
[2026-02-28 21:47:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5197,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5197}} 
[2026-02-28 21:47:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5197,"item_index":2,"menu_item_id":5} 
[2026-02-28 21:47:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5197,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":3,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":810.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5197}} 
[2026-02-28 21:47:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5197,"item_index":3,"menu_item_id":3} 
[2026-02-28 21:47:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5197,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5197}} 
[2026-02-28 21:47:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5197,"item_index":4,"menu_item_id":396} 
[2026-02-28 21:47:45] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5194,"new_order_id":5197,"order_number":"AZS-280226-022"} 
[2026-02-28 21:48:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5197,"item_index":0,"item_id":25353} 
[2026-02-28 21:48:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5197,"item_index":1,"item_id":25354} 
[2026-02-28 21:48:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5197,"item_index":2,"item_id":25355} 
[2026-02-28 21:48:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5197,"item_index":3,"item_id":25356} 
[2026-02-28 21:48:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":5,"order_id":5197,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":7,"discount_percent":0,"notes":null,"id":25353},{"menu_item_id":48,"quantity":10,"discount_percent":0,"notes":null,"id":25354},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":25355},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null,"id":25356}],"validated_items":[{"menu_item_id":98,"quantity":7,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":10,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-02-28 21:48:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5197,"items_count":4} 
[2026-02-28 21:48:57] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":5,"items_to_remove":[25364,25365,25366,25367,25368],"items":[{"id":null,"menu_item_id":98,"quantity":7},{"id":null,"menu_item_id":48,"quantity":10},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":3}]} 
[2026-02-28 21:48:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5197,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["98|7|","48|10|","5|2|","3|3|","396|2|"],"new_items_map_keys":["98|7|","48|10|","5|2|","3|3|"]} 
[2026-02-28 21:48:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5197,"order_number":"AZS-280226-022"} 
[2026-02-28 21:48:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-022","replaced_order_id":5197} 
[2026-02-28 21:48:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5198,"items_count":4,"items":[{"menu_item_id":98,"quantity":7,"price":"1199.00"},{"menu_item_id":48,"quantity":10,"price":"250.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":3,"price":"270.00"}]} 
[2026-02-28 21:48:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5198,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":7,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":8393.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5198}} 
[2026-02-28 21:48:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5198,"item_index":0,"menu_item_id":98} 
[2026-02-28 21:48:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5198,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":10,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":2500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5198}} 
[2026-02-28 21:48:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5198,"item_index":1,"menu_item_id":48} 
[2026-02-28 21:48:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5198,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5198}} 
[2026-02-28 21:48:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5198,"item_index":2,"menu_item_id":5} 
[2026-02-28 21:48:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5198,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":3,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":810.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5198}} 
[2026-02-28 21:48:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5198,"item_index":3,"menu_item_id":3} 
[2026-02-28 21:48:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5197,"new_order_id":5198,"order_number":"AZS-280226-022"} 
[2026-02-28 21:49:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5193,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":6,"price":249,"discount_percent":0,"notes":null,"id":25352}],"validated_items":[{"id":25352,"menu_item_id":13,"quantity":6,"price":249,"discount_percent":0,"notes":null}]} 
[2026-02-28 21:49:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5193,"items_count":1} 
[2026-02-28 21:49:05] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25352,"menu_item_id":13,"quantity":6}]} 
[2026-02-28 21:49:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5193,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|6|"],"new_items_map_keys":["13|6|"]} 
[2026-02-28 21:49:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5193,"order_number":"AZS-280226-024"} 
[2026-02-28 21:49:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5193,"order_number":"AZS-280226-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 21:49:05"} 
[2026-02-28 21:49:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5195,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":25357},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25357,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 21:49:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5195,"items_count":2} 
[2026-02-28 21:49:23] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25357,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 21:49:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5195,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|2|"],"new_items_map_keys":["411|2|","5|1|"]} 
[2026-02-28 21:49:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5195,"order_number":"AZS-280226-025"} 
[2026-02-28 21:49:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-025","replaced_order_id":5195} 
[2026-02-28 21:49:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5199,"items_count":2,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-28 21:49:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5199,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5199}} 
[2026-02-28 21:49:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5199,"item_index":0,"menu_item_id":411} 
[2026-02-28 21:49:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5199,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5199}} 
[2026-02-28 21:49:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5199,"item_index":1,"menu_item_id":5} 
[2026-02-28 21:49:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5195,"new_order_id":5199,"order_number":"AZS-280226-025"} 
[2026-02-28 21:54:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5198,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":7,"price":1199,"discount_percent":0,"notes":null,"id":25369},{"menu_item_id":48,"quantity":10,"price":250,"discount_percent":0,"notes":null,"id":25370},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":25371},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null,"id":25372}],"validated_items":[{"id":25369,"menu_item_id":98,"quantity":7,"price":1199,"discount_percent":0,"notes":null},{"id":25370,"menu_item_id":48,"quantity":10,"price":250,"discount_percent":0,"notes":null},{"id":25371,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":25372,"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-28 21:54:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5198,"items_count":4} 
[2026-02-28 21:54:48] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25369,"menu_item_id":98,"quantity":7},{"id":25370,"menu_item_id":48,"quantity":10},{"id":25371,"menu_item_id":5,"quantity":2},{"id":25372,"menu_item_id":3,"quantity":3}]} 
[2026-02-28 21:54:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5198,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["98|7|","48|10|","5|2|","3|3|"],"new_items_map_keys":["98|7|","48|10|","5|2|","3|3|"]} 
[2026-02-28 21:54:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5198,"order_number":"AZS-280226-022"} 
[2026-02-28 21:54:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5198,"order_number":"AZS-280226-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 21:54:48"} 
[2026-02-28 21:58:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T09:58:10.391Z","date_to":"2026-02-28T21:58:10.391Z","per_page":"100"} 
[2026-02-28 21:58:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T09:58:10.400Z","date_to":"2026-02-28T21:58:10.400Z","per_page":"100"} 
[2026-02-28 21:58:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":56,"count":56,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-028","AZS-280226-027","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","pending","pending","pending","changed","pending","pending","pending","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":28,"paid_count":20,"unpaid_count":8,"unique_order_numbers":28} 
[2026-02-28 21:58:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":56,"count":56,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-028","AZS-280226-027","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","pending","pending","pending","changed","pending","pending","pending","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":28,"paid_count":20,"unpaid_count":8,"unique_order_numbers":28} 
[2026-02-28 21:58:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T09:58:10.391Z","date_to":"2026-02-28T21:58:10.391Z","per_page":"100"} 
[2026-02-28 21:58:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":56,"count":56,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-028","AZS-280226-027","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","pending","pending","pending","changed","pending","pending","pending","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":28,"paid_count":20,"unpaid_count":8,"unique_order_numbers":28} 
[2026-02-28 21:58:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":1,"order_id":5198,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":7,"discount_percent":0,"notes":null,"id":25369},{"menu_item_id":48,"quantity":10,"discount_percent":0,"notes":null,"id":25370},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null,"id":25372}],"validated_items":[{"id":25369,"menu_item_id":98,"quantity":7,"discount_percent":0,"notes":null},{"id":25370,"menu_item_id":48,"quantity":10,"discount_percent":0,"notes":null},{"id":25372,"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-02-28 21:58:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5198,"items_count":3} 
[2026-02-28 21:58:28] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":1,"items_to_remove":[25371],"items":[{"id":25369,"menu_item_id":98,"quantity":7},{"id":25370,"menu_item_id":48,"quantity":10},{"id":25372,"menu_item_id":3,"quantity":3}]} 
[2026-02-28 21:58:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5198,"has_item_changes":true,"old_items_count":4,"new_items_count":3,"old_items_map_keys":["98|7|","48|10|","5|2|","3|3|"],"new_items_map_keys":["98|7|","48|10|","3|3|"]} 
[2026-02-28 21:58:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5198,"order_number":"AZS-280226-022"} 
[2026-02-28 21:58:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-022","replaced_order_id":5198} 
[2026-02-28 21:58:28] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5202,"items_count":3,"items":[{"menu_item_id":98,"quantity":7,"price":"1199.00"},{"menu_item_id":48,"quantity":10,"price":"250.00"},{"menu_item_id":3,"quantity":3,"price":"270.00"}]} 
[2026-02-28 21:58:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5202,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":7,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":8393.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5202}} 
[2026-02-28 21:58:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5202,"item_index":0,"menu_item_id":98} 
[2026-02-28 21:58:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5202,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":10,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":2500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5202}} 
[2026-02-28 21:58:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5202,"item_index":1,"menu_item_id":48} 
[2026-02-28 21:58:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5202,"item_index":2,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":3,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":810.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5202}} 
[2026-02-28 21:58:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5202,"item_index":2,"menu_item_id":3} 
[2026-02-28 21:58:28] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5198,"new_order_id":5202,"order_number":"AZS-280226-022"} 
[2026-02-28 21:58:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5202,"item_index":0,"item_id":25369} 
[2026-02-28 21:58:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5202,"item_index":1,"item_id":25370} 
[2026-02-28 21:58:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5202,"item_index":2,"item_id":25372} 
[2026-02-28 21:58:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":5202,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":7,"price":1199,"discount_percent":0,"notes":null,"id":25369},{"menu_item_id":48,"quantity":10,"price":250,"discount_percent":0,"notes":null,"id":25370},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null,"id":25372}],"validated_items":[{"menu_item_id":98,"quantity":7,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":10,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-28 21:58:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5202,"items_count":3} 
[2026-02-28 21:58:33] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[25377,25378,25379],"items":[{"id":null,"menu_item_id":98,"quantity":7},{"id":null,"menu_item_id":48,"quantity":10},{"id":null,"menu_item_id":3,"quantity":3}]} 
[2026-02-28 21:58:33] local.INFO: PosOrderController::update - Item changes check {"order_id":5202,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["98|7|","48|10|","3|3|"],"new_items_map_keys":["98|7|","48|10|","3|3|"]} 
[2026-02-28 21:58:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5202,"order_number":"AZS-280226-022"} 
[2026-02-28 21:58:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5202,"order_number":"AZS-280226-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 21:58:33"} 
[2026-02-28 22:00:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5201,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null,"id":25376},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25376,"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:00:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5201,"items_count":2} 
[2026-02-28 22:00:36] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25376,"menu_item_id":411,"quantity":3},{"id":null,"menu_item_id":425,"quantity":1}]} 
[2026-02-28 22:00:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5201,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|3|"],"new_items_map_keys":["411|3|","425|1|"]} 
[2026-02-28 22:00:36] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5201,"order_number":"AZS-280226-028"} 
[2026-02-28 22:00:36] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-028","replaced_order_id":5201} 
[2026-02-28 22:00:36] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5203,"items_count":2,"items":[{"menu_item_id":411,"quantity":3,"price":"599.00"},{"menu_item_id":425,"quantity":1,"price":"99.00"}]} 
[2026-02-28 22:00:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5203,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":3,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1797.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5203}} 
[2026-02-28 22:00:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5203,"item_index":0,"menu_item_id":411} 
[2026-02-28 22:00:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5203,"item_index":1,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5203}} 
[2026-02-28 22:00:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5203,"item_index":1,"menu_item_id":425} 
[2026-02-28 22:00:36] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5201,"new_order_id":5203,"order_number":"AZS-280226-028"} 
[2026-02-28 22:09:18] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5202,"order_number":"AZS-280226-022","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":12305,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 22:09:18"} 
[2026-02-28 22:09:18] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5202,"order_number":"AZS-280226-022","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":12305,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 22:09:18"} 
[2026-02-28 22:09:18] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5202,"order_number":"AZS-280226-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":12305,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 22:09:18"} 
[2026-02-28 22:09:18] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5202,"order_number":"AZS-280226-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":12305,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 22:09:18"} 
[2026-02-28 22:09:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5202,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":7,"price":1199,"discount_percent":0,"notes":null,"id":25377},{"menu_item_id":48,"quantity":10,"price":250,"discount_percent":0,"notes":null,"id":25378},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null,"id":25379}],"validated_items":[{"id":25377,"menu_item_id":98,"quantity":7,"price":1199,"discount_percent":0,"notes":null},{"id":25378,"menu_item_id":48,"quantity":10,"price":250,"discount_percent":0,"notes":null},{"id":25379,"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:09:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5202,"items_count":3} 
[2026-02-28 22:09:18] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25377,"menu_item_id":98,"quantity":7},{"id":25378,"menu_item_id":48,"quantity":10},{"id":25379,"menu_item_id":3,"quantity":3}]} 
[2026-02-28 22:09:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5202,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["98|7|","48|10|","3|3|"],"new_items_map_keys":["98|7|","48|10|","3|3|"]} 
[2026-02-28 22:09:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5202,"order_number":"AZS-280226-022"} 
[2026-02-28 22:09:18] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5202,"order_number":"AZS-280226-022","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":12305,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-28 22:09:18","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 22:09:18"} 
[2026-02-28 22:09:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5202,"order_number":"AZS-280226-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 22:09:18"} 
[2026-02-28 22:09:18] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5202,"order_number":"AZS-280226-022","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"12305.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-28 22:09:18","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":12305,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"12305.00","database_verification_match":true,"timestamp":"2026-02-28 22:09:18"} 
[2026-02-28 22:10:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T10:10:24.398Z","date_to":"2026-02-28T22:10:24.398Z","per_page":"100"} 
[2026-02-28 22:10:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":59,"count":59,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","pending","changed","pending","pending","pending","changed","pending","pending","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":30,"paid_count":21,"unpaid_count":8,"unique_order_numbers":29} 
[2026-02-28 22:10:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T10:10:24.376Z","date_to":"2026-02-28T22:10:24.376Z","per_page":"100"} 
[2026-02-28 22:10:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":59,"count":59,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","pending","changed","pending","pending","pending","changed","pending","pending","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":30,"paid_count":21,"unpaid_count":8,"unique_order_numbers":29} 
[2026-02-28 22:10:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T10:10:24.376Z","date_to":"2026-02-28T22:10:24.376Z","per_page":"100"} 
[2026-02-28 22:10:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":59,"count":59,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","pending","changed","pending","pending","pending","changed","pending","pending","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":30,"paid_count":21,"unpaid_count":8,"unique_order_numbers":29} 
[2026-02-28 22:12:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5200,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":25375},{"menu_item_id":412,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25375,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:12:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5200,"items_count":3} 
[2026-02-28 22:12:42] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25375,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":412,"quantity":3},{"id":null,"menu_item_id":413,"quantity":1}]} 
[2026-02-28 22:12:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5200,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["411|2|"],"new_items_map_keys":["411|2|","412|3|","413|1|"]} 
[2026-02-28 22:12:42] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5200,"order_number":"AZS-280226-027"} 
[2026-02-28 22:12:42] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-027","replaced_order_id":5200} 
[2026-02-28 22:12:42] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5205,"items_count":3,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":412,"quantity":3,"price":"220.00"},{"menu_item_id":413,"quantity":1,"price":"200.00"}]} 
[2026-02-28 22:12:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5205,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5205}} 
[2026-02-28 22:12:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5205,"item_index":0,"menu_item_id":411} 
[2026-02-28 22:12:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5205,"item_index":1,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":3,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":660.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5205}} 
[2026-02-28 22:12:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5205,"item_index":1,"menu_item_id":412} 
[2026-02-28 22:12:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5205,"item_index":2,"item_data":{"menu_item_id":413,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Namkeen Lassi","quantity":1,"price":"200.00","discount_percent":0.0,"discount_amount":0.0,"total":200.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5205}} 
[2026-02-28 22:12:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5205,"item_index":2,"menu_item_id":413} 
[2026-02-28 22:12:42] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5200,"new_order_id":5205,"order_number":"AZS-280226-027"} 
[2026-02-28 22:13:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5205,"item_index":0,"item_id":25375} 
[2026-02-28 22:13:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":3,"order_id":5205,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":25375},{"menu_item_id":412,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:13:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5205,"items_count":4} 
[2026-02-28 22:13:02] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":3,"items_to_remove":[25383,25384,25385],"items":[{"id":null,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":412,"quantity":3},{"id":null,"menu_item_id":413,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 22:13:02] local.INFO: PosOrderController::update - Item changes check {"order_id":5205,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["411|2|","412|3|","413|1|"],"new_items_map_keys":["411|2|","412|3|","413|1|","5|1|"]} 
[2026-02-28 22:13:02] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5205,"order_number":"AZS-280226-027"} 
[2026-02-28 22:13:02] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-027","replaced_order_id":5205} 
[2026-02-28 22:13:02] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5206,"items_count":4,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":412,"quantity":3,"price":"220.00"},{"menu_item_id":413,"quantity":1,"price":"200.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-28 22:13:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5206,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5206}} 
[2026-02-28 22:13:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5206,"item_index":0,"menu_item_id":411} 
[2026-02-28 22:13:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5206,"item_index":1,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":3,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":660.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5206}} 
[2026-02-28 22:13:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5206,"item_index":1,"menu_item_id":412} 
[2026-02-28 22:13:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5206,"item_index":2,"item_data":{"menu_item_id":413,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Namkeen Lassi","quantity":1,"price":"200.00","discount_percent":0.0,"discount_amount":0.0,"total":200.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5206}} 
[2026-02-28 22:13:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5206,"item_index":2,"menu_item_id":413} 
[2026-02-28 22:13:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5206,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5206}} 
[2026-02-28 22:13:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5206,"item_index":3,"menu_item_id":5} 
[2026-02-28 22:13:02] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5205,"new_order_id":5206,"order_number":"AZS-280226-027"} 
[2026-02-28 22:13:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5203,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null,"id":25380},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null,"id":25381},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25380,"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null},{"id":25381,"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:13:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5203,"items_count":3} 
[2026-02-28 22:13:12] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25380,"menu_item_id":411,"quantity":3},{"id":25381,"menu_item_id":425,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 22:13:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5203,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["411|3|","425|1|"],"new_items_map_keys":["411|3|","425|1|","5|1|"]} 
[2026-02-28 22:13:12] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5203,"order_number":"AZS-280226-028"} 
[2026-02-28 22:13:12] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-028","replaced_order_id":5203} 
[2026-02-28 22:13:12] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5207,"items_count":3,"items":[{"menu_item_id":411,"quantity":3,"price":"599.00"},{"menu_item_id":425,"quantity":1,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-28 22:13:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5207,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":3,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1797.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5207}} 
[2026-02-28 22:13:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5207,"item_index":0,"menu_item_id":411} 
[2026-02-28 22:13:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5207,"item_index":1,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5207}} 
[2026-02-28 22:13:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5207,"item_index":1,"menu_item_id":425} 
[2026-02-28 22:13:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5207,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5207}} 
[2026-02-28 22:13:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5207,"item_index":2,"menu_item_id":5} 
[2026-02-28 22:13:12] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5203,"new_order_id":5207,"order_number":"AZS-280226-028"} 
[2026-02-28 22:13:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5204,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null,"id":25382},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25382,"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:13:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5204,"items_count":2} 
[2026-02-28 22:13:32] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25382,"menu_item_id":411,"quantity":4},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 22:13:32] local.INFO: PosOrderController::update - Item changes check {"order_id":5204,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|4|"],"new_items_map_keys":["411|4|","5|1|"]} 
[2026-02-28 22:13:32] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5204,"order_number":"AZS-280226-029"} 
[2026-02-28 22:13:32] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-029","replaced_order_id":5204} 
[2026-02-28 22:13:32] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5208,"items_count":2,"items":[{"menu_item_id":411,"quantity":4,"price":"599.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-28 22:13:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5208,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":4,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":2396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5208}} 
[2026-02-28 22:13:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5208,"item_index":0,"menu_item_id":411} 
[2026-02-28 22:13:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5208,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5208}} 
[2026-02-28 22:13:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5208,"item_index":1,"menu_item_id":5} 
[2026-02-28 22:13:32] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5204,"new_order_id":5208,"order_number":"AZS-280226-029"} 
[2026-02-28 22:14:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5207,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null,"id":25390},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null,"id":25391},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25392},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25390,"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null},{"id":25391,"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"id":25392,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:14:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5207,"items_count":4} 
[2026-02-28 22:14:34] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25390,"menu_item_id":411,"quantity":3},{"id":25391,"menu_item_id":425,"quantity":1},{"id":25392,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 22:14:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5207,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["411|3|","425|1|","5|1|"],"new_items_map_keys":["411|3|","425|1|","5|1|","3|1|"]} 
[2026-02-28 22:14:34] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5207,"order_number":"AZS-280226-028"} 
[2026-02-28 22:14:34] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-028","replaced_order_id":5207} 
[2026-02-28 22:14:34] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5209,"items_count":4,"items":[{"menu_item_id":411,"quantity":3,"price":"599.00"},{"menu_item_id":425,"quantity":1,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-28 22:14:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5209,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":3,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1797.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5209}} 
[2026-02-28 22:14:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5209,"item_index":0,"menu_item_id":411} 
[2026-02-28 22:14:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5209,"item_index":1,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5209}} 
[2026-02-28 22:14:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5209,"item_index":1,"menu_item_id":425} 
[2026-02-28 22:14:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5209,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5209}} 
[2026-02-28 22:14:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5209,"item_index":2,"menu_item_id":5} 
[2026-02-28 22:14:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5209,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5209}} 
[2026-02-28 22:14:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5209,"item_index":3,"menu_item_id":3} 
[2026-02-28 22:14:34] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5207,"new_order_id":5209,"order_number":"AZS-280226-028"} 
[2026-02-28 22:16:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5193,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":6,"price":249,"discount_percent":0,"notes":null,"id":25352},{"menu_item_id":400,"quantity":1000,"price":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25352,"menu_item_id":13,"quantity":6,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":400,"quantity":1000,"price":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:16:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5193,"items_count":2} 
[2026-02-28 22:16:49] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25352,"menu_item_id":13,"quantity":6},{"id":null,"menu_item_id":400,"quantity":1000}]} 
[2026-02-28 22:16:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5193,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["13|6|"],"new_items_map_keys":["13|6|","400|1000|"]} 
[2026-02-28 22:16:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5193,"order_number":"AZS-280226-024"} 
[2026-02-28 22:16:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-024","replaced_order_id":5193} 
[2026-02-28 22:16:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5210,"items_count":2,"items":[{"menu_item_id":13,"quantity":6,"price":249.0},{"menu_item_id":400,"quantity":1000,"price":1.0}]} 
[2026-02-28 22:16:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5210,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":6,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":1494.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5210}} 
[2026-02-28 22:16:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5210,"item_index":0,"menu_item_id":13} 
[2026-02-28 22:16:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5210,"item_index":1,"item_data":{"menu_item_id":400,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL ITEMS","quantity":1000,"price":1.0,"discount_percent":0.0,"discount_amount":0.0,"total":1000.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5210}} 
[2026-02-28 22:16:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5210,"item_index":1,"menu_item_id":400} 
[2026-02-28 22:16:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5193,"new_order_id":5210,"order_number":"AZS-280226-024"} 
[2026-02-28 22:16:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5210,"item_index":0,"item_id":25352} 
[2026-02-28 22:16:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":5210,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":6,"price":249,"discount_percent":0,"notes":null,"id":25352},{"menu_item_id":400,"quantity":1000,"price":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":13,"quantity":6,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":400,"quantity":1000,"price":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:16:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5210,"items_count":2} 
[2026-02-28 22:16:57] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[25399,25400],"items":[{"id":null,"menu_item_id":13,"quantity":6},{"id":null,"menu_item_id":400,"quantity":1000}]} 
[2026-02-28 22:16:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5210,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|6|","400|1000|"],"new_items_map_keys":["13|6|","400|1000|"]} 
[2026-02-28 22:16:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5210,"order_number":"AZS-280226-024"} 
[2026-02-28 22:16:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5210,"order_number":"AZS-280226-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 22:16:57"} 
[2026-02-28 22:18:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5206,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":25386},{"menu_item_id":412,"quantity":3,"discount_percent":0,"notes":null,"id":25387},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null,"id":25388},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25389},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":25386,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":25387,"menu_item_id":412,"quantity":3,"discount_percent":0,"notes":null},{"id":25388,"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null},{"id":25389,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:18:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5206,"items_count":5} 
[2026-02-28 22:18:55] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25386,"menu_item_id":411,"quantity":2},{"id":25387,"menu_item_id":412,"quantity":3},{"id":25388,"menu_item_id":413,"quantity":1},{"id":25389,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":416,"quantity":2}]} 
[2026-02-28 22:18:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5206,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["411|2|","412|3|","413|1|","5|1|"],"new_items_map_keys":["411|2|","412|3|","413|1|","5|1|","416|2|"]} 
[2026-02-28 22:18:55] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5206,"order_number":"AZS-280226-027"} 
[2026-02-28 22:18:55] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-027","replaced_order_id":5206} 
[2026-02-28 22:18:55] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5211,"items_count":5,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":412,"quantity":3,"price":"220.00"},{"menu_item_id":413,"quantity":1,"price":"200.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"}]} 
[2026-02-28 22:18:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5211,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5211}} 
[2026-02-28 22:18:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5211,"item_index":0,"menu_item_id":411} 
[2026-02-28 22:18:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5211,"item_index":1,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":3,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":660.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5211}} 
[2026-02-28 22:18:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5211,"item_index":1,"menu_item_id":412} 
[2026-02-28 22:18:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5211,"item_index":2,"item_data":{"menu_item_id":413,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Namkeen Lassi","quantity":1,"price":"200.00","discount_percent":0.0,"discount_amount":0.0,"total":200.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5211}} 
[2026-02-28 22:18:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5211,"item_index":2,"menu_item_id":413} 
[2026-02-28 22:18:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5211,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5211}} 
[2026-02-28 22:18:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5211,"item_index":3,"menu_item_id":5} 
[2026-02-28 22:18:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5211,"item_index":4,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5211}} 
[2026-02-28 22:18:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5211,"item_index":4,"menu_item_id":416} 
[2026-02-28 22:18:55] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5206,"new_order_id":5211,"order_number":"AZS-280226-027"} 
[2026-02-28 22:19:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5209,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null,"id":25395},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null,"id":25396},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25397},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":25398},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25395,"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null},{"id":25396,"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"id":25397,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":25398,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:19:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5209,"items_count":6} 
[2026-02-28 22:19:10] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25395,"menu_item_id":411,"quantity":3},{"id":25396,"menu_item_id":425,"quantity":1},{"id":25397,"menu_item_id":5,"quantity":1},{"id":25398,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":416,"quantity":2},{"id":null,"menu_item_id":422,"quantity":1}]} 
[2026-02-28 22:19:10] local.INFO: PosOrderController::update - Item changes check {"order_id":5209,"has_item_changes":true,"old_items_count":4,"new_items_count":6,"old_items_map_keys":["411|3|","425|1|","5|1|","3|1|"],"new_items_map_keys":["411|3|","425|1|","5|1|","3|1|","416|2|","422|1|"]} 
[2026-02-28 22:19:10] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5209,"order_number":"AZS-280226-028"} 
[2026-02-28 22:19:10] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-028","replaced_order_id":5209} 
[2026-02-28 22:19:10] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5212,"items_count":6,"items":[{"menu_item_id":411,"quantity":3,"price":"599.00"},{"menu_item_id":425,"quantity":1,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"},{"menu_item_id":422,"quantity":1,"price":"70.00"}]} 
[2026-02-28 22:19:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5212,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":3,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1797.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5212}} 
[2026-02-28 22:19:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5212,"item_index":0,"menu_item_id":411} 
[2026-02-28 22:19:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5212,"item_index":1,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5212}} 
[2026-02-28 22:19:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5212,"item_index":1,"menu_item_id":425} 
[2026-02-28 22:19:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5212,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5212}} 
[2026-02-28 22:19:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5212,"item_index":2,"menu_item_id":5} 
[2026-02-28 22:19:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5212,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5212}} 
[2026-02-28 22:19:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5212,"item_index":3,"menu_item_id":3} 
[2026-02-28 22:19:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5212,"item_index":4,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5212}} 
[2026-02-28 22:19:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5212,"item_index":4,"menu_item_id":416} 
[2026-02-28 22:19:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5212,"item_index":5,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5212}} 
[2026-02-28 22:19:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5212,"item_index":5,"menu_item_id":422} 
[2026-02-28 22:19:10] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5209,"new_order_id":5212,"order_number":"AZS-280226-028"} 
[2026-02-28 22:24:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5212,"item_index":0,"item_id":25395} 
[2026-02-28 22:24:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5212,"item_index":1,"item_id":25396} 
[2026-02-28 22:24:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5212,"item_index":2,"item_id":25397} 
[2026-02-28 22:24:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5212,"item_index":3,"item_id":25398} 
[2026-02-28 22:24:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5212,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null,"id":25395},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null,"id":25396},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25397},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":25398},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":422,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":422,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:24:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5212,"items_count":6} 
[2026-02-28 22:24:36] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[25406,25407,25408,25409,25410,25411],"items":[{"id":null,"menu_item_id":411,"quantity":3},{"id":null,"menu_item_id":425,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":416,"quantity":2},{"id":null,"menu_item_id":422,"quantity":2}]} 
[2026-02-28 22:24:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5212,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["411|3|","425|1|","5|1|","3|1|","416|2|","422|1|"],"new_items_map_keys":["411|3|","425|1|","5|1|","3|1|","416|2|","422|2|"]} 
[2026-02-28 22:24:36] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5212,"order_number":"AZS-280226-028"} 
[2026-02-28 22:24:36] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-028","replaced_order_id":5212} 
[2026-02-28 22:24:36] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5213,"items_count":6,"items":[{"menu_item_id":411,"quantity":3,"price":"599.00"},{"menu_item_id":425,"quantity":1,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"},{"menu_item_id":422,"quantity":2,"price":"70.00"}]} 
[2026-02-28 22:24:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5213,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":3,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1797.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5213}} 
[2026-02-28 22:24:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5213,"item_index":0,"menu_item_id":411} 
[2026-02-28 22:24:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5213,"item_index":1,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5213}} 
[2026-02-28 22:24:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5213,"item_index":1,"menu_item_id":425} 
[2026-02-28 22:24:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5213,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5213}} 
[2026-02-28 22:24:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5213,"item_index":2,"menu_item_id":5} 
[2026-02-28 22:24:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5213,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5213}} 
[2026-02-28 22:24:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5213,"item_index":3,"menu_item_id":3} 
[2026-02-28 22:24:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5213,"item_index":4,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5213}} 
[2026-02-28 22:24:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5213,"item_index":4,"menu_item_id":416} 
[2026-02-28 22:24:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5213,"item_index":5,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5213}} 
[2026-02-28 22:24:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5213,"item_index":5,"menu_item_id":422} 
[2026-02-28 22:24:36] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5212,"new_order_id":5213,"order_number":"AZS-280226-028"} 
[2026-02-28 22:30:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5208,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null,"id":25393},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25394},{"menu_item_id":421,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25393,"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null},{"id":25394,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":421,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:30:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5208,"items_count":3} 
[2026-02-28 22:30:33] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25393,"menu_item_id":411,"quantity":4},{"id":25394,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":421,"quantity":1}]} 
[2026-02-28 22:30:33] local.INFO: PosOrderController::update - Item changes check {"order_id":5208,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["411|4|","5|1|"],"new_items_map_keys":["411|4|","5|1|","421|1|"]} 
[2026-02-28 22:30:33] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5208,"order_number":"AZS-280226-029"} 
[2026-02-28 22:30:33] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-029","replaced_order_id":5208} 
[2026-02-28 22:30:33] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5215,"items_count":3,"items":[{"menu_item_id":411,"quantity":4,"price":"599.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":421,"quantity":1,"price":"70.00"}]} 
[2026-02-28 22:30:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5215,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":4,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":2396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5215}} 
[2026-02-28 22:30:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5215,"item_index":0,"menu_item_id":411} 
[2026-02-28 22:30:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5215,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5215}} 
[2026-02-28 22:30:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5215,"item_index":1,"menu_item_id":5} 
[2026-02-28 22:30:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5215,"item_index":2,"item_data":{"menu_item_id":421,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Omlate","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5215}} 
[2026-02-28 22:30:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5215,"item_index":2,"menu_item_id":421} 
[2026-02-28 22:30:33] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5208,"new_order_id":5215,"order_number":"AZS-280226-029"} 
[2026-02-28 22:32:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5215,"item_index":0,"item_id":25393} 
[2026-02-28 22:32:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5215,"item_index":1,"item_id":25394} 
[2026-02-28 22:32:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":3,"order_id":5215,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null,"id":25393},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25394},{"menu_item_id":421,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":421,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:32:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5215,"items_count":4} 
[2026-02-28 22:32:45] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":3,"items_to_remove":[25419,25420,25421],"items":[{"id":null,"menu_item_id":411,"quantity":4},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":421,"quantity":1},{"id":null,"menu_item_id":416,"quantity":2}]} 
[2026-02-28 22:32:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5215,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["411|4|","5|1|","421|1|"],"new_items_map_keys":["411|4|","5|1|","421|1|","416|2|"]} 
[2026-02-28 22:32:45] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5215,"order_number":"AZS-280226-029"} 
[2026-02-28 22:32:45] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-029","replaced_order_id":5215} 
[2026-02-28 22:32:45] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5216,"items_count":4,"items":[{"menu_item_id":411,"quantity":4,"price":"599.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":421,"quantity":1,"price":"70.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"}]} 
[2026-02-28 22:32:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5216,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":4,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":2396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5216}} 
[2026-02-28 22:32:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5216,"item_index":0,"menu_item_id":411} 
[2026-02-28 22:32:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5216,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5216}} 
[2026-02-28 22:32:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5216,"item_index":1,"menu_item_id":5} 
[2026-02-28 22:32:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5216,"item_index":2,"item_data":{"menu_item_id":421,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Omlate","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5216}} 
[2026-02-28 22:32:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5216,"item_index":2,"menu_item_id":421} 
[2026-02-28 22:32:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5216,"item_index":3,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5216}} 
[2026-02-28 22:32:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5216,"item_index":3,"menu_item_id":416} 
[2026-02-28 22:32:45] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5215,"new_order_id":5216,"order_number":"AZS-280226-029"} 
[2026-02-28 22:35:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5199,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":25373},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25374}],"validated_items":[{"id":25373,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":25374,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:35:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5199,"items_count":2} 
[2026-02-28 22:35:24] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25373,"menu_item_id":411,"quantity":2},{"id":25374,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 22:35:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5199,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|2|","5|1|"],"new_items_map_keys":["411|2|","5|1|"]} 
[2026-02-28 22:35:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5199,"order_number":"AZS-280226-025"} 
[2026-02-28 22:35:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5199,"order_number":"AZS-280226-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 22:35:24"} 
[2026-02-28 22:36:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T10:36:40.454Z","date_to":"2026-02-28T22:36:40.454Z","per_page":"100"} 
[2026-02-28 22:36:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T10:36:40.468Z","date_to":"2026-02-28T22:36:40.468Z","per_page":"100"} 
[2026-02-28 22:36:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":71,"count":71,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","pending","changed","changed","changed","pending","changed","changed","changed","changed","changed","pending","changed","changed","changed","pending","pending","changed","pending","changed","pending","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":41,"paid_count":21,"unpaid_count":9,"unique_order_numbers":30} 
[2026-02-28 22:36:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":71,"count":71,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","pending","changed","changed","changed","pending","changed","changed","changed","changed","changed","pending","changed","changed","changed","pending","pending","changed","pending","changed","pending","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":41,"paid_count":21,"unpaid_count":9,"unique_order_numbers":30} 
[2026-02-28 22:36:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T10:36:40.454Z","date_to":"2026-02-28T22:36:40.454Z","per_page":"100"} 
[2026-02-28 22:36:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":71,"count":71,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","pending","changed","changed","changed","pending","changed","changed","changed","changed","changed","pending","changed","changed","changed","pending","pending","changed","pending","changed","pending","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":41,"paid_count":21,"unpaid_count":9,"unique_order_numbers":30} 
[2026-02-28 22:36:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5213,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"price":599,"discount_percent":0,"notes":null,"id":25412},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25413},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25414},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25415},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25416},{"menu_item_id":422,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25417}],"validated_items":[{"id":25412,"menu_item_id":411,"quantity":3,"price":599,"discount_percent":0,"notes":null},{"id":25413,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":25414,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25415,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":25416,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":25417,"menu_item_id":422,"quantity":2,"price":70,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:36:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5213,"items_count":6} 
[2026-02-28 22:36:56] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25412,"menu_item_id":411,"quantity":3},{"id":25413,"menu_item_id":425,"quantity":1},{"id":25414,"menu_item_id":5,"quantity":1},{"id":25415,"menu_item_id":3,"quantity":1},{"id":25416,"menu_item_id":416,"quantity":2},{"id":25417,"menu_item_id":422,"quantity":2}]} 
[2026-02-28 22:36:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5213,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["411|3|","425|1|","5|1|","3|1|","416|2|","422|2|"],"new_items_map_keys":["411|3|","425|1|","5|1|","3|1|","416|2|","422|2|"]} 
[2026-02-28 22:36:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5213,"order_number":"AZS-280226-028"} 
[2026-02-28 22:36:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5213,"order_number":"AZS-280226-028","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 22:36:56"} 
[2026-02-28 22:40:14] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5213,"order_number":"AZS-280226-028","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 22:40:14"} 
[2026-02-28 22:40:14] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5213,"order_number":"AZS-280226-028","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 22:40:14"} 
[2026-02-28 22:40:14] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5213,"order_number":"AZS-280226-028","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 22:40:14"} 
[2026-02-28 22:40:14] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5213,"order_number":"AZS-280226-028","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 22:40:14"} 
[2026-02-28 22:40:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5213,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"price":599,"discount_percent":0,"notes":null,"id":25412},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25413},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25414},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25415},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25416},{"menu_item_id":422,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25417}],"validated_items":[{"id":25412,"menu_item_id":411,"quantity":3,"price":599,"discount_percent":0,"notes":null},{"id":25413,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":25414,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25415,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":25416,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":25417,"menu_item_id":422,"quantity":2,"price":70,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:40:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5213,"items_count":6} 
[2026-02-28 22:40:14] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25412,"menu_item_id":411,"quantity":3},{"id":25413,"menu_item_id":425,"quantity":1},{"id":25414,"menu_item_id":5,"quantity":1},{"id":25415,"menu_item_id":3,"quantity":1},{"id":25416,"menu_item_id":416,"quantity":2},{"id":25417,"menu_item_id":422,"quantity":2}]} 
[2026-02-28 22:40:14] local.INFO: PosOrderController::update - Item changes check {"order_id":5213,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["411|3|","425|1|","5|1|","3|1|","416|2|","422|2|"],"new_items_map_keys":["411|3|","425|1|","5|1|","3|1|","416|2|","422|2|"]} 
[2026-02-28 22:40:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5213,"order_number":"AZS-280226-028"} 
[2026-02-28 22:40:14] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5213,"order_number":"AZS-280226-028","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-28 22:40:14","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 22:40:14"} 
[2026-02-28 22:40:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5213,"order_number":"AZS-280226-028","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 22:40:14"} 
[2026-02-28 22:40:14] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5213,"order_number":"AZS-280226-028","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-28 22:40:14","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-02-28 22:40:14"} 
[2026-02-28 22:45:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5217,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":25426},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25426,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:45:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5217,"items_count":2} 
[2026-02-28 22:45:18] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25426,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":416,"quantity":1}]} 
[2026-02-28 22:45:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5217,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|","416|1|"]} 
[2026-02-28 22:45:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5217,"order_number":"AZS-280226-031"} 
[2026-02-28 22:45:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-031","replaced_order_id":5217} 
[2026-02-28 22:45:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5218,"items_count":2,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":416,"quantity":1,"price":"70.00"}]} 
[2026-02-28 22:45:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5218,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5218}} 
[2026-02-28 22:45:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5218,"item_index":0,"menu_item_id":411} 
[2026-02-28 22:45:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5218,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5218}} 
[2026-02-28 22:45:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5218,"item_index":1,"menu_item_id":416} 
[2026-02-28 22:45:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5217,"new_order_id":5218,"order_number":"AZS-280226-031"} 
[2026-02-28 22:45:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5218,"item_index":0,"item_id":25426} 
[2026-02-28 22:45:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":5218,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":25426},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:45:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5218,"items_count":2} 
[2026-02-28 22:45:22] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[25427,25428],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":416,"quantity":1}]} 
[2026-02-28 22:45:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5218,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","416|1|"],"new_items_map_keys":["411|1|","416|1|"]} 
[2026-02-28 22:45:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5218,"order_number":"AZS-280226-031"} 
[2026-02-28 22:45:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5218,"order_number":"AZS-280226-031","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-28 22:45:22"} 
[2026-02-28 22:45:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5216,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":4,"price":599,"discount_percent":0,"notes":null,"id":25422},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25423},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25424},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25425}],"validated_items":[{"id":25422,"menu_item_id":411,"quantity":4,"price":599,"discount_percent":0,"notes":null},{"id":25423,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25424,"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":25425,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:45:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5216,"items_count":4} 
[2026-02-28 22:45:51] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25422,"menu_item_id":411,"quantity":4},{"id":25423,"menu_item_id":5,"quantity":1},{"id":25424,"menu_item_id":421,"quantity":1},{"id":25425,"menu_item_id":416,"quantity":2}]} 
[2026-02-28 22:45:51] local.INFO: PosOrderController::update - Item changes check {"order_id":5216,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|4|","5|1|","421|1|","416|2|"],"new_items_map_keys":["411|4|","5|1|","421|1|","416|2|"]} 
[2026-02-28 22:45:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5216,"order_number":"AZS-280226-029"} 
[2026-02-28 22:45:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5216,"order_number":"AZS-280226-029","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 22:45:51"} 
[2026-02-28 22:47:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5196,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":25358},{"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null,"id":25359},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25360},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":25361},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":25362},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25363},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25358,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":25359,"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null},{"id":25360,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":25361,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":25362,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":25363,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:47:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5196,"items_count":7} 
[2026-02-28 22:47:13] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25358,"menu_item_id":106,"quantity":1},{"id":25359,"menu_item_id":52,"quantity":4},{"id":25360,"menu_item_id":396,"quantity":2},{"id":25361,"menu_item_id":61,"quantity":2},{"id":25362,"menu_item_id":56,"quantity":1},{"id":25363,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 22:47:13] local.INFO: PosOrderController::update - Item changes check {"order_id":5196,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["106|1|","52|4|","396|2|","61|2|","56|1|","5|1|"],"new_items_map_keys":["106|1|","52|4|","396|2|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-02-28 22:47:13] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5196,"order_number":"AZS-280226-026"} 
[2026-02-28 22:47:13] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-026","replaced_order_id":5196} 
[2026-02-28 22:47:13] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5219,"items_count":7,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":52,"quantity":4,"price":"70.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-02-28 22:47:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5219,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5219}} 
[2026-02-28 22:47:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5219,"item_index":0,"menu_item_id":106} 
[2026-02-28 22:47:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5219,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5219}} 
[2026-02-28 22:47:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5219,"item_index":1,"menu_item_id":52} 
[2026-02-28 22:47:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5219,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5219}} 
[2026-02-28 22:47:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5219,"item_index":2,"menu_item_id":396} 
[2026-02-28 22:47:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5219,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5219}} 
[2026-02-28 22:47:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5219,"item_index":3,"menu_item_id":61} 
[2026-02-28 22:47:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5219,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5219}} 
[2026-02-28 22:47:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5219,"item_index":4,"menu_item_id":56} 
[2026-02-28 22:47:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5219,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5219}} 
[2026-02-28 22:47:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5219,"item_index":5,"menu_item_id":5} 
[2026-02-28 22:47:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5219,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5219}} 
[2026-02-28 22:47:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5219,"item_index":6,"menu_item_id":3} 
[2026-02-28 22:47:13] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5196,"new_order_id":5219,"order_number":"AZS-280226-026"} 
[2026-02-28 22:50:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5192,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":25346},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":25347},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":25348},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25349},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25350},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25351}],"validated_items":[{"id":25346,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":25347,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":25348,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":25349,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25350,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25351,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:50:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5192,"items_count":6} 
[2026-02-28 22:50:35] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25346,"menu_item_id":106,"quantity":1},{"id":25347,"menu_item_id":105,"quantity":1},{"id":25348,"menu_item_id":48,"quantity":2},{"id":25349,"menu_item_id":5,"quantity":1},{"id":25350,"menu_item_id":61,"quantity":1},{"id":25351,"menu_item_id":56,"quantity":1}]} 
[2026-02-28 22:50:35] local.INFO: PosOrderController::update - Item changes check {"order_id":5192,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["106|1|","105|1|","48|2|","5|1|","61|1|","56|1|"],"new_items_map_keys":["106|1|","105|1|","48|2|","5|1|","61|1|","56|1|"]} 
[2026-02-28 22:50:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5192,"order_number":"AZS-280226-023"} 
[2026-02-28 22:50:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5192,"order_number":"AZS-280226-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 22:50:35"} 
[2026-02-28 22:51:09] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5216,"order_number":"AZS-280226-029","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2776,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 22:51:09"} 
[2026-02-28 22:51:09] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5216,"order_number":"AZS-280226-029","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2776,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 22:51:09"} 
[2026-02-28 22:51:09] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5216,"order_number":"AZS-280226-029","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2776,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 22:51:09"} 
[2026-02-28 22:51:09] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5216,"order_number":"AZS-280226-029","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2776,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 22:51:09"} 
[2026-02-28 22:51:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5216,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":4,"price":599,"discount_percent":0,"notes":null,"id":25422},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25423},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25424},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25425}],"validated_items":[{"id":25422,"menu_item_id":411,"quantity":4,"price":599,"discount_percent":0,"notes":null},{"id":25423,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25424,"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":25425,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:51:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5216,"items_count":4} 
[2026-02-28 22:51:09] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25422,"menu_item_id":411,"quantity":4},{"id":25423,"menu_item_id":5,"quantity":1},{"id":25424,"menu_item_id":421,"quantity":1},{"id":25425,"menu_item_id":416,"quantity":2}]} 
[2026-02-28 22:51:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5216,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|4|","5|1|","421|1|","416|2|"],"new_items_map_keys":["411|4|","5|1|","421|1|","416|2|"]} 
[2026-02-28 22:51:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5216,"order_number":"AZS-280226-029"} 
[2026-02-28 22:51:09] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5216,"order_number":"AZS-280226-029","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2776,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-28 22:51:09","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 22:51:09"} 
[2026-02-28 22:51:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5216,"order_number":"AZS-280226-029","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 22:51:09"} 
[2026-02-28 22:51:09] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5216,"order_number":"AZS-280226-029","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2776.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-28 22:51:09","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2776,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2776.00","database_verification_match":true,"timestamp":"2026-02-28 22:51:09"} 
[2026-02-28 22:51:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5210,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":6,"price":249,"discount_percent":0,"notes":null,"id":25399},{"menu_item_id":400,"quantity":1000,"price":1,"discount_percent":0,"notes":null,"id":25400}],"validated_items":[{"id":25399,"menu_item_id":13,"quantity":6,"price":249,"discount_percent":0,"notes":null},{"id":25400,"menu_item_id":400,"quantity":1000,"price":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:51:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5210,"items_count":2} 
[2026-02-28 22:51:18] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25399,"menu_item_id":13,"quantity":6},{"id":25400,"menu_item_id":400,"quantity":1000}]} 
[2026-02-28 22:51:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5210,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|6|","400|1000|"],"new_items_map_keys":["13|6|","400|1000|"]} 
[2026-02-28 22:51:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5210,"order_number":"AZS-280226-024"} 
[2026-02-28 22:51:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5210,"order_number":"AZS-280226-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 22:51:18"} 
[2026-02-28 22:51:40] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5210,"order_number":"AZS-280226-024","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 22:51:40"} 
[2026-02-28 22:51:40] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5210,"order_number":"AZS-280226-024","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 22:51:40"} 
[2026-02-28 22:51:40] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5210,"order_number":"AZS-280226-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 22:51:40"} 
[2026-02-28 22:51:40] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5210,"order_number":"AZS-280226-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 22:51:40"} 
[2026-02-28 22:51:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5210,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":25399},{"menu_item_id":400,"quantity":1000,"price":1,"discount_percent":0,"notes":null,"id":25400}],"validated_items":[{"id":25399,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null},{"id":25400,"menu_item_id":400,"quantity":1000,"price":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:51:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5210,"items_count":2} 
[2026-02-28 22:51:40] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25399,"menu_item_id":13,"quantity":4},{"id":25400,"menu_item_id":400,"quantity":1000}]} 
[2026-02-28 22:51:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5210,"has_item_changes":true,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|6|","400|1000|"],"new_items_map_keys":["13|4|","400|1000|"]} 
[2026-02-28 22:51:40] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5210,"order_number":"AZS-280226-024","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":2100,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-02-28 22:51:40","original_payment_amount":"0.00","grand_total":2096.0,"timestamp":"2026-02-28 22:51:40"} 
[2026-02-28 22:51:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5210,"order_number":"AZS-280226-024"} 
[2026-02-28 22:51:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-024","replaced_order_id":5210} 
[2026-02-28 22:51:40] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5210,"new_order_id":5220,"order_number":"AZS-280226-024","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"2100.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-02-28 22:51:40","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-02-28 22:51:40"} 
[2026-02-28 22:51:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5220,"items_count":2,"items":[{"menu_item_id":13,"quantity":4,"price":249.0},{"menu_item_id":400,"quantity":1000,"price":1.0}]} 
[2026-02-28 22:51:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5220,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":4,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5220}} 
[2026-02-28 22:51:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5220,"item_index":0,"menu_item_id":13} 
[2026-02-28 22:51:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5220,"item_index":1,"item_data":{"menu_item_id":400,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL ITEMS","quantity":1000,"price":1.0,"discount_percent":0.0,"discount_amount":0.0,"total":1000.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5220}} 
[2026-02-28 22:51:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5220,"item_index":1,"menu_item_id":400} 
[2026-02-28 22:51:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5210,"new_order_id":5220,"order_number":"AZS-280226-024"} 
[2026-02-28 22:51:41] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5210,"new_order_id":5220,"order_number":"AZS-280226-024","route":"api/orders/5210"} 
[2026-02-28 22:53:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5199,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":25373},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25374}],"validated_items":[{"id":25373,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":25374,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:53:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5199,"items_count":2} 
[2026-02-28 22:53:15] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25373,"menu_item_id":411,"quantity":2},{"id":25374,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 22:53:15] local.INFO: PosOrderController::update - Item changes check {"order_id":5199,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|2|","5|1|"],"new_items_map_keys":["411|2|","5|1|"]} 
[2026-02-28 22:53:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5199,"order_number":"AZS-280226-025"} 
[2026-02-28 22:53:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5199,"order_number":"AZS-280226-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 22:53:15"} 
[2026-02-28 22:54:25] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5199,"order_number":"AZS-280226-025","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 22:54:25"} 
[2026-02-28 22:54:25] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5199,"order_number":"AZS-280226-025","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 22:54:25"} 
[2026-02-28 22:54:25] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5199,"order_number":"AZS-280226-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 22:54:25"} 
[2026-02-28 22:54:25] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5199,"order_number":"AZS-280226-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 22:54:25"} 
[2026-02-28 22:54:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5199,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":25373},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25374}],"validated_items":[{"id":25373,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":25374,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:54:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5199,"items_count":2} 
[2026-02-28 22:54:25] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25373,"menu_item_id":411,"quantity":2},{"id":25374,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 22:54:25] local.INFO: PosOrderController::update - Item changes check {"order_id":5199,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|2|","5|1|"],"new_items_map_keys":["411|2|","5|1|"]} 
[2026-02-28 22:54:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5199,"order_number":"AZS-280226-025"} 
[2026-02-28 22:54:25] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5199,"order_number":"AZS-280226-025","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-28 22:54:25","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 22:54:25"} 
[2026-02-28 22:54:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5199,"order_number":"AZS-280226-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 22:54:25"} 
[2026-02-28 22:54:25] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5199,"order_number":"AZS-280226-025","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-28 22:54:25","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1500.00","database_verification_match":true,"timestamp":"2026-02-28 22:54:25"} 
[2026-02-28 22:55:12] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5192,"order_number":"AZS-280226-023","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":7093,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 22:55:12"} 
[2026-02-28 22:55:12] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5192,"order_number":"AZS-280226-023","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":7093,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 22:55:12"} 
[2026-02-28 22:55:12] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5192,"order_number":"AZS-280226-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7093,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 22:55:12"} 
[2026-02-28 22:55:12] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5192,"order_number":"AZS-280226-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7093,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 22:55:12"} 
[2026-02-28 22:55:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5192,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":25346},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":25347},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":25348},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25349},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25350},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25351}],"validated_items":[{"id":25346,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":25347,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":25348,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":25349,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25350,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25351,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-28 22:55:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5192,"items_count":6} 
[2026-02-28 22:55:12] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25346,"menu_item_id":106,"quantity":1},{"id":25347,"menu_item_id":105,"quantity":1},{"id":25348,"menu_item_id":48,"quantity":2},{"id":25349,"menu_item_id":5,"quantity":1},{"id":25350,"menu_item_id":61,"quantity":1},{"id":25351,"menu_item_id":56,"quantity":1}]} 
[2026-02-28 22:55:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5192,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["106|1|","105|1|","48|2|","5|1|","61|1|","56|1|"],"new_items_map_keys":["106|1|","105|1|","48|2|","5|1|","61|1|","56|1|"]} 
[2026-02-28 22:55:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5192,"order_number":"AZS-280226-023"} 
[2026-02-28 22:55:12] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5192,"order_number":"AZS-280226-023","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":7093,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-28 22:55:12","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 22:55:12"} 
[2026-02-28 22:55:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5192,"order_number":"AZS-280226-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 22:55:12"} 
[2026-02-28 22:55:12] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5192,"order_number":"AZS-280226-023","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"7093.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-28 22:55:12","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":7093,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"7093.00","database_verification_match":true,"timestamp":"2026-02-28 22:55:12"} 
[2026-02-28 22:55:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T10:55:17.629Z","date_to":"2026-02-28T22:55:17.629Z","per_page":"100"} 
[2026-02-28 22:55:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":75,"count":75,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","changed","pending","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed","changed","changed","pending","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":44,"paid_count":26,"unpaid_count":5,"unique_order_numbers":31} 
[2026-02-28 23:03:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5211,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":25401},{"menu_item_id":412,"quantity":3,"discount_percent":0,"notes":null,"id":25402},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null,"id":25403},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25404},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null,"id":25405},{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":25401,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":25402,"menu_item_id":412,"quantity":3,"discount_percent":0,"notes":null},{"id":25403,"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null},{"id":25404,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":25405,"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:03:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5211,"items_count":6} 
[2026-02-28 23:03:21] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25401,"menu_item_id":411,"quantity":2},{"id":25402,"menu_item_id":412,"quantity":3},{"id":25403,"menu_item_id":413,"quantity":1},{"id":25404,"menu_item_id":5,"quantity":1},{"id":25405,"menu_item_id":416,"quantity":2},{"id":null,"menu_item_id":6,"quantity":3}]} 
[2026-02-28 23:03:21] local.INFO: PosOrderController::update - Item changes check {"order_id":5211,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["411|2|","412|3|","413|1|","5|1|","416|2|"],"new_items_map_keys":["411|2|","412|3|","413|1|","5|1|","416|2|","6|3|"]} 
[2026-02-28 23:03:21] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5211,"order_number":"AZS-280226-027"} 
[2026-02-28 23:03:21] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-027","replaced_order_id":5211} 
[2026-02-28 23:03:21] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5222,"items_count":6,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":412,"quantity":3,"price":"220.00"},{"menu_item_id":413,"quantity":1,"price":"200.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"},{"menu_item_id":6,"quantity":3,"price":"199.00"}]} 
[2026-02-28 23:03:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5222,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5222}} 
[2026-02-28 23:03:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5222,"item_index":0,"menu_item_id":411} 
[2026-02-28 23:03:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5222,"item_index":1,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":3,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":660.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5222}} 
[2026-02-28 23:03:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5222,"item_index":1,"menu_item_id":412} 
[2026-02-28 23:03:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5222,"item_index":2,"item_data":{"menu_item_id":413,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Namkeen Lassi","quantity":1,"price":"200.00","discount_percent":0.0,"discount_amount":0.0,"total":200.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5222}} 
[2026-02-28 23:03:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5222,"item_index":2,"menu_item_id":413} 
[2026-02-28 23:03:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5222,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5222}} 
[2026-02-28 23:03:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5222,"item_index":3,"menu_item_id":5} 
[2026-02-28 23:03:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5222,"item_index":4,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5222}} 
[2026-02-28 23:03:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5222,"item_index":4,"menu_item_id":416} 
[2026-02-28 23:03:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5222,"item_index":5,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5222}} 
[2026-02-28 23:03:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5222,"item_index":5,"menu_item_id":6} 
[2026-02-28 23:03:21] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5211,"new_order_id":5222,"order_number":"AZS-280226-027"} 
[2026-02-28 23:07:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5221,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":25438},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null,"id":25439},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":421,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25438,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":25439,"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":421,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:07:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5221,"items_count":4} 
[2026-02-28 23:07:00] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25438,"menu_item_id":411,"quantity":2},{"id":25439,"menu_item_id":416,"quantity":1},{"id":null,"menu_item_id":425,"quantity":1},{"id":null,"menu_item_id":421,"quantity":1}]} 
[2026-02-28 23:07:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5221,"has_item_changes":true,"old_items_count":2,"new_items_count":4,"old_items_map_keys":["411|2|","416|1|"],"new_items_map_keys":["411|2|","416|1|","425|1|","421|1|"]} 
[2026-02-28 23:07:00] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5221,"order_number":"AZS-280226-032"} 
[2026-02-28 23:07:00] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-032","replaced_order_id":5221} 
[2026-02-28 23:07:00] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5223,"items_count":4,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":416,"quantity":1,"price":"70.00"},{"menu_item_id":425,"quantity":1,"price":"99.00"},{"menu_item_id":421,"quantity":1,"price":"70.00"}]} 
[2026-02-28 23:07:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5223,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5223}} 
[2026-02-28 23:07:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5223,"item_index":0,"menu_item_id":411} 
[2026-02-28 23:07:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5223,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5223}} 
[2026-02-28 23:07:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5223,"item_index":1,"menu_item_id":416} 
[2026-02-28 23:07:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5223,"item_index":2,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5223}} 
[2026-02-28 23:07:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5223,"item_index":2,"menu_item_id":425} 
[2026-02-28 23:07:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5223,"item_index":3,"item_data":{"menu_item_id":421,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Omlate","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5223}} 
[2026-02-28 23:07:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5223,"item_index":3,"menu_item_id":421} 
[2026-02-28 23:07:00] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5221,"new_order_id":5223,"order_number":"AZS-280226-032"} 
[2026-02-28 23:07:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5219,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":25429},{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":25430},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25431},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25432},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25433},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25434},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25435}],"validated_items":[{"id":25429,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":25430,"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":25431,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25432,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25433,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25434,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25435,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:07:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5219,"items_count":7} 
[2026-02-28 23:07:17] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25429,"menu_item_id":106,"quantity":1},{"id":25430,"menu_item_id":52,"quantity":4},{"id":25431,"menu_item_id":396,"quantity":2},{"id":25432,"menu_item_id":61,"quantity":2},{"id":25433,"menu_item_id":56,"quantity":1},{"id":25434,"menu_item_id":5,"quantity":1},{"id":25435,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 23:07:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5219,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","52|4|","396|2|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["106|1|","52|4|","396|2|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-02-28 23:07:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5219,"order_number":"AZS-280226-026"} 
[2026-02-28 23:07:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5219,"order_number":"AZS-280226-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 23:07:17"} 
[2026-02-28 23:07:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5219,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":25429},{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":25430},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25431},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25432},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25433},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25434},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25435}],"validated_items":[{"id":25429,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":25430,"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":25431,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25432,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25433,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25434,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25435,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:07:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5219,"items_count":7} 
[2026-02-28 23:07:33] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25429,"menu_item_id":106,"quantity":1},{"id":25430,"menu_item_id":52,"quantity":4},{"id":25431,"menu_item_id":396,"quantity":2},{"id":25432,"menu_item_id":61,"quantity":2},{"id":25433,"menu_item_id":56,"quantity":1},{"id":25434,"menu_item_id":5,"quantity":1},{"id":25435,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 23:07:33] local.INFO: PosOrderController::update - Item changes check {"order_id":5219,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","52|4|","396|2|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["106|1|","52|4|","396|2|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-02-28 23:07:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5219,"order_number":"AZS-280226-026"} 
[2026-02-28 23:07:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5219,"order_number":"AZS-280226-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 23:07:33"} 
[2026-02-28 23:08:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5223,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":25446},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null,"id":25447},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null,"id":25448},{"menu_item_id":421,"quantity":1,"discount_percent":0,"notes":null,"id":25449}],"validated_items":[{"id":25446,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":25447,"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null},{"id":25448,"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"id":25449,"menu_item_id":421,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:08:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5223,"items_count":4} 
[2026-02-28 23:08:05] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25446,"menu_item_id":411,"quantity":2},{"id":25447,"menu_item_id":416,"quantity":1},{"id":25448,"menu_item_id":425,"quantity":1},{"id":25449,"menu_item_id":421,"quantity":1}]} 
[2026-02-28 23:08:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5223,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|2|","416|1|","425|1|","421|1|"],"new_items_map_keys":["411|2|","416|1|","425|1|","421|1|"]} 
[2026-02-28 23:08:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5223,"order_number":"AZS-280226-032"} 
[2026-02-28 23:08:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5223,"order_number":"AZS-280226-032","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-02-28 23:08:05"} 
[2026-02-28 23:10:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5219,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":25429},{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":25430},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25431},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25432},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25433},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25434},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25435}],"validated_items":[{"id":25429,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":25430,"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":25431,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25432,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25433,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25434,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25435,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:10:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5219,"items_count":7} 
[2026-02-28 23:10:46] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25429,"menu_item_id":106,"quantity":1},{"id":25430,"menu_item_id":52,"quantity":4},{"id":25431,"menu_item_id":396,"quantity":2},{"id":25432,"menu_item_id":61,"quantity":2},{"id":25433,"menu_item_id":56,"quantity":1},{"id":25434,"menu_item_id":5,"quantity":1},{"id":25435,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 23:10:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5219,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","52|4|","396|2|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["106|1|","52|4|","396|2|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-02-28 23:10:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5219,"order_number":"AZS-280226-026"} 
[2026-02-28 23:10:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5219,"order_number":"AZS-280226-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 23:10:46"} 
[2026-02-28 23:11:46] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5219,"order_number":"AZS-280226-026","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 23:11:46"} 
[2026-02-28 23:11:46] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5219,"order_number":"AZS-280226-026","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 23:11:46"} 
[2026-02-28 23:11:46] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5219,"order_number":"AZS-280226-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 23:11:46"} 
[2026-02-28 23:11:46] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5219,"order_number":"AZS-280226-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 23:11:46"} 
[2026-02-28 23:11:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5219,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":25429},{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":25430},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25431},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25432},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25433},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25434},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25435}],"validated_items":[{"id":25429,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":25430,"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":25431,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25432,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25433,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25434,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25435,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:11:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5219,"items_count":7} 
[2026-02-28 23:11:46] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25429,"menu_item_id":106,"quantity":1},{"id":25430,"menu_item_id":52,"quantity":4},{"id":25431,"menu_item_id":396,"quantity":2},{"id":25432,"menu_item_id":61,"quantity":1},{"id":25433,"menu_item_id":56,"quantity":1},{"id":25434,"menu_item_id":5,"quantity":1},{"id":25435,"menu_item_id":3,"quantity":1}]} 
[2026-02-28 23:11:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5219,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","52|4|","396|2|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["106|1|","52|4|","396|2|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-02-28 23:11:46] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5219,"order_number":"AZS-280226-026","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":6000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-02-28 23:11:46","original_payment_amount":"0.00","grand_total":5515.0,"timestamp":"2026-02-28 23:11:46"} 
[2026-02-28 23:11:46] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5219,"order_number":"AZS-280226-026"} 
[2026-02-28 23:11:46] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-026","replaced_order_id":5219} 
[2026-02-28 23:11:46] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5219,"new_order_id":5224,"order_number":"AZS-280226-026","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"6000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-02-28 23:11:46","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-02-28 23:11:46"} 
[2026-02-28 23:11:46] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5224,"items_count":7,"items":[{"menu_item_id":106,"quantity":1,"price":4199.0},{"menu_item_id":52,"quantity":4,"price":70.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-02-28 23:11:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5224,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":4199.0,"discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5224}} 
[2026-02-28 23:11:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5224,"item_index":0,"menu_item_id":106} 
[2026-02-28 23:11:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5224,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":4,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5224}} 
[2026-02-28 23:11:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5224,"item_index":1,"menu_item_id":52} 
[2026-02-28 23:11:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5224,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5224}} 
[2026-02-28 23:11:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5224,"item_index":2,"menu_item_id":396} 
[2026-02-28 23:11:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5224,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5224}} 
[2026-02-28 23:11:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5224,"item_index":3,"menu_item_id":61} 
[2026-02-28 23:11:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5224,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5224}} 
[2026-02-28 23:11:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5224,"item_index":4,"menu_item_id":56} 
[2026-02-28 23:11:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5224,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5224}} 
[2026-02-28 23:11:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5224,"item_index":5,"menu_item_id":5} 
[2026-02-28 23:11:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5224,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5224}} 
[2026-02-28 23:11:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5224,"item_index":6,"menu_item_id":3} 
[2026-02-28 23:11:46] local.ERROR: Error tracking recipe usage for order 5224: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5224, 106, 196, 1, 1, 0.00, Order #AZS-280226-026 - 1x Mutton Shinwari - Full, 2026-02-28 23:11:46, 2026-02-28 23:11:46))  
[2026-02-28 23:11:46] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5219,"new_order_id":5224,"order_number":"AZS-280226-026"} 
[2026-02-28 23:11:47] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5219,"new_order_id":5224,"order_number":"AZS-280226-026","route":"api/orders/5219"} 
[2026-02-28 23:12:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5218,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":25427},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null,"id":25428}],"validated_items":[{"id":25427,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":25428,"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:12:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5218,"items_count":2} 
[2026-02-28 23:12:28] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25427,"menu_item_id":411,"quantity":1},{"id":25428,"menu_item_id":416,"quantity":2}]} 
[2026-02-28 23:12:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5218,"has_item_changes":true,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","416|1|"],"new_items_map_keys":["411|1|","416|2|"]} 
[2026-02-28 23:12:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5218,"order_number":"AZS-280226-031"} 
[2026-02-28 23:12:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-031","replaced_order_id":5218} 
[2026-02-28 23:12:28] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5225,"items_count":2,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"}]} 
[2026-02-28 23:12:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5225,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5225}} 
[2026-02-28 23:12:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5225,"item_index":0,"menu_item_id":411} 
[2026-02-28 23:12:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5225,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5225}} 
[2026-02-28 23:12:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5225,"item_index":1,"menu_item_id":416} 
[2026-02-28 23:12:28] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5218,"new_order_id":5225,"order_number":"AZS-280226-031"} 
[2026-02-28 23:15:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":5214,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":413,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":413,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:15:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5214,"items_count":1} 
[2026-02-28 23:15:52] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[25418],"items":[{"id":null,"menu_item_id":413,"quantity":3}]} 
[2026-02-28 23:15:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5214,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["412|3|"],"new_items_map_keys":["413|3|"]} 
[2026-02-28 23:15:52] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5214,"order_number":"AZS-280226-030"} 
[2026-02-28 23:15:52] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-030","replaced_order_id":5214} 
[2026-02-28 23:15:52] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5227,"items_count":1,"items":[{"menu_item_id":413,"quantity":3,"price":"200.00"}]} 
[2026-02-28 23:15:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5227,"item_index":0,"item_data":{"menu_item_id":413,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Namkeen Lassi","quantity":3,"price":"200.00","discount_percent":0.0,"discount_amount":0.0,"total":600.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5227}} 
[2026-02-28 23:15:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5227,"item_index":0,"menu_item_id":413} 
[2026-02-28 23:15:52] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5214,"new_order_id":5227,"order_number":"AZS-280226-030"} 
[2026-02-28 23:16:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T11:16:40.368Z","date_to":"2026-02-28T23:16:40.368Z","per_page":"100"} 
[2026-02-28 23:16:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":82,"count":82,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-033","AZS-280226-032","AZS-280226-032","AZS-280226-031","AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","pending","changed","pending","changed","changed","pending","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":49,"paid_count":27,"unpaid_count":6,"unique_order_numbers":33} 
[2026-02-28 23:16:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T11:16:40.349Z","date_to":"2026-02-28T23:16:40.349Z","per_page":"100"} 
[2026-02-28 23:16:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":82,"count":82,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-033","AZS-280226-032","AZS-280226-032","AZS-280226-031","AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","pending","changed","pending","changed","changed","pending","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":49,"paid_count":27,"unpaid_count":6,"unique_order_numbers":33} 
[2026-02-28 23:16:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T11:16:40.349Z","date_to":"2026-02-28T23:16:40.349Z","per_page":"100"} 
[2026-02-28 23:16:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":82,"count":82,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-033","AZS-280226-032","AZS-280226-032","AZS-280226-031","AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","pending","changed","pending","changed","changed","pending","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":49,"paid_count":27,"unpaid_count":6,"unique_order_numbers":33} 
[2026-02-28 23:18:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5226,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null,"id":25459}],"validated_items":[{"id":25459,"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:18:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5226,"items_count":1} 
[2026-02-28 23:18:32] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25459,"menu_item_id":411,"quantity":3}]} 
[2026-02-28 23:18:32] local.INFO: PosOrderController::update - Item changes check {"order_id":5226,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["411|2|"],"new_items_map_keys":["411|3|"]} 
[2026-02-28 23:18:32] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5226,"order_number":"AZS-280226-033"} 
[2026-02-28 23:18:32] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-033","replaced_order_id":5226} 
[2026-02-28 23:18:32] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5228,"items_count":1,"items":[{"menu_item_id":411,"quantity":3,"price":"599.00"}]} 
[2026-02-28 23:18:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5228,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":3,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1797.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5228}} 
[2026-02-28 23:18:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5228,"item_index":0,"menu_item_id":411} 
[2026-02-28 23:18:32] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5226,"new_order_id":5228,"order_number":"AZS-280226-033"} 
[2026-02-28 23:19:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T11:19:49.955Z","date_to":"2026-02-28T23:19:49.955Z","per_page":"100"} 
[2026-02-28 23:19:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":83,"count":83,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-033","AZS-280226-033","AZS-280226-032","AZS-280226-032","AZS-280226-031","AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","changed","pending","changed","pending","changed","changed","pending","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":50,"paid_count":27,"unpaid_count":6,"unique_order_numbers":33} 
[2026-02-28 23:19:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T11:19:49.978Z","date_to":"2026-02-28T23:19:49.978Z","per_page":"100"} 
[2026-02-28 23:19:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":83,"count":83,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-033","AZS-280226-033","AZS-280226-032","AZS-280226-032","AZS-280226-031","AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","changed","pending","changed","pending","changed","changed","pending","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":50,"paid_count":27,"unpaid_count":6,"unique_order_numbers":33} 
[2026-02-28 23:19:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T11:19:49.955Z","date_to":"2026-02-28T23:19:49.955Z","per_page":"100"} 
[2026-02-28 23:19:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":83,"count":83,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-033","AZS-280226-033","AZS-280226-032","AZS-280226-032","AZS-280226-031","AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","changed","pending","changed","pending","changed","changed","pending","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":50,"paid_count":27,"unpaid_count":6,"unique_order_numbers":33} 
[2026-02-28 23:20:42] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5227,"order_number":"AZS-280226-030","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":600,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 23:20:42"} 
[2026-02-28 23:20:42] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5227,"order_number":"AZS-280226-030","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 23:20:42"} 
[2026-02-28 23:20:42] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5227,"order_number":"AZS-280226-030","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 23:20:42"} 
[2026-02-28 23:20:42] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5227,"order_number":"AZS-280226-030","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 23:20:42"} 
[2026-02-28 23:20:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5227,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":413,"quantity":3,"price":200,"discount_percent":0,"notes":null,"id":25460}],"validated_items":[{"id":25460,"menu_item_id":413,"quantity":3,"price":200,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:20:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5227,"items_count":1} 
[2026-02-28 23:20:42] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25460,"menu_item_id":413,"quantity":3}]} 
[2026-02-28 23:20:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5227,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["413|3|"],"new_items_map_keys":["413|3|"]} 
[2026-02-28 23:20:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5227,"order_number":"AZS-280226-030"} 
[2026-02-28 23:20:42] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5227,"order_number":"AZS-280226-030","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":600,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-28 23:20:42","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 23:20:42"} 
[2026-02-28 23:20:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5227,"order_number":"AZS-280226-030","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 23:20:42"} 
[2026-02-28 23:20:42] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5227,"order_number":"AZS-280226-030","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"600.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-28 23:20:42","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"600.00","database_verification_match":true,"timestamp":"2026-02-28 23:20:42"} 
[2026-02-28 23:20:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T11:20:51.707Z","date_to":"2026-02-28T23:20:51.707Z","per_page":"100"} 
[2026-02-28 23:20:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":83,"count":83,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-033","AZS-280226-033","AZS-280226-032","AZS-280226-032","AZS-280226-031","AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","changed","pending","changed","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":50,"paid_count":28,"unpaid_count":5,"unique_order_numbers":33} 
[2026-02-28 23:20:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T11:20:51.721Z","date_to":"2026-02-28T23:20:51.721Z","per_page":"100"} 
[2026-02-28 23:20:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":83,"count":83,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-033","AZS-280226-033","AZS-280226-032","AZS-280226-032","AZS-280226-031","AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","changed","pending","changed","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":50,"paid_count":28,"unpaid_count":5,"unique_order_numbers":33} 
[2026-02-28 23:20:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T11:20:51.707Z","date_to":"2026-02-28T23:20:51.707Z","per_page":"100"} 
[2026-02-28 23:20:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":83,"count":83,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-033","AZS-280226-033","AZS-280226-032","AZS-280226-032","AZS-280226-031","AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","changed","pending","changed","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":50,"paid_count":28,"unpaid_count":5,"unique_order_numbers":33} 
[2026-02-28 23:27:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5229,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":25462},{"menu_item_id":422,"quantity":2,"discount_percent":0,"notes":null,"id":25463},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null,"id":25464},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25462,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":25463,"menu_item_id":422,"quantity":2,"discount_percent":0,"notes":null},{"id":25464,"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:27:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5229,"items_count":4} 
[2026-02-28 23:27:41] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25462,"menu_item_id":411,"quantity":1},{"id":25463,"menu_item_id":422,"quantity":2},{"id":25464,"menu_item_id":416,"quantity":1},{"id":null,"menu_item_id":425,"quantity":1}]} 
[2026-02-28 23:27:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5229,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["411|1|","422|2|","416|1|"],"new_items_map_keys":["411|1|","422|2|","416|1|","425|1|"]} 
[2026-02-28 23:27:41] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5229,"order_number":"AZS-280226-034"} 
[2026-02-28 23:27:41] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-034","replaced_order_id":5229} 
[2026-02-28 23:27:41] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5231,"items_count":4,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":422,"quantity":2,"price":"70.00"},{"menu_item_id":416,"quantity":1,"price":"70.00"},{"menu_item_id":425,"quantity":1,"price":"99.00"}]} 
[2026-02-28 23:27:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5231,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5231}} 
[2026-02-28 23:27:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5231,"item_index":0,"menu_item_id":411} 
[2026-02-28 23:27:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5231,"item_index":1,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5231}} 
[2026-02-28 23:27:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5231,"item_index":1,"menu_item_id":422} 
[2026-02-28 23:27:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5231,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5231}} 
[2026-02-28 23:27:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5231,"item_index":2,"menu_item_id":416} 
[2026-02-28 23:27:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5231,"item_index":3,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5231}} 
[2026-02-28 23:27:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5231,"item_index":3,"menu_item_id":425} 
[2026-02-28 23:27:41] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5229,"new_order_id":5231,"order_number":"AZS-280226-034"} 
[2026-02-28 23:30:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5223,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":25446},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25447},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25448},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25449}],"validated_items":[{"id":25446,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":25447,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":25448,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":25449,"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:30:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5223,"items_count":4} 
[2026-02-28 23:30:53] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25446,"menu_item_id":411,"quantity":2},{"id":25447,"menu_item_id":416,"quantity":1},{"id":25448,"menu_item_id":425,"quantity":1},{"id":25449,"menu_item_id":421,"quantity":1}]} 
[2026-02-28 23:30:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5223,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|2|","416|1|","425|1|","421|1|"],"new_items_map_keys":["411|2|","416|1|","425|1|","421|1|"]} 
[2026-02-28 23:30:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5223,"order_number":"AZS-280226-032"} 
[2026-02-28 23:30:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5223,"order_number":"AZS-280226-032","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 23:30:53"} 
[2026-02-28 23:31:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5225,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25457},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25458}],"validated_items":[{"id":25457,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":25458,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:31:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5225,"items_count":2} 
[2026-02-28 23:31:14] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25457,"menu_item_id":411,"quantity":1},{"id":25458,"menu_item_id":416,"quantity":2}]} 
[2026-02-28 23:31:14] local.INFO: PosOrderController::update - Item changes check {"order_id":5225,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","416|2|"],"new_items_map_keys":["411|1|","416|2|"]} 
[2026-02-28 23:31:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5225,"order_number":"AZS-280226-031"} 
[2026-02-28 23:31:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5225,"order_number":"AZS-280226-031","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 23:31:14"} 
[2026-02-28 23:31:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5223,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":25446},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25447},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25448},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25449},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"id":25446,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":25447,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":25448,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":25449,"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:31:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5223,"items_count":5} 
[2026-02-28 23:31:58] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25446,"menu_item_id":411,"quantity":2},{"id":25447,"menu_item_id":416,"quantity":1},{"id":25448,"menu_item_id":425,"quantity":1},{"id":25449,"menu_item_id":421,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 23:31:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5223,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["411|2|","416|1|","425|1|","421|1|"],"new_items_map_keys":["411|2|","416|1|","425|1|","421|1|","5|1|"]} 
[2026-02-28 23:31:58] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5223,"order_number":"AZS-280226-032"} 
[2026-02-28 23:31:58] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-032","replaced_order_id":5223} 
[2026-02-28 23:31:58] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5232,"items_count":5,"items":[{"menu_item_id":411,"quantity":2,"price":599.0},{"menu_item_id":416,"quantity":1,"price":70.0},{"menu_item_id":425,"quantity":1,"price":99.0},{"menu_item_id":421,"quantity":1,"price":70.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-02-28 23:31:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5232,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":599.0,"discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5232}} 
[2026-02-28 23:31:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5232,"item_index":0,"menu_item_id":411} 
[2026-02-28 23:31:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5232,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5232}} 
[2026-02-28 23:31:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5232,"item_index":1,"menu_item_id":416} 
[2026-02-28 23:31:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5232,"item_index":2,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5232}} 
[2026-02-28 23:31:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5232,"item_index":2,"menu_item_id":425} 
[2026-02-28 23:31:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5232,"item_index":3,"item_data":{"menu_item_id":421,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Omlate","quantity":1,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5232}} 
[2026-02-28 23:31:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5232,"item_index":3,"menu_item_id":421} 
[2026-02-28 23:31:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5232,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5232}} 
[2026-02-28 23:31:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5232,"item_index":4,"menu_item_id":5} 
[2026-02-28 23:31:58] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5223,"new_order_id":5232,"order_number":"AZS-280226-032"} 
[2026-02-28 23:32:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5232,"item_index":0,"item_id":25446} 
[2026-02-28 23:32:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5232,"item_index":1,"item_id":25447} 
[2026-02-28 23:32:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5232,"item_index":2,"item_id":25448} 
[2026-02-28 23:32:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5232,"item_index":3,"item_id":25449} 
[2026-02-28 23:32:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5232,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":25446},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25447},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25448},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25449},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:32:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5232,"items_count":5} 
[2026-02-28 23:32:04] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[25470,25471,25472,25473,25474],"items":[{"id":null,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":416,"quantity":1},{"id":null,"menu_item_id":425,"quantity":1},{"id":null,"menu_item_id":421,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 23:32:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5232,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|2|","416|1|","425|1|","421|1|","5|1|"],"new_items_map_keys":["411|2|","416|1|","425|1|","421|1|","5|1|"]} 
[2026-02-28 23:32:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5232,"order_number":"AZS-280226-032"} 
[2026-02-28 23:32:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5232,"order_number":"AZS-280226-032","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 23:32:04"} 
[2026-02-28 23:34:33] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5225,"order_number":"AZS-280226-031","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 23:34:33"} 
[2026-02-28 23:34:33] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5225,"order_number":"AZS-280226-031","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 23:34:33"} 
[2026-02-28 23:34:33] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5225,"order_number":"AZS-280226-031","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 23:34:33"} 
[2026-02-28 23:34:33] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5225,"order_number":"AZS-280226-031","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 23:34:33"} 
[2026-02-28 23:34:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5225,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25457},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25458}],"validated_items":[{"id":25457,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":25458,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:34:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5225,"items_count":2} 
[2026-02-28 23:34:33] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25457,"menu_item_id":411,"quantity":1},{"id":25458,"menu_item_id":416,"quantity":2}]} 
[2026-02-28 23:34:33] local.INFO: PosOrderController::update - Item changes check {"order_id":5225,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","416|2|"],"new_items_map_keys":["411|1|","416|2|"]} 
[2026-02-28 23:34:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5225,"order_number":"AZS-280226-031"} 
[2026-02-28 23:34:33] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5225,"order_number":"AZS-280226-031","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-02-28 23:34:33","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 23:34:33"} 
[2026-02-28 23:34:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5225,"order_number":"AZS-280226-031","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 23:34:33"} 
[2026-02-28 23:34:33] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5225,"order_number":"AZS-280226-031","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-02-28 23:34:33","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-02-28 23:34:33"} 
[2026-02-28 23:36:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T11:36:17.634Z","date_to":"2026-02-28T23:36:17.634Z","per_page":"100"} 
[2026-02-28 23:36:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":88,"count":88,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-036","AZS-280226-035","AZS-280226-034","AZS-280226-034","AZS-280226-033","AZS-280226-033","AZS-280226-032","AZS-280226-032","AZS-280226-032","AZS-280226-031","AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","pending","pending","changed","pending","changed","pending","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":52,"paid_count":29,"unpaid_count":7,"unique_order_numbers":36} 
[2026-02-28 23:36:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T11:36:17.619Z","date_to":"2026-02-28T23:36:17.619Z","per_page":"100"} 
[2026-02-28 23:36:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":88,"count":88,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-036","AZS-280226-035","AZS-280226-034","AZS-280226-034","AZS-280226-033","AZS-280226-033","AZS-280226-032","AZS-280226-032","AZS-280226-032","AZS-280226-031","AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","pending","pending","changed","pending","changed","pending","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":52,"paid_count":29,"unpaid_count":7,"unique_order_numbers":36} 
[2026-02-28 23:36:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T11:36:17.619Z","date_to":"2026-02-28T23:36:17.619Z","per_page":"100"} 
[2026-02-28 23:36:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":88,"count":88,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-036","AZS-280226-035","AZS-280226-034","AZS-280226-034","AZS-280226-033","AZS-280226-033","AZS-280226-032","AZS-280226-032","AZS-280226-032","AZS-280226-031","AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","pending","pending","changed","pending","changed","pending","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","pending","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":52,"paid_count":29,"unpaid_count":7,"unique_order_numbers":36} 
[2026-02-28 23:37:49] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5232,"order_number":"AZS-280226-032","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1610,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 23:37:49"} 
[2026-02-28 23:37:49] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5232,"order_number":"AZS-280226-032","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1610,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 23:37:49"} 
[2026-02-28 23:37:49] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5232,"order_number":"AZS-280226-032","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1610,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 23:37:49"} 
[2026-02-28 23:37:49] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5232,"order_number":"AZS-280226-032","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1610,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 23:37:49"} 
[2026-02-28 23:37:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5232,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":25470},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25471},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25472},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25473},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25474}],"validated_items":[{"id":25470,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":25471,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":25472,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":25473,"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":25474,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:37:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5232,"items_count":5} 
[2026-02-28 23:37:49] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25470,"menu_item_id":411,"quantity":2},{"id":25471,"menu_item_id":416,"quantity":1},{"id":25472,"menu_item_id":425,"quantity":1},{"id":25473,"menu_item_id":421,"quantity":1},{"id":25474,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 23:37:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5232,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|2|","416|1|","425|1|","421|1|","5|1|"],"new_items_map_keys":["411|2|","416|1|","425|1|","421|1|","5|1|"]} 
[2026-02-28 23:37:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5232,"order_number":"AZS-280226-032"} 
[2026-02-28 23:37:49] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5232,"order_number":"AZS-280226-032","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1610,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-28 23:37:49","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 23:37:49"} 
[2026-02-28 23:37:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5232,"order_number":"AZS-280226-032","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 23:37:49"} 
[2026-02-28 23:37:49] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5232,"order_number":"AZS-280226-032","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1610.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-28 23:37:49","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1610,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1610.00","database_verification_match":true,"timestamp":"2026-02-28 23:37:49"} 
[2026-02-28 23:38:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5231,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":25466},{"menu_item_id":422,"quantity":2,"discount_percent":0,"notes":null,"id":25467},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null,"id":25468},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null,"id":25469},{"menu_item_id":286,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25466,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":25467,"menu_item_id":422,"quantity":2,"discount_percent":0,"notes":null},{"id":25468,"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"id":25469,"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:38:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5231,"items_count":5} 
[2026-02-28 23:38:01] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25466,"menu_item_id":411,"quantity":1},{"id":25467,"menu_item_id":422,"quantity":2},{"id":25468,"menu_item_id":416,"quantity":2},{"id":25469,"menu_item_id":425,"quantity":1},{"id":null,"menu_item_id":286,"quantity":1}]} 
[2026-02-28 23:38:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5231,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["411|1|","422|2|","416|1|","425|1|"],"new_items_map_keys":["411|1|","422|2|","416|2|","425|1|","286|1|"]} 
[2026-02-28 23:38:01] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5231,"order_number":"AZS-280226-034"} 
[2026-02-28 23:38:01] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-034","replaced_order_id":5231} 
[2026-02-28 23:38:01] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5234,"items_count":5,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":422,"quantity":2,"price":"70.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"},{"menu_item_id":425,"quantity":1,"price":"99.00"},{"menu_item_id":286,"quantity":1,"price":"15.00"}]} 
[2026-02-28 23:38:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5234,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5234}} 
[2026-02-28 23:38:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5234,"item_index":0,"menu_item_id":411} 
[2026-02-28 23:38:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5234,"item_index":1,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5234}} 
[2026-02-28 23:38:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5234,"item_index":1,"menu_item_id":422} 
[2026-02-28 23:38:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5234,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5234}} 
[2026-02-28 23:38:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5234,"item_index":2,"menu_item_id":416} 
[2026-02-28 23:38:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5234,"item_index":3,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5234}} 
[2026-02-28 23:38:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5234,"item_index":3,"menu_item_id":425} 
[2026-02-28 23:38:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5234,"item_index":4,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":1,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":15.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5234}} 
[2026-02-28 23:38:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5234,"item_index":4,"menu_item_id":286} 
[2026-02-28 23:38:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5231,"new_order_id":5234,"order_number":"AZS-280226-034"} 
[2026-02-28 23:38:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":5233,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null,"id":25476},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null,"id":25477},{"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null,"id":25478}],"validated_items":[{"id":25476,"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null},{"id":25477,"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null},{"id":25478,"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:38:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5233,"items_count":3} 
[2026-02-28 23:38:39] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[25475,25479,25480],"items":[{"id":25476,"menu_item_id":422,"quantity":1},{"id":25477,"menu_item_id":416,"quantity":1},{"id":25478,"menu_item_id":412,"quantity":1}]} 
[2026-02-28 23:38:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5233,"has_item_changes":true,"old_items_count":6,"new_items_count":3,"old_items_map_keys":["96|1|","422|1|","416|1|","412|1|","396|3|","5|1|"],"new_items_map_keys":["422|1|","416|1|","412|1|"]} 
[2026-02-28 23:38:39] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5233,"order_number":"AZS-280226-036"} 
[2026-02-28 23:38:39] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-036","replaced_order_id":5233} 
[2026-02-28 23:38:39] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5235,"items_count":3,"items":[{"menu_item_id":422,"quantity":1,"price":"70.00"},{"menu_item_id":416,"quantity":1,"price":"70.00"},{"menu_item_id":412,"quantity":1,"price":"220.00"}]} 
[2026-02-28 23:38:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5235,"item_index":0,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5235}} 
[2026-02-28 23:38:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5235,"item_index":0,"menu_item_id":422} 
[2026-02-28 23:38:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5235,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5235}} 
[2026-02-28 23:38:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5235,"item_index":1,"menu_item_id":416} 
[2026-02-28 23:38:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5235,"item_index":2,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":1,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":220.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5235}} 
[2026-02-28 23:38:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5235,"item_index":2,"menu_item_id":412} 
[2026-02-28 23:38:39] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5233,"new_order_id":5235,"order_number":"AZS-280226-036"} 
[2026-02-28 23:38:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5228,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null,"id":25461},{"menu_item_id":416,"quantity":4,"discount_percent":0,"notes":null}],"validated_items":[{"id":25461,"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:38:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5228,"items_count":2} 
[2026-02-28 23:38:57] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25461,"menu_item_id":411,"quantity":3},{"id":null,"menu_item_id":416,"quantity":4}]} 
[2026-02-28 23:38:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5228,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|3|"],"new_items_map_keys":["411|3|","416|4|"]} 
[2026-02-28 23:38:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5228,"order_number":"AZS-280226-033"} 
[2026-02-28 23:38:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-033","replaced_order_id":5228} 
[2026-02-28 23:38:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5236,"items_count":2,"items":[{"menu_item_id":411,"quantity":3,"price":"599.00"},{"menu_item_id":416,"quantity":4,"price":"70.00"}]} 
[2026-02-28 23:38:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5236,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":3,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1797.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5236}} 
[2026-02-28 23:38:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5236,"item_index":0,"menu_item_id":411} 
[2026-02-28 23:38:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5236,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5236}} 
[2026-02-28 23:38:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5236,"item_index":1,"menu_item_id":416} 
[2026-02-28 23:38:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5228,"new_order_id":5236,"order_number":"AZS-280226-033"} 
[2026-02-28 23:42:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5222,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":25440},{"menu_item_id":412,"quantity":3,"price":220,"discount_percent":0,"notes":null,"id":25441},{"menu_item_id":413,"quantity":1,"price":200,"discount_percent":0,"notes":null,"id":25442},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25443},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25444},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":25445}],"validated_items":[{"id":25440,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":25441,"menu_item_id":412,"quantity":3,"price":220,"discount_percent":0,"notes":null},{"id":25442,"menu_item_id":413,"quantity":1,"price":200,"discount_percent":0,"notes":null},{"id":25443,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25444,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":25445,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:42:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5222,"items_count":6} 
[2026-02-28 23:42:25] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25440,"menu_item_id":411,"quantity":2},{"id":25441,"menu_item_id":412,"quantity":3},{"id":25442,"menu_item_id":413,"quantity":1},{"id":25443,"menu_item_id":5,"quantity":1},{"id":25444,"menu_item_id":416,"quantity":2},{"id":25445,"menu_item_id":6,"quantity":3}]} 
[2026-02-28 23:42:25] local.INFO: PosOrderController::update - Item changes check {"order_id":5222,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["411|2|","412|3|","413|1|","5|1|","416|2|","6|3|"],"new_items_map_keys":["411|2|","412|3|","413|1|","5|1|","416|2|","6|3|"]} 
[2026-02-28 23:42:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5222,"order_number":"AZS-280226-027"} 
[2026-02-28 23:42:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5222,"order_number":"AZS-280226-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 23:42:25"} 
[2026-02-28 23:44:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5234,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25481},{"menu_item_id":422,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25482},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25483},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25484},{"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null,"id":25485},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"id":25481,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":25482,"menu_item_id":422,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":25483,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":25484,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":25485,"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:44:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5234,"items_count":6} 
[2026-02-28 23:44:04] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25481,"menu_item_id":411,"quantity":1},{"id":25482,"menu_item_id":422,"quantity":2},{"id":25483,"menu_item_id":416,"quantity":2},{"id":25484,"menu_item_id":425,"quantity":1},{"id":25485,"menu_item_id":286,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 23:44:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5234,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["411|1|","422|2|","416|2|","425|1|","286|1|"],"new_items_map_keys":["411|1|","422|2|","416|2|","425|1|","286|1|","5|1|"]} 
[2026-02-28 23:44:04] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5234,"order_number":"AZS-280226-034"} 
[2026-02-28 23:44:04] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-034","replaced_order_id":5234} 
[2026-02-28 23:44:04] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5237,"items_count":6,"items":[{"menu_item_id":411,"quantity":1,"price":599.0},{"menu_item_id":422,"quantity":2,"price":70.0},{"menu_item_id":416,"quantity":2,"price":70.0},{"menu_item_id":425,"quantity":1,"price":99.0},{"menu_item_id":286,"quantity":1,"price":15.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-02-28 23:44:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5237,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":599.0,"discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5237}} 
[2026-02-28 23:44:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5237,"item_index":0,"menu_item_id":411} 
[2026-02-28 23:44:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5237,"item_index":1,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":2,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5237}} 
[2026-02-28 23:44:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5237,"item_index":1,"menu_item_id":422} 
[2026-02-28 23:44:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5237,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5237}} 
[2026-02-28 23:44:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5237,"item_index":2,"menu_item_id":416} 
[2026-02-28 23:44:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5237,"item_index":3,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5237}} 
[2026-02-28 23:44:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5237,"item_index":3,"menu_item_id":425} 
[2026-02-28 23:44:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5237,"item_index":4,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":1,"price":15.0,"discount_percent":0.0,"discount_amount":0.0,"total":15.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5237}} 
[2026-02-28 23:44:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5237,"item_index":4,"menu_item_id":286} 
[2026-02-28 23:44:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5237,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5237}} 
[2026-02-28 23:44:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5237,"item_index":5,"menu_item_id":5} 
[2026-02-28 23:44:04] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5234,"new_order_id":5237,"order_number":"AZS-280226-034"} 
[2026-02-28 23:44:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5237,"item_index":0,"item_id":25481} 
[2026-02-28 23:44:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5237,"item_index":1,"item_id":25482} 
[2026-02-28 23:44:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5237,"item_index":2,"item_id":25483} 
[2026-02-28 23:44:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5237,"item_index":3,"item_id":25484} 
[2026-02-28 23:44:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5237,"item_index":4,"item_id":25485} 
[2026-02-28 23:44:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5237,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25481},{"menu_item_id":422,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25482},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25483},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25484},{"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null,"id":25485},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":422,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:44:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5237,"items_count":6} 
[2026-02-28 23:44:15] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[25491,25492,25493,25494,25495,25496],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":422,"quantity":2},{"id":null,"menu_item_id":416,"quantity":2},{"id":null,"menu_item_id":425,"quantity":1},{"id":null,"menu_item_id":286,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 23:44:15] local.INFO: PosOrderController::update - Item changes check {"order_id":5237,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["411|1|","422|2|","416|2|","425|1|","286|1|","5|1|"],"new_items_map_keys":["411|1|","422|2|","416|2|","425|1|","286|1|","5|1|"]} 
[2026-02-28 23:44:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5237,"order_number":"AZS-280226-034"} 
[2026-02-28 23:44:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5237,"order_number":"AZS-280226-034","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 23:44:15"} 
[2026-02-28 23:44:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5222,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":25440},{"menu_item_id":412,"quantity":3,"discount_percent":0,"notes":null,"id":25441},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null,"id":25442},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25443},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null,"id":25444},{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null,"id":25445},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25440,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":25441,"menu_item_id":412,"quantity":3,"discount_percent":0,"notes":null},{"id":25442,"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null},{"id":25443,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":25444,"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"id":25445,"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:44:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5222,"items_count":7} 
[2026-02-28 23:44:36] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25440,"menu_item_id":411,"quantity":2},{"id":25441,"menu_item_id":412,"quantity":3},{"id":25442,"menu_item_id":413,"quantity":1},{"id":25443,"menu_item_id":5,"quantity":1},{"id":25444,"menu_item_id":416,"quantity":2},{"id":25445,"menu_item_id":6,"quantity":3},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-02-28 23:44:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5222,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["411|2|","412|3|","413|1|","5|1|","416|2|","6|3|"],"new_items_map_keys":["411|2|","412|3|","413|1|","5|1|","416|2|","6|3|","4|1|"]} 
[2026-02-28 23:44:36] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5222,"order_number":"AZS-280226-027"} 
[2026-02-28 23:44:36] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-027","replaced_order_id":5222} 
[2026-02-28 23:44:36] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5238,"items_count":7,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":412,"quantity":3,"price":"220.00"},{"menu_item_id":413,"quantity":1,"price":"200.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"},{"menu_item_id":6,"quantity":3,"price":"199.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-02-28 23:44:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5238,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5238}} 
[2026-02-28 23:44:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5238,"item_index":0,"menu_item_id":411} 
[2026-02-28 23:44:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5238,"item_index":1,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":3,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":660.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5238}} 
[2026-02-28 23:44:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5238,"item_index":1,"menu_item_id":412} 
[2026-02-28 23:44:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5238,"item_index":2,"item_data":{"menu_item_id":413,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Namkeen Lassi","quantity":1,"price":"200.00","discount_percent":0.0,"discount_amount":0.0,"total":200.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5238}} 
[2026-02-28 23:44:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5238,"item_index":2,"menu_item_id":413} 
[2026-02-28 23:44:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5238,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5238}} 
[2026-02-28 23:44:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5238,"item_index":3,"menu_item_id":5} 
[2026-02-28 23:44:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5238,"item_index":4,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5238}} 
[2026-02-28 23:44:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5238,"item_index":4,"menu_item_id":416} 
[2026-02-28 23:44:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5238,"item_index":5,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5238}} 
[2026-02-28 23:44:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5238,"item_index":5,"menu_item_id":6} 
[2026-02-28 23:44:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5238,"item_index":6,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5238}} 
[2026-02-28 23:44:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5238,"item_index":6,"menu_item_id":4} 
[2026-02-28 23:44:36] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5222,"new_order_id":5238,"order_number":"AZS-280226-027"} 
[2026-02-28 23:44:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5238,"item_index":0,"item_id":25440} 
[2026-02-28 23:44:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5238,"item_index":1,"item_id":25441} 
[2026-02-28 23:44:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5238,"item_index":2,"item_id":25442} 
[2026-02-28 23:44:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5238,"item_index":3,"item_id":25443} 
[2026-02-28 23:44:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5238,"item_index":4,"item_id":25444} 
[2026-02-28 23:44:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5238,"item_index":5,"item_id":25445} 
[2026-02-28 23:44:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5238,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":25440},{"menu_item_id":412,"quantity":3,"price":220,"discount_percent":0,"notes":null,"id":25441},{"menu_item_id":413,"quantity":1,"price":200,"discount_percent":0,"notes":null,"id":25442},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25443},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25444},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":25445},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":3,"price":220,"discount_percent":0,"notes":null},{"menu_item_id":413,"quantity":1,"price":200,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:44:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5238,"items_count":7} 
[2026-02-28 23:44:42] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[25497,25498,25499,25500,25501,25502,25503],"items":[{"id":null,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":412,"quantity":3},{"id":null,"menu_item_id":413,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":416,"quantity":2},{"id":null,"menu_item_id":6,"quantity":3},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-02-28 23:44:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5238,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["411|2|","412|3|","413|1|","5|1|","416|2|","6|3|","4|1|"],"new_items_map_keys":["411|2|","412|3|","413|1|","5|1|","416|2|","6|3|","4|1|"]} 
[2026-02-28 23:44:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5238,"order_number":"AZS-280226-027"} 
[2026-02-28 23:44:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5238,"order_number":"AZS-280226-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 23:44:42"} 
[2026-02-28 23:47:58] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5238,"order_number":"AZS-280226-027","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3055,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 23:47:58"} 
[2026-02-28 23:47:58] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5238,"order_number":"AZS-280226-027","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3055,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 23:47:58"} 
[2026-02-28 23:47:58] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5238,"order_number":"AZS-280226-027","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3055,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 23:47:58"} 
[2026-02-28 23:47:58] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5238,"order_number":"AZS-280226-027","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3055,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 23:47:58"} 
[2026-02-28 23:47:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5238,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":25497},{"menu_item_id":412,"quantity":3,"price":220,"discount_percent":0,"notes":null,"id":25498},{"menu_item_id":413,"quantity":1,"price":200,"discount_percent":0,"notes":null,"id":25499},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25500},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25501},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":25502},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":25503}],"validated_items":[{"id":25497,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":25498,"menu_item_id":412,"quantity":3,"price":220,"discount_percent":0,"notes":null},{"id":25499,"menu_item_id":413,"quantity":1,"price":200,"discount_percent":0,"notes":null},{"id":25500,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25501,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":25502,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":25503,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:47:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5238,"items_count":7} 
[2026-02-28 23:47:58] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25497,"menu_item_id":411,"quantity":2},{"id":25498,"menu_item_id":412,"quantity":3},{"id":25499,"menu_item_id":413,"quantity":1},{"id":25500,"menu_item_id":5,"quantity":1},{"id":25501,"menu_item_id":416,"quantity":2},{"id":25502,"menu_item_id":6,"quantity":3},{"id":25503,"menu_item_id":4,"quantity":1}]} 
[2026-02-28 23:47:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5238,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["411|2|","412|3|","413|1|","5|1|","416|2|","6|3|","4|1|"],"new_items_map_keys":["411|2|","412|3|","413|1|","5|1|","416|2|","6|3|","4|1|"]} 
[2026-02-28 23:47:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5238,"order_number":"AZS-280226-027"} 
[2026-02-28 23:47:58] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5238,"order_number":"AZS-280226-027","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3055,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-28 23:47:58","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 23:47:58"} 
[2026-02-28 23:47:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5238,"order_number":"AZS-280226-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 23:47:58"} 
[2026-02-28 23:47:58] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5238,"order_number":"AZS-280226-027","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3055.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-28 23:47:58","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3055,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3055.00","database_verification_match":true,"timestamp":"2026-02-28 23:47:58"} 
[2026-02-28 23:49:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5239,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":25504}],"validated_items":[{"id":25504,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:49:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5239,"items_count":1} 
[2026-02-28 23:49:57] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25504,"menu_item_id":4,"quantity":1}]} 
[2026-02-28 23:49:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5239,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["4|1|"],"new_items_map_keys":["4|1|"]} 
[2026-02-28 23:49:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5239,"order_number":"AZS-280226-037"} 
[2026-02-28 23:49:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5239,"order_number":"AZS-280226-037","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-02-28 23:49:57"} 
[2026-02-28 23:50:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5230,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":25465},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25465,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:50:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5230,"items_count":2} 
[2026-02-28 23:50:36] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25465,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 23:50:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5230,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|","5|1|"]} 
[2026-02-28 23:50:36] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5230,"order_number":"AZS-280226-035"} 
[2026-02-28 23:50:36] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-035","replaced_order_id":5230} 
[2026-02-28 23:50:36] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5240,"items_count":2,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-02-28 23:50:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5240,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5240}} 
[2026-02-28 23:50:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5240,"item_index":0,"menu_item_id":411} 
[2026-02-28 23:50:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5240,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5240}} 
[2026-02-28 23:50:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5240,"item_index":1,"menu_item_id":5} 
[2026-02-28 23:50:36] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5230,"new_order_id":5240,"order_number":"AZS-280226-035"} 
[2026-02-28 23:50:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5240,"item_index":0,"item_id":25465} 
[2026-02-28 23:50:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":5240,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25465},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:50:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5240,"items_count":2} 
[2026-02-28 23:50:42] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[25505,25506],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 23:50:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5240,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","5|1|"],"new_items_map_keys":["411|1|","5|1|"]} 
[2026-02-28 23:50:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5240,"order_number":"AZS-280226-035"} 
[2026-02-28 23:50:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5240,"order_number":"AZS-280226-035","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 23:50:42"} 
[2026-02-28 23:52:40] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5237,"order_number":"AZS-280226-034","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1200,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 23:52:40"} 
[2026-02-28 23:52:40] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5237,"order_number":"AZS-280226-034","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-02-28 23:52:40"} 
[2026-02-28 23:52:40] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5237,"order_number":"AZS-280226-034","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 23:52:40"} 
[2026-02-28 23:52:40] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5237,"order_number":"AZS-280226-034","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-02-28 23:52:40"} 
[2026-02-28 23:52:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5237,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25491},{"menu_item_id":422,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25492},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25493},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25494},{"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null,"id":25495},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25496}],"validated_items":[{"id":25491,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":25492,"menu_item_id":422,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":25493,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":25494,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":25495,"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null},{"id":25496,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:52:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5237,"items_count":6} 
[2026-02-28 23:52:40] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25491,"menu_item_id":411,"quantity":1},{"id":25492,"menu_item_id":422,"quantity":2},{"id":25493,"menu_item_id":416,"quantity":2},{"id":25494,"menu_item_id":425,"quantity":1},{"id":25495,"menu_item_id":286,"quantity":1},{"id":25496,"menu_item_id":5,"quantity":1}]} 
[2026-02-28 23:52:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5237,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["411|1|","422|2|","416|2|","425|1|","286|1|","5|1|"],"new_items_map_keys":["411|1|","422|2|","416|2|","425|1|","286|1|","5|1|"]} 
[2026-02-28 23:52:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5237,"order_number":"AZS-280226-034"} 
[2026-02-28 23:52:40] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5237,"order_number":"AZS-280226-034","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1200,"update_data_payment_mode":"online","update_data_paid_at":"2026-02-28 23:52:40","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-02-28 23:52:40"} 
[2026-02-28 23:52:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5237,"order_number":"AZS-280226-034","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-02-28 23:52:40"} 
[2026-02-28 23:52:40] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5237,"order_number":"AZS-280226-034","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1200.00","payment_mode_after_update":"online","paid_at_after_update":"2026-02-28 23:52:40","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1200.00","database_verification_match":true,"timestamp":"2026-02-28 23:52:40"} 
[2026-02-28 23:52:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5235,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25486},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25487},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null,"id":25488}],"validated_items":[{"id":25486,"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":25487,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":25488,"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:52:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5235,"items_count":3} 
[2026-02-28 23:52:49] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25486,"menu_item_id":422,"quantity":1},{"id":25487,"menu_item_id":416,"quantity":1},{"id":25488,"menu_item_id":412,"quantity":1}]} 
[2026-02-28 23:52:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5235,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["422|1|","416|1|","412|1|"],"new_items_map_keys":["422|1|","416|1|","412|1|"]} 
[2026-02-28 23:52:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5235,"order_number":"AZS-280226-036"} 
[2026-02-28 23:52:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5235,"order_number":"AZS-280226-036","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 23:52:49"} 
[2026-02-28 23:52:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5235,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null,"id":25486},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null,"id":25487},{"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null,"id":25488},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25486,"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null},{"id":25487,"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null},{"id":25488,"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:52:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5235,"items_count":4} 
[2026-02-28 23:52:58] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25486,"menu_item_id":422,"quantity":1},{"id":25487,"menu_item_id":416,"quantity":1},{"id":25488,"menu_item_id":412,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-02-28 23:52:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5235,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["422|1|","416|1|","412|1|"],"new_items_map_keys":["422|1|","416|1|","412|1|","4|1|"]} 
[2026-02-28 23:52:58] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5235,"order_number":"AZS-280226-036"} 
[2026-02-28 23:52:58] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280226-036","replaced_order_id":5235} 
[2026-02-28 23:52:58] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5241,"items_count":4,"items":[{"menu_item_id":422,"quantity":1,"price":"70.00"},{"menu_item_id":416,"quantity":1,"price":"70.00"},{"menu_item_id":412,"quantity":1,"price":"220.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-02-28 23:52:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5241,"item_index":0,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5241}} 
[2026-02-28 23:52:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5241,"item_index":0,"menu_item_id":422} 
[2026-02-28 23:52:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5241,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5241}} 
[2026-02-28 23:52:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5241,"item_index":1,"menu_item_id":416} 
[2026-02-28 23:52:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5241,"item_index":2,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":1,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":220.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5241}} 
[2026-02-28 23:52:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5241,"item_index":2,"menu_item_id":412} 
[2026-02-28 23:52:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5241,"item_index":3,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5241}} 
[2026-02-28 23:52:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5241,"item_index":3,"menu_item_id":4} 
[2026-02-28 23:52:58] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5235,"new_order_id":5241,"order_number":"AZS-280226-036"} 
[2026-02-28 23:53:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5241,"item_index":0,"item_id":25486} 
[2026-02-28 23:53:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5241,"item_index":1,"item_id":25487} 
[2026-02-28 23:53:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5241,"item_index":2,"item_id":25488} 
[2026-02-28 23:53:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5241,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25486},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25487},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null,"id":25488},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:53:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5241,"items_count":4} 
[2026-02-28 23:53:03] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[25507,25508,25509,25510],"items":[{"id":null,"menu_item_id":422,"quantity":1},{"id":null,"menu_item_id":416,"quantity":1},{"id":null,"menu_item_id":412,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-02-28 23:53:03] local.INFO: PosOrderController::update - Item changes check {"order_id":5241,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["422|1|","416|1|","412|1|","4|1|"],"new_items_map_keys":["422|1|","416|1|","412|1|","4|1|"]} 
[2026-02-28 23:53:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5241,"order_number":"AZS-280226-036"} 
[2026-02-28 23:53:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5241,"order_number":"AZS-280226-036","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 23:53:03"} 
[2026-02-28 23:56:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5236,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"price":599,"discount_percent":0,"notes":null,"id":25489},{"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":25490}],"validated_items":[{"id":25489,"menu_item_id":411,"quantity":3,"price":599,"discount_percent":0,"notes":null},{"id":25490,"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null}]} 
[2026-02-28 23:56:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5236,"items_count":2} 
[2026-02-28 23:56:26] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25489,"menu_item_id":411,"quantity":3},{"id":25490,"menu_item_id":416,"quantity":4}]} 
[2026-02-28 23:56:26] local.INFO: PosOrderController::update - Item changes check {"order_id":5236,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|3|","416|4|"],"new_items_map_keys":["411|3|","416|4|"]} 
[2026-02-28 23:56:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5236,"order_number":"AZS-280226-033"} 
[2026-02-28 23:56:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5236,"order_number":"AZS-280226-033","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-02-28 23:56:26"} 
[2026-03-01 00:01:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5236,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"price":599,"discount_percent":0,"notes":null,"id":25489},{"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":25490}],"validated_items":[{"id":25489,"menu_item_id":411,"quantity":3,"price":599,"discount_percent":0,"notes":null},{"id":25490,"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-01 00:01:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5236,"items_count":2} 
[2026-03-01 00:01:35] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25489,"menu_item_id":411,"quantity":3},{"id":25490,"menu_item_id":416,"quantity":4}]} 
[2026-03-01 00:01:35] local.INFO: PosOrderController::update - Item changes check {"order_id":5236,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|3|","416|4|"],"new_items_map_keys":["411|3|","416|4|"]} 
[2026-03-01 00:01:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5236,"order_number":"AZS-280226-033"} 
[2026-03-01 00:01:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5236,"order_number":"AZS-280226-033","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 00:01:35"} 
[2026-03-01 00:01:41] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5236,"order_number":"AZS-280226-033","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 00:01:41"} 
[2026-03-01 00:01:41] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5236,"order_number":"AZS-280226-033","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 00:01:41"} 
[2026-03-01 00:01:41] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5236,"order_number":"AZS-280226-033","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 00:01:41"} 
[2026-03-01 00:01:41] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5236,"order_number":"AZS-280226-033","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 00:01:41"} 
[2026-03-01 00:01:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5236,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"price":599,"discount_percent":0,"notes":null,"id":25489},{"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":25490}],"validated_items":[{"id":25489,"menu_item_id":411,"quantity":3,"price":599,"discount_percent":0,"notes":null},{"id":25490,"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-01 00:01:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5236,"items_count":2} 
[2026-03-01 00:01:41] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25489,"menu_item_id":411,"quantity":3},{"id":25490,"menu_item_id":416,"quantity":4}]} 
[2026-03-01 00:01:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5236,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|3|","416|4|"],"new_items_map_keys":["411|3|","416|4|"]} 
[2026-03-01 00:01:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5236,"order_number":"AZS-280226-033"} 
[2026-03-01 00:01:41] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5236,"order_number":"AZS-280226-033","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-01 00:01:41","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-01 00:01:41"} 
[2026-03-01 00:01:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5236,"order_number":"AZS-280226-033","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-01 00:01:41"} 
[2026-03-01 00:01:41] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5236,"order_number":"AZS-280226-033","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-01 00:01:41","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2100.00","database_verification_match":true,"timestamp":"2026-03-01 00:01:41"} 
[2026-03-01 00:01:57] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5240,"order_number":"AZS-280226-035","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 00:01:57"} 
[2026-03-01 00:01:57] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5240,"order_number":"AZS-280226-035","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 00:01:57"} 
[2026-03-01 00:01:57] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5240,"order_number":"AZS-280226-035","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 00:01:57"} 
[2026-03-01 00:01:57] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5240,"order_number":"AZS-280226-035","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 00:01:57"} 
[2026-03-01 00:01:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5240,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25505},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25506}],"validated_items":[{"id":25505,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":25506,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-01 00:01:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5240,"items_count":2} 
[2026-03-01 00:01:57] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25505,"menu_item_id":411,"quantity":1},{"id":25506,"menu_item_id":5,"quantity":1}]} 
[2026-03-01 00:01:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5240,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","5|1|"],"new_items_map_keys":["411|1|","5|1|"]} 
[2026-03-01 00:01:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5240,"order_number":"AZS-280226-035"} 
[2026-03-01 00:01:57] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5240,"order_number":"AZS-280226-035","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-01 00:01:57","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-01 00:01:57"} 
[2026-03-01 00:01:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5240,"order_number":"AZS-280226-035","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-01 00:01:57"} 
[2026-03-01 00:01:57] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5240,"order_number":"AZS-280226-035","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-01 00:01:57","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-01 00:01:57"} 
[2026-03-01 00:02:15] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5239,"order_number":"AZS-280226-037","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 00:02:15"} 
[2026-03-01 00:02:15] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5239,"order_number":"AZS-280226-037","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 00:02:15"} 
[2026-03-01 00:02:15] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5239,"order_number":"AZS-280226-037","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 00:02:15"} 
[2026-03-01 00:02:15] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5239,"order_number":"AZS-280226-037","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 00:02:15"} 
[2026-03-01 00:02:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5239,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":25504}],"validated_items":[{"id":25504,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-01 00:02:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5239,"items_count":1} 
[2026-03-01 00:02:15] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25504,"menu_item_id":4,"quantity":1}]} 
[2026-03-01 00:02:15] local.INFO: PosOrderController::update - Item changes check {"order_id":5239,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["4|1|"],"new_items_map_keys":["4|1|"]} 
[2026-03-01 00:02:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5239,"order_number":"AZS-280226-037"} 
[2026-03-01 00:02:15] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5239,"order_number":"AZS-280226-037","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-01 00:02:15","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-01 00:02:15"} 
[2026-03-01 00:02:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5239,"order_number":"AZS-280226-037","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-01 00:02:15"} 
[2026-03-01 00:02:15] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5239,"order_number":"AZS-280226-037","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-01 00:02:15","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"100.00","database_verification_match":true,"timestamp":"2026-03-01 00:02:15"} 
[2026-03-01 00:02:43] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5241,"order_number":"AZS-280226-036","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":473,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 00:02:43"} 
[2026-03-01 00:02:43] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5241,"order_number":"AZS-280226-036","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":473,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 00:02:43"} 
[2026-03-01 00:02:43] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5241,"order_number":"AZS-280226-036","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":473,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 00:02:43"} 
[2026-03-01 00:02:43] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5241,"order_number":"AZS-280226-036","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":473,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 00:02:43"} 
[2026-03-01 00:02:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5241,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25507},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25508},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null,"id":25509},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":25510}],"validated_items":[{"id":25507,"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":25508,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":25509,"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null},{"id":25510,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-01 00:02:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5241,"items_count":4} 
[2026-03-01 00:02:43] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25507,"menu_item_id":422,"quantity":1},{"id":25508,"menu_item_id":416,"quantity":1},{"id":25509,"menu_item_id":412,"quantity":1},{"id":25510,"menu_item_id":4,"quantity":1}]} 
[2026-03-01 00:02:43] local.INFO: PosOrderController::update - Item changes check {"order_id":5241,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["422|1|","416|1|","412|1|","4|1|"],"new_items_map_keys":["422|1|","416|1|","412|1|","4|1|"]} 
[2026-03-01 00:02:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5241,"order_number":"AZS-280226-036"} 
[2026-03-01 00:02:43] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5241,"order_number":"AZS-280226-036","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":473,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-01 00:02:43","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-01 00:02:43"} 
[2026-03-01 00:02:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5241,"order_number":"AZS-280226-036","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-01 00:02:43"} 
[2026-03-01 00:02:43] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5241,"order_number":"AZS-280226-036","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"473.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-01 00:02:43","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":473,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"473.00","database_verification_match":true,"timestamp":"2026-03-01 00:02:43"} 
[2026-03-01 00:02:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T12:02:54.483Z","date_to":"2026-03-01T00:02:54.483Z","per_page":"100"} 
[2026-03-01 00:02:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":96,"count":96,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-037","AZS-280226-036","AZS-280226-036","AZS-280226-036","AZS-280226-035","AZS-280226-035","AZS-280226-034","AZS-280226-034","AZS-280226-034","AZS-280226-034","AZS-280226-033","AZS-280226-033","AZS-280226-033","AZS-280226-032","AZS-280226-032","AZS-280226-032","AZS-280226-031","AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":59,"paid_count":36,"unpaid_count":1,"unique_order_numbers":37} 
[2026-03-01 00:02:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T12:02:54.467Z","date_to":"2026-03-01T00:02:54.467Z","per_page":"100"} 
[2026-03-01 00:02:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":96,"count":96,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-037","AZS-280226-036","AZS-280226-036","AZS-280226-036","AZS-280226-035","AZS-280226-035","AZS-280226-034","AZS-280226-034","AZS-280226-034","AZS-280226-034","AZS-280226-033","AZS-280226-033","AZS-280226-033","AZS-280226-032","AZS-280226-032","AZS-280226-032","AZS-280226-031","AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":59,"paid_count":36,"unpaid_count":1,"unique_order_numbers":37} 
[2026-03-01 00:02:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T12:02:54.467Z","date_to":"2026-03-01T00:02:54.467Z","per_page":"100"} 
[2026-03-01 00:02:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":96,"count":96,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280226-037","AZS-280226-036","AZS-280226-036","AZS-280226-036","AZS-280226-035","AZS-280226-035","AZS-280226-034","AZS-280226-034","AZS-280226-034","AZS-280226-034","AZS-280226-033","AZS-280226-033","AZS-280226-033","AZS-280226-032","AZS-280226-032","AZS-280226-032","AZS-280226-031","AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":59,"paid_count":36,"unpaid_count":1,"unique_order_numbers":37} 
[2026-03-01 00:06:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T12:02:54.483Z","date_to":"2026-03-01T00:02:54.483Z","per_page":"1000"} 
[2026-03-01 00:06:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":96,"count":96,"current_page":1,"last_page":1,"per_page":1000,"order_branch_ids":[1],"order_numbers":["AZS-280226-037","AZS-280226-036","AZS-280226-036","AZS-280226-036","AZS-280226-035","AZS-280226-035","AZS-280226-034","AZS-280226-034","AZS-280226-034","AZS-280226-034","AZS-280226-033","AZS-280226-033","AZS-280226-033","AZS-280226-032","AZS-280226-032","AZS-280226-032","AZS-280226-031","AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":59,"paid_count":36,"unpaid_count":1,"unique_order_numbers":37} 
[2026-03-01 00:09:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5242,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":25511}],"validated_items":[{"id":25511,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-01 00:09:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5242,"items_count":1} 
[2026-03-01 00:09:09] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25511,"menu_item_id":2,"quantity":1}]} 
[2026-03-01 00:09:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5242,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["2|1|"],"new_items_map_keys":["2|1|"]} 
[2026-03-01 00:09:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5242,"order_number":"AZS-010326-001"} 
[2026-03-01 00:09:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5242,"order_number":"AZS-010326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-01 00:09:09"} 
[2026-03-01 00:09:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T12:09:16.528Z","date_to":"2026-03-01T00:09:16.528Z","per_page":"100"} 
[2026-03-01 00:09:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T12:09:16.512Z","date_to":"2026-03-01T00:09:16.512Z","per_page":"100"} 
[2026-03-01 00:09:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":97,"count":97,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-001","AZS-280226-037","AZS-280226-036","AZS-280226-036","AZS-280226-036","AZS-280226-035","AZS-280226-035","AZS-280226-034","AZS-280226-034","AZS-280226-034","AZS-280226-034","AZS-280226-033","AZS-280226-033","AZS-280226-033","AZS-280226-032","AZS-280226-032","AZS-280226-032","AZS-280226-031","AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":59,"paid_count":36,"unpaid_count":2,"unique_order_numbers":38} 
[2026-03-01 00:09:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":97,"count":97,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-001","AZS-280226-037","AZS-280226-036","AZS-280226-036","AZS-280226-036","AZS-280226-035","AZS-280226-035","AZS-280226-034","AZS-280226-034","AZS-280226-034","AZS-280226-034","AZS-280226-033","AZS-280226-033","AZS-280226-033","AZS-280226-032","AZS-280226-032","AZS-280226-032","AZS-280226-031","AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":59,"paid_count":36,"unpaid_count":2,"unique_order_numbers":38} 
[2026-03-01 00:09:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T12:09:16.512Z","date_to":"2026-03-01T00:09:16.512Z","per_page":"100"} 
[2026-03-01 00:09:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":97,"count":97,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-001","AZS-280226-037","AZS-280226-036","AZS-280226-036","AZS-280226-036","AZS-280226-035","AZS-280226-035","AZS-280226-034","AZS-280226-034","AZS-280226-034","AZS-280226-034","AZS-280226-033","AZS-280226-033","AZS-280226-033","AZS-280226-032","AZS-280226-032","AZS-280226-032","AZS-280226-031","AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":59,"paid_count":36,"unpaid_count":2,"unique_order_numbers":38} 
[2026-03-01 00:09:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T12:09:16.528Z","date_to":"2026-03-01T00:09:16.528Z","per_page":"1000"} 
[2026-03-01 00:09:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":97,"count":97,"current_page":1,"last_page":1,"per_page":1000,"order_branch_ids":[1],"order_numbers":["AZS-010326-001","AZS-280226-037","AZS-280226-036","AZS-280226-036","AZS-280226-036","AZS-280226-035","AZS-280226-035","AZS-280226-034","AZS-280226-034","AZS-280226-034","AZS-280226-034","AZS-280226-033","AZS-280226-033","AZS-280226-033","AZS-280226-032","AZS-280226-032","AZS-280226-032","AZS-280226-031","AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["pending","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":59,"paid_count":36,"unpaid_count":2,"unique_order_numbers":38} 
[2026-03-01 00:09:52] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5242,"order_number":"AZS-010326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":130,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 00:09:52"} 
[2026-03-01 00:09:52] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5242,"order_number":"AZS-010326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":130,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 00:09:52"} 
[2026-03-01 00:09:52] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5242,"order_number":"AZS-010326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":130,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 00:09:52"} 
[2026-03-01 00:09:52] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5242,"order_number":"AZS-010326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":130,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 00:09:52"} 
[2026-03-01 00:09:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5242,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":25511}],"validated_items":[{"id":25511,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-01 00:09:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5242,"items_count":1} 
[2026-03-01 00:09:52] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25511,"menu_item_id":2,"quantity":1}]} 
[2026-03-01 00:09:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5242,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["2|1|"],"new_items_map_keys":["2|1|"]} 
[2026-03-01 00:09:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5242,"order_number":"AZS-010326-001"} 
[2026-03-01 00:09:52] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5242,"order_number":"AZS-010326-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":130,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-01 00:09:52","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-01 00:09:52"} 
[2026-03-01 00:09:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5242,"order_number":"AZS-010326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-01 00:09:52"} 
[2026-03-01 00:09:52] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5242,"order_number":"AZS-010326-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"130.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-01 00:09:52","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":130,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"130.00","database_verification_match":true,"timestamp":"2026-03-01 00:09:52"} 
[2026-03-01 00:10:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T12:10:00.263Z","date_to":"2026-03-01T00:10:00.263Z","per_page":"100"} 
[2026-03-01 00:10:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":97,"count":97,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-001","AZS-280226-037","AZS-280226-036","AZS-280226-036","AZS-280226-036","AZS-280226-035","AZS-280226-035","AZS-280226-034","AZS-280226-034","AZS-280226-034","AZS-280226-034","AZS-280226-033","AZS-280226-033","AZS-280226-033","AZS-280226-032","AZS-280226-032","AZS-280226-032","AZS-280226-031","AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":59,"paid_count":37,"unpaid_count":1,"unique_order_numbers":38} 
[2026-03-01 00:10:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T12:10:00.272Z","date_to":"2026-03-01T00:10:00.272Z","per_page":"100"} 
[2026-03-01 00:10:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":97,"count":97,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-001","AZS-280226-037","AZS-280226-036","AZS-280226-036","AZS-280226-036","AZS-280226-035","AZS-280226-035","AZS-280226-034","AZS-280226-034","AZS-280226-034","AZS-280226-034","AZS-280226-033","AZS-280226-033","AZS-280226-033","AZS-280226-032","AZS-280226-032","AZS-280226-032","AZS-280226-031","AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":59,"paid_count":37,"unpaid_count":1,"unique_order_numbers":38} 
[2026-03-01 00:10:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-02-28T12:10:00.263Z","date_to":"2026-03-01T00:10:00.263Z","per_page":"100"} 
[2026-03-01 00:10:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":97,"count":97,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-001","AZS-280226-037","AZS-280226-036","AZS-280226-036","AZS-280226-036","AZS-280226-035","AZS-280226-035","AZS-280226-034","AZS-280226-034","AZS-280226-034","AZS-280226-034","AZS-280226-033","AZS-280226-033","AZS-280226-033","AZS-280226-032","AZS-280226-032","AZS-280226-032","AZS-280226-031","AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-280226-001"],"order_statuses":["paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed"],"deleted_count":59,"paid_count":37,"unpaid_count":1,"unique_order_numbers":38} 
[2026-03-01 13:42:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5244,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25513},{"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null,"id":25514},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":25515},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":25513,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":25514,"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null},{"id":25515,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-01 13:42:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5244,"items_count":5} 
[2026-03-01 13:42:27] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25513,"menu_item_id":396,"quantity":2},{"id":25514,"menu_item_id":55,"quantity":1},{"id":25515,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-03-01 13:42:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5244,"has_item_changes":true,"old_items_count":3,"new_items_count":5,"old_items_map_keys":["396|2|","55|1|","105|1|"],"new_items_map_keys":["396|2|","55|1|","105|1|","61|2|","2|3|"]} 
[2026-03-01 13:42:27] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5244,"order_number":"AZS-010326-003"} 
[2026-03-01 13:42:27] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010326-003","replaced_order_id":5244} 
[2026-03-01 13:42:27] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5245,"items_count":5,"items":[{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":55,"quantity":1,"price":"159.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"}]} 
[2026-03-01 13:42:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5245,"item_index":0,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5245}} 
[2026-03-01 13:42:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5245,"item_index":0,"menu_item_id":396} 
[2026-03-01 13:42:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5245,"item_index":1,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5245}} 
[2026-03-01 13:42:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5245,"item_index":1,"menu_item_id":55} 
[2026-03-01 13:42:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5245,"item_index":2,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5245}} 
[2026-03-01 13:42:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5245,"item_index":2,"menu_item_id":105} 
[2026-03-01 13:42:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5245,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5245}} 
[2026-03-01 13:42:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5245,"item_index":3,"menu_item_id":61} 
[2026-03-01 13:42:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5245,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5245}} 
[2026-03-01 13:42:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5245,"item_index":4,"menu_item_id":2} 
[2026-03-01 13:42:27] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5244,"new_order_id":5245,"order_number":"AZS-010326-003"} 
[2026-03-01 13:50:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5245,"item_index":0,"item_id":25513} 
[2026-03-01 13:50:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5245,"item_index":1,"item_id":25514} 
[2026-03-01 13:50:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5245,"item_index":2,"item_id":25515} 
[2026-03-01 13:50:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5245,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25513},{"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null,"id":25514},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":25515},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-01 13:50:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5245,"items_count":5} 
[2026-03-01 13:50:55] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[25516,25517,25518,25519,25520],"items":[{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":55,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-03-01 13:50:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5245,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["396|2|","55|1|","105|1|","61|2|","2|3|"],"new_items_map_keys":["396|2|","55|1|","105|1|","61|1|","2|3|"]} 
[2026-03-01 13:50:55] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5245,"order_number":"AZS-010326-003"} 
[2026-03-01 13:50:55] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010326-003","replaced_order_id":5245} 
[2026-03-01 13:50:55] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5246,"items_count":5,"items":[{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":55,"quantity":1,"price":"159.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"}]} 
[2026-03-01 13:50:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5246,"item_index":0,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5246}} 
[2026-03-01 13:50:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5246,"item_index":0,"menu_item_id":396} 
[2026-03-01 13:50:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5246,"item_index":1,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5246}} 
[2026-03-01 13:50:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5246,"item_index":1,"menu_item_id":55} 
[2026-03-01 13:50:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5246,"item_index":2,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5246}} 
[2026-03-01 13:50:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5246,"item_index":2,"menu_item_id":105} 
[2026-03-01 13:50:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5246,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5246}} 
[2026-03-01 13:50:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5246,"item_index":3,"menu_item_id":61} 
[2026-03-01 13:50:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5246,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5246}} 
[2026-03-01 13:50:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5246,"item_index":4,"menu_item_id":2} 
[2026-03-01 13:50:55] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5245,"new_order_id":5246,"order_number":"AZS-010326-003"} 
[2026-03-01 13:58:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5246,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25521},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":25522},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":25523},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25524},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":25525}],"validated_items":[{"id":25521,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25522,"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":25523,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":25524,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25525,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-01 13:58:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5246,"items_count":5} 
[2026-03-01 13:58:29] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25521,"menu_item_id":396,"quantity":2},{"id":25522,"menu_item_id":55,"quantity":1},{"id":25523,"menu_item_id":105,"quantity":1},{"id":25524,"menu_item_id":61,"quantity":1},{"id":25525,"menu_item_id":2,"quantity":3}]} 
[2026-03-01 13:58:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5246,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["396|2|","55|1|","105|1|","61|1|","2|3|"],"new_items_map_keys":["396|2|","55|1|","105|1|","61|1|","2|3|"]} 
[2026-03-01 13:58:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5246,"order_number":"AZS-010326-003"} 
[2026-03-01 13:58:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5246,"order_number":"AZS-010326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 13:58:29"} 
[2026-03-01 14:02:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5243,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":25512}],"validated_items":[{"id":25512,"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-01 14:02:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5243,"items_count":1} 
[2026-03-01 14:02:19] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25512,"menu_item_id":417,"quantity":2}]} 
[2026-03-01 14:02:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5243,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|2|"],"new_items_map_keys":["417|2|"]} 
[2026-03-01 14:02:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5243,"order_number":"AZS-010326-002"} 
[2026-03-01 14:02:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5243,"order_number":"AZS-010326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 14:02:19"} 
[2026-03-01 14:02:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5243,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null,"id":25512},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25512,"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-01 14:02:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5243,"items_count":2} 
[2026-03-01 14:02:40] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25512,"menu_item_id":417,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-01 14:02:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5243,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["417|2|"],"new_items_map_keys":["417|2|","5|1|"]} 
[2026-03-01 14:02:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5243,"order_number":"AZS-010326-002"} 
[2026-03-01 14:02:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010326-002","replaced_order_id":5243} 
[2026-03-01 14:02:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5248,"items_count":2,"items":[{"menu_item_id":417,"quantity":2,"price":"499.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-01 14:02:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5248,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":2,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5248}} 
[2026-03-01 14:02:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5248,"item_index":0,"menu_item_id":417} 
[2026-03-01 14:02:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5248,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5248}} 
[2026-03-01 14:02:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5248,"item_index":1,"menu_item_id":5} 
[2026-03-01 14:02:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5243,"new_order_id":5248,"order_number":"AZS-010326-002"} 
[2026-03-01 14:02:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5248,"item_index":0,"item_id":25512} 
[2026-03-01 14:02:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":5248,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":25512},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-01 14:02:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5248,"items_count":2} 
[2026-03-01 14:02:46] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[25529,25530],"items":[{"id":null,"menu_item_id":417,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-01 14:02:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5248,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["417|2|","5|1|"],"new_items_map_keys":["417|2|","5|1|"]} 
[2026-03-01 14:02:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5248,"order_number":"AZS-010326-002"} 
[2026-03-01 14:02:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5248,"order_number":"AZS-010326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 14:02:46"} 
[2026-03-01 14:10:26] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5248,"order_number":"AZS-010326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1170,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 14:10:26"} 
[2026-03-01 14:10:26] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5248,"order_number":"AZS-010326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1170,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 14:10:26"} 
[2026-03-01 14:10:26] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5248,"order_number":"AZS-010326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1170,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 14:10:26"} 
[2026-03-01 14:10:26] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5248,"order_number":"AZS-010326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1170,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 14:10:26"} 
[2026-03-01 14:10:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5248,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":25529},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25530}],"validated_items":[{"id":25529,"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null},{"id":25530,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-01 14:10:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5248,"items_count":2} 
[2026-03-01 14:10:26] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25529,"menu_item_id":417,"quantity":2},{"id":25530,"menu_item_id":5,"quantity":1}]} 
[2026-03-01 14:10:26] local.INFO: PosOrderController::update - Item changes check {"order_id":5248,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["417|2|","5|1|"],"new_items_map_keys":["417|2|","5|1|"]} 
[2026-03-01 14:10:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5248,"order_number":"AZS-010326-002"} 
[2026-03-01 14:10:26] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5248,"order_number":"AZS-010326-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1170,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-01 14:10:26","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-01 14:10:26"} 
[2026-03-01 14:10:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5248,"order_number":"AZS-010326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-01 14:10:26"} 
[2026-03-01 14:10:26] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5248,"order_number":"AZS-010326-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1170.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-01 14:10:26","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1170,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1170.00","database_verification_match":true,"timestamp":"2026-03-01 14:10:26"} 
[2026-03-01 14:36:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5246,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25521},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":25522},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":25523},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25524},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":25525}],"validated_items":[{"id":25521,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25522,"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":25523,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":25524,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25525,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-01 14:36:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5246,"items_count":5} 
[2026-03-01 14:36:13] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25521,"menu_item_id":396,"quantity":2},{"id":25522,"menu_item_id":55,"quantity":1},{"id":25523,"menu_item_id":105,"quantity":1},{"id":25524,"menu_item_id":61,"quantity":1},{"id":25525,"menu_item_id":2,"quantity":3}]} 
[2026-03-01 14:36:13] local.INFO: PosOrderController::update - Item changes check {"order_id":5246,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["396|2|","55|1|","105|1|","61|1|","2|3|"],"new_items_map_keys":["396|2|","55|1|","105|1|","61|1|","2|3|"]} 
[2026-03-01 14:36:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5246,"order_number":"AZS-010326-003"} 
[2026-03-01 14:36:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5246,"order_number":"AZS-010326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 14:36:13"} 
[2026-03-01 14:36:43] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5246,"order_number":"AZS-010326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 14:36:43"} 
[2026-03-01 14:36:43] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5246,"order_number":"AZS-010326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 14:36:43"} 
[2026-03-01 14:36:43] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5246,"order_number":"AZS-010326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 14:36:43"} 
[2026-03-01 14:36:43] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5246,"order_number":"AZS-010326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 14:36:43"} 
[2026-03-01 14:36:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":5246,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25521},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":25522},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":25523},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":25525}],"validated_items":[{"id":25521,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25522,"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":25523,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":25525,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-01 14:36:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5246,"items_count":4} 
[2026-03-01 14:36:43] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[25524],"items":[{"id":25521,"menu_item_id":396,"quantity":2},{"id":25522,"menu_item_id":55,"quantity":1},{"id":25523,"menu_item_id":105,"quantity":1},{"id":25525,"menu_item_id":2,"quantity":3}]} 
[2026-03-01 14:36:43] local.INFO: PosOrderController::update - Item changes check {"order_id":5246,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["396|2|","55|1|","105|1|","61|1|","2|3|"],"new_items_map_keys":["396|2|","55|1|","105|1|","2|3|"]} 
[2026-03-01 14:36:43] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5246,"order_number":"AZS-010326-003","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-01 14:36:43","original_payment_amount":"0.00","grand_total":2946.0,"timestamp":"2026-03-01 14:36:43"} 
[2026-03-01 14:36:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5246,"order_number":"AZS-010326-003"} 
[2026-03-01 14:36:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010326-003","replaced_order_id":5246} 
[2026-03-01 14:36:43] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5246,"new_order_id":5249,"order_number":"AZS-010326-003","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-01 14:36:43","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-01 14:36:43"} 
[2026-03-01 14:36:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5249,"items_count":4,"items":[{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":55,"quantity":1,"price":159.0},{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":2,"quantity":3,"price":130.0}]} 
[2026-03-01 14:36:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5249,"item_index":0,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5249}} 
[2026-03-01 14:36:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5249,"item_index":0,"menu_item_id":396} 
[2026-03-01 14:36:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5249,"item_index":1,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":1,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5249}} 
[2026-03-01 14:36:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5249,"item_index":1,"menu_item_id":55} 
[2026-03-01 14:36:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5249,"item_index":2,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5249}} 
[2026-03-01 14:36:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5249,"item_index":2,"menu_item_id":105} 
[2026-03-01 14:36:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5249,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5249}} 
[2026-03-01 14:36:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5249,"item_index":3,"menu_item_id":2} 
[2026-03-01 14:36:43] local.ERROR: Error tracking recipe usage for order 5249: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5249, 55, 102, 1, 10, 0.00, Order #AZS-010326-003 - 1x Garlic Naan, 2026-03-01 14:36:43, 2026-03-01 14:36:43))  
[2026-03-01 14:36:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5246,"new_order_id":5249,"order_number":"AZS-010326-003"} 
[2026-03-01 14:36:44] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5246,"new_order_id":5249,"order_number":"AZS-010326-003","route":"api/orders/5246"} 
[2026-03-01 14:41:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T02:41:26.417Z","date_to":"2026-03-01T14:41:26.417Z","per_page":"100"} 
[2026-03-01 14:41:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T02:41:26.402Z","date_to":"2026-03-01T14:41:26.402Z","per_page":"100"} 
[2026-03-01 14:41:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","paid","changed","changed","changed","paid","changed"],"deleted_count":4,"paid_count":2,"unpaid_count":1,"unique_order_numbers":3} 
[2026-03-01 14:41:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","paid","changed","changed","changed","paid","changed"],"deleted_count":4,"paid_count":2,"unpaid_count":1,"unique_order_numbers":3} 
[2026-03-01 14:41:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T02:41:26.402Z","date_to":"2026-03-01T14:41:26.402Z","per_page":"100"} 
[2026-03-01 14:41:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","paid","changed","changed","changed","paid","changed"],"deleted_count":4,"paid_count":2,"unpaid_count":1,"unique_order_numbers":3} 
[2026-03-01 14:54:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5247,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":76,"quantity":1,"price":1594.990000000000009094947017729282379150390625,"discount_percent":0,"notes":null,"id":25526},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25527},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25528}],"validated_items":[{"id":25526,"menu_item_id":76,"quantity":1,"price":1594.990000000000009094947017729282379150390625,"discount_percent":0,"notes":null},{"id":25527,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25528,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-01 14:54:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5247,"items_count":3} 
[2026-03-01 14:54:30] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25526,"menu_item_id":76,"quantity":1},{"id":25527,"menu_item_id":61,"quantity":1},{"id":25528,"menu_item_id":396,"quantity":1}]} 
[2026-03-01 14:54:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5247,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["76|1|","61|1|","396|1|"],"new_items_map_keys":["76|1|","61|1|","396|1|"]} 
[2026-03-01 14:54:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5247,"order_number":"AZS-010326-004"} 
[2026-03-01 14:54:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5247,"order_number":"AZS-010326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 14:54:30"} 
[2026-03-01 14:55:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5247,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":76,"quantity":1,"discount_percent":0,"notes":null,"id":25526},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":25527},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":25528},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25526,"menu_item_id":76,"quantity":1,"discount_percent":0,"notes":null},{"id":25527,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":25528,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-01 14:55:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5247,"items_count":4} 
[2026-03-01 14:55:03] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25526,"menu_item_id":76,"quantity":1},{"id":25527,"menu_item_id":61,"quantity":1},{"id":25528,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-01 14:55:03] local.INFO: PosOrderController::update - Item changes check {"order_id":5247,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["76|1|","61|1|","396|1|"],"new_items_map_keys":["76|1|","61|1|","396|1|","5|1|"]} 
[2026-03-01 14:55:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5247,"order_number":"AZS-010326-004"} 
[2026-03-01 14:55:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010326-004","replaced_order_id":5247} 
[2026-03-01 14:55:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5250,"items_count":4,"items":[{"menu_item_id":76,"quantity":1,"price":"1594.99"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-01 14:55:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5250,"item_index":0,"item_data":{"menu_item_id":76,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Mutton Seekh Kabab (4 pcs)","quantity":1,"price":"1594.99","discount_percent":0.0,"discount_amount":0.0,"total":1594.990000000000009094947017729282379150390625,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5250}} 
[2026-03-01 14:55:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5250,"item_index":0,"menu_item_id":76} 
[2026-03-01 14:55:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5250,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5250}} 
[2026-03-01 14:55:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5250,"item_index":1,"menu_item_id":61} 
[2026-03-01 14:55:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5250,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5250}} 
[2026-03-01 14:55:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5250,"item_index":2,"menu_item_id":396} 
[2026-03-01 14:55:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5250,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5250}} 
[2026-03-01 14:55:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5250,"item_index":3,"menu_item_id":5} 
[2026-03-01 14:55:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5247,"new_order_id":5250,"order_number":"AZS-010326-004"} 
[2026-03-01 14:55:10] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5250,"item_index":0,"item_id":25526} 
[2026-03-01 14:55:10] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5250,"item_index":1,"item_id":25527} 
[2026-03-01 14:55:10] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5250,"item_index":2,"item_id":25528} 
[2026-03-01 14:55:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5250,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":76,"quantity":1,"price":1594.990000000000009094947017729282379150390625,"discount_percent":0,"notes":null,"id":25526},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25527},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25528},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":76,"quantity":1,"price":1594.990000000000009094947017729282379150390625,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-01 14:55:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5250,"items_count":4} 
[2026-03-01 14:55:10] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[25535,25536,25537,25538],"items":[{"id":null,"menu_item_id":76,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-01 14:55:10] local.INFO: PosOrderController::update - Item changes check {"order_id":5250,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["76|1|","61|1|","396|1|","5|1|"],"new_items_map_keys":["76|1|","61|1|","396|1|","5|1|"]} 
[2026-03-01 14:55:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5250,"order_number":"AZS-010326-004"} 
[2026-03-01 14:55:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5250,"order_number":"AZS-010326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 14:55:10"} 
[2026-03-01 15:03:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5250,"item_index":0,"item_id":25526} 
[2026-03-01 15:03:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5250,"item_index":1,"item_id":25527} 
[2026-03-01 15:03:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5250,"item_index":2,"item_id":25528} 
[2026-03-01 15:03:32] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5250,"order_number":"AZS-010326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 15:03:32"} 
[2026-03-01 15:03:32] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5250,"order_number":"AZS-010326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 15:03:32"} 
[2026-03-01 15:03:32] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5250,"order_number":"AZS-010326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 15:03:32"} 
[2026-03-01 15:03:32] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5250,"order_number":"AZS-010326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 15:03:32"} 
[2026-03-01 15:03:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5250,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":76,"quantity":1,"price":1594.990000000000009094947017729282379150390625,"discount_percent":0,"notes":null,"id":25526},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25527},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25528},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":76,"quantity":1,"price":1594.990000000000009094947017729282379150390625,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-01 15:03:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5250,"items_count":4} 
[2026-03-01 15:03:32] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[25535,25536,25537,25538],"items":[{"id":null,"menu_item_id":76,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-01 15:03:32] local.INFO: PosOrderController::update - Item changes check {"order_id":5250,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["76|1|","61|1|","396|1|","5|1|"],"new_items_map_keys":["76|1|","61|1|","396|1|","5|1|"]} 
[2026-03-01 15:03:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5250,"order_number":"AZS-010326-004"} 
[2026-03-01 15:03:32] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5250,"order_number":"AZS-010326-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-01 15:03:32","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-01 15:03:32"} 
[2026-03-01 15:03:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5250,"order_number":"AZS-010326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-01 15:03:32"} 
[2026-03-01 15:03:32] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5250,"order_number":"AZS-010326-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-01 15:03:32","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-01 15:03:32"} 
[2026-03-01 16:08:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":5251,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":25539},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":25541},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25542},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25539,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":25541,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":25542,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-01 16:08:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5251,"items_count":4} 
[2026-03-01 16:08:54] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[25540],"items":[{"id":25539,"menu_item_id":105,"quantity":1},{"id":25541,"menu_item_id":61,"quantity":1},{"id":25542,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":48,"quantity":1}]} 
[2026-03-01 16:08:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5251,"has_item_changes":true,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["105|1|","396|1|","61|1|","5|1|"],"new_items_map_keys":["105|1|","61|1|","5|1|","48|1|"]} 
[2026-03-01 16:08:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5251,"order_number":"AZS-010326-005"} 
[2026-03-01 16:08:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010326-005","replaced_order_id":5251} 
[2026-03-01 16:08:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5252,"items_count":4,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"}]} 
[2026-03-01 16:08:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5252,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5252}} 
[2026-03-01 16:08:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5252,"item_index":0,"menu_item_id":105} 
[2026-03-01 16:08:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5252,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5252}} 
[2026-03-01 16:08:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5252,"item_index":1,"menu_item_id":61} 
[2026-03-01 16:08:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5252,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5252}} 
[2026-03-01 16:08:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5252,"item_index":2,"menu_item_id":5} 
[2026-03-01 16:08:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5252,"item_index":3,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5252}} 
[2026-03-01 16:08:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5252,"item_index":3,"menu_item_id":48} 
[2026-03-01 16:08:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5251,"new_order_id":5252,"order_number":"AZS-010326-005"} 
[2026-03-01 16:16:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5252,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":25543},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25544},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25545},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":25546}],"validated_items":[{"id":25543,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":25544,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25545,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25546,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-01 16:16:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5252,"items_count":4} 
[2026-03-01 16:16:51] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25543,"menu_item_id":105,"quantity":1},{"id":25544,"menu_item_id":61,"quantity":1},{"id":25545,"menu_item_id":5,"quantity":1},{"id":25546,"menu_item_id":48,"quantity":1}]} 
[2026-03-01 16:16:51] local.INFO: PosOrderController::update - Item changes check {"order_id":5252,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["105|1|","61|1|","5|1|","48|1|"],"new_items_map_keys":["105|1|","61|1|","5|1|","48|1|"]} 
[2026-03-01 16:16:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5252,"order_number":"AZS-010326-005"} 
[2026-03-01 16:16:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5252,"order_number":"AZS-010326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 16:16:51"} 
[2026-03-01 16:16:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5252,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":25543},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":25544},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25545},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":25546},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25543,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":25544,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":25545,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":25546,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-01 16:16:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5252,"items_count":5} 
[2026-03-01 16:16:59] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25543,"menu_item_id":105,"quantity":1},{"id":25544,"menu_item_id":61,"quantity":1},{"id":25545,"menu_item_id":5,"quantity":1},{"id":25546,"menu_item_id":48,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-01 16:16:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5252,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["105|1|","61|1|","5|1|","48|1|"],"new_items_map_keys":["105|1|","61|1|","5|1|","48|1|","2|1|"]} 
[2026-03-01 16:16:59] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5252,"order_number":"AZS-010326-005"} 
[2026-03-01 16:16:59] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010326-005","replaced_order_id":5252} 
[2026-03-01 16:16:59] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5253,"items_count":5,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-01 16:16:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5253,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5253}} 
[2026-03-01 16:16:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5253,"item_index":0,"menu_item_id":105} 
[2026-03-01 16:16:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5253,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5253}} 
[2026-03-01 16:16:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5253,"item_index":1,"menu_item_id":61} 
[2026-03-01 16:16:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5253,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5253}} 
[2026-03-01 16:16:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5253,"item_index":2,"menu_item_id":5} 
[2026-03-01 16:16:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5253,"item_index":3,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5253}} 
[2026-03-01 16:16:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5253,"item_index":3,"menu_item_id":48} 
[2026-03-01 16:16:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5253,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5253}} 
[2026-03-01 16:16:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5253,"item_index":4,"menu_item_id":2} 
[2026-03-01 16:16:59] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5252,"new_order_id":5253,"order_number":"AZS-010326-005"} 
[2026-03-01 16:17:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5253,"item_index":0,"item_id":25543} 
[2026-03-01 16:17:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5253,"item_index":1,"item_id":25544} 
[2026-03-01 16:17:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5253,"item_index":2,"item_id":25545} 
[2026-03-01 16:17:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5253,"item_index":3,"item_id":25546} 
[2026-03-01 16:17:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5253,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":25543},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25544},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25545},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":25546},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-01 16:17:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5253,"items_count":5} 
[2026-03-01 16:17:05] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[25547,25548,25549,25550,25551],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":48,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-01 16:17:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5253,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","61|1|","5|1|","48|1|","2|1|"],"new_items_map_keys":["105|1|","61|1|","5|1|","48|1|","2|1|"]} 
[2026-03-01 16:17:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5253,"order_number":"AZS-010326-005"} 
[2026-03-01 16:17:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5253,"order_number":"AZS-010326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 16:17:05"} 
[2026-03-01 16:23:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5253,"item_index":0,"item_id":25543} 
[2026-03-01 16:23:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5253,"item_index":1,"item_id":25544} 
[2026-03-01 16:23:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5253,"item_index":2,"item_id":25545} 
[2026-03-01 16:23:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5253,"item_index":3,"item_id":25546} 
[2026-03-01 16:23:59] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5253,"order_number":"AZS-010326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 16:23:59"} 
[2026-03-01 16:23:59] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5253,"order_number":"AZS-010326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 16:23:59"} 
[2026-03-01 16:23:59] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5253,"order_number":"AZS-010326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 16:23:59"} 
[2026-03-01 16:23:59] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5253,"order_number":"AZS-010326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 16:23:59"} 
[2026-03-01 16:23:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5253,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":25543},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25544},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25545},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":25546},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-01 16:23:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5253,"items_count":5} 
[2026-03-01 16:23:59] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[25547,25548,25549,25550,25551],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":48,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-01 16:23:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5253,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","61|1|","5|1|","48|1|","2|1|"],"new_items_map_keys":["105|1|","61|1|","5|1|","48|1|","2|1|"]} 
[2026-03-01 16:23:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5253,"order_number":"AZS-010326-005"} 
[2026-03-01 16:23:59] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5253,"order_number":"AZS-010326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-01 16:23:59","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-01 16:23:59"} 
[2026-03-01 16:23:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5253,"order_number":"AZS-010326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-01 16:23:59"} 
[2026-03-01 16:23:59] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5253,"order_number":"AZS-010326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-01 16:23:59","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3100.00","database_verification_match":true,"timestamp":"2026-03-01 16:23:59"} 
[2026-03-01 17:16:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5254,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":25552},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":25553},{"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null,"id":25554},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":25555},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":25556},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":25557},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25552,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":25553,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":25554,"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null},{"id":25555,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":25556,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":25557,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-01 17:16:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5254,"items_count":7} 
[2026-03-01 17:16:03] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25552,"menu_item_id":113,"quantity":1},{"id":25553,"menu_item_id":114,"quantity":1},{"id":25554,"menu_item_id":396,"quantity":7},{"id":25555,"menu_item_id":61,"quantity":1},{"id":25556,"menu_item_id":56,"quantity":1},{"id":25557,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-01 17:16:03] local.INFO: PosOrderController::update - Item changes check {"order_id":5254,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["113|1|","114|1|","396|7|","61|1|","56|1|","5|1|"],"new_items_map_keys":["113|1|","114|1|","396|7|","61|1|","56|1|","5|2|","3|1|"]} 
[2026-03-01 17:16:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5254,"order_number":"AZS-010326-006"} 
[2026-03-01 17:16:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010326-006","replaced_order_id":5254} 
[2026-03-01 17:16:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5255,"items_count":7,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":7,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-01 17:16:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5255,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5255}} 
[2026-03-01 17:16:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5255,"item_index":0,"menu_item_id":113} 
[2026-03-01 17:16:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5255,"item_index":1,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5255}} 
[2026-03-01 17:16:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5255,"item_index":1,"menu_item_id":114} 
[2026-03-01 17:16:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5255,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":7,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":693.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5255}} 
[2026-03-01 17:16:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5255,"item_index":2,"menu_item_id":396} 
[2026-03-01 17:16:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5255,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5255}} 
[2026-03-01 17:16:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5255,"item_index":3,"menu_item_id":61} 
[2026-03-01 17:16:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5255,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5255}} 
[2026-03-01 17:16:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5255,"item_index":4,"menu_item_id":56} 
[2026-03-01 17:16:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5255,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5255}} 
[2026-03-01 17:16:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5255,"item_index":5,"menu_item_id":5} 
[2026-03-01 17:16:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5255,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5255}} 
[2026-03-01 17:16:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5255,"item_index":6,"menu_item_id":3} 
[2026-03-01 17:16:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5254,"new_order_id":5255,"order_number":"AZS-010326-006"} 
[2026-03-01 17:54:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":2,"order_id":5256,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-01 17:54:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5256,"items_count":6} 
[2026-03-01 17:54:47] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":2,"items_to_remove":[25565,25566],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-01 17:54:47] local.INFO: PosOrderController::update - Item changes check {"order_id":5256,"has_item_changes":true,"old_items_count":2,"new_items_count":6,"old_items_map_keys":["403|1|","84|1|"],"new_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","5|1|"]} 
[2026-03-01 17:54:47] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5256,"order_number":"AZS-010326-007"} 
[2026-03-01 17:54:47] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010326-007","replaced_order_id":5256} 
[2026-03-01 17:54:47] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5258,"items_count":6,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":52,"quantity":3,"price":"70.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-01 17:54:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5258,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5258}} 
[2026-03-01 17:54:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5258,"item_index":0,"menu_item_id":114} 
[2026-03-01 17:54:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5258,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5258}} 
[2026-03-01 17:54:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5258,"item_index":1,"menu_item_id":52} 
[2026-03-01 17:54:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5258,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5258}} 
[2026-03-01 17:54:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5258,"item_index":2,"menu_item_id":396} 
[2026-03-01 17:54:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5258,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5258}} 
[2026-03-01 17:54:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5258,"item_index":3,"menu_item_id":61} 
[2026-03-01 17:54:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5258,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5258}} 
[2026-03-01 17:54:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5258,"item_index":4,"menu_item_id":56} 
[2026-03-01 17:54:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5258,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5258}} 
[2026-03-01 17:54:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5258,"item_index":5,"menu_item_id":5} 
[2026-03-01 17:54:47] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5256,"new_order_id":5258,"order_number":"AZS-010326-007"} 
[2026-03-01 18:15:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5255,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":25558},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":25559},{"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null,"id":25560},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":25561},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":25562},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":25563},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":25564},{"menu_item_id":9,"quantity":6,"discount_percent":0,"notes":null}],"validated_items":[{"id":25558,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":25559,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":25560,"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null},{"id":25561,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":25562,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":25563,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":25564,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":6,"discount_percent":0,"notes":null}]} 
[2026-03-01 18:15:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5255,"items_count":8} 
[2026-03-01 18:15:35] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25558,"menu_item_id":113,"quantity":1},{"id":25559,"menu_item_id":114,"quantity":1},{"id":25560,"menu_item_id":396,"quantity":7},{"id":25561,"menu_item_id":61,"quantity":1},{"id":25562,"menu_item_id":56,"quantity":1},{"id":25563,"menu_item_id":5,"quantity":2},{"id":25564,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":9,"quantity":6}]} 
[2026-03-01 18:15:35] local.INFO: PosOrderController::update - Item changes check {"order_id":5255,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["113|1|","114|1|","396|7|","61|1|","56|1|","5|2|","3|1|"],"new_items_map_keys":["113|1|","114|1|","396|7|","61|1|","56|1|","5|2|","3|1|","9|6|"]} 
[2026-03-01 18:15:35] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5255,"order_number":"AZS-010326-006"} 
[2026-03-01 18:15:35] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010326-006","replaced_order_id":5255} 
[2026-03-01 18:15:35] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5260,"items_count":8,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":7,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":9,"quantity":6,"price":"229.00"}]} 
[2026-03-01 18:15:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5260,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5260}} 
[2026-03-01 18:15:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5260,"item_index":0,"menu_item_id":113} 
[2026-03-01 18:15:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5260,"item_index":1,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5260}} 
[2026-03-01 18:15:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5260,"item_index":1,"menu_item_id":114} 
[2026-03-01 18:15:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5260,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":7,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":693.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5260}} 
[2026-03-01 18:15:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5260,"item_index":2,"menu_item_id":396} 
[2026-03-01 18:15:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5260,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5260}} 
[2026-03-01 18:15:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5260,"item_index":3,"menu_item_id":61} 
[2026-03-01 18:15:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5260,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5260}} 
[2026-03-01 18:15:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5260,"item_index":4,"menu_item_id":56} 
[2026-03-01 18:15:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5260,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5260}} 
[2026-03-01 18:15:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5260,"item_index":5,"menu_item_id":5} 
[2026-03-01 18:15:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5260,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5260}} 
[2026-03-01 18:15:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5260,"item_index":6,"menu_item_id":3} 
[2026-03-01 18:15:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5260,"item_index":7,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":6,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":1374.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5260}} 
[2026-03-01 18:15:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5260,"item_index":7,"menu_item_id":9} 
[2026-03-01 18:15:35] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5255,"new_order_id":5260,"order_number":"AZS-010326-006"} 
[2026-03-01 18:27:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5258,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":25574},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":25575},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25576},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":25577},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":25578},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25579},{"menu_item_id":2,"quantity":4,"discount_percent":0,"notes":null}],"validated_items":[{"id":25574,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":25575,"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"id":25576,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":25577,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":25578,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":25579,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-03-01 18:27:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5258,"items_count":7} 
[2026-03-01 18:27:24] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25574,"menu_item_id":114,"quantity":1},{"id":25575,"menu_item_id":52,"quantity":3},{"id":25576,"menu_item_id":396,"quantity":2},{"id":25577,"menu_item_id":61,"quantity":2},{"id":25578,"menu_item_id":56,"quantity":2},{"id":25579,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":4}]} 
[2026-03-01 18:27:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5258,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","5|1|"],"new_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","5|1|","2|4|"]} 
[2026-03-01 18:27:24] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5258,"order_number":"AZS-010326-007"} 
[2026-03-01 18:27:24] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010326-007","replaced_order_id":5258} 
[2026-03-01 18:27:24] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5262,"items_count":7,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":52,"quantity":3,"price":"70.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":4,"price":"130.00"}]} 
[2026-03-01 18:27:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5262,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5262}} 
[2026-03-01 18:27:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5262,"item_index":0,"menu_item_id":114} 
[2026-03-01 18:27:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5262,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5262}} 
[2026-03-01 18:27:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5262,"item_index":1,"menu_item_id":52} 
[2026-03-01 18:27:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5262,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5262}} 
[2026-03-01 18:27:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5262,"item_index":2,"menu_item_id":396} 
[2026-03-01 18:27:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5262,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5262}} 
[2026-03-01 18:27:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5262,"item_index":3,"menu_item_id":61} 
[2026-03-01 18:27:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5262,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5262}} 
[2026-03-01 18:27:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5262,"item_index":4,"menu_item_id":56} 
[2026-03-01 18:27:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5262,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5262}} 
[2026-03-01 18:27:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5262,"item_index":5,"menu_item_id":5} 
[2026-03-01 18:27:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5262,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":4,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":520.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5262}} 
[2026-03-01 18:27:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5262,"item_index":6,"menu_item_id":2} 
[2026-03-01 18:27:24] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5258,"new_order_id":5262,"order_number":"AZS-010326-007"} 
[2026-03-01 18:36:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5257,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":25567},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":25568},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":25569},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":25570},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":25571},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":25572},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25573},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":25567,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":25568,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":25569,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":25570,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":25571,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":25572,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":25573,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-01 18:36:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5257,"items_count":8} 
[2026-03-01 18:36:39] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25567,"menu_item_id":102,"quantity":1},{"id":25568,"menu_item_id":62,"quantity":1},{"id":25569,"menu_item_id":396,"quantity":1},{"id":25570,"menu_item_id":50,"quantity":2},{"id":25571,"menu_item_id":61,"quantity":1},{"id":25572,"menu_item_id":56,"quantity":1},{"id":25573,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-03-01 18:36:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5257,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["102|1|","62|1|","396|1|","50|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["102|1|","62|1|","396|1|","50|2|","61|1|","56|1|","5|1|","2|3|"]} 
[2026-03-01 18:36:39] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5257,"order_number":"AZS-010326-008"} 
[2026-03-01 18:36:39] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010326-008","replaced_order_id":5257} 
[2026-03-01 18:36:39] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5263,"items_count":8,"items":[{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"}]} 
[2026-03-01 18:36:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5263,"item_index":0,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5263}} 
[2026-03-01 18:36:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5263,"item_index":0,"menu_item_id":102} 
[2026-03-01 18:36:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5263,"item_index":1,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5263}} 
[2026-03-01 18:36:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5263,"item_index":1,"menu_item_id":62} 
[2026-03-01 18:36:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5263,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5263}} 
[2026-03-01 18:36:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5263,"item_index":2,"menu_item_id":396} 
[2026-03-01 18:36:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5263,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5263}} 
[2026-03-01 18:36:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5263,"item_index":3,"menu_item_id":50} 
[2026-03-01 18:36:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5263,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5263}} 
[2026-03-01 18:36:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5263,"item_index":4,"menu_item_id":61} 
[2026-03-01 18:36:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5263,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5263}} 
[2026-03-01 18:36:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5263,"item_index":5,"menu_item_id":56} 
[2026-03-01 18:36:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5263,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5263}} 
[2026-03-01 18:36:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5263,"item_index":6,"menu_item_id":5} 
[2026-03-01 18:36:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5263,"item_index":7,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5263}} 
[2026-03-01 18:36:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5263,"item_index":7,"menu_item_id":2} 
[2026-03-01 18:36:39] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5257,"new_order_id":5263,"order_number":"AZS-010326-008"} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5262,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":25592},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":25593},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25594},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":25595},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":25596},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25597},{"menu_item_id":2,"quantity":4,"discount_percent":0,"notes":null,"id":25598},{"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":402,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25592,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":25593,"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"id":25594,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":25595,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":25596,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":25597,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":25598,"menu_item_id":2,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":402,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5262,"items_count":9} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25592,"menu_item_id":114,"quantity":1},{"id":25593,"menu_item_id":52,"quantity":3},{"id":25594,"menu_item_id":396,"quantity":2},{"id":25595,"menu_item_id":61,"quantity":2},{"id":25596,"menu_item_id":56,"quantity":2},{"id":25597,"menu_item_id":5,"quantity":1},{"id":25598,"menu_item_id":2,"quantity":4},{"id":null,"menu_item_id":13,"quantity":4},{"id":null,"menu_item_id":402,"quantity":1}]} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5262,"has_item_changes":true,"old_items_count":7,"new_items_count":9,"old_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","5|1|","2|4|"],"new_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","5|1|","2|4|","13|4|","402|1|"]} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5262,"order_number":"AZS-010326-007"} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010326-007","replaced_order_id":5262} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5264,"items_count":9,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":52,"quantity":3,"price":"70.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":4,"price":"130.00"},{"menu_item_id":13,"quantity":4,"price":"249.00"},{"menu_item_id":402,"quantity":1,"price":"325.00"}]} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5264,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5264}} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5264,"item_index":0,"menu_item_id":114} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5264,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5264}} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5264,"item_index":1,"menu_item_id":52} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5264,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5264}} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5264,"item_index":2,"menu_item_id":396} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5264,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5264}} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5264,"item_index":3,"menu_item_id":61} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5264,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5264}} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5264,"item_index":4,"menu_item_id":56} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5264,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5264}} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5264,"item_index":5,"menu_item_id":5} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5264,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":4,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":520.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5264}} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5264,"item_index":6,"menu_item_id":2} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5264,"item_index":7,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":4,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5264}} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5264,"item_index":7,"menu_item_id":13} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5264,"item_index":8,"item_data":{"menu_item_id":402,"restaurant_category_id":39,"restaurant_category_name":"DESSERT BAR","item_name":"HOT GULAB JAMUN","quantity":1,"price":"325.00","discount_percent":0.0,"discount_amount":0.0,"total":325.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5264}} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5264,"item_index":8,"menu_item_id":402} 
[2026-03-01 18:41:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5262,"new_order_id":5264,"order_number":"AZS-010326-007"} 
[2026-03-01 18:43:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5259,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":25580},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":25581},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25582},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25580,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":25581,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"id":25582,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-01 18:43:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5259,"items_count":4} 
[2026-03-01 18:43:04] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25580,"menu_item_id":105,"quantity":1},{"id":25581,"menu_item_id":48,"quantity":1},{"id":25582,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-01 18:43:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5259,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["105|1|","48|1|","396|2|"],"new_items_map_keys":["105|1|","48|1|","396|2|","3|1|"]} 
[2026-03-01 18:43:04] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5259,"order_number":"AZS-010326-009"} 
[2026-03-01 18:43:04] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010326-009","replaced_order_id":5259} 
[2026-03-01 18:43:04] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5265,"items_count":4,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-01 18:43:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5265,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5265}} 
[2026-03-01 18:43:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5265,"item_index":0,"menu_item_id":105} 
[2026-03-01 18:43:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5265,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5265}} 
[2026-03-01 18:43:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5265,"item_index":1,"menu_item_id":48} 
[2026-03-01 18:43:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5265,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5265}} 
[2026-03-01 18:43:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5265,"item_index":2,"menu_item_id":396} 
[2026-03-01 18:43:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5265,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5265}} 
[2026-03-01 18:43:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5265,"item_index":3,"menu_item_id":3} 
[2026-03-01 18:43:04] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5259,"new_order_id":5265,"order_number":"AZS-010326-009"} 
[2026-03-01 18:47:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5260,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25583},{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25584},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null,"id":25585},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25586},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25587},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":25588},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25589},{"menu_item_id":9,"quantity":6,"price":229,"discount_percent":0,"notes":null,"id":25590}],"validated_items":[{"id":25583,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25584,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25585,"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null},{"id":25586,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25587,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25588,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":25589,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":25590,"menu_item_id":9,"quantity":6,"price":229,"discount_percent":0,"notes":null}]} 
[2026-03-01 18:47:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5260,"items_count":8} 
[2026-03-01 18:47:13] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25583,"menu_item_id":113,"quantity":1},{"id":25584,"menu_item_id":114,"quantity":1},{"id":25585,"menu_item_id":396,"quantity":7},{"id":25586,"menu_item_id":61,"quantity":1},{"id":25587,"menu_item_id":56,"quantity":1},{"id":25588,"menu_item_id":5,"quantity":2},{"id":25589,"menu_item_id":3,"quantity":1},{"id":25590,"menu_item_id":9,"quantity":6}]} 
[2026-03-01 18:47:13] local.INFO: PosOrderController::update - Item changes check {"order_id":5260,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["113|1|","114|1|","396|7|","61|1|","56|1|","5|2|","3|1|","9|6|"],"new_items_map_keys":["113|1|","114|1|","396|7|","61|1|","56|1|","5|2|","3|1|","9|6|"]} 
[2026-03-01 18:47:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5260,"order_number":"AZS-010326-006"} 
[2026-03-01 18:47:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5260,"order_number":"AZS-010326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 18:47:13"} 
[2026-03-01 18:53:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":1,"order_id":5264,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":25607},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":25608},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25609},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":25610},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":25611},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":25613},{"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null,"id":25614},{"menu_item_id":402,"quantity":1,"discount_percent":0,"notes":null,"id":25615}],"validated_items":[{"id":25607,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":25608,"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"id":25609,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":25610,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":25611,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":25613,"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null},{"id":25614,"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null},{"id":25615,"menu_item_id":402,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-01 18:53:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5264,"items_count":8} 
[2026-03-01 18:53:06] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":1,"items_to_remove":[25612],"items":[{"id":25607,"menu_item_id":114,"quantity":1},{"id":25608,"menu_item_id":52,"quantity":3},{"id":25609,"menu_item_id":396,"quantity":2},{"id":25610,"menu_item_id":61,"quantity":2},{"id":25611,"menu_item_id":56,"quantity":2},{"id":25613,"menu_item_id":2,"quantity":3},{"id":25614,"menu_item_id":13,"quantity":4},{"id":25615,"menu_item_id":402,"quantity":1}]} 
[2026-03-01 18:53:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5264,"has_item_changes":true,"old_items_count":9,"new_items_count":8,"old_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","5|1|","2|4|","13|4|","402|1|"],"new_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|4|","402|1|"]} 
[2026-03-01 18:53:06] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5264,"order_number":"AZS-010326-007"} 
[2026-03-01 18:53:06] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010326-007","replaced_order_id":5264} 
[2026-03-01 18:53:06] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5266,"items_count":8,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":52,"quantity":3,"price":"70.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"},{"menu_item_id":13,"quantity":4,"price":"249.00"},{"menu_item_id":402,"quantity":1,"price":"325.00"}]} 
[2026-03-01 18:53:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5266,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5266}} 
[2026-03-01 18:53:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5266,"item_index":0,"menu_item_id":114} 
[2026-03-01 18:53:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5266,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5266}} 
[2026-03-01 18:53:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5266,"item_index":1,"menu_item_id":52} 
[2026-03-01 18:53:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5266,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5266}} 
[2026-03-01 18:53:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5266,"item_index":2,"menu_item_id":396} 
[2026-03-01 18:53:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5266,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5266}} 
[2026-03-01 18:53:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5266,"item_index":3,"menu_item_id":61} 
[2026-03-01 18:53:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5266,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5266}} 
[2026-03-01 18:53:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5266,"item_index":4,"menu_item_id":56} 
[2026-03-01 18:53:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5266,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5266}} 
[2026-03-01 18:53:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5266,"item_index":5,"menu_item_id":2} 
[2026-03-01 18:53:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5266,"item_index":6,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":4,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5266}} 
[2026-03-01 18:53:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5266,"item_index":6,"menu_item_id":13} 
[2026-03-01 18:53:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5266,"item_index":7,"item_data":{"menu_item_id":402,"restaurant_category_id":39,"restaurant_category_name":"DESSERT BAR","item_name":"HOT GULAB JAMUN","quantity":1,"price":"325.00","discount_percent":0.0,"discount_amount":0.0,"total":325.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5266}} 
[2026-03-01 18:53:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5266,"item_index":7,"menu_item_id":402} 
[2026-03-01 18:53:06] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5264,"new_order_id":5266,"order_number":"AZS-010326-007"} 
[2026-03-01 18:58:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5265,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":25616},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":25617},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25618},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25619}],"validated_items":[{"id":25616,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":25617,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":25618,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25619,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-01 18:58:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5265,"items_count":4} 
[2026-03-01 18:58:21] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25616,"menu_item_id":105,"quantity":1},{"id":25617,"menu_item_id":48,"quantity":1},{"id":25618,"menu_item_id":396,"quantity":2},{"id":25619,"menu_item_id":3,"quantity":1}]} 
[2026-03-01 18:58:21] local.INFO: PosOrderController::update - Item changes check {"order_id":5265,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["105|1|","48|1|","396|2|","3|1|"],"new_items_map_keys":["105|1|","48|1|","396|2|","3|1|"]} 
[2026-03-01 18:58:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5265,"order_number":"AZS-010326-009"} 
[2026-03-01 18:58:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5265,"order_number":"AZS-010326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 18:58:21"} 
[2026-03-01 18:59:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":1,"order_id":5263,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":25599},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":25600},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":25601},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":25602},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":25603},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":25604},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":25606}],"validated_items":[{"id":25599,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":25600,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":25601,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":25602,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":25603,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":25604,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":25606,"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-01 18:59:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5263,"items_count":7} 
[2026-03-01 18:59:18] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":1,"items_to_remove":[25605],"items":[{"id":25599,"menu_item_id":102,"quantity":1},{"id":25600,"menu_item_id":62,"quantity":1},{"id":25601,"menu_item_id":396,"quantity":1},{"id":25602,"menu_item_id":50,"quantity":2},{"id":25603,"menu_item_id":61,"quantity":1},{"id":25604,"menu_item_id":56,"quantity":1},{"id":25606,"menu_item_id":2,"quantity":3}]} 
[2026-03-01 18:59:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5263,"has_item_changes":true,"old_items_count":8,"new_items_count":7,"old_items_map_keys":["102|1|","62|1|","396|1|","50|2|","61|1|","56|1|","5|1|","2|3|"],"new_items_map_keys":["102|1|","62|1|","396|1|","50|2|","61|1|","56|1|","2|3|"]} 
[2026-03-01 18:59:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5263,"order_number":"AZS-010326-008"} 
[2026-03-01 18:59:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010326-008","replaced_order_id":5263} 
[2026-03-01 18:59:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5267,"items_count":7,"items":[{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"}]} 
[2026-03-01 18:59:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5267,"item_index":0,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5267}} 
[2026-03-01 18:59:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5267,"item_index":0,"menu_item_id":102} 
[2026-03-01 18:59:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5267,"item_index":1,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5267}} 
[2026-03-01 18:59:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5267,"item_index":1,"menu_item_id":62} 
[2026-03-01 18:59:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5267,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5267}} 
[2026-03-01 18:59:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5267,"item_index":2,"menu_item_id":396} 
[2026-03-01 18:59:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5267,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5267}} 
[2026-03-01 18:59:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5267,"item_index":3,"menu_item_id":50} 
[2026-03-01 18:59:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5267,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5267}} 
[2026-03-01 18:59:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5267,"item_index":4,"menu_item_id":61} 
[2026-03-01 18:59:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5267,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5267}} 
[2026-03-01 18:59:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5267,"item_index":5,"menu_item_id":56} 
[2026-03-01 18:59:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5267,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5267}} 
[2026-03-01 18:59:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5267,"item_index":6,"menu_item_id":2} 
[2026-03-01 18:59:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5263,"new_order_id":5267,"order_number":"AZS-010326-008"} 
[2026-03-01 18:59:24] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5267,"item_index":0,"item_id":25599} 
[2026-03-01 18:59:24] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5267,"item_index":1,"item_id":25600} 
[2026-03-01 18:59:24] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5267,"item_index":2,"item_id":25601} 
[2026-03-01 18:59:24] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5267,"item_index":3,"item_id":25602} 
[2026-03-01 18:59:24] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5267,"item_index":4,"item_id":25603} 
[2026-03-01 18:59:24] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5267,"item_index":5,"item_id":25604} 
[2026-03-01 18:59:24] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5267,"item_index":6,"item_id":25606} 
[2026-03-01 18:59:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5267,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":25599},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":25600},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25601},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":25602},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25603},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25604},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":25606}],"validated_items":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-01 18:59:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5267,"items_count":7} 
[2026-03-01 18:59:24] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[25628,25629,25630,25631,25632,25633,25634],"items":[{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-03-01 18:59:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5267,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["102|1|","62|1|","396|1|","50|2|","61|1|","56|1|","2|3|"],"new_items_map_keys":["102|1|","62|1|","396|1|","50|2|","61|1|","56|1|","2|3|"]} 
[2026-03-01 18:59:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5267,"order_number":"AZS-010326-008"} 
[2026-03-01 18:59:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5267,"order_number":"AZS-010326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 18:59:24"} 
[2026-03-01 19:02:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T07:02:13.976Z","date_to":"2026-03-01T19:02:13.976Z","per_page":"100"} 
[2026-03-01 19:02:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","pending","changed","pending","changed","changed","pending","changed","changed","changed","changed","pending","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":16,"paid_count":4,"unpaid_count":5,"unique_order_numbers":9} 
[2026-03-01 19:02:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T07:02:13.991Z","date_to":"2026-03-01T19:02:13.991Z","per_page":"100"} 
[2026-03-01 19:02:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","pending","changed","pending","changed","changed","pending","changed","changed","changed","changed","pending","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":16,"paid_count":4,"unpaid_count":5,"unique_order_numbers":9} 
[2026-03-01 19:02:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T07:02:13.976Z","date_to":"2026-03-01T19:02:13.976Z","per_page":"100"} 
[2026-03-01 19:02:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","pending","changed","pending","changed","changed","pending","changed","changed","changed","changed","pending","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":16,"paid_count":4,"unpaid_count":5,"unique_order_numbers":9} 
[2026-03-01 19:05:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T07:05:06.726Z","date_to":"2026-03-01T19:05:06.726Z","per_page":"100"} 
[2026-03-01 19:05:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","pending","changed","pending","changed","changed","pending","changed","changed","changed","changed","pending","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":16,"paid_count":4,"unpaid_count":5,"unique_order_numbers":9} 
[2026-03-01 19:05:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T07:05:06.735Z","date_to":"2026-03-01T19:05:06.735Z","per_page":"100"} 
[2026-03-01 19:05:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","pending","changed","pending","changed","changed","pending","changed","changed","changed","changed","pending","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":16,"paid_count":4,"unpaid_count":5,"unique_order_numbers":9} 
[2026-03-01 19:05:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T07:05:06.726Z","date_to":"2026-03-01T19:05:06.726Z","per_page":"100"} 
[2026-03-01 19:05:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","pending","changed","pending","changed","changed","pending","changed","changed","changed","changed","pending","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":16,"paid_count":4,"unpaid_count":5,"unique_order_numbers":9} 
[2026-03-01 19:05:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5266,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":25620},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":25621},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25622},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":25623},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":25624},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":25625},{"menu_item_id":13,"quantity":6,"discount_percent":0,"notes":null,"id":25626},{"menu_item_id":402,"quantity":1,"discount_percent":0,"notes":null,"id":25627}],"validated_items":[{"id":25620,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":25621,"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"id":25622,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":25623,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":25624,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":25625,"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null},{"id":25626,"menu_item_id":13,"quantity":6,"discount_percent":0,"notes":null},{"id":25627,"menu_item_id":402,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-01 19:05:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5266,"items_count":8} 
[2026-03-01 19:05:30] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25620,"menu_item_id":114,"quantity":1},{"id":25621,"menu_item_id":52,"quantity":3},{"id":25622,"menu_item_id":396,"quantity":2},{"id":25623,"menu_item_id":61,"quantity":2},{"id":25624,"menu_item_id":56,"quantity":2},{"id":25625,"menu_item_id":2,"quantity":3},{"id":25626,"menu_item_id":13,"quantity":6},{"id":25627,"menu_item_id":402,"quantity":1}]} 
[2026-03-01 19:05:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5266,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|4|","402|1|"],"new_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|6|","402|1|"]} 
[2026-03-01 19:05:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5266,"order_number":"AZS-010326-007"} 
[2026-03-01 19:05:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010326-007","replaced_order_id":5266} 
[2026-03-01 19:05:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5268,"items_count":8,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":52,"quantity":3,"price":"70.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"},{"menu_item_id":13,"quantity":6,"price":"249.00"},{"menu_item_id":402,"quantity":1,"price":"325.00"}]} 
[2026-03-01 19:05:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5268,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5268}} 
[2026-03-01 19:05:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5268,"item_index":0,"menu_item_id":114} 
[2026-03-01 19:05:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5268,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5268}} 
[2026-03-01 19:05:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5268,"item_index":1,"menu_item_id":52} 
[2026-03-01 19:05:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5268,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5268}} 
[2026-03-01 19:05:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5268,"item_index":2,"menu_item_id":396} 
[2026-03-01 19:05:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5268,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5268}} 
[2026-03-01 19:05:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5268,"item_index":3,"menu_item_id":61} 
[2026-03-01 19:05:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5268,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5268}} 
[2026-03-01 19:05:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5268,"item_index":4,"menu_item_id":56} 
[2026-03-01 19:05:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5268,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5268}} 
[2026-03-01 19:05:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5268,"item_index":5,"menu_item_id":2} 
[2026-03-01 19:05:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5268,"item_index":6,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":6,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":1494.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5268}} 
[2026-03-01 19:05:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5268,"item_index":6,"menu_item_id":13} 
[2026-03-01 19:05:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5268,"item_index":7,"item_data":{"menu_item_id":402,"restaurant_category_id":39,"restaurant_category_name":"DESSERT BAR","item_name":"HOT GULAB JAMUN","quantity":1,"price":"325.00","discount_percent":0.0,"discount_amount":0.0,"total":325.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5268}} 
[2026-03-01 19:05:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5268,"item_index":7,"menu_item_id":402} 
[2026-03-01 19:05:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5266,"new_order_id":5268,"order_number":"AZS-010326-007"} 
[2026-03-01 19:06:21] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5267,"order_number":"AZS-010326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4245,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 19:06:21"} 
[2026-03-01 19:06:21] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5267,"order_number":"AZS-010326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4245,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 19:06:21"} 
[2026-03-01 19:06:21] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5267,"order_number":"AZS-010326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4245,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 19:06:21"} 
[2026-03-01 19:06:21] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5267,"order_number":"AZS-010326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4245,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 19:06:21"} 
[2026-03-01 19:06:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5267,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":25628},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":25629},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25630},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":25631},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25632},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25633},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":25634}],"validated_items":[{"id":25628,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":25629,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":25630,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":25631,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":25632,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25633,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25634,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-01 19:06:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5267,"items_count":7} 
[2026-03-01 19:06:21] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25628,"menu_item_id":102,"quantity":1},{"id":25629,"menu_item_id":62,"quantity":1},{"id":25630,"menu_item_id":396,"quantity":1},{"id":25631,"menu_item_id":50,"quantity":2},{"id":25632,"menu_item_id":61,"quantity":1},{"id":25633,"menu_item_id":56,"quantity":1},{"id":25634,"menu_item_id":2,"quantity":3}]} 
[2026-03-01 19:06:21] local.INFO: PosOrderController::update - Item changes check {"order_id":5267,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["102|1|","62|1|","396|1|","50|2|","61|1|","56|1|","2|3|"],"new_items_map_keys":["102|1|","62|1|","396|1|","50|2|","61|1|","56|1|","2|3|"]} 
[2026-03-01 19:06:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5267,"order_number":"AZS-010326-008"} 
[2026-03-01 19:06:21] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5267,"order_number":"AZS-010326-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4245,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-01 19:06:21","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-01 19:06:21"} 
[2026-03-01 19:06:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5267,"order_number":"AZS-010326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-01 19:06:21"} 
[2026-03-01 19:06:21] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5267,"order_number":"AZS-010326-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4245.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-01 19:06:21","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4245,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4245.00","database_verification_match":true,"timestamp":"2026-03-01 19:06:21"} 
[2026-03-01 19:07:22] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5265,"order_number":"AZS-010326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3063,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 19:07:22"} 
[2026-03-01 19:07:22] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5265,"order_number":"AZS-010326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3063,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 19:07:22"} 
[2026-03-01 19:07:22] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5265,"order_number":"AZS-010326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3063,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 19:07:22"} 
[2026-03-01 19:07:22] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5265,"order_number":"AZS-010326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3063,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 19:07:22"} 
[2026-03-01 19:07:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5265,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":25616},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":25617},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25618},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25619}],"validated_items":[{"id":25616,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":25617,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":25618,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25619,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-01 19:07:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5265,"items_count":4} 
[2026-03-01 19:07:22] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25616,"menu_item_id":105,"quantity":1},{"id":25617,"menu_item_id":48,"quantity":1},{"id":25618,"menu_item_id":396,"quantity":2},{"id":25619,"menu_item_id":3,"quantity":1}]} 
[2026-03-01 19:07:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5265,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["105|1|","48|1|","396|2|","3|1|"],"new_items_map_keys":["105|1|","48|1|","396|2|","3|1|"]} 
[2026-03-01 19:07:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5265,"order_number":"AZS-010326-009"} 
[2026-03-01 19:07:22] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5265,"order_number":"AZS-010326-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3063,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-01 19:07:22","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-01 19:07:22"} 
[2026-03-01 19:07:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5265,"order_number":"AZS-010326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-01 19:07:22"} 
[2026-03-01 19:07:22] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5265,"order_number":"AZS-010326-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3063.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-01 19:07:22","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3063,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3063.00","database_verification_match":true,"timestamp":"2026-03-01 19:07:22"} 
[2026-03-01 19:08:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5260,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25583},{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25584},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null,"id":25585},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25586},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25587},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":25588},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25589},{"menu_item_id":9,"quantity":6,"price":229,"discount_percent":0,"notes":null,"id":25590}],"validated_items":[{"id":25583,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25584,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25585,"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null},{"id":25586,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25587,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25588,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":25589,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":25590,"menu_item_id":9,"quantity":6,"price":229,"discount_percent":0,"notes":null}]} 
[2026-03-01 19:08:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5260,"items_count":8} 
[2026-03-01 19:08:18] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25583,"menu_item_id":113,"quantity":1},{"id":25584,"menu_item_id":114,"quantity":1},{"id":25585,"menu_item_id":396,"quantity":7},{"id":25586,"menu_item_id":61,"quantity":1},{"id":25587,"menu_item_id":56,"quantity":1},{"id":25588,"menu_item_id":5,"quantity":2},{"id":25589,"menu_item_id":3,"quantity":1},{"id":25590,"menu_item_id":9,"quantity":6}]} 
[2026-03-01 19:08:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5260,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["113|1|","114|1|","396|7|","61|1|","56|1|","5|2|","3|1|","9|6|"],"new_items_map_keys":["113|1|","114|1|","396|7|","61|1|","56|1|","5|2|","3|1|","9|6|"]} 
[2026-03-01 19:08:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5260,"order_number":"AZS-010326-006"} 
[2026-03-01 19:08:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5260,"order_number":"AZS-010326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 19:08:18"} 
[2026-03-01 19:08:53] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5260,"order_number":"AZS-010326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6374,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 19:08:53"} 
[2026-03-01 19:08:53] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5260,"order_number":"AZS-010326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6374,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 19:08:53"} 
[2026-03-01 19:08:53] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5260,"order_number":"AZS-010326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6374,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 19:08:53"} 
[2026-03-01 19:08:53] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5260,"order_number":"AZS-010326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6374,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 19:08:53"} 
[2026-03-01 19:08:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":1,"order_id":5260,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25583},{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25584},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null,"id":25585},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25587},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":25588},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25589},{"menu_item_id":9,"quantity":6,"price":229,"discount_percent":0,"notes":null,"id":25590}],"validated_items":[{"id":25583,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25584,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25585,"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null},{"id":25587,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25588,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":25589,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":25590,"menu_item_id":9,"quantity":6,"price":229,"discount_percent":0,"notes":null}]} 
[2026-03-01 19:08:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5260,"items_count":7} 
[2026-03-01 19:08:53] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":1,"items_to_remove":[25586],"items":[{"id":25583,"menu_item_id":113,"quantity":1},{"id":25584,"menu_item_id":114,"quantity":1},{"id":25585,"menu_item_id":396,"quantity":7},{"id":25587,"menu_item_id":56,"quantity":1},{"id":25588,"menu_item_id":5,"quantity":2},{"id":25589,"menu_item_id":3,"quantity":1},{"id":25590,"menu_item_id":9,"quantity":6}]} 
[2026-03-01 19:08:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5260,"has_item_changes":true,"old_items_count":8,"new_items_count":7,"old_items_map_keys":["113|1|","114|1|","396|7|","61|1|","56|1|","5|2|","3|1|","9|6|"],"new_items_map_keys":["113|1|","114|1|","396|7|","56|1|","5|2|","3|1|","9|6|"]} 
[2026-03-01 19:08:53] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5260,"order_number":"AZS-010326-006","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":6374,"new_order_data_payment_mode":"online","new_order_data_paid_at":"2026-03-01 19:08:53","original_payment_amount":"0.00","grand_total":6374.0,"timestamp":"2026-03-01 19:08:53"} 
[2026-03-01 19:08:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5260,"order_number":"AZS-010326-006"} 
[2026-03-01 19:08:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010326-006","replaced_order_id":5260} 
[2026-03-01 19:08:53] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5260,"new_order_id":5269,"order_number":"AZS-010326-006","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"6374.00","payment_mode_after_creation":"online","paid_at_after_creation":"2026-03-01 19:08:53","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6374,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-01 19:08:53"} 
[2026-03-01 19:08:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5269,"items_count":7,"items":[{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":114,"quantity":1,"price":2299.0},{"menu_item_id":396,"quantity":7,"price":99.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":2,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0},{"menu_item_id":9,"quantity":6,"price":229.0}]} 
[2026-03-01 19:08:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5269,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5269}} 
[2026-03-01 19:08:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5269,"item_index":0,"menu_item_id":113} 
[2026-03-01 19:08:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5269,"item_index":1,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5269}} 
[2026-03-01 19:08:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5269,"item_index":1,"menu_item_id":114} 
[2026-03-01 19:08:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5269,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":7,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":693.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5269}} 
[2026-03-01 19:08:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5269,"item_index":2,"menu_item_id":396} 
[2026-03-01 19:08:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5269,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5269}} 
[2026-03-01 19:08:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5269,"item_index":3,"menu_item_id":56} 
[2026-03-01 19:08:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5269,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5269}} 
[2026-03-01 19:08:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5269,"item_index":4,"menu_item_id":5} 
[2026-03-01 19:08:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5269,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5269}} 
[2026-03-01 19:08:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5269,"item_index":5,"menu_item_id":3} 
[2026-03-01 19:08:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5269,"item_index":6,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":6,"price":229.0,"discount_percent":0.0,"discount_amount":0.0,"total":1374.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5269}} 
[2026-03-01 19:08:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5269,"item_index":6,"menu_item_id":9} 
[2026-03-01 19:08:53] local.ERROR: Error tracking recipe usage for order 5269: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5269, 114, 77, 1, 100, 0.00, Order #AZS-010326-006 - 1x Chicken Shinwari - Full, 2026-03-01 19:08:53, 2026-03-01 19:08:53))  
[2026-03-01 19:08:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5260,"new_order_id":5269,"order_number":"AZS-010326-006"} 
[2026-03-01 19:08:54] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5260,"new_order_id":5269,"order_number":"AZS-010326-006","route":"api/orders/5260"} 
[2026-03-01 19:09:22] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5261,"order_number":"AZS-010326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":250,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 19:09:22"} 
[2026-03-01 19:09:22] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5261,"order_number":"AZS-010326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":250,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 19:09:22"} 
[2026-03-01 19:09:22] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5261,"order_number":"AZS-010326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":250,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 19:09:22"} 
[2026-03-01 19:09:22] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5261,"order_number":"AZS-010326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":250,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 19:09:22"} 
[2026-03-01 19:09:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5261,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":25591}],"validated_items":[{"id":25591,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-01 19:09:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5261,"items_count":1} 
[2026-03-01 19:09:22] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25591,"menu_item_id":29,"quantity":1}]} 
[2026-03-01 19:09:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5261,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["29|1|"],"new_items_map_keys":["29|1|"]} 
[2026-03-01 19:09:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5261,"order_number":"AZS-010326-010"} 
[2026-03-01 19:09:22] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5261,"order_number":"AZS-010326-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":250,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-01 19:09:22","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-01 19:09:22"} 
[2026-03-01 19:09:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5261,"order_number":"AZS-010326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-01 19:09:22"} 
[2026-03-01 19:09:22] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5261,"order_number":"AZS-010326-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"250.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-01 19:09:22","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":250,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"250.00","database_verification_match":true,"timestamp":"2026-03-01 19:09:22"} 
[2026-03-01 19:09:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T07:09:28.924Z","date_to":"2026-03-01T19:09:28.924Z","per_page":"100"} 
[2026-03-01 19:09:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["paid","paid","changed","paid","changed","changed","pending","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":18,"paid_count":8,"unpaid_count":1,"unique_order_numbers":9} 
[2026-03-01 19:09:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T07:09:28.911Z","date_to":"2026-03-01T19:09:28.911Z","per_page":"100"} 
[2026-03-01 19:09:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["paid","paid","changed","paid","changed","changed","pending","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":18,"paid_count":8,"unpaid_count":1,"unique_order_numbers":9} 
[2026-03-01 19:09:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T07:09:28.911Z","date_to":"2026-03-01T19:09:28.911Z","per_page":"100"} 
[2026-03-01 19:09:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["paid","paid","changed","paid","changed","changed","pending","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":18,"paid_count":8,"unpaid_count":1,"unique_order_numbers":9} 
[2026-03-01 19:16:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5268,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":25635},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":25636},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25637},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":25638},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":25639},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":25640},{"menu_item_id":13,"quantity":7,"discount_percent":0,"notes":null,"id":25641},{"menu_item_id":402,"quantity":1,"discount_percent":0,"notes":null,"id":25642}],"validated_items":[{"id":25635,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":25636,"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"id":25637,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":25638,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":25639,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":25640,"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null},{"id":25641,"menu_item_id":13,"quantity":7,"discount_percent":0,"notes":null},{"id":25642,"menu_item_id":402,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-01 19:16:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5268,"items_count":8} 
[2026-03-01 19:16:56] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25635,"menu_item_id":114,"quantity":1},{"id":25636,"menu_item_id":52,"quantity":3},{"id":25637,"menu_item_id":396,"quantity":2},{"id":25638,"menu_item_id":61,"quantity":2},{"id":25639,"menu_item_id":56,"quantity":2},{"id":25640,"menu_item_id":2,"quantity":3},{"id":25641,"menu_item_id":13,"quantity":7},{"id":25642,"menu_item_id":402,"quantity":1}]} 
[2026-03-01 19:16:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5268,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|6|","402|1|"],"new_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"]} 
[2026-03-01 19:16:56] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5268,"order_number":"AZS-010326-007"} 
[2026-03-01 19:16:56] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010326-007","replaced_order_id":5268} 
[2026-03-01 19:16:56] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5270,"items_count":8,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":52,"quantity":3,"price":"70.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"},{"menu_item_id":13,"quantity":7,"price":"249.00"},{"menu_item_id":402,"quantity":1,"price":"325.00"}]} 
[2026-03-01 19:16:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5270,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5270}} 
[2026-03-01 19:16:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5270,"item_index":0,"menu_item_id":114} 
[2026-03-01 19:16:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5270,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5270}} 
[2026-03-01 19:16:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5270,"item_index":1,"menu_item_id":52} 
[2026-03-01 19:16:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5270,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5270}} 
[2026-03-01 19:16:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5270,"item_index":2,"menu_item_id":396} 
[2026-03-01 19:16:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5270,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5270}} 
[2026-03-01 19:16:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5270,"item_index":3,"menu_item_id":61} 
[2026-03-01 19:16:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5270,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5270}} 
[2026-03-01 19:16:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5270,"item_index":4,"menu_item_id":56} 
[2026-03-01 19:16:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5270,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5270}} 
[2026-03-01 19:16:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5270,"item_index":5,"menu_item_id":2} 
[2026-03-01 19:16:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5270,"item_index":6,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":7,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":1743.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5270}} 
[2026-03-01 19:16:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5270,"item_index":6,"menu_item_id":13} 
[2026-03-01 19:16:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5270,"item_index":7,"item_data":{"menu_item_id":402,"restaurant_category_id":39,"restaurant_category_name":"DESSERT BAR","item_name":"HOT GULAB JAMUN","quantity":1,"price":"325.00","discount_percent":0.0,"discount_amount":0.0,"total":325.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5270}} 
[2026-03-01 19:16:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5270,"item_index":7,"menu_item_id":402} 
[2026-03-01 19:16:56] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5268,"new_order_id":5270,"order_number":"AZS-010326-007"} 
[2026-03-01 19:49:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T07:49:24.517Z","date_to":"2026-03-01T19:49:24.517Z","per_page":"100"} 
[2026-03-01 19:49:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["paid","paid","changed","paid","changed","changed","pending","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":19,"paid_count":8,"unpaid_count":1,"unique_order_numbers":9} 
[2026-03-01 19:49:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T07:49:24.539Z","date_to":"2026-03-01T19:49:24.539Z","per_page":"100"} 
[2026-03-01 19:49:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["paid","paid","changed","paid","changed","changed","pending","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":19,"paid_count":8,"unpaid_count":1,"unique_order_numbers":9} 
[2026-03-01 19:49:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T07:49:24.517Z","date_to":"2026-03-01T19:49:24.517Z","per_page":"100"} 
[2026-03-01 19:49:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["paid","paid","changed","paid","changed","changed","pending","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":19,"paid_count":8,"unpaid_count":1,"unique_order_numbers":9} 
[2026-03-01 20:05:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5270,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25650},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25651},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25652},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25653},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25654},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":25655},{"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null,"id":25656},{"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null,"id":25657}],"validated_items":[{"id":25650,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25651,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":25652,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25653,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25654,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25655,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":25656,"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null},{"id":25657,"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null}]} 
[2026-03-01 20:05:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5270,"items_count":8} 
[2026-03-01 20:05:47] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25650,"menu_item_id":114,"quantity":1},{"id":25651,"menu_item_id":52,"quantity":3},{"id":25652,"menu_item_id":396,"quantity":2},{"id":25653,"menu_item_id":61,"quantity":2},{"id":25654,"menu_item_id":56,"quantity":2},{"id":25655,"menu_item_id":2,"quantity":3},{"id":25656,"menu_item_id":13,"quantity":7},{"id":25657,"menu_item_id":402,"quantity":1}]} 
[2026-03-01 20:05:47] local.INFO: PosOrderController::update - Item changes check {"order_id":5270,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"],"new_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"]} 
[2026-03-01 20:05:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5270,"order_number":"AZS-010326-007"} 
[2026-03-01 20:05:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5270,"order_number":"AZS-010326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 20:05:47"} 
[2026-03-01 20:05:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5270,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25650},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25651},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25652},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25653},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25654},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":25655},{"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null,"id":25656},{"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null,"id":25657}],"validated_items":[{"id":25650,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25651,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":25652,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25653,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25654,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25655,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":25656,"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null},{"id":25657,"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null}]} 
[2026-03-01 20:05:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5270,"items_count":8} 
[2026-03-01 20:05:48] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25650,"menu_item_id":114,"quantity":1},{"id":25651,"menu_item_id":52,"quantity":3},{"id":25652,"menu_item_id":396,"quantity":2},{"id":25653,"menu_item_id":61,"quantity":2},{"id":25654,"menu_item_id":56,"quantity":2},{"id":25655,"menu_item_id":2,"quantity":3},{"id":25656,"menu_item_id":13,"quantity":7},{"id":25657,"menu_item_id":402,"quantity":1}]} 
[2026-03-01 20:05:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5270,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"],"new_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"]} 
[2026-03-01 20:05:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5270,"order_number":"AZS-010326-007"} 
[2026-03-01 20:05:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5270,"order_number":"AZS-010326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 20:05:48"} 
[2026-03-01 20:05:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5270,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25650},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25651},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25652},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25653},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25654},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":25655},{"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null,"id":25656},{"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null,"id":25657}],"validated_items":[{"id":25650,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25651,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":25652,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25653,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25654,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25655,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":25656,"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null},{"id":25657,"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null}]} 
[2026-03-01 20:05:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5270,"items_count":8} 
[2026-03-01 20:05:48] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25650,"menu_item_id":114,"quantity":1},{"id":25651,"menu_item_id":52,"quantity":3},{"id":25652,"menu_item_id":396,"quantity":2},{"id":25653,"menu_item_id":61,"quantity":2},{"id":25654,"menu_item_id":56,"quantity":2},{"id":25655,"menu_item_id":2,"quantity":3},{"id":25656,"menu_item_id":13,"quantity":7},{"id":25657,"menu_item_id":402,"quantity":1}]} 
[2026-03-01 20:05:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5270,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"],"new_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"]} 
[2026-03-01 20:05:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5270,"order_number":"AZS-010326-007"} 
[2026-03-01 20:05:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5270,"order_number":"AZS-010326-007","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 20:05:48"} 
[2026-03-01 20:05:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5270,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25650},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25651},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25652},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25653},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25654},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":25655},{"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null,"id":25656},{"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null,"id":25657}],"validated_items":[{"id":25650,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25651,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":25652,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25653,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25654,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25655,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":25656,"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null},{"id":25657,"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null}]} 
[2026-03-01 20:05:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5270,"items_count":8} 
[2026-03-01 20:05:48] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25650,"menu_item_id":114,"quantity":1},{"id":25651,"menu_item_id":52,"quantity":3},{"id":25652,"menu_item_id":396,"quantity":2},{"id":25653,"menu_item_id":61,"quantity":2},{"id":25654,"menu_item_id":56,"quantity":2},{"id":25655,"menu_item_id":2,"quantity":3},{"id":25656,"menu_item_id":13,"quantity":7},{"id":25657,"menu_item_id":402,"quantity":1}]} 
[2026-03-01 20:05:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5270,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"],"new_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"]} 
[2026-03-01 20:05:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5270,"order_number":"AZS-010326-007"} 
[2026-03-01 20:05:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5270,"order_number":"AZS-010326-007","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 20:05:48"} 
[2026-03-01 20:05:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5270,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25650},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25651},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25652},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25653},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25654},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":25655},{"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null,"id":25656},{"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null,"id":25657}],"validated_items":[{"id":25650,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25651,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":25652,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25653,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25654,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25655,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":25656,"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null},{"id":25657,"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null}]} 
[2026-03-01 20:05:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5270,"items_count":8} 
[2026-03-01 20:05:48] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25650,"menu_item_id":114,"quantity":1},{"id":25651,"menu_item_id":52,"quantity":3},{"id":25652,"menu_item_id":396,"quantity":2},{"id":25653,"menu_item_id":61,"quantity":2},{"id":25654,"menu_item_id":56,"quantity":2},{"id":25655,"menu_item_id":2,"quantity":3},{"id":25656,"menu_item_id":13,"quantity":7},{"id":25657,"menu_item_id":402,"quantity":1}]} 
[2026-03-01 20:05:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5270,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"],"new_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"]} 
[2026-03-01 20:05:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5270,"order_number":"AZS-010326-007"} 
[2026-03-01 20:05:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5270,"order_number":"AZS-010326-007","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 20:05:48"} 
[2026-03-01 20:05:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5270,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25650},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25651},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25652},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25653},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25654},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":25655},{"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null,"id":25656},{"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null,"id":25657}],"validated_items":[{"id":25650,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25651,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":25652,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25653,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25654,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25655,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":25656,"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null},{"id":25657,"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null}]} 
[2026-03-01 20:05:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5270,"items_count":8} 
[2026-03-01 20:05:49] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25650,"menu_item_id":114,"quantity":1},{"id":25651,"menu_item_id":52,"quantity":3},{"id":25652,"menu_item_id":396,"quantity":2},{"id":25653,"menu_item_id":61,"quantity":2},{"id":25654,"menu_item_id":56,"quantity":2},{"id":25655,"menu_item_id":2,"quantity":3},{"id":25656,"menu_item_id":13,"quantity":7},{"id":25657,"menu_item_id":402,"quantity":1}]} 
[2026-03-01 20:05:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5270,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"],"new_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"]} 
[2026-03-01 20:05:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5270,"order_number":"AZS-010326-007"} 
[2026-03-01 20:05:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5270,"order_number":"AZS-010326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 20:05:49"} 
[2026-03-01 20:05:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5270,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25650},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25651},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25652},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25653},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25654},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":25655},{"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null,"id":25656},{"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null,"id":25657}],"validated_items":[{"id":25650,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25651,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":25652,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25653,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25654,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25655,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":25656,"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null},{"id":25657,"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null}]} 
[2026-03-01 20:05:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5270,"items_count":8} 
[2026-03-01 20:05:49] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25650,"menu_item_id":114,"quantity":1},{"id":25651,"menu_item_id":52,"quantity":3},{"id":25652,"menu_item_id":396,"quantity":2},{"id":25653,"menu_item_id":61,"quantity":2},{"id":25654,"menu_item_id":56,"quantity":2},{"id":25655,"menu_item_id":2,"quantity":3},{"id":25656,"menu_item_id":13,"quantity":7},{"id":25657,"menu_item_id":402,"quantity":1}]} 
[2026-03-01 20:05:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5270,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"],"new_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"]} 
[2026-03-01 20:05:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5270,"order_number":"AZS-010326-007"} 
[2026-03-01 20:05:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5270,"order_number":"AZS-010326-007","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 20:05:49"} 
[2026-03-01 20:05:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5270,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25650},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25651},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25652},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25653},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25654},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":25655},{"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null,"id":25656},{"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null,"id":25657}],"validated_items":[{"id":25650,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25651,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":25652,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25653,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25654,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25655,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":25656,"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null},{"id":25657,"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null}]} 
[2026-03-01 20:05:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5270,"items_count":8} 
[2026-03-01 20:05:49] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25650,"menu_item_id":114,"quantity":1},{"id":25651,"menu_item_id":52,"quantity":3},{"id":25652,"menu_item_id":396,"quantity":2},{"id":25653,"menu_item_id":61,"quantity":2},{"id":25654,"menu_item_id":56,"quantity":2},{"id":25655,"menu_item_id":2,"quantity":3},{"id":25656,"menu_item_id":13,"quantity":7},{"id":25657,"menu_item_id":402,"quantity":1}]} 
[2026-03-01 20:05:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5270,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"],"new_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"]} 
[2026-03-01 20:05:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5270,"order_number":"AZS-010326-007"} 
[2026-03-01 20:05:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5270,"order_number":"AZS-010326-007","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 20:05:49"} 
[2026-03-01 20:05:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5270,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25650},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25651},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25652},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25653},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25654},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":25655},{"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null,"id":25656},{"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null,"id":25657}],"validated_items":[{"id":25650,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25651,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":25652,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25653,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25654,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25655,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":25656,"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null},{"id":25657,"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null}]} 
[2026-03-01 20:05:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5270,"items_count":8} 
[2026-03-01 20:05:50] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25650,"menu_item_id":114,"quantity":1},{"id":25651,"menu_item_id":52,"quantity":3},{"id":25652,"menu_item_id":396,"quantity":2},{"id":25653,"menu_item_id":61,"quantity":2},{"id":25654,"menu_item_id":56,"quantity":2},{"id":25655,"menu_item_id":2,"quantity":3},{"id":25656,"menu_item_id":13,"quantity":7},{"id":25657,"menu_item_id":402,"quantity":1}]} 
[2026-03-01 20:05:50] local.INFO: PosOrderController::update - Item changes check {"order_id":5270,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"],"new_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"]} 
[2026-03-01 20:05:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5270,"order_number":"AZS-010326-007"} 
[2026-03-01 20:05:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5270,"order_number":"AZS-010326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 20:05:50"} 
[2026-03-01 20:05:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5270,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25650},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25651},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25652},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25653},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25654},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":25655},{"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null,"id":25656},{"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null,"id":25657}],"validated_items":[{"id":25650,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25651,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":25652,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25653,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25654,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25655,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":25656,"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null},{"id":25657,"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null}]} 
[2026-03-01 20:05:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5270,"items_count":8} 
[2026-03-01 20:05:50] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25650,"menu_item_id":114,"quantity":1},{"id":25651,"menu_item_id":52,"quantity":3},{"id":25652,"menu_item_id":396,"quantity":2},{"id":25653,"menu_item_id":61,"quantity":2},{"id":25654,"menu_item_id":56,"quantity":2},{"id":25655,"menu_item_id":2,"quantity":3},{"id":25656,"menu_item_id":13,"quantity":7},{"id":25657,"menu_item_id":402,"quantity":1}]} 
[2026-03-01 20:05:50] local.INFO: PosOrderController::update - Item changes check {"order_id":5270,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"],"new_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"]} 
[2026-03-01 20:05:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5270,"order_number":"AZS-010326-007"} 
[2026-03-01 20:05:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5270,"order_number":"AZS-010326-007","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 20:05:50"} 
[2026-03-01 20:05:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5270,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25650},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25651},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25652},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25653},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25654},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":25655},{"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null,"id":25656},{"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null,"id":25657}],"validated_items":[{"id":25650,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25651,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":25652,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25653,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25654,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25655,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":25656,"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null},{"id":25657,"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null}]} 
[2026-03-01 20:05:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5270,"items_count":8} 
[2026-03-01 20:05:50] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25650,"menu_item_id":114,"quantity":1},{"id":25651,"menu_item_id":52,"quantity":3},{"id":25652,"menu_item_id":396,"quantity":2},{"id":25653,"menu_item_id":61,"quantity":2},{"id":25654,"menu_item_id":56,"quantity":2},{"id":25655,"menu_item_id":2,"quantity":3},{"id":25656,"menu_item_id":13,"quantity":7},{"id":25657,"menu_item_id":402,"quantity":1}]} 
[2026-03-01 20:05:50] local.INFO: PosOrderController::update - Item changes check {"order_id":5270,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"],"new_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"]} 
[2026-03-01 20:05:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5270,"order_number":"AZS-010326-007"} 
[2026-03-01 20:05:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5270,"order_number":"AZS-010326-007","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 20:05:50"} 
[2026-03-01 20:05:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5270,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25650},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25651},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25652},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25653},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25654},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":25655},{"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null,"id":25656},{"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null,"id":25657}],"validated_items":[{"id":25650,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25651,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":25652,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25653,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25654,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25655,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":25656,"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null},{"id":25657,"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null}]} 
[2026-03-01 20:05:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5270,"items_count":8} 
[2026-03-01 20:05:51] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25650,"menu_item_id":114,"quantity":1},{"id":25651,"menu_item_id":52,"quantity":3},{"id":25652,"menu_item_id":396,"quantity":2},{"id":25653,"menu_item_id":61,"quantity":2},{"id":25654,"menu_item_id":56,"quantity":2},{"id":25655,"menu_item_id":2,"quantity":3},{"id":25656,"menu_item_id":13,"quantity":7},{"id":25657,"menu_item_id":402,"quantity":1}]} 
[2026-03-01 20:05:51] local.INFO: PosOrderController::update - Item changes check {"order_id":5270,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"],"new_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"]} 
[2026-03-01 20:05:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5270,"order_number":"AZS-010326-007"} 
[2026-03-01 20:05:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5270,"order_number":"AZS-010326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 20:05:51"} 
[2026-03-01 20:05:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5270,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25650},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25651},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25652},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25653},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25654},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":25655},{"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null,"id":25656},{"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null,"id":25657}],"validated_items":[{"id":25650,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25651,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":25652,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25653,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25654,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25655,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":25656,"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null},{"id":25657,"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null}]} 
[2026-03-01 20:05:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5270,"items_count":8} 
[2026-03-01 20:05:51] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25650,"menu_item_id":114,"quantity":1},{"id":25651,"menu_item_id":52,"quantity":3},{"id":25652,"menu_item_id":396,"quantity":2},{"id":25653,"menu_item_id":61,"quantity":2},{"id":25654,"menu_item_id":56,"quantity":2},{"id":25655,"menu_item_id":2,"quantity":3},{"id":25656,"menu_item_id":13,"quantity":7},{"id":25657,"menu_item_id":402,"quantity":1}]} 
[2026-03-01 20:05:51] local.INFO: PosOrderController::update - Item changes check {"order_id":5270,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"],"new_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"]} 
[2026-03-01 20:05:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5270,"order_number":"AZS-010326-007"} 
[2026-03-01 20:05:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5270,"order_number":"AZS-010326-007","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 20:05:51"} 
[2026-03-01 20:05:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5270,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25650},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25651},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25652},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25653},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25654},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":25655},{"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null,"id":25656},{"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null,"id":25657}],"validated_items":[{"id":25650,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25651,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":25652,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25653,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25654,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25655,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":25656,"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null},{"id":25657,"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null}]} 
[2026-03-01 20:05:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5270,"items_count":8} 
[2026-03-01 20:05:52] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25650,"menu_item_id":114,"quantity":1},{"id":25651,"menu_item_id":52,"quantity":3},{"id":25652,"menu_item_id":396,"quantity":2},{"id":25653,"menu_item_id":61,"quantity":2},{"id":25654,"menu_item_id":56,"quantity":2},{"id":25655,"menu_item_id":2,"quantity":3},{"id":25656,"menu_item_id":13,"quantity":7},{"id":25657,"menu_item_id":402,"quantity":1}]} 
[2026-03-01 20:05:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5270,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"],"new_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"]} 
[2026-03-01 20:05:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5270,"order_number":"AZS-010326-007"} 
[2026-03-01 20:05:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5270,"order_number":"AZS-010326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 20:05:52"} 
[2026-03-01 20:17:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5270,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25650},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25651},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25652},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25653},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25654},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":25655},{"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null,"id":25656},{"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null,"id":25657}],"validated_items":[{"id":25650,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25651,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":25652,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25653,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25654,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25655,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":25656,"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null},{"id":25657,"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null}]} 
[2026-03-01 20:17:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5270,"items_count":8} 
[2026-03-01 20:17:23] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25650,"menu_item_id":114,"quantity":1},{"id":25651,"menu_item_id":52,"quantity":3},{"id":25652,"menu_item_id":396,"quantity":2},{"id":25653,"menu_item_id":61,"quantity":2},{"id":25654,"menu_item_id":56,"quantity":2},{"id":25655,"menu_item_id":2,"quantity":3},{"id":25656,"menu_item_id":13,"quantity":7},{"id":25657,"menu_item_id":402,"quantity":1}]} 
[2026-03-01 20:17:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5270,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"],"new_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"]} 
[2026-03-01 20:17:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5270,"order_number":"AZS-010326-007"} 
[2026-03-01 20:17:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5270,"order_number":"AZS-010326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 20:17:23"} 
[2026-03-01 20:27:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5273,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":2,"discount_percent":0,"notes":null,"id":25661},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25661,"menu_item_id":67,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-01 20:27:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5273,"items_count":2} 
[2026-03-01 20:27:02] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25661,"menu_item_id":67,"quantity":2},{"id":null,"menu_item_id":396,"quantity":1}]} 
[2026-03-01 20:27:02] local.INFO: PosOrderController::update - Item changes check {"order_id":5273,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["67|2|"],"new_items_map_keys":["67|2|","396|1|"]} 
[2026-03-01 20:27:02] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5273,"order_number":"AZS-010326-013"} 
[2026-03-01 20:27:02] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010326-013","replaced_order_id":5273} 
[2026-03-01 20:27:02] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5274,"items_count":2,"items":[{"menu_item_id":67,"quantity":2,"price":"599.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"}]} 
[2026-03-01 20:27:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5274,"item_index":0,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5274}} 
[2026-03-01 20:27:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5274,"item_index":0,"menu_item_id":67} 
[2026-03-01 20:27:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5274,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5274}} 
[2026-03-01 20:27:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5274,"item_index":1,"menu_item_id":396} 
[2026-03-01 20:27:02] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5273,"new_order_id":5274,"order_number":"AZS-010326-013"} 
[2026-03-01 20:27:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5274,"item_index":0,"item_id":25661} 
[2026-03-01 20:27:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":5274,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":2,"discount_percent":0,"notes":null,"id":25661},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":67,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-01 20:27:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5274,"items_count":2} 
[2026-03-01 20:27:23] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[25662,25663],"items":[{"id":null,"menu_item_id":67,"quantity":2},{"id":null,"menu_item_id":396,"quantity":1}]} 
[2026-03-01 20:27:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5274,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["67|2|","396|1|"],"new_items_map_keys":["67|2|","396|1|"]} 
[2026-03-01 20:27:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5274,"order_number":"AZS-010326-013"} 
[2026-03-01 20:27:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5274,"order_number":"AZS-010326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-01 20:27:23"} 
[2026-03-01 20:37:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5272,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":25659},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25660}],"validated_items":[{"id":25659,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":25660,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-01 20:37:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5272,"items_count":2} 
[2026-03-01 20:37:02] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25659,"menu_item_id":13,"quantity":2},{"id":25660,"menu_item_id":5,"quantity":1}]} 
[2026-03-01 20:37:02] local.INFO: PosOrderController::update - Item changes check {"order_id":5272,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|2|","5|1|"],"new_items_map_keys":["13|2|","5|1|"]} 
[2026-03-01 20:37:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5272,"order_number":"AZS-010326-012"} 
[2026-03-01 20:37:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5272,"order_number":"AZS-010326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 20:37:02"} 
[2026-03-01 20:37:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5274,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":2,"discount_percent":0,"notes":null,"id":25662},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":25663},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25662,"menu_item_id":67,"quantity":2,"discount_percent":0,"notes":null},{"id":25663,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-01 20:37:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5274,"items_count":3} 
[2026-03-01 20:37:51] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25662,"menu_item_id":67,"quantity":2},{"id":25663,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-01 20:37:51] local.INFO: PosOrderController::update - Item changes check {"order_id":5274,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["67|2|","396|1|"],"new_items_map_keys":["67|2|","396|1|","5|1|"]} 
[2026-03-01 20:37:51] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5274,"order_number":"AZS-010326-013"} 
[2026-03-01 20:37:51] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010326-013","replaced_order_id":5274} 
[2026-03-01 20:37:51] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5275,"items_count":3,"items":[{"menu_item_id":67,"quantity":2,"price":"599.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-01 20:37:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5275,"item_index":0,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5275}} 
[2026-03-01 20:37:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5275,"item_index":0,"menu_item_id":67} 
[2026-03-01 20:37:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5275,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5275}} 
[2026-03-01 20:37:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5275,"item_index":1,"menu_item_id":396} 
[2026-03-01 20:37:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5275,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5275}} 
[2026-03-01 20:37:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5275,"item_index":2,"menu_item_id":5} 
[2026-03-01 20:37:51] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5274,"new_order_id":5275,"order_number":"AZS-010326-013"} 
[2026-03-01 20:39:47] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5270,"order_number":"AZS-010326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5762,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 20:39:47"} 
[2026-03-01 20:39:47] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5270,"order_number":"AZS-010326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5762,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 20:39:47"} 
[2026-03-01 20:39:47] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5270,"order_number":"AZS-010326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5762,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 20:39:47"} 
[2026-03-01 20:39:47] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5270,"order_number":"AZS-010326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5762,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 20:39:47"} 
[2026-03-01 20:39:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5270,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25650},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25651},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25652},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25653},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25654},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":25655},{"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null,"id":25656},{"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null,"id":25657}],"validated_items":[{"id":25650,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25651,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":25652,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25653,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25654,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25655,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":25656,"menu_item_id":13,"quantity":7,"price":249,"discount_percent":0,"notes":null},{"id":25657,"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null}]} 
[2026-03-01 20:39:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5270,"items_count":8} 
[2026-03-01 20:39:47] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25650,"menu_item_id":114,"quantity":1},{"id":25651,"menu_item_id":52,"quantity":3},{"id":25652,"menu_item_id":396,"quantity":2},{"id":25653,"menu_item_id":61,"quantity":1},{"id":25654,"menu_item_id":56,"quantity":2},{"id":25655,"menu_item_id":2,"quantity":3},{"id":25656,"menu_item_id":13,"quantity":7},{"id":25657,"menu_item_id":402,"quantity":1}]} 
[2026-03-01 20:39:47] local.INFO: PosOrderController::update - Item changes check {"order_id":5270,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","52|3|","396|2|","61|2|","56|2|","2|3|","13|7|","402|1|"],"new_items_map_keys":["114|1|","52|3|","396|2|","61|1|","56|2|","2|3|","13|7|","402|1|"]} 
[2026-03-01 20:39:47] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5270,"order_number":"AZS-010326-007","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5762,"new_order_data_payment_mode":"online","new_order_data_paid_at":"2026-03-01 20:39:47","original_payment_amount":"0.00","grand_total":5762.0,"timestamp":"2026-03-01 20:39:47"} 
[2026-03-01 20:39:47] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5270,"order_number":"AZS-010326-007"} 
[2026-03-01 20:39:47] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010326-007","replaced_order_id":5270} 
[2026-03-01 20:39:47] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5270,"new_order_id":5276,"order_number":"AZS-010326-007","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5762.00","payment_mode_after_creation":"online","paid_at_after_creation":"2026-03-01 20:39:47","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5762,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-01 20:39:47"} 
[2026-03-01 20:39:47] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5276,"items_count":8,"items":[{"menu_item_id":114,"quantity":1,"price":2299.0},{"menu_item_id":52,"quantity":3,"price":70.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":2,"price":199.0},{"menu_item_id":2,"quantity":3,"price":130.0},{"menu_item_id":13,"quantity":7,"price":249.0},{"menu_item_id":402,"quantity":1,"price":325.0}]} 
[2026-03-01 20:39:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5276,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5276}} 
[2026-03-01 20:39:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5276,"item_index":0,"menu_item_id":114} 
[2026-03-01 20:39:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5276,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5276}} 
[2026-03-01 20:39:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5276,"item_index":1,"menu_item_id":52} 
[2026-03-01 20:39:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5276,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5276}} 
[2026-03-01 20:39:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5276,"item_index":2,"menu_item_id":396} 
[2026-03-01 20:39:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5276,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5276}} 
[2026-03-01 20:39:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5276,"item_index":3,"menu_item_id":61} 
[2026-03-01 20:39:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5276,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5276}} 
[2026-03-01 20:39:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5276,"item_index":4,"menu_item_id":56} 
[2026-03-01 20:39:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5276,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5276}} 
[2026-03-01 20:39:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5276,"item_index":5,"menu_item_id":2} 
[2026-03-01 20:39:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5276,"item_index":6,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":7,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":1743.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5276}} 
[2026-03-01 20:39:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5276,"item_index":6,"menu_item_id":13} 
[2026-03-01 20:39:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5276,"item_index":7,"item_data":{"menu_item_id":402,"restaurant_category_id":39,"restaurant_category_name":"DESSERT BAR","item_name":"HOT GULAB JAMUN","quantity":1,"price":325.0,"discount_percent":0.0,"discount_amount":0.0,"total":325.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5276}} 
[2026-03-01 20:39:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5276,"item_index":7,"menu_item_id":402} 
[2026-03-01 20:39:47] local.ERROR: Error tracking recipe usage for order 5276: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5276, 114, 77, 1, 100, 0.00, Order #AZS-010326-007 - 1x Chicken Shinwari - Full, 2026-03-01 20:39:47, 2026-03-01 20:39:47))  
[2026-03-01 20:39:47] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5270,"new_order_id":5276,"order_number":"AZS-010326-007"} 
[2026-03-01 20:39:47] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5270,"new_order_id":5276,"order_number":"AZS-010326-007","route":"api/orders/5270"} 
[2026-03-01 20:40:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T08:39:59.708Z","date_to":"2026-03-01T20:39:59.708Z","per_page":"100"} 
[2026-03-01 20:40:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","changed","changed","pending","pending","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":22,"paid_count":9,"unpaid_count":3,"unique_order_numbers":12} 
[2026-03-01 20:40:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T08:39:59.722Z","date_to":"2026-03-01T20:39:59.722Z","per_page":"100"} 
[2026-03-01 20:40:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","changed","changed","pending","pending","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":22,"paid_count":9,"unpaid_count":3,"unique_order_numbers":12} 
[2026-03-01 20:40:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T08:39:59.708Z","date_to":"2026-03-01T20:39:59.708Z","per_page":"100"} 
[2026-03-01 20:40:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","changed","changed","pending","pending","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":22,"paid_count":9,"unpaid_count":3,"unique_order_numbers":12} 
[2026-03-01 20:40:53] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5272,"order_number":"AZS-010326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":701,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 20:40:53"} 
[2026-03-01 20:40:53] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5272,"order_number":"AZS-010326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":701,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 20:40:53"} 
[2026-03-01 20:40:53] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5272,"order_number":"AZS-010326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":701,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 20:40:53"} 
[2026-03-01 20:40:53] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5272,"order_number":"AZS-010326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":701,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 20:40:53"} 
[2026-03-01 20:40:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5272,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":25659},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25660}],"validated_items":[{"id":25659,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":25660,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-01 20:40:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5272,"items_count":2} 
[2026-03-01 20:40:53] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25659,"menu_item_id":13,"quantity":2},{"id":25660,"menu_item_id":5,"quantity":1}]} 
[2026-03-01 20:40:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5272,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|2|","5|1|"],"new_items_map_keys":["13|2|","5|1|"]} 
[2026-03-01 20:40:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5272,"order_number":"AZS-010326-012"} 
[2026-03-01 20:40:54] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5272,"order_number":"AZS-010326-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":701,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-01 20:40:53","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-01 20:40:54"} 
[2026-03-01 20:40:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5272,"order_number":"AZS-010326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-01 20:40:54"} 
[2026-03-01 20:40:54] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5272,"order_number":"AZS-010326-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"701.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-01 20:40:53","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":701,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"701.00","database_verification_match":true,"timestamp":"2026-03-01 20:40:54"} 
[2026-03-01 20:44:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T08:44:12.309Z","date_to":"2026-03-01T20:44:12.309Z","per_page":"100"} 
[2026-03-01 20:44:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","changed","changed","paid","pending","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":22,"paid_count":10,"unpaid_count":2,"unique_order_numbers":12} 
[2026-03-01 20:44:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T08:44:12.290Z","date_to":"2026-03-01T20:44:12.290Z","per_page":"100"} 
[2026-03-01 20:44:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","changed","changed","paid","pending","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":22,"paid_count":10,"unpaid_count":2,"unique_order_numbers":12} 
[2026-03-01 20:44:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T08:44:12.290Z","date_to":"2026-03-01T20:44:12.290Z","per_page":"100"} 
[2026-03-01 20:44:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","changed","changed","paid","pending","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":22,"paid_count":10,"unpaid_count":2,"unique_order_numbers":12} 
[2026-03-01 20:47:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T08:47:27.819Z","date_to":"2026-03-01T20:47:27.819Z","per_page":"100"} 
[2026-03-01 20:47:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T08:47:27.801Z","date_to":"2026-03-01T20:47:27.801Z","per_page":"100"} 
[2026-03-01 20:47:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","changed","changed","paid","pending","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":22,"paid_count":10,"unpaid_count":2,"unique_order_numbers":12} 
[2026-03-01 20:47:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","changed","changed","paid","pending","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":22,"paid_count":10,"unpaid_count":2,"unique_order_numbers":12} 
[2026-03-01 20:47:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T08:47:27.801Z","date_to":"2026-03-01T20:47:27.801Z","per_page":"100"} 
[2026-03-01 20:47:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","changed","changed","paid","pending","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":22,"paid_count":10,"unpaid_count":2,"unique_order_numbers":12} 
[2026-03-01 21:13:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T09:13:22.009Z","date_to":"2026-03-01T21:13:22.009Z","per_page":"100"} 
[2026-03-01 21:13:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T09:13:22.026Z","date_to":"2026-03-01T21:13:22.026Z","per_page":"100"} 
[2026-03-01 21:13:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","changed","changed","paid","pending","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":22,"paid_count":10,"unpaid_count":2,"unique_order_numbers":12} 
[2026-03-01 21:13:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","changed","changed","paid","pending","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":22,"paid_count":10,"unpaid_count":2,"unique_order_numbers":12} 
[2026-03-01 21:13:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T09:13:22.009Z","date_to":"2026-03-01T21:13:22.009Z","per_page":"100"} 
[2026-03-01 21:13:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","changed","changed","paid","pending","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":22,"paid_count":10,"unpaid_count":2,"unique_order_numbers":12} 
[2026-03-01 21:15:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5277,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25675},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25676},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":25677},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25678},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25679},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25680}],"validated_items":[{"id":25675,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25676,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":25677,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":25678,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25679,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25680,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-01 21:15:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5277,"items_count":6} 
[2026-03-01 21:15:46] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25675,"menu_item_id":98,"quantity":1},{"id":25676,"menu_item_id":67,"quantity":1},{"id":25677,"menu_item_id":396,"quantity":3},{"id":25678,"menu_item_id":61,"quantity":1},{"id":25679,"menu_item_id":56,"quantity":1},{"id":25680,"menu_item_id":5,"quantity":1}]} 
[2026-03-01 21:15:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5277,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["98|1|","67|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["98|1|","67|1|","396|3|","61|1|","56|1|","5|1|"]} 
[2026-03-01 21:15:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5277,"order_number":"AZS-010326-014"} 
[2026-03-01 21:15:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5277,"order_number":"AZS-010326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 21:15:46"} 
[2026-03-01 21:15:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T09:15:50.688Z","date_to":"2026-03-01T21:15:50.688Z","per_page":"100"} 
[2026-03-01 21:15:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","pending","changed","changed","paid","pending","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":22,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-01 21:15:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T09:15:50.688Z","date_to":"2026-03-01T21:15:50.688Z","per_page":"100"} 
[2026-03-01 21:15:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T09:15:50.701Z","date_to":"2026-03-01T21:15:50.701Z","per_page":"100"} 
[2026-03-01 21:15:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","pending","changed","changed","paid","pending","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":22,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-01 21:15:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","pending","changed","changed","paid","pending","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":22,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-01 21:20:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T09:20:25.760Z","date_to":"2026-03-01T21:20:25.760Z","per_page":"100"} 
[2026-03-01 21:20:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-015","AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","pending","pending","changed","changed","paid","pending","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":22,"paid_count":10,"unpaid_count":4,"unique_order_numbers":14} 
[2026-03-01 21:20:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T09:20:25.778Z","date_to":"2026-03-01T21:20:25.778Z","per_page":"100"} 
[2026-03-01 21:20:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-015","AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","pending","pending","changed","changed","paid","pending","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":22,"paid_count":10,"unpaid_count":4,"unique_order_numbers":14} 
[2026-03-01 21:20:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T09:20:25.760Z","date_to":"2026-03-01T21:20:25.760Z","per_page":"100"} 
[2026-03-01 21:20:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-015","AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","pending","pending","changed","changed","paid","pending","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":22,"paid_count":10,"unpaid_count":4,"unique_order_numbers":14} 
[2026-03-01 21:21:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5275,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":25664},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25665},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25666}],"validated_items":[{"id":25664,"menu_item_id":67,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":25665,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":25666,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-01 21:21:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5275,"items_count":3} 
[2026-03-01 21:21:16] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25664,"menu_item_id":67,"quantity":2},{"id":25665,"menu_item_id":396,"quantity":1},{"id":25666,"menu_item_id":5,"quantity":1}]} 
[2026-03-01 21:21:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5275,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["67|2|","396|1|","5|1|"],"new_items_map_keys":["67|2|","396|1|","5|1|"]} 
[2026-03-01 21:21:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5275,"order_number":"AZS-010326-013"} 
[2026-03-01 21:21:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5275,"order_number":"AZS-010326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 21:21:16"} 
[2026-03-01 21:23:51] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5275,"order_number":"AZS-010326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1550,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 21:23:51"} 
[2026-03-01 21:23:51] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5275,"order_number":"AZS-010326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1550,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 21:23:51"} 
[2026-03-01 21:23:51] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5275,"order_number":"AZS-010326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1550,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 21:23:51"} 
[2026-03-01 21:23:51] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5275,"order_number":"AZS-010326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1550,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 21:23:51"} 
[2026-03-01 21:23:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5275,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":25664},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25665},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25666}],"validated_items":[{"id":25664,"menu_item_id":67,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":25665,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":25666,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-01 21:23:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5275,"items_count":3} 
[2026-03-01 21:23:51] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25664,"menu_item_id":67,"quantity":2},{"id":25665,"menu_item_id":396,"quantity":1},{"id":25666,"menu_item_id":5,"quantity":1}]} 
[2026-03-01 21:23:51] local.INFO: PosOrderController::update - Item changes check {"order_id":5275,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["67|2|","396|1|","5|1|"],"new_items_map_keys":["67|2|","396|1|","5|1|"]} 
[2026-03-01 21:23:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5275,"order_number":"AZS-010326-013"} 
[2026-03-01 21:23:51] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5275,"order_number":"AZS-010326-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1550,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-01 21:23:51","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-01 21:23:51"} 
[2026-03-01 21:23:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5275,"order_number":"AZS-010326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-01 21:23:51"} 
[2026-03-01 21:23:51] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5275,"order_number":"AZS-010326-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1550.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-01 21:23:51","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1550,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1550.00","database_verification_match":true,"timestamp":"2026-03-01 21:23:51"} 
[2026-03-01 21:36:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T09:36:40.181Z","date_to":"2026-03-01T21:36:40.181Z","per_page":"100"} 
[2026-03-01 21:36:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T09:36:40.171Z","date_to":"2026-03-01T21:36:40.171Z","per_page":"100"} 
[2026-03-01 21:36:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-015","AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","pending","paid","changed","changed","paid","pending","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":22,"paid_count":11,"unpaid_count":3,"unique_order_numbers":14} 
[2026-03-01 21:36:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-015","AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","pending","paid","changed","changed","paid","pending","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":22,"paid_count":11,"unpaid_count":3,"unique_order_numbers":14} 
[2026-03-01 21:36:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T09:36:40.171Z","date_to":"2026-03-01T21:36:40.171Z","per_page":"100"} 
[2026-03-01 21:36:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-015","AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","pending","paid","changed","changed","paid","pending","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":22,"paid_count":11,"unpaid_count":3,"unique_order_numbers":14} 
[2026-03-01 21:54:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5278,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":25681}],"validated_items":[{"id":25681,"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-01 21:54:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5278,"items_count":1} 
[2026-03-01 21:54:47] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25681,"menu_item_id":13,"quantity":5}]} 
[2026-03-01 21:54:47] local.INFO: PosOrderController::update - Item changes check {"order_id":5278,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|5|"],"new_items_map_keys":["13|5|"]} 
[2026-03-01 21:54:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5278,"order_number":"AZS-010326-015"} 
[2026-03-01 21:54:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5278,"order_number":"AZS-010326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 21:54:47"} 
[2026-03-01 21:58:16] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5278,"order_number":"AZS-010326-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1400,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 21:58:16"} 
[2026-03-01 21:58:16] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5278,"order_number":"AZS-010326-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1400,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 21:58:16"} 
[2026-03-01 21:58:16] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5278,"order_number":"AZS-010326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1400,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 21:58:16"} 
[2026-03-01 21:58:16] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5278,"order_number":"AZS-010326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1400,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 21:58:16"} 
[2026-03-01 21:58:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5278,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":25681}],"validated_items":[{"id":25681,"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-01 21:58:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5278,"items_count":1} 
[2026-03-01 21:58:16] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25681,"menu_item_id":13,"quantity":5}]} 
[2026-03-01 21:58:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5278,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|5|"],"new_items_map_keys":["13|5|"]} 
[2026-03-01 21:58:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5278,"order_number":"AZS-010326-015"} 
[2026-03-01 21:58:16] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5278,"order_number":"AZS-010326-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1400,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-01 21:58:16","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-01 21:58:16"} 
[2026-03-01 21:58:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5278,"order_number":"AZS-010326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-01 21:58:16"} 
[2026-03-01 21:58:16] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5278,"order_number":"AZS-010326-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1400.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-01 21:58:16","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1400,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1400.00","database_verification_match":true,"timestamp":"2026-03-01 21:58:16"} 
[2026-03-01 22:14:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5277,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25675},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25676},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":25677},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25678},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25679},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25680}],"validated_items":[{"id":25675,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25676,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":25677,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":25678,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25679,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25680,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-01 22:14:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5277,"items_count":6} 
[2026-03-01 22:14:30] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25675,"menu_item_id":98,"quantity":1},{"id":25676,"menu_item_id":67,"quantity":1},{"id":25677,"menu_item_id":396,"quantity":3},{"id":25678,"menu_item_id":61,"quantity":1},{"id":25679,"menu_item_id":56,"quantity":1},{"id":25680,"menu_item_id":5,"quantity":1}]} 
[2026-03-01 22:14:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5277,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["98|1|","67|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["98|1|","67|1|","396|3|","61|1|","56|1|","5|1|"]} 
[2026-03-01 22:14:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5277,"order_number":"AZS-010326-014"} 
[2026-03-01 22:14:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5277,"order_number":"AZS-010326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 22:14:30"} 
[2026-03-01 22:16:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5271,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25658}],"validated_items":[{"id":25658,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-01 22:16:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5271,"items_count":1} 
[2026-03-01 22:16:37] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25658,"menu_item_id":6,"quantity":2}]} 
[2026-03-01 22:16:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5271,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-01 22:16:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5271,"order_number":"AZS-010326-011"} 
[2026-03-01 22:16:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5271,"order_number":"AZS-010326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 22:16:37"} 
[2026-03-01 22:18:05] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5277,"order_number":"AZS-010326-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 22:18:05"} 
[2026-03-01 22:18:05] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5277,"order_number":"AZS-010326-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 22:18:05"} 
[2026-03-01 22:18:05] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5277,"order_number":"AZS-010326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 22:18:05"} 
[2026-03-01 22:18:05] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5277,"order_number":"AZS-010326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 22:18:05"} 
[2026-03-01 22:18:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5277,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25675},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25676},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":25677},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25678},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25679},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25680}],"validated_items":[{"id":25675,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25676,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":25677,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":25678,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25679,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25680,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-01 22:18:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5277,"items_count":6} 
[2026-03-01 22:18:05] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25675,"menu_item_id":98,"quantity":1},{"id":25676,"menu_item_id":67,"quantity":1},{"id":25677,"menu_item_id":396,"quantity":3},{"id":25678,"menu_item_id":61,"quantity":1},{"id":25679,"menu_item_id":56,"quantity":1},{"id":25680,"menu_item_id":5,"quantity":1}]} 
[2026-03-01 22:18:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5277,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["98|1|","67|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["98|1|","67|1|","396|3|","61|1|","56|1|","5|1|"]} 
[2026-03-01 22:18:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5277,"order_number":"AZS-010326-014"} 
[2026-03-01 22:18:05] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5277,"order_number":"AZS-010326-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-01 22:18:05","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-01 22:18:05"} 
[2026-03-01 22:18:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5277,"order_number":"AZS-010326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-01 22:18:05"} 
[2026-03-01 22:18:05] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5277,"order_number":"AZS-010326-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-01 22:18:05","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-03-01 22:18:05"} 
[2026-03-01 22:19:03] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5271,"order_number":"AZS-010326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 22:19:03"} 
[2026-03-01 22:19:03] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5271,"order_number":"AZS-010326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 22:19:03"} 
[2026-03-01 22:19:03] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5271,"order_number":"AZS-010326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 22:19:03"} 
[2026-03-01 22:19:03] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5271,"order_number":"AZS-010326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 22:19:03"} 
[2026-03-01 22:19:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5271,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25658}],"validated_items":[{"id":25658,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-01 22:19:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5271,"items_count":1} 
[2026-03-01 22:19:03] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25658,"menu_item_id":6,"quantity":2}]} 
[2026-03-01 22:19:03] local.INFO: PosOrderController::update - Item changes check {"order_id":5271,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-01 22:19:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5271,"order_number":"AZS-010326-011"} 
[2026-03-01 22:19:03] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5271,"order_number":"AZS-010326-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-01 22:19:03","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-01 22:19:03"} 
[2026-03-01 22:19:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5271,"order_number":"AZS-010326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-01 22:19:03"} 
[2026-03-01 22:19:03] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5271,"order_number":"AZS-010326-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-01 22:19:03","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-01 22:19:03"} 
[2026-03-01 22:20:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T10:20:06.422Z","date_to":"2026-03-01T22:20:06.422Z","per_page":"100"} 
[2026-03-01 22:20:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T10:20:06.404Z","date_to":"2026-03-01T22:20:06.404Z","per_page":"100"} 
[2026-03-01 22:20:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-016","AZS-010326-015","AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":22,"paid_count":14,"unpaid_count":1,"unique_order_numbers":15} 
[2026-03-01 22:20:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-016","AZS-010326-015","AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":22,"paid_count":14,"unpaid_count":1,"unique_order_numbers":15} 
[2026-03-01 22:20:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T10:20:06.404Z","date_to":"2026-03-01T22:20:06.404Z","per_page":"100"} 
[2026-03-01 22:20:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-016","AZS-010326-015","AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["pending","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":22,"paid_count":14,"unpaid_count":1,"unique_order_numbers":15} 
[2026-03-01 23:05:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5279,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":25682},{"menu_item_id":286,"quantity":6,"discount_percent":0,"notes":null,"id":25683},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25682,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":25683,"menu_item_id":286,"quantity":6,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-01 23:05:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5279,"items_count":3} 
[2026-03-01 23:05:55] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25682,"menu_item_id":105,"quantity":1},{"id":25683,"menu_item_id":286,"quantity":6},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-01 23:05:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5279,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["105|1|","286|6|"],"new_items_map_keys":["105|1|","286|6|","5|1|"]} 
[2026-03-01 23:05:55] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5279,"order_number":"AZS-010326-016"} 
[2026-03-01 23:05:55] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010326-016","replaced_order_id":5279} 
[2026-03-01 23:05:55] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5280,"items_count":3,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":286,"quantity":6,"price":"15.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-01 23:05:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5280,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5280}} 
[2026-03-01 23:05:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5280,"item_index":0,"menu_item_id":105} 
[2026-03-01 23:05:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5280,"item_index":1,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":6,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5280}} 
[2026-03-01 23:05:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5280,"item_index":1,"menu_item_id":286} 
[2026-03-01 23:05:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5280,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5280}} 
[2026-03-01 23:05:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5280,"item_index":2,"menu_item_id":5} 
[2026-03-01 23:05:55] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5279,"new_order_id":5280,"order_number":"AZS-010326-016"} 
[2026-03-01 23:24:43] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5281,"order_number":"AZS-010326-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":600,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 23:24:43"} 
[2026-03-01 23:24:43] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5281,"order_number":"AZS-010326-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 23:24:43"} 
[2026-03-01 23:24:43] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5281,"order_number":"AZS-010326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 23:24:43"} 
[2026-03-01 23:24:43] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5281,"order_number":"AZS-010326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 23:24:43"} 
[2026-03-01 23:24:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5281,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":413,"quantity":3,"price":200,"discount_percent":0,"notes":null,"id":25687}],"validated_items":[{"id":25687,"menu_item_id":413,"quantity":3,"price":200,"discount_percent":0,"notes":null}]} 
[2026-03-01 23:24:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5281,"items_count":1} 
[2026-03-01 23:24:43] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25687,"menu_item_id":413,"quantity":3}]} 
[2026-03-01 23:24:43] local.INFO: PosOrderController::update - Item changes check {"order_id":5281,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["413|3|"],"new_items_map_keys":["413|3|"]} 
[2026-03-01 23:24:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5281,"order_number":"AZS-010326-017"} 
[2026-03-01 23:24:43] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5281,"order_number":"AZS-010326-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":600,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-01 23:24:43","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-01 23:24:43"} 
[2026-03-01 23:24:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5281,"order_number":"AZS-010326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-01 23:24:43"} 
[2026-03-01 23:24:43] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5281,"order_number":"AZS-010326-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"600.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-01 23:24:43","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"600.00","database_verification_match":true,"timestamp":"2026-03-01 23:24:43"} 
[2026-03-01 23:24:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5280,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":25684},{"menu_item_id":286,"quantity":6,"price":15,"discount_percent":0,"notes":null,"id":25685},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25686}],"validated_items":[{"id":25684,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":25685,"menu_item_id":286,"quantity":6,"price":15,"discount_percent":0,"notes":null},{"id":25686,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-01 23:24:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5280,"items_count":3} 
[2026-03-01 23:24:56] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25684,"menu_item_id":105,"quantity":1},{"id":25685,"menu_item_id":286,"quantity":6},{"id":25686,"menu_item_id":5,"quantity":1}]} 
[2026-03-01 23:24:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5280,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["105|1|","286|6|","5|1|"],"new_items_map_keys":["105|1|","286|6|","5|1|"]} 
[2026-03-01 23:24:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5280,"order_number":"AZS-010326-016"} 
[2026-03-01 23:24:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5280,"order_number":"AZS-010326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 23:24:56"} 
[2026-03-01 23:48:58] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5280,"order_number":"AZS-010326-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2289,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 23:48:58"} 
[2026-03-01 23:48:58] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5280,"order_number":"AZS-010326-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2289,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 23:48:58"} 
[2026-03-01 23:48:58] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5280,"order_number":"AZS-010326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2289,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 23:48:58"} 
[2026-03-01 23:48:58] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5280,"order_number":"AZS-010326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2289,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 23:48:58"} 
[2026-03-01 23:48:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":1,"order_id":5280,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":25684},{"menu_item_id":286,"quantity":6,"price":15,"discount_percent":0,"notes":null,"id":25685}],"validated_items":[{"id":25684,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":25685,"menu_item_id":286,"quantity":6,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-01 23:48:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5280,"items_count":2} 
[2026-03-01 23:48:58] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":1,"items_to_remove":[25686],"items":[{"id":25684,"menu_item_id":105,"quantity":1},{"id":25685,"menu_item_id":286,"quantity":6}]} 
[2026-03-01 23:48:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5280,"has_item_changes":true,"old_items_count":3,"new_items_count":2,"old_items_map_keys":["105|1|","286|6|","5|1|"],"new_items_map_keys":["105|1|","286|6|"]} 
[2026-03-01 23:48:58] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5280,"order_number":"AZS-010326-016","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":2289,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-01 23:48:58","original_payment_amount":"0.00","grand_total":2289.0,"timestamp":"2026-03-01 23:48:58"} 
[2026-03-01 23:48:58] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5280,"order_number":"AZS-010326-016"} 
[2026-03-01 23:48:58] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010326-016","replaced_order_id":5280} 
[2026-03-01 23:48:58] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5280,"new_order_id":5284,"order_number":"AZS-010326-016","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"2289.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-01 23:48:58","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2289,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-01 23:48:58"} 
[2026-03-01 23:48:58] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5284,"items_count":2,"items":[{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":286,"quantity":6,"price":15.0}]} 
[2026-03-01 23:48:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5284,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5284}} 
[2026-03-01 23:48:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5284,"item_index":0,"menu_item_id":105} 
[2026-03-01 23:48:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5284,"item_index":1,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":6,"price":15.0,"discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5284}} 
[2026-03-01 23:48:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5284,"item_index":1,"menu_item_id":286} 
[2026-03-01 23:48:58] local.ERROR: Error tracking recipe usage for order 5284: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5284, 105, 196, 1, 500, 0.00, Order #AZS-010326-016 - 1x Mutton Shinwari - Half, 2026-03-01 23:48:58, 2026-03-01 23:48:58))  
[2026-03-01 23:48:58] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5280,"new_order_id":5284,"order_number":"AZS-010326-016"} 
[2026-03-01 23:48:59] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5280,"new_order_id":5284,"order_number":"AZS-010326-016","route":"api/orders/5280"} 
[2026-03-01 23:49:21] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5283,"order_number":"AZS-010326-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":30,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 23:49:21"} 
[2026-03-01 23:49:21] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5283,"order_number":"AZS-010326-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":30,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 23:49:21"} 
[2026-03-01 23:49:21] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5283,"order_number":"AZS-010326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":30,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 23:49:21"} 
[2026-03-01 23:49:21] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5283,"order_number":"AZS-010326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":30,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 23:49:21"} 
[2026-03-01 23:49:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5283,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":25690}],"validated_items":[{"id":25690,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-01 23:49:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5283,"items_count":1} 
[2026-03-01 23:49:21] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25690,"menu_item_id":286,"quantity":2}]} 
[2026-03-01 23:49:21] local.INFO: PosOrderController::update - Item changes check {"order_id":5283,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["286|2|"],"new_items_map_keys":["286|2|"]} 
[2026-03-01 23:49:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5283,"order_number":"AZS-010326-019"} 
[2026-03-01 23:49:21] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5283,"order_number":"AZS-010326-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":30,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-01 23:49:21","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-01 23:49:21"} 
[2026-03-01 23:49:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5283,"order_number":"AZS-010326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-01 23:49:21"} 
[2026-03-01 23:49:21] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5283,"order_number":"AZS-010326-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"30.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-01 23:49:21","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":30,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"30.00","database_verification_match":true,"timestamp":"2026-03-01 23:49:21"} 
[2026-03-01 23:54:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T11:54:01.727Z","date_to":"2026-03-01T23:54:01.727Z","per_page":"100"} 
[2026-03-01 23:54:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T11:54:01.742Z","date_to":"2026-03-01T23:54:01.742Z","per_page":"100"} 
[2026-03-01 23:54:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-019","AZS-010326-018","AZS-010326-017","AZS-010326-016","AZS-010326-016","AZS-010326-016","AZS-010326-015","AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["paid","pending","paid","paid","changed","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":24,"paid_count":17,"unpaid_count":1,"unique_order_numbers":18} 
[2026-03-01 23:54:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-019","AZS-010326-018","AZS-010326-017","AZS-010326-016","AZS-010326-016","AZS-010326-016","AZS-010326-015","AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["paid","pending","paid","paid","changed","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":24,"paid_count":17,"unpaid_count":1,"unique_order_numbers":18} 
[2026-03-01 23:54:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T11:54:01.727Z","date_to":"2026-03-01T23:54:01.727Z","per_page":"100"} 
[2026-03-01 23:54:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-019","AZS-010326-018","AZS-010326-017","AZS-010326-016","AZS-010326-016","AZS-010326-016","AZS-010326-015","AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["paid","pending","paid","paid","changed","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":24,"paid_count":17,"unpaid_count":1,"unique_order_numbers":18} 
[2026-03-01 23:56:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5282,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25688},{"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":25689}],"validated_items":[{"id":25688,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":25689,"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-01 23:56:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5282,"items_count":2} 
[2026-03-01 23:56:10] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25688,"menu_item_id":411,"quantity":1},{"id":25689,"menu_item_id":416,"quantity":4}]} 
[2026-03-01 23:56:10] local.INFO: PosOrderController::update - Item changes check {"order_id":5282,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","416|4|"],"new_items_map_keys":["411|1|","416|4|"]} 
[2026-03-01 23:56:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5282,"order_number":"AZS-010326-018"} 
[2026-03-01 23:56:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5282,"order_number":"AZS-010326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-01 23:56:10"} 
[2026-03-01 23:58:28] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5282,"order_number":"AZS-010326-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":880,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 23:58:28"} 
[2026-03-01 23:58:28] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5282,"order_number":"AZS-010326-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":880,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-01 23:58:28"} 
[2026-03-01 23:58:28] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5282,"order_number":"AZS-010326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":880,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 23:58:28"} 
[2026-03-01 23:58:28] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5282,"order_number":"AZS-010326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":880,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-01 23:58:28"} 
[2026-03-01 23:58:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5282,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25688},{"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":25689}],"validated_items":[{"id":25688,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":25689,"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-01 23:58:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5282,"items_count":2} 
[2026-03-01 23:58:28] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25688,"menu_item_id":411,"quantity":1},{"id":25689,"menu_item_id":416,"quantity":4}]} 
[2026-03-01 23:58:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5282,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","416|4|"],"new_items_map_keys":["411|1|","416|4|"]} 
[2026-03-01 23:58:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5282,"order_number":"AZS-010326-018"} 
[2026-03-01 23:58:28] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5282,"order_number":"AZS-010326-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":880,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-01 23:58:28","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-01 23:58:28"} 
[2026-03-01 23:58:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5282,"order_number":"AZS-010326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-01 23:58:28"} 
[2026-03-01 23:58:28] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5282,"order_number":"AZS-010326-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"880.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-01 23:58:28","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":880,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"880.00","database_verification_match":true,"timestamp":"2026-03-01 23:58:28"} 
[2026-03-01 23:58:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T11:58:36.799Z","date_to":"2026-03-01T23:58:36.799Z","per_page":"100"} 
[2026-03-01 23:58:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-019","AZS-010326-018","AZS-010326-017","AZS-010326-016","AZS-010326-016","AZS-010326-016","AZS-010326-015","AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["paid","paid","paid","paid","changed","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":24,"paid_count":18,"unpaid_count":0,"unique_order_numbers":18} 
[2026-03-01 23:58:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T11:58:36.779Z","date_to":"2026-03-01T23:58:36.779Z","per_page":"100"} 
[2026-03-01 23:58:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-019","AZS-010326-018","AZS-010326-017","AZS-010326-016","AZS-010326-016","AZS-010326-016","AZS-010326-015","AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["paid","paid","paid","paid","changed","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":24,"paid_count":18,"unpaid_count":0,"unique_order_numbers":18} 
[2026-03-01 23:58:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T11:58:36.779Z","date_to":"2026-03-01T23:58:36.779Z","per_page":"100"} 
[2026-03-01 23:58:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-019","AZS-010326-018","AZS-010326-017","AZS-010326-016","AZS-010326-016","AZS-010326-016","AZS-010326-015","AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["paid","paid","paid","paid","changed","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":24,"paid_count":18,"unpaid_count":0,"unique_order_numbers":18} 
[2026-03-02 05:26:02] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T17:25:58.541Z","date_to":"2026-03-02T05:25:58.541Z","per_page":"100"} 
[2026-03-02 05:26:02] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T17:25:58.581Z","date_to":"2026-03-02T05:25:58.581Z","per_page":"100"} 
[2026-03-02 05:26:02] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-019","AZS-010326-018","AZS-010326-017","AZS-010326-016","AZS-010326-016","AZS-010326-016","AZS-010326-015","AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007"],"order_statuses":["paid","paid","paid","paid","changed","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed"],"deleted_count":14,"paid_count":13,"unpaid_count":0,"unique_order_numbers":13} 
[2026-03-02 05:26:02] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-019","AZS-010326-018","AZS-010326-017","AZS-010326-016","AZS-010326-016","AZS-010326-016","AZS-010326-015","AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007"],"order_statuses":["paid","paid","paid","paid","changed","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed"],"deleted_count":14,"paid_count":13,"unpaid_count":0,"unique_order_numbers":13} 
[2026-03-02 05:26:03] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T17:25:58.541Z","date_to":"2026-03-02T05:25:58.541Z","per_page":"100"} 
[2026-03-02 05:26:03] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-019","AZS-010326-018","AZS-010326-017","AZS-010326-016","AZS-010326-016","AZS-010326-016","AZS-010326-015","AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007"],"order_statuses":["paid","paid","paid","paid","changed","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed"],"deleted_count":14,"paid_count":13,"unpaid_count":0,"unique_order_numbers":13} 
[2026-03-02 06:16:07] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T18:16:04.521Z","date_to":"2026-03-02T06:16:04.521Z","per_page":"100"} 
[2026-03-02 06:16:07] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-019","AZS-010326-018","AZS-010326-017","AZS-010326-016","AZS-010326-016","AZS-010326-016","AZS-010326-015","AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010"],"order_statuses":["paid","paid","paid","paid","changed","changed","paid","paid","paid","changed","changed","paid","paid","paid"],"deleted_count":4,"paid_count":10,"unpaid_count":0,"unique_order_numbers":10} 
[2026-03-02 06:16:07] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T18:16:04.556Z","date_to":"2026-03-02T06:16:04.556Z","per_page":"100"} 
[2026-03-02 06:16:07] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-019","AZS-010326-018","AZS-010326-017","AZS-010326-016","AZS-010326-016","AZS-010326-016","AZS-010326-015","AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010"],"order_statuses":["paid","paid","paid","paid","changed","changed","paid","paid","paid","changed","changed","paid","paid","paid"],"deleted_count":4,"paid_count":10,"unpaid_count":0,"unique_order_numbers":10} 
[2026-03-02 06:16:08] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T18:16:04.521Z","date_to":"2026-03-02T06:16:04.521Z","per_page":"100"} 
[2026-03-02 06:16:08] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-019","AZS-010326-018","AZS-010326-017","AZS-010326-016","AZS-010326-016","AZS-010326-016","AZS-010326-015","AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010"],"order_statuses":["paid","paid","paid","paid","changed","changed","paid","paid","paid","changed","changed","paid","paid","paid"],"deleted_count":4,"paid_count":10,"unpaid_count":0,"unique_order_numbers":10} 
[2026-03-02 08:44:44] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T20:44:41.408Z","date_to":"2026-03-02T08:44:41.408Z","per_page":"100"} 
[2026-03-02 08:44:44] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-019","AZS-010326-018","AZS-010326-017","AZS-010326-016","AZS-010326-016","AZS-010326-016","AZS-010326-015","AZS-010326-014"],"order_statuses":["paid","paid","paid","paid","changed","changed","paid","paid"],"deleted_count":2,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-02 08:44:44] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T20:44:41.473Z","date_to":"2026-03-02T08:44:41.473Z","per_page":"100"} 
[2026-03-02 08:44:44] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-019","AZS-010326-018","AZS-010326-017","AZS-010326-016","AZS-010326-016","AZS-010326-016","AZS-010326-015","AZS-010326-014"],"order_statuses":["paid","paid","paid","paid","changed","changed","paid","paid"],"deleted_count":2,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-02 08:44:45] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T20:44:41.408Z","date_to":"2026-03-02T08:44:41.408Z","per_page":"100"} 
[2026-03-02 08:44:45] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-019","AZS-010326-018","AZS-010326-017","AZS-010326-016","AZS-010326-016","AZS-010326-016","AZS-010326-015","AZS-010326-014"],"order_statuses":["paid","paid","paid","paid","changed","changed","paid","paid"],"deleted_count":2,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-02 08:44:50] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-01T08:44:46.988Z","date_to":"2026-03-02T08:44:46.988Z","per_page":"100"} 
[2026-03-02 08:44:50] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-019","AZS-010326-018","AZS-010326-017","AZS-010326-016","AZS-010326-016","AZS-010326-016","AZS-010326-015","AZS-010326-014","AZS-010326-013","AZS-010326-013","AZS-010326-013","AZS-010326-012","AZS-010326-011","AZS-010326-010","AZS-010326-009","AZS-010326-009","AZS-010326-008","AZS-010326-008","AZS-010326-008","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-007","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-006","AZS-010326-005","AZS-010326-005","AZS-010326-005","AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002"],"order_statuses":["paid","paid","paid","paid","changed","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed"],"deleted_count":24,"paid_count":18,"unpaid_count":0,"unique_order_numbers":18} 
[2026-03-02 12:24:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T00:24:37.471Z","date_to":"2026-03-02T12:24:37.471Z","per_page":"100"} 
[2026-03-02 12:24:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-03-02 12:24:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T00:24:37.457Z","date_to":"2026-03-02T12:24:37.457Z","per_page":"100"} 
[2026-03-02 12:24:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-03-02 12:24:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T00:24:37.457Z","date_to":"2026-03-02T12:24:37.457Z","per_page":"100"} 
[2026-03-02 12:24:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5287,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null,"id":25700},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":25700,"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5287,"items_count":10} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25700,"menu_item_id":417,"quantity":4},{"id":null,"menu_item_id":99,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":50,"quantity":4},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":2}]} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5287,"has_item_changes":true,"old_items_count":1,"new_items_count":10,"old_items_map_keys":["417|4|"],"new_items_map_keys":["417|4|","99|1|","96|1|","62|1|","65|1|","396|3|","50|4|","5|2|","61|2|","56|2|"]} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5287,"order_number":"AZS-020326-003"} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-003","replaced_order_id":5287} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5289,"items_count":10,"items":[{"menu_item_id":417,"quantity":4,"price":"499.00"},{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":4,"price":"129.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"}]} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5289,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":4,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":1996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5289}} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5289,"item_index":0,"menu_item_id":417} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5289,"item_index":1,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5289}} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5289,"item_index":1,"menu_item_id":99} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5289,"item_index":2,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5289}} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5289,"item_index":2,"menu_item_id":96} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5289,"item_index":3,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5289}} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5289,"item_index":3,"menu_item_id":62} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5289,"item_index":4,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5289}} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5289,"item_index":4,"menu_item_id":65} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5289,"item_index":5,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5289}} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5289,"item_index":5,"menu_item_id":396} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5289,"item_index":6,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5289}} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5289,"item_index":6,"menu_item_id":50} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5289,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5289}} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5289,"item_index":7,"menu_item_id":5} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5289,"item_index":8,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5289}} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5289,"item_index":8,"menu_item_id":61} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5289,"item_index":9,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5289}} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5289,"item_index":9,"menu_item_id":56} 
[2026-03-02 12:42:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5287,"new_order_id":5289,"order_number":"AZS-020326-003"} 
[2026-03-02 12:44:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T00:44:53.495Z","date_to":"2026-03-02T12:44:53.495Z","per_page":"100"} 
[2026-03-02 12:44:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T00:44:53.481Z","date_to":"2026-03-02T12:44:53.481Z","per_page":"100"} 
[2026-03-02 12:44:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-001"],"order_statuses":["pending","pending","changed","pending","pending"],"deleted_count":1,"paid_count":0,"unpaid_count":4,"unique_order_numbers":4} 
[2026-03-02 12:44:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-001"],"order_statuses":["pending","pending","changed","pending","pending"],"deleted_count":1,"paid_count":0,"unpaid_count":4,"unique_order_numbers":4} 
[2026-03-02 12:44:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T00:44:53.481Z","date_to":"2026-03-02T12:44:53.481Z","per_page":"100"} 
[2026-03-02 12:44:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-001"],"order_statuses":["pending","pending","changed","pending","pending"],"deleted_count":1,"paid_count":0,"unpaid_count":4,"unique_order_numbers":4} 
[2026-03-02 12:52:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5291,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":25713},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":25714},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25715},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":25716},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":25717},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25718},{"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null,"id":25719}],"validated_items":[{"id":25713,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":25714,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":25715,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":25716,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":25717,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":25718,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":25719,"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-03-02 12:52:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5291,"items_count":7} 
[2026-03-02 12:52:29] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25713,"menu_item_id":78,"quantity":1},{"id":25714,"menu_item_id":106,"quantity":1},{"id":25715,"menu_item_id":396,"quantity":2},{"id":25716,"menu_item_id":61,"quantity":2},{"id":25717,"menu_item_id":56,"quantity":2},{"id":25718,"menu_item_id":5,"quantity":1},{"id":25719,"menu_item_id":417,"quantity":4}]} 
[2026-03-02 12:52:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5291,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["78|1|","106|1|","396|2|","61|2|","56|2|","5|1|","417|3|"],"new_items_map_keys":["78|1|","106|1|","396|2|","61|2|","56|2|","5|1|","417|4|"]} 
[2026-03-02 12:52:29] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5291,"order_number":"AZS-020326-006"} 
[2026-03-02 12:52:29] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-006","replaced_order_id":5291} 
[2026-03-02 12:52:29] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5292,"items_count":7,"items":[{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":417,"quantity":4,"price":"499.00"}]} 
[2026-03-02 12:52:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5292,"item_index":0,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5292}} 
[2026-03-02 12:52:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5292,"item_index":0,"menu_item_id":78} 
[2026-03-02 12:52:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5292,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5292}} 
[2026-03-02 12:52:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5292,"item_index":1,"menu_item_id":106} 
[2026-03-02 12:52:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5292,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5292}} 
[2026-03-02 12:52:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5292,"item_index":2,"menu_item_id":396} 
[2026-03-02 12:52:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5292,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5292}} 
[2026-03-02 12:52:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5292,"item_index":3,"menu_item_id":61} 
[2026-03-02 12:52:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5292,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5292}} 
[2026-03-02 12:52:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5292,"item_index":4,"menu_item_id":56} 
[2026-03-02 12:52:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5292,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5292}} 
[2026-03-02 12:52:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5292,"item_index":5,"menu_item_id":5} 
[2026-03-02 12:52:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5292,"item_index":6,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":4,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":1996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5292}} 
[2026-03-02 12:52:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5292,"item_index":6,"menu_item_id":417} 
[2026-03-02 12:52:29] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5291,"new_order_id":5292,"order_number":"AZS-020326-006"} 
[2026-03-02 12:53:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5285,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":25693},{"menu_item_id":65,"quantity":2,"discount_percent":0,"notes":null,"id":25694},{"menu_item_id":52,"quantity":8,"discount_percent":0,"notes":null,"id":25695},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":25696},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25697},{"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":25693,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":25694,"menu_item_id":65,"quantity":2,"discount_percent":0,"notes":null},{"id":25695,"menu_item_id":52,"quantity":8,"discount_percent":0,"notes":null},{"id":25696,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":25697,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-02 12:53:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5285,"items_count":6} 
[2026-03-02 12:53:43] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25693,"menu_item_id":99,"quantity":1},{"id":25694,"menu_item_id":65,"quantity":2},{"id":25695,"menu_item_id":52,"quantity":8},{"id":25696,"menu_item_id":61,"quantity":2},{"id":25697,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":417,"quantity":2}]} 
[2026-03-02 12:53:43] local.INFO: PosOrderController::update - Item changes check {"order_id":5285,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["99|1|","65|2|","52|8|","61|2|","5|1|"],"new_items_map_keys":["99|1|","65|2|","52|8|","61|2|","5|1|","417|2|"]} 
[2026-03-02 12:53:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5285,"order_number":"AZS-020326-001"} 
[2026-03-02 12:53:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-001","replaced_order_id":5285} 
[2026-03-02 12:53:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5293,"items_count":6,"items":[{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":65,"quantity":2,"price":"1299.00"},{"menu_item_id":52,"quantity":8,"price":"70.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":417,"quantity":2,"price":"499.00"}]} 
[2026-03-02 12:53:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5293,"item_index":0,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5293}} 
[2026-03-02 12:53:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5293,"item_index":0,"menu_item_id":99} 
[2026-03-02 12:53:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5293,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":2,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":2598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5293}} 
[2026-03-02 12:53:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5293,"item_index":1,"menu_item_id":65} 
[2026-03-02 12:53:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5293,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":8,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":560.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5293}} 
[2026-03-02 12:53:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5293,"item_index":2,"menu_item_id":52} 
[2026-03-02 12:53:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5293,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5293}} 
[2026-03-02 12:53:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5293,"item_index":3,"menu_item_id":61} 
[2026-03-02 12:53:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5293,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5293}} 
[2026-03-02 12:53:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5293,"item_index":4,"menu_item_id":5} 
[2026-03-02 12:53:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5293,"item_index":5,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":2,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5293}} 
[2026-03-02 12:53:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5293,"item_index":5,"menu_item_id":417} 
[2026-03-02 12:53:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5285,"new_order_id":5293,"order_number":"AZS-020326-001"} 
[2026-03-02 13:12:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5288,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null,"id":25701},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":4,"discount_percent":0,"notes":null}],"validated_items":[{"id":25701,"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-03-02 13:12:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5288,"items_count":3} 
[2026-03-02 13:12:33] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25701,"menu_item_id":417,"quantity":2},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":49,"quantity":4}]} 
[2026-03-02 13:12:33] local.INFO: PosOrderController::update - Item changes check {"order_id":5288,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["417|2|"],"new_items_map_keys":["417|2|","105|1|","49|4|"]} 
[2026-03-02 13:12:33] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5288,"order_number":"AZS-020326-004"} 
[2026-03-02 13:12:33] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-004","replaced_order_id":5288} 
[2026-03-02 13:12:33] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5297,"items_count":3,"items":[{"menu_item_id":417,"quantity":2,"price":"499.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":49,"quantity":4,"price":"70.00"}]} 
[2026-03-02 13:12:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5297,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":2,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5297}} 
[2026-03-02 13:12:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5297,"item_index":0,"menu_item_id":417} 
[2026-03-02 13:12:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5297,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5297}} 
[2026-03-02 13:12:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5297,"item_index":1,"menu_item_id":105} 
[2026-03-02 13:12:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5297,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5297}} 
[2026-03-02 13:12:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5297,"item_index":2,"menu_item_id":49} 
[2026-03-02 13:12:33] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5288,"new_order_id":5297,"order_number":"AZS-020326-004"} 
[2026-03-02 13:13:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5293,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":25727},{"menu_item_id":65,"quantity":2,"discount_percent":0,"notes":null,"id":25728},{"menu_item_id":52,"quantity":8,"discount_percent":0,"notes":null,"id":25729},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":25730},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25731},{"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null,"id":25732},{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":25727,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":25728,"menu_item_id":65,"quantity":2,"discount_percent":0,"notes":null},{"id":25729,"menu_item_id":52,"quantity":8,"discount_percent":0,"notes":null},{"id":25730,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":25731,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":25732,"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-02 13:13:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5293,"items_count":8} 
[2026-03-02 13:13:19] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25727,"menu_item_id":99,"quantity":1},{"id":25728,"menu_item_id":65,"quantity":2},{"id":25729,"menu_item_id":52,"quantity":8},{"id":25730,"menu_item_id":61,"quantity":2},{"id":25731,"menu_item_id":5,"quantity":1},{"id":25732,"menu_item_id":417,"quantity":2},{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2}]} 
[2026-03-02 13:13:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5293,"has_item_changes":true,"old_items_count":6,"new_items_count":8,"old_items_map_keys":["99|1|","65|2|","52|8|","61|2|","5|1|","417|2|"],"new_items_map_keys":["99|1|","65|2|","52|8|","61|2|","5|1|","417|2|","102|1|","396|2|"]} 
[2026-03-02 13:13:19] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5293,"order_number":"AZS-020326-001"} 
[2026-03-02 13:13:19] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-001","replaced_order_id":5293} 
[2026-03-02 13:13:19] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5298,"items_count":8,"items":[{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":65,"quantity":2,"price":"1299.00"},{"menu_item_id":52,"quantity":8,"price":"70.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":417,"quantity":2,"price":"499.00"},{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"}]} 
[2026-03-02 13:13:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5298,"item_index":0,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5298}} 
[2026-03-02 13:13:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5298,"item_index":0,"menu_item_id":99} 
[2026-03-02 13:13:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5298,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":2,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":2598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5298}} 
[2026-03-02 13:13:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5298,"item_index":1,"menu_item_id":65} 
[2026-03-02 13:13:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5298,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":8,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":560.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5298}} 
[2026-03-02 13:13:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5298,"item_index":2,"menu_item_id":52} 
[2026-03-02 13:13:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5298,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5298}} 
[2026-03-02 13:13:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5298,"item_index":3,"menu_item_id":61} 
[2026-03-02 13:13:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5298,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5298}} 
[2026-03-02 13:13:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5298,"item_index":4,"menu_item_id":5} 
[2026-03-02 13:13:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5298,"item_index":5,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":2,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5298}} 
[2026-03-02 13:13:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5298,"item_index":5,"menu_item_id":417} 
[2026-03-02 13:13:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5298,"item_index":6,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5298}} 
[2026-03-02 13:13:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5298,"item_index":6,"menu_item_id":102} 
[2026-03-02 13:13:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5298,"item_index":7,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5298}} 
[2026-03-02 13:13:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5298,"item_index":7,"menu_item_id":396} 
[2026-03-02 13:13:19] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5293,"new_order_id":5298,"order_number":"AZS-020326-001"} 
[2026-03-02 13:14:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5295,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null,"id":25734},{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25734,"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-02 13:14:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5295,"items_count":6} 
[2026-03-02 13:14:47] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25734,"menu_item_id":417,"quantity":2},{"id":null,"menu_item_id":78,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":52,"quantity":2},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-03-02 13:14:47] local.INFO: PosOrderController::update - Item changes check {"order_id":5295,"has_item_changes":true,"old_items_count":1,"new_items_count":6,"old_items_map_keys":["417|2|"],"new_items_map_keys":["417|2|","78|1|","96|1|","52|2|","61|2|","56|1|"]} 
[2026-03-02 13:14:47] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5295,"order_number":"AZS-020326-008"} 
[2026-03-02 13:14:47] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-008","replaced_order_id":5295} 
[2026-03-02 13:14:47] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5299,"items_count":6,"items":[{"menu_item_id":417,"quantity":2,"price":"499.00"},{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":52,"quantity":2,"price":"70.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"}]} 
[2026-03-02 13:14:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5299,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":2,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5299}} 
[2026-03-02 13:14:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5299,"item_index":0,"menu_item_id":417} 
[2026-03-02 13:14:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5299,"item_index":1,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5299}} 
[2026-03-02 13:14:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5299,"item_index":1,"menu_item_id":78} 
[2026-03-02 13:14:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5299,"item_index":2,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5299}} 
[2026-03-02 13:14:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5299,"item_index":2,"menu_item_id":96} 
[2026-03-02 13:14:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5299,"item_index":3,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5299}} 
[2026-03-02 13:14:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5299,"item_index":3,"menu_item_id":52} 
[2026-03-02 13:14:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5299,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5299}} 
[2026-03-02 13:14:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5299,"item_index":4,"menu_item_id":61} 
[2026-03-02 13:14:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5299,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5299}} 
[2026-03-02 13:14:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5299,"item_index":5,"menu_item_id":56} 
[2026-03-02 13:14:47] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5295,"new_order_id":5299,"order_number":"AZS-020326-008"} 
[2026-03-02 13:21:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5298,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":25739},{"menu_item_id":65,"quantity":2,"discount_percent":0,"notes":null,"id":25740},{"menu_item_id":52,"quantity":8,"discount_percent":0,"notes":null,"id":25741},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":25742},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25743},{"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null,"id":25744},{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":25745},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25746}],"validated_items":[{"id":25739,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":25740,"menu_item_id":65,"quantity":2,"discount_percent":0,"notes":null},{"id":25741,"menu_item_id":52,"quantity":8,"discount_percent":0,"notes":null},{"id":25742,"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"id":25743,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":25744,"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null},{"id":25745,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":25746,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-02 13:21:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5298,"items_count":8} 
[2026-03-02 13:21:25] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25739,"menu_item_id":99,"quantity":1},{"id":25740,"menu_item_id":65,"quantity":2},{"id":25741,"menu_item_id":52,"quantity":8},{"id":25742,"menu_item_id":61,"quantity":4},{"id":25743,"menu_item_id":5,"quantity":1},{"id":25744,"menu_item_id":417,"quantity":2},{"id":25745,"menu_item_id":102,"quantity":1},{"id":25746,"menu_item_id":396,"quantity":2}]} 
[2026-03-02 13:21:25] local.INFO: PosOrderController::update - Item changes check {"order_id":5298,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["99|1|","65|2|","52|8|","61|2|","5|1|","417|2|","102|1|","396|2|"],"new_items_map_keys":["99|1|","65|2|","52|8|","61|4|","5|1|","417|2|","102|1|","396|2|"]} 
[2026-03-02 13:21:25] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5298,"order_number":"AZS-020326-001"} 
[2026-03-02 13:21:25] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-001","replaced_order_id":5298} 
[2026-03-02 13:21:25] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5300,"items_count":8,"items":[{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":65,"quantity":2,"price":"1299.00"},{"menu_item_id":52,"quantity":8,"price":"70.00"},{"menu_item_id":61,"quantity":4,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":417,"quantity":2,"price":"499.00"},{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"}]} 
[2026-03-02 13:21:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5300,"item_index":0,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5300}} 
[2026-03-02 13:21:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5300,"item_index":0,"menu_item_id":99} 
[2026-03-02 13:21:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5300,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":2,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":2598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5300}} 
[2026-03-02 13:21:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5300,"item_index":1,"menu_item_id":65} 
[2026-03-02 13:21:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5300,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":8,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":560.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5300}} 
[2026-03-02 13:21:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5300,"item_index":2,"menu_item_id":52} 
[2026-03-02 13:21:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5300,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5300}} 
[2026-03-02 13:21:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5300,"item_index":3,"menu_item_id":61} 
[2026-03-02 13:21:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5300,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5300}} 
[2026-03-02 13:21:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5300,"item_index":4,"menu_item_id":5} 
[2026-03-02 13:21:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5300,"item_index":5,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":2,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5300}} 
[2026-03-02 13:21:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5300,"item_index":5,"menu_item_id":417} 
[2026-03-02 13:21:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5300,"item_index":6,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5300}} 
[2026-03-02 13:21:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5300,"item_index":6,"menu_item_id":102} 
[2026-03-02 13:21:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5300,"item_index":7,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5300}} 
[2026-03-02 13:21:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5300,"item_index":7,"menu_item_id":396} 
[2026-03-02 13:21:25] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5298,"new_order_id":5300,"order_number":"AZS-020326-001"} 
[2026-03-02 13:21:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5294,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":25733},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25733,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-02 13:21:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5294,"items_count":2} 
[2026-03-02 13:21:39] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25733,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-03-02 13:21:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5294,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","61|1|"]} 
[2026-03-02 13:21:39] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5294,"order_number":"AZS-020326-007"} 
[2026-03-02 13:21:39] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-007","replaced_order_id":5294} 
[2026-03-02 13:21:39] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5301,"items_count":2,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"}]} 
[2026-03-02 13:21:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5301,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5301}} 
[2026-03-02 13:21:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5301,"item_index":0,"menu_item_id":417} 
[2026-03-02 13:21:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5301,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5301}} 
[2026-03-02 13:21:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5301,"item_index":1,"menu_item_id":61} 
[2026-03-02 13:21:39] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5294,"new_order_id":5301,"order_number":"AZS-020326-007"} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5296,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":25735},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25735,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5296,"items_count":9} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25735,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":55,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5296,"has_item_changes":true,"old_items_count":1,"new_items_count":9,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","113|1|","65|1|","62|1|","61|2|","56|1|","50|2|","55|2|","5|1|"]} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5296,"order_number":"AZS-020326-009"} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-009","replaced_order_id":5296} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5303,"items_count":9,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5303,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5303}} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5303,"item_index":0,"menu_item_id":417} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5303,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5303}} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5303,"item_index":1,"menu_item_id":113} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5303,"item_index":2,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5303}} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5303,"item_index":2,"menu_item_id":65} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5303,"item_index":3,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5303}} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5303,"item_index":3,"menu_item_id":62} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5303,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5303}} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5303,"item_index":4,"menu_item_id":61} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5303,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5303}} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5303,"item_index":5,"menu_item_id":56} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5303,"item_index":6,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5303}} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5303,"item_index":6,"menu_item_id":50} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5303,"item_index":7,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5303}} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5303,"item_index":7,"menu_item_id":55} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5303,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5303}} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5303,"item_index":8,"menu_item_id":5} 
[2026-03-02 13:24:39] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5296,"new_order_id":5303,"order_number":"AZS-020326-009"} 
[2026-03-02 13:37:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5286,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25698},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25699}],"validated_items":[{"id":25698,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25699,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-02 13:37:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5286,"items_count":2} 
[2026-03-02 13:37:08] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25698,"menu_item_id":98,"quantity":1},{"id":25699,"menu_item_id":396,"quantity":2}]} 
[2026-03-02 13:37:08] local.INFO: PosOrderController::update - Item changes check {"order_id":5286,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["98|1|","396|2|"],"new_items_map_keys":["98|1|","396|2|"]} 
[2026-03-02 13:37:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5286,"order_number":"AZS-020326-002"} 
[2026-03-02 13:37:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5286,"order_number":"AZS-020326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 13:37:08"} 
[2026-03-02 13:38:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5286,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":25698},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25699},{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25698,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":25699,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-02 13:38:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5286,"items_count":3} 
[2026-03-02 13:38:30] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25698,"menu_item_id":98,"quantity":1},{"id":25699,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":417,"quantity":1}]} 
[2026-03-02 13:38:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5286,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["98|1|","396|2|"],"new_items_map_keys":["98|1|","396|2|","417|1|"]} 
[2026-03-02 13:38:30] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5286,"order_number":"AZS-020326-002"} 
[2026-03-02 13:38:30] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-002","replaced_order_id":5286} 
[2026-03-02 13:38:30] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5304,"items_count":3,"items":[{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":417,"quantity":1,"price":"499.00"}]} 
[2026-03-02 13:38:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5304,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5304}} 
[2026-03-02 13:38:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5304,"item_index":0,"menu_item_id":98} 
[2026-03-02 13:38:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5304,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5304}} 
[2026-03-02 13:38:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5304,"item_index":1,"menu_item_id":396} 
[2026-03-02 13:38:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5304,"item_index":2,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5304}} 
[2026-03-02 13:38:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5304,"item_index":2,"menu_item_id":417} 
[2026-03-02 13:38:30] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5286,"new_order_id":5304,"order_number":"AZS-020326-002"} 
[2026-03-02 13:38:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5304,"item_index":0,"item_id":25698} 
[2026-03-02 13:38:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5304,"item_index":1,"item_id":25699} 
[2026-03-02 13:38:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":5304,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25698},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25699},{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-02 13:38:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5304,"items_count":3} 
[2026-03-02 13:38:41] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[25775,25776,25777],"items":[{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":417,"quantity":1}]} 
[2026-03-02 13:38:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5304,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["98|1|","396|2|","417|1|"],"new_items_map_keys":["98|1|","396|2|","417|1|"]} 
[2026-03-02 13:38:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5304,"order_number":"AZS-020326-002"} 
[2026-03-02 13:38:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5304,"order_number":"AZS-020326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 13:38:41"} 
[2026-03-02 13:39:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5301,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":25761},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25762}],"validated_items":[{"id":25761,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":25762,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-02 13:39:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5301,"items_count":2} 
[2026-03-02 13:39:01] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25761,"menu_item_id":417,"quantity":1},{"id":25762,"menu_item_id":61,"quantity":1}]} 
[2026-03-02 13:39:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5301,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["417|1|","61|1|"],"new_items_map_keys":["417|1|","61|1|"]} 
[2026-03-02 13:39:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5301,"order_number":"AZS-020326-007"} 
[2026-03-02 13:39:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5301,"order_number":"AZS-020326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 13:39:01"} 
[2026-03-02 13:39:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T01:39:16.831Z","date_to":"2026-03-02T13:39:16.831Z","per_page":"100"} 
[2026-03-02 13:39:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["pending","pending","changed","pending","changed","pending","changed","pending","changed","pending","pending","changed","pending","changed","pending","changed","pending","changed","changed","changed"],"deleted_count":10,"paid_count":0,"unpaid_count":10,"unique_order_numbers":10} 
[2026-03-02 13:39:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T01:39:16.823Z","date_to":"2026-03-02T13:39:16.823Z","per_page":"100"} 
[2026-03-02 13:39:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["pending","pending","changed","pending","changed","pending","changed","pending","changed","pending","pending","changed","pending","changed","pending","changed","pending","changed","changed","changed"],"deleted_count":10,"paid_count":0,"unpaid_count":10,"unique_order_numbers":10} 
[2026-03-02 13:39:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T01:39:16.823Z","date_to":"2026-03-02T13:39:16.823Z","per_page":"100"} 
[2026-03-02 13:39:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["pending","pending","changed","pending","changed","pending","changed","pending","changed","pending","pending","changed","pending","changed","pending","changed","pending","changed","changed","changed"],"deleted_count":10,"paid_count":0,"unpaid_count":10,"unique_order_numbers":10} 
[2026-03-02 13:40:45] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5301,"order_number":"AZS-020326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":700,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 13:40:45"} 
[2026-03-02 13:40:45] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5301,"order_number":"AZS-020326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":700,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 13:40:45"} 
[2026-03-02 13:40:45] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5301,"order_number":"AZS-020326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":700,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 13:40:45"} 
[2026-03-02 13:40:45] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5301,"order_number":"AZS-020326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":700,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 13:40:45"} 
[2026-03-02 13:40:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5301,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":25761},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25762}],"validated_items":[{"id":25761,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":25762,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-02 13:40:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5301,"items_count":2} 
[2026-03-02 13:40:45] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25761,"menu_item_id":417,"quantity":1},{"id":25762,"menu_item_id":61,"quantity":1}]} 
[2026-03-02 13:40:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5301,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["417|1|","61|1|"],"new_items_map_keys":["417|1|","61|1|"]} 
[2026-03-02 13:40:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5301,"order_number":"AZS-020326-007"} 
[2026-03-02 13:40:45] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5301,"order_number":"AZS-020326-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":700,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-02 13:40:45","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-02 13:40:45"} 
[2026-03-02 13:40:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5301,"order_number":"AZS-020326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-02 13:40:45"} 
[2026-03-02 13:40:45] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5301,"order_number":"AZS-020326-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"700.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-02 13:40:45","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":700,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"700.00","database_verification_match":true,"timestamp":"2026-03-02 13:40:45"} 
[2026-03-02 13:42:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5290,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":3,"discount_percent":0,"notes":null,"id":25712},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25712,"menu_item_id":417,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-02 13:42:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5290,"items_count":2} 
[2026-03-02 13:42:38] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25712,"menu_item_id":417,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-02 13:42:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5290,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["417|3|"],"new_items_map_keys":["417|3|","5|1|"]} 
[2026-03-02 13:42:38] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5290,"order_number":"AZS-020326-005"} 
[2026-03-02 13:42:38] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-005","replaced_order_id":5290} 
[2026-03-02 13:42:38] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5305,"items_count":2,"items":[{"menu_item_id":417,"quantity":3,"price":"499.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-02 13:42:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5305,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":3,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":1497.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5305}} 
[2026-03-02 13:42:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5305,"item_index":0,"menu_item_id":417} 
[2026-03-02 13:42:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5305,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5305}} 
[2026-03-02 13:42:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5305,"item_index":1,"menu_item_id":5} 
[2026-03-02 13:42:38] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5290,"new_order_id":5305,"order_number":"AZS-020326-005"} 
[2026-03-02 13:43:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5305,"item_index":0,"item_id":25712} 
[2026-03-02 13:43:14] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5305,"order_number":"AZS-020326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 13:43:14"} 
[2026-03-02 13:43:14] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5305,"order_number":"AZS-020326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 13:43:14"} 
[2026-03-02 13:43:14] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5305,"order_number":"AZS-020326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 13:43:14"} 
[2026-03-02 13:43:14] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5305,"order_number":"AZS-020326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 13:43:14"} 
[2026-03-02 13:43:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":5305,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null,"id":25712},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-02 13:43:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5305,"items_count":2} 
[2026-03-02 13:43:14] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[25778,25779],"items":[{"id":null,"menu_item_id":417,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-02 13:43:14] local.INFO: PosOrderController::update - Item changes check {"order_id":5305,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["417|3|","5|1|"],"new_items_map_keys":["417|3|","5|1|"]} 
[2026-03-02 13:43:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5305,"order_number":"AZS-020326-005"} 
[2026-03-02 13:43:14] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5305,"order_number":"AZS-020326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-02 13:43:14","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-02 13:43:14"} 
[2026-03-02 13:43:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5305,"order_number":"AZS-020326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-02 13:43:14"} 
[2026-03-02 13:43:14] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5305,"order_number":"AZS-020326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-02 13:43:14","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-02 13:43:14"} 
[2026-03-02 13:43:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5302,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25763},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":25764},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":25765},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25763,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":25764,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":25765,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-02 13:43:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5302,"items_count":4} 
[2026-03-02 13:43:44] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25763,"menu_item_id":396,"quantity":2},{"id":25764,"menu_item_id":61,"quantity":1},{"id":25765,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-02 13:43:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5302,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["396|2|","61|1|","96|1|"],"new_items_map_keys":["396|2|","61|1|","96|1|","5|1|"]} 
[2026-03-02 13:43:44] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5302,"order_number":"AZS-020326-010"} 
[2026-03-02 13:43:44] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-010","replaced_order_id":5302} 
[2026-03-02 13:43:44] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5306,"items_count":4,"items":[{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-02 13:43:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5306,"item_index":0,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5306}} 
[2026-03-02 13:43:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5306,"item_index":0,"menu_item_id":396} 
[2026-03-02 13:43:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5306,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5306}} 
[2026-03-02 13:43:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5306,"item_index":1,"menu_item_id":61} 
[2026-03-02 13:43:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5306,"item_index":2,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5306}} 
[2026-03-02 13:43:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5306,"item_index":2,"menu_item_id":96} 
[2026-03-02 13:43:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5306,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5306}} 
[2026-03-02 13:43:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5306,"item_index":3,"menu_item_id":5} 
[2026-03-02 13:43:44] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5302,"new_order_id":5306,"order_number":"AZS-020326-010"} 
[2026-03-02 13:45:37] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5304,"order_number":"AZS-020326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 13:45:37"} 
[2026-03-02 13:45:37] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5304,"order_number":"AZS-020326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 13:45:37"} 
[2026-03-02 13:45:37] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5304,"order_number":"AZS-020326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 13:45:37"} 
[2026-03-02 13:45:37] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5304,"order_number":"AZS-020326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 13:45:37"} 
[2026-03-02 13:45:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5304,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25775},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25776},{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":25777}],"validated_items":[{"id":25775,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25776,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25777,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-02 13:45:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5304,"items_count":3} 
[2026-03-02 13:45:37] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25775,"menu_item_id":98,"quantity":1},{"id":25776,"menu_item_id":396,"quantity":2},{"id":25777,"menu_item_id":417,"quantity":1}]} 
[2026-03-02 13:45:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5304,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["98|1|","396|2|","417|1|"],"new_items_map_keys":["98|1|","396|2|","417|1|"]} 
[2026-03-02 13:45:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5304,"order_number":"AZS-020326-002"} 
[2026-03-02 13:45:37] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5304,"order_number":"AZS-020326-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-02 13:45:37","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-02 13:45:37"} 
[2026-03-02 13:45:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5304,"order_number":"AZS-020326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-02 13:45:37"} 
[2026-03-02 13:45:37] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5304,"order_number":"AZS-020326-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-02 13:45:37","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-02 13:45:37"} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":5289,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null,"id":25702},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":25703},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":25704},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":25705},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":25706},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":25707},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null,"id":25708},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":25709},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":25710},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":25711},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":25702,"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null},{"id":25703,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":25704,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":25705,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":25706,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":25707,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":25708,"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null},{"id":25709,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":25710,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":25711,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5289,"items_count":11} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25702,"menu_item_id":417,"quantity":4},{"id":25703,"menu_item_id":99,"quantity":1},{"id":25704,"menu_item_id":96,"quantity":1},{"id":25705,"menu_item_id":62,"quantity":1},{"id":25706,"menu_item_id":65,"quantity":1},{"id":25707,"menu_item_id":396,"quantity":3},{"id":25708,"menu_item_id":50,"quantity":4},{"id":25709,"menu_item_id":5,"quantity":2},{"id":25710,"menu_item_id":61,"quantity":2},{"id":25711,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5289,"has_item_changes":true,"old_items_count":10,"new_items_count":11,"old_items_map_keys":["417|4|","99|1|","96|1|","62|1|","65|1|","396|3|","50|4|","5|2|","61|2|","56|2|"],"new_items_map_keys":["417|4|","99|1|","96|1|","62|1|","65|1|","396|3|","50|4|","5|2|","61|2|","56|2|","3|2|"]} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5289,"order_number":"AZS-020326-003"} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-003","replaced_order_id":5289} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5307,"items_count":11,"items":[{"menu_item_id":417,"quantity":4,"price":"499.00"},{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":4,"price":"129.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5307,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":4,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":1996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5307}} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5307,"item_index":0,"menu_item_id":417} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5307,"item_index":1,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5307}} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5307,"item_index":1,"menu_item_id":99} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5307,"item_index":2,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5307}} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5307,"item_index":2,"menu_item_id":96} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5307,"item_index":3,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5307}} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5307,"item_index":3,"menu_item_id":62} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5307,"item_index":4,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5307}} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5307,"item_index":4,"menu_item_id":65} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5307,"item_index":5,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5307}} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5307,"item_index":5,"menu_item_id":396} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5307,"item_index":6,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5307}} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5307,"item_index":6,"menu_item_id":50} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5307,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5307}} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5307,"item_index":7,"menu_item_id":5} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5307,"item_index":8,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5307}} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5307,"item_index":8,"menu_item_id":61} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5307,"item_index":9,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5307}} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5307,"item_index":9,"menu_item_id":56} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5307,"item_index":10,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5307}} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5307,"item_index":10,"menu_item_id":3} 
[2026-03-02 13:45:46] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5289,"new_order_id":5307,"order_number":"AZS-020326-003"} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5300,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":25753},{"menu_item_id":65,"quantity":2,"discount_percent":0,"notes":null,"id":25754},{"menu_item_id":52,"quantity":8,"discount_percent":0,"notes":null,"id":25755},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":25756},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25757},{"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null,"id":25758},{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":25759},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25760},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":25753,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":25754,"menu_item_id":65,"quantity":2,"discount_percent":0,"notes":null},{"id":25755,"menu_item_id":52,"quantity":8,"discount_percent":0,"notes":null},{"id":25756,"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"id":25757,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":25758,"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null},{"id":25759,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":25760,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5300,"items_count":9} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25753,"menu_item_id":99,"quantity":1},{"id":25754,"menu_item_id":65,"quantity":2},{"id":25755,"menu_item_id":52,"quantity":8},{"id":25756,"menu_item_id":61,"quantity":4},{"id":25757,"menu_item_id":5,"quantity":1},{"id":25758,"menu_item_id":417,"quantity":2},{"id":25759,"menu_item_id":102,"quantity":1},{"id":25760,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Item changes check {"order_id":5300,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["99|1|","65|2|","52|8|","61|4|","5|1|","417|2|","102|1|","396|2|"],"new_items_map_keys":["99|1|","65|2|","52|8|","61|4|","5|1|","417|2|","102|1|","396|2|","2|2|"]} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5300,"order_number":"AZS-020326-001"} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-001","replaced_order_id":5300} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5308,"items_count":9,"items":[{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":65,"quantity":2,"price":"1299.00"},{"menu_item_id":52,"quantity":8,"price":"70.00"},{"menu_item_id":61,"quantity":4,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":417,"quantity":2,"price":"499.00"},{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5308,"item_index":0,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5308}} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5308,"item_index":0,"menu_item_id":99} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5308,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":2,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":2598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5308}} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5308,"item_index":1,"menu_item_id":65} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5308,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":8,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":560.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5308}} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5308,"item_index":2,"menu_item_id":52} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5308,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5308}} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5308,"item_index":3,"menu_item_id":61} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5308,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5308}} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5308,"item_index":4,"menu_item_id":5} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5308,"item_index":5,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":2,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5308}} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5308,"item_index":5,"menu_item_id":417} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5308,"item_index":6,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5308}} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5308,"item_index":6,"menu_item_id":102} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5308,"item_index":7,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5308}} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5308,"item_index":7,"menu_item_id":396} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5308,"item_index":8,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5308}} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5308,"item_index":8,"menu_item_id":2} 
[2026-03-02 13:46:02] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5300,"new_order_id":5308,"order_number":"AZS-020326-001"} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":5307,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null,"id":25784},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":25785},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":25786},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":25787},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":25788},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":25789},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null,"id":25790},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":25791},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":25792},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":25793},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":25794}],"validated_items":[{"id":25784,"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null},{"id":25785,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":25786,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":25787,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":25788,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":25789,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":25790,"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null},{"id":25791,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":25792,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":25793,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":25794,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5307,"items_count":11} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25784,"menu_item_id":417,"quantity":4},{"id":25785,"menu_item_id":99,"quantity":1},{"id":25786,"menu_item_id":96,"quantity":1},{"id":25787,"menu_item_id":62,"quantity":1},{"id":25788,"menu_item_id":65,"quantity":1},{"id":25789,"menu_item_id":396,"quantity":3},{"id":25790,"menu_item_id":50,"quantity":4},{"id":25791,"menu_item_id":5,"quantity":2},{"id":25792,"menu_item_id":61,"quantity":2},{"id":25793,"menu_item_id":56,"quantity":2},{"id":25794,"menu_item_id":3,"quantity":1}]} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5307,"has_item_changes":true,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["417|4|","99|1|","96|1|","62|1|","65|1|","396|3|","50|4|","5|2|","61|2|","56|2|","3|2|"],"new_items_map_keys":["417|4|","99|1|","96|1|","62|1|","65|1|","396|3|","50|4|","5|2|","61|2|","56|2|","3|1|"]} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5307,"order_number":"AZS-020326-003"} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-003","replaced_order_id":5307} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5309,"items_count":11,"items":[{"menu_item_id":417,"quantity":4,"price":"499.00"},{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":4,"price":"129.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5309,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":4,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":1996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5309}} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5309,"item_index":0,"menu_item_id":417} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5309,"item_index":1,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5309}} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5309,"item_index":1,"menu_item_id":99} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5309,"item_index":2,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5309}} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5309,"item_index":2,"menu_item_id":96} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5309,"item_index":3,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5309}} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5309,"item_index":3,"menu_item_id":62} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5309,"item_index":4,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5309}} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5309,"item_index":4,"menu_item_id":65} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5309,"item_index":5,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5309}} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5309,"item_index":5,"menu_item_id":396} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5309,"item_index":6,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5309}} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5309,"item_index":6,"menu_item_id":50} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5309,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5309}} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5309,"item_index":7,"menu_item_id":5} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5309,"item_index":8,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5309}} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5309,"item_index":8,"menu_item_id":61} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5309,"item_index":9,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5309}} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5309,"item_index":9,"menu_item_id":56} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5309,"item_index":10,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5309}} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5309,"item_index":10,"menu_item_id":3} 
[2026-03-02 13:48:12] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5307,"new_order_id":5309,"order_number":"AZS-020326-003"} 
[2026-03-02 13:48:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5297,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null,"id":25736},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":25737},{"menu_item_id":49,"quantity":4,"discount_percent":0,"notes":null,"id":25738},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25736,"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null},{"id":25737,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":25738,"menu_item_id":49,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-02 13:48:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5297,"items_count":5} 
[2026-03-02 13:48:43] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25736,"menu_item_id":417,"quantity":2},{"id":25737,"menu_item_id":105,"quantity":1},{"id":25738,"menu_item_id":49,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-03-02 13:48:43] local.INFO: PosOrderController::update - Item changes check {"order_id":5297,"has_item_changes":true,"old_items_count":3,"new_items_count":5,"old_items_map_keys":["417|2|","105|1|","49|4|"],"new_items_map_keys":["417|2|","105|1|","49|4|","61|1|","56|1|"]} 
[2026-03-02 13:48:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5297,"order_number":"AZS-020326-004"} 
[2026-03-02 13:48:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-004","replaced_order_id":5297} 
[2026-03-02 13:48:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5310,"items_count":5,"items":[{"menu_item_id":417,"quantity":2,"price":"499.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":49,"quantity":4,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"}]} 
[2026-03-02 13:48:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5310,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":2,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5310}} 
[2026-03-02 13:48:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5310,"item_index":0,"menu_item_id":417} 
[2026-03-02 13:48:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5310,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5310}} 
[2026-03-02 13:48:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5310,"item_index":1,"menu_item_id":105} 
[2026-03-02 13:48:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5310,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5310}} 
[2026-03-02 13:48:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5310,"item_index":2,"menu_item_id":49} 
[2026-03-02 13:48:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5310,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5310}} 
[2026-03-02 13:48:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5310,"item_index":3,"menu_item_id":61} 
[2026-03-02 13:48:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5310,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5310}} 
[2026-03-02 13:48:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5310,"item_index":4,"menu_item_id":56} 
[2026-03-02 13:48:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5297,"new_order_id":5310,"order_number":"AZS-020326-004"} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5303,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":25766},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":25767},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":25768},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":25769},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":25770},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":25771},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":25772},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null,"id":25773},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25774}],"validated_items":[{"id":25766,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":25767,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":25768,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":25769,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":25770,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":25771,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":25772,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":25773,"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"id":25774,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5303,"items_count":9} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25766,"menu_item_id":417,"quantity":1},{"id":25767,"menu_item_id":113,"quantity":1},{"id":25768,"menu_item_id":65,"quantity":1},{"id":25769,"menu_item_id":62,"quantity":1},{"id":25770,"menu_item_id":61,"quantity":1},{"id":25771,"menu_item_id":56,"quantity":1},{"id":25772,"menu_item_id":50,"quantity":2},{"id":25773,"menu_item_id":55,"quantity":2},{"id":25774,"menu_item_id":5,"quantity":1}]} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5303,"has_item_changes":true,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["417|1|","113|1|","65|1|","62|1|","61|2|","56|1|","50|2|","55|2|","5|1|"],"new_items_map_keys":["417|1|","113|1|","65|1|","62|1|","61|1|","56|1|","50|2|","55|2|","5|1|"]} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5303,"order_number":"AZS-020326-009"} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-009","replaced_order_id":5303} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5311,"items_count":9,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5311,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5311}} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5311,"item_index":0,"menu_item_id":417} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5311,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5311}} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5311,"item_index":1,"menu_item_id":113} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5311,"item_index":2,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5311}} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5311,"item_index":2,"menu_item_id":65} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5311,"item_index":3,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5311}} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5311,"item_index":3,"menu_item_id":62} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5311,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5311}} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5311,"item_index":4,"menu_item_id":61} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5311,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5311}} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5311,"item_index":5,"menu_item_id":56} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5311,"item_index":6,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5311}} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5311,"item_index":6,"menu_item_id":50} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5311,"item_index":7,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5311}} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5311,"item_index":7,"menu_item_id":55} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5311,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5311}} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5311,"item_index":8,"menu_item_id":5} 
[2026-03-02 13:50:06] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5303,"new_order_id":5311,"order_number":"AZS-020326-009"} 
[2026-03-02 13:50:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5308,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25795},{"menu_item_id":65,"quantity":2,"price":1299,"discount_percent":0,"notes":null,"id":25796},{"menu_item_id":52,"quantity":8,"price":70,"discount_percent":0,"notes":null,"id":25797},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":25798},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25799},{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":25800},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":25801},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25802},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":25803}],"validated_items":[{"id":25795,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25796,"menu_item_id":65,"quantity":2,"price":1299,"discount_percent":0,"notes":null},{"id":25797,"menu_item_id":52,"quantity":8,"price":70,"discount_percent":0,"notes":null},{"id":25798,"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":25799,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25800,"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null},{"id":25801,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":25802,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25803,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-02 13:50:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5308,"items_count":9} 
[2026-03-02 13:50:20] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25795,"menu_item_id":99,"quantity":1},{"id":25796,"menu_item_id":65,"quantity":2},{"id":25797,"menu_item_id":52,"quantity":8},{"id":25798,"menu_item_id":61,"quantity":4},{"id":25799,"menu_item_id":5,"quantity":1},{"id":25800,"menu_item_id":417,"quantity":2},{"id":25801,"menu_item_id":102,"quantity":1},{"id":25802,"menu_item_id":396,"quantity":2},{"id":25803,"menu_item_id":2,"quantity":2}]} 
[2026-03-02 13:50:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5308,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["99|1|","65|2|","52|8|","61|4|","5|1|","417|2|","102|1|","396|2|","2|2|"],"new_items_map_keys":["99|1|","65|2|","52|8|","61|4|","5|1|","417|2|","102|1|","396|2|","2|2|"]} 
[2026-03-02 13:50:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5308,"order_number":"AZS-020326-001"} 
[2026-03-02 13:50:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5308,"order_number":"AZS-020326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 13:50:20"} 
[2026-03-02 13:54:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5310,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null,"id":25815},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":25816},{"menu_item_id":49,"quantity":4,"discount_percent":0,"notes":null,"id":25817},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":25818},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":25819},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25815,"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null},{"id":25816,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":25817,"menu_item_id":49,"quantity":4,"discount_percent":0,"notes":null},{"id":25818,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":25819,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-02 13:54:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5310,"items_count":6} 
[2026-03-02 13:54:05] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25815,"menu_item_id":417,"quantity":2},{"id":25816,"menu_item_id":105,"quantity":1},{"id":25817,"menu_item_id":49,"quantity":4},{"id":25818,"menu_item_id":61,"quantity":1},{"id":25819,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-02 13:54:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5310,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["417|2|","105|1|","49|4|","61|1|","56|1|"],"new_items_map_keys":["417|2|","105|1|","49|4|","61|1|","56|1|","3|1|"]} 
[2026-03-02 13:54:05] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5310,"order_number":"AZS-020326-004"} 
[2026-03-02 13:54:05] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-004","replaced_order_id":5310} 
[2026-03-02 13:54:05] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5312,"items_count":6,"items":[{"menu_item_id":417,"quantity":2,"price":"499.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":49,"quantity":4,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-02 13:54:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5312,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":2,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5312}} 
[2026-03-02 13:54:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5312,"item_index":0,"menu_item_id":417} 
[2026-03-02 13:54:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5312,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5312}} 
[2026-03-02 13:54:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5312,"item_index":1,"menu_item_id":105} 
[2026-03-02 13:54:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5312,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5312}} 
[2026-03-02 13:54:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5312,"item_index":2,"menu_item_id":49} 
[2026-03-02 13:54:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5312,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5312}} 
[2026-03-02 13:54:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5312,"item_index":3,"menu_item_id":61} 
[2026-03-02 13:54:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5312,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5312}} 
[2026-03-02 13:54:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5312,"item_index":4,"menu_item_id":56} 
[2026-03-02 13:54:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5312,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5312}} 
[2026-03-02 13:54:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5312,"item_index":5,"menu_item_id":3} 
[2026-03-02 13:54:05] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5310,"new_order_id":5312,"order_number":"AZS-020326-004"} 
[2026-03-02 13:59:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":5309,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":4,"price":499,"discount_percent":0,"notes":null,"id":25804},{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25805},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25806},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":25807},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":25808},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":25809},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":25810},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":25811},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25812},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25813},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25814}],"validated_items":[{"id":25804,"menu_item_id":417,"quantity":4,"price":499,"discount_percent":0,"notes":null},{"id":25805,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25806,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25807,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":25808,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":25809,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":25810,"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"id":25811,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":25812,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25813,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25814,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-02 13:59:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5309,"items_count":11} 
[2026-03-02 13:59:09] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25804,"menu_item_id":417,"quantity":4},{"id":25805,"menu_item_id":99,"quantity":1},{"id":25806,"menu_item_id":96,"quantity":1},{"id":25807,"menu_item_id":62,"quantity":1},{"id":25808,"menu_item_id":65,"quantity":1},{"id":25809,"menu_item_id":396,"quantity":3},{"id":25810,"menu_item_id":50,"quantity":4},{"id":25811,"menu_item_id":5,"quantity":2},{"id":25812,"menu_item_id":61,"quantity":2},{"id":25813,"menu_item_id":56,"quantity":2},{"id":25814,"menu_item_id":3,"quantity":1}]} 
[2026-03-02 13:59:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5309,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["417|4|","99|1|","96|1|","62|1|","65|1|","396|3|","50|4|","5|2|","61|2|","56|2|","3|1|"],"new_items_map_keys":["417|4|","99|1|","96|1|","62|1|","65|1|","396|3|","50|4|","5|2|","61|2|","56|2|","3|1|"]} 
[2026-03-02 13:59:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5309,"order_number":"AZS-020326-003"} 
[2026-03-02 13:59:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5309,"order_number":"AZS-020326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 13:59:09"} 
[2026-03-02 14:00:16] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5308,"order_number":"AZS-020326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 14:00:16"} 
[2026-03-02 14:00:16] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5308,"order_number":"AZS-020326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 14:00:16"} 
[2026-03-02 14:00:16] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5308,"order_number":"AZS-020326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 14:00:16"} 
[2026-03-02 14:00:16] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5308,"order_number":"AZS-020326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 14:00:16"} 
[2026-03-02 14:00:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5308,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25795},{"menu_item_id":65,"quantity":2,"price":1299,"discount_percent":0,"notes":null,"id":25796},{"menu_item_id":52,"quantity":8,"price":70,"discount_percent":0,"notes":null,"id":25797},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":25798},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25799},{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":25800},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":25801},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25802},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":25803}],"validated_items":[{"id":25795,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25796,"menu_item_id":65,"quantity":2,"price":1299,"discount_percent":0,"notes":null},{"id":25797,"menu_item_id":52,"quantity":8,"price":70,"discount_percent":0,"notes":null},{"id":25798,"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":25799,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25800,"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null},{"id":25801,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":25802,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25803,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-02 14:00:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5308,"items_count":9} 
[2026-03-02 14:00:16] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25795,"menu_item_id":99,"quantity":1},{"id":25796,"menu_item_id":65,"quantity":2},{"id":25797,"menu_item_id":52,"quantity":8},{"id":25798,"menu_item_id":61,"quantity":4},{"id":25799,"menu_item_id":5,"quantity":1},{"id":25800,"menu_item_id":417,"quantity":2},{"id":25801,"menu_item_id":102,"quantity":1},{"id":25802,"menu_item_id":396,"quantity":2},{"id":25803,"menu_item_id":2,"quantity":2}]} 
[2026-03-02 14:00:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5308,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["99|1|","65|2|","52|8|","61|4|","5|1|","417|2|","102|1|","396|2|","2|2|"],"new_items_map_keys":["99|1|","65|2|","52|8|","61|4|","5|1|","417|2|","102|1|","396|2|","2|2|"]} 
[2026-03-02 14:00:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5308,"order_number":"AZS-020326-001"} 
[2026-03-02 14:00:16] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5308,"order_number":"AZS-020326-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":10000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-02 14:00:16","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-02 14:00:16"} 
[2026-03-02 14:00:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5308,"order_number":"AZS-020326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-02 14:00:16"} 
[2026-03-02 14:00:16] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5308,"order_number":"AZS-020326-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"10000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-02 14:00:16","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"10000.00","database_verification_match":true,"timestamp":"2026-03-02 14:00:16"} 
[2026-03-02 14:01:38] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5309,"order_number":"AZS-020326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":11037,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 14:01:38"} 
[2026-03-02 14:01:38] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5309,"order_number":"AZS-020326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":11037,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 14:01:38"} 
[2026-03-02 14:01:38] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5309,"order_number":"AZS-020326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":11037,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 14:01:38"} 
[2026-03-02 14:01:38] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5309,"order_number":"AZS-020326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":11037,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 14:01:38"} 
[2026-03-02 14:01:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":5309,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":4,"price":499,"discount_percent":0,"notes":null,"id":25804},{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25805},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25806},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":25807},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":25808},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":25809},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":25810},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":25811},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25812},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25813},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25814}],"validated_items":[{"id":25804,"menu_item_id":417,"quantity":4,"price":499,"discount_percent":0,"notes":null},{"id":25805,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":25806,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25807,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":25808,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":25809,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":25810,"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"id":25811,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":25812,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25813,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25814,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-02 14:01:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5309,"items_count":11} 
[2026-03-02 14:01:38] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25804,"menu_item_id":417,"quantity":4},{"id":25805,"menu_item_id":99,"quantity":1},{"id":25806,"menu_item_id":96,"quantity":1},{"id":25807,"menu_item_id":62,"quantity":1},{"id":25808,"menu_item_id":65,"quantity":1},{"id":25809,"menu_item_id":396,"quantity":3},{"id":25810,"menu_item_id":50,"quantity":4},{"id":25811,"menu_item_id":5,"quantity":2},{"id":25812,"menu_item_id":61,"quantity":2},{"id":25813,"menu_item_id":56,"quantity":2},{"id":25814,"menu_item_id":3,"quantity":1}]} 
[2026-03-02 14:01:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5309,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["417|4|","99|1|","96|1|","62|1|","65|1|","396|3|","50|4|","5|2|","61|2|","56|2|","3|1|"],"new_items_map_keys":["417|4|","99|1|","96|1|","62|1|","65|1|","396|3|","50|4|","5|2|","61|2|","56|2|","3|1|"]} 
[2026-03-02 14:01:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5309,"order_number":"AZS-020326-003"} 
[2026-03-02 14:01:38] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5309,"order_number":"AZS-020326-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":11037,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-02 14:01:38","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-02 14:01:38"} 
[2026-03-02 14:01:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5309,"order_number":"AZS-020326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-02 14:01:38"} 
[2026-03-02 14:01:38] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5309,"order_number":"AZS-020326-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"11037.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-02 14:01:38","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":11037,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"11037.00","database_verification_match":true,"timestamp":"2026-03-02 14:01:38"} 
[2026-03-02 14:01:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T02:01:43.725Z","date_to":"2026-03-02T14:01:43.725Z","per_page":"100"} 
[2026-03-02 14:01:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T02:01:43.745Z","date_to":"2026-03-02T14:01:43.745Z","per_page":"100"} 
[2026-03-02 14:01:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["pending","changed","pending","changed","changed","pending","changed","paid","changed","pending","changed","paid","changed","pending","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":18,"paid_count":5,"unpaid_count":5,"unique_order_numbers":10} 
[2026-03-02 14:01:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["pending","changed","pending","changed","changed","pending","changed","paid","changed","pending","changed","paid","changed","pending","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":18,"paid_count":5,"unpaid_count":5,"unique_order_numbers":10} 
[2026-03-02 14:01:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T02:01:43.725Z","date_to":"2026-03-02T14:01:43.725Z","per_page":"100"} 
[2026-03-02 14:01:45] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["pending","changed","pending","changed","changed","pending","changed","paid","changed","pending","changed","paid","changed","pending","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":18,"paid_count":5,"unpaid_count":5,"unique_order_numbers":10} 
[2026-03-02 14:02:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T02:02:19.217Z","date_to":"2026-03-02T14:02:19.217Z","per_page":"100"} 
[2026-03-02 14:02:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T02:02:19.204Z","date_to":"2026-03-02T14:02:19.204Z","per_page":"100"} 
[2026-03-02 14:02:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["pending","changed","pending","changed","changed","pending","changed","paid","changed","pending","changed","paid","changed","pending","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":18,"paid_count":5,"unpaid_count":5,"unique_order_numbers":10} 
[2026-03-02 14:02:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["pending","changed","pending","changed","changed","pending","changed","paid","changed","pending","changed","paid","changed","pending","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":18,"paid_count":5,"unpaid_count":5,"unique_order_numbers":10} 
[2026-03-02 14:02:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T02:02:19.204Z","date_to":"2026-03-02T14:02:19.204Z","per_page":"100"} 
[2026-03-02 14:02:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["pending","changed","pending","changed","changed","pending","changed","paid","changed","pending","changed","paid","changed","pending","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":18,"paid_count":5,"unpaid_count":5,"unique_order_numbers":10} 
[2026-03-02 14:19:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5306,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25780},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":25781},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":25782},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25783},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":25780,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":25781,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":25782,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":25783,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-02 14:19:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5306,"items_count":5} 
[2026-03-02 14:19:06] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25780,"menu_item_id":396,"quantity":2},{"id":25781,"menu_item_id":61,"quantity":1},{"id":25782,"menu_item_id":96,"quantity":1},{"id":25783,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-03-02 14:19:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5306,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["396|2|","61|1|","96|1|","5|1|"],"new_items_map_keys":["396|2|","61|1|","96|1|","5|1|","6|2|"]} 
[2026-03-02 14:19:06] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5306,"order_number":"AZS-020326-010"} 
[2026-03-02 14:19:06] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-010","replaced_order_id":5306} 
[2026-03-02 14:19:06] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5314,"items_count":5,"items":[{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-03-02 14:19:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5314,"item_index":0,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5314}} 
[2026-03-02 14:19:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5314,"item_index":0,"menu_item_id":396} 
[2026-03-02 14:19:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5314,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5314}} 
[2026-03-02 14:19:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5314,"item_index":1,"menu_item_id":61} 
[2026-03-02 14:19:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5314,"item_index":2,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5314}} 
[2026-03-02 14:19:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5314,"item_index":2,"menu_item_id":96} 
[2026-03-02 14:19:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5314,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5314}} 
[2026-03-02 14:19:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5314,"item_index":3,"menu_item_id":5} 
[2026-03-02 14:19:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5314,"item_index":4,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5314}} 
[2026-03-02 14:19:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5314,"item_index":4,"menu_item_id":6} 
[2026-03-02 14:19:06] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5306,"new_order_id":5314,"order_number":"AZS-020326-010"} 
[2026-03-02 14:21:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5292,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":25720},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":25721},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25722},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":25723},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":25724},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25725},{"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null,"id":25726},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25720,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":25721,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":25722,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":25723,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":25724,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":25725,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":25726,"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-02 14:21:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5292,"items_count":8} 
[2026-03-02 14:21:01] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25720,"menu_item_id":78,"quantity":1},{"id":25721,"menu_item_id":106,"quantity":1},{"id":25722,"menu_item_id":396,"quantity":2},{"id":25723,"menu_item_id":61,"quantity":2},{"id":25724,"menu_item_id":56,"quantity":2},{"id":25725,"menu_item_id":5,"quantity":1},{"id":25726,"menu_item_id":417,"quantity":4},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-02 14:21:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5292,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["78|1|","106|1|","396|2|","61|2|","56|2|","5|1|","417|4|"],"new_items_map_keys":["78|1|","106|1|","396|2|","61|2|","56|2|","5|1|","417|4|","3|1|"]} 
[2026-03-02 14:21:01] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5292,"order_number":"AZS-020326-006"} 
[2026-03-02 14:21:01] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-006","replaced_order_id":5292} 
[2026-03-02 14:21:01] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5315,"items_count":8,"items":[{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":417,"quantity":4,"price":"499.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-02 14:21:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5315,"item_index":0,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5315}} 
[2026-03-02 14:21:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5315,"item_index":0,"menu_item_id":78} 
[2026-03-02 14:21:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5315,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5315}} 
[2026-03-02 14:21:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5315,"item_index":1,"menu_item_id":106} 
[2026-03-02 14:21:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5315,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5315}} 
[2026-03-02 14:21:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5315,"item_index":2,"menu_item_id":396} 
[2026-03-02 14:21:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5315,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5315}} 
[2026-03-02 14:21:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5315,"item_index":3,"menu_item_id":61} 
[2026-03-02 14:21:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5315,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5315}} 
[2026-03-02 14:21:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5315,"item_index":4,"menu_item_id":56} 
[2026-03-02 14:21:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5315,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5315}} 
[2026-03-02 14:21:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5315,"item_index":5,"menu_item_id":5} 
[2026-03-02 14:21:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5315,"item_index":6,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":4,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":1996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5315}} 
[2026-03-02 14:21:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5315,"item_index":6,"menu_item_id":417} 
[2026-03-02 14:21:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5315,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5315}} 
[2026-03-02 14:21:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5315,"item_index":7,"menu_item_id":3} 
[2026-03-02 14:21:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5292,"new_order_id":5315,"order_number":"AZS-020326-006"} 
[2026-03-02 14:24:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5299,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null,"id":25747},{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":25748},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":25749},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null,"id":25750},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":25751},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":25752},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25747,"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null},{"id":25748,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":25749,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":25750,"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null},{"id":25751,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":25752,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-02 14:24:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5299,"items_count":7} 
[2026-03-02 14:24:57] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25747,"menu_item_id":417,"quantity":2},{"id":25748,"menu_item_id":78,"quantity":1},{"id":25749,"menu_item_id":96,"quantity":1},{"id":25750,"menu_item_id":52,"quantity":2},{"id":25751,"menu_item_id":61,"quantity":2},{"id":25752,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-02 14:24:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5299,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["417|2|","78|1|","96|1|","52|2|","61|2|","56|1|"],"new_items_map_keys":["417|2|","78|1|","96|1|","52|2|","61|2|","56|1|","3|1|"]} 
[2026-03-02 14:24:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5299,"order_number":"AZS-020326-008"} 
[2026-03-02 14:24:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-008","replaced_order_id":5299} 
[2026-03-02 14:24:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5317,"items_count":7,"items":[{"menu_item_id":417,"quantity":2,"price":"499.00"},{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":52,"quantity":2,"price":"70.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-02 14:24:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5317,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":2,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5317}} 
[2026-03-02 14:24:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5317,"item_index":0,"menu_item_id":417} 
[2026-03-02 14:24:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5317,"item_index":1,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5317}} 
[2026-03-02 14:24:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5317,"item_index":1,"menu_item_id":78} 
[2026-03-02 14:24:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5317,"item_index":2,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5317}} 
[2026-03-02 14:24:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5317,"item_index":2,"menu_item_id":96} 
[2026-03-02 14:24:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5317,"item_index":3,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5317}} 
[2026-03-02 14:24:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5317,"item_index":3,"menu_item_id":52} 
[2026-03-02 14:24:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5317,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5317}} 
[2026-03-02 14:24:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5317,"item_index":4,"menu_item_id":61} 
[2026-03-02 14:24:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5317,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5317}} 
[2026-03-02 14:24:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5317,"item_index":5,"menu_item_id":56} 
[2026-03-02 14:24:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5317,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5317}} 
[2026-03-02 14:24:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5317,"item_index":6,"menu_item_id":3} 
[2026-03-02 14:24:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5299,"new_order_id":5317,"order_number":"AZS-020326-008"} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5311,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":25820},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":25821},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":25822},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":25823},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":25824},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":25825},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":25826},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null,"id":25827},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25828},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":25820,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":25821,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":25822,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":25823,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":25824,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":25825,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":25826,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":25827,"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"id":25828,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5311,"items_count":10} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25820,"menu_item_id":417,"quantity":1},{"id":25821,"menu_item_id":113,"quantity":1},{"id":25822,"menu_item_id":65,"quantity":1},{"id":25823,"menu_item_id":62,"quantity":1},{"id":25824,"menu_item_id":61,"quantity":1},{"id":25825,"menu_item_id":56,"quantity":1},{"id":25826,"menu_item_id":50,"quantity":2},{"id":25827,"menu_item_id":55,"quantity":2},{"id":25828,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5311,"has_item_changes":true,"old_items_count":9,"new_items_count":10,"old_items_map_keys":["417|1|","113|1|","65|1|","62|1|","61|1|","56|1|","50|2|","55|2|","5|1|"],"new_items_map_keys":["417|1|","113|1|","65|1|","62|1|","61|1|","56|1|","50|2|","55|2|","5|1|","2|2|"]} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5311,"order_number":"AZS-020326-009"} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-009","replaced_order_id":5311} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5319,"items_count":10,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5319,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5319}} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5319,"item_index":0,"menu_item_id":417} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5319,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5319}} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5319,"item_index":1,"menu_item_id":113} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5319,"item_index":2,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5319}} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5319,"item_index":2,"menu_item_id":65} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5319,"item_index":3,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5319}} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5319,"item_index":3,"menu_item_id":62} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5319,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5319}} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5319,"item_index":4,"menu_item_id":61} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5319,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5319}} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5319,"item_index":5,"menu_item_id":56} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5319,"item_index":6,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5319}} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5319,"item_index":6,"menu_item_id":50} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5319,"item_index":7,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5319}} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5319,"item_index":7,"menu_item_id":55} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5319,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5319}} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5319,"item_index":8,"menu_item_id":5} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5319,"item_index":9,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5319}} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5319,"item_index":9,"menu_item_id":2} 
[2026-03-02 14:26:20] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5311,"new_order_id":5319,"order_number":"AZS-020326-009"} 
[2026-03-02 14:29:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5313,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":25835},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25835,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-02 14:29:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5313,"items_count":2} 
[2026-03-02 14:29:54] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25835,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-02 14:29:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5313,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|","4|1|"]} 
[2026-03-02 14:29:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5313,"order_number":"AZS-020326-011"} 
[2026-03-02 14:29:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-011","replaced_order_id":5313} 
[2026-03-02 14:29:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5320,"items_count":2,"items":[{"menu_item_id":6,"quantity":2,"price":"199.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-03-02 14:29:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5320,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5320}} 
[2026-03-02 14:29:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5320,"item_index":0,"menu_item_id":6} 
[2026-03-02 14:29:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5320,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5320}} 
[2026-03-02 14:29:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5320,"item_index":1,"menu_item_id":4} 
[2026-03-02 14:29:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5313,"new_order_id":5320,"order_number":"AZS-020326-011"} 
[2026-03-02 14:30:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5315,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":25841},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":25842},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25843},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":25844},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":25845},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":25846},{"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null,"id":25847},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":25848}],"validated_items":[{"id":25841,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":25842,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":25843,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":25844,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":25845,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":25846,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":25847,"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null},{"id":25848,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-02 14:30:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5315,"items_count":8} 
[2026-03-02 14:30:24] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25841,"menu_item_id":78,"quantity":1},{"id":25842,"menu_item_id":106,"quantity":1},{"id":25843,"menu_item_id":396,"quantity":2},{"id":25844,"menu_item_id":61,"quantity":2},{"id":25845,"menu_item_id":56,"quantity":2},{"id":25846,"menu_item_id":5,"quantity":2},{"id":25847,"menu_item_id":417,"quantity":4},{"id":25848,"menu_item_id":3,"quantity":1}]} 
[2026-03-02 14:30:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5315,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["78|1|","106|1|","396|2|","61|2|","56|2|","5|1|","417|4|","3|1|"],"new_items_map_keys":["78|1|","106|1|","396|2|","61|2|","56|2|","5|2|","417|4|","3|1|"]} 
[2026-03-02 14:30:24] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5315,"order_number":"AZS-020326-006"} 
[2026-03-02 14:30:24] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-006","replaced_order_id":5315} 
[2026-03-02 14:30:24] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5321,"items_count":8,"items":[{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":417,"quantity":4,"price":"499.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-02 14:30:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5321,"item_index":0,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5321}} 
[2026-03-02 14:30:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5321,"item_index":0,"menu_item_id":78} 
[2026-03-02 14:30:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5321,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5321}} 
[2026-03-02 14:30:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5321,"item_index":1,"menu_item_id":106} 
[2026-03-02 14:30:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5321,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5321}} 
[2026-03-02 14:30:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5321,"item_index":2,"menu_item_id":396} 
[2026-03-02 14:30:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5321,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5321}} 
[2026-03-02 14:30:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5321,"item_index":3,"menu_item_id":61} 
[2026-03-02 14:30:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5321,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5321}} 
[2026-03-02 14:30:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5321,"item_index":4,"menu_item_id":56} 
[2026-03-02 14:30:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5321,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5321}} 
[2026-03-02 14:30:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5321,"item_index":5,"menu_item_id":5} 
[2026-03-02 14:30:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5321,"item_index":6,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":4,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":1996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5321}} 
[2026-03-02 14:30:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5321,"item_index":6,"menu_item_id":417} 
[2026-03-02 14:30:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5321,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5321}} 
[2026-03-02 14:30:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5321,"item_index":7,"menu_item_id":3} 
[2026-03-02 14:30:24] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5315,"new_order_id":5321,"order_number":"AZS-020326-006"} 
[2026-03-02 14:33:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5319,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":25862},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25863},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":25864},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":25865},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25866},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25867},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":25868},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":25869},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25870},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":25871}],"validated_items":[{"id":25862,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":25863,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25864,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":25865,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":25866,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25867,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25868,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":25869,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":25870,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25871,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-02 14:33:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5319,"items_count":10} 
[2026-03-02 14:33:24] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25862,"menu_item_id":417,"quantity":1},{"id":25863,"menu_item_id":113,"quantity":1},{"id":25864,"menu_item_id":65,"quantity":1},{"id":25865,"menu_item_id":62,"quantity":1},{"id":25866,"menu_item_id":61,"quantity":1},{"id":25867,"menu_item_id":56,"quantity":1},{"id":25868,"menu_item_id":50,"quantity":2},{"id":25869,"menu_item_id":55,"quantity":2},{"id":25870,"menu_item_id":5,"quantity":1},{"id":25871,"menu_item_id":2,"quantity":2}]} 
[2026-03-02 14:33:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5319,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["417|1|","113|1|","65|1|","62|1|","61|1|","56|1|","50|2|","55|2|","5|1|","2|2|"],"new_items_map_keys":["417|1|","113|1|","65|1|","62|1|","61|1|","56|1|","50|2|","55|2|","5|1|","2|2|"]} 
[2026-03-02 14:33:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5319,"order_number":"AZS-020326-009"} 
[2026-03-02 14:33:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5319,"order_number":"AZS-020326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 14:33:24"} 
[2026-03-02 14:35:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5317,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":25850},{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":25851},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25852},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25853},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25854},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25855},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25856}],"validated_items":[{"id":25850,"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null},{"id":25851,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":25852,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25853,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":25854,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25855,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25856,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-02 14:35:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5317,"items_count":7} 
[2026-03-02 14:35:13] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25850,"menu_item_id":417,"quantity":2},{"id":25851,"menu_item_id":78,"quantity":1},{"id":25852,"menu_item_id":96,"quantity":1},{"id":25853,"menu_item_id":52,"quantity":2},{"id":25854,"menu_item_id":61,"quantity":2},{"id":25855,"menu_item_id":56,"quantity":1},{"id":25856,"menu_item_id":3,"quantity":1}]} 
[2026-03-02 14:35:13] local.INFO: PosOrderController::update - Item changes check {"order_id":5317,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["417|2|","78|1|","96|1|","52|2|","61|2|","56|1|","3|1|"],"new_items_map_keys":["417|2|","78|1|","96|1|","52|2|","61|2|","56|1|","3|1|"]} 
[2026-03-02 14:35:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5317,"order_number":"AZS-020326-008"} 
[2026-03-02 14:35:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5317,"order_number":"AZS-020326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 14:35:13"} 
[2026-03-02 14:38:00] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5319,"order_number":"AZS-020326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6195,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 14:38:00"} 
[2026-03-02 14:38:00] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5319,"order_number":"AZS-020326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6195,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 14:38:00"} 
[2026-03-02 14:38:00] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5319,"order_number":"AZS-020326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6195,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 14:38:00"} 
[2026-03-02 14:38:00] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5319,"order_number":"AZS-020326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6195,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 14:38:00"} 
[2026-03-02 14:38:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5319,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":25862},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25863},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":25864},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":25865},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25866},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25867},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":25868},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":25869},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25870},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":25871}],"validated_items":[{"id":25862,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":25863,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25864,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":25865,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":25866,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25867,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25868,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":25869,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":25870,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25871,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-02 14:38:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5319,"items_count":10} 
[2026-03-02 14:38:00] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25862,"menu_item_id":417,"quantity":1},{"id":25863,"menu_item_id":113,"quantity":1},{"id":25864,"menu_item_id":65,"quantity":1},{"id":25865,"menu_item_id":62,"quantity":1},{"id":25866,"menu_item_id":61,"quantity":1},{"id":25867,"menu_item_id":56,"quantity":1},{"id":25868,"menu_item_id":50,"quantity":2},{"id":25869,"menu_item_id":55,"quantity":2},{"id":25870,"menu_item_id":5,"quantity":1},{"id":25871,"menu_item_id":2,"quantity":2}]} 
[2026-03-02 14:38:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5319,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["417|1|","113|1|","65|1|","62|1|","61|1|","56|1|","50|2|","55|2|","5|1|","2|2|"],"new_items_map_keys":["417|1|","113|1|","65|1|","62|1|","61|1|","56|1|","50|2|","55|2|","5|1|","2|2|"]} 
[2026-03-02 14:38:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5319,"order_number":"AZS-020326-009"} 
[2026-03-02 14:38:00] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5319,"order_number":"AZS-020326-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":6195,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-02 14:38:00","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-02 14:38:00"} 
[2026-03-02 14:38:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5319,"order_number":"AZS-020326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-02 14:38:00"} 
[2026-03-02 14:38:00] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5319,"order_number":"AZS-020326-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"6195.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-02 14:38:00","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6195,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"6195.00","database_verification_match":true,"timestamp":"2026-03-02 14:38:00"} 
[2026-03-02 14:38:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5317,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null,"id":25850},{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":25851},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":25852},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null,"id":25853},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":25854},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":25855},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":25856},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25850,"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null},{"id":25851,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":25852,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":25853,"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null},{"id":25854,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":25855,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":25856,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-02 14:38:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5317,"items_count":8} 
[2026-03-02 14:38:26] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25850,"menu_item_id":417,"quantity":2},{"id":25851,"menu_item_id":78,"quantity":1},{"id":25852,"menu_item_id":96,"quantity":1},{"id":25853,"menu_item_id":52,"quantity":2},{"id":25854,"menu_item_id":61,"quantity":2},{"id":25855,"menu_item_id":56,"quantity":1},{"id":25856,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-02 14:38:26] local.INFO: PosOrderController::update - Item changes check {"order_id":5317,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["417|2|","78|1|","96|1|","52|2|","61|2|","56|1|","3|1|"],"new_items_map_keys":["417|2|","78|1|","96|1|","52|2|","61|2|","56|1|","3|1|","5|1|"]} 
[2026-03-02 14:38:26] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5317,"order_number":"AZS-020326-008"} 
[2026-03-02 14:38:26] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-008","replaced_order_id":5317} 
[2026-03-02 14:38:26] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5322,"items_count":8,"items":[{"menu_item_id":417,"quantity":2,"price":"499.00"},{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":52,"quantity":2,"price":"70.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-02 14:38:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5322,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":2,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5322}} 
[2026-03-02 14:38:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5322,"item_index":0,"menu_item_id":417} 
[2026-03-02 14:38:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5322,"item_index":1,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5322}} 
[2026-03-02 14:38:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5322,"item_index":1,"menu_item_id":78} 
[2026-03-02 14:38:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5322,"item_index":2,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5322}} 
[2026-03-02 14:38:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5322,"item_index":2,"menu_item_id":96} 
[2026-03-02 14:38:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5322,"item_index":3,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5322}} 
[2026-03-02 14:38:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5322,"item_index":3,"menu_item_id":52} 
[2026-03-02 14:38:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5322,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5322}} 
[2026-03-02 14:38:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5322,"item_index":4,"menu_item_id":61} 
[2026-03-02 14:38:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5322,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5322}} 
[2026-03-02 14:38:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5322,"item_index":5,"menu_item_id":56} 
[2026-03-02 14:38:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5322,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5322}} 
[2026-03-02 14:38:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5322,"item_index":6,"menu_item_id":3} 
[2026-03-02 14:38:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5322,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5322}} 
[2026-03-02 14:38:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5322,"item_index":7,"menu_item_id":5} 
[2026-03-02 14:38:26] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5317,"new_order_id":5322,"order_number":"AZS-020326-008"} 
[2026-03-02 14:38:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5322,"item_index":0,"item_id":25850} 
[2026-03-02 14:38:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5322,"item_index":1,"item_id":25851} 
[2026-03-02 14:38:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5322,"item_index":2,"item_id":25852} 
[2026-03-02 14:38:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5322,"item_index":3,"item_id":25853} 
[2026-03-02 14:38:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5322,"item_index":4,"item_id":25854} 
[2026-03-02 14:38:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5322,"item_index":5,"item_id":25855} 
[2026-03-02 14:38:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5322,"item_index":6,"item_id":25856} 
[2026-03-02 14:38:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":8,"order_id":5322,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":25850},{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":25851},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25852},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25853},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25854},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25855},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25856},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-02 14:38:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5322,"items_count":8} 
[2026-03-02 14:38:40] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":8,"items_to_remove":[25882,25883,25884,25885,25886,25887,25888,25889],"items":[{"id":null,"menu_item_id":417,"quantity":2},{"id":null,"menu_item_id":78,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":52,"quantity":2},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-02 14:38:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5322,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["417|2|","78|1|","96|1|","52|2|","61|2|","56|1|","3|1|","5|1|"],"new_items_map_keys":["417|2|","78|1|","96|1|","52|2|","61|2|","56|1|","3|1|","5|1|"]} 
[2026-03-02 14:38:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5322,"order_number":"AZS-020326-008"} 
[2026-03-02 14:38:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5322,"order_number":"AZS-020326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 14:38:40"} 
[2026-03-02 14:43:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5322,"item_index":0,"item_id":25850} 
[2026-03-02 14:43:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5322,"item_index":1,"item_id":25851} 
[2026-03-02 14:43:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5322,"item_index":2,"item_id":25852} 
[2026-03-02 14:43:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5322,"item_index":3,"item_id":25853} 
[2026-03-02 14:43:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5322,"item_index":4,"item_id":25854} 
[2026-03-02 14:43:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5322,"item_index":5,"item_id":25855} 
[2026-03-02 14:43:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5322,"item_index":6,"item_id":25856} 
[2026-03-02 14:43:01] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5322,"order_number":"AZS-020326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":8162,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 14:43:01"} 
[2026-03-02 14:43:01] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5322,"order_number":"AZS-020326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":8162,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 14:43:01"} 
[2026-03-02 14:43:01] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5322,"order_number":"AZS-020326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":8162,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 14:43:01"} 
[2026-03-02 14:43:01] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5322,"order_number":"AZS-020326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":8162,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 14:43:01"} 
[2026-03-02 14:43:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":8,"order_id":5322,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":25850},{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":25851},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25852},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25853},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25854},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25855},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25856},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-02 14:43:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5322,"items_count":8} 
[2026-03-02 14:43:01] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":8,"items_to_remove":[25882,25883,25884,25885,25886,25887,25888,25889],"items":[{"id":null,"menu_item_id":417,"quantity":2},{"id":null,"menu_item_id":78,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":52,"quantity":2},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-02 14:43:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5322,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["417|2|","78|1|","96|1|","52|2|","61|2|","56|1|","3|1|","5|1|"],"new_items_map_keys":["417|2|","78|1|","96|1|","52|2|","61|2|","56|1|","3|1|","5|1|"]} 
[2026-03-02 14:43:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5322,"order_number":"AZS-020326-008"} 
[2026-03-02 14:43:01] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5322,"order_number":"AZS-020326-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":8162,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-02 14:43:01","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-02 14:43:01"} 
[2026-03-02 14:43:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5322,"order_number":"AZS-020326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-02 14:43:01"} 
[2026-03-02 14:43:01] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5322,"order_number":"AZS-020326-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"8162.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-02 14:43:01","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":8162,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"8162.00","database_verification_match":true,"timestamp":"2026-03-02 14:43:01"} 
[2026-03-02 14:43:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":1,"order_id":5321,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":25874},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":25875},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25876},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25877},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25878},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":25879},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25881}],"validated_items":[{"id":25874,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":25875,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":25876,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25877,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25878,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25879,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":25881,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-02 14:43:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5321,"items_count":7} 
[2026-03-02 14:43:35] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":1,"items_to_remove":[25880],"items":[{"id":25874,"menu_item_id":78,"quantity":1},{"id":25875,"menu_item_id":106,"quantity":1},{"id":25876,"menu_item_id":396,"quantity":2},{"id":25877,"menu_item_id":61,"quantity":2},{"id":25878,"menu_item_id":56,"quantity":2},{"id":25879,"menu_item_id":5,"quantity":2},{"id":25881,"menu_item_id":3,"quantity":1}]} 
[2026-03-02 14:43:35] local.INFO: PosOrderController::update - Item changes check {"order_id":5321,"has_item_changes":true,"old_items_count":8,"new_items_count":7,"old_items_map_keys":["78|1|","106|1|","396|2|","61|2|","56|2|","5|2|","417|4|","3|1|"],"new_items_map_keys":["78|1|","106|1|","396|2|","61|2|","56|2|","5|2|","3|1|"]} 
[2026-03-02 14:43:35] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5321,"order_number":"AZS-020326-006"} 
[2026-03-02 14:43:35] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-006","replaced_order_id":5321} 
[2026-03-02 14:43:35] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5323,"items_count":7,"items":[{"menu_item_id":78,"quantity":1,"price":4399.0},{"menu_item_id":106,"quantity":1,"price":4199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":61,"quantity":2,"price":199.0},{"menu_item_id":56,"quantity":2,"price":199.0},{"menu_item_id":5,"quantity":2,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-02 14:43:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5323,"item_index":0,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":4399.0,"discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5323}} 
[2026-03-02 14:43:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5323,"item_index":0,"menu_item_id":78} 
[2026-03-02 14:43:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5323,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":4199.0,"discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5323}} 
[2026-03-02 14:43:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5323,"item_index":1,"menu_item_id":106} 
[2026-03-02 14:43:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5323,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5323}} 
[2026-03-02 14:43:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5323,"item_index":2,"menu_item_id":396} 
[2026-03-02 14:43:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5323,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5323}} 
[2026-03-02 14:43:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5323,"item_index":3,"menu_item_id":61} 
[2026-03-02 14:43:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5323,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5323}} 
[2026-03-02 14:43:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5323,"item_index":4,"menu_item_id":56} 
[2026-03-02 14:43:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5323,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5323}} 
[2026-03-02 14:43:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5323,"item_index":5,"menu_item_id":5} 
[2026-03-02 14:43:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5323,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5323}} 
[2026-03-02 14:43:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5323,"item_index":6,"menu_item_id":3} 
[2026-03-02 14:43:35] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5321,"new_order_id":5323,"order_number":"AZS-020326-006"} 
[2026-03-02 14:43:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5323,"item_index":0,"item_id":25874} 
[2026-03-02 14:43:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5323,"item_index":1,"item_id":25875} 
[2026-03-02 14:43:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5323,"item_index":2,"item_id":25876} 
[2026-03-02 14:43:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5323,"item_index":3,"item_id":25877} 
[2026-03-02 14:43:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5323,"item_index":4,"item_id":25878} 
[2026-03-02 14:43:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5323,"item_index":5,"item_id":25879} 
[2026-03-02 14:43:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5323,"item_index":6,"item_id":25881} 
[2026-03-02 14:43:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5323,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":25874},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":25875},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25876},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25877},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25878},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":25879},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25881}],"validated_items":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-02 14:43:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5323,"items_count":7} 
[2026-03-02 14:43:39] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[25890,25891,25892,25893,25894,25895,25896],"items":[{"id":null,"menu_item_id":78,"quantity":1},{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-02 14:43:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5323,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["78|1|","106|1|","396|2|","61|2|","56|2|","5|2|","3|1|"],"new_items_map_keys":["78|1|","106|1|","396|2|","61|2|","56|2|","5|2|","3|1|"]} 
[2026-03-02 14:43:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5323,"order_number":"AZS-020326-006"} 
[2026-03-02 14:43:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5323,"order_number":"AZS-020326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 14:43:39"} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5312,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null,"id":25829},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":25830},{"menu_item_id":49,"quantity":4,"discount_percent":0,"notes":null,"id":25831},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":25832},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":25833},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":25834},{"menu_item_id":23,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":27,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":24,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25829,"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null},{"id":25830,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":25831,"menu_item_id":49,"quantity":4,"discount_percent":0,"notes":null},{"id":25832,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":25833,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":25834,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":23,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":27,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":24,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5312,"items_count":9} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25829,"menu_item_id":417,"quantity":2},{"id":25830,"menu_item_id":105,"quantity":1},{"id":25831,"menu_item_id":49,"quantity":4},{"id":25832,"menu_item_id":61,"quantity":1},{"id":25833,"menu_item_id":56,"quantity":1},{"id":25834,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":23,"quantity":1},{"id":null,"menu_item_id":27,"quantity":1},{"id":null,"menu_item_id":24,"quantity":1}]} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Item changes check {"order_id":5312,"has_item_changes":true,"old_items_count":6,"new_items_count":9,"old_items_map_keys":["417|2|","105|1|","49|4|","61|1|","56|1|","3|1|"],"new_items_map_keys":["417|2|","105|1|","49|4|","61|1|","56|1|","3|1|","23|1|","27|1|","24|1|"]} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5312,"order_number":"AZS-020326-004"} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-004","replaced_order_id":5312} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5325,"items_count":9,"items":[{"menu_item_id":417,"quantity":2,"price":"499.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":49,"quantity":4,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":23,"quantity":1,"price":"249.00"},{"menu_item_id":27,"quantity":1,"price":"249.00"},{"menu_item_id":24,"quantity":1,"price":"249.00"}]} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5325,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":2,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5325}} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5325,"item_index":0,"menu_item_id":417} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5325,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5325}} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5325,"item_index":1,"menu_item_id":105} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5325,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5325}} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5325,"item_index":2,"menu_item_id":49} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5325,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5325}} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5325,"item_index":3,"menu_item_id":61} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5325,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5325}} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5325,"item_index":4,"menu_item_id":56} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5325,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5325}} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5325,"item_index":5,"menu_item_id":3} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5325,"item_index":6,"item_data":{"menu_item_id":23,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Vanilla","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5325}} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5325,"item_index":6,"menu_item_id":23} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5325,"item_index":7,"item_data":{"menu_item_id":27,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Strawberry","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5325}} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5325,"item_index":7,"menu_item_id":27} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5325,"item_index":8,"item_data":{"menu_item_id":24,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Mango","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5325}} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5325,"item_index":8,"menu_item_id":24} 
[2026-03-02 14:46:33] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5312,"new_order_id":5325,"order_number":"AZS-020326-004"} 
[2026-03-02 14:49:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5323,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":25890},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":25891},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25892},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25893},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25894},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":25895},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25896}],"validated_items":[{"id":25890,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":25891,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":25892,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25893,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25894,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25895,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":25896,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-02 14:49:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5323,"items_count":7} 
[2026-03-02 14:49:46] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25890,"menu_item_id":78,"quantity":1},{"id":25891,"menu_item_id":106,"quantity":1},{"id":25892,"menu_item_id":396,"quantity":2},{"id":25893,"menu_item_id":61,"quantity":2},{"id":25894,"menu_item_id":56,"quantity":2},{"id":25895,"menu_item_id":5,"quantity":2},{"id":25896,"menu_item_id":3,"quantity":1}]} 
[2026-03-02 14:49:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5323,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["78|1|","106|1|","396|2|","61|2|","56|2|","5|2|","3|1|"],"new_items_map_keys":["78|1|","106|1|","396|2|","61|2|","56|2|","5|2|","3|1|"]} 
[2026-03-02 14:49:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5323,"order_number":"AZS-020326-006"} 
[2026-03-02 14:49:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5323,"order_number":"AZS-020326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 14:49:46"} 
[2026-03-02 14:50:18] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5323,"order_number":"AZS-020326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 14:50:18"} 
[2026-03-02 14:50:18] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5323,"order_number":"AZS-020326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 14:50:18"} 
[2026-03-02 14:50:18] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5323,"order_number":"AZS-020326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 14:50:18"} 
[2026-03-02 14:50:18] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5323,"order_number":"AZS-020326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 14:50:18"} 
[2026-03-02 14:50:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5323,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":25890},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":25891},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25892},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25893},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25894},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":25895},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25896}],"validated_items":[{"id":25890,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":25891,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":25892,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25893,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25894,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25895,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":25896,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-02 14:50:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5323,"items_count":7} 
[2026-03-02 14:50:18] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25890,"menu_item_id":78,"quantity":1},{"id":25891,"menu_item_id":106,"quantity":1},{"id":25892,"menu_item_id":396,"quantity":2},{"id":25893,"menu_item_id":61,"quantity":2},{"id":25894,"menu_item_id":56,"quantity":2},{"id":25895,"menu_item_id":5,"quantity":2},{"id":25896,"menu_item_id":3,"quantity":1}]} 
[2026-03-02 14:50:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5323,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["78|1|","106|1|","396|2|","61|2|","56|2|","5|2|","3|1|"],"new_items_map_keys":["78|1|","106|1|","396|2|","61|2|","56|2|","5|2|","3|1|"]} 
[2026-03-02 14:50:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5323,"order_number":"AZS-020326-006"} 
[2026-03-02 14:50:18] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5323,"order_number":"AZS-020326-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":10000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-02 14:50:18","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-02 14:50:18"} 
[2026-03-02 14:50:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5323,"order_number":"AZS-020326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-02 14:50:18"} 
[2026-03-02 14:50:18] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5323,"order_number":"AZS-020326-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"10000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-02 14:50:18","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"10000.00","database_verification_match":true,"timestamp":"2026-03-02 14:50:18"} 
[2026-03-02 14:55:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":1,"order_id":5326,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":25908},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":25909},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null,"id":25910},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":25911},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":25912},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25913},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25908,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":25909,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":25910,"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"id":25911,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":25912,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":25913,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-02 14:55:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5326,"items_count":7} 
[2026-03-02 14:55:59] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":1,"items_to_remove":[25907],"items":[{"id":25908,"menu_item_id":396,"quantity":1},{"id":25909,"menu_item_id":50,"quantity":2},{"id":25910,"menu_item_id":83,"quantity":1},{"id":25911,"menu_item_id":61,"quantity":1},{"id":25912,"menu_item_id":56,"quantity":1},{"id":25913,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":114,"quantity":1}]} 
[2026-03-02 14:55:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5326,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["105|1|","396|1|","50|2|","83|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["396|1|","50|2|","83|1|","61|1|","56|1|","5|1|","114|1|"]} 
[2026-03-02 14:55:59] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5326,"order_number":"AZS-020326-015"} 
[2026-03-02 14:55:59] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-015","replaced_order_id":5326} 
[2026-03-02 14:55:59] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5327,"items_count":7,"items":[{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":83,"quantity":1,"price":"649.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":114,"quantity":1,"price":"2299.00"}]} 
[2026-03-02 14:55:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5327,"item_index":0,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5327}} 
[2026-03-02 14:55:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5327,"item_index":0,"menu_item_id":396} 
[2026-03-02 14:55:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5327,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5327}} 
[2026-03-02 14:55:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5327,"item_index":1,"menu_item_id":50} 
[2026-03-02 14:55:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5327,"item_index":2,"item_data":{"menu_item_id":83,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Chicken Nuggets","quantity":1,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":649.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5327}} 
[2026-03-02 14:55:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5327,"item_index":2,"menu_item_id":83} 
[2026-03-02 14:55:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5327,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5327}} 
[2026-03-02 14:55:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5327,"item_index":3,"menu_item_id":61} 
[2026-03-02 14:55:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5327,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5327}} 
[2026-03-02 14:55:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5327,"item_index":4,"menu_item_id":56} 
[2026-03-02 14:55:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5327,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5327}} 
[2026-03-02 14:55:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5327,"item_index":5,"menu_item_id":5} 
[2026-03-02 14:55:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5327,"item_index":6,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5327}} 
[2026-03-02 14:55:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5327,"item_index":6,"menu_item_id":114} 
[2026-03-02 14:55:59] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5326,"new_order_id":5327,"order_number":"AZS-020326-015"} 
[2026-03-02 14:56:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5327,"item_index":0,"item_id":25908} 
[2026-03-02 14:56:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5327,"item_index":1,"item_id":25909} 
[2026-03-02 14:56:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5327,"item_index":2,"item_id":25910} 
[2026-03-02 14:56:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5327,"item_index":3,"item_id":25911} 
[2026-03-02 14:56:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5327,"item_index":4,"item_id":25912} 
[2026-03-02 14:56:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5327,"item_index":5,"item_id":25913} 
[2026-03-02 14:56:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5327,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":25908},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":25909},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null,"id":25910},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":25911},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":25912},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25913},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-02 14:56:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5327,"items_count":7} 
[2026-03-02 14:56:04] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[25914,25915,25916,25917,25918,25919,25920],"items":[{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":83,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":114,"quantity":1}]} 
[2026-03-02 14:56:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5327,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["396|1|","50|2|","83|1|","61|1|","56|1|","5|1|","114|1|"],"new_items_map_keys":["396|1|","50|2|","83|1|","61|1|","56|1|","5|1|","114|1|"]} 
[2026-03-02 14:56:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5327,"order_number":"AZS-020326-015"} 
[2026-03-02 14:56:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5327,"order_number":"AZS-020326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-02 14:56:04"} 
[2026-03-02 14:59:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5325,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":25898},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":25899},{"menu_item_id":49,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":25900},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25901},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25902},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25903},{"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":25904},{"menu_item_id":27,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":25905},{"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":25906}],"validated_items":[{"id":25898,"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null},{"id":25899,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":25900,"menu_item_id":49,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":25901,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25902,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25903,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":25904,"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":25905,"menu_item_id":27,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":25906,"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-02 14:59:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5325,"items_count":9} 
[2026-03-02 14:59:48] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25898,"menu_item_id":417,"quantity":2},{"id":25899,"menu_item_id":105,"quantity":1},{"id":25900,"menu_item_id":49,"quantity":4},{"id":25901,"menu_item_id":61,"quantity":1},{"id":25902,"menu_item_id":56,"quantity":1},{"id":25903,"menu_item_id":3,"quantity":1},{"id":25904,"menu_item_id":23,"quantity":1},{"id":25905,"menu_item_id":27,"quantity":1},{"id":25906,"menu_item_id":24,"quantity":1}]} 
[2026-03-02 14:59:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5325,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["417|2|","105|1|","49|4|","61|1|","56|1|","3|1|","23|1|","27|1|","24|1|"],"new_items_map_keys":["417|2|","105|1|","49|4|","61|1|","56|1|","3|1|","23|1|","27|1|","24|1|"]} 
[2026-03-02 14:59:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5325,"order_number":"AZS-020326-004"} 
[2026-03-02 14:59:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5325,"order_number":"AZS-020326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 14:59:48"} 
[2026-03-02 15:00:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5320,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25872},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":25873}],"validated_items":[{"id":25872,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25873,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-02 15:00:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5320,"items_count":2} 
[2026-03-02 15:00:08] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25872,"menu_item_id":6,"quantity":2},{"id":25873,"menu_item_id":4,"quantity":1}]} 
[2026-03-02 15:00:08] local.INFO: PosOrderController::update - Item changes check {"order_id":5320,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|2|","4|1|"],"new_items_map_keys":["6|2|","4|1|"]} 
[2026-03-02 15:00:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5320,"order_number":"AZS-020326-011"} 
[2026-03-02 15:00:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5320,"order_number":"AZS-020326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 15:00:08"} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5325,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null,"id":25898},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":25899},{"menu_item_id":49,"quantity":4,"discount_percent":0,"notes":null,"id":25900},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":25901},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":25902},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":25903},{"menu_item_id":23,"quantity":1,"discount_percent":0,"notes":null,"id":25904},{"menu_item_id":27,"quantity":1,"discount_percent":0,"notes":null,"id":25905},{"menu_item_id":24,"quantity":1,"discount_percent":0,"notes":null,"id":25906},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25898,"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null},{"id":25899,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":25900,"menu_item_id":49,"quantity":4,"discount_percent":0,"notes":null},{"id":25901,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":25902,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":25903,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"id":25904,"menu_item_id":23,"quantity":1,"discount_percent":0,"notes":null},{"id":25905,"menu_item_id":27,"quantity":1,"discount_percent":0,"notes":null},{"id":25906,"menu_item_id":24,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5325,"items_count":10} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25898,"menu_item_id":417,"quantity":2},{"id":25899,"menu_item_id":105,"quantity":1},{"id":25900,"menu_item_id":49,"quantity":4},{"id":25901,"menu_item_id":61,"quantity":1},{"id":25902,"menu_item_id":56,"quantity":1},{"id":25903,"menu_item_id":3,"quantity":1},{"id":25904,"menu_item_id":23,"quantity":1},{"id":25905,"menu_item_id":27,"quantity":1},{"id":25906,"menu_item_id":24,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5325,"has_item_changes":true,"old_items_count":9,"new_items_count":10,"old_items_map_keys":["417|2|","105|1|","49|4|","61|1|","56|1|","3|1|","23|1|","27|1|","24|1|"],"new_items_map_keys":["417|2|","105|1|","49|4|","61|1|","56|1|","3|1|","23|1|","27|1|","24|1|","5|1|"]} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5325,"order_number":"AZS-020326-004"} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-004","replaced_order_id":5325} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5328,"items_count":10,"items":[{"menu_item_id":417,"quantity":2,"price":"499.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":49,"quantity":4,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":23,"quantity":1,"price":"249.00"},{"menu_item_id":27,"quantity":1,"price":"249.00"},{"menu_item_id":24,"quantity":1,"price":"249.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5328,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":2,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5328}} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5328,"item_index":0,"menu_item_id":417} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5328,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5328}} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5328,"item_index":1,"menu_item_id":105} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5328,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5328}} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5328,"item_index":2,"menu_item_id":49} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5328,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5328}} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5328,"item_index":3,"menu_item_id":61} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5328,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5328}} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5328,"item_index":4,"menu_item_id":56} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5328,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5328}} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5328,"item_index":5,"menu_item_id":3} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5328,"item_index":6,"item_data":{"menu_item_id":23,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Vanilla","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5328}} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5328,"item_index":6,"menu_item_id":23} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5328,"item_index":7,"item_data":{"menu_item_id":27,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Strawberry","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5328}} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5328,"item_index":7,"menu_item_id":27} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5328,"item_index":8,"item_data":{"menu_item_id":24,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Mango","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5328}} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5328,"item_index":8,"menu_item_id":24} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5328,"item_index":9,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5328}} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5328,"item_index":9,"menu_item_id":5} 
[2026-03-02 15:00:28] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5325,"new_order_id":5328,"order_number":"AZS-020326-004"} 
[2026-03-02 15:00:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5328,"item_index":0,"item_id":25898} 
[2026-03-02 15:00:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5328,"item_index":1,"item_id":25899} 
[2026-03-02 15:00:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5328,"item_index":2,"item_id":25900} 
[2026-03-02 15:00:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5328,"item_index":3,"item_id":25901} 
[2026-03-02 15:00:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5328,"item_index":4,"item_id":25902} 
[2026-03-02 15:00:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5328,"item_index":5,"item_id":25903} 
[2026-03-02 15:00:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5328,"item_index":6,"item_id":25904} 
[2026-03-02 15:00:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5328,"item_index":7,"item_id":25905} 
[2026-03-02 15:00:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5328,"item_index":8,"item_id":25906} 
[2026-03-02 15:00:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":10,"order_id":5328,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":25898},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":25899},{"menu_item_id":49,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":25900},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25901},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25902},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25903},{"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":25904},{"menu_item_id":27,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":25905},{"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":25906},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":27,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-02 15:00:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5328,"items_count":10} 
[2026-03-02 15:00:39] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":10,"items_to_remove":[25921,25922,25923,25924,25925,25926,25927,25928,25929,25930],"items":[{"id":null,"menu_item_id":417,"quantity":2},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":49,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":23,"quantity":1},{"id":null,"menu_item_id":27,"quantity":1},{"id":null,"menu_item_id":24,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-02 15:00:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5328,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["417|2|","105|1|","49|4|","61|1|","56|1|","3|1|","23|1|","27|1|","24|1|","5|1|"],"new_items_map_keys":["417|2|","105|1|","49|4|","61|1|","56|1|","3|1|","23|1|","27|1|","24|1|","5|1|"]} 
[2026-03-02 15:00:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5328,"order_number":"AZS-020326-004"} 
[2026-03-02 15:00:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5328,"order_number":"AZS-020326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 15:00:39"} 
[2026-03-02 15:03:04] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5320,"order_number":"AZS-020326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":512,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 15:03:04"} 
[2026-03-02 15:03:04] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5320,"order_number":"AZS-020326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":512,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 15:03:04"} 
[2026-03-02 15:03:04] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5320,"order_number":"AZS-020326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":512,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 15:03:04"} 
[2026-03-02 15:03:04] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5320,"order_number":"AZS-020326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":512,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 15:03:04"} 
[2026-03-02 15:03:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5320,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25872},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":25873}],"validated_items":[{"id":25872,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":25873,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-02 15:03:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5320,"items_count":2} 
[2026-03-02 15:03:04] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25872,"menu_item_id":6,"quantity":2},{"id":25873,"menu_item_id":4,"quantity":1}]} 
[2026-03-02 15:03:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5320,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|2|","4|1|"],"new_items_map_keys":["6|2|","4|1|"]} 
[2026-03-02 15:03:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5320,"order_number":"AZS-020326-011"} 
[2026-03-02 15:03:04] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5320,"order_number":"AZS-020326-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":512,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-02 15:03:04","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-02 15:03:04"} 
[2026-03-02 15:03:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5320,"order_number":"AZS-020326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-02 15:03:04"} 
[2026-03-02 15:03:04] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5320,"order_number":"AZS-020326-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"512.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-02 15:03:04","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":512,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"512.00","database_verification_match":true,"timestamp":"2026-03-02 15:03:04"} 
[2026-03-02 15:03:41] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5328,"order_number":"AZS-020326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5500,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 15:03:41"} 
[2026-03-02 15:03:41] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5328,"order_number":"AZS-020326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 15:03:41"} 
[2026-03-02 15:03:41] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5328,"order_number":"AZS-020326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 15:03:41"} 
[2026-03-02 15:03:41] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5328,"order_number":"AZS-020326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 15:03:41"} 
[2026-03-02 15:03:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5328,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":25921},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":25922},{"menu_item_id":49,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":25923},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25924},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25925},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":25926},{"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":25927},{"menu_item_id":27,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":25928},{"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":25929},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25930}],"validated_items":[{"id":25921,"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null},{"id":25922,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":25923,"menu_item_id":49,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":25924,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25925,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25926,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":25927,"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":25928,"menu_item_id":27,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":25929,"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":25930,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-02 15:03:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5328,"items_count":10} 
[2026-03-02 15:03:41] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25921,"menu_item_id":417,"quantity":2},{"id":25922,"menu_item_id":105,"quantity":1},{"id":25923,"menu_item_id":49,"quantity":4},{"id":25924,"menu_item_id":61,"quantity":1},{"id":25925,"menu_item_id":56,"quantity":1},{"id":25926,"menu_item_id":3,"quantity":1},{"id":25927,"menu_item_id":23,"quantity":1},{"id":25928,"menu_item_id":27,"quantity":1},{"id":25929,"menu_item_id":24,"quantity":1},{"id":25930,"menu_item_id":5,"quantity":1}]} 
[2026-03-02 15:03:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5328,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["417|2|","105|1|","49|4|","61|1|","56|1|","3|1|","23|1|","27|1|","24|1|","5|1|"],"new_items_map_keys":["417|2|","105|1|","49|4|","61|1|","56|1|","3|1|","23|1|","27|1|","24|1|","5|1|"]} 
[2026-03-02 15:03:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5328,"order_number":"AZS-020326-004"} 
[2026-03-02 15:03:41] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5328,"order_number":"AZS-020326-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5500,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-02 15:03:41","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-02 15:03:41"} 
[2026-03-02 15:03:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5328,"order_number":"AZS-020326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-02 15:03:41"} 
[2026-03-02 15:03:42] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5328,"order_number":"AZS-020326-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5500.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-02 15:03:41","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5500.00","database_verification_match":true,"timestamp":"2026-03-02 15:03:42"} 
[2026-03-02 15:05:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5316,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":25849}],"validated_items":[{"id":25849,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-02 15:05:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5316,"items_count":1} 
[2026-03-02 15:05:24] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25849,"menu_item_id":13,"quantity":2}]} 
[2026-03-02 15:05:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5316,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|2|"]} 
[2026-03-02 15:05:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5316,"order_number":"AZS-020326-012"} 
[2026-03-02 15:05:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5316,"order_number":"AZS-020326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 15:05:24"} 
[2026-03-02 15:10:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5314,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25836},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25837},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25838},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25839},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25840}],"validated_items":[{"id":25836,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25837,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25838,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25839,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25840,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-02 15:10:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5314,"items_count":5} 
[2026-03-02 15:10:58] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25836,"menu_item_id":396,"quantity":2},{"id":25837,"menu_item_id":61,"quantity":1},{"id":25838,"menu_item_id":96,"quantity":1},{"id":25839,"menu_item_id":5,"quantity":1},{"id":25840,"menu_item_id":6,"quantity":2}]} 
[2026-03-02 15:10:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5314,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["396|2|","61|1|","96|1|","5|1|","6|2|"],"new_items_map_keys":["396|2|","61|1|","96|1|","5|1|","6|2|"]} 
[2026-03-02 15:10:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5314,"order_number":"AZS-020326-010"} 
[2026-03-02 15:10:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5314,"order_number":"AZS-020326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 15:10:58"} 
[2026-03-02 15:15:55] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5314,"order_number":"AZS-020326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2272,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 15:15:55"} 
[2026-03-02 15:15:55] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5314,"order_number":"AZS-020326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2272,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 15:15:55"} 
[2026-03-02 15:15:55] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5314,"order_number":"AZS-020326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2272,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 15:15:55"} 
[2026-03-02 15:15:55] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5314,"order_number":"AZS-020326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2272,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 15:15:55"} 
[2026-03-02 15:15:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5314,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":25836},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25837},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25838},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25839},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25840}],"validated_items":[{"id":25836,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":25837,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25838,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25839,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25840,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-02 15:15:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5314,"items_count":5} 
[2026-03-02 15:15:55] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25836,"menu_item_id":396,"quantity":2},{"id":25837,"menu_item_id":61,"quantity":1},{"id":25838,"menu_item_id":96,"quantity":1},{"id":25839,"menu_item_id":5,"quantity":1},{"id":25840,"menu_item_id":6,"quantity":2}]} 
[2026-03-02 15:15:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5314,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["396|2|","61|1|","96|1|","5|1|","6|2|"],"new_items_map_keys":["396|2|","61|1|","96|1|","5|1|","6|2|"]} 
[2026-03-02 15:15:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5314,"order_number":"AZS-020326-010"} 
[2026-03-02 15:15:55] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5314,"order_number":"AZS-020326-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2272,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-02 15:15:55","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-02 15:15:55"} 
[2026-03-02 15:15:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5314,"order_number":"AZS-020326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-02 15:15:55"} 
[2026-03-02 15:15:55] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5314,"order_number":"AZS-020326-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2272.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-02 15:15:55","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2272,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2272.00","database_verification_match":true,"timestamp":"2026-03-02 15:15:55"} 
[2026-03-02 15:26:06] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5316,"order_number":"AZS-020326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":523,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 15:26:06"} 
[2026-03-02 15:26:06] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5316,"order_number":"AZS-020326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":523,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 15:26:06"} 
[2026-03-02 15:26:06] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5316,"order_number":"AZS-020326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":523,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 15:26:06"} 
[2026-03-02 15:26:06] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5316,"order_number":"AZS-020326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":523,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 15:26:06"} 
[2026-03-02 15:26:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5316,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":25849}],"validated_items":[{"id":25849,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-02 15:26:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5316,"items_count":1} 
[2026-03-02 15:26:06] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25849,"menu_item_id":13,"quantity":2}]} 
[2026-03-02 15:26:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5316,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|2|"]} 
[2026-03-02 15:26:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5316,"order_number":"AZS-020326-012"} 
[2026-03-02 15:26:06] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5316,"order_number":"AZS-020326-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":523,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-02 15:26:06","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-02 15:26:06"} 
[2026-03-02 15:26:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5316,"order_number":"AZS-020326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-02 15:26:06"} 
[2026-03-02 15:26:06] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5316,"order_number":"AZS-020326-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"523.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-02 15:26:06","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":523,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"523.00","database_verification_match":true,"timestamp":"2026-03-02 15:26:06"} 
[2026-03-02 15:44:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T03:44:40.921Z","date_to":"2026-03-02T15:44:40.921Z","per_page":"100"} 
[2026-03-02 15:44:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T03:44:40.938Z","date_to":"2026-03-02T15:44:40.938Z","per_page":"100"} 
[2026-03-02 15:44:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":44,"count":44,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-015","AZS-020326-015","AZS-020326-014","AZS-020326-013","AZS-020326-012","AZS-020326-011","AZS-020326-011","AZS-020326-010","AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["pending","changed","pending","pending","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":29,"paid_count":12,"unpaid_count":3,"unique_order_numbers":15} 
[2026-03-02 15:44:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":44,"count":44,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-015","AZS-020326-015","AZS-020326-014","AZS-020326-013","AZS-020326-012","AZS-020326-011","AZS-020326-011","AZS-020326-010","AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["pending","changed","pending","pending","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":29,"paid_count":12,"unpaid_count":3,"unique_order_numbers":15} 
[2026-03-02 15:44:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T03:44:40.921Z","date_to":"2026-03-02T15:44:40.921Z","per_page":"100"} 
[2026-03-02 15:44:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":44,"count":44,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-015","AZS-020326-015","AZS-020326-014","AZS-020326-013","AZS-020326-012","AZS-020326-011","AZS-020326-011","AZS-020326-010","AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["pending","changed","pending","pending","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":29,"paid_count":12,"unpaid_count":3,"unique_order_numbers":15} 
[2026-03-02 15:49:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5318,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":25857},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25858},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25859},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25860},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":25861}],"validated_items":[{"id":25857,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":25858,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":25859,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25860,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25861,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-02 15:49:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5318,"items_count":5} 
[2026-03-02 15:49:00] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25857,"menu_item_id":105,"quantity":1},{"id":25858,"menu_item_id":396,"quantity":1},{"id":25859,"menu_item_id":61,"quantity":1},{"id":25860,"menu_item_id":56,"quantity":1},{"id":25861,"menu_item_id":4,"quantity":1}]} 
[2026-03-02 15:49:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5318,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","396|1|","61|1|","56|1|","4|1|"],"new_items_map_keys":["105|1|","396|1|","61|1|","56|1|","4|1|"]} 
[2026-03-02 15:49:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5318,"order_number":"AZS-020326-013"} 
[2026-03-02 15:49:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5318,"order_number":"AZS-020326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 15:49:00"} 
[2026-03-02 16:01:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5327,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25914},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":25915},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":25916},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25917},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25918},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25919},{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25920}],"validated_items":[{"id":25914,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":25915,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":25916,"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":25917,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25918,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25919,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25920,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null}]} 
[2026-03-02 16:01:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5327,"items_count":7} 
[2026-03-02 16:01:41] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25914,"menu_item_id":396,"quantity":1},{"id":25915,"menu_item_id":50,"quantity":2},{"id":25916,"menu_item_id":83,"quantity":1},{"id":25917,"menu_item_id":61,"quantity":1},{"id":25918,"menu_item_id":56,"quantity":1},{"id":25919,"menu_item_id":5,"quantity":1},{"id":25920,"menu_item_id":114,"quantity":1}]} 
[2026-03-02 16:01:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5327,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["396|1|","50|2|","83|1|","61|1|","56|1|","5|1|","114|1|"],"new_items_map_keys":["396|1|","50|2|","83|1|","61|1|","56|1|","5|1|","114|1|"]} 
[2026-03-02 16:01:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5327,"order_number":"AZS-020326-015"} 
[2026-03-02 16:01:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5327,"order_number":"AZS-020326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 16:01:41"} 
[2026-03-02 16:01:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5327,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25914},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":25915},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":25916},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25917},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25918},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25919},{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25920}],"validated_items":[{"id":25914,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":25915,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":25916,"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":25917,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25918,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25919,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25920,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null}]} 
[2026-03-02 16:01:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5327,"items_count":7} 
[2026-03-02 16:01:52] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25914,"menu_item_id":396,"quantity":1},{"id":25915,"menu_item_id":50,"quantity":2},{"id":25916,"menu_item_id":83,"quantity":1},{"id":25917,"menu_item_id":61,"quantity":1},{"id":25918,"menu_item_id":56,"quantity":1},{"id":25919,"menu_item_id":5,"quantity":1},{"id":25920,"menu_item_id":114,"quantity":1}]} 
[2026-03-02 16:01:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5327,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["396|1|","50|2|","83|1|","61|1|","56|1|","5|1|","114|1|"],"new_items_map_keys":["396|1|","50|2|","83|1|","61|1|","56|1|","5|1|","114|1|"]} 
[2026-03-02 16:01:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5327,"order_number":"AZS-020326-015"} 
[2026-03-02 16:01:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5327,"order_number":"AZS-020326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 16:01:52"} 
[2026-03-02 16:27:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5327,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25914},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":25915},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":25916},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25917},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25918},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25919},{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25920}],"validated_items":[{"id":25914,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":25915,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":25916,"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":25917,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25918,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25919,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25920,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null}]} 
[2026-03-02 16:27:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5327,"items_count":7} 
[2026-03-02 16:27:05] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25914,"menu_item_id":396,"quantity":1},{"id":25915,"menu_item_id":50,"quantity":2},{"id":25916,"menu_item_id":83,"quantity":1},{"id":25917,"menu_item_id":61,"quantity":1},{"id":25918,"menu_item_id":56,"quantity":1},{"id":25919,"menu_item_id":5,"quantity":1},{"id":25920,"menu_item_id":114,"quantity":1}]} 
[2026-03-02 16:27:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5327,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["396|1|","50|2|","83|1|","61|1|","56|1|","5|1|","114|1|"],"new_items_map_keys":["396|1|","50|2|","83|1|","61|1|","56|1|","5|1|","114|1|"]} 
[2026-03-02 16:27:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5327,"order_number":"AZS-020326-015"} 
[2026-03-02 16:27:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5327,"order_number":"AZS-020326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 16:27:05"} 
[2026-03-02 16:27:40] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5327,"order_number":"AZS-020326-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 16:27:40"} 
[2026-03-02 16:27:40] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5327,"order_number":"AZS-020326-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 16:27:40"} 
[2026-03-02 16:27:40] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5327,"order_number":"AZS-020326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 16:27:40"} 
[2026-03-02 16:27:40] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5327,"order_number":"AZS-020326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 16:27:40"} 
[2026-03-02 16:27:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":5327,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25914},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":25915},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":25916},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25918},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25919},{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":25920}],"validated_items":[{"id":25914,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":25915,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":25916,"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":25918,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25919,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25920,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null}]} 
[2026-03-02 16:27:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5327,"items_count":6} 
[2026-03-02 16:27:40] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[25917],"items":[{"id":25914,"menu_item_id":396,"quantity":1},{"id":25915,"menu_item_id":50,"quantity":2},{"id":25916,"menu_item_id":83,"quantity":1},{"id":25918,"menu_item_id":56,"quantity":1},{"id":25919,"menu_item_id":5,"quantity":1},{"id":25920,"menu_item_id":114,"quantity":1}]} 
[2026-03-02 16:27:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5327,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["396|1|","50|2|","83|1|","61|1|","56|1|","5|1|","114|1|"],"new_items_map_keys":["396|1|","50|2|","83|1|","56|1|","5|1|","114|1|"]} 
[2026-03-02 16:27:40] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5327,"order_number":"AZS-020326-015","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":4000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-02 16:27:40","original_payment_amount":"0.00","grand_total":3674.0,"timestamp":"2026-03-02 16:27:40"} 
[2026-03-02 16:27:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5327,"order_number":"AZS-020326-015"} 
[2026-03-02 16:27:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-015","replaced_order_id":5327} 
[2026-03-02 16:27:40] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5327,"new_order_id":5330,"order_number":"AZS-020326-015","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"4000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-02 16:27:40","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-02 16:27:40"} 
[2026-03-02 16:27:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5330,"items_count":6,"items":[{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":50,"quantity":2,"price":129.0},{"menu_item_id":83,"quantity":1,"price":649.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":114,"quantity":1,"price":2299.0}]} 
[2026-03-02 16:27:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5330,"item_index":0,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5330}} 
[2026-03-02 16:27:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5330,"item_index":0,"menu_item_id":396} 
[2026-03-02 16:27:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5330,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5330}} 
[2026-03-02 16:27:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5330,"item_index":1,"menu_item_id":50} 
[2026-03-02 16:27:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5330,"item_index":2,"item_data":{"menu_item_id":83,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Chicken Nuggets","quantity":1,"price":649.0,"discount_percent":0.0,"discount_amount":0.0,"total":649.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5330}} 
[2026-03-02 16:27:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5330,"item_index":2,"menu_item_id":83} 
[2026-03-02 16:27:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5330,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5330}} 
[2026-03-02 16:27:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5330,"item_index":3,"menu_item_id":56} 
[2026-03-02 16:27:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5330,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5330}} 
[2026-03-02 16:27:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5330,"item_index":4,"menu_item_id":5} 
[2026-03-02 16:27:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5330,"item_index":5,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5330}} 
[2026-03-02 16:27:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5330,"item_index":5,"menu_item_id":114} 
[2026-03-02 16:27:40] local.ERROR: Error tracking recipe usage for order 5330: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5330, 50, 102, 1, 20, 0.00, Order #AZS-020326-015 - 2x Roghni Naan, 2026-03-02 16:27:40, 2026-03-02 16:27:40))  
[2026-03-02 16:27:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5327,"new_order_id":5330,"order_number":"AZS-020326-015"} 
[2026-03-02 16:27:40] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5327,"new_order_id":5330,"order_number":"AZS-020326-015","route":"api/orders/5327"} 
[2026-03-02 16:27:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5318,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":25857},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25858},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25859},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25860},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":25861}],"validated_items":[{"id":25857,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":25858,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":25859,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25860,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25861,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-02 16:27:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5318,"items_count":5} 
[2026-03-02 16:27:48] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25857,"menu_item_id":105,"quantity":1},{"id":25858,"menu_item_id":396,"quantity":1},{"id":25859,"menu_item_id":61,"quantity":1},{"id":25860,"menu_item_id":56,"quantity":1},{"id":25861,"menu_item_id":4,"quantity":1}]} 
[2026-03-02 16:27:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5318,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","396|1|","61|1|","56|1|","4|1|"],"new_items_map_keys":["105|1|","396|1|","61|1|","56|1|","4|1|"]} 
[2026-03-02 16:27:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5318,"order_number":"AZS-020326-013"} 
[2026-03-02 16:27:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5318,"order_number":"AZS-020326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 16:27:48"} 
[2026-03-02 16:41:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5318,"order_number":"AZS-020326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2600,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 16:41:27"} 
[2026-03-02 16:41:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5318,"order_number":"AZS-020326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 16:41:27"} 
[2026-03-02 16:41:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5318,"order_number":"AZS-020326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 16:41:27"} 
[2026-03-02 16:41:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5318,"order_number":"AZS-020326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 16:41:27"} 
[2026-03-02 16:41:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":5318,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":25857},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25858},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25860},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":25861}],"validated_items":[{"id":25857,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":25858,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":25860,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25861,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-02 16:41:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5318,"items_count":4} 
[2026-03-02 16:41:27] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[25859],"items":[{"id":25857,"menu_item_id":105,"quantity":1},{"id":25858,"menu_item_id":396,"quantity":1},{"id":25860,"menu_item_id":56,"quantity":1},{"id":25861,"menu_item_id":4,"quantity":1}]} 
[2026-03-02 16:41:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5318,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["105|1|","396|1|","61|1|","56|1|","4|1|"],"new_items_map_keys":["105|1|","396|1|","56|1|","4|1|"]} 
[2026-03-02 16:41:27] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5318,"order_number":"AZS-020326-013","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":2600,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-02 16:41:27","original_payment_amount":"0.00","grand_total":2587.0,"timestamp":"2026-03-02 16:41:27"} 
[2026-03-02 16:41:27] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5318,"order_number":"AZS-020326-013"} 
[2026-03-02 16:41:27] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-013","replaced_order_id":5318} 
[2026-03-02 16:41:27] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5318,"new_order_id":5331,"order_number":"AZS-020326-013","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"2600.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-02 16:41:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-02 16:41:27"} 
[2026-03-02 16:41:27] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5331,"items_count":4,"items":[{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":4,"quantity":1,"price":90.0}]} 
[2026-03-02 16:41:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5331,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5331}} 
[2026-03-02 16:41:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5331,"item_index":0,"menu_item_id":105} 
[2026-03-02 16:41:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5331,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5331}} 
[2026-03-02 16:41:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5331,"item_index":1,"menu_item_id":396} 
[2026-03-02 16:41:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5331,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5331}} 
[2026-03-02 16:41:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5331,"item_index":2,"menu_item_id":56} 
[2026-03-02 16:41:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5331,"item_index":3,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":90.0,"discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5331}} 
[2026-03-02 16:41:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5331,"item_index":3,"menu_item_id":4} 
[2026-03-02 16:41:27] local.ERROR: Error tracking recipe usage for order 5331: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5331, 105, 196, 1, 500, 0.00, Order #AZS-020326-013 - 1x Mutton Shinwari - Half, 2026-03-02 16:41:27, 2026-03-02 16:41:27))  
[2026-03-02 16:41:27] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5318,"new_order_id":5331,"order_number":"AZS-020326-013"} 
[2026-03-02 16:41:27] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5318,"new_order_id":5331,"order_number":"AZS-020326-013","route":"api/orders/5318"} 
[2026-03-02 16:44:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T04:44:46.639Z","date_to":"2026-03-02T16:44:46.639Z","per_page":"100"} 
[2026-03-02 16:44:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":47,"count":47,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-016","AZS-020326-015","AZS-020326-015","AZS-020326-015","AZS-020326-014","AZS-020326-013","AZS-020326-013","AZS-020326-012","AZS-020326-011","AZS-020326-011","AZS-020326-010","AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["pending","paid","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":31,"paid_count":14,"unpaid_count":2,"unique_order_numbers":16} 
[2026-03-02 16:44:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T04:44:46.655Z","date_to":"2026-03-02T16:44:46.655Z","per_page":"100"} 
[2026-03-02 16:44:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":47,"count":47,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-016","AZS-020326-015","AZS-020326-015","AZS-020326-015","AZS-020326-014","AZS-020326-013","AZS-020326-013","AZS-020326-012","AZS-020326-011","AZS-020326-011","AZS-020326-010","AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["pending","paid","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":31,"paid_count":14,"unpaid_count":2,"unique_order_numbers":16} 
[2026-03-02 16:44:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T04:44:46.639Z","date_to":"2026-03-02T16:44:46.639Z","per_page":"100"} 
[2026-03-02 16:44:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":47,"count":47,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-016","AZS-020326-015","AZS-020326-015","AZS-020326-015","AZS-020326-014","AZS-020326-013","AZS-020326-013","AZS-020326-012","AZS-020326-011","AZS-020326-011","AZS-020326-010","AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["pending","paid","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":31,"paid_count":14,"unpaid_count":2,"unique_order_numbers":16} 
[2026-03-02 17:59:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5332,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null,"id":25942},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":25942,"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-02 17:59:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5332,"items_count":2} 
[2026-03-02 17:59:07] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25942,"menu_item_id":386,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-02 17:59:07] local.INFO: PosOrderController::update - Item changes check {"order_id":5332,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|","2|2|"]} 
[2026-03-02 17:59:07] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5332,"order_number":"AZS-020326-017"} 
[2026-03-02 17:59:07] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-017","replaced_order_id":5332} 
[2026-03-02 17:59:07] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5333,"items_count":2,"items":[{"menu_item_id":386,"quantity":1,"price":"2099.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-02 17:59:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5333,"item_index":0,"item_data":{"menu_item_id":386,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 01","quantity":1,"price":"2099.00","discount_percent":0.0,"discount_amount":0.0,"total":2099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5333}} 
[2026-03-02 17:59:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5333,"item_index":0,"menu_item_id":386} 
[2026-03-02 17:59:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5333,"item_index":1,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5333}} 
[2026-03-02 17:59:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5333,"item_index":1,"menu_item_id":2} 
[2026-03-02 17:59:07] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5332,"new_order_id":5333,"order_number":"AZS-020326-017"} 
[2026-03-02 17:59:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T05:59:28.668Z","date_to":"2026-03-02T17:59:28.668Z","per_page":"100"} 
[2026-03-02 17:59:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":49,"count":49,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-017","AZS-020326-017","AZS-020326-016","AZS-020326-015","AZS-020326-015","AZS-020326-015","AZS-020326-014","AZS-020326-013","AZS-020326-013","AZS-020326-012","AZS-020326-011","AZS-020326-011","AZS-020326-010","AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["pending","changed","pending","paid","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":32,"paid_count":14,"unpaid_count":3,"unique_order_numbers":17} 
[2026-03-02 17:59:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T05:59:28.682Z","date_to":"2026-03-02T17:59:28.682Z","per_page":"100"} 
[2026-03-02 17:59:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":49,"count":49,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-017","AZS-020326-017","AZS-020326-016","AZS-020326-015","AZS-020326-015","AZS-020326-015","AZS-020326-014","AZS-020326-013","AZS-020326-013","AZS-020326-012","AZS-020326-011","AZS-020326-011","AZS-020326-010","AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["pending","changed","pending","paid","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":32,"paid_count":14,"unpaid_count":3,"unique_order_numbers":17} 
[2026-03-02 17:59:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T05:59:28.668Z","date_to":"2026-03-02T17:59:28.668Z","per_page":"100"} 
[2026-03-02 17:59:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":49,"count":49,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-017","AZS-020326-017","AZS-020326-016","AZS-020326-015","AZS-020326-015","AZS-020326-015","AZS-020326-014","AZS-020326-013","AZS-020326-013","AZS-020326-012","AZS-020326-011","AZS-020326-011","AZS-020326-010","AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["pending","changed","pending","paid","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":32,"paid_count":14,"unpaid_count":3,"unique_order_numbers":17} 
[2026-03-02 18:09:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T06:09:48.034Z","date_to":"2026-03-02T18:09:48.034Z","per_page":"100"} 
[2026-03-02 18:09:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":49,"count":49,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-017","AZS-020326-017","AZS-020326-016","AZS-020326-015","AZS-020326-015","AZS-020326-015","AZS-020326-014","AZS-020326-013","AZS-020326-013","AZS-020326-012","AZS-020326-011","AZS-020326-011","AZS-020326-010","AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["pending","changed","pending","paid","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":32,"paid_count":14,"unpaid_count":3,"unique_order_numbers":17} 
[2026-03-02 18:09:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T06:09:48.048Z","date_to":"2026-03-02T18:09:48.048Z","per_page":"100"} 
[2026-03-02 18:09:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":49,"count":49,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-017","AZS-020326-017","AZS-020326-016","AZS-020326-015","AZS-020326-015","AZS-020326-015","AZS-020326-014","AZS-020326-013","AZS-020326-013","AZS-020326-012","AZS-020326-011","AZS-020326-011","AZS-020326-010","AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["pending","changed","pending","paid","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":32,"paid_count":14,"unpaid_count":3,"unique_order_numbers":17} 
[2026-03-02 18:09:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T06:09:48.034Z","date_to":"2026-03-02T18:09:48.034Z","per_page":"100"} 
[2026-03-02 18:09:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":49,"count":49,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-017","AZS-020326-017","AZS-020326-016","AZS-020326-015","AZS-020326-015","AZS-020326-015","AZS-020326-014","AZS-020326-013","AZS-020326-013","AZS-020326-012","AZS-020326-011","AZS-020326-011","AZS-020326-010","AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["pending","changed","pending","paid","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":32,"paid_count":14,"unpaid_count":3,"unique_order_numbers":17} 
[2026-03-02 19:17:19] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5329,"order_number":"AZS-020326-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":400,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 19:17:19"} 
[2026-03-02 19:17:19] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5329,"order_number":"AZS-020326-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":400,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 19:17:19"} 
[2026-03-02 19:17:19] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5329,"order_number":"AZS-020326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":400,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 19:17:19"} 
[2026-03-02 19:17:19] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5329,"order_number":"AZS-020326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":400,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 19:17:19"} 
[2026-03-02 19:17:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5329,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25931}],"validated_items":[{"id":25931,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-02 19:17:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5329,"items_count":1} 
[2026-03-02 19:17:19] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25931,"menu_item_id":6,"quantity":2}]} 
[2026-03-02 19:17:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5329,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-02 19:17:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5329,"order_number":"AZS-020326-016"} 
[2026-03-02 19:17:19] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5329,"order_number":"AZS-020326-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":400,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-02 19:17:19","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-02 19:17:19"} 
[2026-03-02 19:17:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5329,"order_number":"AZS-020326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-02 19:17:19"} 
[2026-03-02 19:17:19] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5329,"order_number":"AZS-020326-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"400.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-02 19:17:19","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":400,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"400.00","database_verification_match":true,"timestamp":"2026-03-02 19:17:19"} 
[2026-03-02 20:05:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5334,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":25945},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25946}],"validated_items":[{"id":25945,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":25946,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-02 20:05:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5334,"items_count":2} 
[2026-03-02 20:05:23] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25945,"menu_item_id":105,"quantity":1},{"id":25946,"menu_item_id":52,"quantity":2}]} 
[2026-03-02 20:05:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5334,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["105|1|","52|2|"],"new_items_map_keys":["105|1|","52|2|"]} 
[2026-03-02 20:05:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5334,"order_number":"AZS-020326-018"} 
[2026-03-02 20:05:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5334,"order_number":"AZS-020326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 20:05:23"} 
[2026-03-02 21:12:41] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5334,"order_number":"AZS-020326-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2456,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 21:12:41"} 
[2026-03-02 21:12:41] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5334,"order_number":"AZS-020326-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2456,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 21:12:41"} 
[2026-03-02 21:12:41] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5334,"order_number":"AZS-020326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2456,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 21:12:41"} 
[2026-03-02 21:12:41] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5334,"order_number":"AZS-020326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2456,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 21:12:41"} 
[2026-03-02 21:12:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5334,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":25945},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25946}],"validated_items":[{"id":25945,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":25946,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-02 21:12:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5334,"items_count":2} 
[2026-03-02 21:12:41] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25945,"menu_item_id":105,"quantity":1},{"id":25946,"menu_item_id":52,"quantity":2}]} 
[2026-03-02 21:12:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5334,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["105|1|","52|2|"],"new_items_map_keys":["105|1|","52|2|"]} 
[2026-03-02 21:12:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5334,"order_number":"AZS-020326-018"} 
[2026-03-02 21:12:41] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5334,"order_number":"AZS-020326-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2456,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-02 21:12:41","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-02 21:12:41"} 
[2026-03-02 21:12:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5334,"order_number":"AZS-020326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-02 21:12:41"} 
[2026-03-02 21:12:41] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5334,"order_number":"AZS-020326-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2456.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-02 21:12:41","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2456,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2456.00","database_verification_match":true,"timestamp":"2026-03-02 21:12:41"} 
[2026-03-02 21:14:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5333,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null,"id":25943},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null,"id":25944}],"validated_items":[{"id":25943,"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null},{"id":25944,"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-02 21:14:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5333,"items_count":2} 
[2026-03-02 21:14:06] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25943,"menu_item_id":386,"quantity":1},{"id":25944,"menu_item_id":2,"quantity":2}]} 
[2026-03-02 21:14:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5333,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["386|1|","2|2|"],"new_items_map_keys":["386|1|","2|2|"]} 
[2026-03-02 21:14:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5333,"order_number":"AZS-020326-017"} 
[2026-03-02 21:14:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5333,"order_number":"AZS-020326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-02 21:14:06"} 
[2026-03-02 21:14:19] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5333,"order_number":"AZS-020326-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2359,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 21:14:19"} 
[2026-03-02 21:14:19] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5333,"order_number":"AZS-020326-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2359,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 21:14:19"} 
[2026-03-02 21:14:19] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5333,"order_number":"AZS-020326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2359,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 21:14:19"} 
[2026-03-02 21:14:19] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5333,"order_number":"AZS-020326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2359,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 21:14:19"} 
[2026-03-02 21:14:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5333,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":25943},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":25944}],"validated_items":[{"id":25943,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null},{"id":25944,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-02 21:14:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5333,"items_count":2} 
[2026-03-02 21:14:19] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25943,"menu_item_id":386,"quantity":1},{"id":25944,"menu_item_id":2,"quantity":2}]} 
[2026-03-02 21:14:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5333,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["386|1|","2|2|"],"new_items_map_keys":["386|1|","2|2|"]} 
[2026-03-02 21:14:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5333,"order_number":"AZS-020326-017"} 
[2026-03-02 21:14:19] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5333,"order_number":"AZS-020326-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2359,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-02 21:14:19","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-02 21:14:19"} 
[2026-03-02 21:14:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5333,"order_number":"AZS-020326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-02 21:14:19"} 
[2026-03-02 21:14:19] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5333,"order_number":"AZS-020326-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2359.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-02 21:14:19","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2359,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2359.00","database_verification_match":true,"timestamp":"2026-03-02 21:14:19"} 
[2026-03-02 21:14:33] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5324,"order_number":"AZS-020326-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 21:14:33"} 
[2026-03-02 21:14:33] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5324,"order_number":"AZS-020326-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 21:14:33"} 
[2026-03-02 21:14:33] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5324,"order_number":"AZS-020326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 21:14:33"} 
[2026-03-02 21:14:33] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5324,"order_number":"AZS-020326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 21:14:33"} 
[2026-03-02 21:14:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5324,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null,"id":25897}],"validated_items":[{"id":25897,"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-02 21:14:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5324,"items_count":1} 
[2026-03-02 21:14:33] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25897,"menu_item_id":417,"quantity":3}]} 
[2026-03-02 21:14:33] local.INFO: PosOrderController::update - Item changes check {"order_id":5324,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|3|"],"new_items_map_keys":["417|3|"]} 
[2026-03-02 21:14:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5324,"order_number":"AZS-020326-014"} 
[2026-03-02 21:14:33] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5324,"order_number":"AZS-020326-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-02 21:14:33","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-02 21:14:33"} 
[2026-03-02 21:14:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5324,"order_number":"AZS-020326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-02 21:14:33"} 
[2026-03-02 21:14:33] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5324,"order_number":"AZS-020326-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-02 21:14:33","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1500.00","database_verification_match":true,"timestamp":"2026-03-02 21:14:33"} 
[2026-03-02 21:14:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T09:14:52.067Z","date_to":"2026-03-02T21:14:52.067Z","per_page":"100"} 
[2026-03-02 21:14:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":50,"count":50,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-018","AZS-020326-017","AZS-020326-017","AZS-020326-016","AZS-020326-015","AZS-020326-015","AZS-020326-015","AZS-020326-014","AZS-020326-013","AZS-020326-013","AZS-020326-012","AZS-020326-011","AZS-020326-011","AZS-020326-010","AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["paid","paid","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":32,"paid_count":18,"unpaid_count":0,"unique_order_numbers":18} 
[2026-03-02 21:14:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T09:14:52.082Z","date_to":"2026-03-02T21:14:52.082Z","per_page":"100"} 
[2026-03-02 21:14:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":50,"count":50,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-018","AZS-020326-017","AZS-020326-017","AZS-020326-016","AZS-020326-015","AZS-020326-015","AZS-020326-015","AZS-020326-014","AZS-020326-013","AZS-020326-013","AZS-020326-012","AZS-020326-011","AZS-020326-011","AZS-020326-010","AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["paid","paid","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":32,"paid_count":18,"unpaid_count":0,"unique_order_numbers":18} 
[2026-03-02 21:15:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T09:14:52.067Z","date_to":"2026-03-02T21:14:52.067Z","per_page":"100"} 
[2026-03-02 21:15:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":50,"count":50,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-018","AZS-020326-017","AZS-020326-017","AZS-020326-016","AZS-020326-015","AZS-020326-015","AZS-020326-015","AZS-020326-014","AZS-020326-013","AZS-020326-013","AZS-020326-012","AZS-020326-011","AZS-020326-011","AZS-020326-010","AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["paid","paid","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":32,"paid_count":18,"unpaid_count":0,"unique_order_numbers":18} 
[2026-03-02 21:44:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5335,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":25947},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25947,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-02 21:44:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5335,"items_count":2} 
[2026-03-02 21:44:49] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25947,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":413,"quantity":1}]} 
[2026-03-02 21:44:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5335,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|","413|1|"]} 
[2026-03-02 21:44:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5335,"order_number":"AZS-020326-019"} 
[2026-03-02 21:44:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-019","replaced_order_id":5335} 
[2026-03-02 21:44:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5336,"items_count":2,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":413,"quantity":1,"price":"200.00"}]} 
[2026-03-02 21:44:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5336,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5336}} 
[2026-03-02 21:44:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5336,"item_index":0,"menu_item_id":411} 
[2026-03-02 21:44:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5336,"item_index":1,"item_data":{"menu_item_id":413,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Namkeen Lassi","quantity":1,"price":"200.00","discount_percent":0.0,"discount_amount":0.0,"total":200.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5336}} 
[2026-03-02 21:44:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5336,"item_index":1,"menu_item_id":413} 
[2026-03-02 21:44:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5335,"new_order_id":5336,"order_number":"AZS-020326-019"} 
[2026-03-02 22:32:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5337,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":25950},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25951},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":25950,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":25951,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-02 22:32:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5337,"items_count":3} 
[2026-03-02 22:32:16] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25950,"menu_item_id":411,"quantity":1},{"id":25951,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-03-02 22:32:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5337,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["411|1|","5|1|"],"new_items_map_keys":["411|1|","5|1|","6|2|"]} 
[2026-03-02 22:32:16] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5337,"order_number":"AZS-020326-020"} 
[2026-03-02 22:32:16] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-020","replaced_order_id":5337} 
[2026-03-02 22:32:16] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5339,"items_count":3,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-03-02 22:32:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5339,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5339}} 
[2026-03-02 22:32:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5339,"item_index":0,"menu_item_id":411} 
[2026-03-02 22:32:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5339,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5339}} 
[2026-03-02 22:32:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5339,"item_index":1,"menu_item_id":5} 
[2026-03-02 22:32:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5339,"item_index":2,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5339}} 
[2026-03-02 22:32:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5339,"item_index":2,"menu_item_id":6} 
[2026-03-02 22:32:16] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5337,"new_order_id":5339,"order_number":"AZS-020326-020"} 
[2026-03-02 22:32:58] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5336,"order_number":"AZS-020326-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":800,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 22:32:58"} 
[2026-03-02 22:32:58] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5336,"order_number":"AZS-020326-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":800,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 22:32:58"} 
[2026-03-02 22:32:58] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5336,"order_number":"AZS-020326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":800,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 22:32:58"} 
[2026-03-02 22:32:58] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5336,"order_number":"AZS-020326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":800,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 22:32:58"} 
[2026-03-02 22:32:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5336,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25948},{"menu_item_id":413,"quantity":1,"price":200,"discount_percent":0,"notes":null,"id":25949}],"validated_items":[{"id":25948,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":25949,"menu_item_id":413,"quantity":1,"price":200,"discount_percent":0,"notes":null}]} 
[2026-03-02 22:32:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5336,"items_count":2} 
[2026-03-02 22:32:58] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25948,"menu_item_id":411,"quantity":1},{"id":25949,"menu_item_id":413,"quantity":1}]} 
[2026-03-02 22:32:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5336,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","413|1|"],"new_items_map_keys":["411|1|","413|1|"]} 
[2026-03-02 22:32:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5336,"order_number":"AZS-020326-019"} 
[2026-03-02 22:32:58] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5336,"order_number":"AZS-020326-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":800,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-02 22:32:58","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-02 22:32:58"} 
[2026-03-02 22:32:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5336,"order_number":"AZS-020326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-02 22:32:58"} 
[2026-03-02 22:32:58] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5336,"order_number":"AZS-020326-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"800.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-02 22:32:58","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":800,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"800.00","database_verification_match":true,"timestamp":"2026-03-02 22:32:58"} 
[2026-03-02 22:35:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5338,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25952},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":25953}],"validated_items":[{"id":25952,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":25953,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-02 22:35:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5338,"items_count":2} 
[2026-03-02 22:35:58] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25952,"menu_item_id":411,"quantity":1},{"id":25953,"menu_item_id":50,"quantity":1}]} 
[2026-03-02 22:35:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5338,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","50|1|"],"new_items_map_keys":["411|1|","50|1|"]} 
[2026-03-02 22:35:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5338,"order_number":"AZS-020326-021"} 
[2026-03-02 22:35:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5338,"order_number":"AZS-020326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 22:35:58"} 
[2026-03-02 22:38:00] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5338,"order_number":"AZS-020326-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 22:38:00"} 
[2026-03-02 22:38:00] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5338,"order_number":"AZS-020326-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 22:38:00"} 
[2026-03-02 22:38:00] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5338,"order_number":"AZS-020326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 22:38:00"} 
[2026-03-02 22:38:00] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5338,"order_number":"AZS-020326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 22:38:00"} 
[2026-03-02 22:38:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5338,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25952},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":25953}],"validated_items":[{"id":25952,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":25953,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-02 22:38:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5338,"items_count":2} 
[2026-03-02 22:38:00] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25952,"menu_item_id":411,"quantity":1},{"id":25953,"menu_item_id":50,"quantity":1}]} 
[2026-03-02 22:38:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5338,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","50|1|"],"new_items_map_keys":["411|1|","50|1|"]} 
[2026-03-02 22:38:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5338,"order_number":"AZS-020326-021"} 
[2026-03-02 22:38:00] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5338,"order_number":"AZS-020326-021","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-02 22:38:00","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-02 22:38:00"} 
[2026-03-02 22:38:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5338,"order_number":"AZS-020326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-02 22:38:00"} 
[2026-03-02 22:38:00] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5338,"order_number":"AZS-020326-021","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-02 22:38:00","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-02 22:38:00"} 
[2026-03-02 22:46:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5339,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25954},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25955},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25956}],"validated_items":[{"id":25954,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":25955,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25956,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-02 22:46:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5339,"items_count":3} 
[2026-03-02 22:46:39] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25954,"menu_item_id":411,"quantity":1},{"id":25955,"menu_item_id":5,"quantity":1},{"id":25956,"menu_item_id":6,"quantity":2}]} 
[2026-03-02 22:46:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5339,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|1|","5|1|","6|2|"],"new_items_map_keys":["411|1|","5|1|","6|2|"]} 
[2026-03-02 22:46:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5339,"order_number":"AZS-020326-020"} 
[2026-03-02 22:46:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5339,"order_number":"AZS-020326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 22:46:39"} 
[2026-03-02 22:47:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5339,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":25954},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":25955},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":25956},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25954,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":25955,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":25956,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-02 22:47:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5339,"items_count":4} 
[2026-03-02 22:47:52] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25954,"menu_item_id":411,"quantity":1},{"id":25955,"menu_item_id":5,"quantity":1},{"id":25956,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":416,"quantity":1}]} 
[2026-03-02 22:47:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5339,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["411|1|","5|1|","6|2|"],"new_items_map_keys":["411|1|","5|1|","6|2|","416|1|"]} 
[2026-03-02 22:47:52] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5339,"order_number":"AZS-020326-020"} 
[2026-03-02 22:47:52] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-020","replaced_order_id":5339} 
[2026-03-02 22:47:52] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5341,"items_count":4,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"},{"menu_item_id":416,"quantity":1,"price":"70.00"}]} 
[2026-03-02 22:47:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5341,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5341}} 
[2026-03-02 22:47:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5341,"item_index":0,"menu_item_id":411} 
[2026-03-02 22:47:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5341,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5341}} 
[2026-03-02 22:47:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5341,"item_index":1,"menu_item_id":5} 
[2026-03-02 22:47:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5341,"item_index":2,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5341}} 
[2026-03-02 22:47:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5341,"item_index":2,"menu_item_id":6} 
[2026-03-02 22:47:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5341,"item_index":3,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5341}} 
[2026-03-02 22:47:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5341,"item_index":3,"menu_item_id":416} 
[2026-03-02 22:47:52] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5339,"new_order_id":5341,"order_number":"AZS-020326-020"} 
[2026-03-02 22:48:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5341,"item_index":0,"item_id":25954} 
[2026-03-02 22:48:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5341,"item_index":1,"item_id":25955} 
[2026-03-02 22:48:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5341,"item_index":2,"item_id":25956} 
[2026-03-02 22:48:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5341,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25954},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25955},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":25956},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-02 22:48:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5341,"items_count":4} 
[2026-03-02 22:48:06] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[25958,25959,25960,25961],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":416,"quantity":1}]} 
[2026-03-02 22:48:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5341,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|1|","5|1|","6|2|","416|1|"],"new_items_map_keys":["411|1|","5|1|","6|2|","416|1|"]} 
[2026-03-02 22:48:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5341,"order_number":"AZS-020326-020"} 
[2026-03-02 22:48:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5341,"order_number":"AZS-020326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 22:48:06"} 
[2026-03-02 22:53:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T10:53:31.928Z","date_to":"2026-03-02T22:53:31.928Z","per_page":"100"} 
[2026-03-02 22:53:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T10:53:31.908Z","date_to":"2026-03-02T22:53:31.908Z","per_page":"100"} 
[2026-03-02 22:53:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":57,"count":57,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-022","AZS-020326-021","AZS-020326-020","AZS-020326-020","AZS-020326-020","AZS-020326-019","AZS-020326-019","AZS-020326-018","AZS-020326-017","AZS-020326-017","AZS-020326-016","AZS-020326-015","AZS-020326-015","AZS-020326-015","AZS-020326-014","AZS-020326-013","AZS-020326-013","AZS-020326-012","AZS-020326-011","AZS-020326-011","AZS-020326-010","AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["pending","paid","pending","changed","changed","paid","changed","paid","paid","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":35,"paid_count":20,"unpaid_count":2,"unique_order_numbers":22} 
[2026-03-02 22:53:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":57,"count":57,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-022","AZS-020326-021","AZS-020326-020","AZS-020326-020","AZS-020326-020","AZS-020326-019","AZS-020326-019","AZS-020326-018","AZS-020326-017","AZS-020326-017","AZS-020326-016","AZS-020326-015","AZS-020326-015","AZS-020326-015","AZS-020326-014","AZS-020326-013","AZS-020326-013","AZS-020326-012","AZS-020326-011","AZS-020326-011","AZS-020326-010","AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["pending","paid","pending","changed","changed","paid","changed","paid","paid","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":35,"paid_count":20,"unpaid_count":2,"unique_order_numbers":22} 
[2026-03-02 22:53:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T10:53:31.908Z","date_to":"2026-03-02T22:53:31.908Z","per_page":"100"} 
[2026-03-02 22:53:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":57,"count":57,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-022","AZS-020326-021","AZS-020326-020","AZS-020326-020","AZS-020326-020","AZS-020326-019","AZS-020326-019","AZS-020326-018","AZS-020326-017","AZS-020326-017","AZS-020326-016","AZS-020326-015","AZS-020326-015","AZS-020326-015","AZS-020326-014","AZS-020326-013","AZS-020326-013","AZS-020326-012","AZS-020326-011","AZS-020326-011","AZS-020326-010","AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["pending","paid","pending","changed","changed","paid","changed","paid","paid","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":35,"paid_count":20,"unpaid_count":2,"unique_order_numbers":22} 
[2026-03-02 22:54:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5341,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25958},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25959},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25960},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25961}],"validated_items":[{"id":25958,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":25959,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25960,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":25961,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-02 22:54:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5341,"items_count":4} 
[2026-03-02 22:54:59] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25958,"menu_item_id":411,"quantity":1},{"id":25959,"menu_item_id":5,"quantity":1},{"id":25960,"menu_item_id":6,"quantity":1},{"id":25961,"menu_item_id":416,"quantity":1}]} 
[2026-03-02 22:54:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5341,"has_item_changes":true,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|1|","5|1|","6|2|","416|1|"],"new_items_map_keys":["411|1|","5|1|","6|1|","416|1|"]} 
[2026-03-02 22:54:59] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5341,"order_number":"AZS-020326-020"} 
[2026-03-02 22:54:59] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-020","replaced_order_id":5341} 
[2026-03-02 22:54:59] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5342,"items_count":4,"items":[{"menu_item_id":411,"quantity":1,"price":599.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":6,"quantity":1,"price":199.0},{"menu_item_id":416,"quantity":1,"price":70.0}]} 
[2026-03-02 22:54:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5342,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":599.0,"discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5342}} 
[2026-03-02 22:54:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5342,"item_index":0,"menu_item_id":411} 
[2026-03-02 22:54:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5342,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5342}} 
[2026-03-02 22:54:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5342,"item_index":1,"menu_item_id":5} 
[2026-03-02 22:54:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5342,"item_index":2,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5342}} 
[2026-03-02 22:54:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5342,"item_index":2,"menu_item_id":6} 
[2026-03-02 22:54:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5342,"item_index":3,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5342}} 
[2026-03-02 22:54:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5342,"item_index":3,"menu_item_id":416} 
[2026-03-02 22:54:59] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5341,"new_order_id":5342,"order_number":"AZS-020326-020"} 
[2026-03-02 22:55:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5342,"item_index":0,"item_id":25958} 
[2026-03-02 22:55:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5342,"item_index":1,"item_id":25959} 
[2026-03-02 22:55:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5342,"item_index":2,"item_id":25960} 
[2026-03-02 22:55:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5342,"item_index":3,"item_id":25961} 
[2026-03-02 22:55:40] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5342,"order_number":"AZS-020326-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1038,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 22:55:40"} 
[2026-03-02 22:55:40] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5342,"order_number":"AZS-020326-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1038,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 22:55:40"} 
[2026-03-02 22:55:40] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5342,"order_number":"AZS-020326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1038,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 22:55:40"} 
[2026-03-02 22:55:40] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5342,"order_number":"AZS-020326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1038,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 22:55:40"} 
[2026-03-02 22:55:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5342,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":25958},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25959},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":25960},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25961}],"validated_items":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-02 22:55:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5342,"items_count":4} 
[2026-03-02 22:55:40] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[25962,25963,25964,25965],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":6,"quantity":1},{"id":null,"menu_item_id":416,"quantity":1}]} 
[2026-03-02 22:55:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5342,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|1|","5|1|","6|1|","416|1|"],"new_items_map_keys":["411|1|","5|1|","6|1|","416|1|"]} 
[2026-03-02 22:55:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5342,"order_number":"AZS-020326-020"} 
[2026-03-02 22:55:40] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5342,"order_number":"AZS-020326-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1038,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-02 22:55:40","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-02 22:55:40"} 
[2026-03-02 22:55:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5342,"order_number":"AZS-020326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-02 22:55:40"} 
[2026-03-02 22:55:40] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5342,"order_number":"AZS-020326-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1038.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-02 22:55:40","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1038,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1038.00","database_verification_match":true,"timestamp":"2026-03-02 22:55:40"} 
[2026-03-02 23:04:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5340,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":25957},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25957,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-02 23:04:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5340,"items_count":3} 
[2026-03-02 23:04:03] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25957,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":425,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-02 23:04:03] local.INFO: PosOrderController::update - Item changes check {"order_id":5340,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["411|2|"],"new_items_map_keys":["411|2|","425|1|","5|1|"]} 
[2026-03-02 23:04:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5340,"order_number":"AZS-020326-022"} 
[2026-03-02 23:04:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-022","replaced_order_id":5340} 
[2026-03-02 23:04:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5343,"items_count":3,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":425,"quantity":1,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-02 23:04:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5343,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5343}} 
[2026-03-02 23:04:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5343,"item_index":0,"menu_item_id":411} 
[2026-03-02 23:04:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5343,"item_index":1,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5343}} 
[2026-03-02 23:04:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5343,"item_index":1,"menu_item_id":425} 
[2026-03-02 23:04:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5343,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5343}} 
[2026-03-02 23:04:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5343,"item_index":2,"menu_item_id":5} 
[2026-03-02 23:04:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5340,"new_order_id":5343,"order_number":"AZS-020326-022"} 
[2026-03-02 23:11:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5343,"item_index":0,"item_id":25957} 
[2026-03-02 23:11:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":3,"order_id":5343,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":25957},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-03-02 23:11:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5343,"items_count":4} 
[2026-03-02 23:11:39] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":3,"items_to_remove":[25966,25967,25968],"items":[{"id":null,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":425,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":4}]} 
[2026-03-02 23:11:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5343,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["411|2|","425|1|","5|1|"],"new_items_map_keys":["411|2|","425|1|","5|1|","13|4|"]} 
[2026-03-02 23:11:39] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5343,"order_number":"AZS-020326-022"} 
[2026-03-02 23:11:39] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-022","replaced_order_id":5343} 
[2026-03-02 23:11:39] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5344,"items_count":4,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":425,"quantity":1,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":4,"price":"249.00"}]} 
[2026-03-02 23:11:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5344,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5344}} 
[2026-03-02 23:11:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5344,"item_index":0,"menu_item_id":411} 
[2026-03-02 23:11:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5344,"item_index":1,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5344}} 
[2026-03-02 23:11:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5344,"item_index":1,"menu_item_id":425} 
[2026-03-02 23:11:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5344,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5344}} 
[2026-03-02 23:11:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5344,"item_index":2,"menu_item_id":5} 
[2026-03-02 23:11:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5344,"item_index":3,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":4,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5344}} 
[2026-03-02 23:11:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5344,"item_index":3,"menu_item_id":13} 
[2026-03-02 23:11:39] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5343,"new_order_id":5344,"order_number":"AZS-020326-022"} 
[2026-03-02 23:19:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5344,"item_index":0,"item_id":25957} 
[2026-03-02 23:19:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":4,"order_id":5344,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":25957},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-02 23:19:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5344,"items_count":5} 
[2026-03-02 23:19:55] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":4,"items_to_remove":[25969,25970,25971,25972],"items":[{"id":null,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":425,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":4},{"id":null,"menu_item_id":412,"quantity":1}]} 
[2026-03-02 23:19:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5344,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["411|2|","425|1|","5|1|","13|4|"],"new_items_map_keys":["411|2|","425|1|","5|1|","13|4|","412|1|"]} 
[2026-03-02 23:19:55] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5344,"order_number":"AZS-020326-022"} 
[2026-03-02 23:19:55] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-022","replaced_order_id":5344} 
[2026-03-02 23:19:55] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5345,"items_count":5,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":425,"quantity":1,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":4,"price":"249.00"},{"menu_item_id":412,"quantity":1,"price":"220.00"}]} 
[2026-03-02 23:19:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5345,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5345}} 
[2026-03-02 23:19:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5345,"item_index":0,"menu_item_id":411} 
[2026-03-02 23:19:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5345,"item_index":1,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5345}} 
[2026-03-02 23:19:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5345,"item_index":1,"menu_item_id":425} 
[2026-03-02 23:19:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5345,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5345}} 
[2026-03-02 23:19:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5345,"item_index":2,"menu_item_id":5} 
[2026-03-02 23:19:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5345,"item_index":3,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":4,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5345}} 
[2026-03-02 23:19:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5345,"item_index":3,"menu_item_id":13} 
[2026-03-02 23:19:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5345,"item_index":4,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":1,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":220.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5345}} 
[2026-03-02 23:19:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5345,"item_index":4,"menu_item_id":412} 
[2026-03-02 23:19:55] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5344,"new_order_id":5345,"order_number":"AZS-020326-022"} 
[2026-03-02 23:34:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5345,"item_index":0,"item_id":25957} 
[2026-03-02 23:34:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5345,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":25957},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-02 23:34:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5345,"items_count":5} 
[2026-03-02 23:34:19] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[25973,25974,25975,25976,25977],"items":[{"id":null,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":425,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":4},{"id":null,"menu_item_id":412,"quantity":1}]} 
[2026-03-02 23:34:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5345,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|2|","425|1|","5|1|","13|4|","412|1|"],"new_items_map_keys":["411|2|","425|1|","5|1|","13|4|","412|1|"]} 
[2026-03-02 23:34:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5345,"order_number":"AZS-020326-022"} 
[2026-03-02 23:34:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5345,"order_number":"AZS-020326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 23:34:19"} 
[2026-03-02 23:37:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5345,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":25973},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25974},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25975},{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":25976},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null,"id":25977}],"validated_items":[{"id":25973,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":25974,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":25975,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25976,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null},{"id":25977,"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-02 23:37:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5345,"items_count":5} 
[2026-03-02 23:37:32] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25973,"menu_item_id":411,"quantity":2},{"id":25974,"menu_item_id":425,"quantity":1},{"id":25975,"menu_item_id":5,"quantity":1},{"id":25976,"menu_item_id":13,"quantity":4},{"id":25977,"menu_item_id":412,"quantity":1}]} 
[2026-03-02 23:37:32] local.INFO: PosOrderController::update - Item changes check {"order_id":5345,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|2|","425|1|","5|1|","13|4|","412|1|"],"new_items_map_keys":["411|2|","425|1|","5|1|","13|4|","412|1|"]} 
[2026-03-02 23:37:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5345,"order_number":"AZS-020326-022"} 
[2026-03-02 23:37:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5345,"order_number":"AZS-020326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 23:37:32"} 
[2026-03-02 23:38:53] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5345,"order_number":"AZS-020326-022","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2185,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 23:38:53"} 
[2026-03-02 23:38:53] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5345,"order_number":"AZS-020326-022","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2185,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 23:38:53"} 
[2026-03-02 23:38:53] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5345,"order_number":"AZS-020326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2185,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 23:38:53"} 
[2026-03-02 23:38:53] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5345,"order_number":"AZS-020326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2185,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 23:38:53"} 
[2026-03-02 23:38:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5345,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":25973},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":25974},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25975},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":25976},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null,"id":25977}],"validated_items":[{"id":25973,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":25974,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":25975,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":25976,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":25977,"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-02 23:38:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5345,"items_count":5} 
[2026-03-02 23:38:53] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25973,"menu_item_id":411,"quantity":2},{"id":25974,"menu_item_id":425,"quantity":1},{"id":25975,"menu_item_id":5,"quantity":1},{"id":25976,"menu_item_id":13,"quantity":2},{"id":25977,"menu_item_id":412,"quantity":1}]} 
[2026-03-02 23:38:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5345,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|2|","425|1|","5|1|","13|4|","412|1|"],"new_items_map_keys":["411|2|","425|1|","5|1|","13|2|","412|1|"]} 
[2026-03-02 23:38:53] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5345,"order_number":"AZS-020326-022","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":2185,"new_order_data_payment_mode":"online","new_order_data_paid_at":"2026-03-02 23:38:53","original_payment_amount":"0.00","grand_total":2185.0,"timestamp":"2026-03-02 23:38:53"} 
[2026-03-02 23:38:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5345,"order_number":"AZS-020326-022"} 
[2026-03-02 23:38:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020326-022","replaced_order_id":5345} 
[2026-03-02 23:38:53] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5345,"new_order_id":5347,"order_number":"AZS-020326-022","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"2185.00","payment_mode_after_creation":"online","paid_at_after_creation":"2026-03-02 23:38:53","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2185,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-02 23:38:53"} 
[2026-03-02 23:38:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5347,"items_count":5,"items":[{"menu_item_id":411,"quantity":2,"price":599.0},{"menu_item_id":425,"quantity":1,"price":99.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":13,"quantity":2,"price":249.0},{"menu_item_id":412,"quantity":1,"price":220.0}]} 
[2026-03-02 23:38:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5347,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":599.0,"discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5347}} 
[2026-03-02 23:38:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5347,"item_index":0,"menu_item_id":411} 
[2026-03-02 23:38:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5347,"item_index":1,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5347}} 
[2026-03-02 23:38:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5347,"item_index":1,"menu_item_id":425} 
[2026-03-02 23:38:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5347,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5347}} 
[2026-03-02 23:38:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5347,"item_index":2,"menu_item_id":5} 
[2026-03-02 23:38:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5347,"item_index":3,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5347}} 
[2026-03-02 23:38:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5347,"item_index":3,"menu_item_id":13} 
[2026-03-02 23:38:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5347,"item_index":4,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":1,"price":220.0,"discount_percent":0.0,"discount_amount":0.0,"total":220.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5347}} 
[2026-03-02 23:38:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5347,"item_index":4,"menu_item_id":412} 
[2026-03-02 23:38:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5345,"new_order_id":5347,"order_number":"AZS-020326-022"} 
[2026-03-02 23:38:53] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5345,"new_order_id":5347,"order_number":"AZS-020326-022","route":"api/orders/5345"} 
[2026-03-02 23:52:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5346,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":25978},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25979},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":25980}],"validated_items":[{"id":25978,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"id":25979,"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":25980,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-02 23:52:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5346,"items_count":3} 
[2026-03-02 23:52:11] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25978,"menu_item_id":286,"quantity":2},{"id":25979,"menu_item_id":421,"quantity":1},{"id":25980,"menu_item_id":4,"quantity":1}]} 
[2026-03-02 23:52:11] local.INFO: PosOrderController::update - Item changes check {"order_id":5346,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["286|2|","421|1|","4|1|"],"new_items_map_keys":["286|2|","421|1|","4|1|"]} 
[2026-03-02 23:52:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5346,"order_number":"AZS-020326-023"} 
[2026-03-02 23:52:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5346,"order_number":"AZS-020326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-02 23:52:11"} 
[2026-03-02 23:52:56] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5346,"order_number":"AZS-020326-023","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":190,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 23:52:56"} 
[2026-03-02 23:52:56] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5346,"order_number":"AZS-020326-023","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":190,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-02 23:52:56"} 
[2026-03-02 23:52:56] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5346,"order_number":"AZS-020326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":190,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 23:52:56"} 
[2026-03-02 23:52:56] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5346,"order_number":"AZS-020326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":190,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-02 23:52:56"} 
[2026-03-02 23:52:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5346,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":25978},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":25979},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":25980}],"validated_items":[{"id":25978,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"id":25979,"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":25980,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-02 23:52:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5346,"items_count":3} 
[2026-03-02 23:52:56] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25978,"menu_item_id":286,"quantity":2},{"id":25979,"menu_item_id":421,"quantity":1},{"id":25980,"menu_item_id":4,"quantity":1}]} 
[2026-03-02 23:52:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5346,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["286|2|","421|1|","4|1|"],"new_items_map_keys":["286|2|","421|1|","4|1|"]} 
[2026-03-02 23:52:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5346,"order_number":"AZS-020326-023"} 
[2026-03-02 23:52:56] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5346,"order_number":"AZS-020326-023","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":190,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-02 23:52:56","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-02 23:52:56"} 
[2026-03-02 23:52:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5346,"order_number":"AZS-020326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-02 23:52:56"} 
[2026-03-02 23:52:56] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5346,"order_number":"AZS-020326-023","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"190.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-02 23:52:56","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":190,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"190.00","database_verification_match":true,"timestamp":"2026-03-02 23:52:56"} 
[2026-03-02 23:53:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T11:53:22.924Z","date_to":"2026-03-02T23:53:22.924Z","per_page":"100"} 
[2026-03-02 23:53:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":63,"count":63,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-023","AZS-020326-022","AZS-020326-022","AZS-020326-022","AZS-020326-022","AZS-020326-022","AZS-020326-021","AZS-020326-020","AZS-020326-020","AZS-020326-020","AZS-020326-020","AZS-020326-019","AZS-020326-019","AZS-020326-018","AZS-020326-017","AZS-020326-017","AZS-020326-016","AZS-020326-015","AZS-020326-015","AZS-020326-015","AZS-020326-014","AZS-020326-013","AZS-020326-013","AZS-020326-012","AZS-020326-011","AZS-020326-011","AZS-020326-010","AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["paid","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","paid","paid","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":40,"paid_count":23,"unpaid_count":0,"unique_order_numbers":23} 
[2026-03-02 23:53:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T11:53:22.908Z","date_to":"2026-03-02T23:53:22.908Z","per_page":"100"} 
[2026-03-02 23:53:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":63,"count":63,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-023","AZS-020326-022","AZS-020326-022","AZS-020326-022","AZS-020326-022","AZS-020326-022","AZS-020326-021","AZS-020326-020","AZS-020326-020","AZS-020326-020","AZS-020326-020","AZS-020326-019","AZS-020326-019","AZS-020326-018","AZS-020326-017","AZS-020326-017","AZS-020326-016","AZS-020326-015","AZS-020326-015","AZS-020326-015","AZS-020326-014","AZS-020326-013","AZS-020326-013","AZS-020326-012","AZS-020326-011","AZS-020326-011","AZS-020326-010","AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["paid","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","paid","paid","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":40,"paid_count":23,"unpaid_count":0,"unique_order_numbers":23} 
[2026-03-02 23:53:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T11:53:22.908Z","date_to":"2026-03-02T23:53:22.908Z","per_page":"100"} 
[2026-03-02 23:53:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":63,"count":63,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-023","AZS-020326-022","AZS-020326-022","AZS-020326-022","AZS-020326-022","AZS-020326-022","AZS-020326-021","AZS-020326-020","AZS-020326-020","AZS-020326-020","AZS-020326-020","AZS-020326-019","AZS-020326-019","AZS-020326-018","AZS-020326-017","AZS-020326-017","AZS-020326-016","AZS-020326-015","AZS-020326-015","AZS-020326-015","AZS-020326-014","AZS-020326-013","AZS-020326-013","AZS-020326-012","AZS-020326-011","AZS-020326-011","AZS-020326-010","AZS-020326-010","AZS-020326-010","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-009","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-008","AZS-020326-007","AZS-020326-007","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-006","AZS-020326-005","AZS-020326-005","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-004","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-003","AZS-020326-002","AZS-020326-002","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001","AZS-020326-001"],"order_statuses":["paid","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","paid","paid","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed"],"deleted_count":40,"paid_count":23,"unpaid_count":0,"unique_order_numbers":23} 
[2026-03-03 08:36:52] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T20:36:46.681Z","date_to":"2026-03-03T08:36:46.681Z","per_page":"100"} 
[2026-03-03 08:36:52] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T20:36:46.653Z","date_to":"2026-03-03T08:36:46.653Z","per_page":"100"} 
[2026-03-03 08:36:52] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-023","AZS-020326-022","AZS-020326-022","AZS-020326-022","AZS-020326-022","AZS-020326-022","AZS-020326-021","AZS-020326-020","AZS-020326-020","AZS-020326-020","AZS-020326-020","AZS-020326-019","AZS-020326-019"],"order_statuses":["paid","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed"],"deleted_count":8,"paid_count":5,"unpaid_count":0,"unique_order_numbers":5} 
[2026-03-03 08:36:52] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-023","AZS-020326-022","AZS-020326-022","AZS-020326-022","AZS-020326-022","AZS-020326-022","AZS-020326-021","AZS-020326-020","AZS-020326-020","AZS-020326-020","AZS-020326-020","AZS-020326-019","AZS-020326-019"],"order_statuses":["paid","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed"],"deleted_count":8,"paid_count":5,"unpaid_count":0,"unique_order_numbers":5} 
[2026-03-03 08:36:52] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-02T20:36:46.653Z","date_to":"2026-03-03T08:36:46.653Z","per_page":"100"} 
[2026-03-03 08:36:52] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020326-023","AZS-020326-022","AZS-020326-022","AZS-020326-022","AZS-020326-022","AZS-020326-022","AZS-020326-021","AZS-020326-020","AZS-020326-020","AZS-020326-020","AZS-020326-020","AZS-020326-019","AZS-020326-019"],"order_statuses":["paid","paid","changed","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed"],"deleted_count":8,"paid_count":5,"unpaid_count":0,"unique_order_numbers":5} 
[2026-03-03 08:40:08] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-01T11:00:00.000Z","date_to":"2026-03-01T13:59:59.999Z","per_page":"100"} 
[2026-03-03 08:40:08] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":1941,"count":100,"current_page":1,"last_page":20,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-004","AZS-010326-004","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-003","AZS-010326-002","AZS-010326-002","AZS-010326-001","AZS-280226-037","AZS-280226-036","AZS-280226-036","AZS-280226-036","AZS-280226-035","AZS-280226-035","AZS-280226-034","AZS-280226-034","AZS-280226-034","AZS-280226-034","AZS-280226-033","AZS-280226-033","AZS-280226-033","AZS-280226-032","AZS-280226-032","AZS-280226-032","AZS-280226-031","AZS-280226-031","AZS-280226-031","AZS-280226-030","AZS-280226-030","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-029","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-028","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-027","AZS-280226-026","AZS-280226-026","AZS-280226-026","AZS-280226-025","AZS-280226-025","AZS-280226-024","AZS-280226-024","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-022","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-016","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-015","AZS-280226-014","AZS-280226-013","AZS-280226-013","AZS-280226-013","AZS-280226-012","AZS-280226-011","AZS-280226-011","AZS-280226-010","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-007","AZS-280226-007","AZS-280226-006","AZS-280226-006","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-005","AZS-280226-004"],"order_statuses":["paid","changed","paid","changed","changed","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","paid","paid","changed","paid","paid","paid","changed","changed","changed","paid","changed","changed","changed","changed","paid","pending","changed","changed","paid","paid","changed","paid","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid"],"deleted_count":62,"paid_count":37,"unpaid_count":1,"unique_order_numbers":38} 
[2026-03-03 08:40:38] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-01T11:00:00.000Z","date_to":"2026-03-01T13:59:59.999Z","per_page":"100"} 
[2026-03-03 08:40:38] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":781,"count":100,"current_page":1,"last_page":8,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-004","AZS-010326-003","AZS-010326-002","AZS-010326-001","AZS-280226-037","AZS-280226-036","AZS-280226-035","AZS-280226-034","AZS-280226-033","AZS-280226-032","AZS-280226-031","AZS-280226-030","AZS-280226-029","AZS-280226-028","AZS-280226-027","AZS-280226-026","AZS-280226-025","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-015","AZS-280226-014","AZS-280226-012","AZS-280226-011","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-006","AZS-280226-005","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-270226-030","AZS-270226-029","AZS-270226-028","AZS-270226-027","AZS-270226-026","AZS-270226-025","AZS-270226-024","AZS-270226-023","AZS-270226-022","AZS-270226-021","AZS-270226-020","AZS-270226-019","AZS-270226-018","AZS-270226-017","AZS-270226-016","AZS-270226-015","AZS-270226-014","AZS-270226-013","AZS-270226-012","AZS-270226-011","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-007","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-260226-025","AZS-260226-024","AZS-260226-023","AZS-260226-022","AZS-260226-021","AZS-260226-020","AZS-260226-019","AZS-260226-018","AZS-260226-017","AZS-260226-016","AZS-260226-015","AZS-260226-014","AZS-260226-013","AZS-260226-012","AZS-260226-011","AZS-260226-010","AZS-260226-009","AZS-260226-008","AZS-260226-007","AZS-260226-006","AZS-260226-005","AZS-260226-004","AZS-260226-003","AZS-260226-002","AZS-260226-001","AZS-250226-041","AZS-250226-040","AZS-250226-039","AZS-250226-038","AZS-250226-037"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":100,"unpaid_count":0,"unique_order_numbers":100} 
[2026-03-03 08:40:40] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-01T11:00:00.000Z","date_to":"2026-03-01T13:59:59.999Z","per_page":"100"} 
[2026-03-03 08:40:40] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":781,"count":100,"current_page":1,"last_page":8,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010326-004","AZS-010326-003","AZS-010326-002","AZS-010326-001","AZS-280226-037","AZS-280226-036","AZS-280226-035","AZS-280226-034","AZS-280226-033","AZS-280226-032","AZS-280226-031","AZS-280226-030","AZS-280226-029","AZS-280226-028","AZS-280226-027","AZS-280226-026","AZS-280226-025","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-015","AZS-280226-014","AZS-280226-012","AZS-280226-011","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-006","AZS-280226-005","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-270226-030","AZS-270226-029","AZS-270226-028","AZS-270226-027","AZS-270226-026","AZS-270226-025","AZS-270226-024","AZS-270226-023","AZS-270226-022","AZS-270226-021","AZS-270226-020","AZS-270226-019","AZS-270226-018","AZS-270226-017","AZS-270226-016","AZS-270226-015","AZS-270226-014","AZS-270226-013","AZS-270226-012","AZS-270226-011","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-007","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-260226-025","AZS-260226-024","AZS-260226-023","AZS-260226-022","AZS-260226-021","AZS-260226-020","AZS-260226-019","AZS-260226-018","AZS-260226-017","AZS-260226-016","AZS-260226-015","AZS-260226-014","AZS-260226-013","AZS-260226-012","AZS-260226-011","AZS-260226-010","AZS-260226-009","AZS-260226-008","AZS-260226-007","AZS-260226-006","AZS-260226-005","AZS-260226-004","AZS-260226-003","AZS-260226-002","AZS-260226-001","AZS-250226-041","AZS-250226-040","AZS-250226-039","AZS-250226-038","AZS-250226-037"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":100,"unpaid_count":0,"unique_order_numbers":100} 
[2026-03-03 08:40:45] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-02-01T11:00:00.000Z","date_to":"2026-03-01T13:59:59.999Z","per_page":"1000"} 
[2026-03-03 08:40:45] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":781,"count":781,"current_page":1,"last_page":1,"per_page":1000,"order_branch_ids":[1],"order_numbers":["AZS-010326-004","AZS-010326-003","AZS-010326-002","AZS-010326-001","AZS-280226-037","AZS-280226-036","AZS-280226-035","AZS-280226-034","AZS-280226-033","AZS-280226-032","AZS-280226-031","AZS-280226-030","AZS-280226-029","AZS-280226-028","AZS-280226-027","AZS-280226-026","AZS-280226-025","AZS-280226-024","AZS-280226-023","AZS-280226-022","AZS-280226-021","AZS-280226-020","AZS-280226-019","AZS-280226-018","AZS-280226-017","AZS-280226-016","AZS-280226-015","AZS-280226-014","AZS-280226-012","AZS-280226-011","AZS-280226-010","AZS-280226-009","AZS-280226-008","AZS-280226-007","AZS-280226-006","AZS-280226-005","AZS-280226-004","AZS-280226-003","AZS-280226-002","AZS-280226-001","AZS-270226-030","AZS-270226-029","AZS-270226-028","AZS-270226-027","AZS-270226-026","AZS-270226-025","AZS-270226-024","AZS-270226-023","AZS-270226-022","AZS-270226-021","AZS-270226-020","AZS-270226-019","AZS-270226-018","AZS-270226-017","AZS-270226-016","AZS-270226-015","AZS-270226-014","AZS-270226-013","AZS-270226-012","AZS-270226-011","AZS-270226-010","AZS-270226-009","AZS-270226-008","AZS-270226-007","AZS-270226-006","AZS-270226-005","AZS-270226-004","AZS-270226-003","AZS-270226-002","AZS-270226-001","AZS-260226-025","AZS-260226-024","AZS-260226-023","AZS-260226-022","AZS-260226-021","AZS-260226-020","AZS-260226-019","AZS-260226-018","AZS-260226-017","AZS-260226-016","AZS-260226-015","AZS-260226-014","AZS-260226-013","AZS-260226-012","AZS-260226-011","AZS-260226-010","AZS-260226-009","AZS-260226-008","AZS-260226-007","AZS-260226-006","AZS-260226-005","AZS-260226-004","AZS-260226-003","AZS-260226-002","AZS-260226-001","AZS-250226-041","AZS-250226-040","AZS-250226-039","AZS-250226-038","AZS-250226-037","AZS-250226-036","AZS-250226-035","AZS-250226-034","AZS-250226-033","AZS-250226-032","AZS-250226-031","AZS-250226-030","AZS-250226-029","AZS-250226-028","AZS-250226-027","AZS-250226-026","AZS-250226-025","AZS-250226-024","AZS-250226-023","AZS-250226-022","AZS-250226-021","AZS-250226-020","AZS-250226-019","AZS-250226-018","AZS-250226-017","AZS-250226-016","AZS-250226-015","AZS-250226-014","AZS-250226-013","AZS-250226-012","AZS-250226-011","AZS-250226-010","AZS-250226-009","AZS-250226-008","AZS-250226-007","AZS-250226-006","AZS-250226-005","AZS-250226-004","AZS-250226-003","AZS-250226-002","AZS-250226-001","AZS-240226-025","AZS-240226-024","AZS-240226-023","AZS-240226-022","AZS-240226-021","AZS-240226-020","AZS-240226-019","AZS-240226-018","AZS-240226-017","AZS-240226-016","AZS-240226-015","AZS-240226-014","AZS-240226-013","AZS-240226-012","AZS-240226-011","AZS-240226-010","AZS-240226-009","AZS-240226-008","AZS-240226-007","AZS-240226-006","AZS-240226-005","AZS-240226-004","AZS-240226-003","AZS-240226-002","AZS-240226-001","AZS-230226-025","AZS-230226-024","AZS-230226-023","AZS-230226-022","AZS-230226-021","AZS-230226-020","AZS-230226-019","AZS-230226-018","AZS-230226-016","AZS-230226-015","AZS-230226-014","AZS-230226-013","AZS-230226-012","AZS-230226-011","AZS-230226-010","AZS-230226-009","AZS-230226-008","AZS-230226-007","AZS-230226-006","AZS-230226-005","AZS-230226-004","AZS-230226-003","AZS-230226-002","AZS-230226-001","AZS-220226-022","AZS-220226-021","AZS-220226-020","AZS-220226-019","AZS-220226-018","AZS-220226-017","AZS-220226-016","AZS-220226-015","AZS-220226-014","AZS-220226-013","AZS-220226-012","AZS-220226-011","AZS-220226-010","AZS-220226-009","AZS-220226-008","AZS-220226-007","AZS-220226-006","AZS-220226-005","AZS-220226-004","AZS-220226-003","AZS-220226-002","AZS-220226-001","AZS-210226-020","AZS-210226-019","AZS-210226-018","AZS-210226-017","AZS-210226-016","AZS-210226-015","AZS-210226-014","AZS-210226-013","AZS-210226-012","AZS-210226-011","AZS-210226-010","AZS-210226-009","AZS-210226-008","AZS-210226-007","AZS-210226-006","AZS-210226-005","AZS-210226-004","AZS-210226-003","AZS-210226-002","AZS-210226-001","AZS-200226-024","AZS-200226-023","AZS-200226-022","AZS-200226-021","AZS-200226-020","AZS-200226-019","AZS-200226-018","AZS-200226-017","AZS-200226-016","AZS-200226-015","AZS-200226-014","AZS-200226-013","AZS-200226-012","AZS-200226-011","AZS-200226-010","AZS-200226-009","AZS-200226-008","AZS-200226-007","AZS-200226-006","AZS-200226-005","AZS-200226-004","AZS-200226-003","AZS-200226-002","AZS-200226-001","AZS-190226-022","AZS-190226-021","AZS-190226-020","AZS-190226-019","AZS-190226-018","AZS-190226-017","AZS-190226-016","AZS-190226-015","AZS-190226-014","AZS-190226-013","AZS-190226-012","AZS-190226-011","AZS-190226-010","AZS-190226-009","AZS-190226-008","AZS-190226-007","AZS-190226-006","AZS-190226-005","AZS-190226-004","AZS-190226-003","AZS-190226-002","AZS-190226-001","AZS-180226-019","AZS-180226-018","AZS-180226-017","AZS-180226-016","AZS-180226-015","AZS-180226-014","AZS-180226-013","AZS-180226-012","AZS-180226-011","AZS-180226-010","AZS-180226-009","AZS-180226-008","AZS-180226-007","AZS-180226-006","AZS-180226-005","AZS-180226-004","AZS-180226-003","AZS-180226-002","AZS-180226-001","AZS-170226-025","AZS-170226-024","AZS-170226-023","AZS-170226-022","AZS-170226-021","AZS-170226-020","AZS-170226-019","AZS-170226-018","AZS-170226-017","AZS-170226-016","AZS-170226-015","AZS-170226-014","AZS-170226-013","AZS-170226-012","AZS-170226-011","AZS-170226-010","AZS-170226-009","AZS-170226-008","AZS-170226-007","AZS-170226-006","AZS-170226-005","AZS-170226-004","AZS-170226-003","AZS-170226-002","AZS-170226-001","AZS-160226-022","AZS-160226-021","AZS-160226-020","AZS-160226-019","AZS-160226-018","AZS-160226-017","AZS-160226-016","AZS-160226-015","AZS-160226-014","AZS-160226-013","AZS-160226-012","AZS-160226-011","AZS-160226-010","AZS-160226-009","AZS-160226-008","AZS-160226-007","AZS-160226-006","AZS-160226-005","AZS-160226-004","AZS-160226-003","AZS-160226-002","AZS-160226-001","AZS-150226-033","AZS-150226-032","AZS-150226-031","AZS-150226-030","AZS-150226-029","AZS-150226-028","AZS-150226-027","AZS-150226-026","AZS-150226-025","AZS-150226-024","AZS-150226-023","AZS-150226-022","AZS-150226-021","AZS-150226-020","AZS-150226-019","AZS-150226-018","AZS-150226-017","AZS-150226-016","AZS-150226-015","AZS-150226-014","AZS-150226-013","AZS-150226-012","AZS-150226-011","AZS-150226-010","AZS-150226-009","AZS-150226-008","AZS-150226-007","AZS-150226-006","AZS-150226-005","AZS-150226-004","AZS-150226-003","AZS-150226-002","AZS-150226-001","AZS-140226-034","AZS-140226-033","AZS-140226-032","AZS-140226-031","AZS-140226-030","AZS-140226-029","AZS-140226-028","AZS-140226-027","AZS-140226-026","AZS-140226-025","AZS-140226-024","AZS-140226-023","AZS-140226-022","AZS-140226-021","AZS-140226-020","AZS-140226-019","AZS-140226-018","AZS-140226-017","AZS-140226-016","AZS-140226-015","AZS-140226-014","AZS-140226-013","AZS-140226-012","AZS-140226-011","AZS-140226-010","AZS-140226-009","AZS-140226-008","AZS-140226-007","AZS-140226-006","AZS-140226-005","AZS-140226-004","AZS-140226-003","AZS-140226-002","AZS-140226-001","AZS-130226-018","AZS-130226-017","AZS-130226-016","AZS-130226-015","AZS-130226-014","AZS-130226-013","AZS-130226-012","AZS-130226-011","AZS-130226-010","AZS-130226-009","AZS-130226-008","AZS-130226-007","AZS-130226-006","AZS-130226-005","AZS-130226-004","AZS-130226-003","AZS-130226-002","AZS-130226-001","AZS-120226-031","AZS-120226-030","AZS-120226-029","AZS-120226-028","AZS-120226-027","AZS-120226-026","AZS-120226-025","AZS-120226-024","AZS-120226-023","AZS-120226-022","AZS-120226-021","AZS-120226-020","AZS-120226-019","AZS-120226-018","AZS-120226-017","AZS-120226-016","AZS-120226-015","AZS-120226-014","AZS-120226-013","AZS-120226-012","AZS-120226-011","AZS-120226-010","AZS-120226-009","AZS-120226-008","AZS-120226-007","AZS-120226-006","AZS-120226-005","AZS-120226-004","AZS-120226-003","AZS-120226-002","AZS-120226-001","AZS-110226-026","AZS-110226-025","AZS-110226-024","AZS-110226-023","AZS-110226-022","AZS-110226-021","AZS-110226-020","AZS-110226-019","AZS-110226-018","AZS-110226-017","AZS-110226-016","AZS-110226-015","AZS-110226-014","AZS-110226-013","AZS-110226-012","AZS-110226-011","AZS-110226-010","AZS-110226-009","AZS-110226-008","AZS-110226-007","AZS-110226-006","AZS-110226-005","AZS-110226-004","AZS-110226-003","AZS-110226-002","AZS-110226-001","AZS-100226-018","AZS-100226-017","AZS-100226-016","AZS-100226-015","AZS-100226-014","AZS-100226-013","AZS-100226-012","AZS-100226-011","AZS-100226-010","AZS-100226-009","AZS-100226-008","AZS-100226-007","AZS-100226-006","AZS-100226-005","AZS-100226-004","AZS-100226-003","AZS-100226-001","AZS-100226-002","AZS-090226-046","AZS-090226-045","AZS-090226-044","AZS-090226-043","AZS-090226-042","AZS-090226-041","AZS-090226-040","AZS-090226-039","AZS-090226-038","AZS-090226-037","AZS-090226-036","AZS-090226-035","AZS-090226-034","AZS-090226-033","AZS-090226-032","AZS-090226-031","AZS-090226-030","AZS-090226-028","AZS-090226-027","AZS-090226-026","AZS-090226-025","AZS-090226-024","AZS-090226-023","AZS-090226-022","AZS-090226-021","AZS-090226-020","AZS-090226-019","AZS-090226-018","AZS-090226-017","AZS-090226-016","AZS-090226-015","AZS-090226-014","AZS-090226-013","AZS-090226-012","AZS-090226-011","AZS-090226-010","AZS-090226-009","AZS-090226-008","AZS-090226-007","AZS-090226-006","AZS-090226-005","AZS-090226-004","AZS-090226-003","AZS-090226-002","AZS-090226-001","AZS-080226-019","AZS-080226-018","AZS-080226-017","AZS-080226-016","AZS-080226-015","AZS-080226-014","AZS-080226-013","AZS-080226-012","AZS-080226-011","AZS-080226-010","AZS-080226-009","AZS-080226-008","AZS-080226-007","AZS-080226-006","AZS-080226-005","AZS-080226-004","AZS-080226-003","AZS-080226-002","AZS-080226-001","AZS-070226-033","AZS-070226-032","AZS-070226-031","AZS-070226-030","AZS-070226-029","AZS-070226-028","AZS-070226-027","AZS-070226-026","AZS-070226-025","AZS-070226-024","AZS-070226-023","AZS-070226-022","AZS-070226-021","AZS-070226-020","AZS-070226-019","AZS-070226-018","AZS-070226-017","AZS-070226-016","AZS-070226-015","AZS-070226-014","AZS-070226-013","AZS-070226-012","AZS-070226-011","AZS-070226-010","AZS-070226-009","AZS-070226-008","AZS-070226-007","AZS-070226-006","AZS-070226-005","AZS-070226-004","AZS-070226-003","AZS-070226-002","AZS-070226-001","AZS-060226-039","AZS-060226-038","AZS-060226-037","AZS-060226-036","AZS-060226-035","AZS-060226-034","AZS-060226-033","AZS-060226-032","AZS-060226-031","AZS-060226-030","AZS-060226-029","AZS-060226-028","AZS-060226-027","AZS-060226-026","AZS-060226-025","AZS-060226-024","AZS-060226-023","AZS-060226-022","AZS-060226-021","AZS-060226-020","AZS-060226-019","AZS-060226-018","AZS-060226-017","AZS-060226-016","AZS-060226-015","AZS-060226-014","AZS-060226-013","AZS-060226-012","AZS-060226-011","AZS-060226-010","AZS-060226-009","AZS-060226-008","AZS-060226-007","AZS-060226-006","AZS-060226-005","AZS-060226-004","AZS-060226-003","AZS-060226-002","AZS-060226-001","AZS-050226-029","AZS-050226-028","AZS-050226-027","AZS-050226-026","AZS-050226-025","AZS-050226-024","AZS-050226-023","AZS-050226-022","AZS-050226-021","AZS-050226-020","AZS-050226-019","AZS-050226-018","AZS-050226-017","AZS-050226-016","AZS-050226-015","AZS-050226-014","AZS-050226-013","AZS-050226-012","AZS-050226-011","AZS-050226-010","AZS-050226-009","AZS-050226-008","AZS-050226-007","AZS-050226-006","AZS-050226-005","AZS-050226-004","AZS-050226-003","AZS-050226-002","AZS-050226-001","AZS-040226-026","AZS-040226-025","AZS-040226-024","AZS-040226-023","AZS-040226-022","AZS-040226-021","AZS-040226-020","AZS-040226-019","AZS-040226-018","AZS-040226-017","AZS-040226-016","AZS-040226-015","AZS-040226-014","AZS-040226-013","AZS-040226-012","AZS-040226-011","AZS-040226-010","AZS-040226-009","AZS-040226-008","AZS-040226-007","AZS-040226-006","AZS-040226-005","AZS-040226-004","AZS-040226-003","AZS-040226-002","AZS-040226-001","AZS-030226-028","AZS-030226-027","AZS-030226-026","AZS-030226-025","AZS-030226-024","AZS-030226-023","AZS-030226-022","AZS-030226-021","AZS-030226-020","AZS-030226-019","AZS-030226-018","AZS-030226-017","AZS-030226-016","AZS-030226-015","AZS-030226-014","AZS-030226-013","AZS-030226-012","AZS-030226-011","AZS-030226-010","AZS-030226-009","AZS-030226-008","AZS-030226-007","AZS-030226-006","AZS-030226-005","AZS-030226-004","AZS-030226-003","AZS-030226-002","AZS-030226-001","AZS-020226-030","AZS-020226-029","AZS-020226-028","AZS-020226-027","AZS-020226-026","AZS-020226-025","AZS-020226-024","AZS-020226-023","AZS-020226-022","AZS-020226-021","AZS-020226-020","AZS-020226-019","AZS-020226-018","AZS-020226-017","AZS-020226-016","AZS-020226-015","AZS-020226-014","AZS-020226-013","AZS-020226-012","AZS-020226-011","AZS-020226-010","AZS-020226-009","AZS-020226-008","AZS-020226-007","AZS-020226-006","AZS-020226-005","AZS-020226-004","AZS-020226-003","AZS-020226-002","AZS-020226-001","AZS-010226-034","AZS-010226-033","AZS-010226-032","AZS-010226-031","AZS-010226-030","AZS-010226-028","AZS-010226-027","AZS-010226-026","AZS-010226-025","AZS-010226-024","AZS-010226-023","AZS-010226-022","AZS-010226-021","AZS-010226-020","AZS-010226-019","AZS-010226-018","AZS-010226-017","AZS-010226-016","AZS-010226-015","AZS-010226-014","AZS-010226-013","AZS-010226-012","AZS-010226-011","AZS-010226-010","AZS-010226-009","AZS-010226-008","AZS-010226-007","AZS-010226-006","AZS-010226-005","AZS-010226-004","AZS-010226-003","AZS-010226-002","AZS-010226-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":781,"unpaid_count":0,"unique_order_numbers":781} 
[2026-03-03 12:55:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5348,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":25986},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":25986,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-03 12:55:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5348,"items_count":3} 
[2026-03-03 12:55:09] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25986,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3}]} 
[2026-03-03 12:55:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5348,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","114|1|","396|3|"]} 
[2026-03-03 12:55:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5348,"order_number":"AZS-030326-001"} 
[2026-03-03 12:55:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-001","replaced_order_id":5348} 
[2026-03-03 12:55:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5351,"items_count":3,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"}]} 
[2026-03-03 12:55:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5351,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5351}} 
[2026-03-03 12:55:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5351,"item_index":0,"menu_item_id":417} 
[2026-03-03 12:55:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5351,"item_index":1,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5351}} 
[2026-03-03 12:55:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5351,"item_index":1,"menu_item_id":114} 
[2026-03-03 12:55:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5351,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5351}} 
[2026-03-03 12:55:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5351,"item_index":2,"menu_item_id":396} 
[2026-03-03 12:55:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5348,"new_order_id":5351,"order_number":"AZS-030326-001"} 
[2026-03-03 13:19:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5349,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":25987},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":25988},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":25989},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":25990},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25987,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":25988,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":25989,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":25990,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:19:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5349,"items_count":7} 
[2026-03-03 13:19:19] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25987,"menu_item_id":417,"quantity":1},{"id":25988,"menu_item_id":99,"quantity":1},{"id":25989,"menu_item_id":396,"quantity":2},{"id":25990,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-03 13:19:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5349,"has_item_changes":true,"old_items_count":4,"new_items_count":7,"old_items_map_keys":["417|1|","99|1|","396|2|","5|1|"],"new_items_map_keys":["417|1|","99|1|","396|2|","5|2|","61|1|","56|1|","3|1|"]} 
[2026-03-03 13:19:19] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5349,"order_number":"AZS-030326-002"} 
[2026-03-03 13:19:19] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-002","replaced_order_id":5349} 
[2026-03-03 13:19:19] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5356,"items_count":7,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-03 13:19:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5356,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5356}} 
[2026-03-03 13:19:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5356,"item_index":0,"menu_item_id":417} 
[2026-03-03 13:19:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5356,"item_index":1,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5356}} 
[2026-03-03 13:19:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5356,"item_index":1,"menu_item_id":99} 
[2026-03-03 13:19:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5356,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5356}} 
[2026-03-03 13:19:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5356,"item_index":2,"menu_item_id":396} 
[2026-03-03 13:19:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5356,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5356}} 
[2026-03-03 13:19:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5356,"item_index":3,"menu_item_id":5} 
[2026-03-03 13:19:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5356,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5356}} 
[2026-03-03 13:19:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5356,"item_index":4,"menu_item_id":61} 
[2026-03-03 13:19:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5356,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5356}} 
[2026-03-03 13:19:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5356,"item_index":5,"menu_item_id":56} 
[2026-03-03 13:19:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5356,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5356}} 
[2026-03-03 13:19:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5356,"item_index":6,"menu_item_id":3} 
[2026-03-03 13:19:19] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5349,"new_order_id":5356,"order_number":"AZS-030326-002"} 
[2026-03-03 13:28:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5351,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":25992},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":25993},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":25994},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":25992,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":25993,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":25994,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:28:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5351,"items_count":4} 
[2026-03-03 13:28:48] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25992,"menu_item_id":417,"quantity":1},{"id":25993,"menu_item_id":114,"quantity":1},{"id":25994,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-03 13:28:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5351,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["417|1|","114|1|","396|3|"],"new_items_map_keys":["417|1|","114|1|","396|3|","2|1|"]} 
[2026-03-03 13:28:48] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5351,"order_number":"AZS-030326-001"} 
[2026-03-03 13:28:48] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-001","replaced_order_id":5351} 
[2026-03-03 13:28:48] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5359,"items_count":4,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-03 13:28:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5359,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5359}} 
[2026-03-03 13:28:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5359,"item_index":0,"menu_item_id":417} 
[2026-03-03 13:28:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5359,"item_index":1,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5359}} 
[2026-03-03 13:28:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5359,"item_index":1,"menu_item_id":114} 
[2026-03-03 13:28:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5359,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5359}} 
[2026-03-03 13:28:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5359,"item_index":2,"menu_item_id":396} 
[2026-03-03 13:28:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5359,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5359}} 
[2026-03-03 13:28:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5359,"item_index":3,"menu_item_id":2} 
[2026-03-03 13:28:48] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5351,"new_order_id":5359,"order_number":"AZS-030326-001"} 
[2026-03-03 13:29:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5359,"item_index":0,"item_id":25992} 
[2026-03-03 13:29:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5359,"item_index":1,"item_id":25993} 
[2026-03-03 13:29:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5359,"item_index":2,"item_id":25994} 
[2026-03-03 13:29:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5359,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":25992},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":25993},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":25994},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:29:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5359,"items_count":4} 
[2026-03-03 13:29:01] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[26018,26019,26020,26021],"items":[{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-03 13:29:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5359,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["417|1|","114|1|","396|3|","2|1|"],"new_items_map_keys":["417|1|","114|1|","396|3|","2|1|"]} 
[2026-03-03 13:29:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5359,"order_number":"AZS-030326-001"} 
[2026-03-03 13:29:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5359,"order_number":"AZS-030326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-03 13:29:01"} 
[2026-03-03 13:29:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5356,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":26001},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":26002},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":26003},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":26004},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26005},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26006},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":26007}],"validated_items":[{"id":26001,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":26002,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":26003,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":26004,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":26005,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26006,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26007,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:29:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5356,"items_count":7} 
[2026-03-03 13:29:08] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26001,"menu_item_id":417,"quantity":1},{"id":26002,"menu_item_id":99,"quantity":1},{"id":26003,"menu_item_id":396,"quantity":2},{"id":26004,"menu_item_id":5,"quantity":2},{"id":26005,"menu_item_id":61,"quantity":1},{"id":26006,"menu_item_id":56,"quantity":1},{"id":26007,"menu_item_id":3,"quantity":1}]} 
[2026-03-03 13:29:08] local.INFO: PosOrderController::update - Item changes check {"order_id":5356,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["417|1|","99|1|","396|2|","5|2|","61|1|","56|1|","3|1|"],"new_items_map_keys":["417|1|","99|1|","396|2|","5|2|","61|1|","56|1|","3|1|"]} 
[2026-03-03 13:29:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5356,"order_number":"AZS-030326-002"} 
[2026-03-03 13:29:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5356,"order_number":"AZS-030326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-03 13:29:08"} 
[2026-03-03 13:29:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5350,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":25991}],"validated_items":[{"id":25991,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:29:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5350,"items_count":1} 
[2026-03-03 13:29:20] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25991,"menu_item_id":417,"quantity":1}]} 
[2026-03-03 13:29:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5350,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-03 13:29:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5350,"order_number":"AZS-030326-003"} 
[2026-03-03 13:29:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5350,"order_number":"AZS-030326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-03 13:29:20"} 
[2026-03-03 13:29:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5352,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":25995}],"validated_items":[{"id":25995,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:29:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5352,"items_count":1} 
[2026-03-03 13:29:33] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25995,"menu_item_id":417,"quantity":1}]} 
[2026-03-03 13:29:33] local.INFO: PosOrderController::update - Item changes check {"order_id":5352,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-03 13:29:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5352,"order_number":"AZS-030326-004"} 
[2026-03-03 13:29:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5352,"order_number":"AZS-030326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-03 13:29:33"} 
[2026-03-03 13:29:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5353,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":25996}],"validated_items":[{"id":25996,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:29:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5353,"items_count":1} 
[2026-03-03 13:29:45] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25996,"menu_item_id":417,"quantity":1}]} 
[2026-03-03 13:29:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5353,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-03 13:29:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5353,"order_number":"AZS-030326-005"} 
[2026-03-03 13:29:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5353,"order_number":"AZS-030326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-03 13:29:45"} 
[2026-03-03 13:29:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5354,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":25997},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":25998},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":25999}],"validated_items":[{"id":25997,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":25998,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":25999,"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:29:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5354,"items_count":3} 
[2026-03-03 13:29:54] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25997,"menu_item_id":417,"quantity":1},{"id":25998,"menu_item_id":113,"quantity":1},{"id":25999,"menu_item_id":52,"quantity":3}]} 
[2026-03-03 13:29:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5354,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["417|1|","113|1|","52|3|"],"new_items_map_keys":["417|1|","113|1|","52|3|"]} 
[2026-03-03 13:29:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5354,"order_number":"AZS-030326-006"} 
[2026-03-03 13:29:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5354,"order_number":"AZS-030326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-03 13:29:54"} 
[2026-03-03 13:30:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5355,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":26000}],"validated_items":[{"id":26000,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:30:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5355,"items_count":1} 
[2026-03-03 13:30:04] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26000,"menu_item_id":417,"quantity":1}]} 
[2026-03-03 13:30:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5355,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-03 13:30:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5355,"order_number":"AZS-030326-007"} 
[2026-03-03 13:30:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5355,"order_number":"AZS-030326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-03 13:30:04"} 
[2026-03-03 13:30:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5357,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":26008},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":26009},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26010},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26011},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26012}],"validated_items":[{"id":26008,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":26009,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":26010,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26011,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26012,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:30:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5357,"items_count":5} 
[2026-03-03 13:30:13] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26008,"menu_item_id":105,"quantity":1},{"id":26009,"menu_item_id":396,"quantity":2},{"id":26010,"menu_item_id":61,"quantity":1},{"id":26011,"menu_item_id":56,"quantity":1},{"id":26012,"menu_item_id":5,"quantity":1}]} 
[2026-03-03 13:30:13] local.INFO: PosOrderController::update - Item changes check {"order_id":5357,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-03 13:30:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5357,"order_number":"AZS-030326-008"} 
[2026-03-03 13:30:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5357,"order_number":"AZS-030326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-03 13:30:13"} 
[2026-03-03 13:30:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5358,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":26013},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":26014},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26015},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26016},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26017}],"validated_items":[{"id":26013,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":26014,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":26015,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26016,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26017,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:30:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5358,"items_count":5} 
[2026-03-03 13:30:26] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26013,"menu_item_id":105,"quantity":1},{"id":26014,"menu_item_id":396,"quantity":2},{"id":26015,"menu_item_id":61,"quantity":1},{"id":26016,"menu_item_id":56,"quantity":1},{"id":26017,"menu_item_id":5,"quantity":1}]} 
[2026-03-03 13:30:26] local.INFO: PosOrderController::update - Item changes check {"order_id":5358,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-03 13:30:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5358,"order_number":"AZS-030326-009"} 
[2026-03-03 13:30:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5358,"order_number":"AZS-030326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-03 13:30:26"} 
[2026-03-03 13:30:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":5357,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":26008},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":26009},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26010},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26012}],"validated_items":[{"id":26008,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":26009,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":26010,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26012,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:30:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5357,"items_count":4} 
[2026-03-03 13:30:52] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[26011],"items":[{"id":26008,"menu_item_id":105,"quantity":1},{"id":26009,"menu_item_id":396,"quantity":2},{"id":26010,"menu_item_id":61,"quantity":1},{"id":26012,"menu_item_id":5,"quantity":1}]} 
[2026-03-03 13:30:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5357,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","396|2|","61|1|","5|1|"]} 
[2026-03-03 13:30:52] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5357,"order_number":"AZS-030326-008"} 
[2026-03-03 13:30:52] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-008","replaced_order_id":5357} 
[2026-03-03 13:30:52] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5360,"items_count":4,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-03 13:30:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5360,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5360}} 
[2026-03-03 13:30:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5360,"item_index":0,"menu_item_id":105} 
[2026-03-03 13:30:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5360,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5360}} 
[2026-03-03 13:30:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5360,"item_index":1,"menu_item_id":396} 
[2026-03-03 13:30:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5360,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5360}} 
[2026-03-03 13:30:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5360,"item_index":2,"menu_item_id":61} 
[2026-03-03 13:30:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5360,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5360}} 
[2026-03-03 13:30:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5360,"item_index":3,"menu_item_id":5} 
[2026-03-03 13:30:52] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5357,"new_order_id":5360,"order_number":"AZS-030326-008"} 
[2026-03-03 13:31:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T01:31:21.519Z","date_to":"2026-03-03T13:31:21.519Z","per_page":"100"} 
[2026-03-03 13:31:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","pending","changed","pending","pending","pending","pending","pending","pending","changed","pending","changed","changed"],"deleted_count":4,"paid_count":0,"unpaid_count":9,"unique_order_numbers":9} 
[2026-03-03 13:31:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T01:31:21.533Z","date_to":"2026-03-03T13:31:21.533Z","per_page":"100"} 
[2026-03-03 13:31:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","pending","changed","pending","pending","pending","pending","pending","pending","changed","pending","changed","changed"],"deleted_count":4,"paid_count":0,"unpaid_count":9,"unique_order_numbers":9} 
[2026-03-03 13:31:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T01:31:21.519Z","date_to":"2026-03-03T13:31:21.519Z","per_page":"100"} 
[2026-03-03 13:31:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","pending","changed","pending","pending","pending","pending","pending","pending","changed","pending","changed","changed"],"deleted_count":4,"paid_count":0,"unpaid_count":9,"unique_order_numbers":9} 
[2026-03-03 13:31:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5356,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":26001},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":26002},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":26003},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26004},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26005},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26006},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":26007}],"validated_items":[{"id":26001,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":26002,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":26003,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":26004,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":26005,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26006,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26007,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:31:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5356,"items_count":7} 
[2026-03-03 13:31:56] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26001,"menu_item_id":417,"quantity":1},{"id":26002,"menu_item_id":99,"quantity":1},{"id":26003,"menu_item_id":396,"quantity":2},{"id":26004,"menu_item_id":5,"quantity":1},{"id":26005,"menu_item_id":61,"quantity":1},{"id":26006,"menu_item_id":56,"quantity":1},{"id":26007,"menu_item_id":3,"quantity":1}]} 
[2026-03-03 13:31:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5356,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["417|1|","99|1|","396|2|","5|2|","61|1|","56|1|","3|1|"],"new_items_map_keys":["417|1|","99|1|","396|2|","5|1|","61|1|","56|1|","3|1|"]} 
[2026-03-03 13:31:56] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5356,"order_number":"AZS-030326-002"} 
[2026-03-03 13:31:56] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-002","replaced_order_id":5356} 
[2026-03-03 13:31:56] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5361,"items_count":7,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-03 13:31:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5361,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5361}} 
[2026-03-03 13:31:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5361,"item_index":0,"menu_item_id":417} 
[2026-03-03 13:31:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5361,"item_index":1,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5361}} 
[2026-03-03 13:31:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5361,"item_index":1,"menu_item_id":99} 
[2026-03-03 13:31:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5361,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5361}} 
[2026-03-03 13:31:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5361,"item_index":2,"menu_item_id":396} 
[2026-03-03 13:31:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5361,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5361}} 
[2026-03-03 13:31:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5361,"item_index":3,"menu_item_id":5} 
[2026-03-03 13:31:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5361,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5361}} 
[2026-03-03 13:31:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5361,"item_index":4,"menu_item_id":61} 
[2026-03-03 13:31:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5361,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5361}} 
[2026-03-03 13:31:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5361,"item_index":5,"menu_item_id":56} 
[2026-03-03 13:31:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5361,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5361}} 
[2026-03-03 13:31:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5361,"item_index":6,"menu_item_id":3} 
[2026-03-03 13:31:56] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5356,"new_order_id":5361,"order_number":"AZS-030326-002"} 
[2026-03-03 13:32:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5361,"item_index":0,"item_id":26001} 
[2026-03-03 13:32:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5361,"item_index":1,"item_id":26002} 
[2026-03-03 13:32:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5361,"item_index":2,"item_id":26003} 
[2026-03-03 13:32:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5361,"item_index":3,"item_id":26004} 
[2026-03-03 13:32:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5361,"item_index":4,"item_id":26005} 
[2026-03-03 13:32:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5361,"item_index":5,"item_id":26006} 
[2026-03-03 13:32:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5361,"item_index":6,"item_id":26007} 
[2026-03-03 13:32:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5361,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":26001},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":26002},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":26003},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26004},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26005},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26006},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":26007}],"validated_items":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:32:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5361,"items_count":7} 
[2026-03-03 13:32:01] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[26026,26027,26028,26029,26030,26031,26032],"items":[{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":99,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-03 13:32:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5361,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["417|1|","99|1|","396|2|","5|1|","61|1|","56|1|","3|1|"],"new_items_map_keys":["417|1|","99|1|","396|2|","5|1|","61|1|","56|1|","3|1|"]} 
[2026-03-03 13:32:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5361,"order_number":"AZS-030326-002"} 
[2026-03-03 13:32:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5361,"order_number":"AZS-030326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-03 13:32:01"} 
[2026-03-03 13:32:38] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5353,"order_number":"AZS-030326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 13:32:38"} 
[2026-03-03 13:32:38] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5353,"order_number":"AZS-030326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 13:32:38"} 
[2026-03-03 13:32:38] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5353,"order_number":"AZS-030326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 13:32:38"} 
[2026-03-03 13:32:38] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5353,"order_number":"AZS-030326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 13:32:38"} 
[2026-03-03 13:32:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5353,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":25996}],"validated_items":[{"id":25996,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:32:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5353,"items_count":1} 
[2026-03-03 13:32:38] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25996,"menu_item_id":417,"quantity":1}]} 
[2026-03-03 13:32:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5353,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-03 13:32:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5353,"order_number":"AZS-030326-005"} 
[2026-03-03 13:32:38] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5353,"order_number":"AZS-030326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-03 13:32:38","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-03 13:32:38"} 
[2026-03-03 13:32:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5353,"order_number":"AZS-030326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-03 13:32:38"} 
[2026-03-03 13:32:38] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5353,"order_number":"AZS-030326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-03 13:32:38","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-03 13:32:38"} 
[2026-03-03 13:33:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5361,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26026},{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26027},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26028},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26029},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26030},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26031},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26032}],"validated_items":[{"id":26026,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":26027,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":26028,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26029,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26030,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26031,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26032,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:33:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5361,"items_count":7} 
[2026-03-03 13:33:02] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26026,"menu_item_id":417,"quantity":1},{"id":26027,"menu_item_id":99,"quantity":1},{"id":26028,"menu_item_id":396,"quantity":2},{"id":26029,"menu_item_id":5,"quantity":1},{"id":26030,"menu_item_id":61,"quantity":1},{"id":26031,"menu_item_id":56,"quantity":1},{"id":26032,"menu_item_id":3,"quantity":1}]} 
[2026-03-03 13:33:02] local.INFO: PosOrderController::update - Item changes check {"order_id":5361,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["417|1|","99|1|","396|2|","5|1|","61|1|","56|1|","3|1|"],"new_items_map_keys":["417|1|","99|1|","396|2|","5|1|","61|1|","56|1|","3|1|"]} 
[2026-03-03 13:33:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5361,"order_number":"AZS-030326-002"} 
[2026-03-03 13:33:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5361,"order_number":"AZS-030326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 13:33:02"} 
[2026-03-03 13:33:56] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5352,"order_number":"AZS-030326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 13:33:56"} 
[2026-03-03 13:33:56] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5352,"order_number":"AZS-030326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 13:33:56"} 
[2026-03-03 13:33:56] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5352,"order_number":"AZS-030326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 13:33:56"} 
[2026-03-03 13:33:56] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5352,"order_number":"AZS-030326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 13:33:56"} 
[2026-03-03 13:33:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5352,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":25995}],"validated_items":[{"id":25995,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:33:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5352,"items_count":1} 
[2026-03-03 13:33:56] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25995,"menu_item_id":417,"quantity":1}]} 
[2026-03-03 13:33:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5352,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-03 13:33:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5352,"order_number":"AZS-030326-004"} 
[2026-03-03 13:33:56] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5352,"order_number":"AZS-030326-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-03 13:33:56","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-03 13:33:56"} 
[2026-03-03 13:33:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5352,"order_number":"AZS-030326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-03 13:33:56"} 
[2026-03-03 13:33:56] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5352,"order_number":"AZS-030326-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-03 13:33:56","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-03 13:33:56"} 
[2026-03-03 13:35:12] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5355,"order_number":"AZS-030326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":600,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 13:35:12"} 
[2026-03-03 13:35:12] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5355,"order_number":"AZS-030326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 13:35:12"} 
[2026-03-03 13:35:12] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5355,"order_number":"AZS-030326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 13:35:12"} 
[2026-03-03 13:35:12] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5355,"order_number":"AZS-030326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 13:35:12"} 
[2026-03-03 13:35:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5355,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26000}],"validated_items":[{"id":26000,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:35:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5355,"items_count":1} 
[2026-03-03 13:35:12] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26000,"menu_item_id":417,"quantity":1}]} 
[2026-03-03 13:35:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5355,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-03 13:35:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5355,"order_number":"AZS-030326-007"} 
[2026-03-03 13:35:12] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5355,"order_number":"AZS-030326-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":600,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-03 13:35:12","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-03 13:35:12"} 
[2026-03-03 13:35:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5355,"order_number":"AZS-030326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-03 13:35:12"} 
[2026-03-03 13:35:12] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5355,"order_number":"AZS-030326-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"600.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-03 13:35:12","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"600.00","database_verification_match":true,"timestamp":"2026-03-03 13:35:12"} 
[2026-03-03 13:36:02] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5350,"order_number":"AZS-030326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 13:36:02"} 
[2026-03-03 13:36:02] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5350,"order_number":"AZS-030326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 13:36:02"} 
[2026-03-03 13:36:02] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5350,"order_number":"AZS-030326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 13:36:02"} 
[2026-03-03 13:36:02] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5350,"order_number":"AZS-030326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 13:36:02"} 
[2026-03-03 13:36:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5350,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":25991}],"validated_items":[{"id":25991,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:36:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5350,"items_count":1} 
[2026-03-03 13:36:02] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25991,"menu_item_id":417,"quantity":1}]} 
[2026-03-03 13:36:02] local.INFO: PosOrderController::update - Item changes check {"order_id":5350,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-03 13:36:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5350,"order_number":"AZS-030326-003"} 
[2026-03-03 13:36:02] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5350,"order_number":"AZS-030326-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-03 13:36:02","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-03 13:36:02"} 
[2026-03-03 13:36:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5350,"order_number":"AZS-030326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-03 13:36:02"} 
[2026-03-03 13:36:02] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5350,"order_number":"AZS-030326-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-03 13:36:02","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-03 13:36:02"} 
[2026-03-03 13:42:34] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5361,"order_number":"AZS-030326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4050,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 13:42:34"} 
[2026-03-03 13:42:34] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5361,"order_number":"AZS-030326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4050,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 13:42:34"} 
[2026-03-03 13:42:34] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5361,"order_number":"AZS-030326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4050,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 13:42:34"} 
[2026-03-03 13:42:34] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5361,"order_number":"AZS-030326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4050,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 13:42:34"} 
[2026-03-03 13:42:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5361,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26026},{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26027},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26028},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26029},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26030},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26031},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26032}],"validated_items":[{"id":26026,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":26027,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":26028,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26029,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26030,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26031,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26032,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:42:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5361,"items_count":7} 
[2026-03-03 13:42:34] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26026,"menu_item_id":417,"quantity":1},{"id":26027,"menu_item_id":99,"quantity":1},{"id":26028,"menu_item_id":396,"quantity":2},{"id":26029,"menu_item_id":5,"quantity":1},{"id":26030,"menu_item_id":61,"quantity":1},{"id":26031,"menu_item_id":56,"quantity":1},{"id":26032,"menu_item_id":3,"quantity":1}]} 
[2026-03-03 13:42:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5361,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["417|1|","99|1|","396|2|","5|1|","61|1|","56|1|","3|1|"],"new_items_map_keys":["417|1|","99|1|","396|2|","5|1|","61|1|","56|1|","3|1|"]} 
[2026-03-03 13:42:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5361,"order_number":"AZS-030326-002"} 
[2026-03-03 13:42:34] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5361,"order_number":"AZS-030326-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4050,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-03 13:42:34","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-03 13:42:34"} 
[2026-03-03 13:42:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5361,"order_number":"AZS-030326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-03 13:42:34"} 
[2026-03-03 13:42:34] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5361,"order_number":"AZS-030326-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4050.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-03 13:42:34","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4050,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4050.00","database_verification_match":true,"timestamp":"2026-03-03 13:42:34"} 
[2026-03-03 13:49:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5359,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26018},{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26019},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26020},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26021}],"validated_items":[{"id":26018,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":26019,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":26020,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26021,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:49:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5359,"items_count":4} 
[2026-03-03 13:49:30] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26018,"menu_item_id":417,"quantity":1},{"id":26019,"menu_item_id":114,"quantity":1},{"id":26020,"menu_item_id":396,"quantity":3},{"id":26021,"menu_item_id":2,"quantity":1}]} 
[2026-03-03 13:49:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5359,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["417|1|","114|1|","396|3|","2|1|"],"new_items_map_keys":["417|1|","114|1|","396|3|","2|1|"]} 
[2026-03-03 13:49:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5359,"order_number":"AZS-030326-001"} 
[2026-03-03 13:49:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5359,"order_number":"AZS-030326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 13:49:30"} 
[2026-03-03 13:49:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5359,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26018},{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26019},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26020},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26021}],"validated_items":[{"id":26018,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":26019,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":26020,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26021,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:49:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5359,"items_count":4} 
[2026-03-03 13:49:37] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26018,"menu_item_id":417,"quantity":1},{"id":26019,"menu_item_id":114,"quantity":1},{"id":26020,"menu_item_id":396,"quantity":3},{"id":26021,"menu_item_id":2,"quantity":1}]} 
[2026-03-03 13:49:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5359,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["417|1|","114|1|","396|3|","2|1|"],"new_items_map_keys":["417|1|","114|1|","396|3|","2|1|"]} 
[2026-03-03 13:49:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5359,"order_number":"AZS-030326-001"} 
[2026-03-03 13:49:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5359,"order_number":"AZS-030326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 13:49:37"} 
[2026-03-03 13:50:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T01:50:07.171Z","date_to":"2026-03-03T13:50:07.171Z","per_page":"100"} 
[2026-03-03 13:50:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T01:50:07.156Z","date_to":"2026-03-03T13:50:07.156Z","per_page":"100"} 
[2026-03-03 13:50:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","pending","changed","paid","pending","paid","paid","paid","paid","changed","changed","pending","changed","changed"],"deleted_count":5,"paid_count":5,"unpaid_count":4,"unique_order_numbers":9} 
[2026-03-03 13:50:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","pending","changed","paid","pending","paid","paid","paid","paid","changed","changed","pending","changed","changed"],"deleted_count":5,"paid_count":5,"unpaid_count":4,"unique_order_numbers":9} 
[2026-03-03 13:50:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T01:50:07.156Z","date_to":"2026-03-03T13:50:07.156Z","per_page":"100"} 
[2026-03-03 13:50:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","pending","changed","paid","pending","paid","paid","paid","paid","changed","changed","pending","changed","changed"],"deleted_count":5,"paid_count":5,"unpaid_count":4,"unique_order_numbers":9} 
[2026-03-03 13:52:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5359,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":26018},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":26019},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":26020},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":26021},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26018,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":26019,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":26020,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":26021,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:52:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5359,"items_count":5} 
[2026-03-03 13:52:57] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26018,"menu_item_id":417,"quantity":1},{"id":26019,"menu_item_id":114,"quantity":1},{"id":26020,"menu_item_id":396,"quantity":3},{"id":26021,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-03 13:52:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5359,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["417|1|","114|1|","396|3|","2|1|"],"new_items_map_keys":["417|1|","114|1|","396|3|","2|1|","5|1|"]} 
[2026-03-03 13:52:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5359,"order_number":"AZS-030326-001"} 
[2026-03-03 13:52:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-001","replaced_order_id":5359} 
[2026-03-03 13:52:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5362,"items_count":5,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-03 13:52:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5362,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5362}} 
[2026-03-03 13:52:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5362,"item_index":0,"menu_item_id":417} 
[2026-03-03 13:52:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5362,"item_index":1,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5362}} 
[2026-03-03 13:52:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5362,"item_index":1,"menu_item_id":114} 
[2026-03-03 13:52:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5362,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5362}} 
[2026-03-03 13:52:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5362,"item_index":2,"menu_item_id":396} 
[2026-03-03 13:52:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5362,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5362}} 
[2026-03-03 13:52:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5362,"item_index":3,"menu_item_id":2} 
[2026-03-03 13:52:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5362,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5362}} 
[2026-03-03 13:52:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5362,"item_index":4,"menu_item_id":5} 
[2026-03-03 13:52:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5359,"new_order_id":5362,"order_number":"AZS-030326-001"} 
[2026-03-03 13:53:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5362,"item_index":0,"item_id":26018} 
[2026-03-03 13:53:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5362,"item_index":1,"item_id":26019} 
[2026-03-03 13:53:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5362,"item_index":2,"item_id":26020} 
[2026-03-03 13:53:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5362,"item_index":3,"item_id":26021} 
[2026-03-03 13:53:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5362,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26018},{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26019},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26020},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26021},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:53:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5362,"items_count":5} 
[2026-03-03 13:53:04] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[26033,26034,26035,26036,26037],"items":[{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-03 13:53:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5362,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|1|","114|1|","396|3|","2|1|","5|1|"],"new_items_map_keys":["417|1|","114|1|","396|3|","2|1|","5|1|"]} 
[2026-03-03 13:53:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5362,"order_number":"AZS-030326-001"} 
[2026-03-03 13:53:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5362,"order_number":"AZS-030326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 13:53:04"} 
[2026-03-03 13:53:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5354,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":25997},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25998},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":25999}],"validated_items":[{"id":25997,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":25998,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25999,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:53:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5354,"items_count":3} 
[2026-03-03 13:53:51] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25997,"menu_item_id":417,"quantity":1},{"id":25998,"menu_item_id":113,"quantity":1},{"id":25999,"menu_item_id":52,"quantity":3}]} 
[2026-03-03 13:53:51] local.INFO: PosOrderController::update - Item changes check {"order_id":5354,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["417|1|","113|1|","52|3|"],"new_items_map_keys":["417|1|","113|1|","52|3|"]} 
[2026-03-03 13:53:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5354,"order_number":"AZS-030326-006"} 
[2026-03-03 13:53:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5354,"order_number":"AZS-030326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 13:53:51"} 
[2026-03-03 13:58:29] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5354,"order_number":"AZS-030326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 13:58:29"} 
[2026-03-03 13:58:29] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5354,"order_number":"AZS-030326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 13:58:29"} 
[2026-03-03 13:58:29] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5354,"order_number":"AZS-030326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 13:58:29"} 
[2026-03-03 13:58:29] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5354,"order_number":"AZS-030326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 13:58:29"} 
[2026-03-03 13:58:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5354,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":25997},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":25998},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":25999}],"validated_items":[{"id":25997,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":25998,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":25999,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:58:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5354,"items_count":3} 
[2026-03-03 13:58:29] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25997,"menu_item_id":417,"quantity":1},{"id":25998,"menu_item_id":113,"quantity":1},{"id":25999,"menu_item_id":52,"quantity":2}]} 
[2026-03-03 13:58:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5354,"has_item_changes":true,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["417|1|","113|1|","52|3|"],"new_items_map_keys":["417|1|","113|1|","52|2|"]} 
[2026-03-03 13:58:29] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5354,"order_number":"AZS-030326-006","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":2000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-03 13:58:29","original_payment_amount":"0.00","grand_total":1930.0,"timestamp":"2026-03-03 13:58:29"} 
[2026-03-03 13:58:29] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5354,"order_number":"AZS-030326-006"} 
[2026-03-03 13:58:29] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-006","replaced_order_id":5354} 
[2026-03-03 13:58:29] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5354,"new_order_id":5363,"order_number":"AZS-030326-006","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"2000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-03 13:58:29","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-03 13:58:29"} 
[2026-03-03 13:58:29] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5363,"items_count":3,"items":[{"menu_item_id":417,"quantity":1,"price":499.0},{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":52,"quantity":2,"price":70.0}]} 
[2026-03-03 13:58:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5363,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":499.0,"discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5363}} 
[2026-03-03 13:58:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5363,"item_index":0,"menu_item_id":417} 
[2026-03-03 13:58:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5363,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5363}} 
[2026-03-03 13:58:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5363,"item_index":1,"menu_item_id":113} 
[2026-03-03 13:58:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5363,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5363}} 
[2026-03-03 13:58:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5363,"item_index":2,"menu_item_id":52} 
[2026-03-03 13:58:29] local.ERROR: Error tracking recipe usage for order 5363: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5363, 52, 102, 1, 20, 0.00, Order #AZS-030326-006 - 2x Khamiri Roti, 2026-03-03 13:58:29, 2026-03-03 13:58:29))  
[2026-03-03 13:58:29] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5354,"new_order_id":5363,"order_number":"AZS-030326-006"} 
[2026-03-03 13:58:29] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5354,"new_order_id":5363,"order_number":"AZS-030326-006","route":"api/orders/5354"} 
[2026-03-03 13:59:29] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5362,"order_number":"AZS-030326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3565,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 13:59:29"} 
[2026-03-03 13:59:29] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5362,"order_number":"AZS-030326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3565,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 13:59:29"} 
[2026-03-03 13:59:29] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5362,"order_number":"AZS-030326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3565,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 13:59:29"} 
[2026-03-03 13:59:29] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5362,"order_number":"AZS-030326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3565,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 13:59:29"} 
[2026-03-03 13:59:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5362,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26033},{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26034},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26035},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26036},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26037}],"validated_items":[{"id":26033,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":26034,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":26035,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26036,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":26037,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-03 13:59:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5362,"items_count":5} 
[2026-03-03 13:59:29] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26033,"menu_item_id":417,"quantity":1},{"id":26034,"menu_item_id":114,"quantity":1},{"id":26035,"menu_item_id":396,"quantity":3},{"id":26036,"menu_item_id":2,"quantity":1},{"id":26037,"menu_item_id":5,"quantity":1}]} 
[2026-03-03 13:59:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5362,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|1|","114|1|","396|3|","2|1|","5|1|"],"new_items_map_keys":["417|1|","114|1|","396|3|","2|1|","5|1|"]} 
[2026-03-03 13:59:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5362,"order_number":"AZS-030326-001"} 
[2026-03-03 13:59:29] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5362,"order_number":"AZS-030326-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3565,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-03 13:59:29","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-03 13:59:29"} 
[2026-03-03 13:59:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5362,"order_number":"AZS-030326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-03 13:59:29"} 
[2026-03-03 13:59:29] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5362,"order_number":"AZS-030326-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3565.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-03 13:59:29","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3565,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3565.00","database_verification_match":true,"timestamp":"2026-03-03 13:59:29"} 
[2026-03-03 14:14:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5360,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26022},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26023},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26024},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26025}],"validated_items":[{"id":26022,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26023,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26024,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26025,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-03 14:14:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5360,"items_count":4} 
[2026-03-03 14:14:22] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26022,"menu_item_id":105,"quantity":1},{"id":26023,"menu_item_id":396,"quantity":2},{"id":26024,"menu_item_id":61,"quantity":1},{"id":26025,"menu_item_id":5,"quantity":1}]} 
[2026-03-03 14:14:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5360,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["105|1|","396|2|","61|1|","5|1|"],"new_items_map_keys":["105|1|","396|2|","61|1|","5|1|"]} 
[2026-03-03 14:14:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5360,"order_number":"AZS-030326-008"} 
[2026-03-03 14:14:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5360,"order_number":"AZS-030326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 14:14:22"} 
[2026-03-03 14:18:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5358,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26013},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26014},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26015},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26016},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26017}],"validated_items":[{"id":26013,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26014,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26015,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26016,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26017,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-03 14:18:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5358,"items_count":5} 
[2026-03-03 14:18:54] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26013,"menu_item_id":105,"quantity":1},{"id":26014,"menu_item_id":396,"quantity":2},{"id":26015,"menu_item_id":61,"quantity":1},{"id":26016,"menu_item_id":56,"quantity":1},{"id":26017,"menu_item_id":5,"quantity":1}]} 
[2026-03-03 14:18:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5358,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-03 14:18:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5358,"order_number":"AZS-030326-009"} 
[2026-03-03 14:18:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5358,"order_number":"AZS-030326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 14:18:54"} 
[2026-03-03 14:18:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5358,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26013},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26014},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26015},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26016},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26017}],"validated_items":[{"id":26013,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26014,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26015,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26016,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26017,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-03 14:18:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5358,"items_count":5} 
[2026-03-03 14:18:55] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26013,"menu_item_id":105,"quantity":1},{"id":26014,"menu_item_id":396,"quantity":2},{"id":26015,"menu_item_id":61,"quantity":1},{"id":26016,"menu_item_id":56,"quantity":1},{"id":26017,"menu_item_id":5,"quantity":1}]} 
[2026-03-03 14:18:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5358,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-03 14:18:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5358,"order_number":"AZS-030326-009"} 
[2026-03-03 14:18:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5358,"order_number":"AZS-030326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 14:18:55"} 
[2026-03-03 15:01:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5360,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26022},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26023},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26024},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26025}],"validated_items":[{"id":26022,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26023,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26024,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26025,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-03 15:01:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5360,"items_count":4} 
[2026-03-03 15:01:42] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26022,"menu_item_id":105,"quantity":1},{"id":26023,"menu_item_id":396,"quantity":2},{"id":26024,"menu_item_id":61,"quantity":1},{"id":26025,"menu_item_id":5,"quantity":1}]} 
[2026-03-03 15:01:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5360,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["105|1|","396|2|","61|1|","5|1|"],"new_items_map_keys":["105|1|","396|2|","61|1|","5|1|"]} 
[2026-03-03 15:01:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5360,"order_number":"AZS-030326-008"} 
[2026-03-03 15:01:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5360,"order_number":"AZS-030326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 15:01:42"} 
[2026-03-03 15:02:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":1,"order_id":5360,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":26022},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":26023},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26025}],"validated_items":[{"id":26022,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":26023,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":26025,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 15:02:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5360,"items_count":3} 
[2026-03-03 15:02:00] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":1,"items_to_remove":[26024],"items":[{"id":26022,"menu_item_id":105,"quantity":1},{"id":26023,"menu_item_id":396,"quantity":2},{"id":26025,"menu_item_id":5,"quantity":1}]} 
[2026-03-03 15:02:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5360,"has_item_changes":true,"old_items_count":4,"new_items_count":3,"old_items_map_keys":["105|1|","396|2|","61|1|","5|1|"],"new_items_map_keys":["105|1|","396|2|","5|1|"]} 
[2026-03-03 15:02:00] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5360,"order_number":"AZS-030326-008"} 
[2026-03-03 15:02:00] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-008","replaced_order_id":5360} 
[2026-03-03 15:02:00] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5365,"items_count":3,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-03 15:02:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5365,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5365}} 
[2026-03-03 15:02:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5365,"item_index":0,"menu_item_id":105} 
[2026-03-03 15:02:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5365,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5365}} 
[2026-03-03 15:02:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5365,"item_index":1,"menu_item_id":396} 
[2026-03-03 15:02:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5365,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5365}} 
[2026-03-03 15:02:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5365,"item_index":2,"menu_item_id":5} 
[2026-03-03 15:02:00] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5360,"new_order_id":5365,"order_number":"AZS-030326-008"} 
[2026-03-03 15:02:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5365,"item_index":0,"item_id":26022} 
[2026-03-03 15:02:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5365,"item_index":1,"item_id":26023} 
[2026-03-03 15:02:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5365,"item_index":2,"item_id":26025} 
[2026-03-03 15:02:23] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5365,"order_number":"AZS-030326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2567,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 15:02:23"} 
[2026-03-03 15:02:23] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5365,"order_number":"AZS-030326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2567,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 15:02:23"} 
[2026-03-03 15:02:23] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5365,"order_number":"AZS-030326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2567,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 15:02:23"} 
[2026-03-03 15:02:23] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5365,"order_number":"AZS-030326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2567,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 15:02:23"} 
[2026-03-03 15:02:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":5365,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26022},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26023},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26025}],"validated_items":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-03 15:02:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5365,"items_count":3} 
[2026-03-03 15:02:23] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[26045,26046,26047],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-03 15:02:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5365,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["105|1|","396|2|","5|1|"],"new_items_map_keys":["105|1|","396|2|","5|1|"]} 
[2026-03-03 15:02:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5365,"order_number":"AZS-030326-008"} 
[2026-03-03 15:02:23] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5365,"order_number":"AZS-030326-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2567,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-03 15:02:23","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-03 15:02:23"} 
[2026-03-03 15:02:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5365,"order_number":"AZS-030326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-03 15:02:23"} 
[2026-03-03 15:02:23] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5365,"order_number":"AZS-030326-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2567.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-03 15:02:23","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2567,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2567.00","database_verification_match":true,"timestamp":"2026-03-03 15:02:23"} 
[2026-03-03 15:02:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5358,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26013},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26014},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26015},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26016},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26017}],"validated_items":[{"id":26013,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26014,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26015,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26016,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26017,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-03 15:02:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5358,"items_count":5} 
[2026-03-03 15:02:55] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26013,"menu_item_id":105,"quantity":1},{"id":26014,"menu_item_id":396,"quantity":2},{"id":26015,"menu_item_id":61,"quantity":1},{"id":26016,"menu_item_id":56,"quantity":1},{"id":26017,"menu_item_id":5,"quantity":1}]} 
[2026-03-03 15:02:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5358,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-03 15:02:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5358,"order_number":"AZS-030326-009"} 
[2026-03-03 15:02:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5358,"order_number":"AZS-030326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 15:02:55"} 
[2026-03-03 15:03:16] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5358,"order_number":"AZS-030326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2766,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 15:03:16"} 
[2026-03-03 15:03:16] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5358,"order_number":"AZS-030326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2766,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 15:03:16"} 
[2026-03-03 15:03:16] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5358,"order_number":"AZS-030326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2766,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 15:03:16"} 
[2026-03-03 15:03:16] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5358,"order_number":"AZS-030326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2766,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 15:03:16"} 
[2026-03-03 15:03:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":5358,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26013},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26014},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26016},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26017}],"validated_items":[{"id":26013,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26014,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26016,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26017,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-03 15:03:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5358,"items_count":4} 
[2026-03-03 15:03:16] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[26015],"items":[{"id":26013,"menu_item_id":105,"quantity":1},{"id":26014,"menu_item_id":396,"quantity":2},{"id":26016,"menu_item_id":56,"quantity":1},{"id":26017,"menu_item_id":5,"quantity":1}]} 
[2026-03-03 15:03:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5358,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","396|2|","56|1|","5|1|"]} 
[2026-03-03 15:03:16] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5358,"order_number":"AZS-030326-009","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":2766,"new_order_data_payment_mode":"online","new_order_data_paid_at":"2026-03-03 15:03:16","original_payment_amount":"0.00","grand_total":2766.0,"timestamp":"2026-03-03 15:03:16"} 
[2026-03-03 15:03:16] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5358,"order_number":"AZS-030326-009"} 
[2026-03-03 15:03:16] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-009","replaced_order_id":5358} 
[2026-03-03 15:03:16] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5358,"new_order_id":5366,"order_number":"AZS-030326-009","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"2766.00","payment_mode_after_creation":"online","paid_at_after_creation":"2026-03-03 15:03:16","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2766,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-03 15:03:16"} 
[2026-03-03 15:03:16] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5366,"items_count":4,"items":[{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-03-03 15:03:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5366,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5366}} 
[2026-03-03 15:03:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5366,"item_index":0,"menu_item_id":105} 
[2026-03-03 15:03:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5366,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5366}} 
[2026-03-03 15:03:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5366,"item_index":1,"menu_item_id":396} 
[2026-03-03 15:03:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5366,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5366}} 
[2026-03-03 15:03:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5366,"item_index":2,"menu_item_id":56} 
[2026-03-03 15:03:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5366,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5366}} 
[2026-03-03 15:03:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5366,"item_index":3,"menu_item_id":5} 
[2026-03-03 15:03:16] local.ERROR: Error tracking recipe usage for order 5366: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5366, 105, 196, 1, 500, 0.00, Order #AZS-030326-009 - 1x Mutton Shinwari - Half, 2026-03-03 15:03:16, 2026-03-03 15:03:16))  
[2026-03-03 15:03:16] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5358,"new_order_id":5366,"order_number":"AZS-030326-009"} 
[2026-03-03 15:03:17] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5358,"new_order_id":5366,"order_number":"AZS-030326-009","route":"api/orders/5358"} 
[2026-03-03 15:09:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5368,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":104,"quantity":1,"discount_percent":0,"notes":null,"id":26056},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":26057},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26058},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26059},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26060},{"menu_item_id":42,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":401,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26056,"menu_item_id":104,"quantity":1,"discount_percent":0,"notes":null},{"id":26057,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"id":26058,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26059,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26060,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":42,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":401,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 15:09:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5368,"items_count":7} 
[2026-03-03 15:09:38] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26056,"menu_item_id":104,"quantity":1},{"id":26057,"menu_item_id":403,"quantity":1},{"id":26058,"menu_item_id":61,"quantity":1},{"id":26059,"menu_item_id":56,"quantity":1},{"id":26060,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":42,"quantity":1},{"id":null,"menu_item_id":401,"quantity":1}]} 
[2026-03-03 15:09:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5368,"has_item_changes":true,"old_items_count":5,"new_items_count":7,"old_items_map_keys":["104|1|","403|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["104|1|","403|1|","61|1|","56|1|","5|1|","42|1|","401|1|"]} 
[2026-03-03 15:09:38] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5368,"order_number":"AZS-030326-012"} 
[2026-03-03 15:09:38] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-012","replaced_order_id":5368} 
[2026-03-03 15:09:38] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5369,"items_count":7,"items":[{"menu_item_id":104,"quantity":1,"price":"4999.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":42,"quantity":1,"price":"299.00"},{"menu_item_id":401,"quantity":1,"price":"199.00"}]} 
[2026-03-03 15:09:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5369,"item_index":0,"item_data":{"menu_item_id":104,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Azan Special Ribs With Rice","quantity":1,"price":"4999.00","discount_percent":0.0,"discount_amount":0.0,"total":4999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5369}} 
[2026-03-03 15:09:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5369,"item_index":0,"menu_item_id":104} 
[2026-03-03 15:09:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5369,"item_index":1,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5369}} 
[2026-03-03 15:09:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5369,"item_index":1,"menu_item_id":403} 
[2026-03-03 15:09:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5369,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5369}} 
[2026-03-03 15:09:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5369,"item_index":2,"menu_item_id":61} 
[2026-03-03 15:09:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5369,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5369}} 
[2026-03-03 15:09:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5369,"item_index":3,"menu_item_id":56} 
[2026-03-03 15:09:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5369,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5369}} 
[2026-03-03 15:09:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5369,"item_index":4,"menu_item_id":5} 
[2026-03-03 15:09:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5369,"item_index":5,"item_data":{"menu_item_id":42,"restaurant_category_id":7,"restaurant_category_name":"FRAPPE","item_name":"Mint Mojito","quantity":1,"price":"299.00","discount_percent":0.0,"discount_amount":0.0,"total":299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5369}} 
[2026-03-03 15:09:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5369,"item_index":5,"menu_item_id":42} 
[2026-03-03 15:09:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5369,"item_index":6,"item_data":{"menu_item_id":401,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"FRESH LIME","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5369}} 
[2026-03-03 15:09:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5369,"item_index":6,"menu_item_id":401} 
[2026-03-03 15:09:38] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5368,"new_order_id":5369,"order_number":"AZS-030326-012"} 
[2026-03-03 15:28:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5371,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null,"id":26070},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":26071},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":26072},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26073},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26074},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26075}],"validated_items":[{"id":26070,"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null},{"id":26071,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":26072,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":26073,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26074,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26075,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 15:28:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5371,"items_count":6} 
[2026-03-03 15:28:19] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26070,"menu_item_id":113,"quantity":2},{"id":26071,"menu_item_id":64,"quantity":1},{"id":26072,"menu_item_id":396,"quantity":3},{"id":26073,"menu_item_id":61,"quantity":1},{"id":26074,"menu_item_id":56,"quantity":1},{"id":26075,"menu_item_id":5,"quantity":1}]} 
[2026-03-03 15:28:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5371,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","64|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["113|2|","64|1|","396|3|","61|1|","56|1|","5|1|"]} 
[2026-03-03 15:28:19] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5371,"order_number":"AZS-030326-014"} 
[2026-03-03 15:28:19] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-014","replaced_order_id":5371} 
[2026-03-03 15:28:19] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5373,"items_count":6,"items":[{"menu_item_id":113,"quantity":2,"price":"1199.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-03 15:28:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5373,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5373}} 
[2026-03-03 15:28:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5373,"item_index":0,"menu_item_id":113} 
[2026-03-03 15:28:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5373,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5373}} 
[2026-03-03 15:28:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5373,"item_index":1,"menu_item_id":64} 
[2026-03-03 15:28:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5373,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5373}} 
[2026-03-03 15:28:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5373,"item_index":2,"menu_item_id":396} 
[2026-03-03 15:28:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5373,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5373}} 
[2026-03-03 15:28:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5373,"item_index":3,"menu_item_id":61} 
[2026-03-03 15:28:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5373,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5373}} 
[2026-03-03 15:28:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5373,"item_index":4,"menu_item_id":56} 
[2026-03-03 15:28:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5373,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5373}} 
[2026-03-03 15:28:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5373,"item_index":5,"menu_item_id":5} 
[2026-03-03 15:28:19] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5371,"new_order_id":5373,"order_number":"AZS-030326-014"} 
[2026-03-03 15:38:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5364,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":26041},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":26042},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26043},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26044},{"menu_item_id":401,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26041,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":26042,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"id":26043,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26044,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":401,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 15:38:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5364,"items_count":6} 
[2026-03-03 15:38:50] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26041,"menu_item_id":105,"quantity":1},{"id":26042,"menu_item_id":48,"quantity":1},{"id":26043,"menu_item_id":61,"quantity":1},{"id":26044,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":401,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-03 15:38:50] local.INFO: PosOrderController::update - Item changes check {"order_id":5364,"has_item_changes":true,"old_items_count":4,"new_items_count":6,"old_items_map_keys":["105|1|","48|1|","61|1|","5|1|"],"new_items_map_keys":["105|1|","48|1|","61|1|","5|1|","401|1|","2|1|"]} 
[2026-03-03 15:38:50] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5364,"order_number":"AZS-030326-010"} 
[2026-03-03 15:38:50] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-010","replaced_order_id":5364} 
[2026-03-03 15:38:50] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5374,"items_count":6,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":401,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-03 15:38:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5374,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5374}} 
[2026-03-03 15:38:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5374,"item_index":0,"menu_item_id":105} 
[2026-03-03 15:38:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5374,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5374}} 
[2026-03-03 15:38:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5374,"item_index":1,"menu_item_id":48} 
[2026-03-03 15:38:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5374,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5374}} 
[2026-03-03 15:38:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5374,"item_index":2,"menu_item_id":61} 
[2026-03-03 15:38:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5374,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5374}} 
[2026-03-03 15:38:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5374,"item_index":3,"menu_item_id":5} 
[2026-03-03 15:38:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5374,"item_index":4,"item_data":{"menu_item_id":401,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"FRESH LIME","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5374}} 
[2026-03-03 15:38:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5374,"item_index":4,"menu_item_id":401} 
[2026-03-03 15:38:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5374,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5374}} 
[2026-03-03 15:38:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5374,"item_index":5,"menu_item_id":2} 
[2026-03-03 15:38:50] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5364,"new_order_id":5374,"order_number":"AZS-030326-010"} 
[2026-03-03 15:43:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5367,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":26052},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":26053},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":26054},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26055},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26052,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":26053,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":26054,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":26055,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 15:43:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5367,"items_count":5} 
[2026-03-03 15:43:11] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26052,"menu_item_id":105,"quantity":1},{"id":26053,"menu_item_id":396,"quantity":1},{"id":26054,"menu_item_id":50,"quantity":2},{"id":26055,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-03 15:43:11] local.INFO: PosOrderController::update - Item changes check {"order_id":5367,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["105|1|","396|1|","50|2|","5|1|"],"new_items_map_keys":["105|1|","396|1|","50|2|","5|1|","3|1|"]} 
[2026-03-03 15:43:11] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5367,"order_number":"AZS-030326-011"} 
[2026-03-03 15:43:11] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-011","replaced_order_id":5367} 
[2026-03-03 15:43:11] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5375,"items_count":5,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-03 15:43:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5375,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5375}} 
[2026-03-03 15:43:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5375,"item_index":0,"menu_item_id":105} 
[2026-03-03 15:43:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5375,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5375}} 
[2026-03-03 15:43:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5375,"item_index":1,"menu_item_id":396} 
[2026-03-03 15:43:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5375,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5375}} 
[2026-03-03 15:43:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5375,"item_index":2,"menu_item_id":50} 
[2026-03-03 15:43:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5375,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5375}} 
[2026-03-03 15:43:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5375,"item_index":3,"menu_item_id":5} 
[2026-03-03 15:43:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5375,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5375}} 
[2026-03-03 15:43:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5375,"item_index":4,"menu_item_id":3} 
[2026-03-03 15:43:11] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5367,"new_order_id":5375,"order_number":"AZS-030326-011"} 
[2026-03-03 15:45:53] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5372,"order_number":"AZS-030326-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":200,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 15:45:53"} 
[2026-03-03 15:45:53] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5372,"order_number":"AZS-030326-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 15:45:53"} 
[2026-03-03 15:45:53] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5372,"order_number":"AZS-030326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 15:45:53"} 
[2026-03-03 15:45:53] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5372,"order_number":"AZS-030326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 15:45:53"} 
[2026-03-03 15:45:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5372,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26076}],"validated_items":[{"id":26076,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-03 15:45:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5372,"items_count":1} 
[2026-03-03 15:45:53] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26076,"menu_item_id":6,"quantity":1}]} 
[2026-03-03 15:45:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5372,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-03-03 15:45:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5372,"order_number":"AZS-030326-015"} 
[2026-03-03 15:45:53] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5372,"order_number":"AZS-030326-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":200,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-03 15:45:53","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-03 15:45:53"} 
[2026-03-03 15:45:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5372,"order_number":"AZS-030326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-03 15:45:53"} 
[2026-03-03 15:45:53] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5372,"order_number":"AZS-030326-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"200.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-03 15:45:53","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"200.00","database_verification_match":true,"timestamp":"2026-03-03 15:45:53"} 
[2026-03-03 15:59:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5375,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":26089},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":26090},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":26091},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26092},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":26093},{"menu_item_id":23,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":26089,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":26090,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":26091,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":26092,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":26093,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":23,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-03 15:59:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5375,"items_count":6} 
[2026-03-03 15:59:20] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26089,"menu_item_id":105,"quantity":1},{"id":26090,"menu_item_id":396,"quantity":1},{"id":26091,"menu_item_id":50,"quantity":2},{"id":26092,"menu_item_id":5,"quantity":1},{"id":26093,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":23,"quantity":3}]} 
[2026-03-03 15:59:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5375,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["105|1|","396|1|","50|2|","5|1|","3|1|"],"new_items_map_keys":["105|1|","396|1|","50|2|","5|1|","3|1|","23|3|"]} 
[2026-03-03 15:59:20] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5375,"order_number":"AZS-030326-011"} 
[2026-03-03 15:59:20] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-011","replaced_order_id":5375} 
[2026-03-03 15:59:20] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5376,"items_count":6,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":23,"quantity":3,"price":"249.00"}]} 
[2026-03-03 15:59:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5376,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5376}} 
[2026-03-03 15:59:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5376,"item_index":0,"menu_item_id":105} 
[2026-03-03 15:59:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5376,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5376}} 
[2026-03-03 15:59:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5376,"item_index":1,"menu_item_id":396} 
[2026-03-03 15:59:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5376,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5376}} 
[2026-03-03 15:59:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5376,"item_index":2,"menu_item_id":50} 
[2026-03-03 15:59:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5376,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5376}} 
[2026-03-03 15:59:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5376,"item_index":3,"menu_item_id":5} 
[2026-03-03 15:59:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5376,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5376}} 
[2026-03-03 15:59:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5376,"item_index":4,"menu_item_id":3} 
[2026-03-03 15:59:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5376,"item_index":5,"item_data":{"menu_item_id":23,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Vanilla","quantity":3,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5376}} 
[2026-03-03 15:59:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5376,"item_index":5,"menu_item_id":23} 
[2026-03-03 15:59:20] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5375,"new_order_id":5376,"order_number":"AZS-030326-011"} 
[2026-03-03 15:59:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5374,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":26083},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":26084},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26085},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26086},{"menu_item_id":401,"quantity":1,"discount_percent":0,"notes":null,"id":26087},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":26088},{"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":26083,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":26084,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"id":26085,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26086,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":26087,"menu_item_id":401,"quantity":1,"discount_percent":0,"notes":null},{"id":26088,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-03 15:59:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5374,"items_count":7} 
[2026-03-03 15:59:46] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26083,"menu_item_id":105,"quantity":1},{"id":26084,"menu_item_id":48,"quantity":1},{"id":26085,"menu_item_id":61,"quantity":1},{"id":26086,"menu_item_id":5,"quantity":1},{"id":26087,"menu_item_id":401,"quantity":1},{"id":26088,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":9,"quantity":2}]} 
[2026-03-03 15:59:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5374,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["105|1|","48|1|","61|1|","5|1|","401|1|","2|1|"],"new_items_map_keys":["105|1|","48|1|","61|1|","5|1|","401|1|","2|1|","9|2|"]} 
[2026-03-03 15:59:46] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5374,"order_number":"AZS-030326-010"} 
[2026-03-03 15:59:46] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-010","replaced_order_id":5374} 
[2026-03-03 15:59:46] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5377,"items_count":7,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":401,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":9,"quantity":2,"price":"229.00"}]} 
[2026-03-03 15:59:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5377,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5377}} 
[2026-03-03 15:59:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5377,"item_index":0,"menu_item_id":105} 
[2026-03-03 15:59:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5377,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5377}} 
[2026-03-03 15:59:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5377,"item_index":1,"menu_item_id":48} 
[2026-03-03 15:59:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5377,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5377}} 
[2026-03-03 15:59:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5377,"item_index":2,"menu_item_id":61} 
[2026-03-03 15:59:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5377,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5377}} 
[2026-03-03 15:59:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5377,"item_index":3,"menu_item_id":5} 
[2026-03-03 15:59:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5377,"item_index":4,"item_data":{"menu_item_id":401,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"FRESH LIME","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5377}} 
[2026-03-03 15:59:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5377,"item_index":4,"menu_item_id":401} 
[2026-03-03 15:59:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5377,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5377}} 
[2026-03-03 15:59:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5377,"item_index":5,"menu_item_id":2} 
[2026-03-03 15:59:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5377,"item_index":6,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":2,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":458.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5377}} 
[2026-03-03 15:59:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5377,"item_index":6,"menu_item_id":9} 
[2026-03-03 15:59:46] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5374,"new_order_id":5377,"order_number":"AZS-030326-010"} 
[2026-03-03 16:02:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":1,"order_id":5369,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":104,"quantity":1,"discount_percent":0,"notes":null,"id":26061},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":26062},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26063},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26064},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26065},{"menu_item_id":42,"quantity":1,"discount_percent":0,"notes":null,"id":26066},{"menu_item_id":43,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":26061,"menu_item_id":104,"quantity":1,"discount_percent":0,"notes":null},{"id":26062,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"id":26063,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26064,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26065,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":26066,"menu_item_id":42,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":43,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-03 16:02:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5369,"items_count":7} 
[2026-03-03 16:02:12] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":1,"items_to_remove":[26067],"items":[{"id":26061,"menu_item_id":104,"quantity":1},{"id":26062,"menu_item_id":403,"quantity":1},{"id":26063,"menu_item_id":61,"quantity":1},{"id":26064,"menu_item_id":56,"quantity":1},{"id":26065,"menu_item_id":5,"quantity":1},{"id":26066,"menu_item_id":42,"quantity":1},{"id":null,"menu_item_id":43,"quantity":2}]} 
[2026-03-03 16:02:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5369,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["104|1|","403|1|","61|1|","56|1|","5|1|","42|1|","401|1|"],"new_items_map_keys":["104|1|","403|1|","61|1|","56|1|","5|1|","42|1|","43|2|"]} 
[2026-03-03 16:02:12] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5369,"order_number":"AZS-030326-012"} 
[2026-03-03 16:02:12] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-012","replaced_order_id":5369} 
[2026-03-03 16:02:12] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5378,"items_count":7,"items":[{"menu_item_id":104,"quantity":1,"price":"4999.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":42,"quantity":1,"price":"299.00"},{"menu_item_id":43,"quantity":2,"price":"379.00"}]} 
[2026-03-03 16:02:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5378,"item_index":0,"item_data":{"menu_item_id":104,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Azan Special Ribs With Rice","quantity":1,"price":"4999.00","discount_percent":0.0,"discount_amount":0.0,"total":4999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5378}} 
[2026-03-03 16:02:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5378,"item_index":0,"menu_item_id":104} 
[2026-03-03 16:02:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5378,"item_index":1,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5378}} 
[2026-03-03 16:02:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5378,"item_index":1,"menu_item_id":403} 
[2026-03-03 16:02:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5378,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5378}} 
[2026-03-03 16:02:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5378,"item_index":2,"menu_item_id":61} 
[2026-03-03 16:02:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5378,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5378}} 
[2026-03-03 16:02:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5378,"item_index":3,"menu_item_id":56} 
[2026-03-03 16:02:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5378,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5378}} 
[2026-03-03 16:02:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5378,"item_index":4,"menu_item_id":5} 
[2026-03-03 16:02:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5378,"item_index":5,"item_data":{"menu_item_id":42,"restaurant_category_id":7,"restaurant_category_name":"FRAPPE","item_name":"Mint Mojito","quantity":1,"price":"299.00","discount_percent":0.0,"discount_amount":0.0,"total":299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5378}} 
[2026-03-03 16:02:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5378,"item_index":5,"menu_item_id":42} 
[2026-03-03 16:02:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5378,"item_index":6,"item_data":{"menu_item_id":43,"restaurant_category_id":7,"restaurant_category_name":"FRAPPE","item_name":"Strawberry Mojito","quantity":2,"price":"379.00","discount_percent":0.0,"discount_amount":0.0,"total":758.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5378}} 
[2026-03-03 16:02:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5378,"item_index":6,"menu_item_id":43} 
[2026-03-03 16:02:12] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5369,"new_order_id":5378,"order_number":"AZS-030326-012"} 
[2026-03-03 16:06:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":5377,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":26100},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":26101},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26102},{"menu_item_id":401,"quantity":1,"discount_percent":0,"notes":null,"id":26104},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":26105},{"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null,"id":26106}],"validated_items":[{"id":26100,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":26101,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"id":26102,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26104,"menu_item_id":401,"quantity":1,"discount_percent":0,"notes":null},{"id":26105,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":26106,"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-03 16:06:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5377,"items_count":6} 
[2026-03-03 16:06:57] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[26103],"items":[{"id":26100,"menu_item_id":105,"quantity":1},{"id":26101,"menu_item_id":48,"quantity":1},{"id":26102,"menu_item_id":61,"quantity":1},{"id":26104,"menu_item_id":401,"quantity":1},{"id":26105,"menu_item_id":2,"quantity":1},{"id":26106,"menu_item_id":9,"quantity":2}]} 
[2026-03-03 16:06:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5377,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["105|1|","48|1|","61|1|","5|1|","401|1|","2|1|","9|2|"],"new_items_map_keys":["105|1|","48|1|","61|1|","401|1|","2|1|","9|2|"]} 
[2026-03-03 16:06:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5377,"order_number":"AZS-030326-010"} 
[2026-03-03 16:06:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-010","replaced_order_id":5377} 
[2026-03-03 16:06:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5379,"items_count":6,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":401,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":9,"quantity":2,"price":"229.00"}]} 
[2026-03-03 16:06:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5379,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5379}} 
[2026-03-03 16:06:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5379,"item_index":0,"menu_item_id":105} 
[2026-03-03 16:06:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5379,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5379}} 
[2026-03-03 16:06:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5379,"item_index":1,"menu_item_id":48} 
[2026-03-03 16:06:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5379,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5379}} 
[2026-03-03 16:06:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5379,"item_index":2,"menu_item_id":61} 
[2026-03-03 16:06:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5379,"item_index":3,"item_data":{"menu_item_id":401,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"FRESH LIME","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5379}} 
[2026-03-03 16:06:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5379,"item_index":3,"menu_item_id":401} 
[2026-03-03 16:06:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5379,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5379}} 
[2026-03-03 16:06:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5379,"item_index":4,"menu_item_id":2} 
[2026-03-03 16:06:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5379,"item_index":5,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":2,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":458.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5379}} 
[2026-03-03 16:06:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5379,"item_index":5,"menu_item_id":9} 
[2026-03-03 16:06:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5377,"new_order_id":5379,"order_number":"AZS-030326-010"} 
[2026-03-03 16:13:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5373,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null,"id":26077},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":26078},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":26079},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26080},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26081},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26082},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26077,"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null},{"id":26078,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":26079,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":26080,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26081,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26082,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 16:13:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5373,"items_count":7} 
[2026-03-03 16:13:29] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26077,"menu_item_id":113,"quantity":2},{"id":26078,"menu_item_id":64,"quantity":1},{"id":26079,"menu_item_id":396,"quantity":3},{"id":26080,"menu_item_id":61,"quantity":1},{"id":26081,"menu_item_id":56,"quantity":1},{"id":26082,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-03 16:13:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5373,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["113|2|","64|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["113|2|","64|1|","396|3|","61|1|","56|1|","5|1|","2|1|"]} 
[2026-03-03 16:13:29] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5373,"order_number":"AZS-030326-014"} 
[2026-03-03 16:13:29] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-014","replaced_order_id":5373} 
[2026-03-03 16:13:29] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5380,"items_count":7,"items":[{"menu_item_id":113,"quantity":2,"price":"1199.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-03 16:13:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5380,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5380}} 
[2026-03-03 16:13:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5380,"item_index":0,"menu_item_id":113} 
[2026-03-03 16:13:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5380,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5380}} 
[2026-03-03 16:13:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5380,"item_index":1,"menu_item_id":64} 
[2026-03-03 16:13:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5380,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5380}} 
[2026-03-03 16:13:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5380,"item_index":2,"menu_item_id":396} 
[2026-03-03 16:13:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5380,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5380}} 
[2026-03-03 16:13:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5380,"item_index":3,"menu_item_id":61} 
[2026-03-03 16:13:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5380,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5380}} 
[2026-03-03 16:13:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5380,"item_index":4,"menu_item_id":56} 
[2026-03-03 16:13:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5380,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5380}} 
[2026-03-03 16:13:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5380,"item_index":5,"menu_item_id":5} 
[2026-03-03 16:13:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5380,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5380}} 
[2026-03-03 16:13:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5380,"item_index":6,"menu_item_id":2} 
[2026-03-03 16:13:29] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5373,"new_order_id":5380,"order_number":"AZS-030326-014"} 
[2026-03-03 16:14:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5370,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":26068},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26069}],"validated_items":[{"id":26068,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":26069,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-03 16:14:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5370,"items_count":2} 
[2026-03-03 16:14:45] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26068,"menu_item_id":29,"quantity":1},{"id":26069,"menu_item_id":2,"quantity":1}]} 
[2026-03-03 16:14:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5370,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["29|1|","2|1|"],"new_items_map_keys":["29|1|","2|1|"]} 
[2026-03-03 16:14:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5370,"order_number":"AZS-030326-013"} 
[2026-03-03 16:14:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5370,"order_number":"AZS-030326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 16:14:45"} 
[2026-03-03 16:16:14] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5370,"order_number":"AZS-030326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":400,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 16:16:14"} 
[2026-03-03 16:16:14] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5370,"order_number":"AZS-030326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":400,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 16:16:14"} 
[2026-03-03 16:16:14] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5370,"order_number":"AZS-030326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":400,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 16:16:14"} 
[2026-03-03 16:16:14] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5370,"order_number":"AZS-030326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":400,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 16:16:14"} 
[2026-03-03 16:16:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5370,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":26068},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26069}],"validated_items":[{"id":26068,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":26069,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-03 16:16:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5370,"items_count":2} 
[2026-03-03 16:16:14] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26068,"menu_item_id":29,"quantity":1},{"id":26069,"menu_item_id":2,"quantity":1}]} 
[2026-03-03 16:16:14] local.INFO: PosOrderController::update - Item changes check {"order_id":5370,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["29|1|","2|1|"],"new_items_map_keys":["29|1|","2|1|"]} 
[2026-03-03 16:16:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5370,"order_number":"AZS-030326-013"} 
[2026-03-03 16:16:14] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5370,"order_number":"AZS-030326-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":400,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-03 16:16:14","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-03 16:16:14"} 
[2026-03-03 16:16:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5370,"order_number":"AZS-030326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-03 16:16:14"} 
[2026-03-03 16:16:14] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5370,"order_number":"AZS-030326-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"400.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-03 16:16:14","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":400,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"400.00","database_verification_match":true,"timestamp":"2026-03-03 16:16:14"} 
[2026-03-03 16:19:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5379,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26114},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":26115},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26116},{"menu_item_id":401,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26117},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26118},{"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null,"id":26119}],"validated_items":[{"id":26114,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26115,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":26116,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26117,"menu_item_id":401,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26118,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":26119,"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null}]} 
[2026-03-03 16:19:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5379,"items_count":6} 
[2026-03-03 16:19:01] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26114,"menu_item_id":105,"quantity":1},{"id":26115,"menu_item_id":48,"quantity":1},{"id":26116,"menu_item_id":61,"quantity":1},{"id":26117,"menu_item_id":401,"quantity":1},{"id":26118,"menu_item_id":2,"quantity":1},{"id":26119,"menu_item_id":9,"quantity":2}]} 
[2026-03-03 16:19:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5379,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["105|1|","48|1|","61|1|","401|1|","2|1|","9|2|"],"new_items_map_keys":["105|1|","48|1|","61|1|","401|1|","2|1|","9|2|"]} 
[2026-03-03 16:19:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5379,"order_number":"AZS-030326-010"} 
[2026-03-03 16:19:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5379,"order_number":"AZS-030326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 16:19:01"} 
[2026-03-03 16:21:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5376,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26094},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26095},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":26096},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26097},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26098},{"menu_item_id":23,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":26099}],"validated_items":[{"id":26094,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26095,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":26096,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":26097,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26098,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":26099,"menu_item_id":23,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-03 16:21:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5376,"items_count":6} 
[2026-03-03 16:21:07] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26094,"menu_item_id":105,"quantity":1},{"id":26095,"menu_item_id":396,"quantity":1},{"id":26096,"menu_item_id":50,"quantity":2},{"id":26097,"menu_item_id":5,"quantity":1},{"id":26098,"menu_item_id":3,"quantity":1},{"id":26099,"menu_item_id":23,"quantity":3}]} 
[2026-03-03 16:21:07] local.INFO: PosOrderController::update - Item changes check {"order_id":5376,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["105|1|","396|1|","50|2|","5|1|","3|1|","23|3|"],"new_items_map_keys":["105|1|","396|1|","50|2|","5|1|","3|1|","23|3|"]} 
[2026-03-03 16:21:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5376,"order_number":"AZS-030326-011"} 
[2026-03-03 16:21:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5376,"order_number":"AZS-030326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 16:21:07"} 
[2026-03-03 16:21:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5380,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":26120},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":26121},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26122},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26123},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26124},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26125},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26126}],"validated_items":[{"id":26120,"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":26121,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":26122,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26123,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26124,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26125,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26126,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-03 16:21:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5380,"items_count":7} 
[2026-03-03 16:21:19] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26120,"menu_item_id":113,"quantity":2},{"id":26121,"menu_item_id":64,"quantity":1},{"id":26122,"menu_item_id":396,"quantity":3},{"id":26123,"menu_item_id":61,"quantity":1},{"id":26124,"menu_item_id":56,"quantity":1},{"id":26125,"menu_item_id":5,"quantity":1},{"id":26126,"menu_item_id":2,"quantity":1}]} 
[2026-03-03 16:21:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5380,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["113|2|","64|1|","396|3|","61|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["113|2|","64|1|","396|3|","61|1|","56|1|","5|1|","2|1|"]} 
[2026-03-03 16:21:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5380,"order_number":"AZS-030326-014"} 
[2026-03-03 16:21:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5380,"order_number":"AZS-030326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 16:21:19"} 
[2026-03-03 16:21:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5380,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":26120},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":26121},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":26122},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26123},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26124},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26125},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26126}],"validated_items":[{"id":26120,"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":26121,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":26122,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":26123,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26124,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26125,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26126,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-03 16:21:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5380,"items_count":7} 
[2026-03-03 16:21:55] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26120,"menu_item_id":113,"quantity":2},{"id":26121,"menu_item_id":64,"quantity":1},{"id":26122,"menu_item_id":396,"quantity":4},{"id":26123,"menu_item_id":61,"quantity":1},{"id":26124,"menu_item_id":56,"quantity":1},{"id":26125,"menu_item_id":5,"quantity":1},{"id":26126,"menu_item_id":2,"quantity":1}]} 
[2026-03-03 16:21:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5380,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["113|2|","64|1|","396|3|","61|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["113|2|","64|1|","396|4|","61|1|","56|1|","5|1|","2|1|"]} 
[2026-03-03 16:21:55] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5380,"order_number":"AZS-030326-014"} 
[2026-03-03 16:21:55] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-014","replaced_order_id":5380} 
[2026-03-03 16:21:55] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5382,"items_count":7,"items":[{"menu_item_id":113,"quantity":2,"price":1199.0},{"menu_item_id":64,"quantity":1,"price":999.0},{"menu_item_id":396,"quantity":4,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":2,"quantity":1,"price":130.0}]} 
[2026-03-03 16:21:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5382,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":2,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5382}} 
[2026-03-03 16:21:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5382,"item_index":0,"menu_item_id":113} 
[2026-03-03 16:21:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5382,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":999.0,"discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5382}} 
[2026-03-03 16:21:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5382,"item_index":1,"menu_item_id":64} 
[2026-03-03 16:21:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5382,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5382}} 
[2026-03-03 16:21:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5382,"item_index":2,"menu_item_id":396} 
[2026-03-03 16:21:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5382,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5382}} 
[2026-03-03 16:21:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5382,"item_index":3,"menu_item_id":61} 
[2026-03-03 16:21:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5382,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5382}} 
[2026-03-03 16:21:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5382,"item_index":4,"menu_item_id":56} 
[2026-03-03 16:21:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5382,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5382}} 
[2026-03-03 16:21:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5382,"item_index":5,"menu_item_id":5} 
[2026-03-03 16:21:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5382,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5382}} 
[2026-03-03 16:21:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5382,"item_index":6,"menu_item_id":2} 
[2026-03-03 16:21:55] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5380,"new_order_id":5382,"order_number":"AZS-030326-014"} 
[2026-03-03 16:21:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5382,"item_index":0,"item_id":26120} 
[2026-03-03 16:21:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5382,"item_index":1,"item_id":26121} 
[2026-03-03 16:21:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5382,"item_index":2,"item_id":26122} 
[2026-03-03 16:21:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5382,"item_index":3,"item_id":26123} 
[2026-03-03 16:21:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5382,"item_index":4,"item_id":26124} 
[2026-03-03 16:21:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5382,"item_index":5,"item_id":26125} 
[2026-03-03 16:21:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5382,"item_index":6,"item_id":26126} 
[2026-03-03 16:21:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5382,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":26120},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":26121},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":26122},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26123},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26124},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26125},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26126}],"validated_items":[{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-03 16:21:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5382,"items_count":7} 
[2026-03-03 16:21:59] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[26131,26132,26133,26134,26135,26136,26137],"items":[{"id":null,"menu_item_id":113,"quantity":2},{"id":null,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-03 16:21:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5382,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["113|2|","64|1|","396|4|","61|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["113|2|","64|1|","396|4|","61|1|","56|1|","5|1|","2|1|"]} 
[2026-03-03 16:21:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5382,"order_number":"AZS-030326-014"} 
[2026-03-03 16:21:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5382,"order_number":"AZS-030326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 16:21:59"} 
[2026-03-03 16:29:52] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5379,"order_number":"AZS-030326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 16:29:52"} 
[2026-03-03 16:29:52] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5379,"order_number":"AZS-030326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 16:29:52"} 
[2026-03-03 16:29:52] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5379,"order_number":"AZS-030326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 16:29:52"} 
[2026-03-03 16:29:52] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5379,"order_number":"AZS-030326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 16:29:52"} 
[2026-03-03 16:29:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5379,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26114},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":26115},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26116},{"menu_item_id":401,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26117},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26118},{"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null,"id":26119}],"validated_items":[{"id":26114,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26115,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":26116,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26117,"menu_item_id":401,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26118,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":26119,"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null}]} 
[2026-03-03 16:29:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5379,"items_count":6} 
[2026-03-03 16:29:52] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26114,"menu_item_id":105,"quantity":1},{"id":26115,"menu_item_id":48,"quantity":1},{"id":26116,"menu_item_id":61,"quantity":1},{"id":26117,"menu_item_id":401,"quantity":1},{"id":26118,"menu_item_id":2,"quantity":1},{"id":26119,"menu_item_id":9,"quantity":2}]} 
[2026-03-03 16:29:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5379,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["105|1|","48|1|","61|1|","401|1|","2|1|","9|2|"],"new_items_map_keys":["105|1|","48|1|","61|1|","401|1|","2|1|","9|2|"]} 
[2026-03-03 16:29:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5379,"order_number":"AZS-030326-010"} 
[2026-03-03 16:29:52] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5379,"order_number":"AZS-030326-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-03 16:29:52","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-03 16:29:52"} 
[2026-03-03 16:29:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5379,"order_number":"AZS-030326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-03 16:29:52"} 
[2026-03-03 16:29:52] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5379,"order_number":"AZS-030326-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-03 16:29:52","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-03 16:29:52"} 
[2026-03-03 16:31:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T04:31:29.195Z","date_to":"2026-03-03T16:31:29.195Z","per_page":"100"} 
[2026-03-03 16:31:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T04:31:29.177Z","date_to":"2026-03-03T16:31:29.177Z","per_page":"100"} 
[2026-03-03 16:31:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","paid","pending","changed","changed","changed","paid","pending","changed","changed","pending","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":19,"paid_count":12,"unpaid_count":4,"unique_order_numbers":16} 
[2026-03-03 16:31:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","paid","pending","changed","changed","changed","paid","pending","changed","changed","pending","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":19,"paid_count":12,"unpaid_count":4,"unique_order_numbers":16} 
[2026-03-03 16:31:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T04:31:29.177Z","date_to":"2026-03-03T16:31:29.177Z","per_page":"100"} 
[2026-03-03 16:31:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","paid","pending","changed","changed","changed","paid","pending","changed","changed","pending","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":19,"paid_count":12,"unpaid_count":4,"unique_order_numbers":16} 
[2026-03-03 16:32:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5382,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":26131},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":26132},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":26133},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26134},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26135},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26136},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26137}],"validated_items":[{"id":26131,"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":26132,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":26133,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":26134,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26135,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26136,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26137,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-03 16:32:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5382,"items_count":7} 
[2026-03-03 16:32:31] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26131,"menu_item_id":113,"quantity":2},{"id":26132,"menu_item_id":64,"quantity":1},{"id":26133,"menu_item_id":396,"quantity":4},{"id":26134,"menu_item_id":61,"quantity":1},{"id":26135,"menu_item_id":56,"quantity":1},{"id":26136,"menu_item_id":5,"quantity":1},{"id":26137,"menu_item_id":2,"quantity":1}]} 
[2026-03-03 16:32:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5382,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["113|2|","64|1|","396|4|","61|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["113|2|","64|1|","396|4|","61|1|","56|1|","5|1|","2|1|"]} 
[2026-03-03 16:32:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5382,"order_number":"AZS-030326-014"} 
[2026-03-03 16:32:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5382,"order_number":"AZS-030326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 16:32:31"} 
[2026-03-03 16:33:26] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5382,"order_number":"AZS-030326-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4716,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 16:33:26"} 
[2026-03-03 16:33:26] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5382,"order_number":"AZS-030326-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4716,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 16:33:26"} 
[2026-03-03 16:33:26] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5382,"order_number":"AZS-030326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4716,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 16:33:26"} 
[2026-03-03 16:33:26] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5382,"order_number":"AZS-030326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4716,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 16:33:26"} 
[2026-03-03 16:33:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5382,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":26131},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":26132},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":26133},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26134},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26135},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26136},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26137}],"validated_items":[{"id":26131,"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":26132,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":26133,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":26134,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26135,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26136,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26137,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-03 16:33:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5382,"items_count":7} 
[2026-03-03 16:33:26] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26131,"menu_item_id":113,"quantity":2},{"id":26132,"menu_item_id":64,"quantity":1},{"id":26133,"menu_item_id":396,"quantity":4},{"id":26134,"menu_item_id":61,"quantity":1},{"id":26135,"menu_item_id":56,"quantity":1},{"id":26136,"menu_item_id":5,"quantity":1},{"id":26137,"menu_item_id":2,"quantity":1}]} 
[2026-03-03 16:33:26] local.INFO: PosOrderController::update - Item changes check {"order_id":5382,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["113|2|","64|1|","396|4|","61|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["113|2|","64|1|","396|4|","61|1|","56|1|","5|1|","2|1|"]} 
[2026-03-03 16:33:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5382,"order_number":"AZS-030326-014"} 
[2026-03-03 16:33:26] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5382,"order_number":"AZS-030326-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4716,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-03 16:33:26","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-03 16:33:26"} 
[2026-03-03 16:33:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5382,"order_number":"AZS-030326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-03 16:33:26"} 
[2026-03-03 16:33:26] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5382,"order_number":"AZS-030326-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4716.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-03 16:33:26","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4716,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4716.00","database_verification_match":true,"timestamp":"2026-03-03 16:33:26"} 
[2026-03-03 16:34:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5381,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":26127},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":26128},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26129},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26130},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26127,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":26128,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":26129,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26130,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 16:34:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5381,"items_count":5} 
[2026-03-03 16:34:03] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26127,"menu_item_id":97,"quantity":1},{"id":26128,"menu_item_id":396,"quantity":3},{"id":26129,"menu_item_id":61,"quantity":1},{"id":26130,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-03 16:34:03] local.INFO: PosOrderController::update - Item changes check {"order_id":5381,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["97|1|","396|3|","61|1|","5|1|"],"new_items_map_keys":["97|1|","396|3|","61|1|","5|1|","3|1|"]} 
[2026-03-03 16:34:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5381,"order_number":"AZS-030326-016"} 
[2026-03-03 16:34:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-016","replaced_order_id":5381} 
[2026-03-03 16:34:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5383,"items_count":5,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-03 16:34:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5383,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5383}} 
[2026-03-03 16:34:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5383,"item_index":0,"menu_item_id":97} 
[2026-03-03 16:34:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5383,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5383}} 
[2026-03-03 16:34:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5383,"item_index":1,"menu_item_id":396} 
[2026-03-03 16:34:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5383,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5383}} 
[2026-03-03 16:34:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5383,"item_index":2,"menu_item_id":61} 
[2026-03-03 16:34:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5383,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5383}} 
[2026-03-03 16:34:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5383,"item_index":3,"menu_item_id":5} 
[2026-03-03 16:34:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5383,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5383}} 
[2026-03-03 16:34:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5383,"item_index":4,"menu_item_id":3} 
[2026-03-03 16:34:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5381,"new_order_id":5383,"order_number":"AZS-030326-016"} 
[2026-03-03 16:34:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5376,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26094},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26095},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":26096},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26097},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26098},{"menu_item_id":23,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":26099}],"validated_items":[{"id":26094,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26095,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":26096,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":26097,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26098,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":26099,"menu_item_id":23,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-03 16:34:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5376,"items_count":6} 
[2026-03-03 16:34:46] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26094,"menu_item_id":105,"quantity":1},{"id":26095,"menu_item_id":396,"quantity":1},{"id":26096,"menu_item_id":50,"quantity":2},{"id":26097,"menu_item_id":5,"quantity":1},{"id":26098,"menu_item_id":3,"quantity":1},{"id":26099,"menu_item_id":23,"quantity":3}]} 
[2026-03-03 16:34:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5376,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["105|1|","396|1|","50|2|","5|1|","3|1|","23|3|"],"new_items_map_keys":["105|1|","396|1|","50|2|","5|1|","3|1|","23|3|"]} 
[2026-03-03 16:34:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5376,"order_number":"AZS-030326-011"} 
[2026-03-03 16:34:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5376,"order_number":"AZS-030326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 16:34:46"} 
[2026-03-03 16:35:51] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5376,"order_number":"AZS-030326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 16:35:51"} 
[2026-03-03 16:35:51] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5376,"order_number":"AZS-030326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 16:35:51"} 
[2026-03-03 16:35:51] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5376,"order_number":"AZS-030326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 16:35:51"} 
[2026-03-03 16:35:51] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5376,"order_number":"AZS-030326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 16:35:51"} 
[2026-03-03 16:35:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5376,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26094},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26095},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":26096},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26097},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26098},{"menu_item_id":23,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":26099}],"validated_items":[{"id":26094,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26095,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":26096,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":26097,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26098,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":26099,"menu_item_id":23,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-03 16:35:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5376,"items_count":6} 
[2026-03-03 16:35:51] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26094,"menu_item_id":105,"quantity":1},{"id":26095,"menu_item_id":396,"quantity":1},{"id":26096,"menu_item_id":50,"quantity":2},{"id":26097,"menu_item_id":5,"quantity":1},{"id":26098,"menu_item_id":3,"quantity":1},{"id":26099,"menu_item_id":23,"quantity":3}]} 
[2026-03-03 16:35:51] local.INFO: PosOrderController::update - Item changes check {"order_id":5376,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["105|1|","396|1|","50|2|","5|1|","3|1|","23|3|"],"new_items_map_keys":["105|1|","396|1|","50|2|","5|1|","3|1|","23|3|"]} 
[2026-03-03 16:35:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5376,"order_number":"AZS-030326-011"} 
[2026-03-03 16:35:51] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5376,"order_number":"AZS-030326-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-03 16:35:51","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-03 16:35:51"} 
[2026-03-03 16:35:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5376,"order_number":"AZS-030326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-03 16:35:51"} 
[2026-03-03 16:35:51] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5376,"order_number":"AZS-030326-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-03 16:35:51","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4000.00","database_verification_match":true,"timestamp":"2026-03-03 16:35:51"} 
[2026-03-03 16:39:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T04:39:45.792Z","date_to":"2026-03-03T16:39:45.792Z","per_page":"100"} 
[2026-03-03 16:39:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T04:39:45.778Z","date_to":"2026-03-03T16:39:45.778Z","per_page":"100"} 
[2026-03-03 16:39:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","changed","paid","paid","changed","changed","changed","paid","pending","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":20,"paid_count":14,"unpaid_count":2,"unique_order_numbers":16} 
[2026-03-03 16:39:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","changed","paid","paid","changed","changed","changed","paid","pending","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":20,"paid_count":14,"unpaid_count":2,"unique_order_numbers":16} 
[2026-03-03 16:39:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T04:39:45.778Z","date_to":"2026-03-03T16:39:45.778Z","per_page":"100"} 
[2026-03-03 16:39:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","changed","paid","paid","changed","changed","changed","paid","pending","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":20,"paid_count":14,"unpaid_count":2,"unique_order_numbers":16} 
[2026-03-03 16:42:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T04:42:58.109Z","date_to":"2026-03-03T16:42:58.109Z","per_page":"100"} 
[2026-03-03 16:42:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","pending","changed","paid","paid","changed","changed","changed","paid","pending","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":20,"paid_count":14,"unpaid_count":3,"unique_order_numbers":17} 
[2026-03-03 16:42:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T04:42:58.098Z","date_to":"2026-03-03T16:42:58.098Z","per_page":"100"} 
[2026-03-03 16:42:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","pending","changed","paid","paid","changed","changed","changed","paid","pending","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":20,"paid_count":14,"unpaid_count":3,"unique_order_numbers":17} 
[2026-03-03 16:43:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T04:42:58.098Z","date_to":"2026-03-03T16:42:58.098Z","per_page":"100"} 
[2026-03-03 16:43:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","pending","changed","paid","paid","changed","changed","changed","paid","pending","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":20,"paid_count":14,"unpaid_count":3,"unique_order_numbers":17} 
[2026-03-03 16:56:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5383,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26138},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26139},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26140},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26141},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26142}],"validated_items":[{"id":26138,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":26139,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26140,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26141,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26142,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-03 16:56:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5383,"items_count":5} 
[2026-03-03 16:56:40] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26138,"menu_item_id":97,"quantity":1},{"id":26139,"menu_item_id":396,"quantity":3},{"id":26140,"menu_item_id":61,"quantity":1},{"id":26141,"menu_item_id":5,"quantity":1},{"id":26142,"menu_item_id":3,"quantity":1}]} 
[2026-03-03 16:56:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5383,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["97|1|","396|3|","61|1|","5|1|","3|1|"],"new_items_map_keys":["97|1|","396|3|","61|1|","5|1|","3|1|"]} 
[2026-03-03 16:56:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5383,"order_number":"AZS-030326-016"} 
[2026-03-03 16:56:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5383,"order_number":"AZS-030326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 16:56:40"} 
[2026-03-03 16:57:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5378,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":104,"quantity":1,"price":4999,"discount_percent":0,"notes":null,"id":26107},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":26108},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26109},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26110},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26111},{"menu_item_id":42,"quantity":1,"price":299,"discount_percent":0,"notes":null,"id":26112},{"menu_item_id":43,"quantity":2,"price":379,"discount_percent":0,"notes":null,"id":26113}],"validated_items":[{"id":26107,"menu_item_id":104,"quantity":1,"price":4999,"discount_percent":0,"notes":null},{"id":26108,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":26109,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26110,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26111,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26112,"menu_item_id":42,"quantity":1,"price":299,"discount_percent":0,"notes":null},{"id":26113,"menu_item_id":43,"quantity":2,"price":379,"discount_percent":0,"notes":null}]} 
[2026-03-03 16:57:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5378,"items_count":7} 
[2026-03-03 16:57:35] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26107,"menu_item_id":104,"quantity":1},{"id":26108,"menu_item_id":403,"quantity":1},{"id":26109,"menu_item_id":61,"quantity":1},{"id":26110,"menu_item_id":56,"quantity":1},{"id":26111,"menu_item_id":5,"quantity":1},{"id":26112,"menu_item_id":42,"quantity":1},{"id":26113,"menu_item_id":43,"quantity":2}]} 
[2026-03-03 16:57:35] local.INFO: PosOrderController::update - Item changes check {"order_id":5378,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["104|1|","403|1|","61|1|","56|1|","5|1|","42|1|","43|2|"],"new_items_map_keys":["104|1|","403|1|","61|1|","56|1|","5|1|","42|1|","43|2|"]} 
[2026-03-03 16:57:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5378,"order_number":"AZS-030326-012"} 
[2026-03-03 16:57:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5378,"order_number":"AZS-030326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 16:57:35"} 
[2026-03-03 17:03:17] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5383,"order_number":"AZS-030326-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3400,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 17:03:17"} 
[2026-03-03 17:03:17] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5383,"order_number":"AZS-030326-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3400,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 17:03:17"} 
[2026-03-03 17:03:17] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5383,"order_number":"AZS-030326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3400,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 17:03:17"} 
[2026-03-03 17:03:17] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5383,"order_number":"AZS-030326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3400,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 17:03:17"} 
[2026-03-03 17:03:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5383,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26138},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26139},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26140},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26141},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26142}],"validated_items":[{"id":26138,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":26139,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26140,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26141,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26142,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-03 17:03:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5383,"items_count":5} 
[2026-03-03 17:03:17] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26138,"menu_item_id":97,"quantity":1},{"id":26139,"menu_item_id":396,"quantity":3},{"id":26140,"menu_item_id":61,"quantity":1},{"id":26141,"menu_item_id":5,"quantity":1},{"id":26142,"menu_item_id":3,"quantity":1}]} 
[2026-03-03 17:03:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5383,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["97|1|","396|3|","61|1|","5|1|","3|1|"],"new_items_map_keys":["97|1|","396|3|","61|1|","5|1|","3|1|"]} 
[2026-03-03 17:03:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5383,"order_number":"AZS-030326-016"} 
[2026-03-03 17:03:17] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5383,"order_number":"AZS-030326-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3400,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-03 17:03:17","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-03 17:03:17"} 
[2026-03-03 17:03:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5383,"order_number":"AZS-030326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-03 17:03:17"} 
[2026-03-03 17:03:17] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5383,"order_number":"AZS-030326-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3400.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-03 17:03:17","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3400,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3400.00","database_verification_match":true,"timestamp":"2026-03-03 17:03:17"} 
[2026-03-03 17:05:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5378,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":104,"quantity":1,"price":4999,"discount_percent":0,"notes":null,"id":26107},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":26108},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26109},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26110},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26111},{"menu_item_id":42,"quantity":1,"price":299,"discount_percent":0,"notes":null,"id":26112},{"menu_item_id":43,"quantity":2,"price":379,"discount_percent":0,"notes":null,"id":26113}],"validated_items":[{"id":26107,"menu_item_id":104,"quantity":1,"price":4999,"discount_percent":0,"notes":null},{"id":26108,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":26109,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26110,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26111,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26112,"menu_item_id":42,"quantity":1,"price":299,"discount_percent":0,"notes":null},{"id":26113,"menu_item_id":43,"quantity":2,"price":379,"discount_percent":0,"notes":null}]} 
[2026-03-03 17:05:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5378,"items_count":7} 
[2026-03-03 17:05:21] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26107,"menu_item_id":104,"quantity":1},{"id":26108,"menu_item_id":403,"quantity":1},{"id":26109,"menu_item_id":61,"quantity":1},{"id":26110,"menu_item_id":56,"quantity":1},{"id":26111,"menu_item_id":5,"quantity":1},{"id":26112,"menu_item_id":42,"quantity":1},{"id":26113,"menu_item_id":43,"quantity":2}]} 
[2026-03-03 17:05:21] local.INFO: PosOrderController::update - Item changes check {"order_id":5378,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["104|1|","403|1|","61|1|","56|1|","5|1|","42|1|","43|2|"],"new_items_map_keys":["104|1|","403|1|","61|1|","56|1|","5|1|","42|1|","43|2|"]} 
[2026-03-03 17:05:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5378,"order_number":"AZS-030326-012"} 
[2026-03-03 17:05:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5378,"order_number":"AZS-030326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 17:05:21"} 
[2026-03-03 17:05:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T05:05:51.305Z","date_to":"2026-03-03T17:05:51.305Z","per_page":"100"} 
[2026-03-03 17:05:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":38,"count":38,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-018","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","pending","paid","changed","paid","paid","changed","changed","changed","paid","pending","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":20,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-03-03 17:05:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T05:05:51.289Z","date_to":"2026-03-03T17:05:51.289Z","per_page":"100"} 
[2026-03-03 17:05:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":38,"count":38,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-018","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","pending","paid","changed","paid","paid","changed","changed","changed","paid","pending","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":20,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-03-03 17:05:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T05:05:51.289Z","date_to":"2026-03-03T17:05:51.289Z","per_page":"100"} 
[2026-03-03 17:05:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":38,"count":38,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-018","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","pending","paid","changed","paid","paid","changed","changed","changed","paid","pending","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":20,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-03-03 17:15:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5384,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26143},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26144}],"validated_items":[{"id":26143,"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26144,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-03 17:15:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5384,"items_count":2} 
[2026-03-03 17:15:27] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26143,"menu_item_id":138,"quantity":1},{"id":26144,"menu_item_id":5,"quantity":1}]} 
[2026-03-03 17:15:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5384,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["138|1|","5|1|"],"new_items_map_keys":["138|1|","5|1|"]} 
[2026-03-03 17:15:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5384,"order_number":"AZS-030326-017"} 
[2026-03-03 17:15:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5384,"order_number":"AZS-030326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 17:15:27"} 
[2026-03-03 17:16:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":1,"order_id":5384,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26143},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"id":26143,"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-03 17:16:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5384,"items_count":2} 
[2026-03-03 17:16:17] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":1,"items_to_remove":[26144],"items":[{"id":26143,"menu_item_id":138,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-03 17:16:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5384,"has_item_changes":true,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["138|1|","5|1|"],"new_items_map_keys":["138|1|","3|1|"]} 
[2026-03-03 17:16:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5384,"order_number":"AZS-030326-017"} 
[2026-03-03 17:16:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-017","replaced_order_id":5384} 
[2026-03-03 17:16:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5387,"items_count":2,"items":[{"menu_item_id":138,"quantity":1,"price":2199.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-03 17:16:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5387,"item_index":0,"item_data":{"menu_item_id":138,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Large","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5387}} 
[2026-03-03 17:16:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5387,"item_index":0,"menu_item_id":138} 
[2026-03-03 17:16:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5387,"item_index":1,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5387}} 
[2026-03-03 17:16:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5387,"item_index":1,"menu_item_id":3} 
[2026-03-03 17:16:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5384,"new_order_id":5387,"order_number":"AZS-030326-017"} 
[2026-03-03 17:16:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5387,"item_index":0,"item_id":26143} 
[2026-03-03 17:16:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":5387,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26143},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-03 17:16:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5387,"items_count":2} 
[2026-03-03 17:16:27] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[26147,26148],"items":[{"id":null,"menu_item_id":138,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-03 17:16:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5387,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["138|1|","3|1|"],"new_items_map_keys":["138|1|","3|1|"]} 
[2026-03-03 17:16:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5387,"order_number":"AZS-030326-017"} 
[2026-03-03 17:16:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5387,"order_number":"AZS-030326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 17:16:27"} 
[2026-03-03 17:18:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5387,"item_index":0,"item_id":26143} 
[2026-03-03 17:18:50] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5387,"order_number":"AZS-030326-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 17:18:50"} 
[2026-03-03 17:18:50] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5387,"order_number":"AZS-030326-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 17:18:50"} 
[2026-03-03 17:18:50] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5387,"order_number":"AZS-030326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 17:18:50"} 
[2026-03-03 17:18:50] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5387,"order_number":"AZS-030326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 17:18:50"} 
[2026-03-03 17:18:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":5387,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26143},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-03 17:18:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5387,"items_count":2} 
[2026-03-03 17:18:50] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[26147,26148],"items":[{"id":null,"menu_item_id":138,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-03 17:18:50] local.INFO: PosOrderController::update - Item changes check {"order_id":5387,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["138|1|","3|1|"],"new_items_map_keys":["138|1|","3|1|"]} 
[2026-03-03 17:18:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5387,"order_number":"AZS-030326-017"} 
[2026-03-03 17:18:50] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5387,"order_number":"AZS-030326-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-03 17:18:50","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-03 17:18:50"} 
[2026-03-03 17:18:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5387,"order_number":"AZS-030326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-03 17:18:50"} 
[2026-03-03 17:18:50] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5387,"order_number":"AZS-030326-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-03 17:18:50","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-03-03 17:18:50"} 
[2026-03-03 17:25:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5386,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null,"id":26146},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":26146,"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-03 17:25:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5386,"items_count":2} 
[2026-03-03 17:25:11] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26146,"menu_item_id":13,"quantity":2},{"id":null,"menu_item_id":4,"quantity":2}]} 
[2026-03-03 17:25:11] local.INFO: PosOrderController::update - Item changes check {"order_id":5386,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|2|","4|2|"]} 
[2026-03-03 17:25:11] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5386,"order_number":"AZS-030326-019"} 
[2026-03-03 17:25:11] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-019","replaced_order_id":5386} 
[2026-03-03 17:25:11] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5388,"items_count":2,"items":[{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":4,"quantity":2,"price":"90.00"}]} 
[2026-03-03 17:25:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5388,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5388}} 
[2026-03-03 17:25:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5388,"item_index":0,"menu_item_id":13} 
[2026-03-03 17:25:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5388,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":2,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":180.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5388}} 
[2026-03-03 17:25:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5388,"item_index":1,"menu_item_id":4} 
[2026-03-03 17:25:11] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5386,"new_order_id":5388,"order_number":"AZS-030326-019"} 
[2026-03-03 17:40:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5388,"item_index":0,"item_id":26146} 
[2026-03-03 17:40:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":5388,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":26146},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-03 17:40:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5388,"items_count":2} 
[2026-03-03 17:40:39] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[26149,26150],"items":[{"id":null,"menu_item_id":13,"quantity":2},{"id":null,"menu_item_id":4,"quantity":2}]} 
[2026-03-03 17:40:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5388,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|2|","4|2|"],"new_items_map_keys":["13|2|","4|2|"]} 
[2026-03-03 17:40:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5388,"order_number":"AZS-030326-019"} 
[2026-03-03 17:40:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5388,"order_number":"AZS-030326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 17:40:39"} 
[2026-03-03 17:43:56] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5378,"order_number":"AZS-030326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":7000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 17:43:56"} 
[2026-03-03 17:43:56] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5378,"order_number":"AZS-030326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":7000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 17:43:56"} 
[2026-03-03 17:43:56] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5378,"order_number":"AZS-030326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 17:43:56"} 
[2026-03-03 17:43:56] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5378,"order_number":"AZS-030326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 17:43:56"} 
[2026-03-03 17:43:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":5378,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":104,"quantity":1,"price":4999,"discount_percent":0,"notes":null,"id":26107},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":26108},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26110},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26111},{"menu_item_id":42,"quantity":1,"price":299,"discount_percent":0,"notes":null,"id":26112},{"menu_item_id":43,"quantity":2,"price":379,"discount_percent":0,"notes":null,"id":26113}],"validated_items":[{"id":26107,"menu_item_id":104,"quantity":1,"price":4999,"discount_percent":0,"notes":null},{"id":26108,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":26110,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26111,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26112,"menu_item_id":42,"quantity":1,"price":299,"discount_percent":0,"notes":null},{"id":26113,"menu_item_id":43,"quantity":2,"price":379,"discount_percent":0,"notes":null}]} 
[2026-03-03 17:43:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5378,"items_count":6} 
[2026-03-03 17:43:56] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[26109],"items":[{"id":26107,"menu_item_id":104,"quantity":1},{"id":26108,"menu_item_id":403,"quantity":1},{"id":26110,"menu_item_id":56,"quantity":1},{"id":26111,"menu_item_id":5,"quantity":1},{"id":26112,"menu_item_id":42,"quantity":1},{"id":26113,"menu_item_id":43,"quantity":2}]} 
[2026-03-03 17:43:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5378,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["104|1|","403|1|","61|1|","56|1|","5|1|","42|1|","43|2|"],"new_items_map_keys":["104|1|","403|1|","56|1|","5|1|","42|1|","43|2|"]} 
[2026-03-03 17:43:56] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5378,"order_number":"AZS-030326-012","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":7000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-03 17:43:56","original_payment_amount":"0.00","grand_total":6774.0,"timestamp":"2026-03-03 17:43:56"} 
[2026-03-03 17:43:56] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5378,"order_number":"AZS-030326-012"} 
[2026-03-03 17:43:56] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-012","replaced_order_id":5378} 
[2026-03-03 17:43:56] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5378,"new_order_id":5389,"order_number":"AZS-030326-012","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"7000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-03 17:43:56","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":7000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-03 17:43:56"} 
[2026-03-03 17:43:56] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5389,"items_count":6,"items":[{"menu_item_id":104,"quantity":1,"price":4999.0},{"menu_item_id":403,"quantity":1,"price":349.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":42,"quantity":1,"price":299.0},{"menu_item_id":43,"quantity":2,"price":379.0}]} 
[2026-03-03 17:43:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5389,"item_index":0,"item_data":{"menu_item_id":104,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Azan Special Ribs With Rice","quantity":1,"price":4999.0,"discount_percent":0.0,"discount_amount":0.0,"total":4999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5389}} 
[2026-03-03 17:43:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5389,"item_index":0,"menu_item_id":104} 
[2026-03-03 17:43:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5389,"item_index":1,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":349.0,"discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5389}} 
[2026-03-03 17:43:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5389,"item_index":1,"menu_item_id":403} 
[2026-03-03 17:43:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5389,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5389}} 
[2026-03-03 17:43:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5389,"item_index":2,"menu_item_id":56} 
[2026-03-03 17:43:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5389,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5389}} 
[2026-03-03 17:43:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5389,"item_index":3,"menu_item_id":5} 
[2026-03-03 17:43:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5389,"item_index":4,"item_data":{"menu_item_id":42,"restaurant_category_id":7,"restaurant_category_name":"FRAPPE","item_name":"Mint Mojito","quantity":1,"price":299.0,"discount_percent":0.0,"discount_amount":0.0,"total":299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5389}} 
[2026-03-03 17:43:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5389,"item_index":4,"menu_item_id":42} 
[2026-03-03 17:43:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5389,"item_index":5,"item_data":{"menu_item_id":43,"restaurant_category_id":7,"restaurant_category_name":"FRAPPE","item_name":"Strawberry Mojito","quantity":2,"price":379.0,"discount_percent":0.0,"discount_amount":0.0,"total":758.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5389}} 
[2026-03-03 17:43:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5389,"item_index":5,"menu_item_id":43} 
[2026-03-03 17:43:56] local.ERROR: Error tracking recipe usage for order 5389: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5389, 56, 81, 1, 100, 0.00, Order #AZS-030326-012 - 1x Fresh Salad, 2026-03-03 17:43:56, 2026-03-03 17:43:56))  
[2026-03-03 17:43:56] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5378,"new_order_id":5389,"order_number":"AZS-030326-012"} 
[2026-03-03 17:43:57] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5378,"new_order_id":5389,"order_number":"AZS-030326-012","route":"api/orders/5378"} 
[2026-03-03 17:44:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T05:43:59.431Z","date_to":"2026-03-03T17:43:59.431Z","per_page":"100"} 
[2026-03-03 17:44:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T05:43:59.445Z","date_to":"2026-03-03T17:43:59.445Z","per_page":"100"} 
[2026-03-03 17:44:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","changed","pending","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":23,"paid_count":17,"unpaid_count":2,"unique_order_numbers":19} 
[2026-03-03 17:44:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","changed","pending","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":23,"paid_count":17,"unpaid_count":2,"unique_order_numbers":19} 
[2026-03-03 17:44:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T05:43:59.431Z","date_to":"2026-03-03T17:43:59.431Z","per_page":"100"} 
[2026-03-03 17:44:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","changed","pending","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":23,"paid_count":17,"unpaid_count":2,"unique_order_numbers":19} 
[2026-03-03 17:44:38] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5388,"order_number":"AZS-030326-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":712,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 17:44:38"} 
[2026-03-03 17:44:38] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5388,"order_number":"AZS-030326-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":712,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 17:44:38"} 
[2026-03-03 17:44:38] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5388,"order_number":"AZS-030326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":712,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 17:44:38"} 
[2026-03-03 17:44:38] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5388,"order_number":"AZS-030326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":712,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 17:44:38"} 
[2026-03-03 17:44:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5388,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":26149},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null,"id":26150}],"validated_items":[{"id":26149,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":26150,"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-03 17:44:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5388,"items_count":2} 
[2026-03-03 17:44:38] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26149,"menu_item_id":13,"quantity":2},{"id":26150,"menu_item_id":4,"quantity":2}]} 
[2026-03-03 17:44:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5388,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|2|","4|2|"],"new_items_map_keys":["13|2|","4|2|"]} 
[2026-03-03 17:44:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5388,"order_number":"AZS-030326-019"} 
[2026-03-03 17:44:38] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5388,"order_number":"AZS-030326-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":712,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-03 17:44:38","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-03 17:44:38"} 
[2026-03-03 17:44:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5388,"order_number":"AZS-030326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-03 17:44:38"} 
[2026-03-03 17:44:38] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5388,"order_number":"AZS-030326-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"712.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-03 17:44:38","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":712,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"712.00","database_verification_match":true,"timestamp":"2026-03-03 17:44:38"} 
[2026-03-03 18:00:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T06:00:01.486Z","date_to":"2026-03-03T18:00:01.486Z","per_page":"100"} 
[2026-03-03 18:00:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T06:00:01.506Z","date_to":"2026-03-03T18:00:01.506Z","per_page":"100"} 
[2026-03-03 18:00:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["paid","changed","pending","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":23,"paid_count":18,"unpaid_count":1,"unique_order_numbers":19} 
[2026-03-03 18:00:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["paid","changed","pending","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":23,"paid_count":18,"unpaid_count":1,"unique_order_numbers":19} 
[2026-03-03 18:00:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T06:00:01.486Z","date_to":"2026-03-03T18:00:01.486Z","per_page":"100"} 
[2026-03-03 18:00:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["paid","changed","pending","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":23,"paid_count":18,"unpaid_count":1,"unique_order_numbers":19} 
[2026-03-03 19:18:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5390,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":26157},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":26158},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26159},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26160},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26157,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":26158,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":26159,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26160,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 19:18:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5390,"items_count":5} 
[2026-03-03 19:18:52] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26157,"menu_item_id":105,"quantity":1},{"id":26158,"menu_item_id":396,"quantity":2},{"id":26159,"menu_item_id":56,"quantity":1},{"id":26160,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-03 19:18:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5390,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["105|1|","396|2|","56|1|","5|1|"],"new_items_map_keys":["105|1|","396|2|","56|1|","5|1|","2|1|"]} 
[2026-03-03 19:18:52] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5390,"order_number":"AZS-030326-020"} 
[2026-03-03 19:18:52] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-020","replaced_order_id":5390} 
[2026-03-03 19:18:52] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5392,"items_count":5,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-03 19:18:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5392,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5392}} 
[2026-03-03 19:18:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5392,"item_index":0,"menu_item_id":105} 
[2026-03-03 19:18:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5392,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5392}} 
[2026-03-03 19:18:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5392,"item_index":1,"menu_item_id":396} 
[2026-03-03 19:18:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5392,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5392}} 
[2026-03-03 19:18:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5392,"item_index":2,"menu_item_id":56} 
[2026-03-03 19:18:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5392,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5392}} 
[2026-03-03 19:18:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5392,"item_index":3,"menu_item_id":5} 
[2026-03-03 19:18:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5392,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5392}} 
[2026-03-03 19:18:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5392,"item_index":4,"menu_item_id":2} 
[2026-03-03 19:18:52] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5390,"new_order_id":5392,"order_number":"AZS-030326-020"} 
[2026-03-03 19:20:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T07:19:59.090Z","date_to":"2026-03-03T19:19:59.090Z","per_page":"100"} 
[2026-03-03 19:20:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T07:19:59.098Z","date_to":"2026-03-03T19:19:59.098Z","per_page":"100"} 
[2026-03-03 19:20:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":45,"count":45,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","pending","changed","paid","changed","pending","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":24,"paid_count":18,"unpaid_count":3,"unique_order_numbers":21} 
[2026-03-03 19:20:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":45,"count":45,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","pending","changed","paid","changed","pending","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":24,"paid_count":18,"unpaid_count":3,"unique_order_numbers":21} 
[2026-03-03 19:20:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T07:19:59.090Z","date_to":"2026-03-03T19:19:59.090Z","per_page":"100"} 
[2026-03-03 19:20:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":45,"count":45,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","pending","changed","paid","changed","pending","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":24,"paid_count":18,"unpaid_count":3,"unique_order_numbers":21} 
[2026-03-03 19:31:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5392,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26167},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26168},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26169},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26170},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26171}],"validated_items":[{"id":26167,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26168,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26169,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26170,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26171,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-03 19:31:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5392,"items_count":5} 
[2026-03-03 19:31:52] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26167,"menu_item_id":105,"quantity":1},{"id":26168,"menu_item_id":396,"quantity":2},{"id":26169,"menu_item_id":56,"quantity":1},{"id":26170,"menu_item_id":5,"quantity":1},{"id":26171,"menu_item_id":2,"quantity":1}]} 
[2026-03-03 19:31:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5392,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","396|2|","56|1|","5|1|","2|1|"],"new_items_map_keys":["105|1|","396|2|","56|1|","5|1|","2|1|"]} 
[2026-03-03 19:31:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5392,"order_number":"AZS-030326-020"} 
[2026-03-03 19:31:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5392,"order_number":"AZS-030326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 19:31:52"} 
[2026-03-03 19:34:22] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5392,"order_number":"AZS-030326-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3050,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 19:34:22"} 
[2026-03-03 19:34:22] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5392,"order_number":"AZS-030326-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3050,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 19:34:22"} 
[2026-03-03 19:34:22] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5392,"order_number":"AZS-030326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3050,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 19:34:22"} 
[2026-03-03 19:34:22] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5392,"order_number":"AZS-030326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3050,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 19:34:22"} 
[2026-03-03 19:34:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5392,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26167},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26168},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26169},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26170},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26171}],"validated_items":[{"id":26167,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26168,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26169,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26170,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26171,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-03 19:34:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5392,"items_count":5} 
[2026-03-03 19:34:22] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26167,"menu_item_id":105,"quantity":1},{"id":26168,"menu_item_id":396,"quantity":2},{"id":26169,"menu_item_id":56,"quantity":1},{"id":26170,"menu_item_id":5,"quantity":1},{"id":26171,"menu_item_id":2,"quantity":1}]} 
[2026-03-03 19:34:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5392,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","396|2|","56|1|","5|1|","2|1|"],"new_items_map_keys":["105|1|","396|2|","56|1|","5|1|","2|1|"]} 
[2026-03-03 19:34:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5392,"order_number":"AZS-030326-020"} 
[2026-03-03 19:34:22] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5392,"order_number":"AZS-030326-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3050,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-03 19:34:22","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-03 19:34:22"} 
[2026-03-03 19:34:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5392,"order_number":"AZS-030326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-03 19:34:22"} 
[2026-03-03 19:34:22] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5392,"order_number":"AZS-030326-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3050.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-03 19:34:22","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3050,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3050.00","database_verification_match":true,"timestamp":"2026-03-03 19:34:22"} 
[2026-03-03 19:34:44] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5385,"order_number":"AZS-030326-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 19:34:44"} 
[2026-03-03 19:34:44] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5385,"order_number":"AZS-030326-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 19:34:44"} 
[2026-03-03 19:34:44] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5385,"order_number":"AZS-030326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 19:34:44"} 
[2026-03-03 19:34:44] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5385,"order_number":"AZS-030326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 19:34:44"} 
[2026-03-03 19:34:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5385,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":143,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":26145}],"validated_items":[{"id":26145,"menu_item_id":143,"quantity":1,"price":1099,"discount_percent":0,"notes":null}]} 
[2026-03-03 19:34:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5385,"items_count":1} 
[2026-03-03 19:34:44] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26145,"menu_item_id":143,"quantity":1}]} 
[2026-03-03 19:34:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5385,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["143|1|"],"new_items_map_keys":["143|1|"]} 
[2026-03-03 19:34:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5385,"order_number":"AZS-030326-018"} 
[2026-03-03 19:34:44] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5385,"order_number":"AZS-030326-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-03 19:34:44","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-03 19:34:44"} 
[2026-03-03 19:34:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5385,"order_number":"AZS-030326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-03 19:34:44"} 
[2026-03-03 19:34:44] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5385,"order_number":"AZS-030326-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-03 19:34:44","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1100.00","database_verification_match":true,"timestamp":"2026-03-03 19:34:44"} 
[2026-03-03 19:34:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T07:34:48.244Z","date_to":"2026-03-03T19:34:48.244Z","per_page":"100"} 
[2026-03-03 19:34:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T07:34:48.227Z","date_to":"2026-03-03T19:34:48.227Z","per_page":"100"} 
[2026-03-03 19:34:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":45,"count":45,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":24,"paid_count":20,"unpaid_count":1,"unique_order_numbers":21} 
[2026-03-03 19:34:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":45,"count":45,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":24,"paid_count":20,"unpaid_count":1,"unique_order_numbers":21} 
[2026-03-03 19:34:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T07:34:48.227Z","date_to":"2026-03-03T19:34:48.227Z","per_page":"100"} 
[2026-03-03 19:34:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":45,"count":45,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":24,"paid_count":20,"unpaid_count":1,"unique_order_numbers":21} 
[2026-03-03 19:52:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5391,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":26161},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":26162},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":26163},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":26164},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26165},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26166},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26161,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":26162,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":26163,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":26164,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":26165,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26166,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 19:52:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5391,"items_count":7} 
[2026-03-03 19:52:37] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26161,"menu_item_id":97,"quantity":1},{"id":26162,"menu_item_id":396,"quantity":3},{"id":26163,"menu_item_id":50,"quantity":1},{"id":26164,"menu_item_id":61,"quantity":2},{"id":26165,"menu_item_id":56,"quantity":1},{"id":26166,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-03 19:52:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5391,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["97|1|","396|3|","50|1|","61|2|","56|1|","5|1|"],"new_items_map_keys":["97|1|","396|3|","50|1|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-03-03 19:52:37] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5391,"order_number":"AZS-030326-021"} 
[2026-03-03 19:52:37] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-021","replaced_order_id":5391} 
[2026-03-03 19:52:37] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5393,"items_count":7,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-03 19:52:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5393,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5393}} 
[2026-03-03 19:52:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5393,"item_index":0,"menu_item_id":97} 
[2026-03-03 19:52:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5393,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5393}} 
[2026-03-03 19:52:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5393,"item_index":1,"menu_item_id":396} 
[2026-03-03 19:52:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5393,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5393}} 
[2026-03-03 19:52:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5393,"item_index":2,"menu_item_id":50} 
[2026-03-03 19:52:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5393,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5393}} 
[2026-03-03 19:52:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5393,"item_index":3,"menu_item_id":61} 
[2026-03-03 19:52:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5393,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5393}} 
[2026-03-03 19:52:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5393,"item_index":4,"menu_item_id":56} 
[2026-03-03 19:52:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5393,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5393}} 
[2026-03-03 19:52:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5393,"item_index":5,"menu_item_id":5} 
[2026-03-03 19:52:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5393,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5393}} 
[2026-03-03 19:52:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5393,"item_index":6,"menu_item_id":3} 
[2026-03-03 19:52:37] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5391,"new_order_id":5393,"order_number":"AZS-030326-021"} 
[2026-03-03 19:53:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T07:53:07.721Z","date_to":"2026-03-03T19:53:07.721Z","per_page":"100"} 
[2026-03-03 19:53:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":46,"count":46,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":25,"paid_count":20,"unpaid_count":1,"unique_order_numbers":21} 
[2026-03-03 19:53:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T07:53:07.739Z","date_to":"2026-03-03T19:53:07.739Z","per_page":"100"} 
[2026-03-03 19:53:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":46,"count":46,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":25,"paid_count":20,"unpaid_count":1,"unique_order_numbers":21} 
[2026-03-03 19:53:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T07:53:07.721Z","date_to":"2026-03-03T19:53:07.721Z","per_page":"100"} 
[2026-03-03 19:53:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":46,"count":46,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":25,"paid_count":20,"unpaid_count":1,"unique_order_numbers":21} 
[2026-03-03 20:08:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5393,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26172},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26173},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":26174},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26175},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26176},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26177},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26178}],"validated_items":[{"id":26172,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":26173,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26174,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":26175,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":26176,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26177,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26178,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-03 20:08:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5393,"items_count":7} 
[2026-03-03 20:08:35] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26172,"menu_item_id":97,"quantity":1},{"id":26173,"menu_item_id":396,"quantity":3},{"id":26174,"menu_item_id":50,"quantity":1},{"id":26175,"menu_item_id":61,"quantity":2},{"id":26176,"menu_item_id":56,"quantity":1},{"id":26177,"menu_item_id":5,"quantity":1},{"id":26178,"menu_item_id":3,"quantity":1}]} 
[2026-03-03 20:08:35] local.INFO: PosOrderController::update - Item changes check {"order_id":5393,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["97|1|","396|3|","50|1|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["97|1|","396|3|","50|1|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-03-03 20:08:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5393,"order_number":"AZS-030326-021"} 
[2026-03-03 20:08:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5393,"order_number":"AZS-030326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 20:08:35"} 
[2026-03-03 20:31:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5394,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null,"id":26179},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26179,"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 20:31:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5394,"items_count":2} 
[2026-03-03 20:31:15] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26179,"menu_item_id":6,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-03 20:31:15] local.INFO: PosOrderController::update - Item changes check {"order_id":5394,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["6|3|"],"new_items_map_keys":["6|3|","5|1|"]} 
[2026-03-03 20:31:15] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5394,"order_number":"AZS-030326-022"} 
[2026-03-03 20:31:15] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-022","replaced_order_id":5394} 
[2026-03-03 20:31:15] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5395,"items_count":2,"items":[{"menu_item_id":6,"quantity":3,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-03 20:31:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5395,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5395}} 
[2026-03-03 20:31:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5395,"item_index":0,"menu_item_id":6} 
[2026-03-03 20:31:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5395,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5395}} 
[2026-03-03 20:31:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5395,"item_index":1,"menu_item_id":5} 
[2026-03-03 20:31:15] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5394,"new_order_id":5395,"order_number":"AZS-030326-022"} 
[2026-03-03 21:10:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T09:10:47.902Z","date_to":"2026-03-03T21:10:47.902Z","per_page":"100"} 
[2026-03-03 21:10:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":48,"count":48,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","changed","pending","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":26,"paid_count":20,"unpaid_count":2,"unique_order_numbers":22} 
[2026-03-03 21:10:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T09:10:47.919Z","date_to":"2026-03-03T21:10:47.919Z","per_page":"100"} 
[2026-03-03 21:10:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":48,"count":48,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","changed","pending","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":26,"paid_count":20,"unpaid_count":2,"unique_order_numbers":22} 
[2026-03-03 21:10:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T09:10:47.902Z","date_to":"2026-03-03T21:10:47.902Z","per_page":"100"} 
[2026-03-03 21:10:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":48,"count":48,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","changed","pending","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":26,"paid_count":20,"unpaid_count":2,"unique_order_numbers":22} 
[2026-03-03 21:11:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5393,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26172},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26173},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":26174},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26175},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26176},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26177},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26178}],"validated_items":[{"id":26172,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":26173,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26174,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":26175,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":26176,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26177,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26178,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-03 21:11:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5393,"items_count":7} 
[2026-03-03 21:11:07] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26172,"menu_item_id":97,"quantity":1},{"id":26173,"menu_item_id":396,"quantity":3},{"id":26174,"menu_item_id":50,"quantity":1},{"id":26175,"menu_item_id":61,"quantity":2},{"id":26176,"menu_item_id":56,"quantity":1},{"id":26177,"menu_item_id":5,"quantity":1},{"id":26178,"menu_item_id":3,"quantity":1}]} 
[2026-03-03 21:11:07] local.INFO: PosOrderController::update - Item changes check {"order_id":5393,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["97|1|","396|3|","50|1|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["97|1|","396|3|","50|1|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-03-03 21:11:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5393,"order_number":"AZS-030326-021"} 
[2026-03-03 21:11:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5393,"order_number":"AZS-030326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 21:11:07"} 
[2026-03-03 21:11:38] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5393,"order_number":"AZS-030326-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 21:11:38"} 
[2026-03-03 21:11:38] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5393,"order_number":"AZS-030326-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 21:11:38"} 
[2026-03-03 21:11:38] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5393,"order_number":"AZS-030326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 21:11:38"} 
[2026-03-03 21:11:38] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5393,"order_number":"AZS-030326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 21:11:38"} 
[2026-03-03 21:11:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5393,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26172},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26173},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":26174},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26175},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26176},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26177},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26178}],"validated_items":[{"id":26172,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":26173,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26174,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":26175,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26176,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26177,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26178,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-03 21:11:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5393,"items_count":7} 
[2026-03-03 21:11:38] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26172,"menu_item_id":97,"quantity":1},{"id":26173,"menu_item_id":396,"quantity":3},{"id":26174,"menu_item_id":50,"quantity":1},{"id":26175,"menu_item_id":61,"quantity":1},{"id":26176,"menu_item_id":56,"quantity":1},{"id":26177,"menu_item_id":5,"quantity":1},{"id":26178,"menu_item_id":3,"quantity":1}]} 
[2026-03-03 21:11:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5393,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["97|1|","396|3|","50|1|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["97|1|","396|3|","50|1|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-03-03 21:11:38] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5393,"order_number":"AZS-030326-021","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":4000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-03 21:11:38","original_payment_amount":"0.00","grand_total":3741.0,"timestamp":"2026-03-03 21:11:38"} 
[2026-03-03 21:11:38] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5393,"order_number":"AZS-030326-021"} 
[2026-03-03 21:11:38] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-021","replaced_order_id":5393} 
[2026-03-03 21:11:38] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5393,"new_order_id":5396,"order_number":"AZS-030326-021","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"4000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-03 21:11:38","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-03 21:11:38"} 
[2026-03-03 21:11:38] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5396,"items_count":7,"items":[{"menu_item_id":97,"quantity":1,"price":2299.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":50,"quantity":1,"price":129.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-03 21:11:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5396,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5396}} 
[2026-03-03 21:11:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5396,"item_index":0,"menu_item_id":97} 
[2026-03-03 21:11:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5396,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5396}} 
[2026-03-03 21:11:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5396,"item_index":1,"menu_item_id":396} 
[2026-03-03 21:11:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5396,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5396}} 
[2026-03-03 21:11:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5396,"item_index":2,"menu_item_id":50} 
[2026-03-03 21:11:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5396,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5396}} 
[2026-03-03 21:11:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5396,"item_index":3,"menu_item_id":61} 
[2026-03-03 21:11:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5396,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5396}} 
[2026-03-03 21:11:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5396,"item_index":4,"menu_item_id":56} 
[2026-03-03 21:11:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5396,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5396}} 
[2026-03-03 21:11:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5396,"item_index":5,"menu_item_id":5} 
[2026-03-03 21:11:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5396,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5396}} 
[2026-03-03 21:11:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5396,"item_index":6,"menu_item_id":3} 
[2026-03-03 21:11:38] local.ERROR: Error tracking recipe usage for order 5396: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5396, 50, 102, 1, 10, 0.00, Order #AZS-030326-021 - 1x Roghni Naan, 2026-03-03 21:11:38, 2026-03-03 21:11:38))  
[2026-03-03 21:11:38] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5393,"new_order_id":5396,"order_number":"AZS-030326-021"} 
[2026-03-03 21:11:39] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5393,"new_order_id":5396,"order_number":"AZS-030326-021","route":"api/orders/5393"} 
[2026-03-03 21:14:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T09:14:31.604Z","date_to":"2026-03-03T21:14:31.604Z","per_page":"100"} 
[2026-03-03 21:14:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T09:14:31.582Z","date_to":"2026-03-03T21:14:31.582Z","per_page":"100"} 
[2026-03-03 21:14:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":49,"count":49,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":27,"paid_count":21,"unpaid_count":1,"unique_order_numbers":22} 
[2026-03-03 21:14:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":49,"count":49,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":27,"paid_count":21,"unpaid_count":1,"unique_order_numbers":22} 
[2026-03-03 21:14:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T09:14:31.582Z","date_to":"2026-03-03T21:14:31.582Z","per_page":"100"} 
[2026-03-03 21:14:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":49,"count":49,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":27,"paid_count":21,"unpaid_count":1,"unique_order_numbers":22} 
[2026-03-03 21:20:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T09:20:14.983Z","date_to":"2026-03-03T21:20:14.983Z","per_page":"100"} 
[2026-03-03 21:20:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T09:20:14.965Z","date_to":"2026-03-03T21:20:14.965Z","per_page":"100"} 
[2026-03-03 21:20:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":50,"count":50,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","pending","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":27,"paid_count":21,"unpaid_count":2,"unique_order_numbers":23} 
[2026-03-03 21:20:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":50,"count":50,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","pending","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":27,"paid_count":21,"unpaid_count":2,"unique_order_numbers":23} 
[2026-03-03 21:20:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T09:20:14.965Z","date_to":"2026-03-03T21:20:14.965Z","per_page":"100"} 
[2026-03-03 21:20:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":50,"count":50,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","pending","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":27,"paid_count":21,"unpaid_count":2,"unique_order_numbers":23} 
[2026-03-03 21:32:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5397,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":26189},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26189,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 21:32:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5397,"items_count":2} 
[2026-03-03 21:32:07] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26189,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-03 21:32:07] local.INFO: PosOrderController::update - Item changes check {"order_id":5397,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|","4|1|"]} 
[2026-03-03 21:32:07] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5397,"order_number":"AZS-030326-023"} 
[2026-03-03 21:32:07] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-023","replaced_order_id":5397} 
[2026-03-03 21:32:07] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5399,"items_count":2,"items":[{"menu_item_id":6,"quantity":2,"price":"199.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-03-03 21:32:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5399,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5399}} 
[2026-03-03 21:32:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5399,"item_index":0,"menu_item_id":6} 
[2026-03-03 21:32:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5399,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5399}} 
[2026-03-03 21:32:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5399,"item_index":1,"menu_item_id":4} 
[2026-03-03 21:32:07] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5397,"new_order_id":5399,"order_number":"AZS-030326-023"} 
[2026-03-03 21:38:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T09:38:14.413Z","date_to":"2026-03-03T21:38:14.413Z","per_page":"100"} 
[2026-03-03 21:38:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T09:38:14.428Z","date_to":"2026-03-03T21:38:14.428Z","per_page":"100"} 
[2026-03-03 21:38:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":52,"count":52,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","pending","changed","pending","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":28,"paid_count":21,"unpaid_count":3,"unique_order_numbers":24} 
[2026-03-03 21:38:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":52,"count":52,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","pending","changed","pending","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":28,"paid_count":21,"unpaid_count":3,"unique_order_numbers":24} 
[2026-03-03 21:38:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T09:38:14.413Z","date_to":"2026-03-03T21:38:14.413Z","per_page":"100"} 
[2026-03-03 21:38:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":52,"count":52,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","pending","changed","pending","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":28,"paid_count":21,"unpaid_count":3,"unique_order_numbers":24} 
[2026-03-03 21:48:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5399,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26194},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":26195}],"validated_items":[{"id":26194,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":26195,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-03 21:48:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5399,"items_count":2} 
[2026-03-03 21:48:34] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26194,"menu_item_id":6,"quantity":2},{"id":26195,"menu_item_id":4,"quantity":1}]} 
[2026-03-03 21:48:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5399,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|2|","4|1|"],"new_items_map_keys":["6|2|","4|1|"]} 
[2026-03-03 21:48:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5399,"order_number":"AZS-030326-023"} 
[2026-03-03 21:48:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5399,"order_number":"AZS-030326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 21:48:34"} 
[2026-03-03 21:52:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5395,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":26180},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26181}],"validated_items":[{"id":26180,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":26181,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-03 21:52:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5395,"items_count":2} 
[2026-03-03 21:52:32] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26180,"menu_item_id":6,"quantity":3},{"id":26181,"menu_item_id":5,"quantity":1}]} 
[2026-03-03 21:52:32] local.INFO: PosOrderController::update - Item changes check {"order_id":5395,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|3|","5|1|"],"new_items_map_keys":["6|3|","5|1|"]} 
[2026-03-03 21:52:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5395,"order_number":"AZS-030326-022"} 
[2026-03-03 21:52:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5395,"order_number":"AZS-030326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 21:52:32"} 
[2026-03-03 21:53:10] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5399,"order_number":"AZS-030326-023","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":512,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 21:53:10"} 
[2026-03-03 21:53:10] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5399,"order_number":"AZS-030326-023","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":512,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 21:53:10"} 
[2026-03-03 21:53:10] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5399,"order_number":"AZS-030326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":512,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 21:53:10"} 
[2026-03-03 21:53:10] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5399,"order_number":"AZS-030326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":512,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 21:53:10"} 
[2026-03-03 21:53:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5399,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26194},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":26195}],"validated_items":[{"id":26194,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":26195,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-03 21:53:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5399,"items_count":2} 
[2026-03-03 21:53:10] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26194,"menu_item_id":6,"quantity":2},{"id":26195,"menu_item_id":4,"quantity":1}]} 
[2026-03-03 21:53:10] local.INFO: PosOrderController::update - Item changes check {"order_id":5399,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|2|","4|1|"],"new_items_map_keys":["6|2|","4|1|"]} 
[2026-03-03 21:53:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5399,"order_number":"AZS-030326-023"} 
[2026-03-03 21:53:10] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5399,"order_number":"AZS-030326-023","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":512,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-03 21:53:10","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-03 21:53:10"} 
[2026-03-03 21:53:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5399,"order_number":"AZS-030326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-03 21:53:10"} 
[2026-03-03 21:53:10] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5399,"order_number":"AZS-030326-023","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"512.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-03 21:53:10","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":512,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"512.00","database_verification_match":true,"timestamp":"2026-03-03 21:53:10"} 
[2026-03-03 21:59:04] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5395,"order_number":"AZS-030326-022","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 21:59:04"} 
[2026-03-03 21:59:04] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5395,"order_number":"AZS-030326-022","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 21:59:04"} 
[2026-03-03 21:59:04] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5395,"order_number":"AZS-030326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 21:59:04"} 
[2026-03-03 21:59:04] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5395,"order_number":"AZS-030326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 21:59:04"} 
[2026-03-03 21:59:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5395,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":26180},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26181}],"validated_items":[{"id":26180,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":26181,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-03 21:59:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5395,"items_count":2} 
[2026-03-03 21:59:04] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26180,"menu_item_id":6,"quantity":3},{"id":26181,"menu_item_id":5,"quantity":1}]} 
[2026-03-03 21:59:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5395,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|3|","5|1|"],"new_items_map_keys":["6|3|","5|1|"]} 
[2026-03-03 21:59:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5395,"order_number":"AZS-030326-022"} 
[2026-03-03 21:59:04] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5395,"order_number":"AZS-030326-022","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-03 21:59:04","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-03 21:59:04"} 
[2026-03-03 21:59:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5395,"order_number":"AZS-030326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-03 21:59:04"} 
[2026-03-03 21:59:04] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5395,"order_number":"AZS-030326-022","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-03 21:59:04","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-03 21:59:04"} 
[2026-03-03 21:59:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T09:59:45.884Z","date_to":"2026-03-03T21:59:45.884Z","per_page":"100"} 
[2026-03-03 21:59:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T09:59:45.901Z","date_to":"2026-03-03T21:59:45.901Z","per_page":"100"} 
[2026-03-03 21:59:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":52,"count":52,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":28,"paid_count":23,"unpaid_count":1,"unique_order_numbers":24} 
[2026-03-03 21:59:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":52,"count":52,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":28,"paid_count":23,"unpaid_count":1,"unique_order_numbers":24} 
[2026-03-03 21:59:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T09:59:45.884Z","date_to":"2026-03-03T21:59:45.884Z","per_page":"100"} 
[2026-03-03 21:59:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":52,"count":52,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":28,"paid_count":23,"unpaid_count":1,"unique_order_numbers":24} 
[2026-03-03 22:34:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T10:34:04.194Z","date_to":"2026-03-03T22:34:04.194Z","per_page":"100"} 
[2026-03-03 22:34:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":53,"count":53,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-025","AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","pending","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":28,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-03 22:34:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T10:34:04.206Z","date_to":"2026-03-03T22:34:04.206Z","per_page":"100"} 
[2026-03-03 22:34:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":53,"count":53,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-025","AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","pending","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":28,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-03 22:34:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T10:34:04.194Z","date_to":"2026-03-03T22:34:04.194Z","per_page":"100"} 
[2026-03-03 22:34:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":53,"count":53,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-025","AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","pending","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":28,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-03 22:36:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5398,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":26190},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":26191},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26192},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26193},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26190,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":26191,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":26192,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26193,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 22:36:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5398,"items_count":5} 
[2026-03-03 22:36:14] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26190,"menu_item_id":105,"quantity":1},{"id":26191,"menu_item_id":396,"quantity":2},{"id":26192,"menu_item_id":61,"quantity":1},{"id":26193,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-03 22:36:14] local.INFO: PosOrderController::update - Item changes check {"order_id":5398,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["105|1|","396|2|","61|1|","56|1|"],"new_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-03 22:36:14] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5398,"order_number":"AZS-030326-024"} 
[2026-03-03 22:36:14] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-024","replaced_order_id":5398} 
[2026-03-03 22:36:14] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5401,"items_count":5,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-03 22:36:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5401,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5401}} 
[2026-03-03 22:36:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5401,"item_index":0,"menu_item_id":105} 
[2026-03-03 22:36:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5401,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5401}} 
[2026-03-03 22:36:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5401,"item_index":1,"menu_item_id":396} 
[2026-03-03 22:36:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5401,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5401}} 
[2026-03-03 22:36:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5401,"item_index":2,"menu_item_id":61} 
[2026-03-03 22:36:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5401,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5401}} 
[2026-03-03 22:36:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5401,"item_index":3,"menu_item_id":56} 
[2026-03-03 22:36:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5401,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5401}} 
[2026-03-03 22:36:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5401,"item_index":4,"menu_item_id":5} 
[2026-03-03 22:36:14] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5398,"new_order_id":5401,"order_number":"AZS-030326-024"} 
[2026-03-03 22:36:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5401,"item_index":0,"item_id":26190} 
[2026-03-03 22:36:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5401,"item_index":1,"item_id":26191} 
[2026-03-03 22:36:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5401,"item_index":2,"item_id":26192} 
[2026-03-03 22:36:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5401,"item_index":3,"item_id":26193} 
[2026-03-03 22:36:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5401,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26190},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26191},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26192},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26193},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-03 22:36:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5401,"items_count":5} 
[2026-03-03 22:36:26] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[26198,26199,26200,26201,26202],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-03 22:36:26] local.INFO: PosOrderController::update - Item changes check {"order_id":5401,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-03 22:36:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5401,"order_number":"AZS-030326-024"} 
[2026-03-03 22:36:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5401,"order_number":"AZS-030326-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 22:36:26"} 
[2026-03-03 22:36:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":5400,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":26196}],"validated_items":[{"id":26196,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-03 22:36:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5400,"items_count":1} 
[2026-03-03 22:36:41] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[26197],"items":[{"id":26196,"menu_item_id":411,"quantity":2}]} 
[2026-03-03 22:36:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5400,"has_item_changes":true,"old_items_count":2,"new_items_count":1,"old_items_map_keys":["411|2|","425|2|"],"new_items_map_keys":["411|2|"]} 
[2026-03-03 22:36:41] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5400,"order_number":"AZS-030326-025"} 
[2026-03-03 22:36:41] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-025","replaced_order_id":5400} 
[2026-03-03 22:36:41] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5402,"items_count":1,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"}]} 
[2026-03-03 22:36:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5402,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5402}} 
[2026-03-03 22:36:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5402,"item_index":0,"menu_item_id":411} 
[2026-03-03 22:36:41] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5400,"new_order_id":5402,"order_number":"AZS-030326-025"} 
[2026-03-03 22:36:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5402,"item_index":0,"item_id":26196} 
[2026-03-03 22:36:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":5402,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":26196}],"validated_items":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-03 22:36:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5402,"items_count":1} 
[2026-03-03 22:36:45] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[26203],"items":[{"id":null,"menu_item_id":411,"quantity":2}]} 
[2026-03-03 22:36:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5402,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["411|2|"],"new_items_map_keys":["411|2|"]} 
[2026-03-03 22:36:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5402,"order_number":"AZS-030326-025"} 
[2026-03-03 22:36:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5402,"order_number":"AZS-030326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-03 22:36:45"} 
[2026-03-03 22:38:34] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5401,"order_number":"AZS-030326-024","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 22:38:34"} 
[2026-03-03 22:38:34] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5401,"order_number":"AZS-030326-024","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 22:38:34"} 
[2026-03-03 22:38:34] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5401,"order_number":"AZS-030326-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 22:38:34"} 
[2026-03-03 22:38:34] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5401,"order_number":"AZS-030326-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 22:38:34"} 
[2026-03-03 22:38:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5401,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26198},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26199},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26200},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26201},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26202}],"validated_items":[{"id":26198,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26199,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26200,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26201,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26202,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-03 22:38:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5401,"items_count":5} 
[2026-03-03 22:38:34] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26198,"menu_item_id":105,"quantity":1},{"id":26199,"menu_item_id":396,"quantity":2},{"id":26200,"menu_item_id":61,"quantity":1},{"id":26201,"menu_item_id":56,"quantity":1},{"id":26202,"menu_item_id":5,"quantity":1}]} 
[2026-03-03 22:38:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5401,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-03 22:38:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5401,"order_number":"AZS-030326-024"} 
[2026-03-03 22:38:34] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5401,"order_number":"AZS-030326-024","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-03 22:38:34","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-03 22:38:34"} 
[2026-03-03 22:38:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5401,"order_number":"AZS-030326-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-03 22:38:34"} 
[2026-03-03 22:38:34] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5401,"order_number":"AZS-030326-024","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-03 22:38:34","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4000.00","database_verification_match":true,"timestamp":"2026-03-03 22:38:34"} 
[2026-03-03 22:38:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T10:38:36.282Z","date_to":"2026-03-03T22:38:36.282Z","per_page":"100"} 
[2026-03-03 22:38:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":55,"count":55,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-025","AZS-030326-025","AZS-030326-024","AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","changed","paid","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":30,"paid_count":24,"unpaid_count":1,"unique_order_numbers":25} 
[2026-03-03 22:38:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T10:38:36.297Z","date_to":"2026-03-03T22:38:36.297Z","per_page":"100"} 
[2026-03-03 22:38:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":55,"count":55,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-025","AZS-030326-025","AZS-030326-024","AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","changed","paid","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":30,"paid_count":24,"unpaid_count":1,"unique_order_numbers":25} 
[2026-03-03 22:38:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T10:38:36.282Z","date_to":"2026-03-03T22:38:36.282Z","per_page":"100"} 
[2026-03-03 22:38:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":55,"count":55,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-025","AZS-030326-025","AZS-030326-024","AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","changed","paid","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":30,"paid_count":24,"unpaid_count":1,"unique_order_numbers":25} 
[2026-03-03 22:52:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5402,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":26203},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26203,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 22:52:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5402,"items_count":3} 
[2026-03-03 22:52:43] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26203,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":416,"quantity":2},{"id":null,"menu_item_id":50,"quantity":1}]} 
[2026-03-03 22:52:43] local.INFO: PosOrderController::update - Item changes check {"order_id":5402,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["411|2|"],"new_items_map_keys":["411|2|","416|2|","50|1|"]} 
[2026-03-03 22:52:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5402,"order_number":"AZS-030326-025"} 
[2026-03-03 22:52:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-025","replaced_order_id":5402} 
[2026-03-03 22:52:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5403,"items_count":3,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"}]} 
[2026-03-03 22:52:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5403,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5403}} 
[2026-03-03 22:52:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5403,"item_index":0,"menu_item_id":411} 
[2026-03-03 22:52:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5403,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5403}} 
[2026-03-03 22:52:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5403,"item_index":1,"menu_item_id":416} 
[2026-03-03 22:52:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5403,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5403}} 
[2026-03-03 22:52:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5403,"item_index":2,"menu_item_id":50} 
[2026-03-03 22:52:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5402,"new_order_id":5403,"order_number":"AZS-030326-025"} 
[2026-03-03 23:06:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5403,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":26204},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":26205},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":26206}],"validated_items":[{"id":26204,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":26205,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":26206,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-03 23:06:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5403,"items_count":3} 
[2026-03-03 23:06:11] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26204,"menu_item_id":411,"quantity":2},{"id":26205,"menu_item_id":416,"quantity":2},{"id":26206,"menu_item_id":50,"quantity":1}]} 
[2026-03-03 23:06:11] local.INFO: PosOrderController::update - Item changes check {"order_id":5403,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|2|","416|2|","50|1|"],"new_items_map_keys":["411|2|","416|2|","50|1|"]} 
[2026-03-03 23:06:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5403,"order_number":"AZS-030326-025"} 
[2026-03-03 23:06:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5403,"order_number":"AZS-030326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 23:06:11"} 
[2026-03-03 23:10:48] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5403,"order_number":"AZS-030326-025","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1600,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 23:10:48"} 
[2026-03-03 23:10:48] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5403,"order_number":"AZS-030326-025","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 23:10:48"} 
[2026-03-03 23:10:48] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5403,"order_number":"AZS-030326-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 23:10:48"} 
[2026-03-03 23:10:48] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5403,"order_number":"AZS-030326-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 23:10:48"} 
[2026-03-03 23:10:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5403,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":26204},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":26205},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":26206}],"validated_items":[{"id":26204,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":26205,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":26206,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-03 23:10:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5403,"items_count":3} 
[2026-03-03 23:10:48] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26204,"menu_item_id":411,"quantity":2},{"id":26205,"menu_item_id":416,"quantity":2},{"id":26206,"menu_item_id":50,"quantity":1}]} 
[2026-03-03 23:10:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5403,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|2|","416|2|","50|1|"],"new_items_map_keys":["411|2|","416|2|","50|1|"]} 
[2026-03-03 23:10:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5403,"order_number":"AZS-030326-025"} 
[2026-03-03 23:10:48] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5403,"order_number":"AZS-030326-025","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1600,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-03 23:10:48","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-03 23:10:48"} 
[2026-03-03 23:10:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5403,"order_number":"AZS-030326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-03 23:10:48"} 
[2026-03-03 23:10:48] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5403,"order_number":"AZS-030326-025","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1600.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-03 23:10:48","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1600.00","database_verification_match":true,"timestamp":"2026-03-03 23:10:48"} 
[2026-03-03 23:10:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T11:10:51.867Z","date_to":"2026-03-03T23:10:51.867Z","per_page":"100"} 
[2026-03-03 23:10:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T11:10:51.856Z","date_to":"2026-03-03T23:10:51.856Z","per_page":"100"} 
[2026-03-03 23:10:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":57,"count":57,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-026","AZS-030326-025","AZS-030326-025","AZS-030326-025","AZS-030326-024","AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":31,"paid_count":25,"unpaid_count":1,"unique_order_numbers":26} 
[2026-03-03 23:10:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":57,"count":57,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-026","AZS-030326-025","AZS-030326-025","AZS-030326-025","AZS-030326-024","AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":31,"paid_count":25,"unpaid_count":1,"unique_order_numbers":26} 
[2026-03-03 23:10:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T11:10:51.856Z","date_to":"2026-03-03T23:10:51.856Z","per_page":"100"} 
[2026-03-03 23:10:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":57,"count":57,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-026","AZS-030326-025","AZS-030326-025","AZS-030326-025","AZS-030326-024","AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["pending","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":31,"paid_count":25,"unpaid_count":1,"unique_order_numbers":26} 
[2026-03-03 23:11:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5404,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":26207},{"menu_item_id":422,"quantity":2,"discount_percent":0,"notes":null,"id":26208},{"menu_item_id":412,"quantity":4,"discount_percent":0,"notes":null,"id":26209},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":26207,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":26208,"menu_item_id":422,"quantity":2,"discount_percent":0,"notes":null},{"id":26209,"menu_item_id":412,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-03 23:11:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5404,"items_count":5} 
[2026-03-03 23:11:27] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26207,"menu_item_id":411,"quantity":1},{"id":26208,"menu_item_id":422,"quantity":2},{"id":26209,"menu_item_id":412,"quantity":4},{"id":null,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":416,"quantity":2}]} 
[2026-03-03 23:11:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5404,"has_item_changes":true,"old_items_count":3,"new_items_count":5,"old_items_map_keys":["411|1|","422|2|","412|4|"],"new_items_map_keys":["411|1|","422|2|","412|4|","50|2|","416|2|"]} 
[2026-03-03 23:11:27] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5404,"order_number":"AZS-030326-026"} 
[2026-03-03 23:11:27] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-026","replaced_order_id":5404} 
[2026-03-03 23:11:27] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5405,"items_count":5,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":422,"quantity":2,"price":"70.00"},{"menu_item_id":412,"quantity":4,"price":"220.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"}]} 
[2026-03-03 23:11:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5405,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5405}} 
[2026-03-03 23:11:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5405,"item_index":0,"menu_item_id":411} 
[2026-03-03 23:11:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5405,"item_index":1,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5405}} 
[2026-03-03 23:11:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5405,"item_index":1,"menu_item_id":422} 
[2026-03-03 23:11:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5405,"item_index":2,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":4,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":880.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5405}} 
[2026-03-03 23:11:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5405,"item_index":2,"menu_item_id":412} 
[2026-03-03 23:11:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5405,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5405}} 
[2026-03-03 23:11:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5405,"item_index":3,"menu_item_id":50} 
[2026-03-03 23:11:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5405,"item_index":4,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5405}} 
[2026-03-03 23:11:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5405,"item_index":4,"menu_item_id":416} 
[2026-03-03 23:11:27] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5404,"new_order_id":5405,"order_number":"AZS-030326-026"} 
[2026-03-03 23:14:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5405,"item_index":0,"item_id":26207} 
[2026-03-03 23:14:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5405,"item_index":1,"item_id":26208} 
[2026-03-03 23:14:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5405,"item_index":2,"item_id":26209} 
[2026-03-03 23:14:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":5,"order_id":5405,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":26207},{"menu_item_id":422,"quantity":2,"discount_percent":0,"notes":null,"id":26208},{"menu_item_id":412,"quantity":4,"discount_percent":0,"notes":null,"id":26209},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":422,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-03 23:14:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5405,"items_count":4} 
[2026-03-03 23:14:52] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":5,"items_to_remove":[26210,26211,26212,26213,26214],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":422,"quantity":2},{"id":null,"menu_item_id":412,"quantity":4},{"id":null,"menu_item_id":50,"quantity":2}]} 
[2026-03-03 23:14:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5405,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["411|1|","422|2|","412|4|","50|2|","416|2|"],"new_items_map_keys":["411|1|","422|2|","412|4|","50|2|"]} 
[2026-03-03 23:14:52] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5405,"order_number":"AZS-030326-026"} 
[2026-03-03 23:14:52] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-026","replaced_order_id":5405} 
[2026-03-03 23:14:52] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5406,"items_count":4,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":422,"quantity":2,"price":"70.00"},{"menu_item_id":412,"quantity":4,"price":"220.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"}]} 
[2026-03-03 23:14:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5406,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5406}} 
[2026-03-03 23:14:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5406,"item_index":0,"menu_item_id":411} 
[2026-03-03 23:14:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5406,"item_index":1,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5406}} 
[2026-03-03 23:14:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5406,"item_index":1,"menu_item_id":422} 
[2026-03-03 23:14:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5406,"item_index":2,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":4,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":880.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5406}} 
[2026-03-03 23:14:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5406,"item_index":2,"menu_item_id":412} 
[2026-03-03 23:14:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5406,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5406}} 
[2026-03-03 23:14:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5406,"item_index":3,"menu_item_id":50} 
[2026-03-03 23:14:52] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5405,"new_order_id":5406,"order_number":"AZS-030326-026"} 
[2026-03-03 23:20:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5406,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":26215},{"menu_item_id":422,"quantity":2,"discount_percent":0,"notes":null,"id":26216},{"menu_item_id":412,"quantity":4,"discount_percent":0,"notes":null,"id":26217},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":26218},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26215,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":26216,"menu_item_id":422,"quantity":2,"discount_percent":0,"notes":null},{"id":26217,"menu_item_id":412,"quantity":4,"discount_percent":0,"notes":null},{"id":26218,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-03 23:20:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5406,"items_count":5} 
[2026-03-03 23:20:57] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26215,"menu_item_id":411,"quantity":1},{"id":26216,"menu_item_id":422,"quantity":2},{"id":26217,"menu_item_id":412,"quantity":4},{"id":26218,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":413,"quantity":1}]} 
[2026-03-03 23:20:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5406,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["411|1|","422|2|","412|4|","50|2|"],"new_items_map_keys":["411|1|","422|2|","412|4|","50|2|","413|1|"]} 
[2026-03-03 23:20:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5406,"order_number":"AZS-030326-026"} 
[2026-03-03 23:20:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-026","replaced_order_id":5406} 
[2026-03-03 23:20:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5407,"items_count":5,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":422,"quantity":2,"price":"70.00"},{"menu_item_id":412,"quantity":4,"price":"220.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":413,"quantity":1,"price":"200.00"}]} 
[2026-03-03 23:20:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5407,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5407}} 
[2026-03-03 23:20:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5407,"item_index":0,"menu_item_id":411} 
[2026-03-03 23:20:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5407,"item_index":1,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5407}} 
[2026-03-03 23:20:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5407,"item_index":1,"menu_item_id":422} 
[2026-03-03 23:20:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5407,"item_index":2,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":4,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":880.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5407}} 
[2026-03-03 23:20:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5407,"item_index":2,"menu_item_id":412} 
[2026-03-03 23:20:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5407,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5407}} 
[2026-03-03 23:20:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5407,"item_index":3,"menu_item_id":50} 
[2026-03-03 23:20:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5407,"item_index":4,"item_data":{"menu_item_id":413,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Namkeen Lassi","quantity":1,"price":"200.00","discount_percent":0.0,"discount_amount":0.0,"total":200.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5407}} 
[2026-03-03 23:20:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5407,"item_index":4,"menu_item_id":413} 
[2026-03-03 23:20:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5406,"new_order_id":5407,"order_number":"AZS-030326-026"} 
[2026-03-03 23:28:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5407,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":26219},{"menu_item_id":422,"quantity":2,"discount_percent":0,"notes":null,"id":26220},{"menu_item_id":412,"quantity":4,"discount_percent":0,"notes":null,"id":26221},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":26222},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null,"id":26223},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":26219,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":26220,"menu_item_id":422,"quantity":2,"discount_percent":0,"notes":null},{"id":26221,"menu_item_id":412,"quantity":4,"discount_percent":0,"notes":null},{"id":26222,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":26223,"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-03 23:28:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5407,"items_count":6} 
[2026-03-03 23:28:16] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26219,"menu_item_id":411,"quantity":1},{"id":26220,"menu_item_id":422,"quantity":2},{"id":26221,"menu_item_id":412,"quantity":4},{"id":26222,"menu_item_id":50,"quantity":2},{"id":26223,"menu_item_id":413,"quantity":1},{"id":null,"menu_item_id":4,"quantity":2}]} 
[2026-03-03 23:28:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5407,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["411|1|","422|2|","412|4|","50|2|","413|1|"],"new_items_map_keys":["411|1|","422|2|","412|4|","50|2|","413|1|","4|2|"]} 
[2026-03-03 23:28:16] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5407,"order_number":"AZS-030326-026"} 
[2026-03-03 23:28:16] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-026","replaced_order_id":5407} 
[2026-03-03 23:28:16] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5409,"items_count":6,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":422,"quantity":2,"price":"70.00"},{"menu_item_id":412,"quantity":4,"price":"220.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":413,"quantity":1,"price":"200.00"},{"menu_item_id":4,"quantity":2,"price":"90.00"}]} 
[2026-03-03 23:28:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5409,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5409}} 
[2026-03-03 23:28:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5409,"item_index":0,"menu_item_id":411} 
[2026-03-03 23:28:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5409,"item_index":1,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5409}} 
[2026-03-03 23:28:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5409,"item_index":1,"menu_item_id":422} 
[2026-03-03 23:28:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5409,"item_index":2,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":4,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":880.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5409}} 
[2026-03-03 23:28:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5409,"item_index":2,"menu_item_id":412} 
[2026-03-03 23:28:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5409,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5409}} 
[2026-03-03 23:28:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5409,"item_index":3,"menu_item_id":50} 
[2026-03-03 23:28:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5409,"item_index":4,"item_data":{"menu_item_id":413,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Namkeen Lassi","quantity":1,"price":"200.00","discount_percent":0.0,"discount_amount":0.0,"total":200.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5409}} 
[2026-03-03 23:28:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5409,"item_index":4,"menu_item_id":413} 
[2026-03-03 23:28:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5409,"item_index":5,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":2,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":180.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5409}} 
[2026-03-03 23:28:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5409,"item_index":5,"menu_item_id":4} 
[2026-03-03 23:28:16] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5407,"new_order_id":5409,"order_number":"AZS-030326-026"} 
[2026-03-03 23:30:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5409,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":26225},{"menu_item_id":422,"quantity":2,"discount_percent":0,"notes":null,"id":26226},{"menu_item_id":412,"quantity":4,"discount_percent":0,"notes":null,"id":26227},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":26228},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null,"id":26229},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null,"id":26230},{"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":26225,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":26226,"menu_item_id":422,"quantity":2,"discount_percent":0,"notes":null},{"id":26227,"menu_item_id":412,"quantity":4,"discount_percent":0,"notes":null},{"id":26228,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":26229,"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null},{"id":26230,"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-03 23:30:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5409,"items_count":7} 
[2026-03-03 23:30:06] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26225,"menu_item_id":411,"quantity":1},{"id":26226,"menu_item_id":422,"quantity":2},{"id":26227,"menu_item_id":412,"quantity":4},{"id":26228,"menu_item_id":50,"quantity":2},{"id":26229,"menu_item_id":413,"quantity":1},{"id":26230,"menu_item_id":4,"quantity":2},{"id":null,"menu_item_id":286,"quantity":2}]} 
[2026-03-03 23:30:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5409,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["411|1|","422|2|","412|4|","50|2|","413|1|","4|2|"],"new_items_map_keys":["411|1|","422|2|","412|4|","50|2|","413|1|","4|2|","286|2|"]} 
[2026-03-03 23:30:06] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5409,"order_number":"AZS-030326-026"} 
[2026-03-03 23:30:06] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-026","replaced_order_id":5409} 
[2026-03-03 23:30:06] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5411,"items_count":7,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":422,"quantity":2,"price":"70.00"},{"menu_item_id":412,"quantity":4,"price":"220.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":413,"quantity":1,"price":"200.00"},{"menu_item_id":4,"quantity":2,"price":"90.00"},{"menu_item_id":286,"quantity":2,"price":"15.00"}]} 
[2026-03-03 23:30:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5411,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5411}} 
[2026-03-03 23:30:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5411,"item_index":0,"menu_item_id":411} 
[2026-03-03 23:30:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5411,"item_index":1,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5411}} 
[2026-03-03 23:30:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5411,"item_index":1,"menu_item_id":422} 
[2026-03-03 23:30:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5411,"item_index":2,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":4,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":880.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5411}} 
[2026-03-03 23:30:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5411,"item_index":2,"menu_item_id":412} 
[2026-03-03 23:30:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5411,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5411}} 
[2026-03-03 23:30:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5411,"item_index":3,"menu_item_id":50} 
[2026-03-03 23:30:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5411,"item_index":4,"item_data":{"menu_item_id":413,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Namkeen Lassi","quantity":1,"price":"200.00","discount_percent":0.0,"discount_amount":0.0,"total":200.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5411}} 
[2026-03-03 23:30:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5411,"item_index":4,"menu_item_id":413} 
[2026-03-03 23:30:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5411,"item_index":5,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":2,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":180.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5411}} 
[2026-03-03 23:30:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5411,"item_index":5,"menu_item_id":4} 
[2026-03-03 23:30:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5411,"item_index":6,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":2,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":30.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5411}} 
[2026-03-03 23:30:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5411,"item_index":6,"menu_item_id":286} 
[2026-03-03 23:30:06] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5409,"new_order_id":5411,"order_number":"AZS-030326-026"} 
[2026-03-03 23:30:11] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5411,"item_index":0,"item_id":26225} 
[2026-03-03 23:30:11] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5411,"item_index":1,"item_id":26226} 
[2026-03-03 23:30:11] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5411,"item_index":2,"item_id":26227} 
[2026-03-03 23:30:11] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5411,"item_index":3,"item_id":26228} 
[2026-03-03 23:30:11] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5411,"item_index":4,"item_id":26229} 
[2026-03-03 23:30:11] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5411,"item_index":5,"item_id":26230} 
[2026-03-03 23:30:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5411,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":26225},{"menu_item_id":422,"quantity":2,"discount_percent":0,"notes":null,"id":26226},{"menu_item_id":412,"quantity":4,"discount_percent":0,"notes":null,"id":26227},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":26228},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null,"id":26229},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null,"id":26230},{"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":422,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-03 23:30:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5411,"items_count":7} 
[2026-03-03 23:30:11] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[26233,26234,26235,26236,26237,26238,26239],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":422,"quantity":2},{"id":null,"menu_item_id":412,"quantity":4},{"id":null,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":413,"quantity":1},{"id":null,"menu_item_id":4,"quantity":2},{"id":null,"menu_item_id":286,"quantity":2}]} 
[2026-03-03 23:30:11] local.INFO: PosOrderController::update - Item changes check {"order_id":5411,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["411|1|","422|2|","412|4|","50|2|","413|1|","4|2|","286|2|"],"new_items_map_keys":["411|1|","422|2|","412|4|","50|2|","413|1|","4|2|","286|2|"]} 
[2026-03-03 23:30:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5411,"order_number":"AZS-030326-026"} 
[2026-03-03 23:30:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5411,"order_number":"AZS-030326-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-03 23:30:11"} 
[2026-03-03 23:30:33] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5410,"order_number":"AZS-030326-028","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":130,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 23:30:33"} 
[2026-03-03 23:30:33] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5410,"order_number":"AZS-030326-028","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":130,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 23:30:33"} 
[2026-03-03 23:30:33] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5410,"order_number":"AZS-030326-028","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":130,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 23:30:33"} 
[2026-03-03 23:30:33] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5410,"order_number":"AZS-030326-028","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":130,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 23:30:33"} 
[2026-03-03 23:30:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5410,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":26231},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26232}],"validated_items":[{"id":26231,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"id":26232,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-03 23:30:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5410,"items_count":2} 
[2026-03-03 23:30:33] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26231,"menu_item_id":286,"quantity":2},{"id":26232,"menu_item_id":425,"quantity":1}]} 
[2026-03-03 23:30:33] local.INFO: PosOrderController::update - Item changes check {"order_id":5410,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["286|2|","425|1|"],"new_items_map_keys":["286|2|","425|1|"]} 
[2026-03-03 23:30:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5410,"order_number":"AZS-030326-028"} 
[2026-03-03 23:30:33] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5410,"order_number":"AZS-030326-028","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":130,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-03 23:30:33","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-03 23:30:33"} 
[2026-03-03 23:30:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5410,"order_number":"AZS-030326-028","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-03 23:30:33"} 
[2026-03-03 23:30:33] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5410,"order_number":"AZS-030326-028","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"130.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-03 23:30:33","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":130,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"130.00","database_verification_match":true,"timestamp":"2026-03-03 23:30:33"} 
[2026-03-03 23:36:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5411,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":26233},{"menu_item_id":422,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":26234},{"menu_item_id":412,"quantity":4,"price":220,"discount_percent":0,"notes":null,"id":26235},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":26236},{"menu_item_id":413,"quantity":1,"price":200,"discount_percent":0,"notes":null,"id":26237},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null,"id":26238},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":26239}],"validated_items":[{"id":26233,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":26234,"menu_item_id":422,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":26235,"menu_item_id":412,"quantity":4,"price":220,"discount_percent":0,"notes":null},{"id":26236,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":26237,"menu_item_id":413,"quantity":1,"price":200,"discount_percent":0,"notes":null},{"id":26238,"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null},{"id":26239,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-03 23:36:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5411,"items_count":7} 
[2026-03-03 23:36:19] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26233,"menu_item_id":411,"quantity":1},{"id":26234,"menu_item_id":422,"quantity":2},{"id":26235,"menu_item_id":412,"quantity":4},{"id":26236,"menu_item_id":50,"quantity":2},{"id":26237,"menu_item_id":413,"quantity":1},{"id":26238,"menu_item_id":4,"quantity":2},{"id":26239,"menu_item_id":286,"quantity":2}]} 
[2026-03-03 23:36:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5411,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["411|1|","422|2|","412|4|","50|2|","413|1|","4|2|","286|2|"],"new_items_map_keys":["411|1|","422|2|","412|4|","50|2|","413|1|","4|2|","286|2|"]} 
[2026-03-03 23:36:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5411,"order_number":"AZS-030326-026"} 
[2026-03-03 23:36:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5411,"order_number":"AZS-030326-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-03 23:36:19"} 
[2026-03-03 23:38:54] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5411,"order_number":"AZS-030326-026","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 23:38:54"} 
[2026-03-03 23:38:54] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5411,"order_number":"AZS-030326-026","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-03 23:38:54"} 
[2026-03-03 23:38:54] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5411,"order_number":"AZS-030326-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 23:38:54"} 
[2026-03-03 23:38:54] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5411,"order_number":"AZS-030326-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-03 23:38:54"} 
[2026-03-03 23:38:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5411,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":26233},{"menu_item_id":422,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":26234},{"menu_item_id":412,"quantity":4,"price":220,"discount_percent":0,"notes":null,"id":26235},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":26236},{"menu_item_id":413,"quantity":1,"price":200,"discount_percent":0,"notes":null,"id":26237},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null,"id":26238},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":26239}],"validated_items":[{"id":26233,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":26234,"menu_item_id":422,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":26235,"menu_item_id":412,"quantity":4,"price":220,"discount_percent":0,"notes":null},{"id":26236,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":26237,"menu_item_id":413,"quantity":1,"price":200,"discount_percent":0,"notes":null},{"id":26238,"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null},{"id":26239,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-03 23:38:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5411,"items_count":7} 
[2026-03-03 23:38:54] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26233,"menu_item_id":411,"quantity":1},{"id":26234,"menu_item_id":422,"quantity":2},{"id":26235,"menu_item_id":412,"quantity":4},{"id":26236,"menu_item_id":50,"quantity":2},{"id":26237,"menu_item_id":413,"quantity":1},{"id":26238,"menu_item_id":4,"quantity":2},{"id":26239,"menu_item_id":286,"quantity":2}]} 
[2026-03-03 23:38:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5411,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["411|1|","422|2|","412|4|","50|2|","413|1|","4|2|","286|2|"],"new_items_map_keys":["411|1|","422|2|","412|4|","50|2|","413|1|","4|2|","286|2|"]} 
[2026-03-03 23:38:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5411,"order_number":"AZS-030326-026"} 
[2026-03-03 23:38:54] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5411,"order_number":"AZS-030326-026","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-03 23:38:54","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-03 23:38:54"} 
[2026-03-03 23:38:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5411,"order_number":"AZS-030326-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-03 23:38:54"} 
[2026-03-03 23:38:54] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5411,"order_number":"AZS-030326-026","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-03 23:38:54","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-03-03 23:38:54"} 
[2026-03-03 23:42:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5408,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":26224},{"menu_item_id":286,"quantity":6,"discount_percent":0,"notes":null}],"validated_items":[{"id":26224,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":6,"discount_percent":0,"notes":null}]} 
[2026-03-03 23:42:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5408,"items_count":2} 
[2026-03-03 23:42:35] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26224,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":286,"quantity":6}]} 
[2026-03-03 23:42:35] local.INFO: PosOrderController::update - Item changes check {"order_id":5408,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|","286|6|"]} 
[2026-03-03 23:42:35] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5408,"order_number":"AZS-030326-027"} 
[2026-03-03 23:42:35] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-027","replaced_order_id":5408} 
[2026-03-03 23:42:35] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5412,"items_count":2,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":286,"quantity":6,"price":"15.00"}]} 
[2026-03-03 23:42:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5412,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5412}} 
[2026-03-03 23:42:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5412,"item_index":0,"menu_item_id":411} 
[2026-03-03 23:42:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5412,"item_index":1,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":6,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5412}} 
[2026-03-03 23:42:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5412,"item_index":1,"menu_item_id":286} 
[2026-03-03 23:42:35] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5408,"new_order_id":5412,"order_number":"AZS-030326-027"} 
[2026-03-03 23:49:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T11:49:04.900Z","date_to":"2026-03-03T23:49:04.900Z","per_page":"100"} 
[2026-03-03 23:49:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":65,"count":65,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-028","AZS-030326-027","AZS-030326-027","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-025","AZS-030326-025","AZS-030326-025","AZS-030326-024","AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["paid","pending","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":37,"paid_count":27,"unpaid_count":1,"unique_order_numbers":28} 
[2026-03-03 23:49:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T11:49:04.878Z","date_to":"2026-03-03T23:49:04.878Z","per_page":"100"} 
[2026-03-03 23:49:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":65,"count":65,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-028","AZS-030326-027","AZS-030326-027","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-025","AZS-030326-025","AZS-030326-025","AZS-030326-024","AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["paid","pending","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":37,"paid_count":27,"unpaid_count":1,"unique_order_numbers":28} 
[2026-03-03 23:49:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T11:49:04.878Z","date_to":"2026-03-03T23:49:04.878Z","per_page":"100"} 
[2026-03-03 23:49:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":65,"count":65,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-028","AZS-030326-027","AZS-030326-027","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-025","AZS-030326-025","AZS-030326-025","AZS-030326-024","AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["paid","pending","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":37,"paid_count":27,"unpaid_count":1,"unique_order_numbers":28} 
[2026-03-03 23:59:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T11:58:59.372Z","date_to":"2026-03-03T23:58:59.372Z","per_page":"100"} 
[2026-03-03 23:59:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T11:58:59.386Z","date_to":"2026-03-03T23:58:59.386Z","per_page":"100"} 
[2026-03-03 23:59:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":65,"count":65,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-028","AZS-030326-027","AZS-030326-027","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-025","AZS-030326-025","AZS-030326-025","AZS-030326-024","AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["paid","pending","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":37,"paid_count":27,"unpaid_count":1,"unique_order_numbers":28} 
[2026-03-03 23:59:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":65,"count":65,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-028","AZS-030326-027","AZS-030326-027","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-025","AZS-030326-025","AZS-030326-025","AZS-030326-024","AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["paid","pending","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":37,"paid_count":27,"unpaid_count":1,"unique_order_numbers":28} 
[2026-03-03 23:59:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T11:58:59.372Z","date_to":"2026-03-03T23:58:59.372Z","per_page":"100"} 
[2026-03-03 23:59:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":65,"count":65,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-028","AZS-030326-027","AZS-030326-027","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-025","AZS-030326-025","AZS-030326-025","AZS-030326-024","AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["paid","pending","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":37,"paid_count":27,"unpaid_count":1,"unique_order_numbers":28} 
[2026-03-04 00:00:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5412,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":26240},{"menu_item_id":286,"quantity":5,"price":15,"discount_percent":0,"notes":null,"id":26241}],"validated_items":[{"id":26240,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":26241,"menu_item_id":286,"quantity":5,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-04 00:00:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5412,"items_count":2} 
[2026-03-04 00:00:47] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26240,"menu_item_id":411,"quantity":1},{"id":26241,"menu_item_id":286,"quantity":5}]} 
[2026-03-04 00:00:47] local.INFO: PosOrderController::update - Item changes check {"order_id":5412,"has_item_changes":true,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","286|6|"],"new_items_map_keys":["411|1|","286|5|"]} 
[2026-03-04 00:00:47] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5412,"order_number":"AZS-030326-027"} 
[2026-03-04 00:00:47] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030326-027","replaced_order_id":5412} 
[2026-03-04 00:00:47] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5413,"items_count":2,"items":[{"menu_item_id":411,"quantity":1,"price":599.0},{"menu_item_id":286,"quantity":5,"price":15.0}]} 
[2026-03-04 00:00:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5413,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":599.0,"discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5413}} 
[2026-03-04 00:00:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5413,"item_index":0,"menu_item_id":411} 
[2026-03-04 00:00:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5413,"item_index":1,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":5,"price":15.0,"discount_percent":0.0,"discount_amount":0.0,"total":75.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5413}} 
[2026-03-04 00:00:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5413,"item_index":1,"menu_item_id":286} 
[2026-03-04 00:00:47] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5412,"new_order_id":5413,"order_number":"AZS-030326-027"} 
[2026-03-04 00:00:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5413,"item_index":0,"item_id":26240} 
[2026-03-04 00:00:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5413,"item_index":1,"item_id":26241} 
[2026-03-04 00:00:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":5413,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":26240},{"menu_item_id":286,"quantity":5,"price":15,"discount_percent":0,"notes":null,"id":26241}],"validated_items":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":5,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-04 00:00:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5413,"items_count":2} 
[2026-03-04 00:00:54] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[26242,26243],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":286,"quantity":5}]} 
[2026-03-04 00:00:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5413,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","286|5|"],"new_items_map_keys":["411|1|","286|5|"]} 
[2026-03-04 00:00:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5413,"order_number":"AZS-030326-027"} 
[2026-03-04 00:00:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5413,"order_number":"AZS-030326-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-04 00:00:54"} 
[2026-03-04 00:08:58] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5413,"item_index":0,"item_id":26240} 
[2026-03-04 00:08:58] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5413,"item_index":1,"item_id":26241} 
[2026-03-04 00:08:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":5413,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":26240},{"menu_item_id":286,"quantity":5,"discount_percent":0,"notes":null,"id":26241}],"validated_items":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":5,"discount_percent":0,"notes":null}]} 
[2026-03-04 00:08:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5413,"items_count":2} 
[2026-03-04 00:08:58] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[26242,26243],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":286,"quantity":5}]} 
[2026-03-04 00:08:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5413,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","286|5|"],"new_items_map_keys":["411|1|","286|5|"]} 
[2026-03-04 00:08:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5413,"order_number":"AZS-030326-027"} 
[2026-03-04 00:08:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5413,"order_number":"AZS-030326-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-04 00:08:58"} 
[2026-03-04 00:09:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5413,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":26242},{"menu_item_id":286,"quantity":5,"discount_percent":0,"notes":null,"id":26243}],"validated_items":[{"id":26242,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":26243,"menu_item_id":286,"quantity":5,"discount_percent":0,"notes":null}]} 
[2026-03-04 00:09:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5413,"items_count":2} 
[2026-03-04 00:09:19] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26242,"menu_item_id":411,"quantity":1},{"id":26243,"menu_item_id":286,"quantity":5}]} 
[2026-03-04 00:09:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5413,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","286|5|"],"new_items_map_keys":["411|1|","286|5|"]} 
[2026-03-04 00:09:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5413,"order_number":"AZS-030326-027"} 
[2026-03-04 00:09:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5413,"order_number":"AZS-030326-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-03-04 00:09:19"} 
[2026-03-04 00:10:18] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5413,"order_number":"AZS-030326-027","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":674,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 00:10:18"} 
[2026-03-04 00:10:18] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5413,"order_number":"AZS-030326-027","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":674,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 00:10:18"} 
[2026-03-04 00:10:18] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5413,"order_number":"AZS-030326-027","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":674,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 00:10:18"} 
[2026-03-04 00:10:18] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5413,"order_number":"AZS-030326-027","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":674,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 00:10:18"} 
[2026-03-04 00:10:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5413,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":26242},{"menu_item_id":286,"quantity":5,"price":15,"discount_percent":0,"notes":null,"id":26243}],"validated_items":[{"id":26242,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":26243,"menu_item_id":286,"quantity":5,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-04 00:10:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5413,"items_count":2} 
[2026-03-04 00:10:18] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26242,"menu_item_id":411,"quantity":1},{"id":26243,"menu_item_id":286,"quantity":5}]} 
[2026-03-04 00:10:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5413,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","286|5|"],"new_items_map_keys":["411|1|","286|5|"]} 
[2026-03-04 00:10:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5413,"order_number":"AZS-030326-027"} 
[2026-03-04 00:10:18] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5413,"order_number":"AZS-030326-027","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":674,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-04 00:10:18","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-04 00:10:18"} 
[2026-03-04 00:10:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5413,"order_number":"AZS-030326-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-04 00:10:18"} 
[2026-03-04 00:10:18] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5413,"order_number":"AZS-030326-027","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"674.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-04 00:10:18","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":674,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"674.00","database_verification_match":true,"timestamp":"2026-03-04 00:10:18"} 
[2026-03-04 00:10:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T12:10:21.817Z","date_to":"2026-03-04T00:10:21.817Z","per_page":"100"} 
[2026-03-04 00:10:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":66,"count":66,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-028","AZS-030326-027","AZS-030326-027","AZS-030326-027","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-025","AZS-030326-025","AZS-030326-025","AZS-030326-024","AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":38,"paid_count":28,"unpaid_count":0,"unique_order_numbers":28} 
[2026-03-04 00:10:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T12:10:21.794Z","date_to":"2026-03-04T00:10:21.794Z","per_page":"100"} 
[2026-03-04 00:10:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":66,"count":66,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-028","AZS-030326-027","AZS-030326-027","AZS-030326-027","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-025","AZS-030326-025","AZS-030326-025","AZS-030326-024","AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":38,"paid_count":28,"unpaid_count":0,"unique_order_numbers":28} 
[2026-03-04 00:10:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T12:10:21.794Z","date_to":"2026-03-04T00:10:21.794Z","per_page":"100"} 
[2026-03-04 00:10:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":66,"count":66,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-028","AZS-030326-027","AZS-030326-027","AZS-030326-027","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-025","AZS-030326-025","AZS-030326-025","AZS-030326-024","AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":38,"paid_count":28,"unpaid_count":0,"unique_order_numbers":28} 
[2026-03-04 05:52:34] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T17:52:24.562Z","date_to":"2026-03-04T05:52:24.562Z","per_page":"100"} 
[2026-03-04 05:52:34] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-028","AZS-030326-027","AZS-030326-027","AZS-030326-027","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-025","AZS-030326-025","AZS-030326-025","AZS-030326-024","AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed"],"deleted_count":15,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-04 05:52:35] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T17:52:24.489Z","date_to":"2026-03-04T05:52:24.489Z","per_page":"100"} 
[2026-03-04 05:52:35] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-028","AZS-030326-027","AZS-030326-027","AZS-030326-027","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-025","AZS-030326-025","AZS-030326-025","AZS-030326-024","AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed"],"deleted_count":15,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-04 05:52:36] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T17:52:24.489Z","date_to":"2026-03-04T05:52:24.489Z","per_page":"100"} 
[2026-03-04 05:52:36] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-028","AZS-030326-027","AZS-030326-027","AZS-030326-027","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-025","AZS-030326-025","AZS-030326-025","AZS-030326-024","AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed"],"deleted_count":15,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-04 05:53:02] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T05:52:55.586Z","date_to":"2026-03-04T05:52:55.586Z","per_page":"100"} 
[2026-03-04 05:53:02] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":66,"count":66,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030326-028","AZS-030326-027","AZS-030326-027","AZS-030326-027","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-025","AZS-030326-025","AZS-030326-025","AZS-030326-024","AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":38,"paid_count":28,"unpaid_count":0,"unique_order_numbers":28} 
[2026-03-04 05:53:56] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-03T05:52:55.586Z","date_to":"2026-03-04T05:52:55.586Z","per_page":"150"} 
[2026-03-04 05:53:56] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":66,"count":66,"current_page":1,"last_page":1,"per_page":150,"order_branch_ids":[1],"order_numbers":["AZS-030326-028","AZS-030326-027","AZS-030326-027","AZS-030326-027","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-026","AZS-030326-025","AZS-030326-025","AZS-030326-025","AZS-030326-024","AZS-030326-024","AZS-030326-023","AZS-030326-023","AZS-030326-022","AZS-030326-022","AZS-030326-021","AZS-030326-021","AZS-030326-021","AZS-030326-020","AZS-030326-020","AZS-030326-019","AZS-030326-019","AZS-030326-018","AZS-030326-017","AZS-030326-017","AZS-030326-016","AZS-030326-016","AZS-030326-015","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-014","AZS-030326-013","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-012","AZS-030326-011","AZS-030326-011","AZS-030326-011","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-010","AZS-030326-009","AZS-030326-009","AZS-030326-008","AZS-030326-008","AZS-030326-008","AZS-030326-007","AZS-030326-006","AZS-030326-006","AZS-030326-005","AZS-030326-004","AZS-030326-003","AZS-030326-002","AZS-030326-002","AZS-030326-002","AZS-030326-001","AZS-030326-001","AZS-030326-001","AZS-030326-001"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":38,"paid_count":28,"unpaid_count":0,"unique_order_numbers":28} 
[2026-03-04 13:03:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5414,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":26244},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":26245},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26244,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":26245,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-04 13:03:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5414,"items_count":3} 
[2026-03-04 13:03:33] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26244,"menu_item_id":105,"quantity":1},{"id":26245,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-04 13:03:33] local.INFO: PosOrderController::update - Item changes check {"order_id":5414,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["105|1|","396|2|"],"new_items_map_keys":["105|1|","396|2|","4|1|"]} 
[2026-03-04 13:03:33] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5414,"order_number":"AZS-040326-001"} 
[2026-03-04 13:03:33] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040326-001","replaced_order_id":5414} 
[2026-03-04 13:03:33] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5418,"items_count":3,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-03-04 13:03:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5418,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5418}} 
[2026-03-04 13:03:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5418,"item_index":0,"menu_item_id":105} 
[2026-03-04 13:03:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5418,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5418}} 
[2026-03-04 13:03:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5418,"item_index":1,"menu_item_id":396} 
[2026-03-04 13:03:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5418,"item_index":2,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5418}} 
[2026-03-04 13:03:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5418,"item_index":2,"menu_item_id":4} 
[2026-03-04 13:03:33] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5414,"new_order_id":5418,"order_number":"AZS-040326-001"} 
[2026-03-04 13:14:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":1,"order_id":5418,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":26249},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null,"id":26251},{"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":26249,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":26251,"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-04 13:14:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5418,"items_count":3} 
[2026-03-04 13:14:01] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":1,"items_to_remove":[26250],"items":[{"id":26249,"menu_item_id":105,"quantity":1},{"id":26251,"menu_item_id":4,"quantity":1},{"id":null,"menu_item_id":48,"quantity":2}]} 
[2026-03-04 13:14:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5418,"has_item_changes":true,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["105|1|","396|2|","4|1|"],"new_items_map_keys":["105|1|","4|1|","48|2|"]} 
[2026-03-04 13:14:01] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5418,"order_number":"AZS-040326-001"} 
[2026-03-04 13:14:01] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040326-001","replaced_order_id":5418} 
[2026-03-04 13:14:01] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5422,"items_count":3,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"},{"menu_item_id":48,"quantity":2,"price":"250.00"}]} 
[2026-03-04 13:14:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5422,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5422}} 
[2026-03-04 13:14:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5422,"item_index":0,"menu_item_id":105} 
[2026-03-04 13:14:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5422,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5422}} 
[2026-03-04 13:14:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5422,"item_index":1,"menu_item_id":4} 
[2026-03-04 13:14:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5422,"item_index":2,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5422}} 
[2026-03-04 13:14:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5422,"item_index":2,"menu_item_id":48} 
[2026-03-04 13:14:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5418,"new_order_id":5422,"order_number":"AZS-040326-001"} 
[2026-03-04 13:14:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5422,"item_index":0,"item_id":26249} 
[2026-03-04 13:14:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5422,"item_index":1,"item_id":26251} 
[2026-03-04 13:14:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":5422,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":26249},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null,"id":26251},{"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-04 13:14:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5422,"items_count":3} 
[2026-03-04 13:14:14] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[26255,26256,26257],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1},{"id":null,"menu_item_id":48,"quantity":2}]} 
[2026-03-04 13:14:14] local.INFO: PosOrderController::update - Item changes check {"order_id":5422,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["105|1|","4|1|","48|2|"],"new_items_map_keys":["105|1|","4|1|","48|2|"]} 
[2026-03-04 13:14:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5422,"order_number":"AZS-040326-001"} 
[2026-03-04 13:14:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5422,"order_number":"AZS-040326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-04 13:14:14"} 
[2026-03-04 13:14:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5420,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null,"id":26253},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26253,"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-04 13:14:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5420,"items_count":2} 
[2026-03-04 13:14:32] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26253,"menu_item_id":417,"quantity":4},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-04 13:14:32] local.INFO: PosOrderController::update - Item changes check {"order_id":5420,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["417|4|"],"new_items_map_keys":["417|4|","5|1|"]} 
[2026-03-04 13:14:32] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5420,"order_number":"AZS-040326-006"} 
[2026-03-04 13:14:32] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040326-006","replaced_order_id":5420} 
[2026-03-04 13:14:32] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5423,"items_count":2,"items":[{"menu_item_id":417,"quantity":4,"price":"499.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-04 13:14:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5423,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":4,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":1996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5423}} 
[2026-03-04 13:14:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5423,"item_index":0,"menu_item_id":417} 
[2026-03-04 13:14:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5423,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5423}} 
[2026-03-04 13:14:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5423,"item_index":1,"menu_item_id":5} 
[2026-03-04 13:14:32] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5420,"new_order_id":5423,"order_number":"AZS-040326-006"} 
[2026-03-04 13:15:32] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5417,"order_number":"AZS-040326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":50,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 13:15:32"} 
[2026-03-04 13:15:32] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5417,"order_number":"AZS-040326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":50,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 13:15:32"} 
[2026-03-04 13:15:32] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5417,"order_number":"AZS-040326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":50,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 13:15:32"} 
[2026-03-04 13:15:32] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5417,"order_number":"AZS-040326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":50,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 13:15:32"} 
[2026-03-04 13:15:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5417,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":418,"quantity":50,"price":1,"discount_percent":0,"notes":null,"id":26248}],"validated_items":[{"id":26248,"menu_item_id":418,"quantity":50,"price":1,"discount_percent":0,"notes":null}]} 
[2026-03-04 13:15:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5417,"items_count":1} 
[2026-03-04 13:15:32] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26248,"menu_item_id":418,"quantity":50}]} 
[2026-03-04 13:15:32] local.INFO: PosOrderController::update - Item changes check {"order_id":5417,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["418|50|"],"new_items_map_keys":["418|50|"]} 
[2026-03-04 13:15:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5417,"order_number":"AZS-040326-004"} 
[2026-03-04 13:15:32] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5417,"order_number":"AZS-040326-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":50,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-04 13:15:32","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-04 13:15:32"} 
[2026-03-04 13:15:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5417,"order_number":"AZS-040326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-04 13:15:32"} 
[2026-03-04 13:15:32] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5417,"order_number":"AZS-040326-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"50.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-04 13:15:32","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":50,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"50.00","database_verification_match":true,"timestamp":"2026-03-04 13:15:32"} 
[2026-03-04 13:15:45] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5419,"order_number":"AZS-040326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":150,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 13:15:45"} 
[2026-03-04 13:15:45] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5419,"order_number":"AZS-040326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":150,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 13:15:45"} 
[2026-03-04 13:15:45] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5419,"order_number":"AZS-040326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":150,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 13:15:45"} 
[2026-03-04 13:15:45] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5419,"order_number":"AZS-040326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":150,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 13:15:45"} 
[2026-03-04 13:15:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5419,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":418,"quantity":150,"price":1,"discount_percent":0,"notes":null,"id":26252}],"validated_items":[{"id":26252,"menu_item_id":418,"quantity":150,"price":1,"discount_percent":0,"notes":null}]} 
[2026-03-04 13:15:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5419,"items_count":1} 
[2026-03-04 13:15:45] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26252,"menu_item_id":418,"quantity":150}]} 
[2026-03-04 13:15:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5419,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["418|150|"],"new_items_map_keys":["418|150|"]} 
[2026-03-04 13:15:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5419,"order_number":"AZS-040326-005"} 
[2026-03-04 13:15:45] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5419,"order_number":"AZS-040326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":150,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-04 13:15:45","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-04 13:15:45"} 
[2026-03-04 13:15:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5419,"order_number":"AZS-040326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-04 13:15:45"} 
[2026-03-04 13:15:45] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5419,"order_number":"AZS-040326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"150.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-04 13:15:45","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":150,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"150.00","database_verification_match":true,"timestamp":"2026-03-04 13:15:45"} 
[2026-03-04 13:16:04] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5416,"order_number":"AZS-040326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":90,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 13:16:04"} 
[2026-03-04 13:16:04] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5416,"order_number":"AZS-040326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":90,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 13:16:04"} 
[2026-03-04 13:16:04] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5416,"order_number":"AZS-040326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":90,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 13:16:04"} 
[2026-03-04 13:16:04] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5416,"order_number":"AZS-040326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":90,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 13:16:04"} 
[2026-03-04 13:16:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5416,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":6,"price":15,"discount_percent":0,"notes":null,"id":26247}],"validated_items":[{"id":26247,"menu_item_id":286,"quantity":6,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-04 13:16:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5416,"items_count":1} 
[2026-03-04 13:16:04] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26247,"menu_item_id":286,"quantity":6}]} 
[2026-03-04 13:16:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5416,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["286|6|"],"new_items_map_keys":["286|6|"]} 
[2026-03-04 13:16:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5416,"order_number":"AZS-040326-003"} 
[2026-03-04 13:16:04] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5416,"order_number":"AZS-040326-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":90,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-04 13:16:04","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-04 13:16:04"} 
[2026-03-04 13:16:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5416,"order_number":"AZS-040326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-04 13:16:04"} 
[2026-03-04 13:16:04] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5416,"order_number":"AZS-040326-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"90.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-04 13:16:04","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":90,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"90.00","database_verification_match":true,"timestamp":"2026-03-04 13:16:04"} 
[2026-03-04 13:16:14] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5415,"order_number":"AZS-040326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 13:16:14"} 
[2026-03-04 13:16:14] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5415,"order_number":"AZS-040326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 13:16:14"} 
[2026-03-04 13:16:14] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5415,"order_number":"AZS-040326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 13:16:14"} 
[2026-03-04 13:16:14] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5415,"order_number":"AZS-040326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 13:16:14"} 
[2026-03-04 13:16:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5415,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26246}],"validated_items":[{"id":26246,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-04 13:16:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5415,"items_count":1} 
[2026-03-04 13:16:14] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26246,"menu_item_id":417,"quantity":1}]} 
[2026-03-04 13:16:14] local.INFO: PosOrderController::update - Item changes check {"order_id":5415,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-04 13:16:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5415,"order_number":"AZS-040326-002"} 
[2026-03-04 13:16:14] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5415,"order_number":"AZS-040326-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-04 13:16:14","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-04 13:16:14"} 
[2026-03-04 13:16:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5415,"order_number":"AZS-040326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-04 13:16:14"} 
[2026-03-04 13:16:14] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5415,"order_number":"AZS-040326-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-04 13:16:14","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-04 13:16:14"} 
[2026-03-04 13:30:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5422,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":26255},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null,"id":26256},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":26257}],"validated_items":[{"id":26255,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":26256,"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null},{"id":26257,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-04 13:30:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5422,"items_count":3} 
[2026-03-04 13:30:09] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26255,"menu_item_id":105,"quantity":1},{"id":26256,"menu_item_id":4,"quantity":1},{"id":26257,"menu_item_id":48,"quantity":1}]} 
[2026-03-04 13:30:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5422,"has_item_changes":true,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["105|1|","4|1|","48|2|"],"new_items_map_keys":["105|1|","4|1|","48|1|"]} 
[2026-03-04 13:30:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5422,"order_number":"AZS-040326-001"} 
[2026-03-04 13:30:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040326-001","replaced_order_id":5422} 
[2026-03-04 13:30:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5425,"items_count":3,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"}]} 
[2026-03-04 13:30:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5425,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5425}} 
[2026-03-04 13:30:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5425,"item_index":0,"menu_item_id":105} 
[2026-03-04 13:30:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5425,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5425}} 
[2026-03-04 13:30:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5425,"item_index":1,"menu_item_id":4} 
[2026-03-04 13:30:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5425,"item_index":2,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5425}} 
[2026-03-04 13:30:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5425,"item_index":2,"menu_item_id":48} 
[2026-03-04 13:30:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5422,"new_order_id":5425,"order_number":"AZS-040326-001"} 
[2026-03-04 13:34:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5423,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null,"id":26258},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26259}],"validated_items":[{"id":26258,"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null},{"id":26259,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-04 13:34:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5423,"items_count":2} 
[2026-03-04 13:34:07] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26258,"menu_item_id":417,"quantity":4},{"id":26259,"menu_item_id":5,"quantity":1}]} 
[2026-03-04 13:34:07] local.INFO: PosOrderController::update - Item changes check {"order_id":5423,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["417|4|","5|1|"],"new_items_map_keys":["417|4|","5|1|"]} 
[2026-03-04 13:34:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5423,"order_number":"AZS-040326-006"} 
[2026-03-04 13:34:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5423,"order_number":"AZS-040326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-04 13:34:07"} 
[2026-03-04 13:34:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5425,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":26262},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null,"id":26263},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":26264}],"validated_items":[{"id":26262,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":26263,"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null},{"id":26264,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-04 13:34:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5425,"items_count":3} 
[2026-03-04 13:34:16] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26262,"menu_item_id":105,"quantity":1},{"id":26263,"menu_item_id":4,"quantity":1},{"id":26264,"menu_item_id":48,"quantity":1}]} 
[2026-03-04 13:34:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5425,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["105|1|","4|1|","48|1|"],"new_items_map_keys":["105|1|","4|1|","48|1|"]} 
[2026-03-04 13:34:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5425,"order_number":"AZS-040326-001"} 
[2026-03-04 13:34:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5425,"order_number":"AZS-040326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-04 13:34:16"} 
[2026-03-04 13:38:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5423,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":4,"price":499,"discount_percent":0,"notes":null,"id":26258},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26259}],"validated_items":[{"id":26258,"menu_item_id":417,"quantity":4,"price":499,"discount_percent":0,"notes":null},{"id":26259,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-04 13:38:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5423,"items_count":2} 
[2026-03-04 13:38:48] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26258,"menu_item_id":417,"quantity":4},{"id":26259,"menu_item_id":5,"quantity":1}]} 
[2026-03-04 13:38:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5423,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["417|4|","5|1|"],"new_items_map_keys":["417|4|","5|1|"]} 
[2026-03-04 13:38:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5423,"order_number":"AZS-040326-006"} 
[2026-03-04 13:38:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5423,"order_number":"AZS-040326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-04 13:38:48"} 
[2026-03-04 13:52:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5425,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26262},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":26263},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":26264}],"validated_items":[{"id":26262,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26263,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"id":26264,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-04 13:52:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5425,"items_count":3} 
[2026-03-04 13:52:38] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26262,"menu_item_id":105,"quantity":1},{"id":26263,"menu_item_id":4,"quantity":1},{"id":26264,"menu_item_id":48,"quantity":1}]} 
[2026-03-04 13:52:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5425,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["105|1|","4|1|","48|1|"],"new_items_map_keys":["105|1|","4|1|","48|1|"]} 
[2026-03-04 13:52:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5425,"order_number":"AZS-040326-001"} 
[2026-03-04 13:52:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5425,"order_number":"AZS-040326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-04 13:52:38"} 
[2026-03-04 13:54:49] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5425,"order_number":"AZS-040326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 13:54:49"} 
[2026-03-04 13:54:49] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5425,"order_number":"AZS-040326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 13:54:49"} 
[2026-03-04 13:54:49] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5425,"order_number":"AZS-040326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 13:54:49"} 
[2026-03-04 13:54:49] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5425,"order_number":"AZS-040326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 13:54:49"} 
[2026-03-04 13:54:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5425,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26262},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":26263},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":26264}],"validated_items":[{"id":26262,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26263,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"id":26264,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-04 13:54:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5425,"items_count":3} 
[2026-03-04 13:54:49] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26262,"menu_item_id":105,"quantity":1},{"id":26263,"menu_item_id":4,"quantity":1},{"id":26264,"menu_item_id":48,"quantity":1}]} 
[2026-03-04 13:54:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5425,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["105|1|","4|1|","48|1|"],"new_items_map_keys":["105|1|","4|1|","48|1|"]} 
[2026-03-04 13:54:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5425,"order_number":"AZS-040326-001"} 
[2026-03-04 13:54:49] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5425,"order_number":"AZS-040326-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-04 13:54:49","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-04 13:54:49"} 
[2026-03-04 13:54:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5425,"order_number":"AZS-040326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-04 13:54:49"} 
[2026-03-04 13:54:49] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5425,"order_number":"AZS-040326-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-04 13:54:49","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-03-04 13:54:49"} 
[2026-03-04 14:05:36] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5423,"order_number":"AZS-040326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2170,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 14:05:36"} 
[2026-03-04 14:05:36] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5423,"order_number":"AZS-040326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2170,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 14:05:36"} 
[2026-03-04 14:05:36] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5423,"order_number":"AZS-040326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2170,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 14:05:36"} 
[2026-03-04 14:05:36] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5423,"order_number":"AZS-040326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2170,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 14:05:36"} 
[2026-03-04 14:05:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5423,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":4,"price":499,"discount_percent":0,"notes":null,"id":26258},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26259}],"validated_items":[{"id":26258,"menu_item_id":417,"quantity":4,"price":499,"discount_percent":0,"notes":null},{"id":26259,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-04 14:05:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5423,"items_count":2} 
[2026-03-04 14:05:36] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26258,"menu_item_id":417,"quantity":4},{"id":26259,"menu_item_id":5,"quantity":1}]} 
[2026-03-04 14:05:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5423,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["417|4|","5|1|"],"new_items_map_keys":["417|4|","5|1|"]} 
[2026-03-04 14:05:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5423,"order_number":"AZS-040326-006"} 
[2026-03-04 14:05:36] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5423,"order_number":"AZS-040326-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2170,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-04 14:05:36","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-04 14:05:36"} 
[2026-03-04 14:05:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5423,"order_number":"AZS-040326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-04 14:05:36"} 
[2026-03-04 14:05:36] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5423,"order_number":"AZS-040326-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2170.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-04 14:05:36","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2170,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2170.00","database_verification_match":true,"timestamp":"2026-03-04 14:05:36"} 
[2026-03-04 14:07:22] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5421,"order_number":"AZS-040326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 14:07:22"} 
[2026-03-04 14:07:22] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5421,"order_number":"AZS-040326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 14:07:22"} 
[2026-03-04 14:07:22] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5421,"order_number":"AZS-040326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 14:07:22"} 
[2026-03-04 14:07:22] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5421,"order_number":"AZS-040326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 14:07:22"} 
[2026-03-04 14:07:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5421,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26254}],"validated_items":[{"id":26254,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-04 14:07:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5421,"items_count":1} 
[2026-03-04 14:07:22] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26254,"menu_item_id":417,"quantity":1}]} 
[2026-03-04 14:07:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5421,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-04 14:07:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5421,"order_number":"AZS-040326-007"} 
[2026-03-04 14:07:22] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5421,"order_number":"AZS-040326-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-04 14:07:22","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-04 14:07:22"} 
[2026-03-04 14:07:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5421,"order_number":"AZS-040326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-04 14:07:22"} 
[2026-03-04 14:07:22] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5421,"order_number":"AZS-040326-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-04 14:07:22","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-04 14:07:22"} 
[2026-03-04 14:14:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5424,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":26260},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":26261},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26260,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":26261,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-04 14:14:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5424,"items_count":3} 
[2026-03-04 14:14:54] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26260,"menu_item_id":114,"quantity":1},{"id":26261,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-04 14:14:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5424,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["114|1|","396|4|"],"new_items_map_keys":["114|1|","396|4|","3|1|"]} 
[2026-03-04 14:14:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5424,"order_number":"AZS-040326-008"} 
[2026-03-04 14:14:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040326-008","replaced_order_id":5424} 
[2026-03-04 14:14:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5427,"items_count":3,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-04 14:14:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5427,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5427}} 
[2026-03-04 14:14:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5427,"item_index":0,"menu_item_id":114} 
[2026-03-04 14:14:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5427,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5427}} 
[2026-03-04 14:14:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5427,"item_index":1,"menu_item_id":396} 
[2026-03-04 14:14:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5427,"item_index":2,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5427}} 
[2026-03-04 14:14:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5427,"item_index":2,"menu_item_id":3} 
[2026-03-04 14:14:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5424,"new_order_id":5427,"order_number":"AZS-040326-008"} 
[2026-03-04 14:29:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5428,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26271},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":26272}],"validated_items":[{"id":26271,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26272,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null}]} 
[2026-03-04 14:29:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5428,"items_count":2} 
[2026-03-04 14:29:11] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26271,"menu_item_id":61,"quantity":1},{"id":26272,"menu_item_id":112,"quantity":1}]} 
[2026-03-04 14:29:11] local.INFO: PosOrderController::update - Item changes check {"order_id":5428,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["61|1|","112|1|"],"new_items_map_keys":["61|1|","112|1|"]} 
[2026-03-04 14:29:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5428,"order_number":"AZS-040326-010"} 
[2026-03-04 14:29:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5428,"order_number":"AZS-040326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-04 14:29:11"} 
[2026-03-04 14:32:58] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5428,"order_number":"AZS-040326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 14:32:58"} 
[2026-03-04 14:32:58] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5428,"order_number":"AZS-040326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 14:32:58"} 
[2026-03-04 14:32:58] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5428,"order_number":"AZS-040326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 14:32:58"} 
[2026-03-04 14:32:58] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5428,"order_number":"AZS-040326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 14:32:58"} 
[2026-03-04 14:32:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5428,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26271},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":26272}],"validated_items":[{"id":26271,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26272,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null}]} 
[2026-03-04 14:32:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5428,"items_count":2} 
[2026-03-04 14:32:58] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26271,"menu_item_id":61,"quantity":1},{"id":26272,"menu_item_id":112,"quantity":1}]} 
[2026-03-04 14:32:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5428,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["61|1|","112|1|"],"new_items_map_keys":["61|1|","112|1|"]} 
[2026-03-04 14:32:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5428,"order_number":"AZS-040326-010"} 
[2026-03-04 14:32:58] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5428,"order_number":"AZS-040326-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-04 14:32:58","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-04 14:32:58"} 
[2026-03-04 14:32:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5428,"order_number":"AZS-040326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-04 14:32:58"} 
[2026-03-04 14:32:58] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5428,"order_number":"AZS-040326-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-04 14:32:58","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-04 14:32:58"} 
[2026-03-04 14:55:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5426,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26265},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":26266},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26267}],"validated_items":[{"id":26265,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26266,"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":26267,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-04 14:55:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5426,"items_count":3} 
[2026-03-04 14:55:29] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26265,"menu_item_id":105,"quantity":1},{"id":26266,"menu_item_id":55,"quantity":1},{"id":26267,"menu_item_id":396,"quantity":1}]} 
[2026-03-04 14:55:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5426,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["105|1|","55|1|","396|1|"],"new_items_map_keys":["105|1|","55|1|","396|1|"]} 
[2026-03-04 14:55:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5426,"order_number":"AZS-040326-009"} 
[2026-03-04 14:55:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5426,"order_number":"AZS-040326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-04 14:55:29"} 
[2026-03-04 14:59:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":5429,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":26274},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":26275},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26276},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26277},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26274,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":26275,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":26276,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26277,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-04 14:59:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5429,"items_count":5} 
[2026-03-04 14:59:33] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[26273],"items":[{"id":26274,"menu_item_id":64,"quantity":1},{"id":26275,"menu_item_id":396,"quantity":2},{"id":26276,"menu_item_id":61,"quantity":1},{"id":26277,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1}]} 
[2026-03-04 14:59:33] local.INFO: PosOrderController::update - Item changes check {"order_id":5429,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["98|1|","64|1|","396|2|","61|1|","56|1|"],"new_items_map_keys":["64|1|","396|2|","61|1|","56|1|","105|1|"]} 
[2026-03-04 14:59:33] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5429,"order_number":"AZS-040326-011"} 
[2026-03-04 14:59:33] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040326-011","replaced_order_id":5429} 
[2026-03-04 14:59:33] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5430,"items_count":5,"items":[{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"}]} 
[2026-03-04 14:59:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5430,"item_index":0,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5430}} 
[2026-03-04 14:59:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5430,"item_index":0,"menu_item_id":64} 
[2026-03-04 14:59:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5430,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5430}} 
[2026-03-04 14:59:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5430,"item_index":1,"menu_item_id":396} 
[2026-03-04 14:59:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5430,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5430}} 
[2026-03-04 14:59:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5430,"item_index":2,"menu_item_id":61} 
[2026-03-04 14:59:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5430,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5430}} 
[2026-03-04 14:59:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5430,"item_index":3,"menu_item_id":56} 
[2026-03-04 14:59:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5430,"item_index":4,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5430}} 
[2026-03-04 14:59:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5430,"item_index":4,"menu_item_id":105} 
[2026-03-04 14:59:33] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5429,"new_order_id":5430,"order_number":"AZS-040326-011"} 
[2026-03-04 14:59:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5430,"item_index":0,"item_id":26274} 
[2026-03-04 14:59:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5430,"item_index":1,"item_id":26275} 
[2026-03-04 14:59:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5430,"item_index":2,"item_id":26276} 
[2026-03-04 14:59:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5430,"item_index":3,"item_id":26277} 
[2026-03-04 14:59:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5430,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":26274},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":26275},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26276},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26277},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-04 14:59:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5430,"items_count":5} 
[2026-03-04 14:59:47] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[26278,26279,26280,26281,26282],"items":[{"id":null,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1}]} 
[2026-03-04 14:59:47] local.INFO: PosOrderController::update - Item changes check {"order_id":5430,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["64|1|","396|2|","61|1|","56|1|","105|1|"],"new_items_map_keys":["64|1|","396|2|","61|1|","56|1|","105|1|"]} 
[2026-03-04 14:59:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5430,"order_number":"AZS-040326-011"} 
[2026-03-04 14:59:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5430,"order_number":"AZS-040326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-04 14:59:47"} 
[2026-03-04 15:03:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5427,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26268},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":26269},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26270}],"validated_items":[{"id":26268,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":26269,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":26270,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-04 15:03:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5427,"items_count":3} 
[2026-03-04 15:03:23] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26268,"menu_item_id":114,"quantity":1},{"id":26269,"menu_item_id":396,"quantity":4},{"id":26270,"menu_item_id":3,"quantity":1}]} 
[2026-03-04 15:03:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5427,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["114|1|","396|4|","3|1|"],"new_items_map_keys":["114|1|","396|4|","3|1|"]} 
[2026-03-04 15:03:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5427,"order_number":"AZS-040326-008"} 
[2026-03-04 15:03:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5427,"order_number":"AZS-040326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-04 15:03:23"} 
[2026-03-04 15:08:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5427,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":26268},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":26269},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":26270},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26268,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":26269,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":26270,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-04 15:08:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5427,"items_count":4} 
[2026-03-04 15:08:18] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26268,"menu_item_id":114,"quantity":1},{"id":26269,"menu_item_id":396,"quantity":4},{"id":26270,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-04 15:08:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5427,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["114|1|","396|4|","3|1|"],"new_items_map_keys":["114|1|","396|4|","3|1|","2|1|"]} 
[2026-03-04 15:08:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5427,"order_number":"AZS-040326-008"} 
[2026-03-04 15:08:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040326-008","replaced_order_id":5427} 
[2026-03-04 15:08:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5431,"items_count":4,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-04 15:08:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5431,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5431}} 
[2026-03-04 15:08:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5431,"item_index":0,"menu_item_id":114} 
[2026-03-04 15:08:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5431,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5431}} 
[2026-03-04 15:08:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5431,"item_index":1,"menu_item_id":396} 
[2026-03-04 15:08:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5431,"item_index":2,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5431}} 
[2026-03-04 15:08:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5431,"item_index":2,"menu_item_id":3} 
[2026-03-04 15:08:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5431,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5431}} 
[2026-03-04 15:08:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5431,"item_index":3,"menu_item_id":2} 
[2026-03-04 15:08:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5427,"new_order_id":5431,"order_number":"AZS-040326-008"} 
[2026-03-04 15:08:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5431,"item_index":0,"item_id":26268} 
[2026-03-04 15:08:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5431,"item_index":1,"item_id":26269} 
[2026-03-04 15:08:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5431,"item_index":2,"item_id":26270} 
[2026-03-04 15:08:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5431,"order_number":"AZS-040326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3250,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 15:08:27"} 
[2026-03-04 15:08:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5431,"order_number":"AZS-040326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3250,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 15:08:27"} 
[2026-03-04 15:08:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5431,"order_number":"AZS-040326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3250,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 15:08:27"} 
[2026-03-04 15:08:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5431,"order_number":"AZS-040326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3250,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 15:08:27"} 
[2026-03-04 15:08:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5431,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26268},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":26269},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26270},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-04 15:08:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5431,"items_count":4} 
[2026-03-04 15:08:27] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[26283,26284,26285,26286],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-04 15:08:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5431,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["114|1|","396|4|","3|1|","2|1|"],"new_items_map_keys":["114|1|","396|4|","3|1|","2|1|"]} 
[2026-03-04 15:08:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5431,"order_number":"AZS-040326-008"} 
[2026-03-04 15:08:27] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5431,"order_number":"AZS-040326-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3250,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-04 15:08:27","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-04 15:08:27"} 
[2026-03-04 15:08:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5431,"order_number":"AZS-040326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-04 15:08:27"} 
[2026-03-04 15:08:27] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5431,"order_number":"AZS-040326-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3250.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-04 15:08:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3250,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3250.00","database_verification_match":true,"timestamp":"2026-03-04 15:08:27"} 
[2026-03-04 15:21:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5426,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":26265},{"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null,"id":26266},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":26267},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26265,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":26266,"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null},{"id":26267,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-04 15:21:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5426,"items_count":4} 
[2026-03-04 15:21:03] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26265,"menu_item_id":105,"quantity":1},{"id":26266,"menu_item_id":55,"quantity":1},{"id":26267,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-04 15:21:03] local.INFO: PosOrderController::update - Item changes check {"order_id":5426,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["105|1|","55|1|","396|1|"],"new_items_map_keys":["105|1|","55|1|","396|1|","2|1|"]} 
[2026-03-04 15:21:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5426,"order_number":"AZS-040326-009"} 
[2026-03-04 15:21:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040326-009","replaced_order_id":5426} 
[2026-03-04 15:21:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5432,"items_count":4,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":55,"quantity":1,"price":"159.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-04 15:21:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5432,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5432}} 
[2026-03-04 15:21:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5432,"item_index":0,"menu_item_id":105} 
[2026-03-04 15:21:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5432,"item_index":1,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5432}} 
[2026-03-04 15:21:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5432,"item_index":1,"menu_item_id":55} 
[2026-03-04 15:21:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5432,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5432}} 
[2026-03-04 15:21:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5432,"item_index":2,"menu_item_id":396} 
[2026-03-04 15:21:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5432,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5432}} 
[2026-03-04 15:21:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5432,"item_index":3,"menu_item_id":2} 
[2026-03-04 15:21:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5426,"new_order_id":5432,"order_number":"AZS-040326-009"} 
[2026-03-04 15:40:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5432,"item_index":0,"item_id":26265} 
[2026-03-04 15:40:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5432,"item_index":1,"item_id":26266} 
[2026-03-04 15:40:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5432,"item_index":2,"item_id":26267} 
[2026-03-04 15:40:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":4,"order_id":5432,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":26265},{"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null,"id":26266},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":26267},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-04 15:40:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5432,"items_count":5} 
[2026-03-04 15:40:51] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":4,"items_to_remove":[26287,26288,26289,26290],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":55,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-04 15:40:51] local.INFO: PosOrderController::update - Item changes check {"order_id":5432,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["105|1|","55|1|","396|1|","2|1|"],"new_items_map_keys":["105|1|","55|1|","396|1|","2|1|","5|1|"]} 
[2026-03-04 15:40:51] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5432,"order_number":"AZS-040326-009"} 
[2026-03-04 15:40:51] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040326-009","replaced_order_id":5432} 
[2026-03-04 15:40:51] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5433,"items_count":5,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":55,"quantity":1,"price":"159.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-04 15:40:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5433,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5433}} 
[2026-03-04 15:40:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5433,"item_index":0,"menu_item_id":105} 
[2026-03-04 15:40:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5433,"item_index":1,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5433}} 
[2026-03-04 15:40:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5433,"item_index":1,"menu_item_id":55} 
[2026-03-04 15:40:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5433,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5433}} 
[2026-03-04 15:40:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5433,"item_index":2,"menu_item_id":396} 
[2026-03-04 15:40:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5433,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5433}} 
[2026-03-04 15:40:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5433,"item_index":3,"menu_item_id":2} 
[2026-03-04 15:40:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5433,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5433}} 
[2026-03-04 15:40:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5433,"item_index":4,"menu_item_id":5} 
[2026-03-04 15:40:51] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5432,"new_order_id":5433,"order_number":"AZS-040326-009"} 
[2026-03-04 15:40:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5433,"item_index":0,"item_id":26265} 
[2026-03-04 15:40:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5433,"item_index":1,"item_id":26266} 
[2026-03-04 15:40:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5433,"item_index":2,"item_id":26267} 
[2026-03-04 15:40:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5433,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26265},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":26266},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26267},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-04 15:40:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5433,"items_count":5} 
[2026-03-04 15:40:59] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[26291,26292,26293,26294,26295],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":55,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-04 15:40:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5433,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","55|1|","396|1|","2|1|","5|1|"],"new_items_map_keys":["105|1|","55|1|","396|1|","2|1|","5|1|"]} 
[2026-03-04 15:40:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5433,"order_number":"AZS-040326-009"} 
[2026-03-04 15:40:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5433,"order_number":"AZS-040326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-04 15:40:59"} 
[2026-03-04 15:41:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5433,"item_index":0,"item_id":26265} 
[2026-03-04 15:41:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5433,"item_index":1,"item_id":26266} 
[2026-03-04 15:41:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5433,"item_index":2,"item_id":26267} 
[2026-03-04 15:41:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":5,"order_id":5433,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26265},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":26266},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26267},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-04 15:41:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5433,"items_count":4} 
[2026-03-04 15:41:50] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":5,"items_to_remove":[26291,26292,26293,26294,26295],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":55,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-04 15:41:50] local.INFO: PosOrderController::update - Item changes check {"order_id":5433,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["105|1|","55|1|","396|1|","2|1|","5|1|"],"new_items_map_keys":["105|1|","55|1|","396|1|","2|1|"]} 
[2026-03-04 15:41:50] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5433,"order_number":"AZS-040326-009"} 
[2026-03-04 15:41:50] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040326-009","replaced_order_id":5433} 
[2026-03-04 15:41:50] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5434,"items_count":4,"items":[{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":55,"quantity":1,"price":159.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":2,"quantity":1,"price":130.0}]} 
[2026-03-04 15:41:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5434,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5434}} 
[2026-03-04 15:41:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5434,"item_index":0,"menu_item_id":105} 
[2026-03-04 15:41:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5434,"item_index":1,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":1,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5434}} 
[2026-03-04 15:41:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5434,"item_index":1,"menu_item_id":55} 
[2026-03-04 15:41:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5434,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5434}} 
[2026-03-04 15:41:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5434,"item_index":2,"menu_item_id":396} 
[2026-03-04 15:41:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5434,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5434}} 
[2026-03-04 15:41:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5434,"item_index":3,"menu_item_id":2} 
[2026-03-04 15:41:50] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5433,"new_order_id":5434,"order_number":"AZS-040326-009"} 
[2026-03-04 15:41:58] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5434,"item_index":0,"item_id":26265} 
[2026-03-04 15:41:58] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5434,"item_index":1,"item_id":26266} 
[2026-03-04 15:41:58] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5434,"item_index":2,"item_id":26267} 
[2026-03-04 15:41:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5434,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26265},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":26266},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26267},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-04 15:41:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5434,"items_count":4} 
[2026-03-04 15:41:58] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[26296,26297,26298,26299],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":55,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-04 15:41:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5434,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["105|1|","55|1|","396|1|","2|1|"],"new_items_map_keys":["105|1|","55|1|","396|1|","2|1|"]} 
[2026-03-04 15:41:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5434,"order_number":"AZS-040326-009"} 
[2026-03-04 15:41:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5434,"order_number":"AZS-040326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-04 15:41:58"} 
[2026-03-04 15:43:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5434,"item_index":0,"item_id":26265} 
[2026-03-04 15:43:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5434,"item_index":1,"item_id":26266} 
[2026-03-04 15:43:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5434,"item_index":2,"item_id":26267} 
[2026-03-04 15:43:47] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5434,"order_number":"AZS-040326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 15:43:47"} 
[2026-03-04 15:43:47] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5434,"order_number":"AZS-040326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 15:43:47"} 
[2026-03-04 15:43:47] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5434,"order_number":"AZS-040326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 15:43:47"} 
[2026-03-04 15:43:47] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5434,"order_number":"AZS-040326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 15:43:47"} 
[2026-03-04 15:43:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5434,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26265},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":26266},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26267},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-04 15:43:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5434,"items_count":4} 
[2026-03-04 15:43:47] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[26296,26297,26298,26299],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":55,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-04 15:43:47] local.INFO: PosOrderController::update - Item changes check {"order_id":5434,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["105|1|","55|1|","396|1|","2|1|"],"new_items_map_keys":["105|1|","55|1|","396|1|","2|1|"]} 
[2026-03-04 15:43:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5434,"order_number":"AZS-040326-009"} 
[2026-03-04 15:43:47] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5434,"order_number":"AZS-040326-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-04 15:43:47","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-04 15:43:47"} 
[2026-03-04 15:43:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5434,"order_number":"AZS-040326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-04 15:43:47"} 
[2026-03-04 15:43:47] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5434,"order_number":"AZS-040326-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-04 15:43:47","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-03-04 15:43:47"} 
[2026-03-04 16:01:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5430,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":26278},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":26279},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26280},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26281},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":26282},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26278,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":26279,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":26280,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26281,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26282,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-04 16:01:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5430,"items_count":7} 
[2026-03-04 16:01:09] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26278,"menu_item_id":64,"quantity":1},{"id":26279,"menu_item_id":396,"quantity":2},{"id":26280,"menu_item_id":61,"quantity":1},{"id":26281,"menu_item_id":56,"quantity":1},{"id":26282,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-04 16:01:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5430,"has_item_changes":true,"old_items_count":5,"new_items_count":7,"old_items_map_keys":["64|1|","396|2|","61|1|","56|1|","105|1|"],"new_items_map_keys":["64|1|","396|2|","61|1|","56|1|","105|1|","2|1|","5|1|"]} 
[2026-03-04 16:01:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5430,"order_number":"AZS-040326-011"} 
[2026-03-04 16:01:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040326-011","replaced_order_id":5430} 
[2026-03-04 16:01:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5436,"items_count":7,"items":[{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-04 16:01:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5436,"item_index":0,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5436}} 
[2026-03-04 16:01:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5436,"item_index":0,"menu_item_id":64} 
[2026-03-04 16:01:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5436,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5436}} 
[2026-03-04 16:01:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5436,"item_index":1,"menu_item_id":396} 
[2026-03-04 16:01:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5436,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5436}} 
[2026-03-04 16:01:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5436,"item_index":2,"menu_item_id":61} 
[2026-03-04 16:01:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5436,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5436}} 
[2026-03-04 16:01:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5436,"item_index":3,"menu_item_id":56} 
[2026-03-04 16:01:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5436,"item_index":4,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5436}} 
[2026-03-04 16:01:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5436,"item_index":4,"menu_item_id":105} 
[2026-03-04 16:01:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5436,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5436}} 
[2026-03-04 16:01:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5436,"item_index":5,"menu_item_id":2} 
[2026-03-04 16:01:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5436,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5436}} 
[2026-03-04 16:01:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5436,"item_index":6,"menu_item_id":5} 
[2026-03-04 16:01:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5430,"new_order_id":5436,"order_number":"AZS-040326-011"} 
[2026-03-04 16:05:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T04:05:54.901Z","date_to":"2026-03-04T16:05:54.901Z","per_page":"100"} 
[2026-03-04 16:05:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","pending","pending","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":11,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-04 16:05:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T04:05:54.891Z","date_to":"2026-03-04T16:05:54.891Z","per_page":"100"} 
[2026-03-04 16:05:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","pending","pending","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":11,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-04 16:05:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T04:05:54.891Z","date_to":"2026-03-04T16:05:54.891Z","per_page":"100"} 
[2026-03-04 16:05:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","pending","pending","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":11,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-04 16:09:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5436,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":26301},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26302},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26303},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26304},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26305},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26306},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26307}],"validated_items":[{"id":26301,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":26302,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26303,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26304,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26305,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26306,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":26307,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-04 16:09:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5436,"items_count":7} 
[2026-03-04 16:09:37] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26301,"menu_item_id":64,"quantity":1},{"id":26302,"menu_item_id":396,"quantity":2},{"id":26303,"menu_item_id":61,"quantity":1},{"id":26304,"menu_item_id":56,"quantity":1},{"id":26305,"menu_item_id":105,"quantity":1},{"id":26306,"menu_item_id":2,"quantity":1},{"id":26307,"menu_item_id":5,"quantity":1}]} 
[2026-03-04 16:09:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5436,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["64|1|","396|2|","61|1|","56|1|","105|1|","2|1|","5|1|"],"new_items_map_keys":["64|1|","396|2|","61|1|","56|1|","105|1|","2|1|","5|1|"]} 
[2026-03-04 16:09:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5436,"order_number":"AZS-040326-011"} 
[2026-03-04 16:09:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5436,"order_number":"AZS-040326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-04 16:09:37"} 
[2026-03-04 16:10:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":5437,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null,"id":26309},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26310},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26311},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":26312},{"menu_item_id":286,"quantity":1,"discount_percent":0,"notes":null,"id":26313},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26309,"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null},{"id":26310,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26311,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26312,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":26313,"menu_item_id":286,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-04 16:10:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5437,"items_count":6} 
[2026-03-04 16:10:00] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[26308],"items":[{"id":26309,"menu_item_id":51,"quantity":1},{"id":26310,"menu_item_id":61,"quantity":1},{"id":26311,"menu_item_id":56,"quantity":1},{"id":26312,"menu_item_id":2,"quantity":1},{"id":26313,"menu_item_id":286,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1}]} 
[2026-03-04 16:10:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5437,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","51|1|","61|1|","56|1|","2|1|","286|1|"],"new_items_map_keys":["51|1|","61|1|","56|1|","2|1|","286|1|","105|1|"]} 
[2026-03-04 16:10:00] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5437,"order_number":"AZS-040326-013"} 
[2026-03-04 16:10:00] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040326-013","replaced_order_id":5437} 
[2026-03-04 16:10:00] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5438,"items_count":6,"items":[{"menu_item_id":51,"quantity":1,"price":"199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":286,"quantity":1,"price":"15.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"}]} 
[2026-03-04 16:10:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5438,"item_index":0,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5438}} 
[2026-03-04 16:10:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5438,"item_index":0,"menu_item_id":51} 
[2026-03-04 16:10:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5438,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5438}} 
[2026-03-04 16:10:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5438,"item_index":1,"menu_item_id":61} 
[2026-03-04 16:10:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5438,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5438}} 
[2026-03-04 16:10:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5438,"item_index":2,"menu_item_id":56} 
[2026-03-04 16:10:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5438,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5438}} 
[2026-03-04 16:10:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5438,"item_index":3,"menu_item_id":2} 
[2026-03-04 16:10:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5438,"item_index":4,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":1,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":15.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5438}} 
[2026-03-04 16:10:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5438,"item_index":4,"menu_item_id":286} 
[2026-03-04 16:10:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5438,"item_index":5,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5438}} 
[2026-03-04 16:10:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5438,"item_index":5,"menu_item_id":105} 
[2026-03-04 16:10:00] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5437,"new_order_id":5438,"order_number":"AZS-040326-013"} 
[2026-03-04 16:11:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5438,"item_index":0,"item_id":26309} 
[2026-03-04 16:11:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5438,"item_index":1,"item_id":26310} 
[2026-03-04 16:11:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5438,"item_index":2,"item_id":26311} 
[2026-03-04 16:11:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5438,"item_index":3,"item_id":26312} 
[2026-03-04 16:11:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5438,"item_index":4,"item_id":26313} 
[2026-03-04 16:11:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5438,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null,"id":26309},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26310},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26311},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":26312},{"menu_item_id":286,"quantity":1,"discount_percent":0,"notes":null,"id":26313},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-04 16:11:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5438,"items_count":6} 
[2026-03-04 16:11:03] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[26314,26315,26316,26317,26318,26319],"items":[{"id":null,"menu_item_id":51,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":286,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1}]} 
[2026-03-04 16:11:03] local.INFO: PosOrderController::update - Item changes check {"order_id":5438,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["51|1|","61|1|","56|1|","2|1|","286|1|","105|1|"],"new_items_map_keys":["51|1|","61|1|","56|1|","2|1|","286|1|","105|1|"]} 
[2026-03-04 16:11:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5438,"order_number":"AZS-040326-013"} 
[2026-03-04 16:11:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5438,"order_number":"AZS-040326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-03-04 16:11:03"} 
[2026-03-04 16:12:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T04:12:43.044Z","date_to":"2026-03-04T16:12:43.044Z","per_page":"100"} 
[2026-03-04 16:12:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","pending","pending","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":12,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-04 16:12:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T04:12:43.063Z","date_to":"2026-03-04T16:12:43.063Z","per_page":"100"} 
[2026-03-04 16:12:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","pending","pending","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":12,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-04 16:13:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T04:12:43.044Z","date_to":"2026-03-04T16:12:43.044Z","per_page":"100"} 
[2026-03-04 16:13:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","pending","pending","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":12,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-04 16:21:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5435,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null,"id":26300},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26300,"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-04 16:21:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5435,"items_count":2} 
[2026-03-04 16:21:49] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26300,"menu_item_id":393,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-04 16:21:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5435,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["393|1|"],"new_items_map_keys":["393|1|","5|1|"]} 
[2026-03-04 16:21:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5435,"order_number":"AZS-040326-012"} 
[2026-03-04 16:21:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040326-012","replaced_order_id":5435} 
[2026-03-04 16:21:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5439,"items_count":2,"items":[{"menu_item_id":393,"quantity":1,"price":"499.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-04 16:21:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5439,"item_index":0,"item_data":{"menu_item_id":393,"restaurant_category_id":35,"restaurant_category_name":"ROCK N ROLL","item_name":"Chicken Shawarma","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5439}} 
[2026-03-04 16:21:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5439,"item_index":0,"menu_item_id":393} 
[2026-03-04 16:21:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5439,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5439}} 
[2026-03-04 16:21:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5439,"item_index":1,"menu_item_id":5} 
[2026-03-04 16:21:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5435,"new_order_id":5439,"order_number":"AZS-040326-012"} 
[2026-03-04 16:21:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5439,"item_index":0,"item_id":26300} 
[2026-03-04 16:21:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":5439,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26300},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-04 16:21:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5439,"items_count":2} 
[2026-03-04 16:21:59] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[26320,26321],"items":[{"id":null,"menu_item_id":393,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-04 16:21:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5439,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["393|1|","5|1|"],"new_items_map_keys":["393|1|","5|1|"]} 
[2026-03-04 16:21:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5439,"order_number":"AZS-040326-012"} 
[2026-03-04 16:21:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5439,"order_number":"AZS-040326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-04 16:21:59"} 
[2026-03-04 16:23:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T04:23:05.586Z","date_to":"2026-03-04T16:23:05.586Z","per_page":"100"} 
[2026-03-04 16:23:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","pending","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":13,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-04 16:23:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T04:23:05.580Z","date_to":"2026-03-04T16:23:05.580Z","per_page":"100"} 
[2026-03-04 16:23:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","pending","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":13,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-04 16:23:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T04:23:05.580Z","date_to":"2026-03-04T16:23:05.580Z","per_page":"100"} 
[2026-03-04 16:23:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","pending","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":13,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-04 16:23:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T04:23:05.580Z","date_to":"2026-03-04T16:23:05.580Z","per_page":"100"} 
[2026-03-04 16:23:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","pending","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":13,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-04 16:23:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T04:23:05.580Z","date_to":"2026-03-04T16:23:05.580Z","per_page":"100"} 
[2026-03-04 16:23:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","pending","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":13,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-04 17:20:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T05:20:47.818Z","date_to":"2026-03-04T17:20:47.818Z","per_page":"100"} 
[2026-03-04 17:20:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","pending","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":13,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-04 17:20:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T05:20:47.841Z","date_to":"2026-03-04T17:20:47.841Z","per_page":"100"} 
[2026-03-04 17:20:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","pending","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":13,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-04 17:20:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T05:20:47.818Z","date_to":"2026-03-04T17:20:47.818Z","per_page":"100"} 
[2026-03-04 17:20:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","pending","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":13,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-04 17:21:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5438,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null,"id":26314},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26315},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26316},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":26317},{"menu_item_id":286,"quantity":1,"discount_percent":0,"notes":null,"id":26318},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":26319},{"menu_item_id":136,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26314,"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null},{"id":26315,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26316,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26317,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":26318,"menu_item_id":286,"quantity":1,"discount_percent":0,"notes":null},{"id":26319,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":136,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-04 17:21:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5438,"items_count":7} 
[2026-03-04 17:21:27] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26314,"menu_item_id":51,"quantity":1},{"id":26315,"menu_item_id":61,"quantity":1},{"id":26316,"menu_item_id":56,"quantity":1},{"id":26317,"menu_item_id":2,"quantity":1},{"id":26318,"menu_item_id":286,"quantity":1},{"id":26319,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":136,"quantity":1}]} 
[2026-03-04 17:21:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5438,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["51|1|","61|1|","56|1|","2|1|","286|1|","105|1|"],"new_items_map_keys":["51|1|","61|1|","56|1|","2|1|","286|1|","105|1|","136|1|"]} 
[2026-03-04 17:21:27] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5438,"order_number":"AZS-040326-013"} 
[2026-03-04 17:21:27] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040326-013","replaced_order_id":5438} 
[2026-03-04 17:21:27] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5440,"items_count":7,"items":[{"menu_item_id":51,"quantity":1,"price":"199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":286,"quantity":1,"price":"15.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":136,"quantity":1,"price":"899.00"}]} 
[2026-03-04 17:21:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5440,"item_index":0,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5440}} 
[2026-03-04 17:21:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5440,"item_index":0,"menu_item_id":51} 
[2026-03-04 17:21:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5440,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5440}} 
[2026-03-04 17:21:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5440,"item_index":1,"menu_item_id":61} 
[2026-03-04 17:21:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5440,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5440}} 
[2026-03-04 17:21:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5440,"item_index":2,"menu_item_id":56} 
[2026-03-04 17:21:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5440,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5440}} 
[2026-03-04 17:21:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5440,"item_index":3,"menu_item_id":2} 
[2026-03-04 17:21:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5440,"item_index":4,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":1,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":15.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5440}} 
[2026-03-04 17:21:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5440,"item_index":4,"menu_item_id":286} 
[2026-03-04 17:21:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5440,"item_index":5,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5440}} 
[2026-03-04 17:21:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5440,"item_index":5,"menu_item_id":105} 
[2026-03-04 17:21:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5440,"item_index":6,"item_data":{"menu_item_id":136,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Small","quantity":1,"price":"899.00","discount_percent":0.0,"discount_amount":0.0,"total":899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5440}} 
[2026-03-04 17:21:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5440,"item_index":6,"menu_item_id":136} 
[2026-03-04 17:21:27] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5438,"new_order_id":5440,"order_number":"AZS-040326-013"} 
[2026-03-04 17:46:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T05:46:42.881Z","date_to":"2026-03-04T17:46:42.881Z","per_page":"100"} 
[2026-03-04 17:46:45] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","changed","pending","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":14,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-04 17:46:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T05:46:42.865Z","date_to":"2026-03-04T17:46:42.865Z","per_page":"100"} 
[2026-03-04 17:46:45] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","changed","pending","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":14,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-04 17:46:46] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T05:46:42.865Z","date_to":"2026-03-04T17:46:42.865Z","per_page":"100"} 
[2026-03-04 17:46:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","changed","pending","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":14,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-04 17:47:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5436,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":26301},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26302},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26303},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26304},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26305},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26306},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26307}],"validated_items":[{"id":26301,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":26302,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26303,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26304,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26305,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26306,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":26307,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-04 17:47:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5436,"items_count":7} 
[2026-03-04 17:47:30] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26301,"menu_item_id":64,"quantity":1},{"id":26302,"menu_item_id":396,"quantity":2},{"id":26303,"menu_item_id":61,"quantity":1},{"id":26304,"menu_item_id":56,"quantity":1},{"id":26305,"menu_item_id":105,"quantity":1},{"id":26306,"menu_item_id":2,"quantity":1},{"id":26307,"menu_item_id":5,"quantity":1}]} 
[2026-03-04 17:47:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5436,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["64|1|","396|2|","61|1|","56|1|","105|1|","2|1|","5|1|"],"new_items_map_keys":["64|1|","396|2|","61|1|","56|1|","105|1|","2|1|","5|1|"]} 
[2026-03-04 17:47:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5436,"order_number":"AZS-040326-011"} 
[2026-03-04 17:47:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5436,"order_number":"AZS-040326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-04 17:47:30"} 
[2026-03-04 17:48:05] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5436,"order_number":"AZS-040326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 17:48:05"} 
[2026-03-04 17:48:05] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5436,"order_number":"AZS-040326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 17:48:05"} 
[2026-03-04 17:48:05] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5436,"order_number":"AZS-040326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 17:48:05"} 
[2026-03-04 17:48:05] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5436,"order_number":"AZS-040326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 17:48:05"} 
[2026-03-04 17:48:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":2,"order_id":5436,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":26301},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26302},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26305},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26306},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26307}],"validated_items":[{"id":26301,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":26302,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26305,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26306,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":26307,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-04 17:48:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5436,"items_count":5} 
[2026-03-04 17:48:05] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":2,"items_to_remove":[26303,26304],"items":[{"id":26301,"menu_item_id":64,"quantity":1},{"id":26302,"menu_item_id":396,"quantity":2},{"id":26305,"menu_item_id":105,"quantity":1},{"id":26306,"menu_item_id":2,"quantity":1},{"id":26307,"menu_item_id":5,"quantity":1}]} 
[2026-03-04 17:48:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5436,"has_item_changes":true,"old_items_count":7,"new_items_count":5,"old_items_map_keys":["64|1|","396|2|","61|1|","56|1|","105|1|","2|1|","5|1|"],"new_items_map_keys":["64|1|","396|2|","105|1|","2|1|","5|1|"]} 
[2026-03-04 17:48:05] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5436,"order_number":"AZS-040326-011","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":4000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-04 17:48:05","original_payment_amount":"0.00","grand_total":3696.0,"timestamp":"2026-03-04 17:48:05"} 
[2026-03-04 17:48:05] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5436,"order_number":"AZS-040326-011"} 
[2026-03-04 17:48:05] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040326-011","replaced_order_id":5436} 
[2026-03-04 17:48:05] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5436,"new_order_id":5441,"order_number":"AZS-040326-011","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"4000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-04 17:48:05","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-04 17:48:05"} 
[2026-03-04 17:48:05] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5441,"items_count":5,"items":[{"menu_item_id":64,"quantity":1,"price":999.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":2,"quantity":1,"price":130.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-03-04 17:48:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5441,"item_index":0,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":999.0,"discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5441}} 
[2026-03-04 17:48:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5441,"item_index":0,"menu_item_id":64} 
[2026-03-04 17:48:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5441,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5441}} 
[2026-03-04 17:48:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5441,"item_index":1,"menu_item_id":396} 
[2026-03-04 17:48:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5441,"item_index":2,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5441}} 
[2026-03-04 17:48:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5441,"item_index":2,"menu_item_id":105} 
[2026-03-04 17:48:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5441,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5441}} 
[2026-03-04 17:48:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5441,"item_index":3,"menu_item_id":2} 
[2026-03-04 17:48:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5441,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5441}} 
[2026-03-04 17:48:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5441,"item_index":4,"menu_item_id":5} 
[2026-03-04 17:48:05] local.ERROR: Error tracking recipe usage for order 5441: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5441, 105, 196, 1, 500, 0.00, Order #AZS-040326-011 - 1x Mutton Shinwari - Half, 2026-03-04 17:48:05, 2026-03-04 17:48:05))  
[2026-03-04 17:48:05] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5436,"new_order_id":5441,"order_number":"AZS-040326-011"} 
[2026-03-04 17:48:05] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5436,"new_order_id":5441,"order_number":"AZS-040326-011","route":"api/orders/5436"} 
[2026-03-04 17:48:53] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5439,"order_number":"AZS-040326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":702,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 17:48:53"} 
[2026-03-04 17:48:53] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5439,"order_number":"AZS-040326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":702,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 17:48:53"} 
[2026-03-04 17:48:53] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5439,"order_number":"AZS-040326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":702,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 17:48:53"} 
[2026-03-04 17:48:53] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5439,"order_number":"AZS-040326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":702,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 17:48:53"} 
[2026-03-04 17:48:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5439,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26320},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26321}],"validated_items":[{"id":26320,"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":26321,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-04 17:48:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5439,"items_count":2} 
[2026-03-04 17:48:53] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26320,"menu_item_id":393,"quantity":1},{"id":26321,"menu_item_id":5,"quantity":1}]} 
[2026-03-04 17:48:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5439,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["393|1|","5|1|"],"new_items_map_keys":["393|1|","5|1|"]} 
[2026-03-04 17:48:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5439,"order_number":"AZS-040326-012"} 
[2026-03-04 17:48:53] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5439,"order_number":"AZS-040326-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":702,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-04 17:48:53","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-04 17:48:53"} 
[2026-03-04 17:48:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5439,"order_number":"AZS-040326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-04 17:48:53"} 
[2026-03-04 17:48:53] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5439,"order_number":"AZS-040326-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"702.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-04 17:48:53","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":702,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"702.00","database_verification_match":true,"timestamp":"2026-03-04 17:48:53"} 
[2026-03-04 17:49:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T05:49:36.199Z","date_to":"2026-03-04T17:49:36.199Z","per_page":"100"} 
[2026-03-04 17:49:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T05:49:36.221Z","date_to":"2026-03-04T17:49:36.221Z","per_page":"100"} 
[2026-03-04 17:49:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":15,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-04 17:49:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":15,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-04 17:49:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T05:49:36.199Z","date_to":"2026-03-04T17:49:36.199Z","per_page":"100"} 
[2026-03-04 17:49:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":15,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-04 18:13:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T06:13:19.425Z","date_to":"2026-03-04T18:13:19.425Z","per_page":"100"} 
[2026-03-04 18:13:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":15,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-04 18:13:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T06:13:19.406Z","date_to":"2026-03-04T18:13:19.406Z","per_page":"100"} 
[2026-03-04 18:13:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":15,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-04 18:13:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T06:13:19.406Z","date_to":"2026-03-04T18:13:19.406Z","per_page":"100"} 
[2026-03-04 18:13:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":15,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-04 18:20:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T06:20:07.214Z","date_to":"2026-03-04T18:20:07.214Z","per_page":"100"} 
[2026-03-04 18:20:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T06:20:07.233Z","date_to":"2026-03-04T18:20:07.233Z","per_page":"100"} 
[2026-03-04 18:20:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":15,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-04 18:20:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":15,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-04 18:20:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T06:20:07.214Z","date_to":"2026-03-04T18:20:07.214Z","per_page":"100"} 
[2026-03-04 18:20:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":15,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-04 18:38:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T06:38:07.077Z","date_to":"2026-03-04T18:38:07.077Z","per_page":"100"} 
[2026-03-04 18:38:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T06:38:07.087Z","date_to":"2026-03-04T18:38:07.087Z","per_page":"100"} 
[2026-03-04 18:38:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":15,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-04 18:38:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":15,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-04 18:38:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T06:38:07.077Z","date_to":"2026-03-04T18:38:07.077Z","per_page":"100"} 
[2026-03-04 18:38:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":15,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-04 20:31:34] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5442,"order_number":"AZS-040326-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 20:31:34"} 
[2026-03-04 20:31:34] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5442,"order_number":"AZS-040326-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 20:31:34"} 
[2026-03-04 20:31:34] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5442,"order_number":"AZS-040326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 20:31:34"} 
[2026-03-04 20:31:34] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5442,"order_number":"AZS-040326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 20:31:34"} 
[2026-03-04 20:31:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5442,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":26334}],"validated_items":[{"id":26334,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null}]} 
[2026-03-04 20:31:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5442,"items_count":1} 
[2026-03-04 20:31:34] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26334,"menu_item_id":85,"quantity":1}]} 
[2026-03-04 20:31:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5442,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["85|1|"],"new_items_map_keys":["85|1|"]} 
[2026-03-04 20:31:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5442,"order_number":"AZS-040326-014"} 
[2026-03-04 20:31:34] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5442,"order_number":"AZS-040326-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-04 20:31:34","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-04 20:31:34"} 
[2026-03-04 20:31:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5442,"order_number":"AZS-040326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-04 20:31:34"} 
[2026-03-04 20:31:34] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5442,"order_number":"AZS-040326-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-04 20:31:34","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-04 20:31:34"} 
[2026-03-04 22:25:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T10:25:09.960Z","date_to":"2026-03-04T22:25:09.960Z","per_page":"100"} 
[2026-03-04 22:25:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-015","AZS-040326-014","AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","paid","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":15,"paid_count":13,"unpaid_count":2,"unique_order_numbers":15} 
[2026-03-04 22:25:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T10:25:09.975Z","date_to":"2026-03-04T22:25:09.975Z","per_page":"100"} 
[2026-03-04 22:25:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-015","AZS-040326-014","AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","paid","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":15,"paid_count":13,"unpaid_count":2,"unique_order_numbers":15} 
[2026-03-04 22:25:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T10:25:09.960Z","date_to":"2026-03-04T22:25:09.960Z","per_page":"100"} 
[2026-03-04 22:25:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-015","AZS-040326-014","AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","paid","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":15,"paid_count":13,"unpaid_count":2,"unique_order_numbers":15} 
[2026-03-04 22:25:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5443,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null,"id":26335},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26336}],"validated_items":[{"id":26335,"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null},{"id":26336,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-04 22:25:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5443,"items_count":2} 
[2026-03-04 22:25:34] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26335,"menu_item_id":411,"quantity":3},{"id":26336,"menu_item_id":5,"quantity":1}]} 
[2026-03-04 22:25:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5443,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|3|","5|1|"],"new_items_map_keys":["411|3|","5|1|"]} 
[2026-03-04 22:25:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5443,"order_number":"AZS-040326-015"} 
[2026-03-04 22:25:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5443,"order_number":"AZS-040326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-04 22:25:34"} 
[2026-03-04 22:25:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T10:25:38.433Z","date_to":"2026-03-04T22:25:38.433Z","per_page":"100"} 
[2026-03-04 22:25:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-015","AZS-040326-014","AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","paid","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":15,"paid_count":13,"unpaid_count":2,"unique_order_numbers":15} 
[2026-03-04 22:25:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T10:25:38.451Z","date_to":"2026-03-04T22:25:38.451Z","per_page":"100"} 
[2026-03-04 22:25:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-015","AZS-040326-014","AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","paid","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":15,"paid_count":13,"unpaid_count":2,"unique_order_numbers":15} 
[2026-03-04 22:25:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T10:25:38.433Z","date_to":"2026-03-04T22:25:38.433Z","per_page":"100"} 
[2026-03-04 22:25:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-015","AZS-040326-014","AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","paid","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":15,"paid_count":13,"unpaid_count":2,"unique_order_numbers":15} 
[2026-03-04 22:35:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5443,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null,"id":26335},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26336},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26335,"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null},{"id":26336,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-04 22:35:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5443,"items_count":4} 
[2026-03-04 22:35:46] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26335,"menu_item_id":411,"quantity":3},{"id":26336,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":412,"quantity":1}]} 
[2026-03-04 22:35:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5443,"has_item_changes":true,"old_items_count":2,"new_items_count":4,"old_items_map_keys":["411|3|","5|1|"],"new_items_map_keys":["411|3|","5|1|","2|1|","412|1|"]} 
[2026-03-04 22:35:46] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5443,"order_number":"AZS-040326-015"} 
[2026-03-04 22:35:46] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040326-015","replaced_order_id":5443} 
[2026-03-04 22:35:46] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5445,"items_count":4,"items":[{"menu_item_id":411,"quantity":3,"price":"599.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":412,"quantity":1,"price":"220.00"}]} 
[2026-03-04 22:35:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5445,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":3,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1797.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5445}} 
[2026-03-04 22:35:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5445,"item_index":0,"menu_item_id":411} 
[2026-03-04 22:35:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5445,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5445}} 
[2026-03-04 22:35:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5445,"item_index":1,"menu_item_id":5} 
[2026-03-04 22:35:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5445,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5445}} 
[2026-03-04 22:35:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5445,"item_index":2,"menu_item_id":2} 
[2026-03-04 22:35:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5445,"item_index":3,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":1,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":220.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5445}} 
[2026-03-04 22:35:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5445,"item_index":3,"menu_item_id":412} 
[2026-03-04 22:35:46] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5443,"new_order_id":5445,"order_number":"AZS-040326-015"} 
[2026-03-04 22:43:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5445,"item_index":0,"item_id":26335} 
[2026-03-04 22:43:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5445,"item_index":1,"item_id":26336} 
[2026-03-04 22:43:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5445,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"price":599,"discount_percent":0,"notes":null,"id":26335},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26336},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":3,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-04 22:43:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5445,"items_count":4} 
[2026-03-04 22:43:49] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[26339,26340,26341,26342],"items":[{"id":null,"menu_item_id":411,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":412,"quantity":1}]} 
[2026-03-04 22:43:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5445,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|3|","5|1|","2|1|","412|1|"],"new_items_map_keys":["411|3|","5|1|","2|1|","412|1|"]} 
[2026-03-04 22:43:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5445,"order_number":"AZS-040326-015"} 
[2026-03-04 22:43:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5445,"order_number":"AZS-040326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-04 22:43:49"} 
[2026-03-04 22:47:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5444,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null,"id":26337},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26338},{"menu_item_id":416,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":26337,"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null},{"id":26338,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-04 22:47:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5444,"items_count":3} 
[2026-03-04 22:47:31] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26337,"menu_item_id":411,"quantity":4},{"id":26338,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":416,"quantity":3}]} 
[2026-03-04 22:47:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5444,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["411|4|","5|1|"],"new_items_map_keys":["411|4|","5|1|","416|3|"]} 
[2026-03-04 22:47:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5444,"order_number":"AZS-040326-016"} 
[2026-03-04 22:47:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040326-016","replaced_order_id":5444} 
[2026-03-04 22:47:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5446,"items_count":3,"items":[{"menu_item_id":411,"quantity":4,"price":"599.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":416,"quantity":3,"price":"70.00"}]} 
[2026-03-04 22:47:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5446,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":4,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":2396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5446}} 
[2026-03-04 22:47:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5446,"item_index":0,"menu_item_id":411} 
[2026-03-04 22:47:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5446,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5446}} 
[2026-03-04 22:47:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5446,"item_index":1,"menu_item_id":5} 
[2026-03-04 22:47:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5446,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5446}} 
[2026-03-04 22:47:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5446,"item_index":2,"menu_item_id":416} 
[2026-03-04 22:47:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5444,"new_order_id":5446,"order_number":"AZS-040326-016"} 
[2026-03-04 22:48:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5446,"item_index":0,"item_id":26337} 
[2026-03-04 22:48:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5446,"item_index":1,"item_id":26338} 
[2026-03-04 22:48:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":3,"order_id":5446,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null,"id":26337},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26338},{"menu_item_id":416,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-04 22:48:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5446,"items_count":4} 
[2026-03-04 22:48:57] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":3,"items_to_remove":[26343,26344,26345],"items":[{"id":null,"menu_item_id":411,"quantity":4},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":416,"quantity":3},{"id":null,"menu_item_id":50,"quantity":3}]} 
[2026-03-04 22:48:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5446,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["411|4|","5|1|","416|3|"],"new_items_map_keys":["411|4|","5|1|","416|3|","50|3|"]} 
[2026-03-04 22:48:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5446,"order_number":"AZS-040326-016"} 
[2026-03-04 22:48:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040326-016","replaced_order_id":5446} 
[2026-03-04 22:48:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5447,"items_count":4,"items":[{"menu_item_id":411,"quantity":4,"price":"599.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":416,"quantity":3,"price":"70.00"},{"menu_item_id":50,"quantity":3,"price":"129.00"}]} 
[2026-03-04 22:48:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5447,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":4,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":2396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5447}} 
[2026-03-04 22:48:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5447,"item_index":0,"menu_item_id":411} 
[2026-03-04 22:48:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5447,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5447}} 
[2026-03-04 22:48:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5447,"item_index":1,"menu_item_id":5} 
[2026-03-04 22:48:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5447,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5447}} 
[2026-03-04 22:48:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5447,"item_index":2,"menu_item_id":416} 
[2026-03-04 22:48:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5447,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5447}} 
[2026-03-04 22:48:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5447,"item_index":3,"menu_item_id":50} 
[2026-03-04 22:48:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5446,"new_order_id":5447,"order_number":"AZS-040326-016"} 
[2026-03-04 22:54:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5447,"item_index":0,"item_id":26337} 
[2026-03-04 22:54:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5447,"item_index":1,"item_id":26338} 
[2026-03-04 22:54:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5447,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null,"id":26337},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26338},{"menu_item_id":416,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-04 22:54:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5447,"items_count":4} 
[2026-03-04 22:54:26] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[26346,26347,26348,26349],"items":[{"id":null,"menu_item_id":411,"quantity":4},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":416,"quantity":5},{"id":null,"menu_item_id":50,"quantity":3}]} 
[2026-03-04 22:54:26] local.INFO: PosOrderController::update - Item changes check {"order_id":5447,"has_item_changes":true,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|4|","5|1|","416|3|","50|3|"],"new_items_map_keys":["411|4|","5|1|","416|5|","50|3|"]} 
[2026-03-04 22:54:26] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5447,"order_number":"AZS-040326-016"} 
[2026-03-04 22:54:26] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040326-016","replaced_order_id":5447} 
[2026-03-04 22:54:26] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5448,"items_count":4,"items":[{"menu_item_id":411,"quantity":4,"price":"599.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":416,"quantity":5,"price":"70.00"},{"menu_item_id":50,"quantity":3,"price":"129.00"}]} 
[2026-03-04 22:54:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5448,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":4,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":2396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5448}} 
[2026-03-04 22:54:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5448,"item_index":0,"menu_item_id":411} 
[2026-03-04 22:54:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5448,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5448}} 
[2026-03-04 22:54:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5448,"item_index":1,"menu_item_id":5} 
[2026-03-04 22:54:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5448,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":5,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":350.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5448}} 
[2026-03-04 22:54:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5448,"item_index":2,"menu_item_id":416} 
[2026-03-04 22:54:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5448,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5448}} 
[2026-03-04 22:54:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5448,"item_index":3,"menu_item_id":50} 
[2026-03-04 22:54:27] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5447,"new_order_id":5448,"order_number":"AZS-040326-016"} 
[2026-03-04 23:00:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5448,"item_index":0,"item_id":26337} 
[2026-03-04 23:00:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5448,"item_index":1,"item_id":26338} 
[2026-03-04 23:00:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5448,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null,"id":26337},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":26338},{"menu_item_id":416,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-04 23:00:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5448,"items_count":4} 
[2026-03-04 23:00:20] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[26350,26351,26352,26353],"items":[{"id":null,"menu_item_id":411,"quantity":4},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":416,"quantity":5},{"id":null,"menu_item_id":50,"quantity":3}]} 
[2026-03-04 23:00:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5448,"has_item_changes":true,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|4|","5|1|","416|5|","50|3|"],"new_items_map_keys":["411|4|","5|2|","416|5|","50|3|"]} 
[2026-03-04 23:00:20] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5448,"order_number":"AZS-040326-016"} 
[2026-03-04 23:00:20] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040326-016","replaced_order_id":5448} 
[2026-03-04 23:00:20] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5449,"items_count":4,"items":[{"menu_item_id":411,"quantity":4,"price":"599.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":416,"quantity":5,"price":"70.00"},{"menu_item_id":50,"quantity":3,"price":"129.00"}]} 
[2026-03-04 23:00:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5449,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":4,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":2396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5449}} 
[2026-03-04 23:00:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5449,"item_index":0,"menu_item_id":411} 
[2026-03-04 23:00:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5449,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5449}} 
[2026-03-04 23:00:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5449,"item_index":1,"menu_item_id":5} 
[2026-03-04 23:00:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5449,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":5,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":350.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5449}} 
[2026-03-04 23:00:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5449,"item_index":2,"menu_item_id":416} 
[2026-03-04 23:00:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5449,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5449}} 
[2026-03-04 23:00:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5449,"item_index":3,"menu_item_id":50} 
[2026-03-04 23:00:20] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5448,"new_order_id":5449,"order_number":"AZS-040326-016"} 
[2026-03-04 23:07:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5449,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null,"id":26354},{"menu_item_id":5,"quantity":3,"discount_percent":0,"notes":null,"id":26355},{"menu_item_id":416,"quantity":5,"discount_percent":0,"notes":null,"id":26356},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null,"id":26357}],"validated_items":[{"id":26354,"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null},{"id":26355,"menu_item_id":5,"quantity":3,"discount_percent":0,"notes":null},{"id":26356,"menu_item_id":416,"quantity":5,"discount_percent":0,"notes":null},{"id":26357,"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-04 23:07:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5449,"items_count":4} 
[2026-03-04 23:07:29] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26354,"menu_item_id":411,"quantity":4},{"id":26355,"menu_item_id":5,"quantity":3},{"id":26356,"menu_item_id":416,"quantity":5},{"id":26357,"menu_item_id":50,"quantity":3}]} 
[2026-03-04 23:07:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5449,"has_item_changes":true,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|4|","5|2|","416|5|","50|3|"],"new_items_map_keys":["411|4|","5|3|","416|5|","50|3|"]} 
[2026-03-04 23:07:29] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5449,"order_number":"AZS-040326-016"} 
[2026-03-04 23:07:29] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040326-016","replaced_order_id":5449} 
[2026-03-04 23:07:29] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5450,"items_count":4,"items":[{"menu_item_id":411,"quantity":4,"price":"599.00"},{"menu_item_id":5,"quantity":3,"price":"170.00"},{"menu_item_id":416,"quantity":5,"price":"70.00"},{"menu_item_id":50,"quantity":3,"price":"129.00"}]} 
[2026-03-04 23:07:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5450,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":4,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":2396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5450}} 
[2026-03-04 23:07:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5450,"item_index":0,"menu_item_id":411} 
[2026-03-04 23:07:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5450,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":3,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":510.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5450}} 
[2026-03-04 23:07:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5450,"item_index":1,"menu_item_id":5} 
[2026-03-04 23:07:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5450,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":5,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":350.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5450}} 
[2026-03-04 23:07:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5450,"item_index":2,"menu_item_id":416} 
[2026-03-04 23:07:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5450,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5450}} 
[2026-03-04 23:07:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5450,"item_index":3,"menu_item_id":50} 
[2026-03-04 23:07:29] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5449,"new_order_id":5450,"order_number":"AZS-040326-016"} 
[2026-03-04 23:07:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5450,"item_index":0,"item_id":26354} 
[2026-03-04 23:07:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5450,"item_index":1,"item_id":26355} 
[2026-03-04 23:07:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5450,"item_index":2,"item_id":26356} 
[2026-03-04 23:07:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5450,"item_index":3,"item_id":26357} 
[2026-03-04 23:07:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5450,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":4,"price":599,"discount_percent":0,"notes":null,"id":26354},{"menu_item_id":5,"quantity":3,"price":170,"discount_percent":0,"notes":null,"id":26355},{"menu_item_id":416,"quantity":5,"price":70,"discount_percent":0,"notes":null,"id":26356},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":26357}],"validated_items":[{"menu_item_id":411,"quantity":4,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":3,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":5,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-04 23:07:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5450,"items_count":4} 
[2026-03-04 23:07:36] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[26358,26359,26360,26361],"items":[{"id":null,"menu_item_id":411,"quantity":4},{"id":null,"menu_item_id":5,"quantity":3},{"id":null,"menu_item_id":416,"quantity":5},{"id":null,"menu_item_id":50,"quantity":3}]} 
[2026-03-04 23:07:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5450,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|4|","5|3|","416|5|","50|3|"],"new_items_map_keys":["411|4|","5|3|","416|5|","50|3|"]} 
[2026-03-04 23:07:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5450,"order_number":"AZS-040326-016"} 
[2026-03-04 23:07:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5450,"order_number":"AZS-040326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-04 23:07:36"} 
[2026-03-04 23:08:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T11:07:59.503Z","date_to":"2026-03-04T23:07:59.503Z","per_page":"100"} 
[2026-03-04 23:08:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T11:07:59.517Z","date_to":"2026-03-04T23:07:59.517Z","per_page":"100"} 
[2026-03-04 23:08:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-015","AZS-040326-015","AZS-040326-014","AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","changed","changed","changed","changed","pending","changed","paid","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":21,"paid_count":13,"unpaid_count":3,"unique_order_numbers":16} 
[2026-03-04 23:08:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-015","AZS-040326-015","AZS-040326-014","AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","changed","changed","changed","changed","pending","changed","paid","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":21,"paid_count":13,"unpaid_count":3,"unique_order_numbers":16} 
[2026-03-04 23:08:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T11:07:59.503Z","date_to":"2026-03-04T23:07:59.503Z","per_page":"100"} 
[2026-03-04 23:08:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-015","AZS-040326-015","AZS-040326-014","AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["pending","changed","changed","changed","changed","changed","pending","changed","paid","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":21,"paid_count":13,"unpaid_count":3,"unique_order_numbers":16} 
[2026-03-04 23:23:00] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5450,"order_number":"AZS-040326-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3850,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 23:23:00"} 
[2026-03-04 23:23:00] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5450,"order_number":"AZS-040326-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3850,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 23:23:00"} 
[2026-03-04 23:23:00] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5450,"order_number":"AZS-040326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3850,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 23:23:00"} 
[2026-03-04 23:23:00] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5450,"order_number":"AZS-040326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3850,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 23:23:00"} 
[2026-03-04 23:23:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5450,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":4,"price":599,"discount_percent":0,"notes":null,"id":26358},{"menu_item_id":5,"quantity":3,"price":170,"discount_percent":0,"notes":null,"id":26359},{"menu_item_id":416,"quantity":5,"price":70,"discount_percent":0,"notes":null,"id":26360},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":26361}],"validated_items":[{"id":26358,"menu_item_id":411,"quantity":4,"price":599,"discount_percent":0,"notes":null},{"id":26359,"menu_item_id":5,"quantity":3,"price":170,"discount_percent":0,"notes":null},{"id":26360,"menu_item_id":416,"quantity":5,"price":70,"discount_percent":0,"notes":null},{"id":26361,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-04 23:23:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5450,"items_count":4} 
[2026-03-04 23:23:00] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26358,"menu_item_id":411,"quantity":4},{"id":26359,"menu_item_id":5,"quantity":3},{"id":26360,"menu_item_id":416,"quantity":5},{"id":26361,"menu_item_id":50,"quantity":3}]} 
[2026-03-04 23:23:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5450,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|4|","5|3|","416|5|","50|3|"],"new_items_map_keys":["411|4|","5|3|","416|5|","50|3|"]} 
[2026-03-04 23:23:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5450,"order_number":"AZS-040326-016"} 
[2026-03-04 23:23:00] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5450,"order_number":"AZS-040326-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3850,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-04 23:23:00","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-04 23:23:00"} 
[2026-03-04 23:23:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5450,"order_number":"AZS-040326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-04 23:23:00"} 
[2026-03-04 23:23:00] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5450,"order_number":"AZS-040326-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3850.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-04 23:23:00","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3850,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3850.00","database_verification_match":true,"timestamp":"2026-03-04 23:23:00"} 
[2026-03-04 23:23:22] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5445,"order_number":"AZS-040326-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 23:23:22"} 
[2026-03-04 23:23:22] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5445,"order_number":"AZS-040326-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 23:23:22"} 
[2026-03-04 23:23:22] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5445,"order_number":"AZS-040326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 23:23:22"} 
[2026-03-04 23:23:22] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5445,"order_number":"AZS-040326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 23:23:22"} 
[2026-03-04 23:23:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5445,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"price":599,"discount_percent":0,"notes":null,"id":26339},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26340},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26341},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null,"id":26342}],"validated_items":[{"id":26339,"menu_item_id":411,"quantity":3,"price":599,"discount_percent":0,"notes":null},{"id":26340,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26341,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":26342,"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-04 23:23:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5445,"items_count":4} 
[2026-03-04 23:23:22] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26339,"menu_item_id":411,"quantity":3},{"id":26340,"menu_item_id":5,"quantity":1},{"id":26341,"menu_item_id":2,"quantity":1},{"id":26342,"menu_item_id":412,"quantity":1}]} 
[2026-03-04 23:23:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5445,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|3|","5|1|","2|1|","412|1|"],"new_items_map_keys":["411|3|","5|1|","2|1|","412|1|"]} 
[2026-03-04 23:23:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5445,"order_number":"AZS-040326-015"} 
[2026-03-04 23:23:22] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5445,"order_number":"AZS-040326-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-04 23:23:22","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-04 23:23:22"} 
[2026-03-04 23:23:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5445,"order_number":"AZS-040326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-04 23:23:22"} 
[2026-03-04 23:23:22] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5445,"order_number":"AZS-040326-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-04 23:23:22","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2500.00","database_verification_match":true,"timestamp":"2026-03-04 23:23:22"} 
[2026-03-04 23:24:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T11:24:03.403Z","date_to":"2026-03-04T23:24:03.403Z","per_page":"100"} 
[2026-03-04 23:24:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-015","AZS-040326-015","AZS-040326-014","AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["paid","changed","changed","changed","changed","changed","paid","changed","paid","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":21,"paid_count":15,"unpaid_count":1,"unique_order_numbers":16} 
[2026-03-04 23:24:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T11:24:03.383Z","date_to":"2026-03-04T23:24:03.383Z","per_page":"100"} 
[2026-03-04 23:24:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-015","AZS-040326-015","AZS-040326-014","AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["paid","changed","changed","changed","changed","changed","paid","changed","paid","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":21,"paid_count":15,"unpaid_count":1,"unique_order_numbers":16} 
[2026-03-04 23:24:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T11:24:03.383Z","date_to":"2026-03-04T23:24:03.383Z","per_page":"100"} 
[2026-03-04 23:24:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":37,"count":37,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-015","AZS-040326-015","AZS-040326-014","AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["paid","changed","changed","changed","changed","changed","paid","changed","paid","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":21,"paid_count":15,"unpaid_count":1,"unique_order_numbers":16} 
[2026-03-04 23:30:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5452,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":26363}],"validated_items":[{"id":26363,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null}]} 
[2026-03-04 23:30:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5452,"items_count":1} 
[2026-03-04 23:30:27] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26363,"menu_item_id":411,"quantity":1}]} 
[2026-03-04 23:30:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5452,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|"]} 
[2026-03-04 23:30:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5452,"order_number":"AZS-040326-018"} 
[2026-03-04 23:30:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5452,"order_number":"AZS-040326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-04 23:30:27"} 
[2026-03-04 23:31:20] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5452,"order_number":"AZS-040326-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":600,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 23:31:20"} 
[2026-03-04 23:31:20] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5452,"order_number":"AZS-040326-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 23:31:20"} 
[2026-03-04 23:31:20] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5452,"order_number":"AZS-040326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 23:31:20"} 
[2026-03-04 23:31:20] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5452,"order_number":"AZS-040326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 23:31:20"} 
[2026-03-04 23:31:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5452,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":26363}],"validated_items":[{"id":26363,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null}]} 
[2026-03-04 23:31:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5452,"items_count":1} 
[2026-03-04 23:31:20] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26363,"menu_item_id":411,"quantity":1}]} 
[2026-03-04 23:31:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5452,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|"]} 
[2026-03-04 23:31:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5452,"order_number":"AZS-040326-018"} 
[2026-03-04 23:31:20] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5452,"order_number":"AZS-040326-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":600,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-04 23:31:20","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-04 23:31:20"} 
[2026-03-04 23:31:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5452,"order_number":"AZS-040326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-04 23:31:20"} 
[2026-03-04 23:31:20] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5452,"order_number":"AZS-040326-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"600.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-04 23:31:20","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"600.00","database_verification_match":true,"timestamp":"2026-03-04 23:31:20"} 
[2026-03-04 23:31:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T11:31:27.203Z","date_to":"2026-03-04T23:31:27.203Z","per_page":"100"} 
[2026-03-04 23:31:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-018","AZS-040326-017","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-015","AZS-040326-015","AZS-040326-014","AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["paid","pending","paid","changed","changed","changed","changed","changed","paid","changed","paid","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":21,"paid_count":16,"unpaid_count":2,"unique_order_numbers":18} 
[2026-03-04 23:31:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T11:31:27.189Z","date_to":"2026-03-04T23:31:27.189Z","per_page":"100"} 
[2026-03-04 23:31:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-018","AZS-040326-017","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-015","AZS-040326-015","AZS-040326-014","AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["paid","pending","paid","changed","changed","changed","changed","changed","paid","changed","paid","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":21,"paid_count":16,"unpaid_count":2,"unique_order_numbers":18} 
[2026-03-04 23:31:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T11:31:27.189Z","date_to":"2026-03-04T23:31:27.189Z","per_page":"100"} 
[2026-03-04 23:31:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-018","AZS-040326-017","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-015","AZS-040326-015","AZS-040326-014","AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["paid","pending","paid","changed","changed","changed","changed","changed","paid","changed","paid","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":21,"paid_count":16,"unpaid_count":2,"unique_order_numbers":18} 
[2026-03-04 23:39:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5440,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null,"id":26322},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26323},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26324},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":26325},{"menu_item_id":286,"quantity":1,"discount_percent":0,"notes":null,"id":26326},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":26327},{"menu_item_id":136,"quantity":1,"discount_percent":0,"notes":null,"id":26328}],"validated_items":[{"id":26322,"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null},{"id":26323,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26324,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26325,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":26326,"menu_item_id":286,"quantity":1,"discount_percent":0,"notes":null},{"id":26327,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":26328,"menu_item_id":136,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-04 23:39:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5440,"items_count":7} 
[2026-03-04 23:39:00] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26322,"menu_item_id":51,"quantity":1},{"id":26323,"menu_item_id":61,"quantity":1},{"id":26324,"menu_item_id":56,"quantity":1},{"id":26325,"menu_item_id":2,"quantity":1},{"id":26326,"menu_item_id":286,"quantity":1},{"id":26327,"menu_item_id":105,"quantity":1},{"id":26328,"menu_item_id":136,"quantity":1}]} 
[2026-03-04 23:39:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5440,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["51|1|","61|1|","56|1|","2|1|","286|1|","105|1|","136|1|"],"new_items_map_keys":["51|1|","61|1|","56|1|","2|1|","286|1|","105|1|","136|1|"]} 
[2026-03-04 23:39:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5440,"order_number":"AZS-040326-013"} 
[2026-03-04 23:39:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5440,"order_number":"AZS-040326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-03-04 23:39:00"} 
[2026-03-04 23:39:20] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5440,"order_number":"AZS-040326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3840,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 23:39:20"} 
[2026-03-04 23:39:20] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5440,"order_number":"AZS-040326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3840,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 23:39:20"} 
[2026-03-04 23:39:20] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5440,"order_number":"AZS-040326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3840,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 23:39:20"} 
[2026-03-04 23:39:20] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5440,"order_number":"AZS-040326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3840,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 23:39:20"} 
[2026-03-04 23:39:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5440,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26322},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26323},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26324},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26325},{"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null,"id":26326},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26327},{"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null,"id":26328}],"validated_items":[{"id":26322,"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26323,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26324,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26325,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":26326,"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null},{"id":26327,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26328,"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null}]} 
[2026-03-04 23:39:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5440,"items_count":7} 
[2026-03-04 23:39:20] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26322,"menu_item_id":51,"quantity":1},{"id":26323,"menu_item_id":61,"quantity":1},{"id":26324,"menu_item_id":56,"quantity":1},{"id":26325,"menu_item_id":2,"quantity":1},{"id":26326,"menu_item_id":286,"quantity":1},{"id":26327,"menu_item_id":105,"quantity":1},{"id":26328,"menu_item_id":136,"quantity":1}]} 
[2026-03-04 23:39:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5440,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["51|1|","61|1|","56|1|","2|1|","286|1|","105|1|","136|1|"],"new_items_map_keys":["51|1|","61|1|","56|1|","2|1|","286|1|","105|1|","136|1|"]} 
[2026-03-04 23:39:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5440,"order_number":"AZS-040326-013"} 
[2026-03-04 23:39:20] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5440,"order_number":"AZS-040326-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3840,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-04 23:39:20","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-04 23:39:20"} 
[2026-03-04 23:39:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5440,"order_number":"AZS-040326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-04 23:39:20"} 
[2026-03-04 23:39:20] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5440,"order_number":"AZS-040326-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3840.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-04 23:39:20","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3840,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3840.00","database_verification_match":true,"timestamp":"2026-03-04 23:39:20"} 
[2026-03-04 23:39:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T11:39:23.908Z","date_to":"2026-03-04T23:39:23.908Z","per_page":"100"} 
[2026-03-04 23:39:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T11:39:23.926Z","date_to":"2026-03-04T23:39:23.926Z","per_page":"100"} 
[2026-03-04 23:39:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-018","AZS-040326-017","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-015","AZS-040326-015","AZS-040326-014","AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["paid","pending","paid","changed","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":21,"paid_count":17,"unpaid_count":1,"unique_order_numbers":18} 
[2026-03-04 23:39:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-018","AZS-040326-017","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-015","AZS-040326-015","AZS-040326-014","AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["paid","pending","paid","changed","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":21,"paid_count":17,"unpaid_count":1,"unique_order_numbers":18} 
[2026-03-04 23:39:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T11:39:23.908Z","date_to":"2026-03-04T23:39:23.908Z","per_page":"100"} 
[2026-03-04 23:39:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-018","AZS-040326-017","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-015","AZS-040326-015","AZS-040326-014","AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["paid","pending","paid","changed","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":21,"paid_count":17,"unpaid_count":1,"unique_order_numbers":18} 
[2026-03-04 23:40:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5453,"order_number":"AZS-040326-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":45,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 23:40:27"} 
[2026-03-04 23:40:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5453,"order_number":"AZS-040326-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":45,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 23:40:27"} 
[2026-03-04 23:40:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5453,"order_number":"AZS-040326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":45,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 23:40:27"} 
[2026-03-04 23:40:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5453,"order_number":"AZS-040326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":45,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 23:40:27"} 
[2026-03-04 23:40:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5453,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null,"id":26364}],"validated_items":[{"id":26364,"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-04 23:40:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5453,"items_count":1} 
[2026-03-04 23:40:27] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26364,"menu_item_id":286,"quantity":3}]} 
[2026-03-04 23:40:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5453,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["286|3|"],"new_items_map_keys":["286|3|"]} 
[2026-03-04 23:40:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5453,"order_number":"AZS-040326-019"} 
[2026-03-04 23:40:27] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5453,"order_number":"AZS-040326-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":45,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-04 23:40:27","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-04 23:40:27"} 
[2026-03-04 23:40:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5453,"order_number":"AZS-040326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-04 23:40:27"} 
[2026-03-04 23:40:27] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5453,"order_number":"AZS-040326-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"45.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-04 23:40:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":45,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"45.00","database_verification_match":true,"timestamp":"2026-03-04 23:40:27"} 
[2026-03-04 23:41:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5451,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":26362},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26362,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-04 23:41:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5451,"items_count":2} 
[2026-03-04 23:41:02] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26362,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":416,"quantity":1}]} 
[2026-03-04 23:41:02] local.INFO: PosOrderController::update - Item changes check {"order_id":5451,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|","416|1|"]} 
[2026-03-04 23:41:02] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5451,"order_number":"AZS-040326-017"} 
[2026-03-04 23:41:02] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040326-017","replaced_order_id":5451} 
[2026-03-04 23:41:02] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5454,"items_count":2,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":416,"quantity":1,"price":"70.00"}]} 
[2026-03-04 23:41:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5454,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5454}} 
[2026-03-04 23:41:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5454,"item_index":0,"menu_item_id":411} 
[2026-03-04 23:41:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5454,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5454}} 
[2026-03-04 23:41:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5454,"item_index":1,"menu_item_id":416} 
[2026-03-04 23:41:02] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5451,"new_order_id":5454,"order_number":"AZS-040326-017"} 
[2026-03-04 23:54:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5454,"item_index":0,"item_id":26362} 
[2026-03-04 23:54:56] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5454,"order_number":"AZS-040326-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 23:54:56"} 
[2026-03-04 23:54:56] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5454,"order_number":"AZS-040326-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-04 23:54:56"} 
[2026-03-04 23:54:56] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5454,"order_number":"AZS-040326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 23:54:56"} 
[2026-03-04 23:54:56] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5454,"order_number":"AZS-040326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-04 23:54:56"} 
[2026-03-04 23:54:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":5454,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":26362},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-04 23:54:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5454,"items_count":2} 
[2026-03-04 23:54:56] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[26365,26366],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":416,"quantity":1}]} 
[2026-03-04 23:54:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5454,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","416|1|"],"new_items_map_keys":["411|1|","416|1|"]} 
[2026-03-04 23:54:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5454,"order_number":"AZS-040326-017"} 
[2026-03-04 23:54:56] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5454,"order_number":"AZS-040326-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-04 23:54:56","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-04 23:54:56"} 
[2026-03-04 23:54:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5454,"order_number":"AZS-040326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-04 23:54:56"} 
[2026-03-04 23:54:56] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5454,"order_number":"AZS-040326-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-04 23:54:56","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-04 23:54:56"} 
[2026-03-04 23:55:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T11:55:24.582Z","date_to":"2026-03-04T23:55:24.582Z","per_page":"100"} 
[2026-03-04 23:55:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":41,"count":41,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-019","AZS-040326-018","AZS-040326-017","AZS-040326-017","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-015","AZS-040326-015","AZS-040326-014","AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["paid","paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":22,"paid_count":19,"unpaid_count":0,"unique_order_numbers":19} 
[2026-03-04 23:55:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T11:55:24.565Z","date_to":"2026-03-04T23:55:24.565Z","per_page":"100"} 
[2026-03-04 23:55:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":41,"count":41,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-019","AZS-040326-018","AZS-040326-017","AZS-040326-017","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-015","AZS-040326-015","AZS-040326-014","AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["paid","paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":22,"paid_count":19,"unpaid_count":0,"unique_order_numbers":19} 
[2026-03-04 23:55:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T11:55:24.565Z","date_to":"2026-03-04T23:55:24.565Z","per_page":"100"} 
[2026-03-04 23:55:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":41,"count":41,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-019","AZS-040326-018","AZS-040326-017","AZS-040326-017","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-015","AZS-040326-015","AZS-040326-014","AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["paid","paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":22,"paid_count":19,"unpaid_count":0,"unique_order_numbers":19} 
[2026-03-05 06:18:45] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T18:18:37.269Z","date_to":"2026-03-05T06:18:37.269Z","per_page":"100"} 
[2026-03-05 06:18:45] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-019","AZS-040326-018","AZS-040326-017","AZS-040326-017","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-015","AZS-040326-015","AZS-040326-014"],"order_statuses":["paid","paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","paid"],"deleted_count":7,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-05 06:18:45] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T18:18:37.365Z","date_to":"2026-03-05T06:18:37.365Z","per_page":"100"} 
[2026-03-05 06:18:45] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-019","AZS-040326-018","AZS-040326-017","AZS-040326-017","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-015","AZS-040326-015","AZS-040326-014"],"order_statuses":["paid","paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","paid"],"deleted_count":7,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-05 06:18:45] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T18:18:37.269Z","date_to":"2026-03-05T06:18:37.269Z","per_page":"100"} 
[2026-03-05 06:18:45] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-019","AZS-040326-018","AZS-040326-017","AZS-040326-017","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-015","AZS-040326-015","AZS-040326-014"],"order_statuses":["paid","paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","paid"],"deleted_count":7,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-05 06:18:52] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T06:18:45.655Z","date_to":"2026-03-05T06:18:45.655Z","per_page":"100"} 
[2026-03-05 06:18:52] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":41,"count":41,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040326-019","AZS-040326-018","AZS-040326-017","AZS-040326-017","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-016","AZS-040326-015","AZS-040326-015","AZS-040326-014","AZS-040326-013","AZS-040326-013","AZS-040326-013","AZS-040326-012","AZS-040326-012","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-011","AZS-040326-010","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-009","AZS-040326-008","AZS-040326-008","AZS-040326-008","AZS-040326-007","AZS-040326-006","AZS-040326-006","AZS-040326-005","AZS-040326-004","AZS-040326-003","AZS-040326-002","AZS-040326-001","AZS-040326-001","AZS-040326-001","AZS-040326-001"],"order_statuses":["paid","paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","paid","paid","paid","paid","paid","changed","changed","changed"],"deleted_count":22,"paid_count":19,"unpaid_count":0,"unique_order_numbers":19} 
[2026-03-05 11:51:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T23:51:48.172Z","date_to":"2026-03-05T11:51:48.172Z","per_page":"100"} 
[2026-03-05 11:51:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-05 11:51:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T23:51:48.193Z","date_to":"2026-03-05T11:51:48.193Z","per_page":"100"} 
[2026-03-05 11:51:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-05 11:51:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-04T23:51:48.172Z","date_to":"2026-03-05T11:51:48.172Z","per_page":"100"} 
[2026-03-05 11:51:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-05 13:31:29] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5458,"order_number":"AZS-050326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 13:31:29"} 
[2026-03-05 13:31:29] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5458,"order_number":"AZS-050326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 13:31:29"} 
[2026-03-05 13:31:29] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5458,"order_number":"AZS-050326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 13:31:29"} 
[2026-03-05 13:31:29] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5458,"order_number":"AZS-050326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 13:31:29"} 
[2026-03-05 13:31:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5458,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26376}],"validated_items":[{"id":26376,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-05 13:31:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5458,"items_count":1} 
[2026-03-05 13:31:29] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26376,"menu_item_id":417,"quantity":1}]} 
[2026-03-05 13:31:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5458,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-05 13:31:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5458,"order_number":"AZS-050326-004"} 
[2026-03-05 13:31:29] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5458,"order_number":"AZS-050326-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-05 13:31:29","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-05 13:31:29"} 
[2026-03-05 13:31:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5458,"order_number":"AZS-050326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-05 13:31:29"} 
[2026-03-05 13:31:29] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5458,"order_number":"AZS-050326-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-05 13:31:29","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-05 13:31:29"} 
[2026-03-05 13:31:44] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5456,"order_number":"AZS-050326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 13:31:44"} 
[2026-03-05 13:31:44] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5456,"order_number":"AZS-050326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 13:31:44"} 
[2026-03-05 13:31:44] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5456,"order_number":"AZS-050326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 13:31:44"} 
[2026-03-05 13:31:44] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5456,"order_number":"AZS-050326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 13:31:44"} 
[2026-03-05 13:31:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5456,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26374}],"validated_items":[{"id":26374,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-05 13:31:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5456,"items_count":1} 
[2026-03-05 13:31:45] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26374,"menu_item_id":417,"quantity":1}]} 
[2026-03-05 13:31:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5456,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-05 13:31:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5456,"order_number":"AZS-050326-002"} 
[2026-03-05 13:31:45] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5456,"order_number":"AZS-050326-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-05 13:31:44","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-05 13:31:45"} 
[2026-03-05 13:31:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5456,"order_number":"AZS-050326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-05 13:31:45"} 
[2026-03-05 13:31:45] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5456,"order_number":"AZS-050326-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-05 13:31:44","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-05 13:31:45"} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":1,"order_id":5455,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26367},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":26368},{"menu_item_id":69,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":26369},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":26370},{"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26371},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26372},{"menu_item_id":54,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":1,"price":229,"discount_percent":0,"notes":null}],"validated_items":[{"id":26367,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26368,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":26369,"menu_item_id":69,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":26370,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":26371,"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26372,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":1,"price":229,"discount_percent":0,"notes":null}]} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5455,"items_count":10} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":1,"items_to_remove":[26373],"items":[{"id":26367,"menu_item_id":113,"quantity":1},{"id":26368,"menu_item_id":95,"quantity":1},{"id":26369,"menu_item_id":69,"quantity":1},{"id":26370,"menu_item_id":55,"quantity":2},{"id":26371,"menu_item_id":51,"quantity":1},{"id":26372,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":54,"quantity":2},{"id":null,"menu_item_id":29,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":9,"quantity":1}]} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5455,"has_item_changes":true,"old_items_count":7,"new_items_count":10,"old_items_map_keys":["113|1|","95|1|","69|1|","55|4|","51|2|","61|1|","5|1|"],"new_items_map_keys":["113|1|","95|1|","69|1|","55|2|","51|1|","61|1|","54|2|","29|1|","2|1|","9|1|"]} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5455,"order_number":"AZS-050326-001"} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050326-001","replaced_order_id":5455} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5459,"items_count":10,"items":[{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":95,"quantity":1,"price":1999.0},{"menu_item_id":69,"quantity":1,"price":1699.0},{"menu_item_id":55,"quantity":2,"price":159.0},{"menu_item_id":51,"quantity":1,"price":199.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":54,"quantity":2,"price":159.0},{"menu_item_id":29,"quantity":1,"price":250.0},{"menu_item_id":2,"quantity":1,"price":130.0},{"menu_item_id":9,"quantity":1,"price":229.0}]} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5459,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5459}} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5459,"item_index":0,"menu_item_id":113} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5459,"item_index":1,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":1999.0,"discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5459}} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5459,"item_index":1,"menu_item_id":95} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5459,"item_index":2,"item_data":{"menu_item_id":69,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Green boti","quantity":1,"price":1699.0,"discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5459}} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5459,"item_index":2,"menu_item_id":69} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5459,"item_index":3,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5459}} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5459,"item_index":3,"menu_item_id":55} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5459,"item_index":4,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5459}} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5459,"item_index":4,"menu_item_id":51} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5459,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5459}} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5459,"item_index":5,"menu_item_id":61} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5459,"item_index":6,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":2,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5459}} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5459,"item_index":6,"menu_item_id":54} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5459,"item_index":7,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":250.0,"discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5459}} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5459,"item_index":7,"menu_item_id":29} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5459,"item_index":8,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5459}} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5459,"item_index":8,"menu_item_id":2} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5459,"item_index":9,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":1,"price":229.0,"discount_percent":0.0,"discount_amount":0.0,"total":229.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5459}} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5459,"item_index":9,"menu_item_id":9} 
[2026-03-05 14:01:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5455,"new_order_id":5459,"order_number":"AZS-050326-001"} 
[2026-03-05 14:01:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5457,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":26375}],"validated_items":[{"id":26375,"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-05 14:01:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5457,"items_count":1} 
[2026-03-05 14:01:24] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26375,"menu_item_id":417,"quantity":2}]} 
[2026-03-05 14:01:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5457,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|2|"],"new_items_map_keys":["417|2|"]} 
[2026-03-05 14:01:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5457,"order_number":"AZS-050326-003"} 
[2026-03-05 14:01:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5457,"order_number":"AZS-050326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-05 14:01:24"} 
[2026-03-05 14:11:00] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5457,"order_number":"AZS-050326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 14:11:00"} 
[2026-03-05 14:11:00] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5457,"order_number":"AZS-050326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 14:11:00"} 
[2026-03-05 14:11:00] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5457,"order_number":"AZS-050326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 14:11:00"} 
[2026-03-05 14:11:00] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5457,"order_number":"AZS-050326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 14:11:00"} 
[2026-03-05 14:11:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5457,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":26375}],"validated_items":[{"id":26375,"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-05 14:11:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5457,"items_count":1} 
[2026-03-05 14:11:00] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26375,"menu_item_id":417,"quantity":2}]} 
[2026-03-05 14:11:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5457,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|2|"],"new_items_map_keys":["417|2|"]} 
[2026-03-05 14:11:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5457,"order_number":"AZS-050326-003"} 
[2026-03-05 14:11:00] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5457,"order_number":"AZS-050326-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-05 14:11:00","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-05 14:11:00"} 
[2026-03-05 14:11:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5457,"order_number":"AZS-050326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-05 14:11:00"} 
[2026-03-05 14:11:00] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5457,"order_number":"AZS-050326-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-05 14:11:00","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-05 14:11:00"} 
[2026-03-05 14:13:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5460,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":26387},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26388},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26389},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26390},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26387,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":26388,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26389,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26390,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-05 14:13:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5460,"items_count":5} 
[2026-03-05 14:13:26] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26387,"menu_item_id":78,"quantity":1},{"id":26388,"menu_item_id":61,"quantity":1},{"id":26389,"menu_item_id":56,"quantity":1},{"id":26390,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-05 14:13:26] local.INFO: PosOrderController::update - Item changes check {"order_id":5460,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["78|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["78|1|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-03-05 14:13:26] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5460,"order_number":"AZS-050326-005"} 
[2026-03-05 14:13:26] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050326-005","replaced_order_id":5460} 
[2026-03-05 14:13:26] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5462,"items_count":5,"items":[{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-05 14:13:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5462,"item_index":0,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5462}} 
[2026-03-05 14:13:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5462,"item_index":0,"menu_item_id":78} 
[2026-03-05 14:13:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5462,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5462}} 
[2026-03-05 14:13:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5462,"item_index":1,"menu_item_id":61} 
[2026-03-05 14:13:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5462,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5462}} 
[2026-03-05 14:13:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5462,"item_index":2,"menu_item_id":56} 
[2026-03-05 14:13:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5462,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5462}} 
[2026-03-05 14:13:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5462,"item_index":3,"menu_item_id":5} 
[2026-03-05 14:13:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5462,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5462}} 
[2026-03-05 14:13:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5462,"item_index":4,"menu_item_id":3} 
[2026-03-05 14:13:26] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5460,"new_order_id":5462,"order_number":"AZS-050326-005"} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5459,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":26377},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":26378},{"menu_item_id":69,"quantity":1,"discount_percent":0,"notes":null,"id":26379},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null,"id":26380},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null,"id":26381},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26382},{"menu_item_id":54,"quantity":2,"discount_percent":0,"notes":null,"id":26383},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null,"id":26384},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":26385},{"menu_item_id":9,"quantity":3,"discount_percent":0,"notes":null,"id":26386}],"validated_items":[{"id":26377,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":26378,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":26379,"menu_item_id":69,"quantity":1,"discount_percent":0,"notes":null},{"id":26380,"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"id":26381,"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null},{"id":26382,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26383,"menu_item_id":54,"quantity":2,"discount_percent":0,"notes":null},{"id":26384,"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null},{"id":26385,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":26386,"menu_item_id":9,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5459,"items_count":10} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26377,"menu_item_id":113,"quantity":1},{"id":26378,"menu_item_id":95,"quantity":1},{"id":26379,"menu_item_id":69,"quantity":1},{"id":26380,"menu_item_id":55,"quantity":2},{"id":26381,"menu_item_id":51,"quantity":1},{"id":26382,"menu_item_id":61,"quantity":1},{"id":26383,"menu_item_id":54,"quantity":2},{"id":26384,"menu_item_id":29,"quantity":1},{"id":26385,"menu_item_id":2,"quantity":1},{"id":26386,"menu_item_id":9,"quantity":3}]} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5459,"has_item_changes":true,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["113|1|","95|1|","69|1|","55|2|","51|1|","61|1|","54|2|","29|1|","2|1|","9|1|"],"new_items_map_keys":["113|1|","95|1|","69|1|","55|2|","51|1|","61|1|","54|2|","29|1|","2|1|","9|3|"]} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5459,"order_number":"AZS-050326-001"} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050326-001","replaced_order_id":5459} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5463,"items_count":10,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":69,"quantity":1,"price":"1699.00"},{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":51,"quantity":1,"price":"199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":54,"quantity":2,"price":"159.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":9,"quantity":3,"price":"229.00"}]} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5463,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5463}} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5463,"item_index":0,"menu_item_id":113} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5463,"item_index":1,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5463}} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5463,"item_index":1,"menu_item_id":95} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5463,"item_index":2,"item_data":{"menu_item_id":69,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Green boti","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5463}} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5463,"item_index":2,"menu_item_id":69} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5463,"item_index":3,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5463}} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5463,"item_index":3,"menu_item_id":55} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5463,"item_index":4,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5463}} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5463,"item_index":4,"menu_item_id":51} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5463,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5463}} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5463,"item_index":5,"menu_item_id":61} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5463,"item_index":6,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5463}} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5463,"item_index":6,"menu_item_id":54} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5463,"item_index":7,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5463}} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5463,"item_index":7,"menu_item_id":29} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5463,"item_index":8,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5463}} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5463,"item_index":8,"menu_item_id":2} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5463,"item_index":9,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":3,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":687.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5463}} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5463,"item_index":9,"menu_item_id":9} 
[2026-03-05 14:31:16] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5459,"new_order_id":5463,"order_number":"AZS-050326-001"} 
[2026-03-05 14:31:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5463,"item_index":0,"item_id":26377} 
[2026-03-05 14:31:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5463,"item_index":1,"item_id":26378} 
[2026-03-05 14:31:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5463,"item_index":2,"item_id":26379} 
[2026-03-05 14:31:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5463,"item_index":3,"item_id":26380} 
[2026-03-05 14:31:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5463,"item_index":4,"item_id":26381} 
[2026-03-05 14:31:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5463,"item_index":5,"item_id":26382} 
[2026-03-05 14:31:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5463,"item_index":6,"item_id":26383} 
[2026-03-05 14:31:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5463,"item_index":7,"item_id":26384} 
[2026-03-05 14:31:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5463,"item_index":8,"item_id":26385} 
[2026-03-05 14:31:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5463,"item_index":9,"item_id":26386} 
[2026-03-05 14:31:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":10,"order_id":5463,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26377},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":26378},{"menu_item_id":69,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":26379},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":26380},{"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26381},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26382},{"menu_item_id":54,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":26383},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":26384},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26385},{"menu_item_id":9,"quantity":3,"price":229,"discount_percent":0,"notes":null,"id":26386}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":69,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":3,"price":229,"discount_percent":0,"notes":null}]} 
[2026-03-05 14:31:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5463,"items_count":10} 
[2026-03-05 14:31:34] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":10,"items_to_remove":[26400,26401,26402,26403,26404,26405,26406,26407,26408,26409],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":95,"quantity":1},{"id":null,"menu_item_id":69,"quantity":1},{"id":null,"menu_item_id":55,"quantity":2},{"id":null,"menu_item_id":51,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":54,"quantity":2},{"id":null,"menu_item_id":29,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":9,"quantity":3}]} 
[2026-03-05 14:31:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5463,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["113|1|","95|1|","69|1|","55|2|","51|1|","61|1|","54|2|","29|1|","2|1|","9|3|"],"new_items_map_keys":["113|1|","95|1|","69|1|","55|2|","51|1|","61|1|","54|2|","29|1|","2|1|","9|3|"]} 
[2026-03-05 14:31:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5463,"order_number":"AZS-050326-001"} 
[2026-03-05 14:31:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5463,"order_number":"AZS-050326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-05 14:31:34"} 
[2026-03-05 15:00:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5461,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":26391},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26392},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26393},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26394}],"validated_items":[{"id":26391,"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":26392,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26393,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26394,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-05 15:00:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5461,"items_count":4} 
[2026-03-05 15:00:10] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26391,"menu_item_id":89,"quantity":1},{"id":26392,"menu_item_id":396,"quantity":2},{"id":26393,"menu_item_id":61,"quantity":1},{"id":26394,"menu_item_id":5,"quantity":1}]} 
[2026-03-05 15:00:10] local.INFO: PosOrderController::update - Item changes check {"order_id":5461,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["89|1|","396|2|","61|1|","5|1|"],"new_items_map_keys":["89|1|","396|2|","61|1|","5|1|"]} 
[2026-03-05 15:00:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5461,"order_number":"AZS-050326-006"} 
[2026-03-05 15:00:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5461,"order_number":"AZS-050326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-05 15:00:10"} 
[2026-03-05 15:25:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5462,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":26395},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26396},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26397},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26398},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26399}],"validated_items":[{"id":26395,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":26396,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26397,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26398,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26399,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-05 15:25:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5462,"items_count":5} 
[2026-03-05 15:25:16] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26395,"menu_item_id":78,"quantity":1},{"id":26396,"menu_item_id":61,"quantity":1},{"id":26397,"menu_item_id":56,"quantity":1},{"id":26398,"menu_item_id":5,"quantity":1},{"id":26399,"menu_item_id":3,"quantity":1}]} 
[2026-03-05 15:25:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5462,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["78|1|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["78|1|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-03-05 15:25:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5462,"order_number":"AZS-050326-005"} 
[2026-03-05 15:25:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5462,"order_number":"AZS-050326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-05 15:25:16"} 
[2026-03-05 15:25:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":5462,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":26395},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26396},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26397},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26399}],"validated_items":[{"id":26395,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":26396,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26397,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26399,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-05 15:25:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5462,"items_count":4} 
[2026-03-05 15:25:23] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[26398],"items":[{"id":26395,"menu_item_id":78,"quantity":1},{"id":26396,"menu_item_id":61,"quantity":1},{"id":26397,"menu_item_id":56,"quantity":1},{"id":26399,"menu_item_id":3,"quantity":1}]} 
[2026-03-05 15:25:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5462,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["78|1|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["78|1|","61|1|","56|1|","3|1|"]} 
[2026-03-05 15:25:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5462,"order_number":"AZS-050326-005"} 
[2026-03-05 15:25:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050326-005","replaced_order_id":5462} 
[2026-03-05 15:25:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5464,"items_count":4,"items":[{"menu_item_id":78,"quantity":1,"price":4399.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-05 15:25:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5464,"item_index":0,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":4399.0,"discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5464}} 
[2026-03-05 15:25:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5464,"item_index":0,"menu_item_id":78} 
[2026-03-05 15:25:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5464,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5464}} 
[2026-03-05 15:25:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5464,"item_index":1,"menu_item_id":61} 
[2026-03-05 15:25:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5464,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5464}} 
[2026-03-05 15:25:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5464,"item_index":2,"menu_item_id":56} 
[2026-03-05 15:25:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5464,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5464}} 
[2026-03-05 15:25:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5464,"item_index":3,"menu_item_id":3} 
[2026-03-05 15:25:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5462,"new_order_id":5464,"order_number":"AZS-050326-005"} 
[2026-03-05 15:25:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5464,"item_index":0,"item_id":26395} 
[2026-03-05 15:25:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5464,"item_index":1,"item_id":26396} 
[2026-03-05 15:25:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5464,"item_index":2,"item_id":26397} 
[2026-03-05 15:25:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5464,"item_index":3,"item_id":26399} 
[2026-03-05 15:25:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5464,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":26395},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26396},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26397},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26399}],"validated_items":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-05 15:25:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5464,"items_count":4} 
[2026-03-05 15:25:28] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[26410,26411,26412,26413],"items":[{"id":null,"menu_item_id":78,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-05 15:25:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5464,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["78|1|","61|1|","56|1|","3|1|"],"new_items_map_keys":["78|1|","61|1|","56|1|","3|1|"]} 
[2026-03-05 15:25:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5464,"order_number":"AZS-050326-005"} 
[2026-03-05 15:25:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5464,"order_number":"AZS-050326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-05 15:25:28"} 
[2026-03-05 15:27:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5464,"item_index":0,"item_id":26395} 
[2026-03-05 15:27:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5464,"item_index":1,"item_id":26396} 
[2026-03-05 15:27:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5464,"item_index":2,"item_id":26397} 
[2026-03-05 15:27:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5464,"item_index":3,"item_id":26399} 
[2026-03-05 15:27:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5464,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":26395},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26396},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26397},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26399}],"validated_items":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-05 15:27:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5464,"items_count":4} 
[2026-03-05 15:27:44] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[26410,26411,26412,26413],"items":[{"id":null,"menu_item_id":78,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-05 15:27:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5464,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["78|1|","61|1|","56|1|","3|1|"],"new_items_map_keys":["78|1|","61|1|","56|1|","3|1|"]} 
[2026-03-05 15:27:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5464,"order_number":"AZS-050326-005"} 
[2026-03-05 15:27:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5464,"order_number":"AZS-050326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-05 15:27:44"} 
[2026-03-05 15:29:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5464,"item_index":0,"item_id":26395} 
[2026-03-05 15:29:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5464,"item_index":1,"item_id":26396} 
[2026-03-05 15:29:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5464,"item_index":2,"item_id":26397} 
[2026-03-05 15:29:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5464,"item_index":3,"item_id":26399} 
[2026-03-05 15:29:19] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5464,"order_number":"AZS-050326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 15:29:19"} 
[2026-03-05 15:29:19] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5464,"order_number":"AZS-050326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 15:29:19"} 
[2026-03-05 15:29:19] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5464,"order_number":"AZS-050326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 15:29:19"} 
[2026-03-05 15:29:19] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5464,"order_number":"AZS-050326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 15:29:19"} 
[2026-03-05 15:29:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5464,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":26395},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26396},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26397},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26399}],"validated_items":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-05 15:29:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5464,"items_count":4} 
[2026-03-05 15:29:19] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[26410,26411,26412,26413],"items":[{"id":null,"menu_item_id":78,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-05 15:29:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5464,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["78|1|","61|1|","56|1|","3|1|"],"new_items_map_keys":["78|1|","61|1|","56|1|","3|1|"]} 
[2026-03-05 15:29:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5464,"order_number":"AZS-050326-005"} 
[2026-03-05 15:29:19] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5464,"order_number":"AZS-050326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-05 15:29:19","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-05 15:29:19"} 
[2026-03-05 15:29:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5464,"order_number":"AZS-050326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-05 15:29:19"} 
[2026-03-05 15:29:19] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5464,"order_number":"AZS-050326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-05 15:29:19","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5100.00","database_verification_match":true,"timestamp":"2026-03-05 15:29:19"} 
[2026-03-05 15:40:11] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5463,"order_number":"AZS-050326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":7350,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 15:40:11"} 
[2026-03-05 15:40:11] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5463,"order_number":"AZS-050326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":7350,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 15:40:11"} 
[2026-03-05 15:40:11] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5463,"order_number":"AZS-050326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7350,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 15:40:11"} 
[2026-03-05 15:40:11] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5463,"order_number":"AZS-050326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7350,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 15:40:11"} 
[2026-03-05 15:40:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5463,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26400},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":26401},{"menu_item_id":69,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":26402},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":26403},{"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26404},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26405},{"menu_item_id":54,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":26406},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":26407},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26408},{"menu_item_id":9,"quantity":3,"price":229,"discount_percent":0,"notes":null,"id":26409}],"validated_items":[{"id":26400,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26401,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":26402,"menu_item_id":69,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":26403,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":26404,"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26405,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26406,"menu_item_id":54,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":26407,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":26408,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":26409,"menu_item_id":9,"quantity":3,"price":229,"discount_percent":0,"notes":null}]} 
[2026-03-05 15:40:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5463,"items_count":10} 
[2026-03-05 15:40:11] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26400,"menu_item_id":113,"quantity":1},{"id":26401,"menu_item_id":95,"quantity":1},{"id":26402,"menu_item_id":69,"quantity":1},{"id":26403,"menu_item_id":55,"quantity":2},{"id":26404,"menu_item_id":51,"quantity":1},{"id":26405,"menu_item_id":61,"quantity":1},{"id":26406,"menu_item_id":54,"quantity":2},{"id":26407,"menu_item_id":29,"quantity":1},{"id":26408,"menu_item_id":2,"quantity":1},{"id":26409,"menu_item_id":9,"quantity":3}]} 
[2026-03-05 15:40:11] local.INFO: PosOrderController::update - Item changes check {"order_id":5463,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["113|1|","95|1|","69|1|","55|2|","51|1|","61|1|","54|2|","29|1|","2|1|","9|3|"],"new_items_map_keys":["113|1|","95|1|","69|1|","55|2|","51|1|","61|1|","54|2|","29|1|","2|1|","9|3|"]} 
[2026-03-05 15:40:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5463,"order_number":"AZS-050326-001"} 
[2026-03-05 15:40:11] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5463,"order_number":"AZS-050326-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":7350,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-05 15:40:11","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-05 15:40:11"} 
[2026-03-05 15:40:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5463,"order_number":"AZS-050326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-05 15:40:11"} 
[2026-03-05 15:40:11] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5463,"order_number":"AZS-050326-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"7350.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-05 15:40:11","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":7350,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"7350.00","database_verification_match":true,"timestamp":"2026-03-05 15:40:11"} 
[2026-03-05 15:40:28] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5461,"order_number":"AZS-050326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 15:40:28"} 
[2026-03-05 15:40:28] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5461,"order_number":"AZS-050326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 15:40:28"} 
[2026-03-05 15:40:28] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5461,"order_number":"AZS-050326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 15:40:28"} 
[2026-03-05 15:40:28] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5461,"order_number":"AZS-050326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 15:40:28"} 
[2026-03-05 15:40:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5461,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":26391},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26392},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26393},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26394}],"validated_items":[{"id":26391,"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":26392,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26393,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26394,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-05 15:40:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5461,"items_count":4} 
[2026-03-05 15:40:28] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26391,"menu_item_id":89,"quantity":1},{"id":26392,"menu_item_id":396,"quantity":2},{"id":26393,"menu_item_id":61,"quantity":1},{"id":26394,"menu_item_id":5,"quantity":1}]} 
[2026-03-05 15:40:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5461,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["89|1|","396|2|","61|1|","5|1|"],"new_items_map_keys":["89|1|","396|2|","61|1|","5|1|"]} 
[2026-03-05 15:40:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5461,"order_number":"AZS-050326-006"} 
[2026-03-05 15:40:28] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5461,"order_number":"AZS-050326-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-05 15:40:28","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-05 15:40:28"} 
[2026-03-05 15:40:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5461,"order_number":"AZS-050326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-05 15:40:28"} 
[2026-03-05 15:40:28] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5461,"order_number":"AZS-050326-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-05 15:40:28","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-05 15:40:28"} 
[2026-03-05 15:40:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T03:40:34.410Z","date_to":"2026-03-05T15:40:34.410Z","per_page":"100"} 
[2026-03-05 15:40:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":4,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-05 15:40:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T03:40:34.430Z","date_to":"2026-03-05T15:40:34.430Z","per_page":"100"} 
[2026-03-05 15:40:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":4,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-05 15:40:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T03:40:34.410Z","date_to":"2026-03-05T15:40:34.410Z","per_page":"100"} 
[2026-03-05 15:40:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":4,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-05 16:33:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":5466,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-05 16:33:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5466,"items_count":1} 
[2026-03-05 16:33:48] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[26415],"items":[{"id":null,"menu_item_id":96,"quantity":1}]} 
[2026-03-05 16:33:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5466,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["393|1|"],"new_items_map_keys":["96|1|"]} 
[2026-03-05 16:33:48] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5466,"order_number":"AZS-050326-008"} 
[2026-03-05 16:33:48] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050326-008","replaced_order_id":5466} 
[2026-03-05 16:33:48] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5468,"items_count":1,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"}]} 
[2026-03-05 16:33:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5468,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5468}} 
[2026-03-05 16:33:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5468,"item_index":0,"menu_item_id":96} 
[2026-03-05 16:33:48] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5466,"new_order_id":5468,"order_number":"AZS-050326-008"} 
[2026-03-05 16:33:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":5468,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-05 16:33:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5468,"items_count":1} 
[2026-03-05 16:33:53] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[26420],"items":[{"id":null,"menu_item_id":96,"quantity":1}]} 
[2026-03-05 16:33:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5468,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["96|1|"],"new_items_map_keys":["96|1|"]} 
[2026-03-05 16:33:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5468,"order_number":"AZS-050326-008"} 
[2026-03-05 16:33:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5468,"order_number":"AZS-050326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-05 16:33:53"} 
[2026-03-05 16:36:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5465,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26414}],"validated_items":[{"id":26414,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-05 16:36:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5465,"items_count":1} 
[2026-03-05 16:36:53] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26414,"menu_item_id":6,"quantity":2}]} 
[2026-03-05 16:36:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5465,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-05 16:36:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5465,"order_number":"AZS-050326-007"} 
[2026-03-05 16:36:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5465,"order_number":"AZS-050326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-05 16:36:53"} 
[2026-03-05 16:37:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5469,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":26421},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null,"id":26422},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26421,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"id":26422,"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-05 16:37:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5469,"items_count":3} 
[2026-03-05 16:37:27] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26421,"menu_item_id":6,"quantity":2},{"id":26422,"menu_item_id":4,"quantity":1},{"id":null,"menu_item_id":63,"quantity":1}]} 
[2026-03-05 16:37:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5469,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["6|2|","4|1|"],"new_items_map_keys":["6|2|","4|1|","63|1|"]} 
[2026-03-05 16:37:27] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5469,"order_number":"AZS-050326-010"} 
[2026-03-05 16:37:27] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050326-010","replaced_order_id":5469} 
[2026-03-05 16:37:27] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5470,"items_count":3,"items":[{"menu_item_id":6,"quantity":2,"price":"199.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"},{"menu_item_id":63,"quantity":1,"price":"1099.00"}]} 
[2026-03-05 16:37:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5470,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5470}} 
[2026-03-05 16:37:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5470,"item_index":0,"menu_item_id":6} 
[2026-03-05 16:37:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5470,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5470}} 
[2026-03-05 16:37:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5470,"item_index":1,"menu_item_id":4} 
[2026-03-05 16:37:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5470,"item_index":2,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5470}} 
[2026-03-05 16:37:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5470,"item_index":2,"menu_item_id":63} 
[2026-03-05 16:37:27] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5469,"new_order_id":5470,"order_number":"AZS-050326-010"} 
[2026-03-05 16:41:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5465,"order_number":"AZS-050326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 16:41:27"} 
[2026-03-05 16:41:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5465,"order_number":"AZS-050326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 16:41:27"} 
[2026-03-05 16:41:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5465,"order_number":"AZS-050326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 16:41:27"} 
[2026-03-05 16:41:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5465,"order_number":"AZS-050326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 16:41:27"} 
[2026-03-05 16:41:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5465,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26414}],"validated_items":[{"id":26414,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-05 16:41:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5465,"items_count":1} 
[2026-03-05 16:41:27] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26414,"menu_item_id":6,"quantity":2}]} 
[2026-03-05 16:41:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5465,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-05 16:41:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5465,"order_number":"AZS-050326-007"} 
[2026-03-05 16:41:27] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5465,"order_number":"AZS-050326-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-05 16:41:27","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-05 16:41:27"} 
[2026-03-05 16:41:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5465,"order_number":"AZS-050326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-05 16:41:27"} 
[2026-03-05 16:41:27] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5465,"order_number":"AZS-050326-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-05 16:41:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-05 16:41:27"} 
[2026-03-05 17:13:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5470,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null,"id":26423},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null,"id":26424},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":26425}],"validated_items":[{"id":26423,"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null},{"id":26424,"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null},{"id":26425,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-05 17:13:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5470,"items_count":3} 
[2026-03-05 17:13:39] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26423,"menu_item_id":6,"quantity":3},{"id":26424,"menu_item_id":4,"quantity":1},{"id":26425,"menu_item_id":63,"quantity":1}]} 
[2026-03-05 17:13:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5470,"has_item_changes":true,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["6|2|","4|1|","63|1|"],"new_items_map_keys":["6|3|","4|1|","63|1|"]} 
[2026-03-05 17:13:39] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5470,"order_number":"AZS-050326-010"} 
[2026-03-05 17:13:39] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050326-010","replaced_order_id":5470} 
[2026-03-05 17:13:39] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5472,"items_count":3,"items":[{"menu_item_id":6,"quantity":3,"price":"199.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"},{"menu_item_id":63,"quantity":1,"price":"1099.00"}]} 
[2026-03-05 17:13:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5472,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5472}} 
[2026-03-05 17:13:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5472,"item_index":0,"menu_item_id":6} 
[2026-03-05 17:13:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5472,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5472}} 
[2026-03-05 17:13:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5472,"item_index":1,"menu_item_id":4} 
[2026-03-05 17:13:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5472,"item_index":2,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5472}} 
[2026-03-05 17:13:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5472,"item_index":2,"menu_item_id":63} 
[2026-03-05 17:13:39] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5470,"new_order_id":5472,"order_number":"AZS-050326-010"} 
[2026-03-05 17:23:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5471,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":26426},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":26427}],"validated_items":[{"id":26426,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":26427,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-05 17:23:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5471,"items_count":2} 
[2026-03-05 17:23:25] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26426,"menu_item_id":85,"quantity":1},{"id":26427,"menu_item_id":13,"quantity":2}]} 
[2026-03-05 17:23:25] local.INFO: PosOrderController::update - Item changes check {"order_id":5471,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["85|1|","13|2|"],"new_items_map_keys":["85|1|","13|2|"]} 
[2026-03-05 17:23:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5471,"order_number":"AZS-050326-011"} 
[2026-03-05 17:23:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5471,"order_number":"AZS-050326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-05 17:23:25"} 
[2026-03-05 17:25:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5472,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"discount_percent":0,"notes":null,"id":26428},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null,"id":26429},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":26430}],"validated_items":[{"id":26428,"menu_item_id":6,"quantity":4,"discount_percent":0,"notes":null},{"id":26429,"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null},{"id":26430,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-05 17:25:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5472,"items_count":3} 
[2026-03-05 17:25:44] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26428,"menu_item_id":6,"quantity":4},{"id":26429,"menu_item_id":4,"quantity":1},{"id":26430,"menu_item_id":63,"quantity":1}]} 
[2026-03-05 17:25:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5472,"has_item_changes":true,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["6|3|","4|1|","63|1|"],"new_items_map_keys":["6|4|","4|1|","63|1|"]} 
[2026-03-05 17:25:44] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5472,"order_number":"AZS-050326-010"} 
[2026-03-05 17:25:44] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050326-010","replaced_order_id":5472} 
[2026-03-05 17:25:44] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5474,"items_count":3,"items":[{"menu_item_id":6,"quantity":4,"price":"199.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"},{"menu_item_id":63,"quantity":1,"price":"1099.00"}]} 
[2026-03-05 17:25:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5474,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5474}} 
[2026-03-05 17:25:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5474,"item_index":0,"menu_item_id":6} 
[2026-03-05 17:25:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5474,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5474}} 
[2026-03-05 17:25:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5474,"item_index":1,"menu_item_id":4} 
[2026-03-05 17:25:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5474,"item_index":2,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5474}} 
[2026-03-05 17:25:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5474,"item_index":2,"menu_item_id":63} 
[2026-03-05 17:25:44] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5472,"new_order_id":5474,"order_number":"AZS-050326-010"} 
[2026-03-05 17:26:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5467,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":26416},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":26417},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26418},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":26419},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26416,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":26417,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":26418,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26419,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-05 17:26:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5467,"items_count":5} 
[2026-03-05 17:26:39] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26416,"menu_item_id":114,"quantity":1},{"id":26417,"menu_item_id":396,"quantity":3},{"id":26418,"menu_item_id":61,"quantity":1},{"id":26419,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-05 17:26:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5467,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["114|1|","396|3|","61|1|","5|1|"],"new_items_map_keys":["114|1|","396|3|","61|1|","5|2|","3|1|"]} 
[2026-03-05 17:26:39] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5467,"order_number":"AZS-050326-009"} 
[2026-03-05 17:26:39] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050326-009","replaced_order_id":5467} 
[2026-03-05 17:26:39] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5475,"items_count":5,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-05 17:26:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5475,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5475}} 
[2026-03-05 17:26:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5475,"item_index":0,"menu_item_id":114} 
[2026-03-05 17:26:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5475,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5475}} 
[2026-03-05 17:26:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5475,"item_index":1,"menu_item_id":396} 
[2026-03-05 17:26:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5475,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5475}} 
[2026-03-05 17:26:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5475,"item_index":2,"menu_item_id":61} 
[2026-03-05 17:26:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5475,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5475}} 
[2026-03-05 17:26:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5475,"item_index":3,"menu_item_id":5} 
[2026-03-05 17:26:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5475,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5475}} 
[2026-03-05 17:26:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5475,"item_index":4,"menu_item_id":3} 
[2026-03-05 17:26:39] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5467,"new_order_id":5475,"order_number":"AZS-050326-009"} 
[2026-03-05 17:26:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5475,"item_index":0,"item_id":26416} 
[2026-03-05 17:26:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5475,"item_index":1,"item_id":26417} 
[2026-03-05 17:26:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5475,"item_index":2,"item_id":26418} 
[2026-03-05 17:26:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5475,"item_index":3,"item_id":26419} 
[2026-03-05 17:26:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5475,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26416},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26417},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26418},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26419},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-05 17:26:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5475,"items_count":5} 
[2026-03-05 17:26:49] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[26435,26436,26437,26438,26439],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-05 17:26:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5475,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|1|","396|3|","61|1|","5|2|","3|1|"],"new_items_map_keys":["114|1|","396|3|","61|1|","5|1|","3|1|"]} 
[2026-03-05 17:26:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5475,"order_number":"AZS-050326-009"} 
[2026-03-05 17:26:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050326-009","replaced_order_id":5475} 
[2026-03-05 17:26:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5476,"items_count":5,"items":[{"menu_item_id":114,"quantity":1,"price":2299.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-05 17:26:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5476,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5476}} 
[2026-03-05 17:26:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5476,"item_index":0,"menu_item_id":114} 
[2026-03-05 17:26:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5476,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5476}} 
[2026-03-05 17:26:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5476,"item_index":1,"menu_item_id":396} 
[2026-03-05 17:26:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5476,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5476}} 
[2026-03-05 17:26:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5476,"item_index":2,"menu_item_id":61} 
[2026-03-05 17:26:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5476,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5476}} 
[2026-03-05 17:26:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5476,"item_index":3,"menu_item_id":5} 
[2026-03-05 17:26:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5476,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5476}} 
[2026-03-05 17:26:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5476,"item_index":4,"menu_item_id":3} 
[2026-03-05 17:26:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5475,"new_order_id":5476,"order_number":"AZS-050326-009"} 
[2026-03-05 17:26:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5476,"item_index":0,"item_id":26416} 
[2026-03-05 17:26:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5476,"item_index":1,"item_id":26417} 
[2026-03-05 17:26:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5476,"item_index":2,"item_id":26418} 
[2026-03-05 17:26:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5476,"item_index":3,"item_id":26419} 
[2026-03-05 17:26:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5476,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26416},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26417},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26418},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26419},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-05 17:26:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5476,"items_count":5} 
[2026-03-05 17:26:54] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[26440,26441,26442,26443,26444],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-05 17:26:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5476,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|1|","396|3|","61|1|","5|1|","3|1|"],"new_items_map_keys":["114|1|","396|3|","61|1|","5|1|","3|1|"]} 
[2026-03-05 17:26:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5476,"order_number":"AZS-050326-009"} 
[2026-03-05 17:26:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5476,"order_number":"AZS-050326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-05 17:26:54"} 
[2026-03-05 17:28:20] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5476,"item_index":0,"item_id":26416} 
[2026-03-05 17:28:20] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5476,"item_index":1,"item_id":26417} 
[2026-03-05 17:28:20] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5476,"item_index":2,"item_id":26418} 
[2026-03-05 17:28:20] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5476,"item_index":3,"item_id":26419} 
[2026-03-05 17:28:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5476,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":26416},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":26417},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26418},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26419},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-05 17:28:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5476,"items_count":5} 
[2026-03-05 17:28:20] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[26440,26441,26442,26443,26444],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-05 17:28:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5476,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|1|","396|3|","61|1|","5|1|","3|1|"],"new_items_map_keys":["114|1|","396|3|","61|1|","5|1|","3|1|"]} 
[2026-03-05 17:28:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5476,"order_number":"AZS-050326-009"} 
[2026-03-05 17:28:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5476,"order_number":"AZS-050326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-05 17:28:20"} 
[2026-03-05 17:31:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5474,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":26432},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":26433},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":26434}],"validated_items":[{"id":26432,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":26433,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"id":26434,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null}]} 
[2026-03-05 17:31:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5474,"items_count":3} 
[2026-03-05 17:31:17] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26432,"menu_item_id":6,"quantity":4},{"id":26433,"menu_item_id":4,"quantity":1},{"id":26434,"menu_item_id":63,"quantity":1}]} 
[2026-03-05 17:31:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5474,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["6|4|","4|1|","63|1|"],"new_items_map_keys":["6|4|","4|1|","63|1|"]} 
[2026-03-05 17:31:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5474,"order_number":"AZS-050326-010"} 
[2026-03-05 17:31:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5474,"order_number":"AZS-050326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-05 17:31:17"} 
[2026-03-05 17:32:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T05:32:00.865Z","date_to":"2026-03-05T17:32:00.865Z","per_page":"100"} 
[2026-03-05 17:32:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T05:32:00.851Z","date_to":"2026-03-05T17:32:00.851Z","per_page":"100"} 
[2026-03-05 17:32:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["pending","pending","pending","changed","changed","changed","pending","changed","changed","pending","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":10,"paid_count":7,"unpaid_count":5,"unique_order_numbers":12} 
[2026-03-05 17:32:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["pending","pending","pending","changed","changed","changed","pending","changed","changed","pending","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":10,"paid_count":7,"unpaid_count":5,"unique_order_numbers":12} 
[2026-03-05 17:32:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T05:32:00.851Z","date_to":"2026-03-05T17:32:00.851Z","per_page":"100"} 
[2026-03-05 17:32:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["pending","pending","pending","changed","changed","changed","pending","changed","changed","pending","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":10,"paid_count":7,"unpaid_count":5,"unique_order_numbers":12} 
[2026-03-05 17:32:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5474,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":5,"discount_percent":0,"notes":null,"id":26432},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null,"id":26433},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":26434}],"validated_items":[{"id":26432,"menu_item_id":6,"quantity":5,"discount_percent":0,"notes":null},{"id":26433,"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null},{"id":26434,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-05 17:32:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5474,"items_count":3} 
[2026-03-05 17:32:41] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26432,"menu_item_id":6,"quantity":5},{"id":26433,"menu_item_id":4,"quantity":1},{"id":26434,"menu_item_id":63,"quantity":1}]} 
[2026-03-05 17:32:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5474,"has_item_changes":true,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["6|4|","4|1|","63|1|"],"new_items_map_keys":["6|5|","4|1|","63|1|"]} 
[2026-03-05 17:32:41] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5474,"order_number":"AZS-050326-010"} 
[2026-03-05 17:32:41] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050326-010","replaced_order_id":5474} 
[2026-03-05 17:32:41] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5477,"items_count":3,"items":[{"menu_item_id":6,"quantity":5,"price":"199.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"},{"menu_item_id":63,"quantity":1,"price":"1099.00"}]} 
[2026-03-05 17:32:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5477,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":5,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":995.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5477}} 
[2026-03-05 17:32:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5477,"item_index":0,"menu_item_id":6} 
[2026-03-05 17:32:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5477,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5477}} 
[2026-03-05 17:32:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5477,"item_index":1,"menu_item_id":4} 
[2026-03-05 17:32:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5477,"item_index":2,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5477}} 
[2026-03-05 17:32:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5477,"item_index":2,"menu_item_id":63} 
[2026-03-05 17:32:41] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5474,"new_order_id":5477,"order_number":"AZS-050326-010"} 
[2026-03-05 17:32:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5477,"item_index":0,"item_id":26432} 
[2026-03-05 17:32:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5477,"item_index":1,"item_id":26433} 
[2026-03-05 17:32:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5477,"item_index":2,"item_id":26434} 
[2026-03-05 17:32:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":5477,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":5,"price":199,"discount_percent":0,"notes":null,"id":26432},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":26433},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":26434}],"validated_items":[{"menu_item_id":6,"quantity":5,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null}]} 
[2026-03-05 17:32:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5477,"items_count":3} 
[2026-03-05 17:32:49] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[26445,26446,26447],"items":[{"id":null,"menu_item_id":6,"quantity":5},{"id":null,"menu_item_id":4,"quantity":1},{"id":null,"menu_item_id":63,"quantity":1}]} 
[2026-03-05 17:32:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5477,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["6|5|","4|1|","63|1|"],"new_items_map_keys":["6|5|","4|1|","63|1|"]} 
[2026-03-05 17:32:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5477,"order_number":"AZS-050326-010"} 
[2026-03-05 17:32:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5477,"order_number":"AZS-050326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-05 17:32:49"} 
[2026-03-05 17:40:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5473,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":26431}],"validated_items":[{"id":26431,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-05 17:40:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5473,"items_count":1} 
[2026-03-05 17:40:24] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26431,"menu_item_id":13,"quantity":2}]} 
[2026-03-05 17:40:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5473,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|2|"]} 
[2026-03-05 17:40:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5473,"order_number":"AZS-050326-012"} 
[2026-03-05 17:40:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5473,"order_number":"AZS-050326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-05 17:40:24"} 
[2026-03-05 17:43:46] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5473,"order_number":"AZS-050326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":523,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 17:43:46"} 
[2026-03-05 17:43:46] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5473,"order_number":"AZS-050326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":523,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 17:43:46"} 
[2026-03-05 17:43:46] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5473,"order_number":"AZS-050326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":523,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 17:43:46"} 
[2026-03-05 17:43:46] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5473,"order_number":"AZS-050326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":523,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 17:43:46"} 
[2026-03-05 17:43:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5473,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":26431}],"validated_items":[{"id":26431,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-05 17:43:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5473,"items_count":1} 
[2026-03-05 17:43:46] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26431,"menu_item_id":13,"quantity":2}]} 
[2026-03-05 17:43:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5473,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|2|"]} 
[2026-03-05 17:43:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5473,"order_number":"AZS-050326-012"} 
[2026-03-05 17:43:46] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5473,"order_number":"AZS-050326-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":523,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-05 17:43:46","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-05 17:43:46"} 
[2026-03-05 17:43:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5473,"order_number":"AZS-050326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-05 17:43:46"} 
[2026-03-05 17:43:46] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5473,"order_number":"AZS-050326-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"523.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-05 17:43:46","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":523,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"523.00","database_verification_match":true,"timestamp":"2026-03-05 17:43:46"} 
[2026-03-05 17:47:17] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5471,"order_number":"AZS-050326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 17:47:17"} 
[2026-03-05 17:47:17] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5471,"order_number":"AZS-050326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 17:47:17"} 
[2026-03-05 17:47:17] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5471,"order_number":"AZS-050326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 17:47:17"} 
[2026-03-05 17:47:17] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5471,"order_number":"AZS-050326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 17:47:17"} 
[2026-03-05 17:47:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5471,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":26426},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":26427}],"validated_items":[{"id":26426,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":26427,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-05 17:47:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5471,"items_count":2} 
[2026-03-05 17:47:17] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26426,"menu_item_id":85,"quantity":1},{"id":26427,"menu_item_id":13,"quantity":2}]} 
[2026-03-05 17:47:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5471,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["85|1|","13|2|"],"new_items_map_keys":["85|1|","13|2|"]} 
[2026-03-05 17:47:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5471,"order_number":"AZS-050326-011"} 
[2026-03-05 17:47:17] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5471,"order_number":"AZS-050326-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-05 17:47:17","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-05 17:47:17"} 
[2026-03-05 17:47:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5471,"order_number":"AZS-050326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-05 17:47:17"} 
[2026-03-05 17:47:17] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5471,"order_number":"AZS-050326-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-05 17:47:17","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1500.00","database_verification_match":true,"timestamp":"2026-03-05 17:47:17"} 
[2026-03-05 17:52:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5476,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":26440},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":26441},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26442},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26443},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":26444},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":26440,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":26441,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":26442,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26443,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":26444,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-05 17:52:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5476,"items_count":6} 
[2026-03-05 17:52:56] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26440,"menu_item_id":114,"quantity":1},{"id":26441,"menu_item_id":396,"quantity":3},{"id":26442,"menu_item_id":61,"quantity":1},{"id":26443,"menu_item_id":5,"quantity":1},{"id":26444,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":13,"quantity":3}]} 
[2026-03-05 17:52:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5476,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["114|1|","396|3|","61|1|","5|1|","3|1|"],"new_items_map_keys":["114|1|","396|3|","61|1|","5|1|","3|1|","13|3|"]} 
[2026-03-05 17:52:56] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5476,"order_number":"AZS-050326-009"} 
[2026-03-05 17:52:56] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050326-009","replaced_order_id":5476} 
[2026-03-05 17:52:56] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5478,"items_count":6,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":13,"quantity":3,"price":"249.00"}]} 
[2026-03-05 17:52:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5478,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5478}} 
[2026-03-05 17:52:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5478,"item_index":0,"menu_item_id":114} 
[2026-03-05 17:52:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5478,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5478}} 
[2026-03-05 17:52:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5478,"item_index":1,"menu_item_id":396} 
[2026-03-05 17:52:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5478,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5478}} 
[2026-03-05 17:52:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5478,"item_index":2,"menu_item_id":61} 
[2026-03-05 17:52:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5478,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5478}} 
[2026-03-05 17:52:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5478,"item_index":3,"menu_item_id":5} 
[2026-03-05 17:52:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5478,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5478}} 
[2026-03-05 17:52:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5478,"item_index":4,"menu_item_id":3} 
[2026-03-05 17:52:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5478,"item_index":5,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5478}} 
[2026-03-05 17:52:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5478,"item_index":5,"menu_item_id":13} 
[2026-03-05 17:52:56] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5476,"new_order_id":5478,"order_number":"AZS-050326-009"} 
[2026-03-05 17:53:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5478,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26448},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26449},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26450},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26451},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26452},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":26453}],"validated_items":[{"id":26448,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":26449,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26450,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26451,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26452,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":26453,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-05 17:53:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5478,"items_count":6} 
[2026-03-05 17:53:38] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26448,"menu_item_id":114,"quantity":1},{"id":26449,"menu_item_id":396,"quantity":3},{"id":26450,"menu_item_id":61,"quantity":1},{"id":26451,"menu_item_id":5,"quantity":1},{"id":26452,"menu_item_id":3,"quantity":1},{"id":26453,"menu_item_id":13,"quantity":3}]} 
[2026-03-05 17:53:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5478,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","396|3|","61|1|","5|1|","3|1|","13|3|"],"new_items_map_keys":["114|1|","396|3|","61|1|","5|1|","3|1|","13|3|"]} 
[2026-03-05 17:53:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5478,"order_number":"AZS-050326-009"} 
[2026-03-05 17:53:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5478,"order_number":"AZS-050326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-05 17:53:38"} 
[2026-03-05 17:58:06] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5477,"order_number":"AZS-050326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 17:58:06"} 
[2026-03-05 17:58:06] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5477,"order_number":"AZS-050326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 17:58:06"} 
[2026-03-05 17:58:06] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5477,"order_number":"AZS-050326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 17:58:06"} 
[2026-03-05 17:58:06] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5477,"order_number":"AZS-050326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 17:58:06"} 
[2026-03-05 17:58:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5477,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":5,"price":199,"discount_percent":0,"notes":null,"id":26445},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":26446},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":26447}],"validated_items":[{"id":26445,"menu_item_id":6,"quantity":5,"price":199,"discount_percent":0,"notes":null},{"id":26446,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"id":26447,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null}]} 
[2026-03-05 17:58:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5477,"items_count":3} 
[2026-03-05 17:58:06] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26445,"menu_item_id":6,"quantity":5},{"id":26446,"menu_item_id":4,"quantity":1},{"id":26447,"menu_item_id":63,"quantity":1}]} 
[2026-03-05 17:58:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5477,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["6|5|","4|1|","63|1|"],"new_items_map_keys":["6|5|","4|1|","63|1|"]} 
[2026-03-05 17:58:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5477,"order_number":"AZS-050326-010"} 
[2026-03-05 17:58:06] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5477,"order_number":"AZS-050326-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-05 17:58:06","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-05 17:58:06"} 
[2026-03-05 17:58:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5477,"order_number":"AZS-050326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-05 17:58:06"} 
[2026-03-05 17:58:06] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5477,"order_number":"AZS-050326-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-05 17:58:06","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-03-05 17:58:06"} 
[2026-03-05 17:58:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T05:58:08.730Z","date_to":"2026-03-05T17:58:08.730Z","per_page":"100"} 
[2026-03-05 17:58:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["pending","paid","paid","paid","changed","changed","changed","changed","pending","changed","changed","changed","pending","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":12,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-05 17:58:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T05:58:08.749Z","date_to":"2026-03-05T17:58:08.749Z","per_page":"100"} 
[2026-03-05 17:58:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["pending","paid","paid","paid","changed","changed","changed","changed","pending","changed","changed","changed","pending","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":12,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-05 17:58:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T05:58:08.730Z","date_to":"2026-03-05T17:58:08.730Z","per_page":"100"} 
[2026-03-05 17:58:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["pending","paid","paid","paid","changed","changed","changed","changed","pending","changed","changed","changed","pending","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":12,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-05 18:42:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5480,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":26455},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":26456},{"menu_item_id":49,"quantity":1,"discount_percent":0,"notes":null,"id":26457},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26458},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26455,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":26456,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":26457,"menu_item_id":49,"quantity":1,"discount_percent":0,"notes":null},{"id":26458,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-05 18:42:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5480,"items_count":5} 
[2026-03-05 18:42:02] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26455,"menu_item_id":96,"quantity":1},{"id":26456,"menu_item_id":396,"quantity":1},{"id":26457,"menu_item_id":49,"quantity":1},{"id":26458,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-05 18:42:02] local.INFO: PosOrderController::update - Item changes check {"order_id":5480,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["96|1|","396|1|","49|1|","61|1|"],"new_items_map_keys":["96|1|","396|1|","49|1|","61|1|","3|1|"]} 
[2026-03-05 18:42:02] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5480,"order_number":"AZS-050326-014"} 
[2026-03-05 18:42:02] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050326-014","replaced_order_id":5480} 
[2026-03-05 18:42:02] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5481,"items_count":5,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":49,"quantity":1,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-05 18:42:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5481,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5481}} 
[2026-03-05 18:42:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5481,"item_index":0,"menu_item_id":96} 
[2026-03-05 18:42:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5481,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5481}} 
[2026-03-05 18:42:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5481,"item_index":1,"menu_item_id":396} 
[2026-03-05 18:42:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5481,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5481}} 
[2026-03-05 18:42:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5481,"item_index":2,"menu_item_id":49} 
[2026-03-05 18:42:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5481,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5481}} 
[2026-03-05 18:42:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5481,"item_index":3,"menu_item_id":61} 
[2026-03-05 18:42:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5481,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5481}} 
[2026-03-05 18:42:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5481,"item_index":4,"menu_item_id":3} 
[2026-03-05 18:42:02] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5480,"new_order_id":5481,"order_number":"AZS-050326-014"} 
[2026-03-05 19:13:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5481,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26459},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26460},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":26461},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26462},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26463}],"validated_items":[{"id":26459,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26460,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":26461,"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":26462,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26463,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-05 19:13:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5481,"items_count":5} 
[2026-03-05 19:13:50] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26459,"menu_item_id":96,"quantity":1},{"id":26460,"menu_item_id":396,"quantity":1},{"id":26461,"menu_item_id":49,"quantity":1},{"id":26462,"menu_item_id":61,"quantity":1},{"id":26463,"menu_item_id":3,"quantity":1}]} 
[2026-03-05 19:13:50] local.INFO: PosOrderController::update - Item changes check {"order_id":5481,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","396|1|","49|1|","61|1|","3|1|"],"new_items_map_keys":["96|1|","396|1|","49|1|","61|1|","3|1|"]} 
[2026-03-05 19:13:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5481,"order_number":"AZS-050326-014"} 
[2026-03-05 19:13:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5481,"order_number":"AZS-050326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-05 19:13:50"} 
[2026-03-05 19:17:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5478,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26448},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26449},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26450},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26451},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26452},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":26453}],"validated_items":[{"id":26448,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":26449,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26450,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26451,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26452,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":26453,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-05 19:17:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5478,"items_count":6} 
[2026-03-05 19:17:32] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26448,"menu_item_id":114,"quantity":1},{"id":26449,"menu_item_id":396,"quantity":3},{"id":26450,"menu_item_id":61,"quantity":1},{"id":26451,"menu_item_id":5,"quantity":1},{"id":26452,"menu_item_id":3,"quantity":1},{"id":26453,"menu_item_id":13,"quantity":3}]} 
[2026-03-05 19:17:32] local.INFO: PosOrderController::update - Item changes check {"order_id":5478,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","396|3|","61|1|","5|1|","3|1|","13|3|"],"new_items_map_keys":["114|1|","396|3|","61|1|","5|1|","3|1|","13|3|"]} 
[2026-03-05 19:17:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5478,"order_number":"AZS-050326-009"} 
[2026-03-05 19:17:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5478,"order_number":"AZS-050326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-05 19:17:32"} 
[2026-03-05 19:21:12] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5478,"order_number":"AZS-050326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 19:21:12"} 
[2026-03-05 19:21:12] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5478,"order_number":"AZS-050326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 19:21:12"} 
[2026-03-05 19:21:12] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5478,"order_number":"AZS-050326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 19:21:12"} 
[2026-03-05 19:21:12] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5478,"order_number":"AZS-050326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 19:21:12"} 
[2026-03-05 19:21:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":5478,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26448},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26449},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26451},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26452},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":26453}],"validated_items":[{"id":26448,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":26449,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26451,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26452,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":26453,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-05 19:21:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5478,"items_count":5} 
[2026-03-05 19:21:12] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[26450],"items":[{"id":26448,"menu_item_id":114,"quantity":1},{"id":26449,"menu_item_id":396,"quantity":3},{"id":26451,"menu_item_id":5,"quantity":1},{"id":26452,"menu_item_id":3,"quantity":1},{"id":26453,"menu_item_id":13,"quantity":1}]} 
[2026-03-05 19:21:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5478,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["114|1|","396|3|","61|1|","5|1|","3|1|","13|3|"],"new_items_map_keys":["114|1|","396|3|","5|1|","3|1|","13|1|"]} 
[2026-03-05 19:21:12] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5478,"order_number":"AZS-050326-009","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3500,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-05 19:21:12","original_payment_amount":"0.00","grand_total":3285.0,"timestamp":"2026-03-05 19:21:12"} 
[2026-03-05 19:21:12] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5478,"order_number":"AZS-050326-009"} 
[2026-03-05 19:21:12] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050326-009","replaced_order_id":5478} 
[2026-03-05 19:21:12] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5478,"new_order_id":5482,"order_number":"AZS-050326-009","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3500.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-05 19:21:12","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-05 19:21:12"} 
[2026-03-05 19:21:12] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5482,"items_count":5,"items":[{"menu_item_id":114,"quantity":1,"price":2299.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0},{"menu_item_id":13,"quantity":1,"price":249.0}]} 
[2026-03-05 19:21:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5482,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5482}} 
[2026-03-05 19:21:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5482,"item_index":0,"menu_item_id":114} 
[2026-03-05 19:21:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5482,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5482}} 
[2026-03-05 19:21:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5482,"item_index":1,"menu_item_id":396} 
[2026-03-05 19:21:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5482,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5482}} 
[2026-03-05 19:21:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5482,"item_index":2,"menu_item_id":5} 
[2026-03-05 19:21:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5482,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5482}} 
[2026-03-05 19:21:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5482,"item_index":3,"menu_item_id":3} 
[2026-03-05 19:21:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5482,"item_index":4,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5482}} 
[2026-03-05 19:21:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5482,"item_index":4,"menu_item_id":13} 
[2026-03-05 19:21:12] local.ERROR: Error tracking recipe usage for order 5482: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5482, 114, 77, 1, 100, 0.00, Order #AZS-050326-009 - 1x Chicken Shinwari - Full, 2026-03-05 19:21:12, 2026-03-05 19:21:12))  
[2026-03-05 19:21:12] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5478,"new_order_id":5482,"order_number":"AZS-050326-009"} 
[2026-03-05 19:21:13] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5478,"new_order_id":5482,"order_number":"AZS-050326-009","route":"api/orders/5478"} 
[2026-03-05 19:27:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5481,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26459},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26460},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":26461},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26462},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26463}],"validated_items":[{"id":26459,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26460,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":26461,"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":26462,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26463,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-05 19:27:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5481,"items_count":5} 
[2026-03-05 19:27:34] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26459,"menu_item_id":96,"quantity":1},{"id":26460,"menu_item_id":396,"quantity":1},{"id":26461,"menu_item_id":49,"quantity":1},{"id":26462,"menu_item_id":61,"quantity":1},{"id":26463,"menu_item_id":3,"quantity":1}]} 
[2026-03-05 19:27:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5481,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","396|1|","49|1|","61|1|","3|1|"],"new_items_map_keys":["96|1|","396|1|","49|1|","61|1|","3|1|"]} 
[2026-03-05 19:27:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5481,"order_number":"AZS-050326-014"} 
[2026-03-05 19:27:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5481,"order_number":"AZS-050326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-05 19:27:34"} 
[2026-03-05 19:28:01] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5481,"order_number":"AZS-050326-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 19:28:01"} 
[2026-03-05 19:28:01] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5481,"order_number":"AZS-050326-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 19:28:01"} 
[2026-03-05 19:28:01] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5481,"order_number":"AZS-050326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 19:28:01"} 
[2026-03-05 19:28:01] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5481,"order_number":"AZS-050326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 19:28:01"} 
[2026-03-05 19:28:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":5481,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26459},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26460},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":26461},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26463}],"validated_items":[{"id":26459,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26460,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":26461,"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":26463,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-05 19:28:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5481,"items_count":4} 
[2026-03-05 19:28:01] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[26462],"items":[{"id":26459,"menu_item_id":96,"quantity":1},{"id":26460,"menu_item_id":396,"quantity":1},{"id":26461,"menu_item_id":49,"quantity":1},{"id":26463,"menu_item_id":3,"quantity":1}]} 
[2026-03-05 19:28:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5481,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["96|1|","396|1|","49|1|","61|1|","3|1|"],"new_items_map_keys":["96|1|","396|1|","49|1|","3|1|"]} 
[2026-03-05 19:28:01] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5481,"order_number":"AZS-050326-014","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":2000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-05 19:28:01","original_payment_amount":"0.00","grand_total":1720.0,"timestamp":"2026-03-05 19:28:01"} 
[2026-03-05 19:28:01] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5481,"order_number":"AZS-050326-014"} 
[2026-03-05 19:28:01] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050326-014","replaced_order_id":5481} 
[2026-03-05 19:28:01] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5481,"new_order_id":5483,"order_number":"AZS-050326-014","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"2000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-05 19:28:01","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-05 19:28:01"} 
[2026-03-05 19:28:01] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5483,"items_count":4,"items":[{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":49,"quantity":1,"price":70.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-05 19:28:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5483,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5483}} 
[2026-03-05 19:28:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5483,"item_index":0,"menu_item_id":96} 
[2026-03-05 19:28:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5483,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5483}} 
[2026-03-05 19:28:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5483,"item_index":1,"menu_item_id":396} 
[2026-03-05 19:28:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5483,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":1,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5483}} 
[2026-03-05 19:28:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5483,"item_index":2,"menu_item_id":49} 
[2026-03-05 19:28:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5483,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5483}} 
[2026-03-05 19:28:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5483,"item_index":3,"menu_item_id":3} 
[2026-03-05 19:28:01] local.ERROR: Error tracking recipe usage for order 5483: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5483, 96, 77, 1, 1, 0.00, Order #AZS-050326-014 - 1x Chicken Karahi - Half, 2026-03-05 19:28:01, 2026-03-05 19:28:01))  
[2026-03-05 19:28:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5481,"new_order_id":5483,"order_number":"AZS-050326-014"} 
[2026-03-05 19:28:01] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5481,"new_order_id":5483,"order_number":"AZS-050326-014","route":"api/orders/5481"} 
[2026-03-05 19:36:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T07:36:08.648Z","date_to":"2026-03-05T19:36:08.648Z","per_page":"100"} 
[2026-03-05 19:36:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T07:36:08.632Z","date_to":"2026-03-05T19:36:08.632Z","per_page":"100"} 
[2026-03-05 19:36:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-014","AZS-050326-014","AZS-050326-014","AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["paid","changed","changed","pending","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","pending","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":15,"paid_count":12,"unpaid_count":2,"unique_order_numbers":14} 
[2026-03-05 19:36:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-014","AZS-050326-014","AZS-050326-014","AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["paid","changed","changed","pending","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","pending","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":15,"paid_count":12,"unpaid_count":2,"unique_order_numbers":14} 
[2026-03-05 19:36:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T07:36:08.632Z","date_to":"2026-03-05T19:36:08.632Z","per_page":"100"} 
[2026-03-05 19:36:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-014","AZS-050326-014","AZS-050326-014","AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["paid","changed","changed","pending","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","pending","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":15,"paid_count":12,"unpaid_count":2,"unique_order_numbers":14} 
[2026-03-05 21:07:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5484,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":26473},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":26474},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26475},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26473,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":26474,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":26475,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-05 21:07:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5484,"items_count":6} 
[2026-03-05 21:07:29] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26473,"menu_item_id":62,"quantity":1},{"id":26474,"menu_item_id":396,"quantity":2},{"id":26475,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":416,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":412,"quantity":1}]} 
[2026-03-05 21:07:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5484,"has_item_changes":true,"old_items_count":3,"new_items_count":6,"old_items_map_keys":["62|1|","396|2|","61|1|"],"new_items_map_keys":["62|1|","396|2|","61|1|","416|1|","5|1|","412|1|"]} 
[2026-03-05 21:07:29] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5484,"order_number":"AZS-050326-015"} 
[2026-03-05 21:07:29] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050326-015","replaced_order_id":5484} 
[2026-03-05 21:07:29] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5487,"items_count":6,"items":[{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":416,"quantity":1,"price":"70.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":412,"quantity":1,"price":"220.00"}]} 
[2026-03-05 21:07:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5487,"item_index":0,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5487}} 
[2026-03-05 21:07:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5487,"item_index":0,"menu_item_id":62} 
[2026-03-05 21:07:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5487,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5487}} 
[2026-03-05 21:07:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5487,"item_index":1,"menu_item_id":396} 
[2026-03-05 21:07:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5487,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5487}} 
[2026-03-05 21:07:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5487,"item_index":2,"menu_item_id":61} 
[2026-03-05 21:07:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5487,"item_index":3,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5487}} 
[2026-03-05 21:07:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5487,"item_index":3,"menu_item_id":416} 
[2026-03-05 21:07:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5487,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5487}} 
[2026-03-05 21:07:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5487,"item_index":4,"menu_item_id":5} 
[2026-03-05 21:07:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5487,"item_index":5,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":1,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":220.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5487}} 
[2026-03-05 21:07:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5487,"item_index":5,"menu_item_id":412} 
[2026-03-05 21:07:29] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5484,"new_order_id":5487,"order_number":"AZS-050326-015"} 
[2026-03-05 21:11:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5487,"item_index":0,"item_id":26473} 
[2026-03-05 21:11:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5487,"item_index":1,"item_id":26474} 
[2026-03-05 21:11:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5487,"item_index":2,"item_id":26475} 
[2026-03-05 21:11:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5487,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":26473},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26474},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26475},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-05 21:11:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5487,"items_count":6} 
[2026-03-05 21:11:18] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[26478,26479,26480,26481,26482,26483],"items":[{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":416,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":412,"quantity":1}]} 
[2026-03-05 21:11:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5487,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["62|1|","396|2|","61|1|","416|1|","5|1|","412|1|"],"new_items_map_keys":["62|1|","396|2|","61|1|","416|1|","5|1|","412|1|"]} 
[2026-03-05 21:11:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5487,"order_number":"AZS-050326-015"} 
[2026-03-05 21:11:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5487,"order_number":"AZS-050326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-05 21:11:18"} 
[2026-03-05 21:11:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5487,"item_index":0,"item_id":26473} 
[2026-03-05 21:11:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5487,"item_index":1,"item_id":26474} 
[2026-03-05 21:11:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5487,"item_index":2,"item_id":26475} 
[2026-03-05 21:11:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5487,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":26473},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":26474},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26475},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-05 21:11:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5487,"items_count":6} 
[2026-03-05 21:11:30] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[26478,26479,26480,26481,26482,26483],"items":[{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":416,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":412,"quantity":2}]} 
[2026-03-05 21:11:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5487,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["62|1|","396|2|","61|1|","416|1|","5|1|","412|1|"],"new_items_map_keys":["62|1|","396|2|","61|1|","416|1|","5|1|","412|2|"]} 
[2026-03-05 21:11:30] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5487,"order_number":"AZS-050326-015"} 
[2026-03-05 21:11:30] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050326-015","replaced_order_id":5487} 
[2026-03-05 21:11:30] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5488,"items_count":6,"items":[{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":416,"quantity":1,"price":"70.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":412,"quantity":2,"price":"220.00"}]} 
[2026-03-05 21:11:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5488,"item_index":0,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5488}} 
[2026-03-05 21:11:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5488,"item_index":0,"menu_item_id":62} 
[2026-03-05 21:11:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5488,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5488}} 
[2026-03-05 21:11:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5488,"item_index":1,"menu_item_id":396} 
[2026-03-05 21:11:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5488,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5488}} 
[2026-03-05 21:11:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5488,"item_index":2,"menu_item_id":61} 
[2026-03-05 21:11:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5488,"item_index":3,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5488}} 
[2026-03-05 21:11:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5488,"item_index":3,"menu_item_id":416} 
[2026-03-05 21:11:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5488,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5488}} 
[2026-03-05 21:11:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5488,"item_index":4,"menu_item_id":5} 
[2026-03-05 21:11:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5488,"item_index":5,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":2,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":440.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5488}} 
[2026-03-05 21:11:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5488,"item_index":5,"menu_item_id":412} 
[2026-03-05 21:11:30] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5487,"new_order_id":5488,"order_number":"AZS-050326-015"} 
[2026-03-05 21:11:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5488,"item_index":0,"item_id":26473} 
[2026-03-05 21:11:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5488,"item_index":1,"item_id":26474} 
[2026-03-05 21:11:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5488,"item_index":2,"item_id":26475} 
[2026-03-05 21:11:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5488,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":26473},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26474},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26475},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":2,"price":220,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":2,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-05 21:11:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5488,"items_count":6} 
[2026-03-05 21:11:37] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[26484,26485,26486,26487,26488,26489],"items":[{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":416,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":412,"quantity":2}]} 
[2026-03-05 21:11:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5488,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["62|1|","396|2|","61|1|","416|1|","5|1|","412|2|"],"new_items_map_keys":["62|1|","396|2|","61|1|","416|1|","5|1|","412|2|"]} 
[2026-03-05 21:11:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5488,"order_number":"AZS-050326-015"} 
[2026-03-05 21:11:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5488,"order_number":"AZS-050326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-05 21:11:37"} 
[2026-03-05 21:44:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T09:44:10.219Z","date_to":"2026-03-05T21:44:10.219Z","per_page":"100"} 
[2026-03-05 21:44:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T09:44:10.232Z","date_to":"2026-03-05T21:44:10.232Z","per_page":"100"} 
[2026-03-05 21:44:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":33,"count":33,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-016","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-014","AZS-050326-014","AZS-050326-014","AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["pending","pending","changed","changed","paid","changed","changed","pending","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","pending","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":17,"paid_count":12,"unpaid_count":4,"unique_order_numbers":16} 
[2026-03-05 21:44:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":33,"count":33,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-016","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-014","AZS-050326-014","AZS-050326-014","AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["pending","pending","changed","changed","paid","changed","changed","pending","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","pending","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":17,"paid_count":12,"unpaid_count":4,"unique_order_numbers":16} 
[2026-03-05 21:44:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T09:44:10.219Z","date_to":"2026-03-05T21:44:10.219Z","per_page":"100"} 
[2026-03-05 21:44:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":33,"count":33,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-016","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-014","AZS-050326-014","AZS-050326-014","AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["pending","pending","changed","changed","paid","changed","changed","pending","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","pending","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":17,"paid_count":12,"unpaid_count":4,"unique_order_numbers":16} 
[2026-03-05 21:48:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5468,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":26420}],"validated_items":[{"id":26420,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-05 21:48:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5468,"items_count":1} 
[2026-03-05 21:48:00] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26420,"menu_item_id":96,"quantity":1}]} 
[2026-03-05 21:48:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5468,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["96|1|"],"new_items_map_keys":["96|1|"]} 
[2026-03-05 21:48:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5468,"order_number":"AZS-050326-008"} 
[2026-03-05 21:48:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5468,"order_number":"AZS-050326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-05 21:48:00"} 
[2026-03-05 21:48:13] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5468,"order_number":"AZS-050326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 21:48:13"} 
[2026-03-05 21:48:13] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5468,"order_number":"AZS-050326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 21:48:13"} 
[2026-03-05 21:48:13] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5468,"order_number":"AZS-050326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 21:48:13"} 
[2026-03-05 21:48:13] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5468,"order_number":"AZS-050326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 21:48:13"} 
[2026-03-05 21:48:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5468,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26420}],"validated_items":[{"id":26420,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null}]} 
[2026-03-05 21:48:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5468,"items_count":1} 
[2026-03-05 21:48:13] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26420,"menu_item_id":96,"quantity":1}]} 
[2026-03-05 21:48:13] local.INFO: PosOrderController::update - Item changes check {"order_id":5468,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["96|1|"],"new_items_map_keys":["96|1|"]} 
[2026-03-05 21:48:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5468,"order_number":"AZS-050326-008"} 
[2026-03-05 21:48:13] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5468,"order_number":"AZS-050326-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-05 21:48:13","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-05 21:48:13"} 
[2026-03-05 21:48:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5468,"order_number":"AZS-050326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-05 21:48:13"} 
[2026-03-05 21:48:13] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5468,"order_number":"AZS-050326-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-05 21:48:13","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1200.00","database_verification_match":true,"timestamp":"2026-03-05 21:48:13"} 
[2026-03-05 21:48:24] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5479,"order_number":"AZS-050326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 21:48:24"} 
[2026-03-05 21:48:24] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5479,"order_number":"AZS-050326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 21:48:24"} 
[2026-03-05 21:48:24] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5479,"order_number":"AZS-050326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 21:48:24"} 
[2026-03-05 21:48:24] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5479,"order_number":"AZS-050326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 21:48:24"} 
[2026-03-05 21:48:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5479,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":26454}],"validated_items":[{"id":26454,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-05 21:48:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5479,"items_count":1} 
[2026-03-05 21:48:24] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26454,"menu_item_id":13,"quantity":4}]} 
[2026-03-05 21:48:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5479,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|4|"],"new_items_map_keys":["13|4|"]} 
[2026-03-05 21:48:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5479,"order_number":"AZS-050326-013"} 
[2026-03-05 21:48:24] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5479,"order_number":"AZS-050326-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-05 21:48:24","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-05 21:48:24"} 
[2026-03-05 21:48:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5479,"order_number":"AZS-050326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-05 21:48:24"} 
[2026-03-05 21:48:24] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5479,"order_number":"AZS-050326-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-05 21:48:24","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-05 21:48:24"} 
[2026-03-05 21:48:40] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5486,"order_number":"AZS-050326-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3300,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 21:48:40"} 
[2026-03-05 21:48:40] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5486,"order_number":"AZS-050326-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3300,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 21:48:40"} 
[2026-03-05 21:48:40] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5486,"order_number":"AZS-050326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 21:48:40"} 
[2026-03-05 21:48:40] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5486,"order_number":"AZS-050326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 21:48:40"} 
[2026-03-05 21:48:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5486,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":84,"quantity":1,"price":1195,"discount_percent":0,"notes":null,"id":26476},{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":26477}],"validated_items":[{"id":26476,"menu_item_id":84,"quantity":1,"price":1195,"discount_percent":0,"notes":null},{"id":26477,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null}]} 
[2026-03-05 21:48:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5486,"items_count":2} 
[2026-03-05 21:48:40] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26476,"menu_item_id":84,"quantity":1},{"id":26477,"menu_item_id":386,"quantity":1}]} 
[2026-03-05 21:48:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5486,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["84|1|","386|1|"],"new_items_map_keys":["84|1|","386|1|"]} 
[2026-03-05 21:48:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5486,"order_number":"AZS-050326-016"} 
[2026-03-05 21:48:40] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5486,"order_number":"AZS-050326-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3300,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-05 21:48:40","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-05 21:48:40"} 
[2026-03-05 21:48:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5486,"order_number":"AZS-050326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-05 21:48:40"} 
[2026-03-05 21:48:40] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5486,"order_number":"AZS-050326-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3300.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-05 21:48:40","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3300,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3300.00","database_verification_match":true,"timestamp":"2026-03-05 21:48:40"} 
[2026-03-05 21:48:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T09:48:42.739Z","date_to":"2026-03-05T21:48:42.739Z","per_page":"100"} 
[2026-03-05 21:48:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":33,"count":33,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-016","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-014","AZS-050326-014","AZS-050326-014","AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["paid","pending","changed","changed","paid","changed","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":17,"paid_count":15,"unpaid_count":1,"unique_order_numbers":16} 
[2026-03-05 21:48:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T09:48:42.759Z","date_to":"2026-03-05T21:48:42.759Z","per_page":"100"} 
[2026-03-05 21:48:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":33,"count":33,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-016","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-014","AZS-050326-014","AZS-050326-014","AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["paid","pending","changed","changed","paid","changed","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":17,"paid_count":15,"unpaid_count":1,"unique_order_numbers":16} 
[2026-03-05 21:48:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T09:48:42.739Z","date_to":"2026-03-05T21:48:42.739Z","per_page":"100"} 
[2026-03-05 21:48:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":33,"count":33,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-016","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-014","AZS-050326-014","AZS-050326-014","AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["paid","pending","changed","changed","paid","changed","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":17,"paid_count":15,"unpaid_count":1,"unique_order_numbers":16} 
[2026-03-05 21:49:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5488,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":26484},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26485},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26486},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":26487},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26488},{"menu_item_id":412,"quantity":2,"price":220,"discount_percent":0,"notes":null,"id":26489}],"validated_items":[{"id":26484,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":26485,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26486,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26487,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":26488,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26489,"menu_item_id":412,"quantity":2,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-05 21:49:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5488,"items_count":6} 
[2026-03-05 21:49:07] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26484,"menu_item_id":62,"quantity":1},{"id":26485,"menu_item_id":396,"quantity":2},{"id":26486,"menu_item_id":61,"quantity":1},{"id":26487,"menu_item_id":416,"quantity":1},{"id":26488,"menu_item_id":5,"quantity":1},{"id":26489,"menu_item_id":412,"quantity":2}]} 
[2026-03-05 21:49:07] local.INFO: PosOrderController::update - Item changes check {"order_id":5488,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["62|1|","396|2|","61|1|","416|1|","5|1|","412|2|"],"new_items_map_keys":["62|1|","396|2|","61|1|","416|1|","5|1|","412|2|"]} 
[2026-03-05 21:49:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5488,"order_number":"AZS-050326-015"} 
[2026-03-05 21:49:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5488,"order_number":"AZS-050326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-05 21:49:07"} 
[2026-03-05 21:49:31] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5488,"order_number":"AZS-050326-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2400,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 21:49:31"} 
[2026-03-05 21:49:31] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5488,"order_number":"AZS-050326-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2400,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 21:49:31"} 
[2026-03-05 21:49:31] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5488,"order_number":"AZS-050326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2400,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 21:49:31"} 
[2026-03-05 21:49:31] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5488,"order_number":"AZS-050326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2400,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 21:49:31"} 
[2026-03-05 21:49:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":5488,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":26484},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26485},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":26487},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26488},{"menu_item_id":412,"quantity":2,"price":220,"discount_percent":0,"notes":null,"id":26489}],"validated_items":[{"id":26484,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":26485,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26487,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":26488,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26489,"menu_item_id":412,"quantity":2,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-05 21:49:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5488,"items_count":5} 
[2026-03-05 21:49:31] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[26486],"items":[{"id":26484,"menu_item_id":62,"quantity":1},{"id":26485,"menu_item_id":396,"quantity":2},{"id":26487,"menu_item_id":416,"quantity":1},{"id":26488,"menu_item_id":5,"quantity":1},{"id":26489,"menu_item_id":412,"quantity":2}]} 
[2026-03-05 21:49:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5488,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["62|1|","396|2|","61|1|","416|1|","5|1|","412|2|"],"new_items_map_keys":["62|1|","396|2|","416|1|","5|1|","412|2|"]} 
[2026-03-05 21:49:31] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5488,"order_number":"AZS-050326-015","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":2400,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-05 21:49:31","original_payment_amount":"0.00","grand_total":2377.0,"timestamp":"2026-03-05 21:49:31"} 
[2026-03-05 21:49:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5488,"order_number":"AZS-050326-015"} 
[2026-03-05 21:49:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050326-015","replaced_order_id":5488} 
[2026-03-05 21:49:31] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5488,"new_order_id":5489,"order_number":"AZS-050326-015","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"2400.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-05 21:49:31","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2400,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-05 21:49:31"} 
[2026-03-05 21:49:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5489,"items_count":5,"items":[{"menu_item_id":62,"quantity":1,"price":1499.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":416,"quantity":1,"price":70.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":412,"quantity":2,"price":220.0}]} 
[2026-03-05 21:49:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5489,"item_index":0,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":1499.0,"discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5489}} 
[2026-03-05 21:49:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5489,"item_index":0,"menu_item_id":62} 
[2026-03-05 21:49:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5489,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5489}} 
[2026-03-05 21:49:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5489,"item_index":1,"menu_item_id":396} 
[2026-03-05 21:49:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5489,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5489}} 
[2026-03-05 21:49:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5489,"item_index":2,"menu_item_id":416} 
[2026-03-05 21:49:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5489,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5489}} 
[2026-03-05 21:49:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5489,"item_index":3,"menu_item_id":5} 
[2026-03-05 21:49:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5489,"item_index":4,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":2,"price":220.0,"discount_percent":0.0,"discount_amount":0.0,"total":440.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5489}} 
[2026-03-05 21:49:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5489,"item_index":4,"menu_item_id":412} 
[2026-03-05 21:49:31] local.ERROR: Error tracking recipe usage for order 5489: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5489, 62, 184, 1, 5000, 0.00, Order #AZS-050326-015 - 1x Chicken Malai Boti (10 pcs), 2026-03-05 21:49:31, 2026-03-05 21:49:31))  
[2026-03-05 21:49:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5488,"new_order_id":5489,"order_number":"AZS-050326-015"} 
[2026-03-05 21:49:32] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5488,"new_order_id":5489,"order_number":"AZS-050326-015","route":"api/orders/5488"} 
[2026-03-05 21:49:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T09:49:36.148Z","date_to":"2026-03-05T21:49:36.148Z","per_page":"100"} 
[2026-03-05 21:49:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T09:49:36.161Z","date_to":"2026-03-05T21:49:36.161Z","per_page":"100"} 
[2026-03-05 21:49:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-016","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-014","AZS-050326-014","AZS-050326-014","AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":18,"paid_count":16,"unpaid_count":0,"unique_order_numbers":16} 
[2026-03-05 21:49:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-016","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-014","AZS-050326-014","AZS-050326-014","AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":18,"paid_count":16,"unpaid_count":0,"unique_order_numbers":16} 
[2026-03-05 21:49:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T09:49:36.148Z","date_to":"2026-03-05T21:49:36.148Z","per_page":"100"} 
[2026-03-05 21:49:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-016","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-014","AZS-050326-014","AZS-050326-014","AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":18,"paid_count":16,"unpaid_count":0,"unique_order_numbers":16} 
[2026-03-05 23:33:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5490,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":26495},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null,"id":26496}],"validated_items":[{"id":26495,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":26496,"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-05 23:33:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5490,"items_count":2} 
[2026-03-05 23:33:25] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26495,"menu_item_id":411,"quantity":1},{"id":26496,"menu_item_id":416,"quantity":2}]} 
[2026-03-05 23:33:25] local.INFO: PosOrderController::update - Item changes check {"order_id":5490,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","416|2|"],"new_items_map_keys":["411|1|","416|2|"]} 
[2026-03-05 23:33:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5490,"order_number":"AZS-050326-017"} 
[2026-03-05 23:33:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5490,"order_number":"AZS-050326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-05 23:33:25"} 
[2026-03-05 23:33:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5492,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":26498}],"validated_items":[{"id":26498,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-05 23:33:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5492,"items_count":1} 
[2026-03-05 23:33:37] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26498,"menu_item_id":411,"quantity":2}]} 
[2026-03-05 23:33:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5492,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["411|2|"],"new_items_map_keys":["411|2|"]} 
[2026-03-05 23:33:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5492,"order_number":"AZS-050326-019"} 
[2026-03-05 23:33:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5492,"order_number":"AZS-050326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-05 23:33:37"} 
[2026-03-05 23:33:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5490,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":26495},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null,"id":26496},{"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26495,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":26496,"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-05 23:33:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5490,"items_count":3} 
[2026-03-05 23:33:51] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26495,"menu_item_id":411,"quantity":1},{"id":26496,"menu_item_id":416,"quantity":2},{"id":null,"menu_item_id":412,"quantity":1}]} 
[2026-03-05 23:33:51] local.INFO: PosOrderController::update - Item changes check {"order_id":5490,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["411|1|","416|2|"],"new_items_map_keys":["411|1|","416|2|","412|1|"]} 
[2026-03-05 23:33:51] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5490,"order_number":"AZS-050326-017"} 
[2026-03-05 23:33:51] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050326-017","replaced_order_id":5490} 
[2026-03-05 23:33:51] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5493,"items_count":3,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"},{"menu_item_id":412,"quantity":1,"price":"220.00"}]} 
[2026-03-05 23:33:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5493,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5493}} 
[2026-03-05 23:33:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5493,"item_index":0,"menu_item_id":411} 
[2026-03-05 23:33:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5493,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5493}} 
[2026-03-05 23:33:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5493,"item_index":1,"menu_item_id":416} 
[2026-03-05 23:33:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5493,"item_index":2,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":1,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":220.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5493}} 
[2026-03-05 23:33:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5493,"item_index":2,"menu_item_id":412} 
[2026-03-05 23:33:51] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5490,"new_order_id":5493,"order_number":"AZS-050326-017"} 
[2026-03-05 23:34:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T11:34:17.018Z","date_to":"2026-03-05T23:34:17.018Z","per_page":"100"} 
[2026-03-05 23:34:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":38,"count":38,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-019","AZS-050326-018","AZS-050326-017","AZS-050326-017","AZS-050326-016","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-014","AZS-050326-014","AZS-050326-014","AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["pending","pending","pending","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":19,"paid_count":16,"unpaid_count":3,"unique_order_numbers":19} 
[2026-03-05 23:34:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T11:34:17.035Z","date_to":"2026-03-05T23:34:17.035Z","per_page":"100"} 
[2026-03-05 23:34:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":38,"count":38,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-019","AZS-050326-018","AZS-050326-017","AZS-050326-017","AZS-050326-016","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-014","AZS-050326-014","AZS-050326-014","AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["pending","pending","pending","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":19,"paid_count":16,"unpaid_count":3,"unique_order_numbers":19} 
[2026-03-05 23:34:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T11:34:17.018Z","date_to":"2026-03-05T23:34:17.018Z","per_page":"100"} 
[2026-03-05 23:34:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":38,"count":38,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-019","AZS-050326-018","AZS-050326-017","AZS-050326-017","AZS-050326-016","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-014","AZS-050326-014","AZS-050326-014","AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["pending","pending","pending","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":19,"paid_count":16,"unpaid_count":3,"unique_order_numbers":19} 
[2026-03-05 23:49:29] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5494,"order_number":"AZS-050326-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":190,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 23:49:29"} 
[2026-03-05 23:49:29] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5494,"order_number":"AZS-050326-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":190,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 23:49:29"} 
[2026-03-05 23:49:29] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5494,"order_number":"AZS-050326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":190,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 23:49:29"} 
[2026-03-05 23:49:29] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5494,"order_number":"AZS-050326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":190,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 23:49:29"} 
[2026-03-05 23:49:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5494,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":26502},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":26503},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":26504}],"validated_items":[{"id":26502,"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":26503,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"id":26504,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-05 23:49:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5494,"items_count":3} 
[2026-03-05 23:49:29] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26502,"menu_item_id":421,"quantity":1},{"id":26503,"menu_item_id":286,"quantity":2},{"id":26504,"menu_item_id":4,"quantity":1}]} 
[2026-03-05 23:49:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5494,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["421|1|","286|2|","4|1|"],"new_items_map_keys":["421|1|","286|2|","4|1|"]} 
[2026-03-05 23:49:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5494,"order_number":"AZS-050326-020"} 
[2026-03-05 23:49:29] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5494,"order_number":"AZS-050326-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":190,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-05 23:49:29","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-05 23:49:29"} 
[2026-03-05 23:49:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5494,"order_number":"AZS-050326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-05 23:49:29"} 
[2026-03-05 23:49:29] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5494,"order_number":"AZS-050326-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"190.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-05 23:49:29","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":190,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"190.00","database_verification_match":true,"timestamp":"2026-03-05 23:49:29"} 
[2026-03-05 23:52:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5492,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":26498},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26498,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-05 23:52:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5492,"items_count":3} 
[2026-03-05 23:52:20] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26498,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":50,"quantity":1}]} 
[2026-03-05 23:52:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5492,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["411|2|"],"new_items_map_keys":["411|2|","2|2|","50|1|"]} 
[2026-03-05 23:52:20] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5492,"order_number":"AZS-050326-019"} 
[2026-03-05 23:52:20] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050326-019","replaced_order_id":5492} 
[2026-03-05 23:52:20] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5495,"items_count":3,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"}]} 
[2026-03-05 23:52:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5495,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5495}} 
[2026-03-05 23:52:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5495,"item_index":0,"menu_item_id":411} 
[2026-03-05 23:52:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5495,"item_index":1,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5495}} 
[2026-03-05 23:52:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5495,"item_index":1,"menu_item_id":2} 
[2026-03-05 23:52:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5495,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5495}} 
[2026-03-05 23:52:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5495,"item_index":2,"menu_item_id":50} 
[2026-03-05 23:52:20] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5492,"new_order_id":5495,"order_number":"AZS-050326-019"} 
[2026-03-05 23:53:43] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5491,"order_number":"AZS-050326-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":210,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 23:53:43"} 
[2026-03-05 23:53:43] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5491,"order_number":"AZS-050326-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":210,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-05 23:53:43"} 
[2026-03-05 23:53:43] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5491,"order_number":"AZS-050326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":210,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 23:53:43"} 
[2026-03-05 23:53:43] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5491,"order_number":"AZS-050326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":210,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-05 23:53:43"} 
[2026-03-05 23:53:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5491,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":421,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":26497}],"validated_items":[{"id":26497,"menu_item_id":421,"quantity":3,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-05 23:53:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5491,"items_count":1} 
[2026-03-05 23:53:43] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26497,"menu_item_id":421,"quantity":3}]} 
[2026-03-05 23:53:43] local.INFO: PosOrderController::update - Item changes check {"order_id":5491,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["421|3|"],"new_items_map_keys":["421|3|"]} 
[2026-03-05 23:53:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5491,"order_number":"AZS-050326-018"} 
[2026-03-05 23:53:43] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5491,"order_number":"AZS-050326-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":210,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-05 23:53:43","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-05 23:53:43"} 
[2026-03-05 23:53:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5491,"order_number":"AZS-050326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-05 23:53:43"} 
[2026-03-05 23:53:43] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5491,"order_number":"AZS-050326-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"210.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-05 23:53:43","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":210,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"210.00","database_verification_match":true,"timestamp":"2026-03-05 23:53:43"} 
[2026-03-06 00:00:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5493,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":26499},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":26500},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null,"id":26501}],"validated_items":[{"id":26499,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":26500,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":26501,"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-06 00:00:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5493,"items_count":3} 
[2026-03-06 00:00:17] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26499,"menu_item_id":411,"quantity":1},{"id":26500,"menu_item_id":416,"quantity":2},{"id":26501,"menu_item_id":412,"quantity":1}]} 
[2026-03-06 00:00:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5493,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|1|","416|2|","412|1|"],"new_items_map_keys":["411|1|","416|2|","412|1|"]} 
[2026-03-06 00:00:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5493,"order_number":"AZS-050326-017"} 
[2026-03-06 00:00:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5493,"order_number":"AZS-050326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 00:00:17"} 
[2026-03-06 00:00:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5493,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":26499},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":26500},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null,"id":26501}],"validated_items":[{"id":26499,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":26500,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":26501,"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-06 00:00:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5493,"items_count":3} 
[2026-03-06 00:00:47] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26499,"menu_item_id":411,"quantity":1},{"id":26500,"menu_item_id":416,"quantity":2},{"id":26501,"menu_item_id":412,"quantity":1}]} 
[2026-03-06 00:00:47] local.INFO: PosOrderController::update - Item changes check {"order_id":5493,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|1|","416|2|","412|1|"],"new_items_map_keys":["411|1|","416|2|","412|1|"]} 
[2026-03-06 00:00:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5493,"order_number":"AZS-050326-017"} 
[2026-03-06 00:00:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5493,"order_number":"AZS-050326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 00:00:47"} 
[2026-03-06 00:01:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5495,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":26505},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":26506},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":26507}],"validated_items":[{"id":26505,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":26506,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":26507,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-06 00:01:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5495,"items_count":3} 
[2026-03-06 00:01:00] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26505,"menu_item_id":411,"quantity":2},{"id":26506,"menu_item_id":2,"quantity":2},{"id":26507,"menu_item_id":50,"quantity":1}]} 
[2026-03-06 00:01:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5495,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|2|","2|2|","50|1|"],"new_items_map_keys":["411|2|","2|2|","50|1|"]} 
[2026-03-06 00:01:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5495,"order_number":"AZS-050326-019"} 
[2026-03-06 00:01:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5495,"order_number":"AZS-050326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 00:01:00"} 
[2026-03-06 00:01:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T12:01:11.417Z","date_to":"2026-03-06T00:01:11.417Z","per_page":"100"} 
[2026-03-06 00:01:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T12:01:11.429Z","date_to":"2026-03-06T00:01:11.429Z","per_page":"100"} 
[2026-03-06 00:01:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":40,"count":40,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-020","AZS-050326-019","AZS-050326-019","AZS-050326-018","AZS-050326-017","AZS-050326-017","AZS-050326-016","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-014","AZS-050326-014","AZS-050326-014","AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["paid","pending","changed","paid","pending","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":20,"paid_count":18,"unpaid_count":2,"unique_order_numbers":20} 
[2026-03-06 00:01:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":40,"count":40,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-020","AZS-050326-019","AZS-050326-019","AZS-050326-018","AZS-050326-017","AZS-050326-017","AZS-050326-016","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-014","AZS-050326-014","AZS-050326-014","AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["paid","pending","changed","paid","pending","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":20,"paid_count":18,"unpaid_count":2,"unique_order_numbers":20} 
[2026-03-06 00:01:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T12:01:11.417Z","date_to":"2026-03-06T00:01:11.417Z","per_page":"100"} 
[2026-03-06 00:01:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":40,"count":40,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-020","AZS-050326-019","AZS-050326-019","AZS-050326-018","AZS-050326-017","AZS-050326-017","AZS-050326-016","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-014","AZS-050326-014","AZS-050326-014","AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["paid","pending","changed","paid","pending","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":20,"paid_count":18,"unpaid_count":2,"unique_order_numbers":20} 
[2026-03-06 00:05:36] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5493,"order_number":"AZS-050326-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 00:05:36"} 
[2026-03-06 00:05:36] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5493,"order_number":"AZS-050326-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 00:05:36"} 
[2026-03-06 00:05:36] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5493,"order_number":"AZS-050326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 00:05:36"} 
[2026-03-06 00:05:36] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5493,"order_number":"AZS-050326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 00:05:36"} 
[2026-03-06 00:05:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5493,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":26499},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":26500},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null,"id":26501}],"validated_items":[{"id":26499,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":26500,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":26501,"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-06 00:05:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5493,"items_count":3} 
[2026-03-06 00:05:36] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26499,"menu_item_id":411,"quantity":1},{"id":26500,"menu_item_id":416,"quantity":2},{"id":26501,"menu_item_id":412,"quantity":1}]} 
[2026-03-06 00:05:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5493,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|1|","416|2|","412|1|"],"new_items_map_keys":["411|1|","416|2|","412|1|"]} 
[2026-03-06 00:05:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5493,"order_number":"AZS-050326-017"} 
[2026-03-06 00:05:36] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5493,"order_number":"AZS-050326-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-06 00:05:36","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-06 00:05:36"} 
[2026-03-06 00:05:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5493,"order_number":"AZS-050326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-06 00:05:36"} 
[2026-03-06 00:05:36] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5493,"order_number":"AZS-050326-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-06 00:05:36","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-06 00:05:36"} 
[2026-03-06 00:05:46] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5495,"order_number":"AZS-050326-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1600,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 00:05:46"} 
[2026-03-06 00:05:46] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5495,"order_number":"AZS-050326-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 00:05:46"} 
[2026-03-06 00:05:46] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5495,"order_number":"AZS-050326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 00:05:46"} 
[2026-03-06 00:05:46] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5495,"order_number":"AZS-050326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 00:05:46"} 
[2026-03-06 00:05:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5495,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":26505},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":26506},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":26507}],"validated_items":[{"id":26505,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":26506,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":26507,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-06 00:05:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5495,"items_count":3} 
[2026-03-06 00:05:46] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26505,"menu_item_id":411,"quantity":2},{"id":26506,"menu_item_id":2,"quantity":2},{"id":26507,"menu_item_id":50,"quantity":1}]} 
[2026-03-06 00:05:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5495,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|2|","2|2|","50|1|"],"new_items_map_keys":["411|2|","2|2|","50|1|"]} 
[2026-03-06 00:05:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5495,"order_number":"AZS-050326-019"} 
[2026-03-06 00:05:46] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5495,"order_number":"AZS-050326-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1600,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-06 00:05:46","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-06 00:05:46"} 
[2026-03-06 00:05:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5495,"order_number":"AZS-050326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-06 00:05:46"} 
[2026-03-06 00:05:46] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5495,"order_number":"AZS-050326-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1600.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-06 00:05:46","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1600.00","database_verification_match":true,"timestamp":"2026-03-06 00:05:46"} 
[2026-03-06 00:06:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T12:06:01.214Z","date_to":"2026-03-06T00:06:01.214Z","per_page":"100"} 
[2026-03-06 00:06:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":40,"count":40,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-020","AZS-050326-019","AZS-050326-019","AZS-050326-018","AZS-050326-017","AZS-050326-017","AZS-050326-016","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-014","AZS-050326-014","AZS-050326-014","AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["paid","paid","changed","paid","paid","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":20,"paid_count":20,"unpaid_count":0,"unique_order_numbers":20} 
[2026-03-06 00:06:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T12:06:01.199Z","date_to":"2026-03-06T00:06:01.199Z","per_page":"100"} 
[2026-03-06 00:06:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":40,"count":40,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-020","AZS-050326-019","AZS-050326-019","AZS-050326-018","AZS-050326-017","AZS-050326-017","AZS-050326-016","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-014","AZS-050326-014","AZS-050326-014","AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["paid","paid","changed","paid","paid","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":20,"paid_count":20,"unpaid_count":0,"unique_order_numbers":20} 
[2026-03-06 00:06:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T12:06:01.199Z","date_to":"2026-03-06T00:06:01.199Z","per_page":"100"} 
[2026-03-06 00:06:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":40,"count":40,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-020","AZS-050326-019","AZS-050326-019","AZS-050326-018","AZS-050326-017","AZS-050326-017","AZS-050326-016","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-014","AZS-050326-014","AZS-050326-014","AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["paid","paid","changed","paid","paid","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":20,"paid_count":20,"unpaid_count":0,"unique_order_numbers":20} 
[2026-03-06 06:04:54] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) {"userId":6,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(375): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#52 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:423)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): PDO->prepare('select `id`, `n...')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select `id`, `n...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(375): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 {main}
"} 
[2026-03-06 07:09:43] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) {"userId":6,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(375): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#52 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:423)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): PDO->prepare('select `id`, `n...')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select `id`, `n...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(375): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 {main}
"} 
[2026-03-06 07:12:19] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) {"userId":6,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(375): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#52 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:423)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): PDO->prepare('select `id`, `n...')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select `id`, `n...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(375): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 {main}
"} 
[2026-03-06 08:34:10] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T20:34:01.133Z","date_to":"2026-03-06T08:34:01.133Z","per_page":"100"} 
[2026-03-06 08:34:10] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T20:34:01.082Z","date_to":"2026-03-06T08:34:01.082Z","per_page":"100"} 
[2026-03-06 08:34:10] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-020","AZS-050326-019","AZS-050326-019","AZS-050326-018","AZS-050326-017","AZS-050326-017"],"order_statuses":["paid","paid","changed","paid","paid","changed"],"deleted_count":2,"paid_count":4,"unpaid_count":0,"unique_order_numbers":4} 
[2026-03-06 08:34:10] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-020","AZS-050326-019","AZS-050326-019","AZS-050326-018","AZS-050326-017","AZS-050326-017"],"order_statuses":["paid","paid","changed","paid","paid","changed"],"deleted_count":2,"paid_count":4,"unpaid_count":0,"unique_order_numbers":4} 
[2026-03-06 08:34:12] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T20:34:01.082Z","date_to":"2026-03-06T08:34:01.082Z","per_page":"100"} 
[2026-03-06 08:34:12] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-020","AZS-050326-019","AZS-050326-019","AZS-050326-018","AZS-050326-017","AZS-050326-017"],"order_statuses":["paid","paid","changed","paid","paid","changed"],"deleted_count":2,"paid_count":4,"unpaid_count":0,"unique_order_numbers":4} 
[2026-03-06 08:34:18] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-05T08:34:10.324Z","date_to":"2026-03-06T08:34:10.324Z","per_page":"100"} 
[2026-03-06 08:34:18] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":40,"count":40,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050326-020","AZS-050326-019","AZS-050326-019","AZS-050326-018","AZS-050326-017","AZS-050326-017","AZS-050326-016","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-015","AZS-050326-014","AZS-050326-014","AZS-050326-014","AZS-050326-013","AZS-050326-012","AZS-050326-011","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-010","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-009","AZS-050326-008","AZS-050326-008","AZS-050326-007","AZS-050326-006","AZS-050326-005","AZS-050326-005","AZS-050326-005","AZS-050326-004","AZS-050326-003","AZS-050326-002","AZS-050326-001","AZS-050326-001","AZS-050326-001"],"order_statuses":["paid","paid","changed","paid","paid","changed","paid","paid","changed","changed","changed","paid","changed","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","paid","changed","changed","paid","paid","paid","paid","changed","changed"],"deleted_count":20,"paid_count":20,"unpaid_count":0,"unique_order_numbers":20} 
[2026-03-06 13:10:07] local.INFO: Login attempt {"email":"azadmin@pos.com","ip":"39.37.166.128"} 
[2026-03-06 13:10:55] local.INFO: Login attempt {"email":"azandmin@pos.com","ip":"39.37.166.128"} 
[2026-03-06 13:11:06] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"39.37.166.128"} 
[2026-03-06 13:11:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T01:11:22.440Z","date_to":"2026-03-06T13:11:22.440Z","per_page":"100"} 
[2026-03-06 13:11:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T01:11:22.423Z","date_to":"2026-03-06T13:11:22.423Z","per_page":"100"} 
[2026-03-06 13:11:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-03-06 13:11:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-03-06 13:11:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T01:11:22.423Z","date_to":"2026-03-06T13:11:22.423Z","per_page":"100"} 
[2026-03-06 13:11:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-03-06 13:11:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T01:11:28.722Z","date_to":"2026-03-06T13:11:28.722Z","per_page":"100"} 
[2026-03-06 13:11:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T01:11:28.706Z","date_to":"2026-03-06T13:11:28.706Z","per_page":"100"} 
[2026-03-06 13:11:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-03-06 13:11:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-03-06 13:11:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T01:11:28.706Z","date_to":"2026-03-06T13:11:28.706Z","per_page":"100"} 
[2026-03-06 13:11:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-03-06 13:11:35] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T01:11:35.288Z","date_to":"2026-03-06T13:11:35.288Z","per_page":"100"} 
[2026-03-06 13:11:35] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T01:11:35.300Z","date_to":"2026-03-06T13:11:35.300Z","per_page":"100"} 
[2026-03-06 13:11:35] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-03-06 13:11:35] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-03-06 13:11:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T01:11:35.288Z","date_to":"2026-03-06T13:11:35.288Z","per_page":"100"} 
[2026-03-06 13:11:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-03-06 13:12:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T01:12:02.428Z","date_to":"2026-03-06T13:12:02.428Z","per_page":"100"} 
[2026-03-06 13:12:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-03-06 13:12:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T01:12:02.409Z","date_to":"2026-03-06T13:12:02.409Z","per_page":"100"} 
[2026-03-06 13:12:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-03-06 13:12:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T01:12:02.409Z","date_to":"2026-03-06T13:12:02.409Z","per_page":"100"} 
[2026-03-06 13:12:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-03-06 13:12:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T01:12:11.449Z","date_to":"2026-03-06T13:12:11.449Z","per_page":"100"} 
[2026-03-06 13:12:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T01:12:11.465Z","date_to":"2026-03-06T13:12:11.465Z","per_page":"100"} 
[2026-03-06 13:12:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-03-06 13:12:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-03-06 13:12:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T01:12:11.449Z","date_to":"2026-03-06T13:12:11.449Z","per_page":"100"} 
[2026-03-06 13:12:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-03-06 13:14:40] local.INFO: Store request - hasFile(image): NO  
[2026-03-06 13:14:40] local.INFO: Store request - all files: []  
[2026-03-06 13:14:40] local.INFO: Store request - input keys: ["name","price","restaurant_id","branch_id","description","restaurant_category_id","is_available","image_url"]  
[2026-03-06 13:14:40] local.INFO: Menu Item Store Request Data: {"all_inputs":{"name":"Per Person Deal Buffee","price":"1400","restaurant_id":"1","branch_id":"1","description":"Per Person Deal","restaurant_category_id":"42","is_available":"1","image_url":"https://admin.pandamarts.co.uk/menu_items/1770052446_platter_barbq__rice.jpg"},"branch_id_input":"1","restaurant_id_input":"1","user_role":"branch_manager","user_branch_id":1,"user_restaurant_id":1} 
[2026-03-06 13:14:40] local.INFO: Context data: {"context":{"restaurant_id":1,"branch_id":1},"branchId_from_input":"1"} 
[2026-03-06 13:15:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5501,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":26513},{"menu_item_id":89,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26513,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":89,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-06 13:15:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5501,"items_count":6} 
[2026-03-06 13:15:49] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26513,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":89,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-06 13:15:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5501,"has_item_changes":true,"old_items_count":1,"new_items_count":6,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","89|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-06 13:15:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5501,"order_number":"AZS-060326-006"} 
[2026-03-06 13:15:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-006","replaced_order_id":5501} 
[2026-03-06 13:15:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5505,"items_count":6,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":89,"quantity":1,"price":"1999.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-06 13:15:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5505,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5505}} 
[2026-03-06 13:15:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5505,"item_index":0,"menu_item_id":417} 
[2026-03-06 13:15:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5505,"item_index":1,"item_data":{"menu_item_id":89,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Rajhistani Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5505}} 
[2026-03-06 13:15:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5505,"item_index":1,"menu_item_id":89} 
[2026-03-06 13:15:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5505,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5505}} 
[2026-03-06 13:15:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5505,"item_index":2,"menu_item_id":396} 
[2026-03-06 13:15:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5505,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5505}} 
[2026-03-06 13:15:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5505,"item_index":3,"menu_item_id":61} 
[2026-03-06 13:15:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5505,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5505}} 
[2026-03-06 13:15:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5505,"item_index":4,"menu_item_id":56} 
[2026-03-06 13:15:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5505,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5505}} 
[2026-03-06 13:15:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5505,"item_index":5,"menu_item_id":5} 
[2026-03-06 13:15:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5501,"new_order_id":5505,"order_number":"AZS-060326-006"} 
[2026-03-06 13:17:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":1,"order_id":5498,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-03-06 13:17:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5498,"items_count":2} 
[2026-03-06 13:17:47] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":1,"items_to_remove":[26510],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":52,"quantity":4}]} 
[2026-03-06 13:17:47] local.INFO: PosOrderController::update - Item changes check {"order_id":5498,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["417|1|"],"new_items_map_keys":["105|1|","52|4|"]} 
[2026-03-06 13:17:47] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5498,"order_number":"AZS-060326-003"} 
[2026-03-06 13:17:47] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-003","replaced_order_id":5498} 
[2026-03-06 13:17:47] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5506,"items_count":2,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":52,"quantity":4,"price":"70.00"}]} 
[2026-03-06 13:17:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5506,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5506}} 
[2026-03-06 13:17:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5506,"item_index":0,"menu_item_id":105} 
[2026-03-06 13:17:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5506,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5506}} 
[2026-03-06 13:17:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5506,"item_index":1,"menu_item_id":52} 
[2026-03-06 13:17:47] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5498,"new_order_id":5506,"order_number":"AZS-060326-003"} 
[2026-03-06 13:21:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":2,"order_id":5506,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-06 13:21:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5506,"items_count":3} 
[2026-03-06 13:21:09] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":2,"items_to_remove":[26525,26526],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":52,"quantity":4},{"id":null,"menu_item_id":106,"quantity":1}]} 
[2026-03-06 13:21:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5506,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["105|1|","52|4|"],"new_items_map_keys":["105|1|","52|4|","106|1|"]} 
[2026-03-06 13:21:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5506,"order_number":"AZS-060326-003"} 
[2026-03-06 13:21:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-003","replaced_order_id":5506} 
[2026-03-06 13:21:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5507,"items_count":3,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":52,"quantity":4,"price":"70.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"}]} 
[2026-03-06 13:21:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5507,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5507}} 
[2026-03-06 13:21:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5507,"item_index":0,"menu_item_id":105} 
[2026-03-06 13:21:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5507,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5507}} 
[2026-03-06 13:21:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5507,"item_index":1,"menu_item_id":52} 
[2026-03-06 13:21:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5507,"item_index":2,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5507}} 
[2026-03-06 13:21:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5507,"item_index":2,"menu_item_id":106} 
[2026-03-06 13:21:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5506,"new_order_id":5507,"order_number":"AZS-060326-003"} 
[2026-03-06 13:21:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":3,"order_id":5507,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-06 13:21:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5507,"items_count":2} 
[2026-03-06 13:21:15] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":3,"items_to_remove":[26527,26528,26529],"items":[{"id":null,"menu_item_id":52,"quantity":4},{"id":null,"menu_item_id":106,"quantity":1}]} 
[2026-03-06 13:21:15] local.INFO: PosOrderController::update - Item changes check {"order_id":5507,"has_item_changes":true,"old_items_count":3,"new_items_count":2,"old_items_map_keys":["105|1|","52|4|","106|1|"],"new_items_map_keys":["52|4|","106|1|"]} 
[2026-03-06 13:21:15] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5507,"order_number":"AZS-060326-003"} 
[2026-03-06 13:21:15] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-003","replaced_order_id":5507} 
[2026-03-06 13:21:15] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5508,"items_count":2,"items":[{"menu_item_id":52,"quantity":4,"price":"70.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"}]} 
[2026-03-06 13:21:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5508,"item_index":0,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5508}} 
[2026-03-06 13:21:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5508,"item_index":0,"menu_item_id":52} 
[2026-03-06 13:21:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5508,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5508}} 
[2026-03-06 13:21:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5508,"item_index":1,"menu_item_id":106} 
[2026-03-06 13:21:15] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5507,"new_order_id":5508,"order_number":"AZS-060326-003"} 
[2026-03-06 13:21:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":5508,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-06 13:21:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5508,"items_count":2} 
[2026-03-06 13:21:26] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[26530,26531],"items":[{"id":null,"menu_item_id":52,"quantity":4},{"id":null,"menu_item_id":106,"quantity":1}]} 
[2026-03-06 13:21:26] local.INFO: PosOrderController::update - Item changes check {"order_id":5508,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["52|4|","106|1|"],"new_items_map_keys":["52|4|","106|1|"]} 
[2026-03-06 13:21:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5508,"order_number":"AZS-060326-003"} 
[2026-03-06 13:21:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5508,"order_number":"AZS-060326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-06 13:21:26"} 
[2026-03-06 13:30:41] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5500,"order_number":"AZS-060326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 13:30:41"} 
[2026-03-06 13:30:41] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5500,"order_number":"AZS-060326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 13:30:41"} 
[2026-03-06 13:30:41] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5500,"order_number":"AZS-060326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 13:30:41"} 
[2026-03-06 13:30:41] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5500,"order_number":"AZS-060326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 13:30:41"} 
[2026-03-06 13:30:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5500,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26512}],"validated_items":[{"id":26512,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-06 13:30:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5500,"items_count":1} 
[2026-03-06 13:30:41] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26512,"menu_item_id":417,"quantity":1}]} 
[2026-03-06 13:30:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5500,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-06 13:30:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5500,"order_number":"AZS-060326-005"} 
[2026-03-06 13:30:41] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5500,"order_number":"AZS-060326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-06 13:30:41","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-06 13:30:41"} 
[2026-03-06 13:30:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5500,"order_number":"AZS-060326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-06 13:30:41"} 
[2026-03-06 13:30:41] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5500,"order_number":"AZS-060326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-06 13:30:41","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-06 13:30:41"} 
[2026-03-06 13:32:40] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5499,"order_number":"AZS-060326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 13:32:40"} 
[2026-03-06 13:32:40] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5499,"order_number":"AZS-060326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 13:32:40"} 
[2026-03-06 13:32:40] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5499,"order_number":"AZS-060326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 13:32:40"} 
[2026-03-06 13:32:40] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5499,"order_number":"AZS-060326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 13:32:40"} 
[2026-03-06 13:32:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5499,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":26511}],"validated_items":[{"id":26511,"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-06 13:32:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5499,"items_count":1} 
[2026-03-06 13:32:40] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26511,"menu_item_id":417,"quantity":2}]} 
[2026-03-06 13:32:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5499,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|2|"],"new_items_map_keys":["417|2|"]} 
[2026-03-06 13:32:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5499,"order_number":"AZS-060326-004"} 
[2026-03-06 13:32:40] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5499,"order_number":"AZS-060326-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-06 13:32:40","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-06 13:32:40"} 
[2026-03-06 13:32:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5499,"order_number":"AZS-060326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-06 13:32:40"} 
[2026-03-06 13:32:40] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5499,"order_number":"AZS-060326-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-06 13:32:40","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-06 13:32:40"} 
[2026-03-06 13:34:12] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5496,"order_number":"AZS-060326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 13:34:12"} 
[2026-03-06 13:34:12] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5496,"order_number":"AZS-060326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 13:34:12"} 
[2026-03-06 13:34:12] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5496,"order_number":"AZS-060326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 13:34:12"} 
[2026-03-06 13:34:12] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5496,"order_number":"AZS-060326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 13:34:12"} 
[2026-03-06 13:34:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5496,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26508}],"validated_items":[{"id":26508,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-06 13:34:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5496,"items_count":1} 
[2026-03-06 13:34:12] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26508,"menu_item_id":417,"quantity":1}]} 
[2026-03-06 13:34:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5496,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-06 13:34:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5496,"order_number":"AZS-060326-001"} 
[2026-03-06 13:34:12] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5496,"order_number":"AZS-060326-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-06 13:34:12","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-06 13:34:12"} 
[2026-03-06 13:34:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5496,"order_number":"AZS-060326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-06 13:34:12"} 
[2026-03-06 13:34:12] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5496,"order_number":"AZS-060326-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-06 13:34:12","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-06 13:34:12"} 
[2026-03-06 13:34:58] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5502,"order_number":"AZS-060326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 13:34:58"} 
[2026-03-06 13:34:58] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5502,"order_number":"AZS-060326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 13:34:58"} 
[2026-03-06 13:34:58] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5502,"order_number":"AZS-060326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 13:34:58"} 
[2026-03-06 13:34:58] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5502,"order_number":"AZS-060326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 13:34:58"} 
[2026-03-06 13:34:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5502,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26514}],"validated_items":[{"id":26514,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-06 13:34:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5502,"items_count":1} 
[2026-03-06 13:34:58] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26514,"menu_item_id":417,"quantity":1}]} 
[2026-03-06 13:34:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5502,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-06 13:34:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5502,"order_number":"AZS-060326-007"} 
[2026-03-06 13:34:58] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5502,"order_number":"AZS-060326-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-06 13:34:58","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-06 13:34:58"} 
[2026-03-06 13:34:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5502,"order_number":"AZS-060326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-06 13:34:58"} 
[2026-03-06 13:34:58] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5502,"order_number":"AZS-060326-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-06 13:34:58","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-06 13:34:58"} 
[2026-03-06 13:43:15] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5497,"order_number":"AZS-060326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 13:43:15"} 
[2026-03-06 13:43:15] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5497,"order_number":"AZS-060326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 13:43:15"} 
[2026-03-06 13:43:15] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5497,"order_number":"AZS-060326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 13:43:15"} 
[2026-03-06 13:43:15] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5497,"order_number":"AZS-060326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 13:43:15"} 
[2026-03-06 13:43:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5497,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26509}],"validated_items":[{"id":26509,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-06 13:43:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5497,"items_count":1} 
[2026-03-06 13:43:15] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26509,"menu_item_id":417,"quantity":1}]} 
[2026-03-06 13:43:15] local.INFO: PosOrderController::update - Item changes check {"order_id":5497,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-06 13:43:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5497,"order_number":"AZS-060326-002"} 
[2026-03-06 13:43:15] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5497,"order_number":"AZS-060326-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-06 13:43:15","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-06 13:43:15"} 
[2026-03-06 13:43:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5497,"order_number":"AZS-060326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-06 13:43:15"} 
[2026-03-06 13:43:15] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5497,"order_number":"AZS-060326-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-06 13:43:15","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-06 13:43:15"} 
[2026-03-06 13:52:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5511,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":427,"quantity":40,"price":1400,"discount_percent":0,"notes":null,"id":26537}],"validated_items":[{"id":26537,"menu_item_id":427,"quantity":40,"price":1400,"discount_percent":0,"notes":null}]} 
[2026-03-06 13:52:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5511,"items_count":1} 
[2026-03-06 13:52:23] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26537,"menu_item_id":427,"quantity":40}]} 
[2026-03-06 13:52:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5511,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["427|40|"],"new_items_map_keys":["427|40|"]} 
[2026-03-06 13:52:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5511,"order_number":"AZS-060326-012"} 
[2026-03-06 13:52:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5511,"order_number":"AZS-060326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 13:52:23"} 
[2026-03-06 13:59:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5504,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":2,"price":2199,"discount_percent":0,"notes":null,"id":26516},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":26517},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26518}],"validated_items":[{"id":26516,"menu_item_id":105,"quantity":2,"price":2199,"discount_percent":0,"notes":null},{"id":26517,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":26518,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-06 13:59:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5504,"items_count":3} 
[2026-03-06 13:59:39] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26516,"menu_item_id":105,"quantity":2},{"id":26517,"menu_item_id":396,"quantity":4},{"id":26518,"menu_item_id":5,"quantity":1}]} 
[2026-03-06 13:59:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5504,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["105|2|","396|4|","5|1|"],"new_items_map_keys":["105|2|","396|4|","5|1|"]} 
[2026-03-06 13:59:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5504,"order_number":"AZS-060326-009"} 
[2026-03-06 13:59:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5504,"order_number":"AZS-060326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 13:59:39"} 
[2026-03-06 14:02:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5505,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":26519},{"menu_item_id":89,"quantity":1,"discount_percent":0,"notes":null,"id":26520},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":26521},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26522},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26523},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26524},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":26519,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":26520,"menu_item_id":89,"quantity":1,"discount_percent":0,"notes":null},{"id":26521,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":26522,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26523,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26524,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-06 14:02:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5505,"items_count":7} 
[2026-03-06 14:02:39] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26519,"menu_item_id":417,"quantity":1},{"id":26520,"menu_item_id":89,"quantity":1},{"id":26521,"menu_item_id":396,"quantity":2},{"id":26522,"menu_item_id":61,"quantity":1},{"id":26523,"menu_item_id":56,"quantity":1},{"id":26524,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-06 14:02:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5505,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["417|1|","89|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["417|1|","89|1|","396|2|","61|1|","56|1|","5|1|","2|2|"]} 
[2026-03-06 14:02:39] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5505,"order_number":"AZS-060326-006"} 
[2026-03-06 14:02:39] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-006","replaced_order_id":5505} 
[2026-03-06 14:02:39] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5512,"items_count":7,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":89,"quantity":1,"price":"1999.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-06 14:02:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5512,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5512}} 
[2026-03-06 14:02:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5512,"item_index":0,"menu_item_id":417} 
[2026-03-06 14:02:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5512,"item_index":1,"item_data":{"menu_item_id":89,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Rajhistani Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5512}} 
[2026-03-06 14:02:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5512,"item_index":1,"menu_item_id":89} 
[2026-03-06 14:02:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5512,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5512}} 
[2026-03-06 14:02:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5512,"item_index":2,"menu_item_id":396} 
[2026-03-06 14:02:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5512,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5512}} 
[2026-03-06 14:02:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5512,"item_index":3,"menu_item_id":61} 
[2026-03-06 14:02:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5512,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5512}} 
[2026-03-06 14:02:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5512,"item_index":4,"menu_item_id":56} 
[2026-03-06 14:02:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5512,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5512}} 
[2026-03-06 14:02:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5512,"item_index":5,"menu_item_id":5} 
[2026-03-06 14:02:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5512,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5512}} 
[2026-03-06 14:02:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5512,"item_index":6,"menu_item_id":2} 
[2026-03-06 14:02:39] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5505,"new_order_id":5512,"order_number":"AZS-060326-006"} 
[2026-03-06 14:03:08] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5504,"order_number":"AZS-060326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5212,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 14:03:08"} 
[2026-03-06 14:03:08] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5504,"order_number":"AZS-060326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5212,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 14:03:08"} 
[2026-03-06 14:03:08] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5504,"order_number":"AZS-060326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5212,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 14:03:08"} 
[2026-03-06 14:03:08] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5504,"order_number":"AZS-060326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5212,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 14:03:08"} 
[2026-03-06 14:03:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5504,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":2,"price":2199,"discount_percent":0,"notes":null,"id":26516},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":26517},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26518}],"validated_items":[{"id":26516,"menu_item_id":105,"quantity":2,"price":2199,"discount_percent":0,"notes":null},{"id":26517,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":26518,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-06 14:03:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5504,"items_count":3} 
[2026-03-06 14:03:08] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26516,"menu_item_id":105,"quantity":2},{"id":26517,"menu_item_id":396,"quantity":4},{"id":26518,"menu_item_id":5,"quantity":1}]} 
[2026-03-06 14:03:08] local.INFO: PosOrderController::update - Item changes check {"order_id":5504,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["105|2|","396|4|","5|1|"],"new_items_map_keys":["105|2|","396|4|","5|1|"]} 
[2026-03-06 14:03:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5504,"order_number":"AZS-060326-009"} 
[2026-03-06 14:03:08] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5504,"order_number":"AZS-060326-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5212,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-06 14:03:08","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-06 14:03:08"} 
[2026-03-06 14:03:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5504,"order_number":"AZS-060326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-06 14:03:08"} 
[2026-03-06 14:03:08] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5504,"order_number":"AZS-060326-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5212.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-06 14:03:08","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5212,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5212.00","database_verification_match":true,"timestamp":"2026-03-06 14:03:08"} 
[2026-03-06 14:17:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5512,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26538},{"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":26539},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26540},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26541},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26542},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26543},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":26544}],"validated_items":[{"id":26538,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":26539,"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":26540,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26541,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26542,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26543,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26544,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-06 14:17:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5512,"items_count":7} 
[2026-03-06 14:17:58] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26538,"menu_item_id":417,"quantity":1},{"id":26539,"menu_item_id":89,"quantity":1},{"id":26540,"menu_item_id":396,"quantity":2},{"id":26541,"menu_item_id":61,"quantity":1},{"id":26542,"menu_item_id":56,"quantity":1},{"id":26543,"menu_item_id":5,"quantity":1},{"id":26544,"menu_item_id":2,"quantity":2}]} 
[2026-03-06 14:17:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5512,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["417|1|","89|1|","396|2|","61|1|","56|1|","5|1|","2|2|"],"new_items_map_keys":["417|1|","89|1|","396|2|","61|1|","56|1|","5|1|","2|2|"]} 
[2026-03-06 14:17:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5512,"order_number":"AZS-060326-006"} 
[2026-03-06 14:17:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5512,"order_number":"AZS-060326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 14:17:58"} 
[2026-03-06 14:24:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5509,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":26532},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":26533},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26532,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":26533,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-06 14:24:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5509,"items_count":3} 
[2026-03-06 14:24:45] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26532,"menu_item_id":113,"quantity":1},{"id":26533,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-06 14:24:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5509,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["113|1|","396|3|"],"new_items_map_keys":["113|1|","396|3|","3|1|"]} 
[2026-03-06 14:24:45] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5509,"order_number":"AZS-060326-010"} 
[2026-03-06 14:24:45] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-010","replaced_order_id":5509} 
[2026-03-06 14:24:45] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5513,"items_count":3,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-06 14:24:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5513,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5513}} 
[2026-03-06 14:24:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5513,"item_index":0,"menu_item_id":113} 
[2026-03-06 14:24:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5513,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5513}} 
[2026-03-06 14:24:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5513,"item_index":1,"menu_item_id":396} 
[2026-03-06 14:24:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5513,"item_index":2,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5513}} 
[2026-03-06 14:24:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5513,"item_index":2,"menu_item_id":3} 
[2026-03-06 14:24:45] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5509,"new_order_id":5513,"order_number":"AZS-060326-010"} 
[2026-03-06 14:26:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5508,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null,"id":26530},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":26531},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26530,"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null},{"id":26531,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-06 14:26:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5508,"items_count":5} 
[2026-03-06 14:26:32] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26530,"menu_item_id":52,"quantity":4},{"id":26531,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":83,"quantity":1}]} 
[2026-03-06 14:26:32] local.INFO: PosOrderController::update - Item changes check {"order_id":5508,"has_item_changes":true,"old_items_count":2,"new_items_count":5,"old_items_map_keys":["52|4|","106|1|"],"new_items_map_keys":["52|4|","106|1|","3|1|","403|1|","83|1|"]} 
[2026-03-06 14:26:32] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5508,"order_number":"AZS-060326-003"} 
[2026-03-06 14:26:32] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-003","replaced_order_id":5508} 
[2026-03-06 14:26:32] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5514,"items_count":5,"items":[{"menu_item_id":52,"quantity":4,"price":"70.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":83,"quantity":1,"price":"649.00"}]} 
[2026-03-06 14:26:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5514,"item_index":0,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5514}} 
[2026-03-06 14:26:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5514,"item_index":0,"menu_item_id":52} 
[2026-03-06 14:26:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5514,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5514}} 
[2026-03-06 14:26:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5514,"item_index":1,"menu_item_id":106} 
[2026-03-06 14:26:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5514,"item_index":2,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5514}} 
[2026-03-06 14:26:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5514,"item_index":2,"menu_item_id":3} 
[2026-03-06 14:26:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5514,"item_index":3,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5514}} 
[2026-03-06 14:26:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5514,"item_index":3,"menu_item_id":403} 
[2026-03-06 14:26:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5514,"item_index":4,"item_data":{"menu_item_id":83,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Chicken Nuggets","quantity":1,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":649.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5514}} 
[2026-03-06 14:26:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5514,"item_index":4,"menu_item_id":83} 
[2026-03-06 14:26:32] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5508,"new_order_id":5514,"order_number":"AZS-060326-003"} 
[2026-03-06 14:27:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5514,"item_index":0,"item_id":26530} 
[2026-03-06 14:27:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5514,"item_index":1,"item_id":26531} 
[2026-03-06 14:27:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":5,"order_id":5514,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null,"id":26530},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":26531},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-06 14:27:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5514,"items_count":4} 
[2026-03-06 14:27:18] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":5,"items_to_remove":[26548,26549,26550,26551,26552],"items":[{"id":null,"menu_item_id":52,"quantity":4},{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":83,"quantity":1}]} 
[2026-03-06 14:27:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5514,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["52|4|","106|1|","3|1|","403|1|","83|1|"],"new_items_map_keys":["52|4|","106|1|","403|1|","83|1|"]} 
[2026-03-06 14:27:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5514,"order_number":"AZS-060326-003"} 
[2026-03-06 14:27:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-003","replaced_order_id":5514} 
[2026-03-06 14:27:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5515,"items_count":4,"items":[{"menu_item_id":52,"quantity":4,"price":"70.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":83,"quantity":1,"price":"649.00"}]} 
[2026-03-06 14:27:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5515,"item_index":0,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5515}} 
[2026-03-06 14:27:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5515,"item_index":0,"menu_item_id":52} 
[2026-03-06 14:27:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5515,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5515}} 
[2026-03-06 14:27:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5515,"item_index":1,"menu_item_id":106} 
[2026-03-06 14:27:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5515,"item_index":2,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5515}} 
[2026-03-06 14:27:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5515,"item_index":2,"menu_item_id":403} 
[2026-03-06 14:27:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5515,"item_index":3,"item_data":{"menu_item_id":83,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Chicken Nuggets","quantity":1,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":649.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5515}} 
[2026-03-06 14:27:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5515,"item_index":3,"menu_item_id":83} 
[2026-03-06 14:27:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5514,"new_order_id":5515,"order_number":"AZS-060326-003"} 
[2026-03-06 14:27:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5515,"item_index":0,"item_id":26530} 
[2026-03-06 14:27:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5515,"item_index":1,"item_id":26531} 
[2026-03-06 14:27:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5515,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":26530},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":26531},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null}]} 
[2026-03-06 14:27:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5515,"items_count":4} 
[2026-03-06 14:27:22] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[26553,26554,26555,26556],"items":[{"id":null,"menu_item_id":52,"quantity":4},{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":83,"quantity":1}]} 
[2026-03-06 14:27:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5515,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["52|4|","106|1|","403|1|","83|1|"],"new_items_map_keys":["52|4|","106|1|","403|1|","83|1|"]} 
[2026-03-06 14:27:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5515,"order_number":"AZS-060326-003"} 
[2026-03-06 14:27:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5515,"order_number":"AZS-060326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 14:27:22"} 
[2026-03-06 14:27:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5510,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":26534},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":26535},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":26536},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26534,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":26535,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":26536,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-06 14:27:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5510,"items_count":4} 
[2026-03-06 14:27:44] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26534,"menu_item_id":105,"quantity":1},{"id":26535,"menu_item_id":64,"quantity":1},{"id":26536,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-06 14:27:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5510,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["105|1|","64|1|","396|3|"],"new_items_map_keys":["105|1|","64|1|","396|3|","3|1|"]} 
[2026-03-06 14:27:44] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5510,"order_number":"AZS-060326-011"} 
[2026-03-06 14:27:44] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-011","replaced_order_id":5510} 
[2026-03-06 14:27:44] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5516,"items_count":4,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-06 14:27:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5516,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5516}} 
[2026-03-06 14:27:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5516,"item_index":0,"menu_item_id":105} 
[2026-03-06 14:27:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5516,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5516}} 
[2026-03-06 14:27:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5516,"item_index":1,"menu_item_id":64} 
[2026-03-06 14:27:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5516,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5516}} 
[2026-03-06 14:27:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5516,"item_index":2,"menu_item_id":396} 
[2026-03-06 14:27:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5516,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5516}} 
[2026-03-06 14:27:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5516,"item_index":3,"menu_item_id":3} 
[2026-03-06 14:27:44] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5510,"new_order_id":5516,"order_number":"AZS-060326-011"} 
[2026-03-06 14:27:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5515,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null,"id":26553},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":26554},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":26555},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null,"id":26556},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26553,"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null},{"id":26554,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":26555,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"id":26556,"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-06 14:27:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5515,"items_count":5} 
[2026-03-06 14:27:55] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26553,"menu_item_id":52,"quantity":4},{"id":26554,"menu_item_id":106,"quantity":1},{"id":26555,"menu_item_id":403,"quantity":1},{"id":26556,"menu_item_id":83,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-06 14:27:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5515,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["52|4|","106|1|","403|1|","83|1|"],"new_items_map_keys":["52|4|","106|1|","403|1|","83|1|","5|1|"]} 
[2026-03-06 14:27:55] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5515,"order_number":"AZS-060326-003"} 
[2026-03-06 14:27:55] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-003","replaced_order_id":5515} 
[2026-03-06 14:27:55] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5517,"items_count":5,"items":[{"menu_item_id":52,"quantity":4,"price":"70.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":83,"quantity":1,"price":"649.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-06 14:27:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5517,"item_index":0,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5517}} 
[2026-03-06 14:27:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5517,"item_index":0,"menu_item_id":52} 
[2026-03-06 14:27:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5517,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5517}} 
[2026-03-06 14:27:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5517,"item_index":1,"menu_item_id":106} 
[2026-03-06 14:27:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5517,"item_index":2,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5517}} 
[2026-03-06 14:27:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5517,"item_index":2,"menu_item_id":403} 
[2026-03-06 14:27:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5517,"item_index":3,"item_data":{"menu_item_id":83,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Chicken Nuggets","quantity":1,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":649.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5517}} 
[2026-03-06 14:27:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5517,"item_index":3,"menu_item_id":83} 
[2026-03-06 14:27:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5517,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5517}} 
[2026-03-06 14:27:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5517,"item_index":4,"menu_item_id":5} 
[2026-03-06 14:27:55] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5515,"new_order_id":5517,"order_number":"AZS-060326-003"} 
[2026-03-06 14:28:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5517,"item_index":0,"item_id":26553} 
[2026-03-06 14:28:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5517,"item_index":1,"item_id":26554} 
[2026-03-06 14:28:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5517,"item_index":2,"item_id":26555} 
[2026-03-06 14:28:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5517,"item_index":3,"item_id":26556} 
[2026-03-06 14:28:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5517,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":26553},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":26554},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":26555},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":26556},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-06 14:28:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5517,"items_count":5} 
[2026-03-06 14:28:21] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[26561,26562,26563,26564,26565],"items":[{"id":null,"menu_item_id":52,"quantity":4},{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":83,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-06 14:28:21] local.INFO: PosOrderController::update - Item changes check {"order_id":5517,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["52|4|","106|1|","403|1|","83|1|","5|1|"],"new_items_map_keys":["52|4|","106|1|","403|1|","83|1|","5|1|"]} 
[2026-03-06 14:28:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5517,"order_number":"AZS-060326-003"} 
[2026-03-06 14:28:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5517,"order_number":"AZS-060326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 14:28:21"} 
[2026-03-06 14:28:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5517,"item_index":0,"item_id":26553} 
[2026-03-06 14:28:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5517,"item_index":1,"item_id":26554} 
[2026-03-06 14:28:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5517,"item_index":2,"item_id":26555} 
[2026-03-06 14:28:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5517,"item_index":3,"item_id":26556} 
[2026-03-06 14:28:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5517,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null,"id":26553},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":26554},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":26555},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null,"id":26556},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-06 14:28:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5517,"items_count":5} 
[2026-03-06 14:28:34] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[26561,26562,26563,26564,26565],"items":[{"id":null,"menu_item_id":52,"quantity":4},{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":83,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-06 14:28:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5517,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["52|4|","106|1|","403|1|","83|1|","5|1|"],"new_items_map_keys":["52|4|","106|1|","403|1|","83|1|","5|1|"]} 
[2026-03-06 14:28:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5517,"order_number":"AZS-060326-003"} 
[2026-03-06 14:28:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5517,"order_number":"AZS-060326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-06 14:28:34"} 
[2026-03-06 14:30:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5513,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26545},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26546},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26547}],"validated_items":[{"id":26545,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26546,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26547,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-06 14:30:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5513,"items_count":3} 
[2026-03-06 14:30:38] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26545,"menu_item_id":113,"quantity":1},{"id":26546,"menu_item_id":396,"quantity":3},{"id":26547,"menu_item_id":3,"quantity":1}]} 
[2026-03-06 14:30:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5513,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["113|1|","396|3|","3|1|"],"new_items_map_keys":["113|1|","396|3|","3|1|"]} 
[2026-03-06 14:30:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5513,"order_number":"AZS-060326-010"} 
[2026-03-06 14:30:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5513,"order_number":"AZS-060326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 14:30:38"} 
[2026-03-06 14:32:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5517,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":26561},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":26562},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":26563},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":26564},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26565}],"validated_items":[{"id":26561,"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":26562,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":26563,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":26564,"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":26565,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-06 14:32:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5517,"items_count":5} 
[2026-03-06 14:32:15] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26561,"menu_item_id":52,"quantity":4},{"id":26562,"menu_item_id":106,"quantity":1},{"id":26563,"menu_item_id":403,"quantity":1},{"id":26564,"menu_item_id":83,"quantity":1},{"id":26565,"menu_item_id":5,"quantity":1}]} 
[2026-03-06 14:32:15] local.INFO: PosOrderController::update - Item changes check {"order_id":5517,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["52|4|","106|1|","403|1|","83|1|","5|1|"],"new_items_map_keys":["52|4|","106|1|","403|1|","83|1|","5|1|"]} 
[2026-03-06 14:32:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5517,"order_number":"AZS-060326-003"} 
[2026-03-06 14:32:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5517,"order_number":"AZS-060326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 14:32:15"} 
[2026-03-06 14:35:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T02:35:11.461Z","date_to":"2026-03-06T14:35:11.461Z","per_page":"100"} 
[2026-03-06 14:35:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending","changed","pending","changed","paid","pending","paid","pending","changed","changed","paid","paid","pending","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":10,"paid_count":6,"unpaid_count":6,"unique_order_numbers":12} 
[2026-03-06 14:35:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T02:35:11.437Z","date_to":"2026-03-06T14:35:11.437Z","per_page":"100"} 
[2026-03-06 14:35:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending","changed","pending","changed","paid","pending","paid","pending","changed","changed","paid","paid","pending","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":10,"paid_count":6,"unpaid_count":6,"unique_order_numbers":12} 
[2026-03-06 14:35:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T02:35:11.437Z","date_to":"2026-03-06T14:35:11.437Z","per_page":"100"} 
[2026-03-06 14:35:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending","changed","pending","changed","paid","pending","paid","pending","changed","changed","paid","paid","pending","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":10,"paid_count":6,"unpaid_count":6,"unique_order_numbers":12} 
[2026-03-06 14:36:54] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5513,"order_number":"AZS-060326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2030,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 14:36:54"} 
[2026-03-06 14:36:54] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5513,"order_number":"AZS-060326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2030,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 14:36:54"} 
[2026-03-06 14:36:54] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5513,"order_number":"AZS-060326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2030,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 14:36:54"} 
[2026-03-06 14:36:54] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5513,"order_number":"AZS-060326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2030,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 14:36:54"} 
[2026-03-06 14:36:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5513,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26545},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26546},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26547}],"validated_items":[{"id":26545,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26546,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26547,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-06 14:36:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5513,"items_count":3} 
[2026-03-06 14:36:54] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26545,"menu_item_id":113,"quantity":1},{"id":26546,"menu_item_id":396,"quantity":3},{"id":26547,"menu_item_id":3,"quantity":1}]} 
[2026-03-06 14:36:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5513,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["113|1|","396|3|","3|1|"],"new_items_map_keys":["113|1|","396|3|","3|1|"]} 
[2026-03-06 14:36:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5513,"order_number":"AZS-060326-010"} 
[2026-03-06 14:36:54] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5513,"order_number":"AZS-060326-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2030,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-06 14:36:54","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-06 14:36:54"} 
[2026-03-06 14:36:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5513,"order_number":"AZS-060326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-06 14:36:54"} 
[2026-03-06 14:36:54] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5513,"order_number":"AZS-060326-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2030.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-06 14:36:54","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2030,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2030.00","database_verification_match":true,"timestamp":"2026-03-06 14:36:54"} 
[2026-03-06 14:44:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5516,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26557},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":26558},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26559},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26560}],"validated_items":[{"id":26557,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26558,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":26559,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26560,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-06 14:44:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5516,"items_count":4} 
[2026-03-06 14:44:06] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26557,"menu_item_id":105,"quantity":1},{"id":26558,"menu_item_id":64,"quantity":1},{"id":26559,"menu_item_id":396,"quantity":3},{"id":26560,"menu_item_id":3,"quantity":1}]} 
[2026-03-06 14:44:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5516,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["105|1|","64|1|","396|3|","3|1|"],"new_items_map_keys":["105|1|","64|1|","396|3|","3|1|"]} 
[2026-03-06 14:44:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5516,"order_number":"AZS-060326-011"} 
[2026-03-06 14:44:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5516,"order_number":"AZS-060326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 14:44:06"} 
[2026-03-06 14:44:44] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5517,"order_number":"AZS-060326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 14:44:44"} 
[2026-03-06 14:44:44] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5517,"order_number":"AZS-060326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 14:44:44"} 
[2026-03-06 14:44:44] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5517,"order_number":"AZS-060326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 14:44:44"} 
[2026-03-06 14:44:44] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5517,"order_number":"AZS-060326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 14:44:44"} 
[2026-03-06 14:44:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5517,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":26561},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":26562},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":26563},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":26564},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26565}],"validated_items":[{"id":26561,"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":26562,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":26563,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":26564,"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":26565,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-06 14:44:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5517,"items_count":5} 
[2026-03-06 14:44:44] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26561,"menu_item_id":52,"quantity":4},{"id":26562,"menu_item_id":106,"quantity":1},{"id":26563,"menu_item_id":403,"quantity":1},{"id":26564,"menu_item_id":83,"quantity":1},{"id":26565,"menu_item_id":5,"quantity":1}]} 
[2026-03-06 14:44:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5517,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["52|4|","106|1|","403|1|","83|1|","5|1|"],"new_items_map_keys":["52|4|","106|1|","403|1|","83|1|","5|1|"]} 
[2026-03-06 14:44:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5517,"order_number":"AZS-060326-003"} 
[2026-03-06 14:44:44] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5517,"order_number":"AZS-060326-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":6000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-06 14:44:44","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-06 14:44:44"} 
[2026-03-06 14:44:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5517,"order_number":"AZS-060326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-06 14:44:44"} 
[2026-03-06 14:44:44] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5517,"order_number":"AZS-060326-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"6000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-06 14:44:44","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"6000.00","database_verification_match":true,"timestamp":"2026-03-06 14:44:44"} 
[2026-03-06 14:44:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5512,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26538},{"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":26539},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26540},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26541},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26542},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26543},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":26544}],"validated_items":[{"id":26538,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":26539,"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":26540,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26541,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26542,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26543,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26544,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-06 14:44:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5512,"items_count":7} 
[2026-03-06 14:44:57] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26538,"menu_item_id":417,"quantity":1},{"id":26539,"menu_item_id":89,"quantity":1},{"id":26540,"menu_item_id":396,"quantity":2},{"id":26541,"menu_item_id":61,"quantity":1},{"id":26542,"menu_item_id":56,"quantity":1},{"id":26543,"menu_item_id":5,"quantity":1},{"id":26544,"menu_item_id":2,"quantity":2}]} 
[2026-03-06 14:44:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5512,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["417|1|","89|1|","396|2|","61|1|","56|1|","5|1|","2|2|"],"new_items_map_keys":["417|1|","89|1|","396|2|","61|1|","56|1|","5|1|","2|2|"]} 
[2026-03-06 14:44:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5512,"order_number":"AZS-060326-006"} 
[2026-03-06 14:44:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5512,"order_number":"AZS-060326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 14:44:57"} 
[2026-03-06 14:46:20] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5512,"order_number":"AZS-060326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 14:46:20"} 
[2026-03-06 14:46:20] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5512,"order_number":"AZS-060326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 14:46:20"} 
[2026-03-06 14:46:20] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5512,"order_number":"AZS-060326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 14:46:20"} 
[2026-03-06 14:46:20] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5512,"order_number":"AZS-060326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 14:46:20"} 
[2026-03-06 14:46:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":5512,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26538},{"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":26539},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26540},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26542},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26543},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":26544}],"validated_items":[{"id":26538,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":26539,"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":26540,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26542,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26543,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26544,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-06 14:46:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5512,"items_count":6} 
[2026-03-06 14:46:20] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[26541],"items":[{"id":26538,"menu_item_id":417,"quantity":1},{"id":26539,"menu_item_id":89,"quantity":1},{"id":26540,"menu_item_id":396,"quantity":2},{"id":26542,"menu_item_id":56,"quantity":1},{"id":26543,"menu_item_id":5,"quantity":1},{"id":26544,"menu_item_id":2,"quantity":2}]} 
[2026-03-06 14:46:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5512,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["417|1|","89|1|","396|2|","61|1|","56|1|","5|1|","2|2|"],"new_items_map_keys":["417|1|","89|1|","396|2|","56|1|","5|1|","2|2|"]} 
[2026-03-06 14:46:20] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5512,"order_number":"AZS-060326-006","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3500,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-06 14:46:20","original_payment_amount":"0.00","grand_total":3325.0,"timestamp":"2026-03-06 14:46:20"} 
[2026-03-06 14:46:20] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5512,"order_number":"AZS-060326-006"} 
[2026-03-06 14:46:20] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-006","replaced_order_id":5512} 
[2026-03-06 14:46:20] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5512,"new_order_id":5518,"order_number":"AZS-060326-006","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3500.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-06 14:46:20","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-06 14:46:20"} 
[2026-03-06 14:46:20] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5518,"items_count":6,"items":[{"menu_item_id":417,"quantity":1,"price":499.0},{"menu_item_id":89,"quantity":1,"price":1999.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":2,"quantity":2,"price":130.0}]} 
[2026-03-06 14:46:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5518,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":499.0,"discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5518}} 
[2026-03-06 14:46:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5518,"item_index":0,"menu_item_id":417} 
[2026-03-06 14:46:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5518,"item_index":1,"item_data":{"menu_item_id":89,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Rajhistani Handi","quantity":1,"price":1999.0,"discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5518}} 
[2026-03-06 14:46:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5518,"item_index":1,"menu_item_id":89} 
[2026-03-06 14:46:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5518,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5518}} 
[2026-03-06 14:46:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5518,"item_index":2,"menu_item_id":396} 
[2026-03-06 14:46:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5518,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5518}} 
[2026-03-06 14:46:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5518,"item_index":3,"menu_item_id":56} 
[2026-03-06 14:46:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5518,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5518}} 
[2026-03-06 14:46:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5518,"item_index":4,"menu_item_id":5} 
[2026-03-06 14:46:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5518,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5518}} 
[2026-03-06 14:46:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5518,"item_index":5,"menu_item_id":2} 
[2026-03-06 14:46:21] local.ERROR: Error tracking recipe usage for order 5518: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5518, 89, 184, 1, 0.5, 0.00, Order #AZS-060326-006 - 1x Rajhistani Handi, 2026-03-06 14:46:21, 2026-03-06 14:46:21))  
[2026-03-06 14:46:21] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5512,"new_order_id":5518,"order_number":"AZS-060326-006"} 
[2026-03-06 14:46:21] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5512,"new_order_id":5518,"order_number":"AZS-060326-006","route":"api/orders/5512"} 
[2026-03-06 14:50:45] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5503,"order_number":"AZS-060326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 14:50:45"} 
[2026-03-06 14:50:45] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5503,"order_number":"AZS-060326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 14:50:45"} 
[2026-03-06 14:50:45] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5503,"order_number":"AZS-060326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 14:50:45"} 
[2026-03-06 14:50:45] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5503,"order_number":"AZS-060326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 14:50:45"} 
[2026-03-06 14:50:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5503,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26515}],"validated_items":[{"id":26515,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-06 14:50:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5503,"items_count":1} 
[2026-03-06 14:50:45] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26515,"menu_item_id":417,"quantity":1}]} 
[2026-03-06 14:50:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5503,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-06 14:50:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5503,"order_number":"AZS-060326-008"} 
[2026-03-06 14:50:45] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5503,"order_number":"AZS-060326-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-06 14:50:45","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-06 14:50:45"} 
[2026-03-06 14:50:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5503,"order_number":"AZS-060326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-06 14:50:45"} 
[2026-03-06 14:50:45] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5503,"order_number":"AZS-060326-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-06 14:50:45","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-06 14:50:45"} 
[2026-03-06 14:54:32] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5516,"order_number":"AZS-060326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4120,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 14:54:32"} 
[2026-03-06 14:54:32] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5516,"order_number":"AZS-060326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4120,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 14:54:32"} 
[2026-03-06 14:54:32] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5516,"order_number":"AZS-060326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4120,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 14:54:32"} 
[2026-03-06 14:54:32] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5516,"order_number":"AZS-060326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4120,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 14:54:32"} 
[2026-03-06 14:54:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5516,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26557},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":26558},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26559},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26560}],"validated_items":[{"id":26557,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26558,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":26559,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26560,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-06 14:54:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5516,"items_count":4} 
[2026-03-06 14:54:32] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26557,"menu_item_id":105,"quantity":1},{"id":26558,"menu_item_id":64,"quantity":1},{"id":26559,"menu_item_id":396,"quantity":3},{"id":26560,"menu_item_id":3,"quantity":1}]} 
[2026-03-06 14:54:32] local.INFO: PosOrderController::update - Item changes check {"order_id":5516,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["105|1|","64|1|","396|3|","3|1|"],"new_items_map_keys":["105|1|","64|1|","396|3|","3|1|"]} 
[2026-03-06 14:54:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5516,"order_number":"AZS-060326-011"} 
[2026-03-06 14:54:32] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5516,"order_number":"AZS-060326-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4120,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-06 14:54:32","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-06 14:54:32"} 
[2026-03-06 14:54:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5516,"order_number":"AZS-060326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-06 14:54:32"} 
[2026-03-06 14:54:32] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5516,"order_number":"AZS-060326-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4120.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-06 14:54:32","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4120,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4120.00","database_verification_match":true,"timestamp":"2026-03-06 14:54:32"} 
[2026-03-06 14:58:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T02:58:30.772Z","date_to":"2026-03-06T14:58:30.772Z","per_page":"100"} 
[2026-03-06 14:58:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T02:58:30.791Z","date_to":"2026-03-06T14:58:30.791Z","per_page":"100"} 
[2026-03-06 14:58:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":11,"paid_count":11,"unpaid_count":2,"unique_order_numbers":13} 
[2026-03-06 14:58:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":11,"paid_count":11,"unpaid_count":2,"unique_order_numbers":13} 
[2026-03-06 14:58:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T02:58:30.772Z","date_to":"2026-03-06T14:58:30.772Z","per_page":"100"} 
[2026-03-06 14:58:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":11,"paid_count":11,"unpaid_count":2,"unique_order_numbers":13} 
[2026-03-06 15:11:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5519,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":393,"quantity":3,"discount_percent":0,"notes":null,"id":26572},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":26573},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26574},{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":26575},{"menu_item_id":13,"quantity":6,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":26572,"menu_item_id":393,"quantity":3,"discount_percent":0,"notes":null},{"id":26573,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"id":26574,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":26575,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":6,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-06 15:11:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5519,"items_count":6} 
[2026-03-06 15:11:19] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26572,"menu_item_id":393,"quantity":3},{"id":26573,"menu_item_id":137,"quantity":1},{"id":26574,"menu_item_id":5,"quantity":1},{"id":26575,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":13,"quantity":6},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-06 15:11:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5519,"has_item_changes":true,"old_items_count":4,"new_items_count":6,"old_items_map_keys":["393|3|","137|1|","5|1|","417|1|"],"new_items_map_keys":["393|3|","137|1|","5|1|","417|1|","13|6|","2|2|"]} 
[2026-03-06 15:11:19] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5519,"order_number":"AZS-060326-013"} 
[2026-03-06 15:11:19] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-013","replaced_order_id":5519} 
[2026-03-06 15:11:19] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5521,"items_count":6,"items":[{"menu_item_id":393,"quantity":3,"price":"499.00"},{"menu_item_id":137,"quantity":1,"price":"1299.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":13,"quantity":6,"price":"249.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-06 15:11:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5521,"item_index":0,"item_data":{"menu_item_id":393,"restaurant_category_id":35,"restaurant_category_name":"ROCK N ROLL","item_name":"Chicken Shawarma","quantity":3,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":1497.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5521}} 
[2026-03-06 15:11:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5521,"item_index":0,"menu_item_id":393} 
[2026-03-06 15:11:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5521,"item_index":1,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5521}} 
[2026-03-06 15:11:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5521,"item_index":1,"menu_item_id":137} 
[2026-03-06 15:11:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5521,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5521}} 
[2026-03-06 15:11:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5521,"item_index":2,"menu_item_id":5} 
[2026-03-06 15:11:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5521,"item_index":3,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5521}} 
[2026-03-06 15:11:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5521,"item_index":3,"menu_item_id":417} 
[2026-03-06 15:11:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5521,"item_index":4,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":6,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":1494.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5521}} 
[2026-03-06 15:11:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5521,"item_index":4,"menu_item_id":13} 
[2026-03-06 15:11:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5521,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5521}} 
[2026-03-06 15:11:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5521,"item_index":5,"menu_item_id":2} 
[2026-03-06 15:11:19] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5519,"new_order_id":5521,"order_number":"AZS-060326-013"} 
[2026-03-06 16:04:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5511,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":427,"quantity":40,"price":1400,"discount_percent":0,"notes":null,"id":26537}],"validated_items":[{"id":26537,"menu_item_id":427,"quantity":40,"price":1400,"discount_percent":0,"notes":null}]} 
[2026-03-06 16:04:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5511,"items_count":1} 
[2026-03-06 16:04:23] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26537,"menu_item_id":427,"quantity":40}]} 
[2026-03-06 16:04:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5511,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["427|40|"],"new_items_map_keys":["427|40|"]} 
[2026-03-06 16:04:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5511,"order_number":"AZS-060326-012"} 
[2026-03-06 16:04:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5511,"order_number":"AZS-060326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 16:04:23"} 
[2026-03-06 16:29:46] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5511,"order_number":"AZS-060326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":56000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 16:29:46"} 
[2026-03-06 16:29:46] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5511,"order_number":"AZS-060326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":56000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 16:29:46"} 
[2026-03-06 16:29:46] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5511,"order_number":"AZS-060326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":56000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 16:29:46"} 
[2026-03-06 16:29:46] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5511,"order_number":"AZS-060326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":56000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 16:29:46"} 
[2026-03-06 16:29:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5511,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":427,"quantity":40,"price":1400,"discount_percent":0,"notes":null,"id":26537}],"validated_items":[{"id":26537,"menu_item_id":427,"quantity":40,"price":1400,"discount_percent":0,"notes":null}]} 
[2026-03-06 16:29:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5511,"items_count":1} 
[2026-03-06 16:29:46] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26537,"menu_item_id":427,"quantity":40}]} 
[2026-03-06 16:29:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5511,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["427|40|"],"new_items_map_keys":["427|40|"]} 
[2026-03-06 16:29:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5511,"order_number":"AZS-060326-012"} 
[2026-03-06 16:29:46] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5511,"order_number":"AZS-060326-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":56000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-06 16:29:46","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-06 16:29:46"} 
[2026-03-06 16:29:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5511,"order_number":"AZS-060326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-06 16:29:46"} 
[2026-03-06 16:29:46] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5511,"order_number":"AZS-060326-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"56000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-06 16:29:46","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":56000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"56000.00","database_verification_match":true,"timestamp":"2026-03-06 16:29:46"} 
[2026-03-06 16:56:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5524,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":26592},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":26593},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":26592,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":26593,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-06 16:56:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5524,"items_count":3} 
[2026-03-06 16:56:36] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26592,"menu_item_id":113,"quantity":1},{"id":26593,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-06 16:56:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5524,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["113|1|","396|1|"],"new_items_map_keys":["113|1|","396|1|","2|2|"]} 
[2026-03-06 16:56:36] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5524,"order_number":"AZS-060326-017"} 
[2026-03-06 16:56:36] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-017","replaced_order_id":5524} 
[2026-03-06 16:56:36] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5526,"items_count":3,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-06 16:56:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5526,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5526}} 
[2026-03-06 16:56:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5526,"item_index":0,"menu_item_id":113} 
[2026-03-06 16:56:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5526,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5526}} 
[2026-03-06 16:56:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5526,"item_index":1,"menu_item_id":396} 
[2026-03-06 16:56:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5526,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5526}} 
[2026-03-06 16:56:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5526,"item_index":2,"menu_item_id":2} 
[2026-03-06 16:56:36] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5524,"new_order_id":5526,"order_number":"AZS-060326-017"} 
[2026-03-06 16:56:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5523,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":26591}],"validated_items":[{"id":26591,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-06 16:56:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5523,"items_count":1} 
[2026-03-06 16:56:50] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26591,"menu_item_id":6,"quantity":2}]} 
[2026-03-06 16:56:50] local.INFO: PosOrderController::update - Item changes check {"order_id":5523,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-06 16:56:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5523,"order_number":"AZS-060326-016"} 
[2026-03-06 16:56:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5523,"order_number":"AZS-060326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-06 16:56:50"} 
[2026-03-06 16:56:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5523,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26591}],"validated_items":[{"id":26591,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-06 16:56:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5523,"items_count":1} 
[2026-03-06 16:56:54] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26591,"menu_item_id":6,"quantity":2}]} 
[2026-03-06 16:56:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5523,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-06 16:56:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5523,"order_number":"AZS-060326-016"} 
[2026-03-06 16:56:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5523,"order_number":"AZS-060326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 16:56:54"} 
[2026-03-06 16:58:46] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5523,"order_number":"AZS-060326-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 16:58:46"} 
[2026-03-06 16:58:46] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5523,"order_number":"AZS-060326-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 16:58:46"} 
[2026-03-06 16:58:46] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5523,"order_number":"AZS-060326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 16:58:46"} 
[2026-03-06 16:58:46] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5523,"order_number":"AZS-060326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 16:58:46"} 
[2026-03-06 16:58:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5523,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26591}],"validated_items":[{"id":26591,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-06 16:58:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5523,"items_count":1} 
[2026-03-06 16:58:46] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26591,"menu_item_id":6,"quantity":2}]} 
[2026-03-06 16:58:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5523,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-06 16:58:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5523,"order_number":"AZS-060326-016"} 
[2026-03-06 16:58:46] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5523,"order_number":"AZS-060326-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-06 16:58:46","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-06 16:58:46"} 
[2026-03-06 16:58:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5523,"order_number":"AZS-060326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-06 16:58:46"} 
[2026-03-06 16:58:46] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5523,"order_number":"AZS-060326-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-06 16:58:46","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-06 16:58:46"} 
[2026-03-06 16:58:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5522,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":26584},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":26585},{"menu_item_id":94,"quantity":1,"discount_percent":0,"notes":null,"id":26586},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":26587},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null,"id":26588},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26589},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26590},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26584,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":26585,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":26586,"menu_item_id":94,"quantity":1,"discount_percent":0,"notes":null},{"id":26587,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":26588,"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"id":26589,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26590,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-06 16:58:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5522,"items_count":8} 
[2026-03-06 16:58:59] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26584,"menu_item_id":95,"quantity":1},{"id":26585,"menu_item_id":65,"quantity":1},{"id":26586,"menu_item_id":94,"quantity":1},{"id":26587,"menu_item_id":396,"quantity":2},{"id":26588,"menu_item_id":55,"quantity":2},{"id":26589,"menu_item_id":56,"quantity":1},{"id":26590,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-06 16:58:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5522,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["95|1|","65|1|","94|1|","396|2|","55|2|","56|1|","5|1|"],"new_items_map_keys":["95|1|","65|1|","94|1|","396|2|","55|2|","56|1|","5|1|","3|1|"]} 
[2026-03-06 16:58:59] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5522,"order_number":"AZS-060326-015"} 
[2026-03-06 16:58:59] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-015","replaced_order_id":5522} 
[2026-03-06 16:58:59] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5527,"items_count":8,"items":[{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":94,"quantity":1,"price":"1999.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-06 16:58:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5527,"item_index":0,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5527}} 
[2026-03-06 16:58:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5527,"item_index":0,"menu_item_id":95} 
[2026-03-06 16:58:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5527,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5527}} 
[2026-03-06 16:58:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5527,"item_index":1,"menu_item_id":65} 
[2026-03-06 16:58:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5527,"item_index":2,"item_data":{"menu_item_id":94,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Jalfrezi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5527}} 
[2026-03-06 16:58:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5527,"item_index":2,"menu_item_id":94} 
[2026-03-06 16:58:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5527,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5527}} 
[2026-03-06 16:58:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5527,"item_index":3,"menu_item_id":396} 
[2026-03-06 16:58:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5527,"item_index":4,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5527}} 
[2026-03-06 16:58:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5527,"item_index":4,"menu_item_id":55} 
[2026-03-06 16:58:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5527,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5527}} 
[2026-03-06 16:58:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5527,"item_index":5,"menu_item_id":56} 
[2026-03-06 16:58:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5527,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5527}} 
[2026-03-06 16:58:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5527,"item_index":6,"menu_item_id":5} 
[2026-03-06 16:58:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5527,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5527}} 
[2026-03-06 16:58:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5527,"item_index":7,"menu_item_id":3} 
[2026-03-06 16:58:59] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5522,"new_order_id":5527,"order_number":"AZS-060326-015"} 
[2026-03-06 16:59:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T04:59:30.002Z","date_to":"2026-03-06T16:59:30.002Z","per_page":"100"} 
[2026-03-06 16:59:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending","changed","paid","pending","changed","pending","pending","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":14,"paid_count":13,"unpaid_count":5,"unique_order_numbers":18} 
[2026-03-06 16:59:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T04:59:29.983Z","date_to":"2026-03-06T16:59:29.983Z","per_page":"100"} 
[2026-03-06 16:59:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending","changed","paid","pending","changed","pending","pending","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":14,"paid_count":13,"unpaid_count":5,"unique_order_numbers":18} 
[2026-03-06 16:59:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T04:59:29.983Z","date_to":"2026-03-06T16:59:29.983Z","per_page":"100"} 
[2026-03-06 16:59:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending","changed","paid","pending","changed","pending","pending","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":14,"paid_count":13,"unpaid_count":5,"unique_order_numbers":18} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5527,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":26603},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":26604},{"menu_item_id":94,"quantity":1,"discount_percent":0,"notes":null,"id":26605},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":26606},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null,"id":26607},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26608},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26609},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":26610},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26603,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":26604,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":26605,"menu_item_id":94,"quantity":1,"discount_percent":0,"notes":null},{"id":26606,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":26607,"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"id":26608,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26609,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":26610,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5527,"items_count":9} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26603,"menu_item_id":95,"quantity":1},{"id":26604,"menu_item_id":65,"quantity":1},{"id":26605,"menu_item_id":94,"quantity":1},{"id":26606,"menu_item_id":396,"quantity":2},{"id":26607,"menu_item_id":55,"quantity":2},{"id":26608,"menu_item_id":56,"quantity":1},{"id":26609,"menu_item_id":5,"quantity":1},{"id":26610,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5527,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["95|1|","65|1|","94|1|","396|2|","55|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["95|1|","65|1|","94|1|","396|2|","55|2|","56|1|","5|1|","3|1|","61|1|"]} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5527,"order_number":"AZS-060326-015"} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-015","replaced_order_id":5527} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5528,"items_count":9,"items":[{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":94,"quantity":1,"price":"1999.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"}]} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5528,"item_index":0,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5528}} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5528,"item_index":0,"menu_item_id":95} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5528,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5528}} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5528,"item_index":1,"menu_item_id":65} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5528,"item_index":2,"item_data":{"menu_item_id":94,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Jalfrezi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5528}} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5528,"item_index":2,"menu_item_id":94} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5528,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5528}} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5528,"item_index":3,"menu_item_id":396} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5528,"item_index":4,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5528}} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5528,"item_index":4,"menu_item_id":55} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5528,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5528}} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5528,"item_index":5,"menu_item_id":56} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5528,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5528}} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5528,"item_index":6,"menu_item_id":5} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5528,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5528}} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5528,"item_index":7,"menu_item_id":3} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5528,"item_index":8,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5528}} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5528,"item_index":8,"menu_item_id":61} 
[2026-03-06 17:02:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5527,"new_order_id":5528,"order_number":"AZS-060326-015"} 
[2026-03-06 17:14:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5526,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26600},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26601},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":26602}],"validated_items":[{"id":26600,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26601,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":26602,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-06 17:14:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5526,"items_count":3} 
[2026-03-06 17:14:38] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26600,"menu_item_id":113,"quantity":1},{"id":26601,"menu_item_id":396,"quantity":1},{"id":26602,"menu_item_id":2,"quantity":2}]} 
[2026-03-06 17:14:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5526,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["113|1|","396|1|","2|2|"],"new_items_map_keys":["113|1|","396|1|","2|2|"]} 
[2026-03-06 17:14:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5526,"order_number":"AZS-060326-017"} 
[2026-03-06 17:14:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5526,"order_number":"AZS-060326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 17:14:38"} 
[2026-03-06 17:14:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5526,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26600},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26601},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":26602}],"validated_items":[{"id":26600,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26601,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26602,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-06 17:14:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5526,"items_count":3} 
[2026-03-06 17:14:56] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26600,"menu_item_id":113,"quantity":1},{"id":26601,"menu_item_id":396,"quantity":2},{"id":26602,"menu_item_id":2,"quantity":2}]} 
[2026-03-06 17:14:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5526,"has_item_changes":true,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["113|1|","396|1|","2|2|"],"new_items_map_keys":["113|1|","396|2|","2|2|"]} 
[2026-03-06 17:14:56] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5526,"order_number":"AZS-060326-017"} 
[2026-03-06 17:14:56] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-017","replaced_order_id":5526} 
[2026-03-06 17:14:56] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5529,"items_count":3,"items":[{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":2,"quantity":2,"price":130.0}]} 
[2026-03-06 17:14:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5529,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5529}} 
[2026-03-06 17:14:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5529,"item_index":0,"menu_item_id":113} 
[2026-03-06 17:14:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5529,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5529}} 
[2026-03-06 17:14:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5529,"item_index":1,"menu_item_id":396} 
[2026-03-06 17:14:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5529,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5529}} 
[2026-03-06 17:14:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5529,"item_index":2,"menu_item_id":2} 
[2026-03-06 17:14:56] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5526,"new_order_id":5529,"order_number":"AZS-060326-017"} 
[2026-03-06 17:15:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5529,"item_index":0,"item_id":26600} 
[2026-03-06 17:15:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5529,"item_index":1,"item_id":26601} 
[2026-03-06 17:15:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5529,"item_index":2,"item_id":26602} 
[2026-03-06 17:15:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":5529,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26600},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26601},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":26602}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-06 17:15:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5529,"items_count":3} 
[2026-03-06 17:15:02] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[26620,26621,26622],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-06 17:15:02] local.INFO: PosOrderController::update - Item changes check {"order_id":5529,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["113|1|","396|2|","2|2|"],"new_items_map_keys":["113|1|","396|2|","2|2|"]} 
[2026-03-06 17:15:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5529,"order_number":"AZS-060326-017"} 
[2026-03-06 17:15:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5529,"order_number":"AZS-060326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 17:15:02"} 
[2026-03-06 17:15:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5529,"item_index":0,"item_id":26600} 
[2026-03-06 17:15:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5529,"item_index":1,"item_id":26601} 
[2026-03-06 17:15:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5529,"item_index":2,"item_id":26602} 
[2026-03-06 17:15:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":5529,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26600},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26601},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":26602}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-06 17:15:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5529,"items_count":3} 
[2026-03-06 17:15:34] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[26620,26621,26622],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-06 17:15:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5529,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["113|1|","396|2|","2|2|"],"new_items_map_keys":["113|1|","396|2|","2|2|"]} 
[2026-03-06 17:15:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5529,"order_number":"AZS-060326-017"} 
[2026-03-06 17:15:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5529,"order_number":"AZS-060326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 17:15:34"} 
[2026-03-06 17:16:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5528,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":26611},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":26612},{"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":26613},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26614},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":26615},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26616},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26617},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26618},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26619}],"validated_items":[{"id":26611,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":26612,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":26613,"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":26614,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26615,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":26616,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26617,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26618,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":26619,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-06 17:16:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5528,"items_count":9} 
[2026-03-06 17:16:39] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26611,"menu_item_id":95,"quantity":1},{"id":26612,"menu_item_id":65,"quantity":1},{"id":26613,"menu_item_id":94,"quantity":1},{"id":26614,"menu_item_id":396,"quantity":2},{"id":26615,"menu_item_id":55,"quantity":2},{"id":26616,"menu_item_id":56,"quantity":1},{"id":26617,"menu_item_id":5,"quantity":1},{"id":26618,"menu_item_id":3,"quantity":1},{"id":26619,"menu_item_id":61,"quantity":1}]} 
[2026-03-06 17:16:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5528,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["95|1|","65|1|","94|1|","396|2|","55|2|","56|1|","5|1|","3|1|","61|1|"],"new_items_map_keys":["95|1|","65|1|","94|1|","396|2|","55|2|","56|1|","5|1|","3|1|","61|1|"]} 
[2026-03-06 17:16:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5528,"order_number":"AZS-060326-015"} 
[2026-03-06 17:16:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5528,"order_number":"AZS-060326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 17:16:39"} 
[2026-03-06 17:17:45] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5529,"order_number":"AZS-060326-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 17:17:45"} 
[2026-03-06 17:17:45] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5529,"order_number":"AZS-060326-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 17:17:45"} 
[2026-03-06 17:17:45] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5529,"order_number":"AZS-060326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 17:17:45"} 
[2026-03-06 17:17:45] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5529,"order_number":"AZS-060326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 17:17:45"} 
[2026-03-06 17:17:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5529,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26620},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26621},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":26622}],"validated_items":[{"id":26620,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26621,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26622,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-06 17:17:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5529,"items_count":3} 
[2026-03-06 17:17:45] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26620,"menu_item_id":113,"quantity":1},{"id":26621,"menu_item_id":396,"quantity":2},{"id":26622,"menu_item_id":2,"quantity":2}]} 
[2026-03-06 17:17:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5529,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["113|1|","396|2|","2|2|"],"new_items_map_keys":["113|1|","396|2|","2|2|"]} 
[2026-03-06 17:17:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5529,"order_number":"AZS-060326-017"} 
[2026-03-06 17:17:45] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5529,"order_number":"AZS-060326-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-06 17:17:45","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-06 17:17:45"} 
[2026-03-06 17:17:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5529,"order_number":"AZS-060326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-06 17:17:45"} 
[2026-03-06 17:17:45] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5529,"order_number":"AZS-060326-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-06 17:17:45","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-06 17:17:45"} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5528,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":26611},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":26612},{"menu_item_id":94,"quantity":1,"discount_percent":0,"notes":null,"id":26613},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":26614},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null,"id":26615},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26616},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":26617},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":26618},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26619}],"validated_items":[{"id":26611,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":26612,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":26613,"menu_item_id":94,"quantity":1,"discount_percent":0,"notes":null},{"id":26614,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":26615,"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"id":26616,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26617,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":26618,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"id":26619,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5528,"items_count":9} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26611,"menu_item_id":95,"quantity":1},{"id":26612,"menu_item_id":65,"quantity":1},{"id":26613,"menu_item_id":94,"quantity":1},{"id":26614,"menu_item_id":396,"quantity":2},{"id":26615,"menu_item_id":55,"quantity":2},{"id":26616,"menu_item_id":56,"quantity":1},{"id":26617,"menu_item_id":5,"quantity":2},{"id":26618,"menu_item_id":3,"quantity":1},{"id":26619,"menu_item_id":61,"quantity":1}]} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5528,"has_item_changes":true,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["95|1|","65|1|","94|1|","396|2|","55|2|","56|1|","5|1|","3|1|","61|1|"],"new_items_map_keys":["95|1|","65|1|","94|1|","396|2|","55|2|","56|1|","5|2|","3|1|","61|1|"]} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5528,"order_number":"AZS-060326-015"} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-015","replaced_order_id":5528} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5530,"items_count":9,"items":[{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":94,"quantity":1,"price":"1999.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"}]} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5530,"item_index":0,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5530}} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5530,"item_index":0,"menu_item_id":95} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5530,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5530}} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5530,"item_index":1,"menu_item_id":65} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5530,"item_index":2,"item_data":{"menu_item_id":94,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Jalfrezi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5530}} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5530,"item_index":2,"menu_item_id":94} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5530,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5530}} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5530,"item_index":3,"menu_item_id":396} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5530,"item_index":4,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5530}} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5530,"item_index":4,"menu_item_id":55} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5530,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5530}} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5530,"item_index":5,"menu_item_id":56} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5530,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5530}} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5530,"item_index":6,"menu_item_id":5} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5530,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5530}} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5530,"item_index":7,"menu_item_id":3} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5530,"item_index":8,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5530}} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5530,"item_index":8,"menu_item_id":61} 
[2026-03-06 17:17:58] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5528,"new_order_id":5530,"order_number":"AZS-060326-015"} 
[2026-03-06 17:18:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5530,"item_index":0,"item_id":26611} 
[2026-03-06 17:18:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5530,"item_index":1,"item_id":26612} 
[2026-03-06 17:18:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5530,"item_index":2,"item_id":26613} 
[2026-03-06 17:18:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5530,"item_index":3,"item_id":26614} 
[2026-03-06 17:18:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5530,"item_index":4,"item_id":26615} 
[2026-03-06 17:18:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5530,"item_index":5,"item_id":26616} 
[2026-03-06 17:18:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5530,"item_index":6,"item_id":26617} 
[2026-03-06 17:18:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5530,"item_index":7,"item_id":26618} 
[2026-03-06 17:18:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5530,"item_index":8,"item_id":26619} 
[2026-03-06 17:18:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":9,"order_id":5530,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":26611},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":26612},{"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":26613},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26614},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":26615},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26616},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":26617},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26618},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26619}],"validated_items":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-06 17:18:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5530,"items_count":9} 
[2026-03-06 17:18:19] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":9,"items_to_remove":[26623,26624,26625,26626,26627,26628,26629,26630,26631],"items":[{"id":null,"menu_item_id":95,"quantity":1},{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":94,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":55,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-03-06 17:18:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5530,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["95|1|","65|1|","94|1|","396|2|","55|2|","56|1|","5|2|","3|1|","61|1|"],"new_items_map_keys":["95|1|","65|1|","94|1|","396|2|","55|2|","56|1|","5|2|","3|1|","61|1|"]} 
[2026-03-06 17:18:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5530,"order_number":"AZS-060326-015"} 
[2026-03-06 17:18:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5530,"order_number":"AZS-060326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 17:18:19"} 
[2026-03-06 17:32:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5521,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":393,"quantity":3,"discount_percent":0,"notes":null,"id":26578},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":26579},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26580},{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":26581},{"menu_item_id":13,"quantity":6,"discount_percent":0,"notes":null,"id":26582},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null,"id":26583}],"validated_items":[{"id":26578,"menu_item_id":393,"quantity":3,"discount_percent":0,"notes":null},{"id":26579,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"id":26580,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":26581,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":26582,"menu_item_id":13,"quantity":6,"discount_percent":0,"notes":null},{"id":26583,"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-06 17:32:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5521,"items_count":6} 
[2026-03-06 17:32:40] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26578,"menu_item_id":393,"quantity":3},{"id":26579,"menu_item_id":137,"quantity":1},{"id":26580,"menu_item_id":5,"quantity":1},{"id":26581,"menu_item_id":417,"quantity":1},{"id":26582,"menu_item_id":13,"quantity":6},{"id":26583,"menu_item_id":2,"quantity":2}]} 
[2026-03-06 17:32:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5521,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["393|3|","137|1|","5|1|","417|1|","13|6|","2|2|"],"new_items_map_keys":["393|3|","137|1|","5|1|","417|1|","13|6|","2|2|"]} 
[2026-03-06 17:32:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5521,"order_number":"AZS-060326-013"} 
[2026-03-06 17:32:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5521,"order_number":"AZS-060326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-03-06 17:32:40"} 
[2026-03-06 17:39:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5530,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":26623},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":26624},{"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":26625},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26626},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":26627},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26628},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":26629},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26630},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26631}],"validated_items":[{"id":26623,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":26624,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":26625,"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":26626,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26627,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":26628,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26629,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":26630,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":26631,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-06 17:39:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5530,"items_count":9} 
[2026-03-06 17:39:51] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26623,"menu_item_id":95,"quantity":1},{"id":26624,"menu_item_id":65,"quantity":1},{"id":26625,"menu_item_id":94,"quantity":1},{"id":26626,"menu_item_id":396,"quantity":2},{"id":26627,"menu_item_id":55,"quantity":2},{"id":26628,"menu_item_id":56,"quantity":1},{"id":26629,"menu_item_id":5,"quantity":2},{"id":26630,"menu_item_id":3,"quantity":1},{"id":26631,"menu_item_id":61,"quantity":1}]} 
[2026-03-06 17:39:51] local.INFO: PosOrderController::update - Item changes check {"order_id":5530,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["95|1|","65|1|","94|1|","396|2|","55|2|","56|1|","5|2|","3|1|","61|1|"],"new_items_map_keys":["95|1|","65|1|","94|1|","396|2|","55|2|","56|1|","5|2|","3|1|","61|1|"]} 
[2026-03-06 17:39:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5530,"order_number":"AZS-060326-015"} 
[2026-03-06 17:39:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5530,"order_number":"AZS-060326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 17:39:51"} 
[2026-03-06 17:40:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T05:40:07.045Z","date_to":"2026-03-06T17:40:07.045Z","per_page":"100"} 
[2026-03-06 17:40:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T05:40:07.058Z","date_to":"2026-03-06T17:40:07.058Z","per_page":"100"} 
[2026-03-06 17:40:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","paid","changed","changed","paid","pending","changed","changed","changed","pending","pending","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":17,"paid_count":14,"unpaid_count":4,"unique_order_numbers":18} 
[2026-03-06 17:40:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","paid","changed","changed","paid","pending","changed","changed","changed","pending","pending","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":17,"paid_count":14,"unpaid_count":4,"unique_order_numbers":18} 
[2026-03-06 17:40:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T05:40:07.045Z","date_to":"2026-03-06T17:40:07.045Z","per_page":"100"} 
[2026-03-06 17:40:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","paid","changed","changed","paid","pending","changed","changed","changed","pending","pending","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":17,"paid_count":14,"unpaid_count":4,"unique_order_numbers":18} 
[2026-03-06 17:40:38] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5530,"order_number":"AZS-060326-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":7000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 17:40:38"} 
[2026-03-06 17:40:38] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5530,"order_number":"AZS-060326-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":7000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 17:40:38"} 
[2026-03-06 17:40:38] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5530,"order_number":"AZS-060326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 17:40:38"} 
[2026-03-06 17:40:38] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5530,"order_number":"AZS-060326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 17:40:38"} 
[2026-03-06 17:40:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":1,"order_id":5530,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":26623},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":26624},{"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":26625},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26626},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":26627},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26628},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":26629},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26630}],"validated_items":[{"id":26623,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":26624,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":26625,"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":26626,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26627,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":26628,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26629,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":26630,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-06 17:40:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5530,"items_count":8} 
[2026-03-06 17:40:38] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":1,"items_to_remove":[26631],"items":[{"id":26623,"menu_item_id":95,"quantity":1},{"id":26624,"menu_item_id":65,"quantity":1},{"id":26625,"menu_item_id":94,"quantity":1},{"id":26626,"menu_item_id":396,"quantity":2},{"id":26627,"menu_item_id":55,"quantity":2},{"id":26628,"menu_item_id":56,"quantity":1},{"id":26629,"menu_item_id":5,"quantity":2},{"id":26630,"menu_item_id":3,"quantity":1}]} 
[2026-03-06 17:40:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5530,"has_item_changes":true,"old_items_count":9,"new_items_count":8,"old_items_map_keys":["95|1|","65|1|","94|1|","396|2|","55|2|","56|1|","5|2|","3|1|","61|1|"],"new_items_map_keys":["95|1|","65|1|","94|1|","396|2|","55|2|","56|1|","5|2|","3|1|"]} 
[2026-03-06 17:40:38] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5530,"order_number":"AZS-060326-015","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":7000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-06 17:40:38","original_payment_amount":"0.00","grand_total":6622.0,"timestamp":"2026-03-06 17:40:38"} 
[2026-03-06 17:40:38] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5530,"order_number":"AZS-060326-015"} 
[2026-03-06 17:40:38] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-015","replaced_order_id":5530} 
[2026-03-06 17:40:38] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5530,"new_order_id":5531,"order_number":"AZS-060326-015","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"7000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-06 17:40:38","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":7000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-06 17:40:38"} 
[2026-03-06 17:40:38] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5531,"items_count":8,"items":[{"menu_item_id":95,"quantity":1,"price":1999.0},{"menu_item_id":65,"quantity":1,"price":1299.0},{"menu_item_id":94,"quantity":1,"price":1999.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":55,"quantity":2,"price":159.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":2,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-06 17:40:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5531,"item_index":0,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":1999.0,"discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5531}} 
[2026-03-06 17:40:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5531,"item_index":0,"menu_item_id":95} 
[2026-03-06 17:40:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5531,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5531}} 
[2026-03-06 17:40:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5531,"item_index":1,"menu_item_id":65} 
[2026-03-06 17:40:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5531,"item_index":2,"item_data":{"menu_item_id":94,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Jalfrezi","quantity":1,"price":1999.0,"discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5531}} 
[2026-03-06 17:40:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5531,"item_index":2,"menu_item_id":94} 
[2026-03-06 17:40:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5531,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5531}} 
[2026-03-06 17:40:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5531,"item_index":3,"menu_item_id":396} 
[2026-03-06 17:40:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5531,"item_index":4,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5531}} 
[2026-03-06 17:40:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5531,"item_index":4,"menu_item_id":55} 
[2026-03-06 17:40:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5531,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5531}} 
[2026-03-06 17:40:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5531,"item_index":5,"menu_item_id":56} 
[2026-03-06 17:40:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5531,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5531}} 
[2026-03-06 17:40:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5531,"item_index":6,"menu_item_id":5} 
[2026-03-06 17:40:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5531,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5531}} 
[2026-03-06 17:40:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5531,"item_index":7,"menu_item_id":3} 
[2026-03-06 17:40:38] local.ERROR: Error tracking recipe usage for order 5531: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5531, 95, 184, 1, 500, 0.00, Order #AZS-060326-015 - 1x Chicken Makhni Handi, 2026-03-06 17:40:38, 2026-03-06 17:40:38))  
[2026-03-06 17:40:38] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5530,"new_order_id":5531,"order_number":"AZS-060326-015"} 
[2026-03-06 17:40:38] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5530,"new_order_id":5531,"order_number":"AZS-060326-015","route":"api/orders/5530"} 
[2026-03-06 17:40:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T05:40:39.887Z","date_to":"2026-03-06T17:40:39.887Z","per_page":"100"} 
[2026-03-06 17:40:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T05:40:39.907Z","date_to":"2026-03-06T17:40:39.907Z","per_page":"100"} 
[2026-03-06 17:40:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","pending","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":18,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-03-06 17:40:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","pending","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":18,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-03-06 17:40:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T05:40:39.887Z","date_to":"2026-03-06T17:40:39.887Z","per_page":"100"} 
[2026-03-06 17:40:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","pending","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":18,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-03-06 17:40:45] local.ERROR: SQLSTATE[HY000] [1040] Too many connections (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 12 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 1040): SQLSTATE[HY000] [1040] Too many connections (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 12 limit 1) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('12')
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('cRFobVdWvPuS7ww...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), NULL)
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), NULL)
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#50 {main}

[previous exception] [object] (PDOException(code: 1040): SQLSTATE[HY000] [1040] Too many connections at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=127....', 'pandamartsco_te...', Object(SensitiveParameterValue), Array)
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=127....', 'pandamartsco_te...', 'O?TpDEuS7UUOYE;...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=127....', Array, Array)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('12')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('cRFobVdWvPuS7ww...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), NULL)
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), NULL)
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#53 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#54 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#55 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#58 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#59 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#60 {main}
"} 
[2026-03-06 17:41:38] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5521,"order_number":"AZS-060326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5300,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 17:41:38"} 
[2026-03-06 17:41:38] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5521,"order_number":"AZS-060326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5300,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 17:41:38"} 
[2026-03-06 17:41:38] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5521,"order_number":"AZS-060326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 17:41:38"} 
[2026-03-06 17:41:38] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5521,"order_number":"AZS-060326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 17:41:38"} 
[2026-03-06 17:41:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5521,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":393,"quantity":3,"price":499,"discount_percent":0,"notes":null,"id":26578},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":26579},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26580},{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26581},{"menu_item_id":13,"quantity":6,"price":249,"discount_percent":0,"notes":null,"id":26582},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":26583}],"validated_items":[{"id":26578,"menu_item_id":393,"quantity":3,"price":499,"discount_percent":0,"notes":null},{"id":26579,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":26580,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26581,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":26582,"menu_item_id":13,"quantity":6,"price":249,"discount_percent":0,"notes":null},{"id":26583,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-06 17:41:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5521,"items_count":6} 
[2026-03-06 17:41:38] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26578,"menu_item_id":393,"quantity":3},{"id":26579,"menu_item_id":137,"quantity":1},{"id":26580,"menu_item_id":5,"quantity":1},{"id":26581,"menu_item_id":417,"quantity":1},{"id":26582,"menu_item_id":13,"quantity":6},{"id":26583,"menu_item_id":2,"quantity":2}]} 
[2026-03-06 17:41:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5521,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["393|3|","137|1|","5|1|","417|1|","13|6|","2|2|"],"new_items_map_keys":["393|3|","137|1|","5|1|","417|1|","13|6|","2|2|"]} 
[2026-03-06 17:41:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5521,"order_number":"AZS-060326-013"} 
[2026-03-06 17:41:38] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5521,"order_number":"AZS-060326-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5300,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-06 17:41:38","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-06 17:41:38"} 
[2026-03-06 17:41:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5521,"order_number":"AZS-060326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-06 17:41:38"} 
[2026-03-06 17:41:38] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5521,"order_number":"AZS-060326-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5300.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-06 17:41:38","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5300,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5300.00","database_verification_match":true,"timestamp":"2026-03-06 17:41:38"} 
[2026-03-06 17:41:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T05:41:40.975Z","date_to":"2026-03-06T17:41:40.975Z","per_page":"100"} 
[2026-03-06 17:41:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":18,"paid_count":16,"unpaid_count":2,"unique_order_numbers":18} 
[2026-03-06 17:41:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T05:41:40.989Z","date_to":"2026-03-06T17:41:40.989Z","per_page":"100"} 
[2026-03-06 17:41:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":18,"paid_count":16,"unpaid_count":2,"unique_order_numbers":18} 
[2026-03-06 17:41:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T05:41:40.975Z","date_to":"2026-03-06T17:41:40.975Z","per_page":"100"} 
[2026-03-06 17:41:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":18,"paid_count":16,"unpaid_count":2,"unique_order_numbers":18} 
[2026-03-06 17:46:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T05:46:02.557Z","date_to":"2026-03-06T17:46:02.557Z","per_page":"100"} 
[2026-03-06 17:46:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T05:46:02.543Z","date_to":"2026-03-06T17:46:02.543Z","per_page":"100"} 
[2026-03-06 17:46:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":18,"paid_count":16,"unpaid_count":2,"unique_order_numbers":18} 
[2026-03-06 17:46:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":18,"paid_count":16,"unpaid_count":2,"unique_order_numbers":18} 
[2026-03-06 17:46:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T05:46:02.543Z","date_to":"2026-03-06T17:46:02.543Z","per_page":"100"} 
[2026-03-06 17:46:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":36,"count":36,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":18,"paid_count":16,"unpaid_count":2,"unique_order_numbers":18} 
[2026-03-06 17:53:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5525,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":26594},{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":26595},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":26596},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26597},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26598},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26599},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26594,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"id":26595,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":26596,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":26597,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26598,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26599,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-06 17:53:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5525,"items_count":7} 
[2026-03-06 17:53:44] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26594,"menu_item_id":63,"quantity":1},{"id":26595,"menu_item_id":102,"quantity":1},{"id":26596,"menu_item_id":396,"quantity":2},{"id":26597,"menu_item_id":61,"quantity":1},{"id":26598,"menu_item_id":56,"quantity":1},{"id":26599,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-06 17:53:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5525,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["63|1|","102|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["63|1|","102|1|","396|2|","61|1|","56|1|","5|1|","2|1|"]} 
[2026-03-06 17:53:44] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5525,"order_number":"AZS-060326-018"} 
[2026-03-06 17:53:44] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-018","replaced_order_id":5525} 
[2026-03-06 17:53:44] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5533,"items_count":7,"items":[{"menu_item_id":63,"quantity":1,"price":"1099.00"},{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-06 17:53:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5533,"item_index":0,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5533}} 
[2026-03-06 17:53:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5533,"item_index":0,"menu_item_id":63} 
[2026-03-06 17:53:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5533,"item_index":1,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5533}} 
[2026-03-06 17:53:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5533,"item_index":1,"menu_item_id":102} 
[2026-03-06 17:53:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5533,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5533}} 
[2026-03-06 17:53:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5533,"item_index":2,"menu_item_id":396} 
[2026-03-06 17:53:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5533,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5533}} 
[2026-03-06 17:53:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5533,"item_index":3,"menu_item_id":61} 
[2026-03-06 17:53:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5533,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5533}} 
[2026-03-06 17:53:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5533,"item_index":4,"menu_item_id":56} 
[2026-03-06 17:53:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5533,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5533}} 
[2026-03-06 17:53:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5533,"item_index":5,"menu_item_id":5} 
[2026-03-06 17:53:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5533,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5533}} 
[2026-03-06 17:53:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5533,"item_index":6,"menu_item_id":2} 
[2026-03-06 17:53:44] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5525,"new_order_id":5533,"order_number":"AZS-060326-018"} 
[2026-03-06 17:53:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5533,"item_index":0,"item_id":26594} 
[2026-03-06 17:53:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5533,"item_index":1,"item_id":26595} 
[2026-03-06 17:53:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5533,"item_index":2,"item_id":26596} 
[2026-03-06 17:53:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5533,"item_index":3,"item_id":26597} 
[2026-03-06 17:53:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5533,"item_index":4,"item_id":26598} 
[2026-03-06 17:53:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5533,"item_index":5,"item_id":26599} 
[2026-03-06 17:53:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5533,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":26594},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":26595},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26596},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26597},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26598},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26599},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-06 17:53:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5533,"items_count":7} 
[2026-03-06 17:53:51] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[26641,26642,26643,26644,26645,26646,26647],"items":[{"id":null,"menu_item_id":63,"quantity":1},{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-06 17:53:51] local.INFO: PosOrderController::update - Item changes check {"order_id":5533,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["63|1|","102|1|","396|2|","61|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["63|1|","102|1|","396|2|","61|1|","56|1|","5|1|","2|1|"]} 
[2026-03-06 17:53:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5533,"order_number":"AZS-060326-018"} 
[2026-03-06 17:53:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5533,"order_number":"AZS-060326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 17:53:51"} 
[2026-03-06 17:55:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T05:55:32.047Z","date_to":"2026-03-06T17:55:32.047Z","per_page":"100"} 
[2026-03-06 17:55:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":38,"count":38,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":19,"paid_count":16,"unpaid_count":3,"unique_order_numbers":19} 
[2026-03-06 17:55:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T05:55:32.030Z","date_to":"2026-03-06T17:55:32.030Z","per_page":"100"} 
[2026-03-06 17:55:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":38,"count":38,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":19,"paid_count":16,"unpaid_count":3,"unique_order_numbers":19} 
[2026-03-06 17:55:35] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T05:55:32.030Z","date_to":"2026-03-06T17:55:32.030Z","per_page":"100"} 
[2026-03-06 17:55:35] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":38,"count":38,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","pending","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":19,"paid_count":16,"unpaid_count":3,"unique_order_numbers":19} 
[2026-03-06 17:58:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5533,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":26641},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":26642},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26643},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26644},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26645},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26646},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26647}],"validated_items":[{"id":26641,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":26642,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":26643,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26644,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26645,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26646,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26647,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-06 17:58:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5533,"items_count":7} 
[2026-03-06 17:58:58] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26641,"menu_item_id":63,"quantity":1},{"id":26642,"menu_item_id":102,"quantity":1},{"id":26643,"menu_item_id":396,"quantity":2},{"id":26644,"menu_item_id":61,"quantity":1},{"id":26645,"menu_item_id":56,"quantity":1},{"id":26646,"menu_item_id":5,"quantity":1},{"id":26647,"menu_item_id":2,"quantity":1}]} 
[2026-03-06 17:58:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5533,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["63|1|","102|1|","396|2|","61|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["63|1|","102|1|","396|2|","61|1|","56|1|","5|1|","2|1|"]} 
[2026-03-06 17:58:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5533,"order_number":"AZS-060326-018"} 
[2026-03-06 17:58:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5533,"order_number":"AZS-060326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 17:58:58"} 
[2026-03-06 18:36:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5533,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":26641},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":26642},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26643},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26644},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26645},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26646},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26647}],"validated_items":[{"id":26641,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":26642,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":26643,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26644,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26645,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26646,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26647,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-06 18:36:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5533,"items_count":7} 
[2026-03-06 18:36:21] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26641,"menu_item_id":63,"quantity":1},{"id":26642,"menu_item_id":102,"quantity":1},{"id":26643,"menu_item_id":396,"quantity":2},{"id":26644,"menu_item_id":61,"quantity":1},{"id":26645,"menu_item_id":56,"quantity":1},{"id":26646,"menu_item_id":5,"quantity":1},{"id":26647,"menu_item_id":2,"quantity":1}]} 
[2026-03-06 18:36:21] local.INFO: PosOrderController::update - Item changes check {"order_id":5533,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["63|1|","102|1|","396|2|","61|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["63|1|","102|1|","396|2|","61|1|","56|1|","5|1|","2|1|"]} 
[2026-03-06 18:36:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5533,"order_number":"AZS-060326-018"} 
[2026-03-06 18:36:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5533,"order_number":"AZS-060326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 18:36:21"} 
[2026-03-06 18:36:44] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5533,"order_number":"AZS-060326-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 18:36:44"} 
[2026-03-06 18:36:44] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5533,"order_number":"AZS-060326-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 18:36:44"} 
[2026-03-06 18:36:44] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5533,"order_number":"AZS-060326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 18:36:44"} 
[2026-03-06 18:36:44] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5533,"order_number":"AZS-060326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 18:36:44"} 
[2026-03-06 18:36:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":5533,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":26641},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":26642},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26643},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26645},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26646},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":26647}],"validated_items":[{"id":26641,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":26642,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":26643,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26645,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26646,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26647,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-06 18:36:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5533,"items_count":6} 
[2026-03-06 18:36:44] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[26644],"items":[{"id":26641,"menu_item_id":63,"quantity":1},{"id":26642,"menu_item_id":102,"quantity":1},{"id":26643,"menu_item_id":396,"quantity":2},{"id":26645,"menu_item_id":56,"quantity":1},{"id":26646,"menu_item_id":5,"quantity":1},{"id":26647,"menu_item_id":2,"quantity":1}]} 
[2026-03-06 18:36:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5533,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["63|1|","102|1|","396|2|","61|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["63|1|","102|1|","396|2|","56|1|","5|1|","2|1|"]} 
[2026-03-06 18:36:44] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5533,"order_number":"AZS-060326-018","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3500,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-06 18:36:44","original_payment_amount":"0.00","grand_total":3195.0,"timestamp":"2026-03-06 18:36:44"} 
[2026-03-06 18:36:44] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5533,"order_number":"AZS-060326-018"} 
[2026-03-06 18:36:44] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-018","replaced_order_id":5533} 
[2026-03-06 18:36:44] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5533,"new_order_id":5534,"order_number":"AZS-060326-018","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3500.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-06 18:36:44","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-06 18:36:44"} 
[2026-03-06 18:36:44] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5534,"items_count":6,"items":[{"menu_item_id":63,"quantity":1,"price":1099.0},{"menu_item_id":102,"quantity":1,"price":1399.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":2,"quantity":1,"price":130.0}]} 
[2026-03-06 18:36:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5534,"item_index":0,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":1099.0,"discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5534}} 
[2026-03-06 18:36:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5534,"item_index":0,"menu_item_id":63} 
[2026-03-06 18:36:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5534,"item_index":1,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":1399.0,"discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5534}} 
[2026-03-06 18:36:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5534,"item_index":1,"menu_item_id":102} 
[2026-03-06 18:36:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5534,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5534}} 
[2026-03-06 18:36:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5534,"item_index":2,"menu_item_id":396} 
[2026-03-06 18:36:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5534,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5534}} 
[2026-03-06 18:36:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5534,"item_index":3,"menu_item_id":56} 
[2026-03-06 18:36:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5534,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5534}} 
[2026-03-06 18:36:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5534,"item_index":4,"menu_item_id":5} 
[2026-03-06 18:36:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5534,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5534}} 
[2026-03-06 18:36:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5534,"item_index":5,"menu_item_id":2} 
[2026-03-06 18:36:44] local.ERROR: Error tracking recipe usage for order 5534: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5534, 63, 17, 1, 5000, 0.00, Order #AZS-060326-018 - 1x Chicken Tikka Boti (10 pcs), 2026-03-06 18:36:44, 2026-03-06 18:36:44))  
[2026-03-06 18:36:44] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5533,"new_order_id":5534,"order_number":"AZS-060326-018"} 
[2026-03-06 18:36:45] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5533,"new_order_id":5534,"order_number":"AZS-060326-018","route":"api/orders/5533"} 
[2026-03-06 20:36:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5535,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":26654},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":26654,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-06 20:36:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5535,"items_count":2} 
[2026-03-06 20:36:58] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26654,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-03-06 20:36:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5535,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["113|1|"],"new_items_map_keys":["113|1|","6|2|"]} 
[2026-03-06 20:36:58] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5535,"order_number":"AZS-060326-020"} 
[2026-03-06 20:36:58] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-020","replaced_order_id":5535} 
[2026-03-06 20:36:58] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5537,"items_count":2,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-03-06 20:36:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5537,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5537}} 
[2026-03-06 20:36:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5537,"item_index":0,"menu_item_id":113} 
[2026-03-06 20:36:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5537,"item_index":1,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5537}} 
[2026-03-06 20:36:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5537,"item_index":1,"menu_item_id":6} 
[2026-03-06 20:36:58] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5535,"new_order_id":5537,"order_number":"AZS-060326-020"} 
[2026-03-06 21:14:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5537,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":26661},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":26662}],"validated_items":[{"id":26661,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":26662,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-06 21:14:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5537,"items_count":2} 
[2026-03-06 21:14:27] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26661,"menu_item_id":113,"quantity":1},{"id":26662,"menu_item_id":6,"quantity":2}]} 
[2026-03-06 21:14:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5537,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["113|1|","6|2|"],"new_items_map_keys":["113|1|","6|2|"]} 
[2026-03-06 21:14:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5537,"order_number":"AZS-060326-020"} 
[2026-03-06 21:14:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5537,"order_number":"AZS-060326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-06 21:14:27"} 
[2026-03-06 21:14:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5536,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":26655},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":26656},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26657},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26658},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26659},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":26660},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":26655,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":26656,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":26657,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26658,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26659,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":26660,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-06 21:14:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5536,"items_count":7} 
[2026-03-06 21:14:44] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26655,"menu_item_id":106,"quantity":1},{"id":26656,"menu_item_id":396,"quantity":3},{"id":26657,"menu_item_id":61,"quantity":1},{"id":26658,"menu_item_id":56,"quantity":1},{"id":26659,"menu_item_id":5,"quantity":1},{"id":26660,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-03-06 21:14:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5536,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["106|1|","396|3|","61|1|","56|1|","5|1|","403|1|"],"new_items_map_keys":["106|1|","396|3|","61|1|","56|1|","5|1|","403|1|","2|3|"]} 
[2026-03-06 21:14:44] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5536,"order_number":"AZS-060326-021"} 
[2026-03-06 21:14:44] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-021","replaced_order_id":5536} 
[2026-03-06 21:14:44] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5539,"items_count":7,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"}]} 
[2026-03-06 21:14:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5539,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5539}} 
[2026-03-06 21:14:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5539,"item_index":0,"menu_item_id":106} 
[2026-03-06 21:14:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5539,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5539}} 
[2026-03-06 21:14:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5539,"item_index":1,"menu_item_id":396} 
[2026-03-06 21:14:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5539,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5539}} 
[2026-03-06 21:14:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5539,"item_index":2,"menu_item_id":61} 
[2026-03-06 21:14:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5539,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5539}} 
[2026-03-06 21:14:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5539,"item_index":3,"menu_item_id":56} 
[2026-03-06 21:14:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5539,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5539}} 
[2026-03-06 21:14:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5539,"item_index":4,"menu_item_id":5} 
[2026-03-06 21:14:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5539,"item_index":5,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5539}} 
[2026-03-06 21:14:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5539,"item_index":5,"menu_item_id":403} 
[2026-03-06 21:14:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5539,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5539}} 
[2026-03-06 21:14:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5539,"item_index":6,"menu_item_id":2} 
[2026-03-06 21:14:44] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5536,"new_order_id":5539,"order_number":"AZS-060326-021"} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5538,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":26663},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":26664},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":26665},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":26666},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26667},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26668},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null,"id":26669},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26670},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26663,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":26664,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":26665,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":26666,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":26667,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26668,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26669,"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null},{"id":26670,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5538,"items_count":9} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26663,"menu_item_id":114,"quantity":1},{"id":26664,"menu_item_id":98,"quantity":1},{"id":26665,"menu_item_id":112,"quantity":1},{"id":26666,"menu_item_id":396,"quantity":4},{"id":26667,"menu_item_id":61,"quantity":1},{"id":26668,"menu_item_id":56,"quantity":1},{"id":26669,"menu_item_id":52,"quantity":2},{"id":26670,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5538,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["114|1|","98|1|","112|1|","396|4|","61|1|","56|1|","52|2|","5|1|"],"new_items_map_keys":["114|1|","98|1|","112|1|","396|4|","61|1|","56|1|","52|2|","5|1|","3|1|"]} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5538,"order_number":"AZS-060326-022"} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-022","replaced_order_id":5538} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5540,"items_count":9,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":52,"quantity":2,"price":"70.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5540,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5540}} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5540,"item_index":0,"menu_item_id":114} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5540,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5540}} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5540,"item_index":1,"menu_item_id":98} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5540,"item_index":2,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5540}} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5540,"item_index":2,"menu_item_id":112} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5540,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5540}} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5540,"item_index":3,"menu_item_id":396} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5540,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5540}} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5540,"item_index":4,"menu_item_id":61} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5540,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5540}} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5540,"item_index":5,"menu_item_id":56} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5540,"item_index":6,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5540}} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5540,"item_index":6,"menu_item_id":52} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5540,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5540}} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5540,"item_index":7,"menu_item_id":5} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5540,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5540}} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5540,"item_index":8,"menu_item_id":3} 
[2026-03-06 21:26:22] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5538,"new_order_id":5540,"order_number":"AZS-060326-022"} 
[2026-03-06 21:26:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5539,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":26671},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":26672},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":26673},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26674},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26675},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":26676},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":26677}],"validated_items":[{"id":26671,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":26672,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":26673,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":26674,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26675,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":26676,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"id":26677,"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-06 21:26:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5539,"items_count":7} 
[2026-03-06 21:26:55] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26671,"menu_item_id":106,"quantity":1},{"id":26672,"menu_item_id":396,"quantity":3},{"id":26673,"menu_item_id":61,"quantity":2},{"id":26674,"menu_item_id":56,"quantity":1},{"id":26675,"menu_item_id":5,"quantity":1},{"id":26676,"menu_item_id":403,"quantity":1},{"id":26677,"menu_item_id":2,"quantity":3}]} 
[2026-03-06 21:26:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5539,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","396|3|","61|1|","56|1|","5|1|","403|1|","2|3|"],"new_items_map_keys":["106|1|","396|3|","61|2|","56|1|","5|1|","403|1|","2|3|"]} 
[2026-03-06 21:26:55] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5539,"order_number":"AZS-060326-021"} 
[2026-03-06 21:26:55] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-021","replaced_order_id":5539} 
[2026-03-06 21:26:55] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5541,"items_count":7,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"}]} 
[2026-03-06 21:26:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5541,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5541}} 
[2026-03-06 21:26:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5541,"item_index":0,"menu_item_id":106} 
[2026-03-06 21:26:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5541,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5541}} 
[2026-03-06 21:26:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5541,"item_index":1,"menu_item_id":396} 
[2026-03-06 21:26:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5541,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5541}} 
[2026-03-06 21:26:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5541,"item_index":2,"menu_item_id":61} 
[2026-03-06 21:26:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5541,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5541}} 
[2026-03-06 21:26:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5541,"item_index":3,"menu_item_id":56} 
[2026-03-06 21:26:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5541,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5541}} 
[2026-03-06 21:26:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5541,"item_index":4,"menu_item_id":5} 
[2026-03-06 21:26:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5541,"item_index":5,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5541}} 
[2026-03-06 21:26:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5541,"item_index":5,"menu_item_id":403} 
[2026-03-06 21:26:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5541,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5541}} 
[2026-03-06 21:26:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5541,"item_index":6,"menu_item_id":2} 
[2026-03-06 21:26:55] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5539,"new_order_id":5541,"order_number":"AZS-060326-021"} 
[2026-03-06 21:28:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5541,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":26687},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":26688},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":26689},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26690},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26691},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":26692},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":26693},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":26687,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":26688,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":26689,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":26690,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26691,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":26692,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"id":26693,"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-06 21:28:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5541,"items_count":8} 
[2026-03-06 21:28:10] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26687,"menu_item_id":106,"quantity":1},{"id":26688,"menu_item_id":396,"quantity":3},{"id":26689,"menu_item_id":61,"quantity":2},{"id":26690,"menu_item_id":56,"quantity":1},{"id":26691,"menu_item_id":5,"quantity":1},{"id":26692,"menu_item_id":403,"quantity":1},{"id":26693,"menu_item_id":2,"quantity":3},{"id":null,"menu_item_id":13,"quantity":3}]} 
[2026-03-06 21:28:10] local.INFO: PosOrderController::update - Item changes check {"order_id":5541,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["106|1|","396|3|","61|2|","56|1|","5|1|","403|1|","2|3|"],"new_items_map_keys":["106|1|","396|3|","61|2|","56|1|","5|1|","403|1|","2|3|","13|3|"]} 
[2026-03-06 21:28:10] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5541,"order_number":"AZS-060326-021"} 
[2026-03-06 21:28:10] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-021","replaced_order_id":5541} 
[2026-03-06 21:28:10] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5542,"items_count":8,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"},{"menu_item_id":13,"quantity":3,"price":"249.00"}]} 
[2026-03-06 21:28:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5542,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5542}} 
[2026-03-06 21:28:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5542,"item_index":0,"menu_item_id":106} 
[2026-03-06 21:28:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5542,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5542}} 
[2026-03-06 21:28:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5542,"item_index":1,"menu_item_id":396} 
[2026-03-06 21:28:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5542,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5542}} 
[2026-03-06 21:28:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5542,"item_index":2,"menu_item_id":61} 
[2026-03-06 21:28:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5542,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5542}} 
[2026-03-06 21:28:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5542,"item_index":3,"menu_item_id":56} 
[2026-03-06 21:28:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5542,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5542}} 
[2026-03-06 21:28:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5542,"item_index":4,"menu_item_id":5} 
[2026-03-06 21:28:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5542,"item_index":5,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5542}} 
[2026-03-06 21:28:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5542,"item_index":5,"menu_item_id":403} 
[2026-03-06 21:28:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5542,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5542}} 
[2026-03-06 21:28:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5542,"item_index":6,"menu_item_id":2} 
[2026-03-06 21:28:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5542,"item_index":7,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5542}} 
[2026-03-06 21:28:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5542,"item_index":7,"menu_item_id":13} 
[2026-03-06 21:28:10] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5541,"new_order_id":5542,"order_number":"AZS-060326-021"} 
[2026-03-06 21:35:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T09:35:47.250Z","date_to":"2026-03-06T21:35:47.250Z","per_page":"100"} 
[2026-03-06 21:35:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T09:35:47.266Z","date_to":"2026-03-06T21:35:47.266Z","per_page":"100"} 
[2026-03-06 21:35:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":47,"count":47,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","changed","pending","changed","changed","changed","pending","changed","pending","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":25,"paid_count":17,"unpaid_count":5,"unique_order_numbers":22} 
[2026-03-06 21:35:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":47,"count":47,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","changed","pending","changed","changed","changed","pending","changed","pending","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":25,"paid_count":17,"unpaid_count":5,"unique_order_numbers":22} 
[2026-03-06 21:35:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T09:35:47.250Z","date_to":"2026-03-06T21:35:47.250Z","per_page":"100"} 
[2026-03-06 21:35:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":47,"count":47,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","changed","pending","changed","changed","changed","pending","changed","pending","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":25,"paid_count":17,"unpaid_count":5,"unique_order_numbers":22} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5540,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":26678},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":26679},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":26680},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":26681},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26682},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":26683},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null,"id":26684},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26685},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":26686}],"validated_items":[{"id":26678,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":26679,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":26680,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":26681,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":26682,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26683,"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"id":26684,"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null},{"id":26685,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":26686,"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5540,"items_count":9} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26678,"menu_item_id":114,"quantity":1},{"id":26679,"menu_item_id":98,"quantity":1},{"id":26680,"menu_item_id":112,"quantity":1},{"id":26681,"menu_item_id":396,"quantity":4},{"id":26682,"menu_item_id":61,"quantity":1},{"id":26683,"menu_item_id":56,"quantity":3},{"id":26684,"menu_item_id":52,"quantity":2},{"id":26685,"menu_item_id":5,"quantity":1},{"id":26686,"menu_item_id":3,"quantity":2}]} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Item changes check {"order_id":5540,"has_item_changes":true,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["114|1|","98|1|","112|1|","396|4|","61|1|","56|1|","52|2|","5|1|","3|1|"],"new_items_map_keys":["114|1|","98|1|","112|1|","396|4|","61|1|","56|3|","52|2|","5|1|","3|2|"]} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5540,"order_number":"AZS-060326-022"} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-022","replaced_order_id":5540} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5543,"items_count":9,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":3,"price":"199.00"},{"menu_item_id":52,"quantity":2,"price":"70.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5543,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5543}} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5543,"item_index":0,"menu_item_id":114} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5543,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5543}} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5543,"item_index":1,"menu_item_id":98} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5543,"item_index":2,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5543}} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5543,"item_index":2,"menu_item_id":112} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5543,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5543}} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5543,"item_index":3,"menu_item_id":396} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5543,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5543}} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5543,"item_index":4,"menu_item_id":61} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5543,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5543}} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5543,"item_index":5,"menu_item_id":56} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5543,"item_index":6,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5543}} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5543,"item_index":6,"menu_item_id":52} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5543,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5543}} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5543,"item_index":7,"menu_item_id":5} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5543,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5543}} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5543,"item_index":8,"menu_item_id":3} 
[2026-03-06 21:45:35] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5540,"new_order_id":5543,"order_number":"AZS-060326-022"} 
[2026-03-06 21:46:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5542,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":26694},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26695},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26696},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26697},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26698},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":26699},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":26700},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":26701}],"validated_items":[{"id":26694,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":26695,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26696,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":26697,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26698,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26699,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":26700,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":26701,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-06 21:46:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5542,"items_count":8} 
[2026-03-06 21:46:18] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26694,"menu_item_id":106,"quantity":1},{"id":26695,"menu_item_id":396,"quantity":3},{"id":26696,"menu_item_id":61,"quantity":2},{"id":26697,"menu_item_id":56,"quantity":1},{"id":26698,"menu_item_id":5,"quantity":1},{"id":26699,"menu_item_id":403,"quantity":1},{"id":26700,"menu_item_id":2,"quantity":3},{"id":26701,"menu_item_id":13,"quantity":3}]} 
[2026-03-06 21:46:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5542,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["106|1|","396|3|","61|2|","56|1|","5|1|","403|1|","2|3|","13|3|"],"new_items_map_keys":["106|1|","396|3|","61|2|","56|1|","5|1|","403|1|","2|3|","13|3|"]} 
[2026-03-06 21:46:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5542,"order_number":"AZS-060326-021"} 
[2026-03-06 21:46:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5542,"order_number":"AZS-060326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 21:46:18"} 
[2026-03-06 21:50:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5542,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":26694},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26695},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26696},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26697},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26698},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":26699},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":26700},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":26701}],"validated_items":[{"id":26694,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":26695,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26696,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":26697,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26698,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26699,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":26700,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":26701,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-06 21:50:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5542,"items_count":8} 
[2026-03-06 21:50:12] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26694,"menu_item_id":106,"quantity":1},{"id":26695,"menu_item_id":396,"quantity":3},{"id":26696,"menu_item_id":61,"quantity":2},{"id":26697,"menu_item_id":56,"quantity":1},{"id":26698,"menu_item_id":5,"quantity":1},{"id":26699,"menu_item_id":403,"quantity":1},{"id":26700,"menu_item_id":2,"quantity":3},{"id":26701,"menu_item_id":13,"quantity":3}]} 
[2026-03-06 21:50:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5542,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["106|1|","396|3|","61|2|","56|1|","5|1|","403|1|","2|3|","13|3|"],"new_items_map_keys":["106|1|","396|3|","61|2|","56|1|","5|1|","403|1|","2|3|","13|3|"]} 
[2026-03-06 21:50:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5542,"order_number":"AZS-060326-021"} 
[2026-03-06 21:50:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5542,"order_number":"AZS-060326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 21:50:12"} 
[2026-03-06 21:50:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5542,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":26694},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26695},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26696},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26697},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26698},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":26699},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":26700},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":26701}],"validated_items":[{"id":26694,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":26695,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26696,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":26697,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26698,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26699,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":26700,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":26701,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-06 21:50:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5542,"items_count":8} 
[2026-03-06 21:50:23] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26694,"menu_item_id":106,"quantity":1},{"id":26695,"menu_item_id":396,"quantity":3},{"id":26696,"menu_item_id":61,"quantity":2},{"id":26697,"menu_item_id":56,"quantity":1},{"id":26698,"menu_item_id":5,"quantity":1},{"id":26699,"menu_item_id":403,"quantity":1},{"id":26700,"menu_item_id":2,"quantity":3},{"id":26701,"menu_item_id":13,"quantity":3}]} 
[2026-03-06 21:50:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5542,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["106|1|","396|3|","61|2|","56|1|","5|1|","403|1|","2|3|","13|3|"],"new_items_map_keys":["106|1|","396|3|","61|2|","56|1|","5|1|","403|1|","2|3|","13|3|"]} 
[2026-03-06 21:50:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5542,"order_number":"AZS-060326-021"} 
[2026-03-06 21:50:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5542,"order_number":"AZS-060326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 21:50:23"} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5543,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26702},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26703},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":26704},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":26705},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26706},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":26707},{"menu_item_id":52,"quantity":5,"price":70,"discount_percent":0,"notes":null,"id":26708},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26709},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":26710}],"validated_items":[{"id":26702,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":26703,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26704,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":26705,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":26706,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":26707,"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":26708,"menu_item_id":52,"quantity":5,"price":70,"discount_percent":0,"notes":null},{"id":26709,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26710,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5543,"items_count":9} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26702,"menu_item_id":114,"quantity":1},{"id":26703,"menu_item_id":98,"quantity":1},{"id":26704,"menu_item_id":112,"quantity":1},{"id":26705,"menu_item_id":396,"quantity":4},{"id":26706,"menu_item_id":61,"quantity":2},{"id":26707,"menu_item_id":56,"quantity":3},{"id":26708,"menu_item_id":52,"quantity":5},{"id":26709,"menu_item_id":5,"quantity":1},{"id":26710,"menu_item_id":3,"quantity":2}]} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Item changes check {"order_id":5543,"has_item_changes":true,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["114|1|","98|1|","112|1|","396|4|","61|1|","56|3|","52|2|","5|1|","3|2|"],"new_items_map_keys":["114|1|","98|1|","112|1|","396|4|","61|2|","56|3|","52|5|","5|1|","3|2|"]} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5543,"order_number":"AZS-060326-022"} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-022","replaced_order_id":5543} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5544,"items_count":9,"items":[{"menu_item_id":114,"quantity":1,"price":2299.0},{"menu_item_id":98,"quantity":1,"price":1199.0},{"menu_item_id":112,"quantity":1,"price":1699.0},{"menu_item_id":396,"quantity":4,"price":99.0},{"menu_item_id":61,"quantity":2,"price":199.0},{"menu_item_id":56,"quantity":3,"price":199.0},{"menu_item_id":52,"quantity":5,"price":70.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":2,"price":270.0}]} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5544,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5544}} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5544,"item_index":0,"menu_item_id":114} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5544,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5544}} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5544,"item_index":1,"menu_item_id":98} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5544,"item_index":2,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":1699.0,"discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5544}} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5544,"item_index":2,"menu_item_id":112} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5544,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5544}} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5544,"item_index":3,"menu_item_id":396} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5544,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5544}} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5544,"item_index":4,"menu_item_id":61} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5544,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5544}} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5544,"item_index":5,"menu_item_id":56} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5544,"item_index":6,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":5,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":350.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5544}} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5544,"item_index":6,"menu_item_id":52} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5544,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5544}} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5544,"item_index":7,"menu_item_id":5} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5544,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5544}} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5544,"item_index":8,"menu_item_id":3} 
[2026-03-06 21:57:25] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5543,"new_order_id":5544,"order_number":"AZS-060326-022"} 
[2026-03-06 21:57:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5544,"item_index":0,"item_id":26702} 
[2026-03-06 21:57:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5544,"item_index":1,"item_id":26703} 
[2026-03-06 21:57:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5544,"item_index":2,"item_id":26704} 
[2026-03-06 21:57:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5544,"item_index":3,"item_id":26705} 
[2026-03-06 21:57:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5544,"item_index":4,"item_id":26706} 
[2026-03-06 21:57:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5544,"item_index":5,"item_id":26707} 
[2026-03-06 21:57:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5544,"item_index":6,"item_id":26708} 
[2026-03-06 21:57:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5544,"item_index":7,"item_id":26709} 
[2026-03-06 21:57:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5544,"item_index":8,"item_id":26710} 
[2026-03-06 21:57:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":9,"order_id":5544,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26702},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26703},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":26704},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":26705},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26706},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":26707},{"menu_item_id":52,"quantity":5,"price":70,"discount_percent":0,"notes":null,"id":26708},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26709},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":26710}],"validated_items":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":5,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-06 21:57:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5544,"items_count":9} 
[2026-03-06 21:57:29] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":9,"items_to_remove":[26711,26712,26713,26714,26715,26716,26717,26718,26719],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":112,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":3},{"id":null,"menu_item_id":52,"quantity":5},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-03-06 21:57:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5544,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["114|1|","98|1|","112|1|","396|4|","61|2|","56|3|","52|5|","5|1|","3|2|"],"new_items_map_keys":["114|1|","98|1|","112|1|","396|4|","61|2|","56|3|","52|5|","5|1|","3|2|"]} 
[2026-03-06 21:57:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5544,"order_number":"AZS-060326-022"} 
[2026-03-06 21:57:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5544,"order_number":"AZS-060326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 21:57:29"} 
[2026-03-06 21:57:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5542,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":26694},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26695},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26696},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26697},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26698},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":26699},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":26700},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":26701}],"validated_items":[{"id":26694,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":26695,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26696,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":26697,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26698,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26699,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":26700,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":26701,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-06 21:57:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5542,"items_count":8} 
[2026-03-06 21:57:55] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26694,"menu_item_id":106,"quantity":1},{"id":26695,"menu_item_id":396,"quantity":3},{"id":26696,"menu_item_id":61,"quantity":2},{"id":26697,"menu_item_id":56,"quantity":1},{"id":26698,"menu_item_id":5,"quantity":1},{"id":26699,"menu_item_id":403,"quantity":1},{"id":26700,"menu_item_id":2,"quantity":3},{"id":26701,"menu_item_id":13,"quantity":3}]} 
[2026-03-06 21:57:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5542,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["106|1|","396|3|","61|2|","56|1|","5|1|","403|1|","2|3|","13|3|"],"new_items_map_keys":["106|1|","396|3|","61|2|","56|1|","5|1|","403|1|","2|3|","13|3|"]} 
[2026-03-06 21:57:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5542,"order_number":"AZS-060326-021"} 
[2026-03-06 21:57:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5542,"order_number":"AZS-060326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 21:57:55"} 
[2026-03-06 21:58:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5542,"order_number":"AZS-060326-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 21:58:27"} 
[2026-03-06 21:58:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5542,"order_number":"AZS-060326-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 21:58:27"} 
[2026-03-06 21:58:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5542,"order_number":"AZS-060326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 21:58:27"} 
[2026-03-06 21:58:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5542,"order_number":"AZS-060326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 21:58:27"} 
[2026-03-06 21:58:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5542,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":26694},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26695},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26696},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26697},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26698},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":26699},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":26700},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":26701}],"validated_items":[{"id":26694,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":26695,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26696,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26697,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26698,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26699,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":26700,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":26701,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-06 21:58:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5542,"items_count":8} 
[2026-03-06 21:58:27] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26694,"menu_item_id":106,"quantity":1},{"id":26695,"menu_item_id":396,"quantity":3},{"id":26696,"menu_item_id":61,"quantity":1},{"id":26697,"menu_item_id":56,"quantity":1},{"id":26698,"menu_item_id":5,"quantity":1},{"id":26699,"menu_item_id":403,"quantity":1},{"id":26700,"menu_item_id":2,"quantity":3},{"id":26701,"menu_item_id":13,"quantity":2}]} 
[2026-03-06 21:58:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5542,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["106|1|","396|3|","61|2|","56|1|","5|1|","403|1|","2|3|","13|3|"],"new_items_map_keys":["106|1|","396|3|","61|1|","56|1|","5|1|","403|1|","2|3|","13|2|"]} 
[2026-03-06 21:58:27] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5542,"order_number":"AZS-060326-021","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":10000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-06 21:58:27","original_payment_amount":"0.00","grand_total":6616.0,"timestamp":"2026-03-06 21:58:27"} 
[2026-03-06 21:58:27] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5542,"order_number":"AZS-060326-021"} 
[2026-03-06 21:58:27] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-021","replaced_order_id":5542} 
[2026-03-06 21:58:27] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5542,"new_order_id":5545,"order_number":"AZS-060326-021","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"10000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-06 21:58:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-06 21:58:27"} 
[2026-03-06 21:58:27] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5545,"items_count":8,"items":[{"menu_item_id":106,"quantity":1,"price":4199.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":403,"quantity":1,"price":349.0},{"menu_item_id":2,"quantity":3,"price":130.0},{"menu_item_id":13,"quantity":2,"price":249.0}]} 
[2026-03-06 21:58:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5545,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":4199.0,"discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5545}} 
[2026-03-06 21:58:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5545,"item_index":0,"menu_item_id":106} 
[2026-03-06 21:58:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5545,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5545}} 
[2026-03-06 21:58:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5545,"item_index":1,"menu_item_id":396} 
[2026-03-06 21:58:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5545,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5545}} 
[2026-03-06 21:58:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5545,"item_index":2,"menu_item_id":61} 
[2026-03-06 21:58:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5545,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5545}} 
[2026-03-06 21:58:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5545,"item_index":3,"menu_item_id":56} 
[2026-03-06 21:58:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5545,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5545}} 
[2026-03-06 21:58:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5545,"item_index":4,"menu_item_id":5} 
[2026-03-06 21:58:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5545,"item_index":5,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":349.0,"discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5545}} 
[2026-03-06 21:58:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5545,"item_index":5,"menu_item_id":403} 
[2026-03-06 21:58:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5545,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5545}} 
[2026-03-06 21:58:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5545,"item_index":6,"menu_item_id":2} 
[2026-03-06 21:58:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5545,"item_index":7,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5545}} 
[2026-03-06 21:58:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5545,"item_index":7,"menu_item_id":13} 
[2026-03-06 21:58:27] local.ERROR: Error tracking recipe usage for order 5545: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5545, 106, 196, 1, 1, 0.00, Order #AZS-060326-021 - 1x Mutton Shinwari - Full, 2026-03-06 21:58:27, 2026-03-06 21:58:27))  
[2026-03-06 21:58:27] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5542,"new_order_id":5545,"order_number":"AZS-060326-021"} 
[2026-03-06 21:58:29] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5542,"new_order_id":5545,"order_number":"AZS-060326-021","route":"api/orders/5542"} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5544,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":26711},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":26712},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":26713},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":26714},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":26715},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":26716},{"menu_item_id":52,"quantity":5,"discount_percent":0,"notes":null,"id":26717},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26718},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":26719},{"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null}],"validated_items":[{"id":26711,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":26712,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":26713,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":26714,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":26715,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":26716,"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"id":26717,"menu_item_id":52,"quantity":5,"discount_percent":0,"notes":null},{"id":26718,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":26719,"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5544,"items_count":10} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26711,"menu_item_id":114,"quantity":1},{"id":26712,"menu_item_id":98,"quantity":1},{"id":26713,"menu_item_id":112,"quantity":1},{"id":26714,"menu_item_id":396,"quantity":4},{"id":26715,"menu_item_id":61,"quantity":2},{"id":26716,"menu_item_id":56,"quantity":3},{"id":26717,"menu_item_id":52,"quantity":5},{"id":26718,"menu_item_id":5,"quantity":1},{"id":26719,"menu_item_id":3,"quantity":2},{"id":null,"menu_item_id":13,"quantity":4}]} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Item changes check {"order_id":5544,"has_item_changes":true,"old_items_count":9,"new_items_count":10,"old_items_map_keys":["114|1|","98|1|","112|1|","396|4|","61|2|","56|3|","52|5|","5|1|","3|2|"],"new_items_map_keys":["114|1|","98|1|","112|1|","396|4|","61|2|","56|3|","52|5|","5|1|","3|2|","13|4|"]} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5544,"order_number":"AZS-060326-022"} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-022","replaced_order_id":5544} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5546,"items_count":10,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":3,"price":"199.00"},{"menu_item_id":52,"quantity":5,"price":"70.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"},{"menu_item_id":13,"quantity":4,"price":"249.00"}]} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5546,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5546}} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5546,"item_index":0,"menu_item_id":114} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5546,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5546}} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5546,"item_index":1,"menu_item_id":98} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5546,"item_index":2,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5546}} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5546,"item_index":2,"menu_item_id":112} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5546,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5546}} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5546,"item_index":3,"menu_item_id":396} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5546,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5546}} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5546,"item_index":4,"menu_item_id":61} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5546,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5546}} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5546,"item_index":5,"menu_item_id":56} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5546,"item_index":6,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":5,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":350.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5546}} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5546,"item_index":6,"menu_item_id":52} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5546,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5546}} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5546,"item_index":7,"menu_item_id":5} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5546,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5546}} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5546,"item_index":8,"menu_item_id":3} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5546,"item_index":9,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":4,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5546}} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5546,"item_index":9,"menu_item_id":13} 
[2026-03-06 21:58:47] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5544,"new_order_id":5546,"order_number":"AZS-060326-022"} 
[2026-03-06 22:03:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5537,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":26661},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":26662}],"validated_items":[{"id":26661,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":26662,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-06 22:03:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5537,"items_count":2} 
[2026-03-06 22:03:37] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26661,"menu_item_id":113,"quantity":1},{"id":26662,"menu_item_id":6,"quantity":2}]} 
[2026-03-06 22:03:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5537,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["113|1|","6|2|"],"new_items_map_keys":["113|1|","6|2|"]} 
[2026-03-06 22:03:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5537,"order_number":"AZS-060326-020"} 
[2026-03-06 22:03:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5537,"order_number":"AZS-060326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-03-06 22:03:37"} 
[2026-03-06 22:04:20] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5532,"order_number":"AZS-060326-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2900,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 22:04:20"} 
[2026-03-06 22:04:20] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5532,"order_number":"AZS-060326-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2900,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 22:04:20"} 
[2026-03-06 22:04:20] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5532,"order_number":"AZS-060326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2900,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 22:04:20"} 
[2026-03-06 22:04:20] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5532,"order_number":"AZS-060326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2900,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 22:04:20"} 
[2026-03-06 22:04:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5532,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":26640}],"validated_items":[{"id":26640,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null}]} 
[2026-03-06 22:04:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5532,"items_count":1} 
[2026-03-06 22:04:20] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26640,"menu_item_id":385,"quantity":1}]} 
[2026-03-06 22:04:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5532,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-03-06 22:04:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5532,"order_number":"AZS-060326-019"} 
[2026-03-06 22:04:20] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5532,"order_number":"AZS-060326-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2900,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-06 22:04:20","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-06 22:04:20"} 
[2026-03-06 22:04:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5532,"order_number":"AZS-060326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-06 22:04:20"} 
[2026-03-06 22:04:20] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5532,"order_number":"AZS-060326-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2900.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-06 22:04:20","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2900,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2900.00","database_verification_match":true,"timestamp":"2026-03-06 22:04:20"} 
[2026-03-06 22:04:34] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5537,"order_number":"AZS-060326-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1600,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 22:04:34"} 
[2026-03-06 22:04:34] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5537,"order_number":"AZS-060326-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 22:04:34"} 
[2026-03-06 22:04:34] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5537,"order_number":"AZS-060326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 22:04:34"} 
[2026-03-06 22:04:34] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5537,"order_number":"AZS-060326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 22:04:34"} 
[2026-03-06 22:04:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5537,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26661},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26662}],"validated_items":[{"id":26661,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26662,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-06 22:04:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5537,"items_count":2} 
[2026-03-06 22:04:34] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26661,"menu_item_id":113,"quantity":1},{"id":26662,"menu_item_id":6,"quantity":2}]} 
[2026-03-06 22:04:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5537,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["113|1|","6|2|"],"new_items_map_keys":["113|1|","6|2|"]} 
[2026-03-06 22:04:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5537,"order_number":"AZS-060326-020"} 
[2026-03-06 22:04:34] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5537,"order_number":"AZS-060326-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1600,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-06 22:04:34","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-06 22:04:34"} 
[2026-03-06 22:04:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5537,"order_number":"AZS-060326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-06 22:04:34"} 
[2026-03-06 22:04:34] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5537,"order_number":"AZS-060326-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1600.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-06 22:04:34","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1600.00","database_verification_match":true,"timestamp":"2026-03-06 22:04:34"} 
[2026-03-06 22:04:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T10:04:38.353Z","date_to":"2026-03-06T22:04:38.353Z","per_page":"100"} 
[2026-03-06 22:04:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":51,"count":51,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":29,"paid_count":20,"unpaid_count":2,"unique_order_numbers":22} 
[2026-03-06 22:04:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T10:04:38.366Z","date_to":"2026-03-06T22:04:38.366Z","per_page":"100"} 
[2026-03-06 22:04:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":51,"count":51,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":29,"paid_count":20,"unpaid_count":2,"unique_order_numbers":22} 
[2026-03-06 22:04:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T10:04:38.353Z","date_to":"2026-03-06T22:04:38.353Z","per_page":"100"} 
[2026-03-06 22:04:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":51,"count":51,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":29,"paid_count":20,"unpaid_count":2,"unique_order_numbers":22} 
[2026-03-06 22:07:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5546,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26728},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26729},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":26730},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":26731},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26732},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":26733},{"menu_item_id":52,"quantity":5,"price":70,"discount_percent":0,"notes":null,"id":26734},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26735},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":26736},{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":26737}],"validated_items":[{"id":26728,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":26729,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26730,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":26731,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":26732,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":26733,"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":26734,"menu_item_id":52,"quantity":5,"price":70,"discount_percent":0,"notes":null},{"id":26735,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26736,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null},{"id":26737,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-06 22:07:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5546,"items_count":10} 
[2026-03-06 22:07:53] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26728,"menu_item_id":114,"quantity":1},{"id":26729,"menu_item_id":98,"quantity":1},{"id":26730,"menu_item_id":112,"quantity":1},{"id":26731,"menu_item_id":396,"quantity":4},{"id":26732,"menu_item_id":61,"quantity":2},{"id":26733,"menu_item_id":56,"quantity":3},{"id":26734,"menu_item_id":52,"quantity":5},{"id":26735,"menu_item_id":5,"quantity":1},{"id":26736,"menu_item_id":3,"quantity":2},{"id":26737,"menu_item_id":13,"quantity":4}]} 
[2026-03-06 22:07:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5546,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["114|1|","98|1|","112|1|","396|4|","61|2|","56|3|","52|5|","5|1|","3|2|","13|4|"],"new_items_map_keys":["114|1|","98|1|","112|1|","396|4|","61|2|","56|3|","52|5|","5|1|","3|2|","13|4|"]} 
[2026-03-06 22:07:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5546,"order_number":"AZS-060326-022"} 
[2026-03-06 22:07:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5546,"order_number":"AZS-060326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 22:07:53"} 
[2026-03-06 22:14:03] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5546,"order_number":"AZS-060326-022","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":9100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 22:14:03"} 
[2026-03-06 22:14:03] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5546,"order_number":"AZS-060326-022","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":9100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 22:14:03"} 
[2026-03-06 22:14:03] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5546,"order_number":"AZS-060326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":9100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 22:14:03"} 
[2026-03-06 22:14:03] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5546,"order_number":"AZS-060326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":9100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 22:14:03"} 
[2026-03-06 22:14:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5546,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26728},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26729},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":26730},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":26731},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26732},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":26733},{"menu_item_id":52,"quantity":5,"price":70,"discount_percent":0,"notes":null,"id":26734},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26735},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":26736},{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":26737}],"validated_items":[{"id":26728,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":26729,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26730,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":26731,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":26732,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":26733,"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":26734,"menu_item_id":52,"quantity":5,"price":70,"discount_percent":0,"notes":null},{"id":26735,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26736,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null},{"id":26737,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-06 22:14:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5546,"items_count":10} 
[2026-03-06 22:14:03] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26728,"menu_item_id":114,"quantity":1},{"id":26729,"menu_item_id":98,"quantity":1},{"id":26730,"menu_item_id":112,"quantity":1},{"id":26731,"menu_item_id":396,"quantity":4},{"id":26732,"menu_item_id":61,"quantity":2},{"id":26733,"menu_item_id":56,"quantity":3},{"id":26734,"menu_item_id":52,"quantity":5},{"id":26735,"menu_item_id":5,"quantity":1},{"id":26736,"menu_item_id":3,"quantity":2},{"id":26737,"menu_item_id":13,"quantity":4}]} 
[2026-03-06 22:14:03] local.INFO: PosOrderController::update - Item changes check {"order_id":5546,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["114|1|","98|1|","112|1|","396|4|","61|2|","56|3|","52|5|","5|1|","3|2|","13|4|"],"new_items_map_keys":["114|1|","98|1|","112|1|","396|4|","61|2|","56|3|","52|5|","5|1|","3|2|","13|4|"]} 
[2026-03-06 22:14:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5546,"order_number":"AZS-060326-022"} 
[2026-03-06 22:14:03] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5546,"order_number":"AZS-060326-022","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":9100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-06 22:14:03","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-06 22:14:03"} 
[2026-03-06 22:14:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5546,"order_number":"AZS-060326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-06 22:14:03"} 
[2026-03-06 22:14:03] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5546,"order_number":"AZS-060326-022","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"9100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-06 22:14:03","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":9100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"9100.00","database_verification_match":true,"timestamp":"2026-03-06 22:14:03"} 
[2026-03-06 22:15:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T10:15:11.593Z","date_to":"2026-03-06T22:15:11.593Z","per_page":"100"} 
[2026-03-06 22:15:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":51,"count":51,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":29,"paid_count":21,"unpaid_count":1,"unique_order_numbers":22} 
[2026-03-06 22:15:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T10:15:11.575Z","date_to":"2026-03-06T22:15:11.575Z","per_page":"100"} 
[2026-03-06 22:15:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":51,"count":51,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":29,"paid_count":21,"unpaid_count":1,"unique_order_numbers":22} 
[2026-03-06 22:15:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T10:15:11.575Z","date_to":"2026-03-06T22:15:11.575Z","per_page":"100"} 
[2026-03-06 22:15:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":51,"count":51,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":29,"paid_count":21,"unpaid_count":1,"unique_order_numbers":22} 
[2026-03-06 22:35:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T10:35:07.820Z","date_to":"2026-03-06T22:35:07.820Z","per_page":"100"} 
[2026-03-06 22:35:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T10:35:07.810Z","date_to":"2026-03-06T22:35:07.810Z","per_page":"100"} 
[2026-03-06 22:35:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":52,"count":52,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-023","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":29,"paid_count":21,"unpaid_count":2,"unique_order_numbers":23} 
[2026-03-06 22:35:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":52,"count":52,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-023","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":29,"paid_count":21,"unpaid_count":2,"unique_order_numbers":23} 
[2026-03-06 22:35:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T10:35:07.810Z","date_to":"2026-03-06T22:35:07.810Z","per_page":"100"} 
[2026-03-06 22:35:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":52,"count":52,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-023","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":29,"paid_count":21,"unpaid_count":2,"unique_order_numbers":23} 
[2026-03-06 23:25:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5547,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26738},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26739},{"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":26740},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26741},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26742},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26743},{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null,"id":26744}],"validated_items":[{"id":26738,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":26739,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26740,"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":26741,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":26742,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26743,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26744,"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null}]} 
[2026-03-06 23:25:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5547,"items_count":7} 
[2026-03-06 23:25:44] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26738,"menu_item_id":97,"quantity":1},{"id":26739,"menu_item_id":396,"quantity":2},{"id":26740,"menu_item_id":416,"quantity":4},{"id":26741,"menu_item_id":61,"quantity":2},{"id":26742,"menu_item_id":56,"quantity":1},{"id":26743,"menu_item_id":5,"quantity":1},{"id":26744,"menu_item_id":414,"quantity":1}]} 
[2026-03-06 23:25:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5547,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["97|1|","396|2|","416|4|","61|2|","56|1|","5|1|","414|1|"],"new_items_map_keys":["97|1|","396|2|","416|4|","61|2|","56|1|","5|1|","414|1|"]} 
[2026-03-06 23:25:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5547,"order_number":"AZS-060326-023"} 
[2026-03-06 23:25:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5547,"order_number":"AZS-060326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-06 23:25:44"} 
[2026-03-06 23:30:23] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5547,"order_number":"AZS-060326-023","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3900,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 23:30:23"} 
[2026-03-06 23:30:23] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5547,"order_number":"AZS-060326-023","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3900,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 23:30:23"} 
[2026-03-06 23:30:23] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5547,"order_number":"AZS-060326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3900,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 23:30:23"} 
[2026-03-06 23:30:23] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5547,"order_number":"AZS-060326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3900,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 23:30:23"} 
[2026-03-06 23:30:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5547,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26738},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":26739},{"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":26740},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26741},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26742},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26743},{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null,"id":26744}],"validated_items":[{"id":26738,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":26739,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":26740,"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":26741,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":26742,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26743,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26744,"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null}]} 
[2026-03-06 23:30:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5547,"items_count":7} 
[2026-03-06 23:30:23] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26738,"menu_item_id":97,"quantity":1},{"id":26739,"menu_item_id":396,"quantity":2},{"id":26740,"menu_item_id":416,"quantity":4},{"id":26741,"menu_item_id":61,"quantity":2},{"id":26742,"menu_item_id":56,"quantity":1},{"id":26743,"menu_item_id":5,"quantity":1},{"id":26744,"menu_item_id":414,"quantity":1}]} 
[2026-03-06 23:30:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5547,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["97|1|","396|2|","416|4|","61|2|","56|1|","5|1|","414|1|"],"new_items_map_keys":["97|1|","396|2|","416|4|","61|2|","56|1|","5|1|","414|1|"]} 
[2026-03-06 23:30:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5547,"order_number":"AZS-060326-023"} 
[2026-03-06 23:30:23] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5547,"order_number":"AZS-060326-023","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3900,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-06 23:30:23","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-06 23:30:23"} 
[2026-03-06 23:30:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5547,"order_number":"AZS-060326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-06 23:30:23"} 
[2026-03-06 23:30:23] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5547,"order_number":"AZS-060326-023","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3900.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-06 23:30:23","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3900,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3900.00","database_verification_match":true,"timestamp":"2026-03-06 23:30:23"} 
[2026-03-06 23:41:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5548,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":26745},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":26746},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26747}],"validated_items":[{"id":26745,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"id":26746,"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":26747,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-06 23:41:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5548,"items_count":3} 
[2026-03-06 23:41:26] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26745,"menu_item_id":286,"quantity":2},{"id":26746,"menu_item_id":421,"quantity":1},{"id":26747,"menu_item_id":425,"quantity":1}]} 
[2026-03-06 23:41:26] local.INFO: PosOrderController::update - Item changes check {"order_id":5548,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["286|2|","421|1|","425|1|"],"new_items_map_keys":["286|2|","421|1|","425|1|"]} 
[2026-03-06 23:41:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5548,"order_number":"AZS-060326-024"} 
[2026-03-06 23:41:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5548,"order_number":"AZS-060326-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-06 23:41:26"} 
[2026-03-06 23:41:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5548,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null,"id":26745},{"menu_item_id":421,"quantity":1,"discount_percent":0,"notes":null,"id":26746},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null,"id":26747},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26745,"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null},{"id":26746,"menu_item_id":421,"quantity":1,"discount_percent":0,"notes":null},{"id":26747,"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-06 23:41:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5548,"items_count":4} 
[2026-03-06 23:41:51] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26745,"menu_item_id":286,"quantity":2},{"id":26746,"menu_item_id":421,"quantity":1},{"id":26747,"menu_item_id":425,"quantity":1},{"id":null,"menu_item_id":6,"quantity":1}]} 
[2026-03-06 23:41:51] local.INFO: PosOrderController::update - Item changes check {"order_id":5548,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["286|2|","421|1|","425|1|"],"new_items_map_keys":["286|2|","421|1|","425|1|","6|1|"]} 
[2026-03-06 23:41:51] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5548,"order_number":"AZS-060326-024"} 
[2026-03-06 23:41:51] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-024","replaced_order_id":5548} 
[2026-03-06 23:41:51] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5550,"items_count":4,"items":[{"menu_item_id":286,"quantity":2,"price":"15.00"},{"menu_item_id":421,"quantity":1,"price":"70.00"},{"menu_item_id":425,"quantity":1,"price":"99.00"},{"menu_item_id":6,"quantity":1,"price":"199.00"}]} 
[2026-03-06 23:41:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5550,"item_index":0,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":2,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":30.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5550}} 
[2026-03-06 23:41:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5550,"item_index":0,"menu_item_id":286} 
[2026-03-06 23:41:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5550,"item_index":1,"item_data":{"menu_item_id":421,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Omlate","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5550}} 
[2026-03-06 23:41:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5550,"item_index":1,"menu_item_id":421} 
[2026-03-06 23:41:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5550,"item_index":2,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5550}} 
[2026-03-06 23:41:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5550,"item_index":2,"menu_item_id":425} 
[2026-03-06 23:41:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5550,"item_index":3,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5550}} 
[2026-03-06 23:41:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5550,"item_index":3,"menu_item_id":6} 
[2026-03-06 23:41:51] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5548,"new_order_id":5550,"order_number":"AZS-060326-024"} 
[2026-03-06 23:41:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5550,"item_index":0,"item_id":26745} 
[2026-03-06 23:41:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5550,"item_index":1,"item_id":26746} 
[2026-03-06 23:41:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5550,"item_index":2,"item_id":26747} 
[2026-03-06 23:41:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5550,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":26745},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":26746},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26747},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-06 23:41:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5550,"items_count":4} 
[2026-03-06 23:41:56] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[26752,26753,26754,26755],"items":[{"id":null,"menu_item_id":286,"quantity":2},{"id":null,"menu_item_id":421,"quantity":1},{"id":null,"menu_item_id":425,"quantity":1},{"id":null,"menu_item_id":6,"quantity":1}]} 
[2026-03-06 23:41:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5550,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["286|2|","421|1|","425|1|","6|1|"],"new_items_map_keys":["286|2|","421|1|","425|1|","6|1|"]} 
[2026-03-06 23:41:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5550,"order_number":"AZS-060326-024"} 
[2026-03-06 23:41:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5550,"order_number":"AZS-060326-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-06 23:41:56"} 
[2026-03-06 23:43:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5550,"item_index":0,"item_id":26745} 
[2026-03-06 23:43:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5550,"item_index":1,"item_id":26746} 
[2026-03-06 23:43:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5550,"item_index":2,"item_id":26747} 
[2026-03-06 23:43:19] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5550,"order_number":"AZS-060326-024","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":400,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 23:43:19"} 
[2026-03-06 23:43:19] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5550,"order_number":"AZS-060326-024","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":400,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-06 23:43:19"} 
[2026-03-06 23:43:19] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5550,"order_number":"AZS-060326-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":400,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 23:43:19"} 
[2026-03-06 23:43:19] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5550,"order_number":"AZS-060326-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":400,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-06 23:43:19"} 
[2026-03-06 23:43:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5550,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":26745},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":26746},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26747},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-06 23:43:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5550,"items_count":4} 
[2026-03-06 23:43:19] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[26752,26753,26754,26755],"items":[{"id":null,"menu_item_id":286,"quantity":2},{"id":null,"menu_item_id":421,"quantity":1},{"id":null,"menu_item_id":425,"quantity":1},{"id":null,"menu_item_id":6,"quantity":1}]} 
[2026-03-06 23:43:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5550,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["286|2|","421|1|","425|1|","6|1|"],"new_items_map_keys":["286|2|","421|1|","425|1|","6|1|"]} 
[2026-03-06 23:43:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5550,"order_number":"AZS-060326-024"} 
[2026-03-06 23:43:19] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5550,"order_number":"AZS-060326-024","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":400,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-06 23:43:19","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-06 23:43:19"} 
[2026-03-06 23:43:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5550,"order_number":"AZS-060326-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-06 23:43:19"} 
[2026-03-06 23:43:19] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5550,"order_number":"AZS-060326-024","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"400.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-06 23:43:19","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":400,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"400.00","database_verification_match":true,"timestamp":"2026-03-06 23:43:19"} 
[2026-03-07 00:04:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":1,"order_id":5549,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26748},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26749},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26751}],"validated_items":[{"id":26748,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26749,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26751,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-07 00:04:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5549,"items_count":3} 
[2026-03-07 00:04:34] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":1,"items_to_remove":[26750],"items":[{"id":26748,"menu_item_id":96,"quantity":1},{"id":26749,"menu_item_id":396,"quantity":3},{"id":26751,"menu_item_id":61,"quantity":1}]} 
[2026-03-07 00:04:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5549,"has_item_changes":true,"old_items_count":4,"new_items_count":3,"old_items_map_keys":["96|1|","396|3|","5|1|","61|1|"],"new_items_map_keys":["96|1|","396|3|","61|1|"]} 
[2026-03-07 00:04:34] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5549,"order_number":"AZS-060326-025"} 
[2026-03-07 00:04:34] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-025","replaced_order_id":5549} 
[2026-03-07 00:04:34] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5551,"items_count":3,"items":[{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0}]} 
[2026-03-07 00:04:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5551,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5551}} 
[2026-03-07 00:04:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5551,"item_index":0,"menu_item_id":96} 
[2026-03-07 00:04:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5551,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5551}} 
[2026-03-07 00:04:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5551,"item_index":1,"menu_item_id":396} 
[2026-03-07 00:04:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5551,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5551}} 
[2026-03-07 00:04:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5551,"item_index":2,"menu_item_id":61} 
[2026-03-07 00:04:34] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5549,"new_order_id":5551,"order_number":"AZS-060326-025"} 
[2026-03-07 00:04:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5551,"item_index":0,"item_id":26748} 
[2026-03-07 00:04:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5551,"item_index":1,"item_id":26749} 
[2026-03-07 00:04:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5551,"item_index":2,"item_id":26751} 
[2026-03-07 00:04:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":3,"order_id":5551,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26748},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26749},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26751},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-07 00:04:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5551,"items_count":4} 
[2026-03-07 00:04:45] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":3,"items_to_remove":[26756,26757,26758],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 00:04:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5551,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["96|1|","396|3|","61|1|"],"new_items_map_keys":["96|1|","396|3|","61|1|","3|1|"]} 
[2026-03-07 00:04:45] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5551,"order_number":"AZS-060326-025"} 
[2026-03-07 00:04:45] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060326-025","replaced_order_id":5551} 
[2026-03-07 00:04:45] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5552,"items_count":4,"items":[{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-07 00:04:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5552,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5552}} 
[2026-03-07 00:04:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5552,"item_index":0,"menu_item_id":96} 
[2026-03-07 00:04:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5552,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5552}} 
[2026-03-07 00:04:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5552,"item_index":1,"menu_item_id":396} 
[2026-03-07 00:04:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5552,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5552}} 
[2026-03-07 00:04:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5552,"item_index":2,"menu_item_id":61} 
[2026-03-07 00:04:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5552,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5552}} 
[2026-03-07 00:04:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5552,"item_index":3,"menu_item_id":3} 
[2026-03-07 00:04:45] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5551,"new_order_id":5552,"order_number":"AZS-060326-025"} 
[2026-03-07 00:04:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5552,"item_index":0,"item_id":26748} 
[2026-03-07 00:04:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5552,"item_index":1,"item_id":26749} 
[2026-03-07 00:04:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5552,"item_index":2,"item_id":26751} 
[2026-03-07 00:04:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5552,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26748},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26749},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26751},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-07 00:04:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5552,"items_count":4} 
[2026-03-07 00:04:57] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[26759,26760,26761,26762],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 00:04:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5552,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","396|3|","61|1|","3|1|"],"new_items_map_keys":["96|1|","396|3|","61|1|","3|1|"]} 
[2026-03-07 00:04:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5552,"order_number":"AZS-060326-025"} 
[2026-03-07 00:04:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5552,"order_number":"AZS-060326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 00:04:57"} 
[2026-03-07 00:06:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5552,"item_index":0,"item_id":26748} 
[2026-03-07 00:06:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5552,"item_index":1,"item_id":26749} 
[2026-03-07 00:06:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5552,"item_index":2,"item_id":26751} 
[2026-03-07 00:06:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5552,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":26748},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":26749},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26751},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 00:06:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5552,"items_count":4} 
[2026-03-07 00:06:31] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[26759,26760,26761,26762],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 00:06:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5552,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","396|3|","61|1|","3|1|"],"new_items_map_keys":["96|1|","396|3|","61|1|","3|1|"]} 
[2026-03-07 00:06:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5552,"order_number":"AZS-060326-025"} 
[2026-03-07 00:06:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5552,"order_number":"AZS-060326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-07 00:06:31"} 
[2026-03-07 00:07:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T12:07:25.371Z","date_to":"2026-03-07T00:07:25.371Z","per_page":"100"} 
[2026-03-07 00:07:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T12:07:25.356Z","date_to":"2026-03-07T00:07:25.356Z","per_page":"100"} 
[2026-03-07 00:07:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":57,"count":57,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-025","AZS-060326-025","AZS-060326-025","AZS-060326-024","AZS-060326-024","AZS-060326-023","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","changed","changed","paid","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":32,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-07 00:07:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":57,"count":57,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-025","AZS-060326-025","AZS-060326-025","AZS-060326-024","AZS-060326-024","AZS-060326-023","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","changed","changed","paid","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":32,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-07 00:07:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T12:07:25.356Z","date_to":"2026-03-07T00:07:25.356Z","per_page":"100"} 
[2026-03-07 00:07:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":57,"count":57,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-025","AZS-060326-025","AZS-060326-025","AZS-060326-024","AZS-060326-024","AZS-060326-023","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["pending","changed","changed","paid","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":32,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-07 00:14:36] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5552,"order_number":"AZS-060326-025","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2063,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 00:14:36"} 
[2026-03-07 00:14:36] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5552,"order_number":"AZS-060326-025","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2063,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 00:14:36"} 
[2026-03-07 00:14:36] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5552,"order_number":"AZS-060326-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2063,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 00:14:36"} 
[2026-03-07 00:14:36] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5552,"order_number":"AZS-060326-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2063,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 00:14:36"} 
[2026-03-07 00:14:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5552,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26759},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26760},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26761},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26762}],"validated_items":[{"id":26759,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26760,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26761,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26762,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-07 00:14:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5552,"items_count":4} 
[2026-03-07 00:14:36] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26759,"menu_item_id":96,"quantity":1},{"id":26760,"menu_item_id":396,"quantity":3},{"id":26761,"menu_item_id":61,"quantity":1},{"id":26762,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 00:14:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5552,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","396|3|","61|1|","3|1|"],"new_items_map_keys":["96|1|","396|3|","61|1|","3|1|"]} 
[2026-03-07 00:14:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5552,"order_number":"AZS-060326-025"} 
[2026-03-07 00:14:36] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5552,"order_number":"AZS-060326-025","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2063,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-07 00:14:36","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 00:14:36"} 
[2026-03-07 00:14:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5552,"order_number":"AZS-060326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 00:14:36"} 
[2026-03-07 00:14:36] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5552,"order_number":"AZS-060326-025","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2063.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-07 00:14:36","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2063,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2063.00","database_verification_match":true,"timestamp":"2026-03-07 00:14:36"} 
[2026-03-07 00:15:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T12:15:35.320Z","date_to":"2026-03-07T00:15:35.320Z","per_page":"100"} 
[2026-03-07 00:15:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T12:15:35.307Z","date_to":"2026-03-07T00:15:35.307Z","per_page":"100"} 
[2026-03-07 00:15:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":57,"count":57,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-025","AZS-060326-025","AZS-060326-025","AZS-060326-024","AZS-060326-024","AZS-060326-023","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["paid","changed","changed","paid","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":32,"paid_count":24,"unpaid_count":1,"unique_order_numbers":25} 
[2026-03-07 00:15:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":57,"count":57,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-025","AZS-060326-025","AZS-060326-025","AZS-060326-024","AZS-060326-024","AZS-060326-023","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["paid","changed","changed","paid","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":32,"paid_count":24,"unpaid_count":1,"unique_order_numbers":25} 
[2026-03-07 00:15:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T12:15:35.307Z","date_to":"2026-03-07T00:15:35.307Z","per_page":"100"} 
[2026-03-07 00:15:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":57,"count":57,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-025","AZS-060326-025","AZS-060326-025","AZS-060326-024","AZS-060326-024","AZS-060326-023","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-014","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["paid","changed","changed","paid","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","pending","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":32,"paid_count":24,"unpaid_count":1,"unique_order_numbers":25} 
[2026-03-07 00:16:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T12:15:35.320Z","date_to":"2026-03-07T00:15:35.320Z","per_page":"100"} 
[2026-03-07 00:16:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":56,"count":56,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-025","AZS-060326-025","AZS-060326-025","AZS-060326-024","AZS-060326-024","AZS-060326-023","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["paid","changed","changed","paid","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":32,"paid_count":24,"unpaid_count":0,"unique_order_numbers":24} 
[2026-03-07 00:16:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T12:16:21.777Z","date_to":"2026-03-07T00:16:21.777Z","per_page":"100"} 
[2026-03-07 00:16:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":56,"count":56,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-025","AZS-060326-025","AZS-060326-025","AZS-060326-024","AZS-060326-024","AZS-060326-023","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["paid","changed","changed","paid","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":32,"paid_count":24,"unpaid_count":0,"unique_order_numbers":24} 
[2026-03-07 00:16:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T12:16:21.791Z","date_to":"2026-03-07T00:16:21.791Z","per_page":"100"} 
[2026-03-07 00:16:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":56,"count":56,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-025","AZS-060326-025","AZS-060326-025","AZS-060326-024","AZS-060326-024","AZS-060326-023","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["paid","changed","changed","paid","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":32,"paid_count":24,"unpaid_count":0,"unique_order_numbers":24} 
[2026-03-07 00:16:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T12:16:21.777Z","date_to":"2026-03-07T00:16:21.777Z","per_page":"100"} 
[2026-03-07 00:16:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":56,"count":56,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-025","AZS-060326-025","AZS-060326-025","AZS-060326-024","AZS-060326-024","AZS-060326-023","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["paid","changed","changed","paid","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":32,"paid_count":24,"unpaid_count":0,"unique_order_numbers":24} 
[2026-03-07 00:16:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T12:16:21.791Z","date_to":"2026-03-07T00:16:21.791Z","per_page":"1000"} 
[2026-03-07 00:16:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":56,"count":56,"current_page":1,"last_page":1,"per_page":1000,"order_branch_ids":[1],"order_numbers":["AZS-060326-025","AZS-060326-025","AZS-060326-025","AZS-060326-024","AZS-060326-024","AZS-060326-023","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["paid","changed","changed","paid","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":32,"paid_count":24,"unpaid_count":0,"unique_order_numbers":24} 
[2026-03-07 05:37:12] local.INFO: Login attempt {"email":"admin@pos.com","ip":"182.176.113.26"} 
[2026-03-07 06:19:34] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"182.176.113.26"} 
[2026-03-07 06:25:58] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) {"userId":6,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(375): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#52 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:423)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): PDO->prepare('select `id`, `n...')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select `id`, `n...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(375): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 {main}
"} 
[2026-03-07 06:30:01] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) {"userId":6,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(375): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#52 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:423)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): PDO->prepare('select `id`, `n...')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select `id`, `n...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(375): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 {main}
"} 
[2026-03-07 06:50:06] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) {"userId":6,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(375): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#52 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:423)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): PDO->prepare('select `id`, `n...')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select `id`, `n...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(375): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 {main}
"} 
[2026-03-07 06:54:03] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) {"userId":6,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(375): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#52 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:423)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): PDO->prepare('select `id`, `n...')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select `id`, `n...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(375): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 {main}
"} 
[2026-03-07 07:17:36] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T19:17:35.105Z","date_to":"2026-03-07T07:17:35.105Z","per_page":"100"} 
[2026-03-07 07:17:36] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-025","AZS-060326-025","AZS-060326-025","AZS-060326-024","AZS-060326-024","AZS-060326-023","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020"],"order_statuses":["paid","changed","changed","paid","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed"],"deleted_count":12,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-07 07:17:37] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T19:17:35.105Z","date_to":"2026-03-07T07:17:35.105Z","per_page":"100"} 
[2026-03-07 07:17:37] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-025","AZS-060326-025","AZS-060326-025","AZS-060326-024","AZS-060326-024","AZS-060326-023","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020"],"order_statuses":["paid","changed","changed","paid","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed"],"deleted_count":12,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-07 07:17:38] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T19:17:38.032Z","date_to":"2026-03-07T07:17:38.032Z","per_page":"100"} 
[2026-03-07 07:17:38] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-025","AZS-060326-025","AZS-060326-025","AZS-060326-024","AZS-060326-024","AZS-060326-023","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020"],"order_statuses":["paid","changed","changed","paid","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed"],"deleted_count":12,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-07 07:17:40] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T19:17:39.875Z","date_to":"2026-03-07T07:17:39.875Z","per_page":"100"} 
[2026-03-07 07:17:40] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-025","AZS-060326-025","AZS-060326-025","AZS-060326-024","AZS-060326-024","AZS-060326-023","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020"],"order_statuses":["paid","changed","changed","paid","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed"],"deleted_count":12,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-07 07:17:40] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T19:17:40.095Z","date_to":"2026-03-07T07:17:40.095Z","per_page":"100"} 
[2026-03-07 07:17:40] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-025","AZS-060326-025","AZS-060326-025","AZS-060326-024","AZS-060326-024","AZS-060326-023","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020"],"order_statuses":["paid","changed","changed","paid","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed"],"deleted_count":12,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-07 07:17:40] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T19:17:39.875Z","date_to":"2026-03-07T07:17:39.875Z","per_page":"100"} 
[2026-03-07 07:17:40] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-025","AZS-060326-025","AZS-060326-025","AZS-060326-024","AZS-060326-024","AZS-060326-023","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020"],"order_statuses":["paid","changed","changed","paid","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed"],"deleted_count":12,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-07 07:17:43] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T07:17:43.788Z","date_to":"2026-03-07T07:17:43.788Z","per_page":"100"} 
[2026-03-07 07:17:43] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":56,"count":56,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-025","AZS-060326-025","AZS-060326-025","AZS-060326-024","AZS-060326-024","AZS-060326-023","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["paid","changed","changed","paid","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":32,"paid_count":24,"unpaid_count":0,"unique_order_numbers":24} 
[2026-03-07 07:18:24] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T07:18:23.860Z","date_to":"2026-03-07T07:18:23.860Z","per_page":"100"} 
[2026-03-07 07:18:24] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":56,"count":56,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-025","AZS-060326-025","AZS-060326-025","AZS-060326-024","AZS-060326-024","AZS-060326-023","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["paid","changed","changed","paid","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":32,"paid_count":24,"unpaid_count":0,"unique_order_numbers":24} 
[2026-03-07 07:29:57] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T19:29:56.648Z","date_to":"2026-03-07T07:29:56.648Z","per_page":"100"} 
[2026-03-07 07:29:57] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-025","AZS-060326-025","AZS-060326-025","AZS-060326-024","AZS-060326-024","AZS-060326-023","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021"],"order_statuses":["paid","changed","changed","paid","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed"],"deleted_count":11,"paid_count":5,"unpaid_count":0,"unique_order_numbers":5} 
[2026-03-07 07:30:06] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T07:30:06.580Z","date_to":"2026-03-07T07:30:06.580Z","per_page":"100"} 
[2026-03-07 07:30:06] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":56,"count":56,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-025","AZS-060326-025","AZS-060326-025","AZS-060326-024","AZS-060326-024","AZS-060326-023","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-022","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-021","AZS-060326-020","AZS-060326-020","AZS-060326-019","AZS-060326-018","AZS-060326-018","AZS-060326-018","AZS-060326-017","AZS-060326-017","AZS-060326-017","AZS-060326-016","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-015","AZS-060326-013","AZS-060326-013","AZS-060326-012","AZS-060326-011","AZS-060326-011","AZS-060326-010","AZS-060326-010","AZS-060326-009","AZS-060326-008","AZS-060326-007","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-006","AZS-060326-005","AZS-060326-004","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-003","AZS-060326-002","AZS-060326-001"],"order_statuses":["paid","changed","changed","paid","changed","paid","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","changed","paid","changed","paid","paid","changed","paid","changed","paid","paid","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","changed","changed","changed","changed","paid","paid"],"deleted_count":32,"paid_count":24,"unpaid_count":0,"unique_order_numbers":24} 
[2026-03-07 07:36:37] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) {"userId":6,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(375): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#52 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:423)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): PDO->prepare('select `id`, `n...')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select `id`, `n...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(375): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 {main}
"} 
[2026-03-07 09:57:22] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T21:57:15.669Z","date_to":"2026-03-07T09:57:15.669Z","per_page":"100"} 
[2026-03-07 09:57:22] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T21:57:15.728Z","date_to":"2026-03-07T09:57:15.728Z","per_page":"100"} 
[2026-03-07 09:57:22] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-025","AZS-060326-025","AZS-060326-025","AZS-060326-024","AZS-060326-024","AZS-060326-023"],"order_statuses":["paid","changed","changed","paid","changed","paid"],"deleted_count":3,"paid_count":3,"unpaid_count":0,"unique_order_numbers":3} 
[2026-03-07 09:57:22] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-025","AZS-060326-025","AZS-060326-025","AZS-060326-024","AZS-060326-024","AZS-060326-023"],"order_statuses":["paid","changed","changed","paid","changed","paid"],"deleted_count":3,"paid_count":3,"unpaid_count":0,"unique_order_numbers":3} 
[2026-03-07 09:57:23] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T21:57:15.669Z","date_to":"2026-03-07T09:57:15.669Z","per_page":"100"} 
[2026-03-07 09:57:23] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060326-025","AZS-060326-025","AZS-060326-025","AZS-060326-024","AZS-060326-024","AZS-060326-023"],"order_statuses":["paid","changed","changed","paid","changed","paid"],"deleted_count":3,"paid_count":3,"unpaid_count":0,"unique_order_numbers":3} 
[2026-03-07 12:54:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T00:54:14.760Z","date_to":"2026-03-07T12:54:14.760Z","per_page":"100"} 
[2026-03-07 12:54:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T00:54:14.745Z","date_to":"2026-03-07T12:54:14.745Z","per_page":"100"} 
[2026-03-07 12:54:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-07 12:54:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-07 12:54:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T00:54:14.745Z","date_to":"2026-03-07T12:54:14.745Z","per_page":"100"} 
[2026-03-07 12:54:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-07 12:56:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5553,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26763}],"validated_items":[{"id":26763,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-07 12:56:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5553,"items_count":1} 
[2026-03-07 12:56:18] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26763,"menu_item_id":417,"quantity":1}]} 
[2026-03-07 12:56:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5553,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-07 12:56:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5553,"order_number":"AZS-070326-001"} 
[2026-03-07 12:56:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5553,"order_number":"AZS-070326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 12:56:18"} 
[2026-03-07 12:57:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T00:57:00.732Z","date_to":"2026-03-07T12:57:00.732Z","per_page":"100"} 
[2026-03-07 12:57:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-03-07 12:57:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T00:57:00.738Z","date_to":"2026-03-07T12:57:00.738Z","per_page":"100"} 
[2026-03-07 12:57:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-03-07 12:57:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T00:57:00.732Z","date_to":"2026-03-07T12:57:00.732Z","per_page":"100"} 
[2026-03-07 12:57:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-03-07 12:59:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5554,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26764},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":26765},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":26766},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":26767},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":26768},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26769},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26770},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26771}],"validated_items":[{"id":26764,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26765,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":26766,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":26767,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":26768,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":26769,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26770,"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26771,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-07 12:59:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5554,"items_count":8} 
[2026-03-07 12:59:40] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26764,"menu_item_id":113,"quantity":1},{"id":26765,"menu_item_id":102,"quantity":1},{"id":26766,"menu_item_id":65,"quantity":1},{"id":26767,"menu_item_id":112,"quantity":1},{"id":26768,"menu_item_id":48,"quantity":2},{"id":26769,"menu_item_id":56,"quantity":1},{"id":26770,"menu_item_id":60,"quantity":1},{"id":26771,"menu_item_id":5,"quantity":1}]} 
[2026-03-07 12:59:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5554,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["113|1|","102|1|","65|1|","112|1|","48|2|","56|1|","60|1|","5|1|"],"new_items_map_keys":["113|1|","102|1|","65|1|","112|1|","48|2|","56|1|","60|1|","5|1|"]} 
[2026-03-07 12:59:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5554,"order_number":"AZS-070326-002"} 
[2026-03-07 12:59:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5554,"order_number":"AZS-070326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 12:59:40"} 
[2026-03-07 12:59:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5554,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":26764},{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":26765},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":26766},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":26767},{"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null,"id":26768},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26769},{"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null,"id":26770},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26771}],"validated_items":[{"id":26764,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":26765,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":26766,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":26767,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":26768,"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null},{"id":26769,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26770,"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null},{"id":26771,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 12:59:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5554,"items_count":8} 
[2026-03-07 12:59:57] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26764,"menu_item_id":113,"quantity":1},{"id":26765,"menu_item_id":102,"quantity":1},{"id":26766,"menu_item_id":65,"quantity":1},{"id":26767,"menu_item_id":112,"quantity":1},{"id":26768,"menu_item_id":48,"quantity":2},{"id":26769,"menu_item_id":56,"quantity":1},{"id":26770,"menu_item_id":60,"quantity":1},{"id":26771,"menu_item_id":5,"quantity":1}]} 
[2026-03-07 12:59:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5554,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["113|1|","102|1|","65|1|","112|1|","48|2|","56|1|","60|1|","5|1|"],"new_items_map_keys":["113|1|","102|1|","65|1|","112|1|","48|2|","56|1|","60|1|","5|1|"]} 
[2026-03-07 12:59:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5554,"order_number":"AZS-070326-002"} 
[2026-03-07 12:59:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5554,"order_number":"AZS-070326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-07 12:59:57"} 
[2026-03-07 13:00:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T01:00:16.697Z","date_to":"2026-03-07T13:00:16.697Z","per_page":"100"} 
[2026-03-07 13:00:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T01:00:16.710Z","date_to":"2026-03-07T13:00:16.710Z","per_page":"100"} 
[2026-03-07 13:00:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-002","AZS-070326-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-03-07 13:00:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-002","AZS-070326-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-03-07 13:00:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T01:00:16.697Z","date_to":"2026-03-07T13:00:16.697Z","per_page":"100"} 
[2026-03-07 13:00:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-002","AZS-070326-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-03-07 13:07:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T01:07:06.728Z","date_to":"2026-03-07T13:07:06.728Z","per_page":"100"} 
[2026-03-07 13:07:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T01:07:06.714Z","date_to":"2026-03-07T13:07:06.714Z","per_page":"100"} 
[2026-03-07 13:07:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-003","AZS-070326-002","AZS-070326-001"],"order_statuses":["pending","pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":3,"unique_order_numbers":3} 
[2026-03-07 13:07:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-003","AZS-070326-002","AZS-070326-001"],"order_statuses":["pending","pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":3,"unique_order_numbers":3} 
[2026-03-07 13:07:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T01:07:58.145Z","date_to":"2026-03-07T13:07:58.145Z","per_page":"100"} 
[2026-03-07 13:07:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-003","AZS-070326-002","AZS-070326-001"],"order_statuses":["pending","pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":3,"unique_order_numbers":3} 
[2026-03-07 13:07:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T01:07:58.129Z","date_to":"2026-03-07T13:07:58.129Z","per_page":"100"} 
[2026-03-07 13:07:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-003","AZS-070326-002","AZS-070326-001"],"order_statuses":["pending","pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":3,"unique_order_numbers":3} 
[2026-03-07 13:08:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T01:07:58.129Z","date_to":"2026-03-07T13:07:58.129Z","per_page":"100"} 
[2026-03-07 13:08:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-003","AZS-070326-002","AZS-070326-001"],"order_statuses":["pending","pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":3,"unique_order_numbers":3} 
[2026-03-07 13:08:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T01:08:13.528Z","date_to":"2026-03-07T13:08:13.528Z","per_page":"100"} 
[2026-03-07 13:08:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T01:08:13.513Z","date_to":"2026-03-07T13:08:13.513Z","per_page":"100"} 
[2026-03-07 13:08:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-003","AZS-070326-002","AZS-070326-001"],"order_statuses":["pending","pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":3,"unique_order_numbers":3} 
[2026-03-07 13:08:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-003","AZS-070326-002","AZS-070326-001"],"order_statuses":["pending","pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":3,"unique_order_numbers":3} 
[2026-03-07 13:08:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T01:08:13.513Z","date_to":"2026-03-07T13:08:13.513Z","per_page":"100"} 
[2026-03-07 13:08:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-003","AZS-070326-002","AZS-070326-001"],"order_statuses":["pending","pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":3,"unique_order_numbers":3} 
[2026-03-07 13:12:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5555,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":26772},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26772,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 13:12:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5555,"items_count":4} 
[2026-03-07 13:12:20] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26772,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":63,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-03-07 13:12:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5555,"has_item_changes":true,"old_items_count":1,"new_items_count":4,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","63|1|","396|1|","61|1|"]} 
[2026-03-07 13:12:20] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5555,"order_number":"AZS-070326-003"} 
[2026-03-07 13:12:20] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-003","replaced_order_id":5555} 
[2026-03-07 13:12:20] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5557,"items_count":4,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":63,"quantity":1,"price":"1099.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"}]} 
[2026-03-07 13:12:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5557,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5557}} 
[2026-03-07 13:12:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5557,"item_index":0,"menu_item_id":417} 
[2026-03-07 13:12:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5557,"item_index":1,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5557}} 
[2026-03-07 13:12:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5557,"item_index":1,"menu_item_id":63} 
[2026-03-07 13:12:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5557,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5557}} 
[2026-03-07 13:12:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5557,"item_index":2,"menu_item_id":396} 
[2026-03-07 13:12:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5557,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5557}} 
[2026-03-07 13:12:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5557,"item_index":3,"menu_item_id":61} 
[2026-03-07 13:12:21] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5555,"new_order_id":5557,"order_number":"AZS-070326-003"} 
[2026-03-07 13:12:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5557,"item_index":0,"item_id":26772} 
[2026-03-07 13:12:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5557,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":26772},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 13:12:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5557,"items_count":4} 
[2026-03-07 13:12:40] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[26785,26786,26787,26788],"items":[{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":63,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-03-07 13:12:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5557,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["417|1|","63|1|","396|1|","61|1|"],"new_items_map_keys":["417|1|","63|1|","396|1|","61|1|"]} 
[2026-03-07 13:12:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5557,"order_number":"AZS-070326-003"} 
[2026-03-07 13:12:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5557,"order_number":"AZS-070326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-07 13:12:40"} 
[2026-03-07 13:27:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5553,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":26763},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":26763,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-07 13:27:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5553,"items_count":6} 
[2026-03-07 13:27:18] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26763,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":286,"quantity":2}]} 
[2026-03-07 13:27:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5553,"has_item_changes":true,"old_items_count":1,"new_items_count":6,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","98|1|","50|1|","61|1|","56|1|","286|2|"]} 
[2026-03-07 13:27:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5553,"order_number":"AZS-070326-001"} 
[2026-03-07 13:27:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-001","replaced_order_id":5553} 
[2026-03-07 13:27:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5559,"items_count":6,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":286,"quantity":2,"price":"15.00"}]} 
[2026-03-07 13:27:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5559,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5559}} 
[2026-03-07 13:27:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5559,"item_index":0,"menu_item_id":417} 
[2026-03-07 13:27:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5559,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5559}} 
[2026-03-07 13:27:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5559,"item_index":1,"menu_item_id":98} 
[2026-03-07 13:27:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5559,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5559}} 
[2026-03-07 13:27:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5559,"item_index":2,"menu_item_id":50} 
[2026-03-07 13:27:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5559,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5559}} 
[2026-03-07 13:27:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5559,"item_index":3,"menu_item_id":61} 
[2026-03-07 13:27:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5559,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5559}} 
[2026-03-07 13:27:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5559,"item_index":4,"menu_item_id":56} 
[2026-03-07 13:27:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5559,"item_index":5,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":2,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":30.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5559}} 
[2026-03-07 13:27:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5559,"item_index":5,"menu_item_id":286} 
[2026-03-07 13:27:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5553,"new_order_id":5559,"order_number":"AZS-070326-001"} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5554,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":26764},{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":26765},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":26766},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":26767},{"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null,"id":26768},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26769},{"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null,"id":26770},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26771},{"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26764,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":26765,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":26766,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":26767,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":26768,"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null},{"id":26769,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26770,"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null},{"id":26771,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5554,"items_count":10} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26764,"menu_item_id":113,"quantity":1},{"id":26765,"menu_item_id":102,"quantity":1},{"id":26766,"menu_item_id":65,"quantity":1},{"id":26767,"menu_item_id":112,"quantity":1},{"id":26768,"menu_item_id":48,"quantity":2},{"id":26769,"menu_item_id":56,"quantity":1},{"id":26770,"menu_item_id":60,"quantity":1},{"id":26771,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":49,"quantity":2},{"id":null,"menu_item_id":396,"quantity":1}]} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5554,"has_item_changes":true,"old_items_count":8,"new_items_count":10,"old_items_map_keys":["113|1|","102|1|","65|1|","112|1|","48|2|","56|1|","60|1|","5|1|"],"new_items_map_keys":["113|1|","102|1|","65|1|","112|1|","48|2|","56|1|","60|1|","5|1|","49|2|","396|1|"]} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5554,"order_number":"AZS-070326-002"} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-002","replaced_order_id":5554} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5560,"items_count":10,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":48,"quantity":2,"price":"250.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":60,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":49,"quantity":2,"price":"70.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"}]} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5560,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5560}} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5560,"item_index":0,"menu_item_id":113} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5560,"item_index":1,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5560}} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5560,"item_index":1,"menu_item_id":102} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5560,"item_index":2,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5560}} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5560,"item_index":2,"menu_item_id":65} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5560,"item_index":3,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5560}} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5560,"item_index":3,"menu_item_id":112} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5560,"item_index":4,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5560}} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5560,"item_index":4,"menu_item_id":48} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5560,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5560}} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5560,"item_index":5,"menu_item_id":56} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5560,"item_index":6,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5560}} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5560,"item_index":6,"menu_item_id":60} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5560,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5560}} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5560,"item_index":7,"menu_item_id":5} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5560,"item_index":8,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5560}} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5560,"item_index":8,"menu_item_id":49} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5560,"item_index":9,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5560}} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5560,"item_index":9,"menu_item_id":396} 
[2026-03-07 14:02:29] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5554,"new_order_id":5560,"order_number":"AZS-070326-002"} 
[2026-03-07 14:06:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5559,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":26791},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":26792},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":26793},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26794},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26795},{"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null,"id":26796},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26791,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":26792,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":26793,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":26794,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26795,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26796,"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:06:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5559,"items_count":8} 
[2026-03-07 14:06:32] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26791,"menu_item_id":417,"quantity":1},{"id":26792,"menu_item_id":98,"quantity":1},{"id":26793,"menu_item_id":50,"quantity":1},{"id":26794,"menu_item_id":61,"quantity":1},{"id":26795,"menu_item_id":56,"quantity":1},{"id":26796,"menu_item_id":286,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":29,"quantity":1}]} 
[2026-03-07 14:06:32] local.INFO: PosOrderController::update - Item changes check {"order_id":5559,"has_item_changes":true,"old_items_count":6,"new_items_count":8,"old_items_map_keys":["417|1|","98|1|","50|1|","61|1|","56|1|","286|2|"],"new_items_map_keys":["417|1|","98|1|","50|1|","61|1|","56|1|","286|2|","5|1|","29|1|"]} 
[2026-03-07 14:06:32] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5559,"order_number":"AZS-070326-001"} 
[2026-03-07 14:06:32] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-001","replaced_order_id":5559} 
[2026-03-07 14:06:32] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5562,"items_count":8,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":286,"quantity":2,"price":"15.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"}]} 
[2026-03-07 14:06:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5562,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5562}} 
[2026-03-07 14:06:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5562,"item_index":0,"menu_item_id":417} 
[2026-03-07 14:06:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5562,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5562}} 
[2026-03-07 14:06:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5562,"item_index":1,"menu_item_id":98} 
[2026-03-07 14:06:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5562,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5562}} 
[2026-03-07 14:06:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5562,"item_index":2,"menu_item_id":50} 
[2026-03-07 14:06:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5562,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5562}} 
[2026-03-07 14:06:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5562,"item_index":3,"menu_item_id":61} 
[2026-03-07 14:06:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5562,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5562}} 
[2026-03-07 14:06:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5562,"item_index":4,"menu_item_id":56} 
[2026-03-07 14:06:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5562,"item_index":5,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":2,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":30.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5562}} 
[2026-03-07 14:06:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5562,"item_index":5,"menu_item_id":286} 
[2026-03-07 14:06:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5562,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5562}} 
[2026-03-07 14:06:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5562,"item_index":6,"menu_item_id":5} 
[2026-03-07 14:06:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5562,"item_index":7,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5562}} 
[2026-03-07 14:06:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5562,"item_index":7,"menu_item_id":29} 
[2026-03-07 14:06:32] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5559,"new_order_id":5562,"order_number":"AZS-070326-001"} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":5560,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":26797},{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":26798},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":26799},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":26800},{"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null,"id":26801},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26802},{"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null,"id":26803},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26804},{"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null,"id":26805},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":26806},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26797,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":26798,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":26799,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":26800,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":26801,"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null},{"id":26802,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26803,"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null},{"id":26804,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":26805,"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null},{"id":26806,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5560,"items_count":11} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26797,"menu_item_id":113,"quantity":1},{"id":26798,"menu_item_id":102,"quantity":1},{"id":26799,"menu_item_id":65,"quantity":1},{"id":26800,"menu_item_id":112,"quantity":1},{"id":26801,"menu_item_id":48,"quantity":2},{"id":26802,"menu_item_id":56,"quantity":1},{"id":26803,"menu_item_id":60,"quantity":1},{"id":26804,"menu_item_id":5,"quantity":1},{"id":26805,"menu_item_id":49,"quantity":2},{"id":26806,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5560,"has_item_changes":true,"old_items_count":10,"new_items_count":11,"old_items_map_keys":["113|1|","102|1|","65|1|","112|1|","48|2|","56|1|","60|1|","5|1|","49|2|","396|1|"],"new_items_map_keys":["113|1|","102|1|","65|1|","112|1|","48|2|","56|1|","60|1|","5|1|","49|2|","396|1|","3|1|"]} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5560,"order_number":"AZS-070326-002"} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-002","replaced_order_id":5560} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5564,"items_count":11,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":48,"quantity":2,"price":"250.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":60,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":49,"quantity":2,"price":"70.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5564,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5564}} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5564,"item_index":0,"menu_item_id":113} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5564,"item_index":1,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5564}} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5564,"item_index":1,"menu_item_id":102} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5564,"item_index":2,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5564}} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5564,"item_index":2,"menu_item_id":65} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5564,"item_index":3,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5564}} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5564,"item_index":3,"menu_item_id":112} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5564,"item_index":4,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5564}} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5564,"item_index":4,"menu_item_id":48} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5564,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5564}} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5564,"item_index":5,"menu_item_id":56} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5564,"item_index":6,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5564}} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5564,"item_index":6,"menu_item_id":60} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5564,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5564}} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5564,"item_index":7,"menu_item_id":5} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5564,"item_index":8,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5564}} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5564,"item_index":8,"menu_item_id":49} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5564,"item_index":9,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5564}} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5564,"item_index":9,"menu_item_id":396} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5564,"item_index":10,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5564}} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5564,"item_index":10,"menu_item_id":3} 
[2026-03-07 14:11:30] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5560,"new_order_id":5564,"order_number":"AZS-070326-002"} 
[2026-03-07 14:16:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":5563,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":26816},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":26817},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26818},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null,"id":26820}],"validated_items":[{"id":26816,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":26817,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":26818,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26820,"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:16:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5563,"items_count":4} 
[2026-03-07 14:16:17] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[26819],"items":[{"id":26816,"menu_item_id":62,"quantity":1},{"id":26817,"menu_item_id":396,"quantity":1},{"id":26818,"menu_item_id":61,"quantity":1},{"id":26820,"menu_item_id":29,"quantity":2}]} 
[2026-03-07 14:16:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5563,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["62|1|","396|1|","61|1|","17|1|","29|1|"],"new_items_map_keys":["62|1|","396|1|","61|1|","29|2|"]} 
[2026-03-07 14:16:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5563,"order_number":"AZS-070326-007"} 
[2026-03-07 14:16:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-007","replaced_order_id":5563} 
[2026-03-07 14:16:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5566,"items_count":4,"items":[{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":29,"quantity":2,"price":"250.00"}]} 
[2026-03-07 14:16:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5566,"item_index":0,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5566}} 
[2026-03-07 14:16:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5566,"item_index":0,"menu_item_id":62} 
[2026-03-07 14:16:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5566,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5566}} 
[2026-03-07 14:16:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5566,"item_index":1,"menu_item_id":396} 
[2026-03-07 14:16:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5566,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5566}} 
[2026-03-07 14:16:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5566,"item_index":2,"menu_item_id":61} 
[2026-03-07 14:16:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5566,"item_index":3,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5566}} 
[2026-03-07 14:16:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5566,"item_index":3,"menu_item_id":29} 
[2026-03-07 14:16:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5563,"new_order_id":5566,"order_number":"AZS-070326-007"} 
[2026-03-07 14:20:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5562,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26808},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26809},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":26810},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26811},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26812},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":26813},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26814},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":26815}],"validated_items":[{"id":26808,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":26809,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26810,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":26811,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26812,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26813,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"id":26814,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26815,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:20:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5562,"items_count":8} 
[2026-03-07 14:20:31] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26808,"menu_item_id":417,"quantity":1},{"id":26809,"menu_item_id":98,"quantity":1},{"id":26810,"menu_item_id":50,"quantity":1},{"id":26811,"menu_item_id":61,"quantity":1},{"id":26812,"menu_item_id":56,"quantity":1},{"id":26813,"menu_item_id":286,"quantity":2},{"id":26814,"menu_item_id":5,"quantity":1},{"id":26815,"menu_item_id":29,"quantity":1}]} 
[2026-03-07 14:20:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5562,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["417|1|","98|1|","50|1|","61|1|","56|1|","286|2|","5|1|","29|1|"],"new_items_map_keys":["417|1|","98|1|","50|1|","61|1|","56|1|","286|2|","5|1|","29|1|"]} 
[2026-03-07 14:20:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5562,"order_number":"AZS-070326-001"} 
[2026-03-07 14:20:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5562,"order_number":"AZS-070326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 14:20:31"} 
[2026-03-07 14:21:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":1,"order_id":5565,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":26832},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":26833},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":26834}],"validated_items":[{"id":26832,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":26833,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":26834,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:21:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5565,"items_count":3} 
[2026-03-07 14:21:02] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":1,"items_to_remove":[26835],"items":[{"id":26832,"menu_item_id":97,"quantity":1},{"id":26833,"menu_item_id":396,"quantity":3},{"id":26834,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 14:21:02] local.INFO: PosOrderController::update - Item changes check {"order_id":5565,"has_item_changes":true,"old_items_count":4,"new_items_count":3,"old_items_map_keys":["97|1|","396|3|","3|1|","61|1|"],"new_items_map_keys":["97|1|","396|3|","3|1|"]} 
[2026-03-07 14:21:02] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5565,"order_number":"AZS-070326-008"} 
[2026-03-07 14:21:02] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-008","replaced_order_id":5565} 
[2026-03-07 14:21:02] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5568,"items_count":3,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-07 14:21:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5568,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5568}} 
[2026-03-07 14:21:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5568,"item_index":0,"menu_item_id":97} 
[2026-03-07 14:21:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5568,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5568}} 
[2026-03-07 14:21:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5568,"item_index":1,"menu_item_id":396} 
[2026-03-07 14:21:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5568,"item_index":2,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5568}} 
[2026-03-07 14:21:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5568,"item_index":2,"menu_item_id":3} 
[2026-03-07 14:21:02] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5565,"new_order_id":5568,"order_number":"AZS-070326-008"} 
[2026-03-07 14:22:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":5564,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26821},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":26822},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":26823},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":26824},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":26825},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26826},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26827},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26828},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":26829},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26830},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26831}],"validated_items":[{"id":26821,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26822,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":26823,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":26824,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":26825,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":26826,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26827,"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26828,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26829,"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":26830,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":26831,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:22:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5564,"items_count":11} 
[2026-03-07 14:22:45] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26821,"menu_item_id":113,"quantity":1},{"id":26822,"menu_item_id":102,"quantity":1},{"id":26823,"menu_item_id":65,"quantity":1},{"id":26824,"menu_item_id":112,"quantity":1},{"id":26825,"menu_item_id":48,"quantity":2},{"id":26826,"menu_item_id":56,"quantity":1},{"id":26827,"menu_item_id":60,"quantity":1},{"id":26828,"menu_item_id":5,"quantity":1},{"id":26829,"menu_item_id":49,"quantity":2},{"id":26830,"menu_item_id":396,"quantity":1},{"id":26831,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 14:22:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5564,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["113|1|","102|1|","65|1|","112|1|","48|2|","56|1|","60|1|","5|1|","49|2|","396|1|","3|1|"],"new_items_map_keys":["113|1|","102|1|","65|1|","112|1|","48|2|","56|1|","60|1|","5|1|","49|2|","396|1|","3|1|"]} 
[2026-03-07 14:22:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5564,"order_number":"AZS-070326-002"} 
[2026-03-07 14:22:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5564,"order_number":"AZS-070326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 14:22:45"} 
[2026-03-07 14:22:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":5564,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26821},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":26822},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":26823},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":26824},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":26825},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26826},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26827},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26828},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":26829},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26830},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26831}],"validated_items":[{"id":26821,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26822,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":26823,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":26824,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":26825,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":26826,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26827,"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26828,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26829,"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":26830,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":26831,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:22:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5564,"items_count":11} 
[2026-03-07 14:22:52] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26821,"menu_item_id":113,"quantity":1},{"id":26822,"menu_item_id":102,"quantity":1},{"id":26823,"menu_item_id":65,"quantity":1},{"id":26824,"menu_item_id":112,"quantity":1},{"id":26825,"menu_item_id":48,"quantity":2},{"id":26826,"menu_item_id":56,"quantity":1},{"id":26827,"menu_item_id":60,"quantity":1},{"id":26828,"menu_item_id":5,"quantity":1},{"id":26829,"menu_item_id":49,"quantity":2},{"id":26830,"menu_item_id":396,"quantity":1},{"id":26831,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 14:22:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5564,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["113|1|","102|1|","65|1|","112|1|","48|2|","56|1|","60|1|","5|1|","49|2|","396|1|","3|1|"],"new_items_map_keys":["113|1|","102|1|","65|1|","112|1|","48|2|","56|1|","60|1|","5|1|","49|2|","396|1|","3|1|"]} 
[2026-03-07 14:22:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5564,"order_number":"AZS-070326-002"} 
[2026-03-07 14:22:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5564,"order_number":"AZS-070326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 14:22:52"} 
[2026-03-07 14:23:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5557,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":26785},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":26786},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":26787},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26788},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26785,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":26786,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"id":26787,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":26788,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:23:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5557,"items_count":5} 
[2026-03-07 14:23:18] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26785,"menu_item_id":417,"quantity":1},{"id":26786,"menu_item_id":63,"quantity":1},{"id":26787,"menu_item_id":396,"quantity":1},{"id":26788,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":13,"quantity":1}]} 
[2026-03-07 14:23:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5557,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["417|1|","63|1|","396|1|","61|1|"],"new_items_map_keys":["417|1|","63|1|","396|1|","61|1|","13|1|"]} 
[2026-03-07 14:23:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5557,"order_number":"AZS-070326-003"} 
[2026-03-07 14:23:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-003","replaced_order_id":5557} 
[2026-03-07 14:23:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5569,"items_count":5,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":63,"quantity":1,"price":"1099.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":13,"quantity":1,"price":"249.00"}]} 
[2026-03-07 14:23:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5569,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5569}} 
[2026-03-07 14:23:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5569,"item_index":0,"menu_item_id":417} 
[2026-03-07 14:23:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5569,"item_index":1,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5569}} 
[2026-03-07 14:23:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5569,"item_index":1,"menu_item_id":63} 
[2026-03-07 14:23:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5569,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5569}} 
[2026-03-07 14:23:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5569,"item_index":2,"menu_item_id":396} 
[2026-03-07 14:23:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5569,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5569}} 
[2026-03-07 14:23:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5569,"item_index":3,"menu_item_id":61} 
[2026-03-07 14:23:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5569,"item_index":4,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5569}} 
[2026-03-07 14:23:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5569,"item_index":4,"menu_item_id":13} 
[2026-03-07 14:23:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5557,"new_order_id":5569,"order_number":"AZS-070326-003"} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":1,"order_id":5564,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26821},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":26822},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":26823},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":26825},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26826},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26827},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26828},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":26829},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26830},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26831}],"validated_items":[{"id":26821,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26822,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":26823,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":26825,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":26826,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26827,"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26828,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26829,"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":26830,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":26831,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5564,"items_count":10} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":1,"items_to_remove":[26824],"items":[{"id":26821,"menu_item_id":113,"quantity":1},{"id":26822,"menu_item_id":102,"quantity":1},{"id":26823,"menu_item_id":65,"quantity":1},{"id":26825,"menu_item_id":48,"quantity":2},{"id":26826,"menu_item_id":56,"quantity":1},{"id":26827,"menu_item_id":60,"quantity":1},{"id":26828,"menu_item_id":5,"quantity":1},{"id":26829,"menu_item_id":49,"quantity":2},{"id":26830,"menu_item_id":396,"quantity":1},{"id":26831,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Item changes check {"order_id":5564,"has_item_changes":true,"old_items_count":11,"new_items_count":10,"old_items_map_keys":["113|1|","102|1|","65|1|","112|1|","48|2|","56|1|","60|1|","5|1|","49|2|","396|1|","3|1|"],"new_items_map_keys":["113|1|","102|1|","65|1|","48|2|","56|1|","60|1|","5|1|","49|2|","396|1|","3|1|"]} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5564,"order_number":"AZS-070326-002"} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-002","replaced_order_id":5564} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5570,"items_count":10,"items":[{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":102,"quantity":1,"price":1399.0},{"menu_item_id":65,"quantity":1,"price":1299.0},{"menu_item_id":48,"quantity":2,"price":250.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":60,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":49,"quantity":2,"price":70.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5570,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5570}} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5570,"item_index":0,"menu_item_id":113} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5570,"item_index":1,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":1399.0,"discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5570}} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5570,"item_index":1,"menu_item_id":102} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5570,"item_index":2,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5570}} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5570,"item_index":2,"menu_item_id":65} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5570,"item_index":3,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":2,"price":250.0,"discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5570}} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5570,"item_index":3,"menu_item_id":48} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5570,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5570}} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5570,"item_index":4,"menu_item_id":56} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5570,"item_index":5,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5570}} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5570,"item_index":5,"menu_item_id":60} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5570,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5570}} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5570,"item_index":6,"menu_item_id":5} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5570,"item_index":7,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":2,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5570}} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5570,"item_index":7,"menu_item_id":49} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5570,"item_index":8,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5570}} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5570,"item_index":8,"menu_item_id":396} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5570,"item_index":9,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5570}} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5570,"item_index":9,"menu_item_id":3} 
[2026-03-07 14:23:50] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5564,"new_order_id":5570,"order_number":"AZS-070326-002"} 
[2026-03-07 14:23:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5570,"item_index":0,"item_id":26821} 
[2026-03-07 14:23:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5570,"item_index":1,"item_id":26822} 
[2026-03-07 14:23:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5570,"item_index":2,"item_id":26823} 
[2026-03-07 14:23:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5570,"item_index":3,"item_id":26825} 
[2026-03-07 14:23:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5570,"item_index":4,"item_id":26826} 
[2026-03-07 14:23:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5570,"item_index":5,"item_id":26827} 
[2026-03-07 14:23:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5570,"item_index":6,"item_id":26828} 
[2026-03-07 14:23:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5570,"item_index":7,"item_id":26829} 
[2026-03-07 14:23:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5570,"item_index":8,"item_id":26830} 
[2026-03-07 14:23:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5570,"item_index":9,"item_id":26831} 
[2026-03-07 14:23:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":10,"order_id":5570,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26821},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":26822},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":26823},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":26825},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26826},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26827},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26828},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":26829},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26830},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26831}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:23:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5570,"items_count":10} 
[2026-03-07 14:23:56] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":10,"items_to_remove":[26849,26850,26851,26852,26853,26854,26855,26856,26857,26858],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":48,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":60,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":49,"quantity":2},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 14:23:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5570,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["113|1|","102|1|","65|1|","48|2|","56|1|","60|1|","5|1|","49|2|","396|1|","3|1|"],"new_items_map_keys":["113|1|","102|1|","65|1|","48|2|","56|1|","60|1|","5|1|","49|2|","396|1|","3|1|"]} 
[2026-03-07 14:23:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5570,"order_number":"AZS-070326-002"} 
[2026-03-07 14:23:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5570,"order_number":"AZS-070326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 14:23:56"} 
[2026-03-07 14:24:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":5569,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26844},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":26845},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26846},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26847}],"validated_items":[{"id":26844,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":26845,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":26846,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":26847,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:24:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5569,"items_count":4} 
[2026-03-07 14:24:11] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[26848],"items":[{"id":26844,"menu_item_id":417,"quantity":1},{"id":26845,"menu_item_id":63,"quantity":1},{"id":26846,"menu_item_id":396,"quantity":1},{"id":26847,"menu_item_id":61,"quantity":1}]} 
[2026-03-07 14:24:11] local.INFO: PosOrderController::update - Item changes check {"order_id":5569,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["417|1|","63|1|","396|1|","61|1|","13|1|"],"new_items_map_keys":["417|1|","63|1|","396|1|","61|1|"]} 
[2026-03-07 14:24:11] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5569,"order_number":"AZS-070326-003"} 
[2026-03-07 14:24:11] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-003","replaced_order_id":5569} 
[2026-03-07 14:24:11] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5571,"items_count":4,"items":[{"menu_item_id":417,"quantity":1,"price":499.0},{"menu_item_id":63,"quantity":1,"price":1099.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0}]} 
[2026-03-07 14:24:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5571,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":499.0,"discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5571}} 
[2026-03-07 14:24:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5571,"item_index":0,"menu_item_id":417} 
[2026-03-07 14:24:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5571,"item_index":1,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":1099.0,"discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5571}} 
[2026-03-07 14:24:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5571,"item_index":1,"menu_item_id":63} 
[2026-03-07 14:24:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5571,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5571}} 
[2026-03-07 14:24:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5571,"item_index":2,"menu_item_id":396} 
[2026-03-07 14:24:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5571,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5571}} 
[2026-03-07 14:24:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5571,"item_index":3,"menu_item_id":61} 
[2026-03-07 14:24:11] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5569,"new_order_id":5571,"order_number":"AZS-070326-003"} 
[2026-03-07 14:24:24] local.INFO: RouteServiceProvider: Found direct replacement order {"old_order_id":5569,"new_order_id":5571,"order_number":"AZS-070326-003","method":"PUT","route":"api/orders/5569"} 
[2026-03-07 14:24:24] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5571,"item_index":0,"item_id":26844} 
[2026-03-07 14:24:24] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5571,"item_index":1,"item_id":26845} 
[2026-03-07 14:24:24] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5571,"item_index":2,"item_id":26846} 
[2026-03-07 14:24:24] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5571,"item_index":3,"item_id":26847} 
[2026-03-07 14:24:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":5571,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26844},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":26845},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26846},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26847}],"validated_items":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:24:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5571,"items_count":4} 
[2026-03-07 14:24:24] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[26848],"items":[{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":63,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-03-07 14:24:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5571,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["417|1|","63|1|","396|1|","61|1|"],"new_items_map_keys":["417|1|","63|1|","396|1|","61|1|"]} 
[2026-03-07 14:24:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5571,"order_number":"AZS-070326-003"} 
[2026-03-07 14:24:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5571,"order_number":"AZS-070326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 14:24:24"} 
[2026-03-07 14:24:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5571,"item_index":0,"item_id":26844} 
[2026-03-07 14:24:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5571,"item_index":1,"item_id":26845} 
[2026-03-07 14:24:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5571,"item_index":2,"item_id":26846} 
[2026-03-07 14:24:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5571,"item_index":3,"item_id":26847} 
[2026-03-07 14:24:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":4,"order_id":5571,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26844},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":26845},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26846},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26847},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:24:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5571,"items_count":5} 
[2026-03-07 14:24:42] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":4,"items_to_remove":[26859,26860,26861,26862],"items":[{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":63,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-07 14:24:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5571,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["417|1|","63|1|","396|1|","61|1|"],"new_items_map_keys":["417|1|","63|1|","396|1|","61|1|","5|1|"]} 
[2026-03-07 14:24:42] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5571,"order_number":"AZS-070326-003"} 
[2026-03-07 14:24:42] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-003","replaced_order_id":5571} 
[2026-03-07 14:24:42] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5572,"items_count":5,"items":[{"menu_item_id":417,"quantity":1,"price":499.0},{"menu_item_id":63,"quantity":1,"price":1099.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-03-07 14:24:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5572,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":499.0,"discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5572}} 
[2026-03-07 14:24:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5572,"item_index":0,"menu_item_id":417} 
[2026-03-07 14:24:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5572,"item_index":1,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":1099.0,"discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5572}} 
[2026-03-07 14:24:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5572,"item_index":1,"menu_item_id":63} 
[2026-03-07 14:24:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5572,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5572}} 
[2026-03-07 14:24:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5572,"item_index":2,"menu_item_id":396} 
[2026-03-07 14:24:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5572,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5572}} 
[2026-03-07 14:24:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5572,"item_index":3,"menu_item_id":61} 
[2026-03-07 14:24:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5572,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5572}} 
[2026-03-07 14:24:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5572,"item_index":4,"menu_item_id":5} 
[2026-03-07 14:24:42] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5571,"new_order_id":5572,"order_number":"AZS-070326-003"} 
[2026-03-07 14:24:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5572,"item_index":0,"item_id":26844} 
[2026-03-07 14:24:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5572,"item_index":1,"item_id":26845} 
[2026-03-07 14:24:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5572,"item_index":2,"item_id":26846} 
[2026-03-07 14:24:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5572,"item_index":3,"item_id":26847} 
[2026-03-07 14:24:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5572,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26844},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":26845},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26846},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26847},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:24:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5572,"items_count":5} 
[2026-03-07 14:24:48] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[26863,26864,26865,26866,26867],"items":[{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":63,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-07 14:24:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5572,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|1|","63|1|","396|1|","61|1|","5|1|"],"new_items_map_keys":["417|1|","63|1|","396|1|","61|1|","5|1|"]} 
[2026-03-07 14:24:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5572,"order_number":"AZS-070326-003"} 
[2026-03-07 14:24:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5572,"order_number":"AZS-070326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 14:24:48"} 
[2026-03-07 14:26:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5570,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26849},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":26850},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":26851},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":26852},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26853},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26854},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26855},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":26856},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26857},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26858}],"validated_items":[{"id":26849,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26850,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":26851,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":26852,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":26853,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26854,"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26855,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26856,"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":26857,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":26858,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:26:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5570,"items_count":10} 
[2026-03-07 14:26:19] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26849,"menu_item_id":113,"quantity":1},{"id":26850,"menu_item_id":102,"quantity":1},{"id":26851,"menu_item_id":65,"quantity":1},{"id":26852,"menu_item_id":48,"quantity":2},{"id":26853,"menu_item_id":56,"quantity":1},{"id":26854,"menu_item_id":60,"quantity":1},{"id":26855,"menu_item_id":5,"quantity":1},{"id":26856,"menu_item_id":49,"quantity":2},{"id":26857,"menu_item_id":396,"quantity":1},{"id":26858,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 14:26:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5570,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["113|1|","102|1|","65|1|","48|2|","56|1|","60|1|","5|1|","49|2|","396|1|","3|1|"],"new_items_map_keys":["113|1|","102|1|","65|1|","48|2|","56|1|","60|1|","5|1|","49|2|","396|1|","3|1|"]} 
[2026-03-07 14:26:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5570,"order_number":"AZS-070326-002"} 
[2026-03-07 14:26:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5570,"order_number":"AZS-070326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 14:26:19"} 
[2026-03-07 14:27:12] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5572,"order_number":"AZS-070326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 14:27:12"} 
[2026-03-07 14:27:12] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5572,"order_number":"AZS-070326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 14:27:12"} 
[2026-03-07 14:27:12] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5572,"order_number":"AZS-070326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 14:27:12"} 
[2026-03-07 14:27:12] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5572,"order_number":"AZS-070326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 14:27:12"} 
[2026-03-07 14:27:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5572,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26863},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":26864},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26865},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26866},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26867}],"validated_items":[{"id":26863,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":26864,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":26865,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":26866,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26867,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:27:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5572,"items_count":5} 
[2026-03-07 14:27:12] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26863,"menu_item_id":417,"quantity":1},{"id":26864,"menu_item_id":63,"quantity":1},{"id":26865,"menu_item_id":396,"quantity":1},{"id":26866,"menu_item_id":61,"quantity":1},{"id":26867,"menu_item_id":5,"quantity":1}]} 
[2026-03-07 14:27:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5572,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|1|","63|1|","396|1|","61|1|","5|1|"],"new_items_map_keys":["417|1|","63|1|","396|1|","61|1|","5|1|"]} 
[2026-03-07 14:27:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5572,"order_number":"AZS-070326-003"} 
[2026-03-07 14:27:12] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5572,"order_number":"AZS-070326-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-07 14:27:12","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 14:27:12"} 
[2026-03-07 14:27:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5572,"order_number":"AZS-070326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 14:27:12"} 
[2026-03-07 14:27:12] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5572,"order_number":"AZS-070326-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-07 14:27:12","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2200.00","database_verification_match":true,"timestamp":"2026-03-07 14:27:12"} 
[2026-03-07 14:28:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5562,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26808},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26809},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":26810},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26811},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26812},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":26813},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26814},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":26815}],"validated_items":[{"id":26808,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":26809,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26810,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":26811,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26812,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26813,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"id":26814,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26815,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:28:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5562,"items_count":8} 
[2026-03-07 14:28:43] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26808,"menu_item_id":417,"quantity":1},{"id":26809,"menu_item_id":98,"quantity":1},{"id":26810,"menu_item_id":50,"quantity":1},{"id":26811,"menu_item_id":61,"quantity":1},{"id":26812,"menu_item_id":56,"quantity":1},{"id":26813,"menu_item_id":286,"quantity":2},{"id":26814,"menu_item_id":5,"quantity":1},{"id":26815,"menu_item_id":29,"quantity":1}]} 
[2026-03-07 14:28:43] local.INFO: PosOrderController::update - Item changes check {"order_id":5562,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["417|1|","98|1|","50|1|","61|1|","56|1|","286|2|","5|1|","29|1|"],"new_items_map_keys":["417|1|","98|1|","50|1|","61|1|","56|1|","286|2|","5|1|","29|1|"]} 
[2026-03-07 14:28:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5562,"order_number":"AZS-070326-001"} 
[2026-03-07 14:28:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5562,"order_number":"AZS-070326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 14:28:43"} 
[2026-03-07 14:29:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":5556,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":2,"price":1499,"discount_percent":0,"notes":null,"id":26773},{"menu_item_id":65,"quantity":2,"price":1299,"discount_percent":0,"notes":null,"id":26774},{"menu_item_id":88,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":26775},{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26776},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26777},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":26778},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26779},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26780},{"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null,"id":26781},{"menu_item_id":400,"quantity":452,"price":1,"discount_percent":0,"notes":null,"id":26782},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":26783},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26784}],"validated_items":[{"id":26773,"menu_item_id":62,"quantity":2,"price":1499,"discount_percent":0,"notes":null},{"id":26774,"menu_item_id":65,"quantity":2,"price":1299,"discount_percent":0,"notes":null},{"id":26775,"menu_item_id":88,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":26776,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":26777,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26778,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":26779,"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":26780,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":26781,"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null},{"id":26782,"menu_item_id":400,"quantity":452,"price":1,"discount_percent":0,"notes":null},{"id":26783,"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":26784,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:29:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5556,"items_count":12} 
[2026-03-07 14:29:11] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26773,"menu_item_id":62,"quantity":2},{"id":26774,"menu_item_id":65,"quantity":2},{"id":26775,"menu_item_id":88,"quantity":1},{"id":26776,"menu_item_id":97,"quantity":1},{"id":26777,"menu_item_id":396,"quantity":3},{"id":26778,"menu_item_id":50,"quantity":2},{"id":26779,"menu_item_id":60,"quantity":2},{"id":26780,"menu_item_id":56,"quantity":2},{"id":26781,"menu_item_id":417,"quantity":3},{"id":26782,"menu_item_id":400,"quantity":452},{"id":26783,"menu_item_id":55,"quantity":1},{"id":26784,"menu_item_id":5,"quantity":1}]} 
[2026-03-07 14:29:11] local.INFO: PosOrderController::update - Item changes check {"order_id":5556,"has_item_changes":false,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["62|2|","65|2|","88|1|","97|1|","396|3|","50|2|","60|2|","56|2|","417|3|","400|452|","55|1|","5|1|"],"new_items_map_keys":["62|2|","65|2|","88|1|","97|1|","396|3|","50|2|","60|2|","56|2|","417|3|","400|452|","55|1|","5|1|"]} 
[2026-03-07 14:29:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5556,"order_number":"AZS-070326-004"} 
[2026-03-07 14:29:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5556,"order_number":"AZS-070326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 14:29:11"} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":5556,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":2,"discount_percent":0,"notes":null,"id":26773},{"menu_item_id":65,"quantity":2,"discount_percent":0,"notes":null,"id":26774},{"menu_item_id":88,"quantity":1,"discount_percent":0,"notes":null,"id":26775},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":26776},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":26777},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":26778},{"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null,"id":26779},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":26780},{"menu_item_id":417,"quantity":3,"discount_percent":0,"notes":null,"id":26781},{"menu_item_id":400,"quantity":452,"discount_percent":0,"notes":null,"id":26782},{"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null,"id":26783},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":26784}],"validated_items":[{"id":26773,"menu_item_id":62,"quantity":2,"discount_percent":0,"notes":null},{"id":26774,"menu_item_id":65,"quantity":2,"discount_percent":0,"notes":null},{"id":26775,"menu_item_id":88,"quantity":1,"discount_percent":0,"notes":null},{"id":26776,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":26777,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":26778,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":26779,"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null},{"id":26780,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":26781,"menu_item_id":417,"quantity":3,"discount_percent":0,"notes":null},{"id":26782,"menu_item_id":400,"quantity":452,"discount_percent":0,"notes":null},{"id":26783,"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null},{"id":26784,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5556,"items_count":12} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26773,"menu_item_id":62,"quantity":2},{"id":26774,"menu_item_id":65,"quantity":2},{"id":26775,"menu_item_id":88,"quantity":1},{"id":26776,"menu_item_id":97,"quantity":1},{"id":26777,"menu_item_id":396,"quantity":3},{"id":26778,"menu_item_id":50,"quantity":2},{"id":26779,"menu_item_id":60,"quantity":2},{"id":26780,"menu_item_id":56,"quantity":2},{"id":26781,"menu_item_id":417,"quantity":3},{"id":26782,"menu_item_id":400,"quantity":452},{"id":26783,"menu_item_id":55,"quantity":1},{"id":26784,"menu_item_id":5,"quantity":2}]} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5556,"has_item_changes":true,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["62|2|","65|2|","88|1|","97|1|","396|3|","50|2|","60|2|","56|2|","417|3|","400|452|","55|1|","5|1|"],"new_items_map_keys":["62|2|","65|2|","88|1|","97|1|","396|3|","50|2|","60|2|","56|2|","417|3|","400|452|","55|1|","5|2|"]} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5556,"order_number":"AZS-070326-004"} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-004","replaced_order_id":5556} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5573,"items_count":12,"items":[{"menu_item_id":62,"quantity":2,"price":"1499.00"},{"menu_item_id":65,"quantity":2,"price":"1299.00"},{"menu_item_id":88,"quantity":1,"price":"1999.00"},{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":60,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":417,"quantity":3,"price":"499.00"},{"menu_item_id":400,"quantity":452,"price":"1.00"},{"menu_item_id":55,"quantity":1,"price":"159.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"}]} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5573,"item_index":0,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":2,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":2998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5573}} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5573,"item_index":0,"menu_item_id":62} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5573,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":2,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":2598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5573}} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5573,"item_index":1,"menu_item_id":65} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5573,"item_index":2,"item_data":{"menu_item_id":88,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Madrasi Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5573}} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5573,"item_index":2,"menu_item_id":88} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5573,"item_index":3,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5573}} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5573,"item_index":3,"menu_item_id":97} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5573,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5573}} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5573,"item_index":4,"menu_item_id":396} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5573,"item_index":5,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5573}} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5573,"item_index":5,"menu_item_id":50} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5573,"item_index":6,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5573}} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5573,"item_index":6,"menu_item_id":60} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5573,"item_index":7,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5573}} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5573,"item_index":7,"menu_item_id":56} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5573,"item_index":8,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":3,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":1497.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5573}} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5573,"item_index":8,"menu_item_id":417} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5573,"item_index":9,"item_data":{"menu_item_id":400,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL ITEMS","quantity":452,"price":"1.00","discount_percent":0.0,"discount_amount":0.0,"total":452.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5573}} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5573,"item_index":9,"menu_item_id":400} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5573,"item_index":10,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5573}} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5573,"item_index":10,"menu_item_id":55} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5573,"item_index":11,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5573}} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5573,"item_index":11,"menu_item_id":5} 
[2026-03-07 14:31:04] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5556,"new_order_id":5573,"order_number":"AZS-070326-004"} 
[2026-03-07 14:31:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5573,"item_index":0,"item_id":26773} 
[2026-03-07 14:31:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5573,"item_index":1,"item_id":26774} 
[2026-03-07 14:31:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5573,"item_index":2,"item_id":26775} 
[2026-03-07 14:31:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5573,"item_index":3,"item_id":26776} 
[2026-03-07 14:31:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5573,"item_index":4,"item_id":26777} 
[2026-03-07 14:31:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5573,"item_index":5,"item_id":26778} 
[2026-03-07 14:31:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5573,"item_index":6,"item_id":26779} 
[2026-03-07 14:31:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5573,"item_index":7,"item_id":26780} 
[2026-03-07 14:31:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5573,"item_index":8,"item_id":26781} 
[2026-03-07 14:31:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5573,"item_index":9,"item_id":26782} 
[2026-03-07 14:31:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5573,"item_index":10,"item_id":26783} 
[2026-03-07 14:31:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5573,"item_index":11,"item_id":26784} 
[2026-03-07 14:31:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":12,"order_id":5573,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":2,"price":1499,"discount_percent":0,"notes":null,"id":26773},{"menu_item_id":65,"quantity":2,"price":1299,"discount_percent":0,"notes":null,"id":26774},{"menu_item_id":88,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":26775},{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26776},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26777},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":26778},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26779},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26780},{"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null,"id":26781},{"menu_item_id":400,"quantity":452,"price":1,"discount_percent":0,"notes":null,"id":26782},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":26783},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":26784}],"validated_items":[{"menu_item_id":62,"quantity":2,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":2,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":88,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":400,"quantity":452,"price":1,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:31:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5573,"items_count":12} 
[2026-03-07 14:31:14] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":12,"items_to_remove":[26868,26869,26870,26871,26872,26873,26874,26875,26876,26877,26878,26879],"items":[{"id":null,"menu_item_id":62,"quantity":2},{"id":null,"menu_item_id":65,"quantity":2},{"id":null,"menu_item_id":88,"quantity":1},{"id":null,"menu_item_id":97,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":60,"quantity":2},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":417,"quantity":3},{"id":null,"menu_item_id":400,"quantity":452},{"id":null,"menu_item_id":55,"quantity":1},{"id":null,"menu_item_id":5,"quantity":2}]} 
[2026-03-07 14:31:14] local.INFO: PosOrderController::update - Item changes check {"order_id":5573,"has_item_changes":false,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["62|2|","65|2|","88|1|","97|1|","396|3|","50|2|","60|2|","56|2|","417|3|","400|452|","55|1|","5|2|"],"new_items_map_keys":["62|2|","65|2|","88|1|","97|1|","396|3|","50|2|","60|2|","56|2|","417|3|","400|452|","55|1|","5|2|"]} 
[2026-03-07 14:31:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5573,"order_number":"AZS-070326-004"} 
[2026-03-07 14:31:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5573,"order_number":"AZS-070326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 14:31:14"} 
[2026-03-07 14:31:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5561,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":26807}],"validated_items":[{"id":26807,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:31:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5561,"items_count":1} 
[2026-03-07 14:31:37] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26807,"menu_item_id":6,"quantity":4}]} 
[2026-03-07 14:31:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5561,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|4|"],"new_items_map_keys":["6|4|"]} 
[2026-03-07 14:31:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5561,"order_number":"AZS-070326-006"} 
[2026-03-07 14:31:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5561,"order_number":"AZS-070326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 14:31:37"} 
[2026-03-07 14:38:22] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5561,"order_number":"AZS-070326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 14:38:22"} 
[2026-03-07 14:38:22] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5561,"order_number":"AZS-070326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 14:38:22"} 
[2026-03-07 14:38:22] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5561,"order_number":"AZS-070326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 14:38:22"} 
[2026-03-07 14:38:22] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5561,"order_number":"AZS-070326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 14:38:22"} 
[2026-03-07 14:38:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5561,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":26807}],"validated_items":[{"id":26807,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:38:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5561,"items_count":1} 
[2026-03-07 14:38:22] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26807,"menu_item_id":6,"quantity":4}]} 
[2026-03-07 14:38:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5561,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|4|"],"new_items_map_keys":["6|4|"]} 
[2026-03-07 14:38:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5561,"order_number":"AZS-070326-006"} 
[2026-03-07 14:38:22] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5561,"order_number":"AZS-070326-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-07 14:38:22","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 14:38:22"} 
[2026-03-07 14:38:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5561,"order_number":"AZS-070326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 14:38:22"} 
[2026-03-07 14:38:22] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5561,"order_number":"AZS-070326-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-07 14:38:22","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-07 14:38:22"} 
[2026-03-07 14:39:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":1,"order_id":5562,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":26808},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":26809},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":26810},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26812},{"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null,"id":26813},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26814},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null,"id":26815}],"validated_items":[{"id":26808,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":26809,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":26810,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":26812,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26813,"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null},{"id":26814,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":26815,"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:39:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5562,"items_count":7} 
[2026-03-07 14:39:19] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":1,"items_to_remove":[26811],"items":[{"id":26808,"menu_item_id":417,"quantity":1},{"id":26809,"menu_item_id":98,"quantity":1},{"id":26810,"menu_item_id":50,"quantity":1},{"id":26812,"menu_item_id":56,"quantity":1},{"id":26813,"menu_item_id":286,"quantity":2},{"id":26814,"menu_item_id":5,"quantity":1},{"id":26815,"menu_item_id":29,"quantity":1}]} 
[2026-03-07 14:39:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5562,"has_item_changes":true,"old_items_count":8,"new_items_count":7,"old_items_map_keys":["417|1|","98|1|","50|1|","61|1|","56|1|","286|2|","5|1|","29|1|"],"new_items_map_keys":["417|1|","98|1|","50|1|","56|1|","286|2|","5|1|","29|1|"]} 
[2026-03-07 14:39:19] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5562,"order_number":"AZS-070326-001"} 
[2026-03-07 14:39:19] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-001","replaced_order_id":5562} 
[2026-03-07 14:39:19] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5574,"items_count":7,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":286,"quantity":2,"price":"15.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"}]} 
[2026-03-07 14:39:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5574,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5574}} 
[2026-03-07 14:39:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5574,"item_index":0,"menu_item_id":417} 
[2026-03-07 14:39:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5574,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5574}} 
[2026-03-07 14:39:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5574,"item_index":1,"menu_item_id":98} 
[2026-03-07 14:39:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5574,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5574}} 
[2026-03-07 14:39:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5574,"item_index":2,"menu_item_id":50} 
[2026-03-07 14:39:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5574,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5574}} 
[2026-03-07 14:39:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5574,"item_index":3,"menu_item_id":56} 
[2026-03-07 14:39:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5574,"item_index":4,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":2,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":30.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5574}} 
[2026-03-07 14:39:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5574,"item_index":4,"menu_item_id":286} 
[2026-03-07 14:39:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5574,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5574}} 
[2026-03-07 14:39:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5574,"item_index":5,"menu_item_id":5} 
[2026-03-07 14:39:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5574,"item_index":6,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5574}} 
[2026-03-07 14:39:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5574,"item_index":6,"menu_item_id":29} 
[2026-03-07 14:39:19] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5562,"new_order_id":5574,"order_number":"AZS-070326-001"} 
[2026-03-07 14:39:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5574,"item_index":0,"item_id":26808} 
[2026-03-07 14:39:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5574,"item_index":1,"item_id":26809} 
[2026-03-07 14:39:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5574,"item_index":2,"item_id":26810} 
[2026-03-07 14:39:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5574,"item_index":3,"item_id":26812} 
[2026-03-07 14:39:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5574,"item_index":4,"item_id":26813} 
[2026-03-07 14:39:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5574,"item_index":5,"item_id":26814} 
[2026-03-07 14:39:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5574,"item_index":6,"item_id":26815} 
[2026-03-07 14:39:31] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5574,"order_number":"AZS-070326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2600,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 14:39:31"} 
[2026-03-07 14:39:31] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5574,"order_number":"AZS-070326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 14:39:31"} 
[2026-03-07 14:39:31] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5574,"order_number":"AZS-070326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 14:39:31"} 
[2026-03-07 14:39:31] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5574,"order_number":"AZS-070326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 14:39:31"} 
[2026-03-07 14:39:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5574,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":26808},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26809},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":26810},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26812},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":26813},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26814},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":26815}],"validated_items":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:39:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5574,"items_count":7} 
[2026-03-07 14:39:31] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[26880,26881,26882,26883,26884,26885,26886],"items":[{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":286,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":29,"quantity":1}]} 
[2026-03-07 14:39:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5574,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["417|1|","98|1|","50|1|","56|1|","286|2|","5|1|","29|1|"],"new_items_map_keys":["417|1|","98|1|","50|1|","56|1|","286|2|","5|1|","29|1|"]} 
[2026-03-07 14:39:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5574,"order_number":"AZS-070326-001"} 
[2026-03-07 14:39:31] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5574,"order_number":"AZS-070326-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2600,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-07 14:39:31","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 14:39:31"} 
[2026-03-07 14:39:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5574,"order_number":"AZS-070326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 14:39:31"} 
[2026-03-07 14:39:31] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5574,"order_number":"AZS-070326-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2600.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-07 14:39:31","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2600.00","database_verification_match":true,"timestamp":"2026-03-07 14:39:31"} 
[2026-03-07 14:39:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5570,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26849},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":26850},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":26851},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":26852},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26853},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26854},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26855},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":26856},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26857},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26858}],"validated_items":[{"id":26849,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26850,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":26851,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":26852,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":26853,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26854,"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26855,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26856,"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":26857,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":26858,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:39:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5570,"items_count":10} 
[2026-03-07 14:39:58] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26849,"menu_item_id":113,"quantity":1},{"id":26850,"menu_item_id":102,"quantity":1},{"id":26851,"menu_item_id":65,"quantity":1},{"id":26852,"menu_item_id":48,"quantity":2},{"id":26853,"menu_item_id":56,"quantity":1},{"id":26854,"menu_item_id":60,"quantity":1},{"id":26855,"menu_item_id":5,"quantity":1},{"id":26856,"menu_item_id":49,"quantity":2},{"id":26857,"menu_item_id":396,"quantity":1},{"id":26858,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 14:39:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5570,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["113|1|","102|1|","65|1|","48|2|","56|1|","60|1|","5|1|","49|2|","396|1|","3|1|"],"new_items_map_keys":["113|1|","102|1|","65|1|","48|2|","56|1|","60|1|","5|1|","49|2|","396|1|","3|1|"]} 
[2026-03-07 14:39:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5570,"order_number":"AZS-070326-002"} 
[2026-03-07 14:39:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5570,"order_number":"AZS-070326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 14:39:58"} 
[2026-03-07 14:41:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":5573,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":2,"price":1499,"discount_percent":0,"notes":null,"id":26868},{"menu_item_id":65,"quantity":2,"price":1299,"discount_percent":0,"notes":null,"id":26869},{"menu_item_id":88,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":26870},{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26871},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26872},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":26873},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26874},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26875},{"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null,"id":26876},{"menu_item_id":400,"quantity":452,"price":1,"discount_percent":0,"notes":null,"id":26877},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":26878},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":26879}],"validated_items":[{"id":26868,"menu_item_id":62,"quantity":2,"price":1499,"discount_percent":0,"notes":null},{"id":26869,"menu_item_id":65,"quantity":2,"price":1299,"discount_percent":0,"notes":null},{"id":26870,"menu_item_id":88,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":26871,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":26872,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26873,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":26874,"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":26875,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":26876,"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null},{"id":26877,"menu_item_id":400,"quantity":452,"price":1,"discount_percent":0,"notes":null},{"id":26878,"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":26879,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:41:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5573,"items_count":12} 
[2026-03-07 14:41:04] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26868,"menu_item_id":62,"quantity":2},{"id":26869,"menu_item_id":65,"quantity":2},{"id":26870,"menu_item_id":88,"quantity":1},{"id":26871,"menu_item_id":97,"quantity":1},{"id":26872,"menu_item_id":396,"quantity":3},{"id":26873,"menu_item_id":50,"quantity":2},{"id":26874,"menu_item_id":60,"quantity":2},{"id":26875,"menu_item_id":56,"quantity":2},{"id":26876,"menu_item_id":417,"quantity":3},{"id":26877,"menu_item_id":400,"quantity":452},{"id":26878,"menu_item_id":55,"quantity":1},{"id":26879,"menu_item_id":5,"quantity":2}]} 
[2026-03-07 14:41:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5573,"has_item_changes":false,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["62|2|","65|2|","88|1|","97|1|","396|3|","50|2|","60|2|","56|2|","417|3|","400|452|","55|1|","5|2|"],"new_items_map_keys":["62|2|","65|2|","88|1|","97|1|","396|3|","50|2|","60|2|","56|2|","417|3|","400|452|","55|1|","5|2|"]} 
[2026-03-07 14:41:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5573,"order_number":"AZS-070326-004"} 
[2026-03-07 14:41:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5573,"order_number":"AZS-070326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 14:41:04"} 
[2026-03-07 14:41:56] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5570,"order_number":"AZS-070326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5300,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 14:41:56"} 
[2026-03-07 14:41:56] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5570,"order_number":"AZS-070326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5300,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 14:41:56"} 
[2026-03-07 14:41:56] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5570,"order_number":"AZS-070326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 14:41:56"} 
[2026-03-07 14:41:56] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5570,"order_number":"AZS-070326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 14:41:56"} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":1,"order_id":5570,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26849},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":26850},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":26851},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":26852},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26853},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26855},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":26856},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26857},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26858}],"validated_items":[{"id":26849,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26850,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":26851,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":26852,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":26853,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26855,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26856,"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":26857,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":26858,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5570,"items_count":9} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":1,"items_to_remove":[26854],"items":[{"id":26849,"menu_item_id":113,"quantity":1},{"id":26850,"menu_item_id":102,"quantity":1},{"id":26851,"menu_item_id":65,"quantity":1},{"id":26852,"menu_item_id":48,"quantity":2},{"id":26853,"menu_item_id":56,"quantity":1},{"id":26855,"menu_item_id":5,"quantity":1},{"id":26856,"menu_item_id":49,"quantity":2},{"id":26857,"menu_item_id":396,"quantity":1},{"id":26858,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5570,"has_item_changes":true,"old_items_count":10,"new_items_count":9,"old_items_map_keys":["113|1|","102|1|","65|1|","48|2|","56|1|","60|1|","5|1|","49|2|","396|1|","3|1|"],"new_items_map_keys":["113|1|","102|1|","65|1|","48|2|","56|1|","5|1|","49|2|","396|1|","3|1|"]} 
[2026-03-07 14:41:56] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5570,"order_number":"AZS-070326-002","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5300,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-07 14:41:56","original_payment_amount":"0.00","grand_total":5275.0,"timestamp":"2026-03-07 14:41:56"} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5570,"order_number":"AZS-070326-002"} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-002","replaced_order_id":5570} 
[2026-03-07 14:41:56] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5570,"new_order_id":5575,"order_number":"AZS-070326-002","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5300.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-07 14:41:56","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5300,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-07 14:41:56"} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5575,"items_count":9,"items":[{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":102,"quantity":1,"price":1399.0},{"menu_item_id":65,"quantity":1,"price":1299.0},{"menu_item_id":48,"quantity":2,"price":250.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":49,"quantity":2,"price":70.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5575,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5575}} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5575,"item_index":0,"menu_item_id":113} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5575,"item_index":1,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":1399.0,"discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5575}} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5575,"item_index":1,"menu_item_id":102} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5575,"item_index":2,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5575}} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5575,"item_index":2,"menu_item_id":65} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5575,"item_index":3,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":2,"price":250.0,"discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5575}} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5575,"item_index":3,"menu_item_id":48} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5575,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5575}} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5575,"item_index":4,"menu_item_id":56} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5575,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5575}} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5575,"item_index":5,"menu_item_id":5} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5575,"item_index":6,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":2,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5575}} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5575,"item_index":6,"menu_item_id":49} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5575,"item_index":7,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5575}} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5575,"item_index":7,"menu_item_id":396} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5575,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5575}} 
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5575,"item_index":8,"menu_item_id":3} 
[2026-03-07 14:41:56] local.ERROR: Error tracking recipe usage for order 5575: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5575, 65, 209, 1, 5000, 0.00, Order #AZS-070326-002 - 1x Chicken Reshmi Kabab (4 pcs), 2026-03-07 14:41:56, 2026-03-07 14:41:56))  
[2026-03-07 14:41:56] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5570,"new_order_id":5575,"order_number":"AZS-070326-002"} 
[2026-03-07 14:41:57] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5570,"new_order_id":5575,"order_number":"AZS-070326-002","route":"api/orders/5570"} 
[2026-03-07 14:46:54] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5576,"order_number":"AZS-070326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2500,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 14:46:53"} 
[2026-03-07 14:46:54] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5576,"order_number":"AZS-070326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 14:46:54"} 
[2026-03-07 14:46:54] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5576,"order_number":"AZS-070326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 14:46:54"} 
[2026-03-07 14:46:54] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5576,"order_number":"AZS-070326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 14:46:54"} 
[2026-03-07 14:46:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5576,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26896}],"validated_items":[{"id":26896,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:46:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5576,"items_count":1} 
[2026-03-07 14:46:54] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26896,"menu_item_id":97,"quantity":1}]} 
[2026-03-07 14:46:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5576,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["97|1|"],"new_items_map_keys":["97|1|"]} 
[2026-03-07 14:46:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5576,"order_number":"AZS-070326-010"} 
[2026-03-07 14:46:54] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5576,"order_number":"AZS-070326-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2500,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-07 14:46:54","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 14:46:54"} 
[2026-03-07 14:46:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5576,"order_number":"AZS-070326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 14:46:54"} 
[2026-03-07 14:46:54] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5576,"order_number":"AZS-070326-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2500.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-07 14:46:54","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2500.00","database_verification_match":true,"timestamp":"2026-03-07 14:46:54"} 
[2026-03-07 14:50:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5567,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null,"id":26840},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":26840,"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:50:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5567,"items_count":2} 
[2026-03-07 14:50:08] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26840,"menu_item_id":386,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-07 14:50:08] local.INFO: PosOrderController::update - Item changes check {"order_id":5567,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|","2|2|"]} 
[2026-03-07 14:50:08] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5567,"order_number":"AZS-070326-009"} 
[2026-03-07 14:50:08] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-009","replaced_order_id":5567} 
[2026-03-07 14:50:08] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5577,"items_count":2,"items":[{"menu_item_id":386,"quantity":1,"price":"2099.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-07 14:50:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5577,"item_index":0,"item_data":{"menu_item_id":386,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 01","quantity":1,"price":"2099.00","discount_percent":0.0,"discount_amount":0.0,"total":2099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5577}} 
[2026-03-07 14:50:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5577,"item_index":0,"menu_item_id":386} 
[2026-03-07 14:50:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5577,"item_index":1,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5577}} 
[2026-03-07 14:50:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5577,"item_index":1,"menu_item_id":2} 
[2026-03-07 14:50:08] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5567,"new_order_id":5577,"order_number":"AZS-070326-009"} 
[2026-03-07 14:51:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5566,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":26836},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":26837},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26838},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null,"id":26839},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":26836,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":26837,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":26838,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26839,"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:51:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5566,"items_count":5} 
[2026-03-07 14:51:54] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26836,"menu_item_id":62,"quantity":1},{"id":26837,"menu_item_id":396,"quantity":1},{"id":26838,"menu_item_id":61,"quantity":1},{"id":26839,"menu_item_id":29,"quantity":2},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-03-07 14:51:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5566,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["62|1|","396|1|","61|1|","29|2|"],"new_items_map_keys":["62|1|","396|1|","61|1|","29|2|","6|2|"]} 
[2026-03-07 14:51:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5566,"order_number":"AZS-070326-007"} 
[2026-03-07 14:51:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-007","replaced_order_id":5566} 
[2026-03-07 14:51:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5578,"items_count":5,"items":[{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":29,"quantity":2,"price":"250.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-03-07 14:51:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5578,"item_index":0,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5578}} 
[2026-03-07 14:51:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5578,"item_index":0,"menu_item_id":62} 
[2026-03-07 14:51:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5578,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5578}} 
[2026-03-07 14:51:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5578,"item_index":1,"menu_item_id":396} 
[2026-03-07 14:51:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5578,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5578}} 
[2026-03-07 14:51:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5578,"item_index":2,"menu_item_id":61} 
[2026-03-07 14:51:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5578,"item_index":3,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5578}} 
[2026-03-07 14:51:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5578,"item_index":3,"menu_item_id":29} 
[2026-03-07 14:51:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5578,"item_index":4,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5578}} 
[2026-03-07 14:51:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5578,"item_index":4,"menu_item_id":6} 
[2026-03-07 14:51:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5566,"new_order_id":5578,"order_number":"AZS-070326-007"} 
[2026-03-07 14:55:18] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5573,"order_number":"AZS-070326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":14500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 14:55:18"} 
[2026-03-07 14:55:18] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5573,"order_number":"AZS-070326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":14500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 14:55:18"} 
[2026-03-07 14:55:18] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5573,"order_number":"AZS-070326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":14500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 14:55:18"} 
[2026-03-07 14:55:18] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5573,"order_number":"AZS-070326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":14500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 14:55:18"} 
[2026-03-07 14:55:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":5573,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":2,"price":1499,"discount_percent":0,"notes":null,"id":26868},{"menu_item_id":65,"quantity":2,"price":1299,"discount_percent":0,"notes":null,"id":26869},{"menu_item_id":88,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":26870},{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26871},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26872},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":26873},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26874},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26875},{"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null,"id":26876},{"menu_item_id":400,"quantity":452,"price":1,"discount_percent":0,"notes":null,"id":26877},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":26878},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":26879}],"validated_items":[{"id":26868,"menu_item_id":62,"quantity":2,"price":1499,"discount_percent":0,"notes":null},{"id":26869,"menu_item_id":65,"quantity":2,"price":1299,"discount_percent":0,"notes":null},{"id":26870,"menu_item_id":88,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":26871,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":26872,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26873,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":26874,"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":26875,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":26876,"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null},{"id":26877,"menu_item_id":400,"quantity":452,"price":1,"discount_percent":0,"notes":null},{"id":26878,"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":26879,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-07 14:55:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5573,"items_count":12} 
[2026-03-07 14:55:18] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26868,"menu_item_id":62,"quantity":2},{"id":26869,"menu_item_id":65,"quantity":2},{"id":26870,"menu_item_id":88,"quantity":1},{"id":26871,"menu_item_id":97,"quantity":1},{"id":26872,"menu_item_id":396,"quantity":3},{"id":26873,"menu_item_id":50,"quantity":2},{"id":26874,"menu_item_id":60,"quantity":2},{"id":26875,"menu_item_id":56,"quantity":2},{"id":26876,"menu_item_id":417,"quantity":3},{"id":26877,"menu_item_id":400,"quantity":452},{"id":26878,"menu_item_id":55,"quantity":1},{"id":26879,"menu_item_id":5,"quantity":2}]} 
[2026-03-07 14:55:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5573,"has_item_changes":false,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["62|2|","65|2|","88|1|","97|1|","396|3|","50|2|","60|2|","56|2|","417|3|","400|452|","55|1|","5|2|"],"new_items_map_keys":["62|2|","65|2|","88|1|","97|1|","396|3|","50|2|","60|2|","56|2|","417|3|","400|452|","55|1|","5|2|"]} 
[2026-03-07 14:55:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5573,"order_number":"AZS-070326-004"} 
[2026-03-07 14:55:18] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5573,"order_number":"AZS-070326-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":14500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-07 14:55:18","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 14:55:18"} 
[2026-03-07 14:55:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5573,"order_number":"AZS-070326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 14:55:18"} 
[2026-03-07 14:55:18] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5573,"order_number":"AZS-070326-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"14500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-07 14:55:18","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":14500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"14500.00","database_verification_match":true,"timestamp":"2026-03-07 14:55:18"} 
[2026-03-07 15:00:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5568,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26841},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26842},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26843}],"validated_items":[{"id":26841,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":26842,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26843,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-07 15:00:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5568,"items_count":3} 
[2026-03-07 15:00:03] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26841,"menu_item_id":97,"quantity":1},{"id":26842,"menu_item_id":396,"quantity":3},{"id":26843,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 15:00:03] local.INFO: PosOrderController::update - Item changes check {"order_id":5568,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["97|1|","396|3|","3|1|"],"new_items_map_keys":["97|1|","396|3|","3|1|"]} 
[2026-03-07 15:00:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5568,"order_number":"AZS-070326-008"} 
[2026-03-07 15:00:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5568,"order_number":"AZS-070326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 15:00:03"} 
[2026-03-07 15:08:01] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5568,"order_number":"AZS-070326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3010,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 15:08:01"} 
[2026-03-07 15:08:01] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5568,"order_number":"AZS-070326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3010,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 15:08:01"} 
[2026-03-07 15:08:01] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5568,"order_number":"AZS-070326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3010,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 15:08:01"} 
[2026-03-07 15:08:01] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5568,"order_number":"AZS-070326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3010,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 15:08:01"} 
[2026-03-07 15:08:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5568,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":26841},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26842},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26843}],"validated_items":[{"id":26841,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":26842,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26843,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-07 15:08:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5568,"items_count":3} 
[2026-03-07 15:08:01] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26841,"menu_item_id":97,"quantity":1},{"id":26842,"menu_item_id":396,"quantity":3},{"id":26843,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 15:08:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5568,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["97|1|","396|3|","3|1|"],"new_items_map_keys":["97|1|","396|3|","3|1|"]} 
[2026-03-07 15:08:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5568,"order_number":"AZS-070326-008"} 
[2026-03-07 15:08:01] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5568,"order_number":"AZS-070326-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3010,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-07 15:08:01","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 15:08:01"} 
[2026-03-07 15:08:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5568,"order_number":"AZS-070326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 15:08:01"} 
[2026-03-07 15:08:01] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5568,"order_number":"AZS-070326-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3010.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-07 15:08:01","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3010,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3010.00","database_verification_match":true,"timestamp":"2026-03-07 15:08:01"} 
[2026-03-07 15:08:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5577,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":26897},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":26898}],"validated_items":[{"id":26897,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null},{"id":26898,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-07 15:08:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5577,"items_count":2} 
[2026-03-07 15:08:10] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26897,"menu_item_id":386,"quantity":1},{"id":26898,"menu_item_id":2,"quantity":2}]} 
[2026-03-07 15:08:10] local.INFO: PosOrderController::update - Item changes check {"order_id":5577,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["386|1|","2|2|"],"new_items_map_keys":["386|1|","2|2|"]} 
[2026-03-07 15:08:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5577,"order_number":"AZS-070326-009"} 
[2026-03-07 15:08:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5577,"order_number":"AZS-070326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 15:08:10"} 
[2026-03-07 15:11:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5578,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":26899},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26900},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26901},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":26902},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26903}],"validated_items":[{"id":26899,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":26900,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":26901,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26902,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":26903,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-07 15:11:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5578,"items_count":5} 
[2026-03-07 15:11:53] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26899,"menu_item_id":62,"quantity":1},{"id":26900,"menu_item_id":396,"quantity":1},{"id":26901,"menu_item_id":61,"quantity":1},{"id":26902,"menu_item_id":29,"quantity":2},{"id":26903,"menu_item_id":6,"quantity":2}]} 
[2026-03-07 15:11:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5578,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["62|1|","396|1|","61|1|","29|2|","6|2|"],"new_items_map_keys":["62|1|","396|1|","61|1|","29|2|","6|2|"]} 
[2026-03-07 15:11:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5578,"order_number":"AZS-070326-007"} 
[2026-03-07 15:11:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5578,"order_number":"AZS-070326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 15:11:53"} 
[2026-03-07 15:14:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5578,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":26899},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":26900},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26901},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null,"id":26902},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":26903},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26899,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":26900,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":26901,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26902,"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null},{"id":26903,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 15:14:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5578,"items_count":6} 
[2026-03-07 15:14:48] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26899,"menu_item_id":62,"quantity":1},{"id":26900,"menu_item_id":396,"quantity":1},{"id":26901,"menu_item_id":61,"quantity":1},{"id":26902,"menu_item_id":29,"quantity":2},{"id":26903,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-07 15:14:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5578,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["62|1|","396|1|","61|1|","29|2|","6|2|"],"new_items_map_keys":["62|1|","396|1|","61|1|","29|2|","6|2|","5|1|"]} 
[2026-03-07 15:14:48] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5578,"order_number":"AZS-070326-007"} 
[2026-03-07 15:14:48] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-007","replaced_order_id":5578} 
[2026-03-07 15:14:48] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5579,"items_count":6,"items":[{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":29,"quantity":2,"price":"250.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-07 15:14:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5579,"item_index":0,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5579}} 
[2026-03-07 15:14:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5579,"item_index":0,"menu_item_id":62} 
[2026-03-07 15:14:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5579,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5579}} 
[2026-03-07 15:14:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5579,"item_index":1,"menu_item_id":396} 
[2026-03-07 15:14:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5579,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5579}} 
[2026-03-07 15:14:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5579,"item_index":2,"menu_item_id":61} 
[2026-03-07 15:14:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5579,"item_index":3,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5579}} 
[2026-03-07 15:14:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5579,"item_index":3,"menu_item_id":29} 
[2026-03-07 15:14:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5579,"item_index":4,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5579}} 
[2026-03-07 15:14:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5579,"item_index":4,"menu_item_id":6} 
[2026-03-07 15:14:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5579,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5579}} 
[2026-03-07 15:14:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5579,"item_index":5,"menu_item_id":5} 
[2026-03-07 15:14:48] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5578,"new_order_id":5579,"order_number":"AZS-070326-007"} 
[2026-03-07 15:14:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5579,"item_index":0,"item_id":26899} 
[2026-03-07 15:14:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5579,"item_index":1,"item_id":26900} 
[2026-03-07 15:14:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5579,"item_index":2,"item_id":26901} 
[2026-03-07 15:14:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5579,"item_index":3,"item_id":26902} 
[2026-03-07 15:14:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5579,"item_index":4,"item_id":26903} 
[2026-03-07 15:14:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5579,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":26899},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26900},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26901},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":26902},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26903},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-07 15:14:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5579,"items_count":6} 
[2026-03-07 15:14:56] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[26904,26905,26906,26907,26908,26909],"items":[{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":29,"quantity":2},{"id":null,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-07 15:14:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5579,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["62|1|","396|1|","61|1|","29|2|","6|2|","5|1|"],"new_items_map_keys":["62|1|","396|1|","61|1|","29|2|","6|2|","5|1|"]} 
[2026-03-07 15:14:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5579,"order_number":"AZS-070326-007"} 
[2026-03-07 15:14:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5579,"order_number":"AZS-070326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 15:14:56"} 
[2026-03-07 15:21:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5579,"item_index":0,"item_id":26899} 
[2026-03-07 15:21:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5579,"item_index":1,"item_id":26900} 
[2026-03-07 15:21:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5579,"item_index":2,"item_id":26901} 
[2026-03-07 15:21:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5579,"item_index":3,"item_id":26902} 
[2026-03-07 15:21:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5579,"item_index":4,"item_id":26903} 
[2026-03-07 15:21:34] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5579,"order_number":"AZS-070326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3010,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 15:21:34"} 
[2026-03-07 15:21:34] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5579,"order_number":"AZS-070326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3010,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 15:21:34"} 
[2026-03-07 15:21:34] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5579,"order_number":"AZS-070326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3010,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 15:21:34"} 
[2026-03-07 15:21:34] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5579,"order_number":"AZS-070326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3010,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 15:21:34"} 
[2026-03-07 15:21:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5579,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":26899},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":26900},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26901},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":26902},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26903},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-07 15:21:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5579,"items_count":6} 
[2026-03-07 15:21:34] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[26904,26905,26906,26907,26908,26909],"items":[{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":29,"quantity":2},{"id":null,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-07 15:21:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5579,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["62|1|","396|1|","61|1|","29|2|","6|2|","5|1|"],"new_items_map_keys":["62|1|","396|1|","61|1|","29|2|","6|2|","5|1|"]} 
[2026-03-07 15:21:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5579,"order_number":"AZS-070326-007"} 
[2026-03-07 15:21:34] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5579,"order_number":"AZS-070326-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3010,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-07 15:21:34","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 15:21:34"} 
[2026-03-07 15:21:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5579,"order_number":"AZS-070326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 15:21:34"} 
[2026-03-07 15:21:34] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5579,"order_number":"AZS-070326-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3010.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-07 15:21:34","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3010,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3010.00","database_verification_match":true,"timestamp":"2026-03-07 15:21:34"} 
[2026-03-07 15:24:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5577,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null,"id":26897},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null,"id":26898},{"menu_item_id":24,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":26,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":26897,"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null},{"id":26898,"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":24,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":26,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-07 15:24:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5577,"items_count":4} 
[2026-03-07 15:24:57] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26897,"menu_item_id":386,"quantity":1},{"id":26898,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":24,"quantity":1},{"id":null,"menu_item_id":26,"quantity":3}]} 
[2026-03-07 15:24:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5577,"has_item_changes":true,"old_items_count":2,"new_items_count":4,"old_items_map_keys":["386|1|","2|2|"],"new_items_map_keys":["386|1|","2|2|","24|1|","26|3|"]} 
[2026-03-07 15:24:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5577,"order_number":"AZS-070326-009"} 
[2026-03-07 15:24:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-009","replaced_order_id":5577} 
[2026-03-07 15:24:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5580,"items_count":4,"items":[{"menu_item_id":386,"quantity":1,"price":"2099.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"},{"menu_item_id":24,"quantity":1,"price":"249.00"},{"menu_item_id":26,"quantity":3,"price":"249.00"}]} 
[2026-03-07 15:24:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5580,"item_index":0,"item_data":{"menu_item_id":386,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 01","quantity":1,"price":"2099.00","discount_percent":0.0,"discount_amount":0.0,"total":2099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5580}} 
[2026-03-07 15:24:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5580,"item_index":0,"menu_item_id":386} 
[2026-03-07 15:24:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5580,"item_index":1,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5580}} 
[2026-03-07 15:24:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5580,"item_index":1,"menu_item_id":2} 
[2026-03-07 15:24:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5580,"item_index":2,"item_data":{"menu_item_id":24,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Mango","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5580}} 
[2026-03-07 15:24:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5580,"item_index":2,"menu_item_id":24} 
[2026-03-07 15:24:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5580,"item_index":3,"item_data":{"menu_item_id":26,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Chocolate","quantity":3,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5580}} 
[2026-03-07 15:24:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5580,"item_index":3,"menu_item_id":26} 
[2026-03-07 15:24:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5577,"new_order_id":5580,"order_number":"AZS-070326-009"} 
[2026-03-07 15:27:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5580,"item_index":0,"item_id":26897} 
[2026-03-07 15:27:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5580,"item_index":1,"item_id":26898} 
[2026-03-07 15:27:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5580,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":26897},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":26898},{"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":26,"quantity":3,"price":249,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":26,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-07 15:27:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5580,"items_count":4} 
[2026-03-07 15:27:29] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[26910,26911,26912,26913],"items":[{"id":null,"menu_item_id":386,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":24,"quantity":1},{"id":null,"menu_item_id":26,"quantity":3}]} 
[2026-03-07 15:27:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5580,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["386|1|","2|2|","24|1|","26|3|"],"new_items_map_keys":["386|1|","2|2|","24|1|","26|3|"]} 
[2026-03-07 15:27:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5580,"order_number":"AZS-070326-009"} 
[2026-03-07 15:27:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5580,"order_number":"AZS-070326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 15:27:29"} 
[2026-03-07 16:13:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5583,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":26923},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26923,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 16:13:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5583,"items_count":2} 
[2026-03-07 16:13:49] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26923,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-07 16:13:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5583,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|","4|1|"]} 
[2026-03-07 16:13:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5583,"order_number":"AZS-070326-013"} 
[2026-03-07 16:13:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-013","replaced_order_id":5583} 
[2026-03-07 16:13:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5584,"items_count":2,"items":[{"menu_item_id":6,"quantity":2,"price":"199.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-03-07 16:13:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5584,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5584}} 
[2026-03-07 16:13:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5584,"item_index":0,"menu_item_id":6} 
[2026-03-07 16:13:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5584,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5584}} 
[2026-03-07 16:13:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5584,"item_index":1,"menu_item_id":4} 
[2026-03-07 16:13:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5583,"new_order_id":5584,"order_number":"AZS-070326-013"} 
[2026-03-07 16:29:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T04:28:57.497Z","date_to":"2026-03-07T16:28:57.497Z","per_page":"100"} 
[2026-03-07 16:29:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","changed","pending","pending","paid","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":19,"paid_count":8,"unpaid_count":5,"unique_order_numbers":13} 
[2026-03-07 16:29:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T04:28:57.505Z","date_to":"2026-03-07T16:28:57.505Z","per_page":"100"} 
[2026-03-07 16:29:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","changed","pending","pending","paid","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":19,"paid_count":8,"unpaid_count":5,"unique_order_numbers":13} 
[2026-03-07 16:29:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T04:28:57.497Z","date_to":"2026-03-07T16:28:57.497Z","per_page":"100"} 
[2026-03-07 16:29:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","changed","pending","pending","paid","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":19,"paid_count":8,"unpaid_count":5,"unique_order_numbers":13} 
[2026-03-07 16:29:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5580,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":26910},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":26911},{"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":26912},{"menu_item_id":26,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":26913}],"validated_items":[{"id":26910,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null},{"id":26911,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":26912,"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":26913,"menu_item_id":26,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-07 16:29:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5580,"items_count":4} 
[2026-03-07 16:29:37] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26910,"menu_item_id":386,"quantity":1},{"id":26911,"menu_item_id":2,"quantity":2},{"id":26912,"menu_item_id":24,"quantity":1},{"id":26913,"menu_item_id":26,"quantity":3}]} 
[2026-03-07 16:29:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5580,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["386|1|","2|2|","24|1|","26|3|"],"new_items_map_keys":["386|1|","2|2|","24|1|","26|3|"]} 
[2026-03-07 16:29:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5580,"order_number":"AZS-070326-009"} 
[2026-03-07 16:29:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5580,"order_number":"AZS-070326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 16:29:37"} 
[2026-03-07 16:30:39] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5580,"order_number":"AZS-070326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 16:30:39"} 
[2026-03-07 16:30:39] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5580,"order_number":"AZS-070326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 16:30:39"} 
[2026-03-07 16:30:39] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5580,"order_number":"AZS-070326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 16:30:39"} 
[2026-03-07 16:30:39] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5580,"order_number":"AZS-070326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 16:30:39"} 
[2026-03-07 16:30:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5580,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":26910},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":26911},{"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":26912},{"menu_item_id":26,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":26913}],"validated_items":[{"id":26910,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null},{"id":26911,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":26912,"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":26913,"menu_item_id":26,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-07 16:30:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5580,"items_count":4} 
[2026-03-07 16:30:39] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26910,"menu_item_id":386,"quantity":1},{"id":26911,"menu_item_id":2,"quantity":2},{"id":26912,"menu_item_id":24,"quantity":1},{"id":26913,"menu_item_id":26,"quantity":3}]} 
[2026-03-07 16:30:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5580,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["386|1|","2|2|","24|1|","26|3|"],"new_items_map_keys":["386|1|","2|2|","24|1|","26|3|"]} 
[2026-03-07 16:30:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5580,"order_number":"AZS-070326-009"} 
[2026-03-07 16:30:39] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5580,"order_number":"AZS-070326-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-07 16:30:39","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 16:30:39"} 
[2026-03-07 16:30:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5580,"order_number":"AZS-070326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 16:30:39"} 
[2026-03-07 16:30:39] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5580,"order_number":"AZS-070326-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-07 16:30:39","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4000.00","database_verification_match":true,"timestamp":"2026-03-07 16:30:39"} 
[2026-03-07 16:32:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5581,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":54,"quantity":3,"discount_percent":0,"notes":null,"id":26914},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":26915},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26916},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":26914,"menu_item_id":54,"quantity":3,"discount_percent":0,"notes":null},{"id":26915,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":26916,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-07 16:32:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5581,"items_count":4} 
[2026-03-07 16:32:56] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26914,"menu_item_id":54,"quantity":3},{"id":26915,"menu_item_id":96,"quantity":1},{"id":26916,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-07 16:32:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5581,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["54|2|","96|1|","61|1|"],"new_items_map_keys":["54|3|","96|1|","61|1|","2|2|"]} 
[2026-03-07 16:32:56] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5581,"order_number":"AZS-070326-011"} 
[2026-03-07 16:32:56] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-011","replaced_order_id":5581} 
[2026-03-07 16:32:56] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5585,"items_count":4,"items":[{"menu_item_id":54,"quantity":3,"price":"159.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-07 16:32:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5585,"item_index":0,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":3,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":477.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5585}} 
[2026-03-07 16:32:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5585,"item_index":0,"menu_item_id":54} 
[2026-03-07 16:32:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5585,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5585}} 
[2026-03-07 16:32:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5585,"item_index":1,"menu_item_id":96} 
[2026-03-07 16:32:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5585,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5585}} 
[2026-03-07 16:32:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5585,"item_index":2,"menu_item_id":61} 
[2026-03-07 16:32:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5585,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5585}} 
[2026-03-07 16:32:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5585,"item_index":3,"menu_item_id":2} 
[2026-03-07 16:32:56] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5581,"new_order_id":5585,"order_number":"AZS-070326-011"} 
[2026-03-07 16:50:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5585,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":54,"quantity":3,"price":159,"discount_percent":0,"notes":null,"id":26926},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26927},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26928},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":26929}],"validated_items":[{"id":26926,"menu_item_id":54,"quantity":3,"price":159,"discount_percent":0,"notes":null},{"id":26927,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26928,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26929,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-07 16:50:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5585,"items_count":4} 
[2026-03-07 16:50:45] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26926,"menu_item_id":54,"quantity":3},{"id":26927,"menu_item_id":96,"quantity":1},{"id":26928,"menu_item_id":61,"quantity":1},{"id":26929,"menu_item_id":2,"quantity":2}]} 
[2026-03-07 16:50:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5585,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["54|3|","96|1|","61|1|","2|2|"],"new_items_map_keys":["54|3|","96|1|","61|1|","2|2|"]} 
[2026-03-07 16:50:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5585,"order_number":"AZS-070326-011"} 
[2026-03-07 16:50:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5585,"order_number":"AZS-070326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 16:50:45"} 
[2026-03-07 16:58:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5582,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null,"id":26917},{"menu_item_id":52,"quantity":8,"discount_percent":0,"notes":null,"id":26918},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26919},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26920},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26921},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":26922}],"validated_items":[{"id":26917,"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null},{"id":26918,"menu_item_id":52,"quantity":8,"discount_percent":0,"notes":null},{"id":26919,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26920,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26921,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":26922,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 16:58:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5582,"items_count":6} 
[2026-03-07 16:58:42] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26917,"menu_item_id":103,"quantity":1},{"id":26918,"menu_item_id":52,"quantity":8},{"id":26919,"menu_item_id":61,"quantity":1},{"id":26920,"menu_item_id":56,"quantity":1},{"id":26921,"menu_item_id":5,"quantity":1},{"id":26922,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 16:58:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5582,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["103|1|","52|5|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["103|1|","52|8|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-03-07 16:58:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5582,"order_number":"AZS-070326-012"} 
[2026-03-07 16:58:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-012","replaced_order_id":5582} 
[2026-03-07 16:58:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5586,"items_count":6,"items":[{"menu_item_id":103,"quantity":1,"price":"2599.00"},{"menu_item_id":52,"quantity":8,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-07 16:58:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5586,"item_index":0,"item_data":{"menu_item_id":103,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Full","quantity":1,"price":"2599.00","discount_percent":0.0,"discount_amount":0.0,"total":2599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5586}} 
[2026-03-07 16:58:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5586,"item_index":0,"menu_item_id":103} 
[2026-03-07 16:58:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5586,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":8,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":560.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5586}} 
[2026-03-07 16:58:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5586,"item_index":1,"menu_item_id":52} 
[2026-03-07 16:58:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5586,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5586}} 
[2026-03-07 16:58:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5586,"item_index":2,"menu_item_id":61} 
[2026-03-07 16:58:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5586,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5586}} 
[2026-03-07 16:58:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5586,"item_index":3,"menu_item_id":56} 
[2026-03-07 16:58:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5586,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5586}} 
[2026-03-07 16:58:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5586,"item_index":4,"menu_item_id":5} 
[2026-03-07 16:58:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5586,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5586}} 
[2026-03-07 16:58:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5586,"item_index":5,"menu_item_id":3} 
[2026-03-07 16:58:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5582,"new_order_id":5586,"order_number":"AZS-070326-012"} 
[2026-03-07 16:58:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5586,"item_index":0,"item_id":26917} 
[2026-03-07 16:58:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5586,"item_index":1,"item_id":26918} 
[2026-03-07 16:58:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5586,"item_index":2,"item_id":26919} 
[2026-03-07 16:58:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5586,"item_index":3,"item_id":26920} 
[2026-03-07 16:58:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5586,"item_index":4,"item_id":26922} 
[2026-03-07 16:58:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":6,"order_id":5586,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null,"id":26917},{"menu_item_id":52,"quantity":8,"discount_percent":0,"notes":null,"id":26918},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26919},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26920},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":26922}],"validated_items":[{"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":8,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 16:58:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5586,"items_count":5} 
[2026-03-07 16:58:49] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":6,"items_to_remove":[26930,26931,26932,26933,26934,26935],"items":[{"id":null,"menu_item_id":103,"quantity":1},{"id":null,"menu_item_id":52,"quantity":8},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 16:58:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5586,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["103|1|","52|8|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["103|1|","52|8|","61|1|","56|1|","3|1|"]} 
[2026-03-07 16:58:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5586,"order_number":"AZS-070326-012"} 
[2026-03-07 16:58:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-012","replaced_order_id":5586} 
[2026-03-07 16:58:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5587,"items_count":5,"items":[{"menu_item_id":103,"quantity":1,"price":"2599.00"},{"menu_item_id":52,"quantity":8,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-07 16:58:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5587,"item_index":0,"item_data":{"menu_item_id":103,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Full","quantity":1,"price":"2599.00","discount_percent":0.0,"discount_amount":0.0,"total":2599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5587}} 
[2026-03-07 16:58:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5587,"item_index":0,"menu_item_id":103} 
[2026-03-07 16:58:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5587,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":8,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":560.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5587}} 
[2026-03-07 16:58:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5587,"item_index":1,"menu_item_id":52} 
[2026-03-07 16:58:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5587,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5587}} 
[2026-03-07 16:58:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5587,"item_index":2,"menu_item_id":61} 
[2026-03-07 16:58:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5587,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5587}} 
[2026-03-07 16:58:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5587,"item_index":3,"menu_item_id":56} 
[2026-03-07 16:58:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5587,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5587}} 
[2026-03-07 16:58:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5587,"item_index":4,"menu_item_id":3} 
[2026-03-07 16:58:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5586,"new_order_id":5587,"order_number":"AZS-070326-012"} 
[2026-03-07 16:58:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5587,"item_index":0,"item_id":26917} 
[2026-03-07 16:58:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5587,"item_index":1,"item_id":26918} 
[2026-03-07 16:58:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5587,"item_index":2,"item_id":26919} 
[2026-03-07 16:58:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5587,"item_index":3,"item_id":26920} 
[2026-03-07 16:58:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5587,"item_index":4,"item_id":26922} 
[2026-03-07 16:58:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5587,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null,"id":26917},{"menu_item_id":52,"quantity":8,"price":70,"discount_percent":0,"notes":null,"id":26918},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26919},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26920},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26922}],"validated_items":[{"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":8,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-07 16:58:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5587,"items_count":5} 
[2026-03-07 16:58:54] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[26936,26937,26938,26939,26940],"items":[{"id":null,"menu_item_id":103,"quantity":1},{"id":null,"menu_item_id":52,"quantity":8},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 16:58:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5587,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["103|1|","52|8|","61|1|","56|1|","3|1|"],"new_items_map_keys":["103|1|","52|8|","61|1|","56|1|","3|1|"]} 
[2026-03-07 16:58:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5587,"order_number":"AZS-070326-012"} 
[2026-03-07 16:58:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5587,"order_number":"AZS-070326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 16:58:54"} 
[2026-03-07 16:59:48] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5585,"order_number":"AZS-070326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2250,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 16:59:48"} 
[2026-03-07 16:59:48] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5585,"order_number":"AZS-070326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2250,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 16:59:48"} 
[2026-03-07 16:59:48] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5585,"order_number":"AZS-070326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2250,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 16:59:48"} 
[2026-03-07 16:59:48] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5585,"order_number":"AZS-070326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2250,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 16:59:48"} 
[2026-03-07 16:59:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5585,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":54,"quantity":3,"price":159,"discount_percent":0,"notes":null,"id":26926},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26927},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26928},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":26929}],"validated_items":[{"id":26926,"menu_item_id":54,"quantity":3,"price":159,"discount_percent":0,"notes":null},{"id":26927,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26928,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26929,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-07 16:59:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5585,"items_count":4} 
[2026-03-07 16:59:48] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26926,"menu_item_id":54,"quantity":3},{"id":26927,"menu_item_id":96,"quantity":1},{"id":26928,"menu_item_id":61,"quantity":1},{"id":26929,"menu_item_id":2,"quantity":2}]} 
[2026-03-07 16:59:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5585,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["54|3|","96|1|","61|1|","2|2|"],"new_items_map_keys":["54|3|","96|1|","61|1|","2|2|"]} 
[2026-03-07 16:59:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5585,"order_number":"AZS-070326-011"} 
[2026-03-07 16:59:48] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5585,"order_number":"AZS-070326-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2250,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-07 16:59:48","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 16:59:48"} 
[2026-03-07 16:59:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5585,"order_number":"AZS-070326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 16:59:48"} 
[2026-03-07 16:59:48] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5585,"order_number":"AZS-070326-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2250.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-07 16:59:48","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2250,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2250.00","database_verification_match":true,"timestamp":"2026-03-07 16:59:48"} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":1,"order_id":5589,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null,"id":26942},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":26944},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26945},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26946},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26947},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":26948},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26942,"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null},{"id":26944,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":26945,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26946,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26947,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":26948,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5589,"items_count":9} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":1,"items_to_remove":[26943],"items":[{"id":26942,"menu_item_id":85,"quantity":1},{"id":26944,"menu_item_id":396,"quantity":4},{"id":26945,"menu_item_id":61,"quantity":1},{"id":26946,"menu_item_id":56,"quantity":1},{"id":26947,"menu_item_id":5,"quantity":1},{"id":26948,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1}]} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Item changes check {"order_id":5589,"has_item_changes":true,"old_items_count":7,"new_items_count":9,"old_items_map_keys":["85|1|","99|1|","396|4|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["85|1|","396|4|","61|1|","56|1|","5|1|","3|1|","105|1|","98|1|","62|1|"]} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5589,"order_number":"AZS-070326-015"} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-015","replaced_order_id":5589} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5590,"items_count":9,"items":[{"menu_item_id":85,"quantity":1,"price":"699.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"}]} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5590,"item_index":0,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":1,"price":"699.00","discount_percent":0.0,"discount_amount":0.0,"total":699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5590}} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5590,"item_index":0,"menu_item_id":85} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5590,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5590}} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5590,"item_index":1,"menu_item_id":396} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5590,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5590}} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5590,"item_index":2,"menu_item_id":61} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5590,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5590}} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5590,"item_index":3,"menu_item_id":56} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5590,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5590}} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5590,"item_index":4,"menu_item_id":5} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5590,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5590}} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5590,"item_index":5,"menu_item_id":3} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5590,"item_index":6,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5590}} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5590,"item_index":6,"menu_item_id":105} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5590,"item_index":7,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5590}} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5590,"item_index":7,"menu_item_id":98} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5590,"item_index":8,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5590}} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5590,"item_index":8,"menu_item_id":62} 
[2026-03-07 17:10:02] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5589,"new_order_id":5590,"order_number":"AZS-070326-015"} 
[2026-03-07 17:10:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5590,"item_index":0,"item_id":26942} 
[2026-03-07 17:10:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5590,"item_index":1,"item_id":26944} 
[2026-03-07 17:10:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5590,"item_index":2,"item_id":26945} 
[2026-03-07 17:10:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5590,"item_index":3,"item_id":26946} 
[2026-03-07 17:10:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5590,"item_index":4,"item_id":26947} 
[2026-03-07 17:10:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5590,"item_index":5,"item_id":26948} 
[2026-03-07 17:10:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":9,"order_id":5590,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null,"id":26942},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":26944},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26945},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26946},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26947},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":26948},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 17:10:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5590,"items_count":9} 
[2026-03-07 17:10:06] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":9,"items_to_remove":[26949,26950,26951,26952,26953,26954,26955,26956,26957],"items":[{"id":null,"menu_item_id":85,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1}]} 
[2026-03-07 17:10:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5590,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["85|1|","396|4|","61|1|","56|1|","5|1|","3|1|","105|1|","98|1|","62|1|"],"new_items_map_keys":["85|1|","396|4|","61|1|","56|1|","5|1|","3|1|","105|1|","98|1|","62|1|"]} 
[2026-03-07 17:10:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5590,"order_number":"AZS-070326-015"} 
[2026-03-07 17:10:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5590,"order_number":"AZS-070326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-07 17:10:06"} 
[2026-03-07 17:17:48] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5587,"order_number":"AZS-070326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4200,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 17:17:48"} 
[2026-03-07 17:17:48] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5587,"order_number":"AZS-070326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 17:17:48"} 
[2026-03-07 17:17:48] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5587,"order_number":"AZS-070326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4200,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 17:17:48"} 
[2026-03-07 17:17:48] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5587,"order_number":"AZS-070326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4200,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 17:17:48"} 
[2026-03-07 17:17:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5587,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null,"id":26936},{"menu_item_id":52,"quantity":8,"price":70,"discount_percent":0,"notes":null,"id":26937},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26938},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26939},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26940}],"validated_items":[{"id":26936,"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null},{"id":26937,"menu_item_id":52,"quantity":8,"price":70,"discount_percent":0,"notes":null},{"id":26938,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26939,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26940,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-07 17:17:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5587,"items_count":5} 
[2026-03-07 17:17:48] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26936,"menu_item_id":103,"quantity":1},{"id":26937,"menu_item_id":52,"quantity":8},{"id":26938,"menu_item_id":61,"quantity":1},{"id":26939,"menu_item_id":56,"quantity":1},{"id":26940,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 17:17:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5587,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["103|1|","52|8|","61|1|","56|1|","3|1|"],"new_items_map_keys":["103|1|","52|8|","61|1|","56|1|","3|1|"]} 
[2026-03-07 17:17:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5587,"order_number":"AZS-070326-012"} 
[2026-03-07 17:17:48] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5587,"order_number":"AZS-070326-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4200,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-07 17:17:48","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 17:17:48"} 
[2026-03-07 17:17:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5587,"order_number":"AZS-070326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 17:17:48"} 
[2026-03-07 17:17:48] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5587,"order_number":"AZS-070326-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4200.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-07 17:17:48","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4200.00","database_verification_match":true,"timestamp":"2026-03-07 17:17:48"} 
[2026-03-07 17:20:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5558,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null,"id":26789},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":26790}],"validated_items":[{"id":26789,"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null},{"id":26790,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 17:20:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5558,"items_count":2} 
[2026-03-07 17:20:17] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26789,"menu_item_id":393,"quantity":1},{"id":26790,"menu_item_id":137,"quantity":1}]} 
[2026-03-07 17:20:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5558,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["393|1|","137|1|"],"new_items_map_keys":["393|1|","137|1|"]} 
[2026-03-07 17:20:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5558,"order_number":"AZS-070326-005"} 
[2026-03-07 17:20:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5558,"order_number":"AZS-070326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-07 17:20:17"} 
[2026-03-07 17:20:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5590,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null,"id":26949},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":26950},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26951},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26952},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26953},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":26954},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":26955},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":26956},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":26957}],"validated_items":[{"id":26949,"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null},{"id":26950,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":26951,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26952,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26953,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":26954,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"id":26955,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":26956,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":26957,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 17:20:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5590,"items_count":9} 
[2026-03-07 17:20:26] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26949,"menu_item_id":85,"quantity":1},{"id":26950,"menu_item_id":396,"quantity":4},{"id":26951,"menu_item_id":61,"quantity":1},{"id":26952,"menu_item_id":56,"quantity":1},{"id":26953,"menu_item_id":5,"quantity":1},{"id":26954,"menu_item_id":3,"quantity":1},{"id":26955,"menu_item_id":105,"quantity":1},{"id":26956,"menu_item_id":98,"quantity":1},{"id":26957,"menu_item_id":62,"quantity":1}]} 
[2026-03-07 17:20:26] local.INFO: PosOrderController::update - Item changes check {"order_id":5590,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["85|1|","396|4|","61|1|","56|1|","5|1|","3|1|","105|1|","98|1|","62|1|"],"new_items_map_keys":["85|1|","396|4|","61|1|","56|1|","5|1|","3|1|","105|1|","98|1|","62|1|"]} 
[2026-03-07 17:20:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5590,"order_number":"AZS-070326-015"} 
[2026-03-07 17:20:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5590,"order_number":"AZS-070326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-07 17:20:26"} 
[2026-03-07 17:39:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5591,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26958}],"validated_items":[{"id":26958,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-07 17:39:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5591,"items_count":1} 
[2026-03-07 17:39:27] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26958,"menu_item_id":6,"quantity":2}]} 
[2026-03-07 17:39:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5591,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-07 17:39:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5591,"order_number":"AZS-070326-016"} 
[2026-03-07 17:39:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5591,"order_number":"AZS-070326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 17:39:27"} 
[2026-03-07 17:42:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T05:42:49.624Z","date_to":"2026-03-07T17:42:49.624Z","per_page":"100"} 
[2026-03-07 17:42:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","pending","changed","pending","pending","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":23,"paid_count":11,"unpaid_count":5,"unique_order_numbers":16} 
[2026-03-07 17:42:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T05:42:49.605Z","date_to":"2026-03-07T17:42:49.605Z","per_page":"100"} 
[2026-03-07 17:42:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","pending","changed","pending","pending","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":23,"paid_count":11,"unpaid_count":5,"unique_order_numbers":16} 
[2026-03-07 17:43:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T05:42:49.605Z","date_to":"2026-03-07T17:42:49.605Z","per_page":"100"} 
[2026-03-07 17:43:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","pending","changed","pending","pending","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":23,"paid_count":11,"unpaid_count":5,"unique_order_numbers":16} 
[2026-03-07 17:47:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T05:47:38.076Z","date_to":"2026-03-07T17:47:38.076Z","per_page":"100"} 
[2026-03-07 17:47:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T05:47:38.053Z","date_to":"2026-03-07T17:47:38.053Z","per_page":"100"} 
[2026-03-07 17:47:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","pending","changed","pending","pending","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":23,"paid_count":11,"unpaid_count":5,"unique_order_numbers":16} 
[2026-03-07 17:47:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","pending","changed","pending","pending","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":23,"paid_count":11,"unpaid_count":5,"unique_order_numbers":16} 
[2026-03-07 17:47:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T05:47:38.053Z","date_to":"2026-03-07T17:47:38.053Z","per_page":"100"} 
[2026-03-07 17:47:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","pending","changed","pending","pending","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":23,"paid_count":11,"unpaid_count":5,"unique_order_numbers":16} 
[2026-03-07 17:49:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5588,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26941}],"validated_items":[{"id":26941,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-07 17:49:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5588,"items_count":1} 
[2026-03-07 17:49:41] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26941,"menu_item_id":6,"quantity":2}]} 
[2026-03-07 17:49:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5588,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-07 17:49:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5588,"order_number":"AZS-070326-014"} 
[2026-03-07 17:49:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5588,"order_number":"AZS-070326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 17:49:41"} 
[2026-03-07 17:58:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5588,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26941}],"validated_items":[{"id":26941,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-07 17:58:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5588,"items_count":1} 
[2026-03-07 17:58:29] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26941,"menu_item_id":6,"quantity":2}]} 
[2026-03-07 17:58:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5588,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-07 17:58:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5588,"order_number":"AZS-070326-014"} 
[2026-03-07 17:58:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5588,"order_number":"AZS-070326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 17:58:29"} 
[2026-03-07 17:59:01] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5588,"order_number":"AZS-070326-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":210,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 17:59:01"} 
[2026-03-07 17:59:01] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5588,"order_number":"AZS-070326-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":210,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 17:59:01"} 
[2026-03-07 17:59:01] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5588,"order_number":"AZS-070326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":210,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 17:59:01"} 
[2026-03-07 17:59:01] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5588,"order_number":"AZS-070326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":210,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 17:59:01"} 
[2026-03-07 17:59:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5588,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26941}],"validated_items":[{"id":26941,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-07 17:59:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5588,"items_count":1} 
[2026-03-07 17:59:01] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26941,"menu_item_id":6,"quantity":1}]} 
[2026-03-07 17:59:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5588,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|1|"]} 
[2026-03-07 17:59:01] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5588,"order_number":"AZS-070326-014","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":210,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-07 17:59:01","original_payment_amount":"0.00","grand_total":209.0,"timestamp":"2026-03-07 17:59:01"} 
[2026-03-07 17:59:01] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5588,"order_number":"AZS-070326-014"} 
[2026-03-07 17:59:01] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-014","replaced_order_id":5588} 
[2026-03-07 17:59:01] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5588,"new_order_id":5593,"order_number":"AZS-070326-014","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"210.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-07 17:59:01","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":210,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-07 17:59:01"} 
[2026-03-07 17:59:01] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5593,"items_count":1,"items":[{"menu_item_id":6,"quantity":1,"price":199.0}]} 
[2026-03-07 17:59:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5593,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5593}} 
[2026-03-07 17:59:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5593,"item_index":0,"menu_item_id":6} 
[2026-03-07 17:59:01] local.ERROR: Error tracking recipe usage for order 5593: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5593, 6, 177, 1, 333, 0.00, Order #AZS-070326-014 - 1x Karak Tea, 2026-03-07 17:59:01, 2026-03-07 17:59:01))  
[2026-03-07 17:59:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5588,"new_order_id":5593,"order_number":"AZS-070326-014"} 
[2026-03-07 17:59:01] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5588,"new_order_id":5593,"order_number":"AZS-070326-014","route":"api/orders/5588"} 
[2026-03-07 17:59:38] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5584,"order_number":"AZS-070326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":488,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 17:59:38"} 
[2026-03-07 17:59:38] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5584,"order_number":"AZS-070326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":488,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 17:59:38"} 
[2026-03-07 17:59:38] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5584,"order_number":"AZS-070326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":488,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 17:59:38"} 
[2026-03-07 17:59:38] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5584,"order_number":"AZS-070326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":488,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 17:59:38"} 
[2026-03-07 17:59:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5584,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26924},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":26925}],"validated_items":[{"id":26924,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":26925,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-07 17:59:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5584,"items_count":2} 
[2026-03-07 17:59:38] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26924,"menu_item_id":6,"quantity":2},{"id":26925,"menu_item_id":4,"quantity":1}]} 
[2026-03-07 17:59:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5584,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|2|","4|1|"],"new_items_map_keys":["6|2|","4|1|"]} 
[2026-03-07 17:59:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5584,"order_number":"AZS-070326-013"} 
[2026-03-07 17:59:38] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5584,"order_number":"AZS-070326-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":488,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-07 17:59:38","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 17:59:38"} 
[2026-03-07 17:59:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5584,"order_number":"AZS-070326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 17:59:38"} 
[2026-03-07 17:59:38] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5584,"order_number":"AZS-070326-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"488.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-07 17:59:38","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":488,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"488.00","database_verification_match":true,"timestamp":"2026-03-07 17:59:38"} 
[2026-03-07 17:59:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5591,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":26958}],"validated_items":[{"id":26958,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-07 17:59:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5591,"items_count":1} 
[2026-03-07 17:59:47] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26958,"menu_item_id":6,"quantity":2}]} 
[2026-03-07 17:59:47] local.INFO: PosOrderController::update - Item changes check {"order_id":5591,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-07 17:59:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5591,"order_number":"AZS-070326-016"} 
[2026-03-07 17:59:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5591,"order_number":"AZS-070326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 17:59:47"} 
[2026-03-07 18:00:14] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5591,"order_number":"AZS-070326-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":210,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 18:00:14"} 
[2026-03-07 18:00:14] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5591,"order_number":"AZS-070326-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":210,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 18:00:14"} 
[2026-03-07 18:00:14] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5591,"order_number":"AZS-070326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":210,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 18:00:14"} 
[2026-03-07 18:00:14] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5591,"order_number":"AZS-070326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":210,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 18:00:14"} 
[2026-03-07 18:00:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5591,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26958}],"validated_items":[{"id":26958,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-07 18:00:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5591,"items_count":1} 
[2026-03-07 18:00:14] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26958,"menu_item_id":6,"quantity":1}]} 
[2026-03-07 18:00:14] local.INFO: PosOrderController::update - Item changes check {"order_id":5591,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|1|"]} 
[2026-03-07 18:00:14] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5591,"order_number":"AZS-070326-016","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":210,"new_order_data_payment_mode":"online","new_order_data_paid_at":"2026-03-07 18:00:14","original_payment_amount":"0.00","grand_total":209.0,"timestamp":"2026-03-07 18:00:14"} 
[2026-03-07 18:00:14] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5591,"order_number":"AZS-070326-016"} 
[2026-03-07 18:00:14] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-016","replaced_order_id":5591} 
[2026-03-07 18:00:14] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5591,"new_order_id":5594,"order_number":"AZS-070326-016","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"210.00","payment_mode_after_creation":"online","paid_at_after_creation":"2026-03-07 18:00:14","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":210,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-07 18:00:14"} 
[2026-03-07 18:00:14] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5594,"items_count":1,"items":[{"menu_item_id":6,"quantity":1,"price":199.0}]} 
[2026-03-07 18:00:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5594,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5594}} 
[2026-03-07 18:00:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5594,"item_index":0,"menu_item_id":6} 
[2026-03-07 18:00:14] local.ERROR: Error tracking recipe usage for order 5594: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5594, 6, 177, 1, 333, 0.00, Order #AZS-070326-016 - 1x Karak Tea, 2026-03-07 18:00:14, 2026-03-07 18:00:14))  
[2026-03-07 18:00:14] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5591,"new_order_id":5594,"order_number":"AZS-070326-016"} 
[2026-03-07 18:00:15] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5591,"new_order_id":5594,"order_number":"AZS-070326-016","route":"api/orders/5591"} 
[2026-03-07 18:08:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5590,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":26949},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":26950},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26951},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26952},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26953},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26954},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26955},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26956},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":26957}],"validated_items":[{"id":26949,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":26950,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":26951,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26952,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26953,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26954,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":26955,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26956,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26957,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null}]} 
[2026-03-07 18:08:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5590,"items_count":9} 
[2026-03-07 18:08:48] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26949,"menu_item_id":85,"quantity":1},{"id":26950,"menu_item_id":396,"quantity":4},{"id":26951,"menu_item_id":61,"quantity":1},{"id":26952,"menu_item_id":56,"quantity":1},{"id":26953,"menu_item_id":5,"quantity":1},{"id":26954,"menu_item_id":3,"quantity":1},{"id":26955,"menu_item_id":105,"quantity":1},{"id":26956,"menu_item_id":98,"quantity":1},{"id":26957,"menu_item_id":62,"quantity":1}]} 
[2026-03-07 18:08:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5590,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["85|1|","396|4|","61|1|","56|1|","5|1|","3|1|","105|1|","98|1|","62|1|"],"new_items_map_keys":["85|1|","396|4|","61|1|","56|1|","5|1|","3|1|","105|1|","98|1|","62|1|"]} 
[2026-03-07 18:08:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5590,"order_number":"AZS-070326-015"} 
[2026-03-07 18:08:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5590,"order_number":"AZS-070326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 18:08:48"} 
[2026-03-07 18:10:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5592,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null,"id":26959},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":26960},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":26959,"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null},{"id":26960,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-07 18:10:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5592,"items_count":3} 
[2026-03-07 18:10:46] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26959,"menu_item_id":163,"quantity":2},{"id":26960,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-07 18:10:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5592,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["163|2|","6|2|"],"new_items_map_keys":["163|2|","6|2|","2|2|"]} 
[2026-03-07 18:10:46] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5592,"order_number":"AZS-070326-017"} 
[2026-03-07 18:10:46] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-017","replaced_order_id":5592} 
[2026-03-07 18:10:46] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5595,"items_count":3,"items":[{"menu_item_id":163,"quantity":2,"price":"1050.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-07 18:10:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5595,"item_index":0,"item_data":{"menu_item_id":163,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Azan Special Sandwich","quantity":2,"price":"1050.00","discount_percent":0.0,"discount_amount":0.0,"total":2100.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5595}} 
[2026-03-07 18:10:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5595,"item_index":0,"menu_item_id":163} 
[2026-03-07 18:10:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5595,"item_index":1,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5595}} 
[2026-03-07 18:10:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5595,"item_index":1,"menu_item_id":6} 
[2026-03-07 18:10:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5595,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5595}} 
[2026-03-07 18:10:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5595,"item_index":2,"menu_item_id":2} 
[2026-03-07 18:10:46] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5592,"new_order_id":5595,"order_number":"AZS-070326-017"} 
[2026-03-07 18:20:46] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T06:20:44.522Z","date_to":"2026-03-07T18:20:44.522Z","per_page":"100"} 
[2026-03-07 18:20:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":43,"count":43,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","changed","paid","changed","pending","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":26,"paid_count":14,"unpaid_count":3,"unique_order_numbers":17} 
[2026-03-07 18:20:46] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T06:20:44.507Z","date_to":"2026-03-07T18:20:44.507Z","per_page":"100"} 
[2026-03-07 18:20:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":43,"count":43,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","changed","paid","changed","pending","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":26,"paid_count":14,"unpaid_count":3,"unique_order_numbers":17} 
[2026-03-07 18:20:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T06:20:44.507Z","date_to":"2026-03-07T18:20:44.507Z","per_page":"100"} 
[2026-03-07 18:20:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":43,"count":43,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","changed","paid","changed","pending","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":26,"paid_count":14,"unpaid_count":3,"unique_order_numbers":17} 
[2026-03-07 18:20:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5590,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":26949},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":26950},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26951},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26952},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26953},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26954},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26955},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26956},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":26957}],"validated_items":[{"id":26949,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":26950,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":26951,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26952,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26953,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26954,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":26955,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26956,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26957,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null}]} 
[2026-03-07 18:20:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5590,"items_count":9} 
[2026-03-07 18:20:57] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26949,"menu_item_id":85,"quantity":1},{"id":26950,"menu_item_id":396,"quantity":4},{"id":26951,"menu_item_id":61,"quantity":1},{"id":26952,"menu_item_id":56,"quantity":1},{"id":26953,"menu_item_id":5,"quantity":1},{"id":26954,"menu_item_id":3,"quantity":1},{"id":26955,"menu_item_id":105,"quantity":1},{"id":26956,"menu_item_id":98,"quantity":1},{"id":26957,"menu_item_id":62,"quantity":1}]} 
[2026-03-07 18:20:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5590,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["85|1|","396|4|","61|1|","56|1|","5|1|","3|1|","105|1|","98|1|","62|1|"],"new_items_map_keys":["85|1|","396|4|","61|1|","56|1|","5|1|","3|1|","105|1|","98|1|","62|1|"]} 
[2026-03-07 18:20:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5590,"order_number":"AZS-070326-015"} 
[2026-03-07 18:20:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5590,"order_number":"AZS-070326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 18:20:57"} 
[2026-03-07 18:21:42] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5590,"order_number":"AZS-070326-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":7000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 18:21:42"} 
[2026-03-07 18:21:42] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5590,"order_number":"AZS-070326-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":7000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 18:21:42"} 
[2026-03-07 18:21:42] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5590,"order_number":"AZS-070326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 18:21:42"} 
[2026-03-07 18:21:42] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5590,"order_number":"AZS-070326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 18:21:42"} 
[2026-03-07 18:21:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":1,"order_id":5590,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":26949},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":26950},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26952},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26953},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":26954},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":26955},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26956},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":26957}],"validated_items":[{"id":26949,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":26950,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":26952,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26953,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":26954,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":26955,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":26956,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26957,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null}]} 
[2026-03-07 18:21:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5590,"items_count":8} 
[2026-03-07 18:21:42] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":1,"items_to_remove":[26951],"items":[{"id":26949,"menu_item_id":85,"quantity":1},{"id":26950,"menu_item_id":396,"quantity":4},{"id":26952,"menu_item_id":56,"quantity":1},{"id":26953,"menu_item_id":5,"quantity":1},{"id":26954,"menu_item_id":3,"quantity":1},{"id":26955,"menu_item_id":105,"quantity":1},{"id":26956,"menu_item_id":98,"quantity":1},{"id":26957,"menu_item_id":62,"quantity":1}]} 
[2026-03-07 18:21:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5590,"has_item_changes":true,"old_items_count":9,"new_items_count":8,"old_items_map_keys":["85|1|","396|4|","61|1|","56|1|","5|1|","3|1|","105|1|","98|1|","62|1|"],"new_items_map_keys":["85|1|","396|4|","56|1|","5|1|","3|1|","105|1|","98|1|","62|1|"]} 
[2026-03-07 18:21:42] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5590,"order_number":"AZS-070326-015","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":7000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-07 18:21:42","original_payment_amount":"0.00","grand_total":6631.0,"timestamp":"2026-03-07 18:21:42"} 
[2026-03-07 18:21:42] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5590,"order_number":"AZS-070326-015"} 
[2026-03-07 18:21:42] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-015","replaced_order_id":5590} 
[2026-03-07 18:21:42] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5590,"new_order_id":5596,"order_number":"AZS-070326-015","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"7000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-07 18:21:42","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":7000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-07 18:21:42"} 
[2026-03-07 18:21:42] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5596,"items_count":8,"items":[{"menu_item_id":85,"quantity":1,"price":699.0},{"menu_item_id":396,"quantity":4,"price":99.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0},{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":98,"quantity":1,"price":1199.0},{"menu_item_id":62,"quantity":1,"price":1499.0}]} 
[2026-03-07 18:21:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5596,"item_index":0,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":1,"price":699.0,"discount_percent":0.0,"discount_amount":0.0,"total":699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5596}} 
[2026-03-07 18:21:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5596,"item_index":0,"menu_item_id":85} 
[2026-03-07 18:21:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5596,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5596}} 
[2026-03-07 18:21:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5596,"item_index":1,"menu_item_id":396} 
[2026-03-07 18:21:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5596,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5596}} 
[2026-03-07 18:21:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5596,"item_index":2,"menu_item_id":56} 
[2026-03-07 18:21:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5596,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5596}} 
[2026-03-07 18:21:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5596,"item_index":3,"menu_item_id":5} 
[2026-03-07 18:21:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5596,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5596}} 
[2026-03-07 18:21:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5596,"item_index":4,"menu_item_id":3} 
[2026-03-07 18:21:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5596,"item_index":5,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5596}} 
[2026-03-07 18:21:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5596,"item_index":5,"menu_item_id":105} 
[2026-03-07 18:21:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5596,"item_index":6,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5596}} 
[2026-03-07 18:21:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5596,"item_index":6,"menu_item_id":98} 
[2026-03-07 18:21:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5596,"item_index":7,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":1499.0,"discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5596}} 
[2026-03-07 18:21:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5596,"item_index":7,"menu_item_id":62} 
[2026-03-07 18:21:42] local.ERROR: Error tracking recipe usage for order 5596: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5596, 85, 80, 1, 15, 0.00, Order #AZS-070326-015 - 1x Loaded Fries, 2026-03-07 18:21:42, 2026-03-07 18:21:42))  
[2026-03-07 18:21:42] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5590,"new_order_id":5596,"order_number":"AZS-070326-015"} 
[2026-03-07 18:21:43] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5590,"new_order_id":5596,"order_number":"AZS-070326-015","route":"api/orders/5590"} 
[2026-03-07 18:28:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T06:28:39.980Z","date_to":"2026-03-07T18:28:39.980Z","per_page":"100"} 
[2026-03-07 18:28:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T06:28:39.994Z","date_to":"2026-03-07T18:28:39.994Z","per_page":"100"} 
[2026-03-07 18:28:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":44,"count":44,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":27,"paid_count":15,"unpaid_count":2,"unique_order_numbers":17} 
[2026-03-07 18:28:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":44,"count":44,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":27,"paid_count":15,"unpaid_count":2,"unique_order_numbers":17} 
[2026-03-07 18:28:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T06:28:39.980Z","date_to":"2026-03-07T18:28:39.980Z","per_page":"100"} 
[2026-03-07 18:28:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":44,"count":44,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":27,"paid_count":15,"unpaid_count":2,"unique_order_numbers":17} 
[2026-03-07 18:34:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T06:34:13.250Z","date_to":"2026-03-07T18:34:13.250Z","per_page":"100"} 
[2026-03-07 18:34:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T06:34:13.261Z","date_to":"2026-03-07T18:34:13.261Z","per_page":"100"} 
[2026-03-07 18:34:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":45,"count":45,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","pending","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":27,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-03-07 18:34:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":45,"count":45,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","pending","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":27,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-03-07 18:34:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T06:34:13.250Z","date_to":"2026-03-07T18:34:13.250Z","per_page":"100"} 
[2026-03-07 18:34:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":45,"count":45,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","pending","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":27,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-03-07 18:37:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5597,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null,"id":26974}],"validated_items":[{"id":26974,"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 18:37:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5597,"items_count":1} 
[2026-03-07 18:37:11] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26974,"menu_item_id":6,"quantity":1}]} 
[2026-03-07 18:37:11] local.INFO: PosOrderController::update - Item changes check {"order_id":5597,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-03-07 18:37:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5597,"order_number":"AZS-070326-018"} 
[2026-03-07 18:37:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5597,"order_number":"AZS-070326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-07 18:37:11"} 
[2026-03-07 19:09:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":1,"order_id":5595,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":163,"quantity":2,"price":1050,"discount_percent":0,"notes":null,"id":26963},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":26965}],"validated_items":[{"id":26963,"menu_item_id":163,"quantity":2,"price":1050,"discount_percent":0,"notes":null},{"id":26965,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-07 19:09:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5595,"items_count":2} 
[2026-03-07 19:09:55] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":1,"items_to_remove":[26964],"items":[{"id":26963,"menu_item_id":163,"quantity":2},{"id":26965,"menu_item_id":2,"quantity":2}]} 
[2026-03-07 19:09:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5595,"has_item_changes":true,"old_items_count":3,"new_items_count":2,"old_items_map_keys":["163|2|","6|2|","2|2|"],"new_items_map_keys":["163|2|","2|2|"]} 
[2026-03-07 19:09:55] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5595,"order_number":"AZS-070326-017"} 
[2026-03-07 19:09:55] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-017","replaced_order_id":5595} 
[2026-03-07 19:09:55] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5600,"items_count":2,"items":[{"menu_item_id":163,"quantity":2,"price":1050.0},{"menu_item_id":2,"quantity":2,"price":130.0}]} 
[2026-03-07 19:09:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5600,"item_index":0,"item_data":{"menu_item_id":163,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Azan Special Sandwich","quantity":2,"price":1050.0,"discount_percent":0.0,"discount_amount":0.0,"total":2100.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5600}} 
[2026-03-07 19:09:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5600,"item_index":0,"menu_item_id":163} 
[2026-03-07 19:09:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5600,"item_index":1,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5600}} 
[2026-03-07 19:09:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5600,"item_index":1,"menu_item_id":2} 
[2026-03-07 19:09:55] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5595,"new_order_id":5600,"order_number":"AZS-070326-017"} 
[2026-03-07 19:10:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5600,"item_index":0,"item_id":26963} 
[2026-03-07 19:10:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5600,"item_index":1,"item_id":26965} 
[2026-03-07 19:10:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":5600,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":163,"quantity":2,"price":1050,"discount_percent":0,"notes":null,"id":26963},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":26965}],"validated_items":[{"menu_item_id":163,"quantity":2,"price":1050,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-07 19:10:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5600,"items_count":2} 
[2026-03-07 19:10:07] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[26983,26984],"items":[{"id":null,"menu_item_id":163,"quantity":2},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-07 19:10:07] local.INFO: PosOrderController::update - Item changes check {"order_id":5600,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["163|2|","2|2|"],"new_items_map_keys":["163|2|","2|2|"]} 
[2026-03-07 19:10:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5600,"order_number":"AZS-070326-017"} 
[2026-03-07 19:10:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5600,"order_number":"AZS-070326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 19:10:07"} 
[2026-03-07 19:13:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5600,"item_index":0,"item_id":26963} 
[2026-03-07 19:13:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5600,"item_index":1,"item_id":26965} 
[2026-03-07 19:13:31] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5600,"order_number":"AZS-070326-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2500,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 19:13:31"} 
[2026-03-07 19:13:31] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5600,"order_number":"AZS-070326-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 19:13:31"} 
[2026-03-07 19:13:31] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5600,"order_number":"AZS-070326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 19:13:31"} 
[2026-03-07 19:13:31] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5600,"order_number":"AZS-070326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 19:13:31"} 
[2026-03-07 19:13:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":5600,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":163,"quantity":2,"price":1050,"discount_percent":0,"notes":null,"id":26963},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":26965}],"validated_items":[{"menu_item_id":163,"quantity":2,"price":1050,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-07 19:13:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5600,"items_count":2} 
[2026-03-07 19:13:31] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[26983,26984],"items":[{"id":null,"menu_item_id":163,"quantity":2},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-07 19:13:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5600,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["163|2|","2|2|"],"new_items_map_keys":["163|2|","2|2|"]} 
[2026-03-07 19:13:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5600,"order_number":"AZS-070326-017"} 
[2026-03-07 19:13:31] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5600,"order_number":"AZS-070326-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2500,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-07 19:13:31","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 19:13:31"} 
[2026-03-07 19:13:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5600,"order_number":"AZS-070326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 19:13:31"} 
[2026-03-07 19:13:31] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5600,"order_number":"AZS-070326-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2500.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-07 19:13:31","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2500.00","database_verification_match":true,"timestamp":"2026-03-07 19:13:31"} 
[2026-03-07 19:18:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5598,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":26975},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":26976},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26975,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"id":26976,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 19:18:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5598,"items_count":3} 
[2026-03-07 19:18:26] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26975,"menu_item_id":403,"quantity":1},{"id":26976,"menu_item_id":137,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 19:18:26] local.INFO: PosOrderController::update - Item changes check {"order_id":5598,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["403|1|","137|1|"],"new_items_map_keys":["403|1|","137|1|","3|1|"]} 
[2026-03-07 19:18:26] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5598,"order_number":"AZS-070326-019"} 
[2026-03-07 19:18:26] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-019","replaced_order_id":5598} 
[2026-03-07 19:18:26] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5601,"items_count":3,"items":[{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":137,"quantity":1,"price":"1299.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-07 19:18:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5601,"item_index":0,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5601}} 
[2026-03-07 19:18:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5601,"item_index":0,"menu_item_id":403} 
[2026-03-07 19:18:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5601,"item_index":1,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5601}} 
[2026-03-07 19:18:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5601,"item_index":1,"menu_item_id":137} 
[2026-03-07 19:18:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5601,"item_index":2,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5601}} 
[2026-03-07 19:18:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5601,"item_index":2,"menu_item_id":3} 
[2026-03-07 19:18:26] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5598,"new_order_id":5601,"order_number":"AZS-070326-019"} 
[2026-03-07 19:36:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5601,"item_index":0,"item_id":26975} 
[2026-03-07 19:36:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5601,"item_index":1,"item_id":26976} 
[2026-03-07 19:36:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":5601,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":26975},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":26976},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-07 19:36:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5601,"items_count":3} 
[2026-03-07 19:36:39] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[26985,26986,26987],"items":[{"id":null,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":137,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 19:36:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5601,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["403|1|","137|1|","3|1|"],"new_items_map_keys":["403|1|","137|1|","3|1|"]} 
[2026-03-07 19:36:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5601,"order_number":"AZS-070326-019"} 
[2026-03-07 19:36:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5601,"order_number":"AZS-070326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 19:36:39"} 
[2026-03-07 19:40:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5601,"item_index":0,"item_id":26975} 
[2026-03-07 19:40:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5601,"item_index":1,"item_id":26976} 
[2026-03-07 19:40:32] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5601,"order_number":"AZS-070326-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2150,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 19:40:32"} 
[2026-03-07 19:40:32] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5601,"order_number":"AZS-070326-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2150,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 19:40:32"} 
[2026-03-07 19:40:32] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5601,"order_number":"AZS-070326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2150,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 19:40:32"} 
[2026-03-07 19:40:32] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5601,"order_number":"AZS-070326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2150,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 19:40:32"} 
[2026-03-07 19:40:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":5601,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":26975},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":26976},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-07 19:40:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5601,"items_count":3} 
[2026-03-07 19:40:32] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[26985,26986,26987],"items":[{"id":null,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":137,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 19:40:32] local.INFO: PosOrderController::update - Item changes check {"order_id":5601,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["403|1|","137|1|","3|1|"],"new_items_map_keys":["403|1|","137|1|","3|1|"]} 
[2026-03-07 19:40:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5601,"order_number":"AZS-070326-019"} 
[2026-03-07 19:40:32] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5601,"order_number":"AZS-070326-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2150,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-07 19:40:32","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 19:40:32"} 
[2026-03-07 19:40:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5601,"order_number":"AZS-070326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 19:40:32"} 
[2026-03-07 19:40:32] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5601,"order_number":"AZS-070326-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2150.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-07 19:40:32","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2150,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2150.00","database_verification_match":true,"timestamp":"2026-03-07 19:40:32"} 
[2026-03-07 19:40:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T07:40:47.216Z","date_to":"2026-03-07T19:40:47.216Z","per_page":"100"} 
[2026-03-07 19:40:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":49,"count":49,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-020","AZS-070326-019","AZS-070326-019","AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","paid","changed","pending","paid","changed","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":29,"paid_count":17,"unpaid_count":3,"unique_order_numbers":20} 
[2026-03-07 19:40:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T07:40:47.233Z","date_to":"2026-03-07T19:40:47.233Z","per_page":"100"} 
[2026-03-07 19:40:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":49,"count":49,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-020","AZS-070326-019","AZS-070326-019","AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","paid","changed","pending","paid","changed","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":29,"paid_count":17,"unpaid_count":3,"unique_order_numbers":20} 
[2026-03-07 19:40:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T07:40:47.216Z","date_to":"2026-03-07T19:40:47.216Z","per_page":"100"} 
[2026-03-07 19:40:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":49,"count":49,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-020","AZS-070326-019","AZS-070326-019","AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","paid","changed","pending","paid","changed","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":29,"paid_count":17,"unpaid_count":3,"unique_order_numbers":20} 
[2026-03-07 19:49:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":5599,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":26977},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":26978},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":26979},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":26980},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26982}],"validated_items":[{"id":26977,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":26978,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":26979,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":26980,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":26982,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 19:49:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5599,"items_count":5} 
[2026-03-07 19:49:04] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[26981],"items":[{"id":26977,"menu_item_id":96,"quantity":1},{"id":26978,"menu_item_id":62,"quantity":1},{"id":26979,"menu_item_id":396,"quantity":3},{"id":26980,"menu_item_id":61,"quantity":1},{"id":26982,"menu_item_id":5,"quantity":1}]} 
[2026-03-07 19:49:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5599,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["96|1|","62|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["96|1|","62|1|","396|3|","61|1|","5|1|"]} 
[2026-03-07 19:49:04] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5599,"order_number":"AZS-070326-020"} 
[2026-03-07 19:49:04] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-020","replaced_order_id":5599} 
[2026-03-07 19:49:04] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5602,"items_count":5,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-07 19:49:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5602,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5602}} 
[2026-03-07 19:49:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5602,"item_index":0,"menu_item_id":96} 
[2026-03-07 19:49:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5602,"item_index":1,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5602}} 
[2026-03-07 19:49:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5602,"item_index":1,"menu_item_id":62} 
[2026-03-07 19:49:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5602,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5602}} 
[2026-03-07 19:49:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5602,"item_index":2,"menu_item_id":396} 
[2026-03-07 19:49:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5602,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5602}} 
[2026-03-07 19:49:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5602,"item_index":3,"menu_item_id":61} 
[2026-03-07 19:49:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5602,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5602}} 
[2026-03-07 19:49:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5602,"item_index":4,"menu_item_id":5} 
[2026-03-07 19:49:04] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5599,"new_order_id":5602,"order_number":"AZS-070326-020"} 
[2026-03-07 19:52:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5602,"item_index":0,"item_id":26977} 
[2026-03-07 19:52:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5602,"item_index":1,"item_id":26978} 
[2026-03-07 19:52:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5602,"item_index":2,"item_id":26979} 
[2026-03-07 19:52:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5602,"item_index":3,"item_id":26980} 
[2026-03-07 19:52:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5602,"item_index":4,"item_id":26982} 
[2026-03-07 19:52:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5602,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26977},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":26978},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26979},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26980},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26982}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-07 19:52:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5602,"items_count":5} 
[2026-03-07 19:52:16] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[26988,26989,26990,26991,26992],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-07 19:52:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5602,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","62|1|","396|3|","61|1|","5|1|"],"new_items_map_keys":["96|1|","62|1|","396|3|","61|1|","5|1|"]} 
[2026-03-07 19:52:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5602,"order_number":"AZS-070326-020"} 
[2026-03-07 19:52:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5602,"order_number":"AZS-070326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 19:52:16"} 
[2026-03-07 19:59:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T07:59:56.632Z","date_to":"2026-03-07T19:59:56.632Z","per_page":"100"} 
[2026-03-07 19:59:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T07:59:56.646Z","date_to":"2026-03-07T19:59:56.646Z","per_page":"100"} 
[2026-03-07 19:59:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":50,"count":50,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-020","AZS-070326-020","AZS-070326-019","AZS-070326-019","AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","changed","paid","changed","pending","paid","changed","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":30,"paid_count":17,"unpaid_count":3,"unique_order_numbers":20} 
[2026-03-07 19:59:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":50,"count":50,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-020","AZS-070326-020","AZS-070326-019","AZS-070326-019","AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","changed","paid","changed","pending","paid","changed","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":30,"paid_count":17,"unpaid_count":3,"unique_order_numbers":20} 
[2026-03-07 20:00:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T07:59:56.632Z","date_to":"2026-03-07T19:59:56.632Z","per_page":"100"} 
[2026-03-07 20:00:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":50,"count":50,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-020","AZS-070326-020","AZS-070326-019","AZS-070326-019","AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","changed","paid","changed","pending","paid","changed","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":30,"paid_count":17,"unpaid_count":3,"unique_order_numbers":20} 
[2026-03-07 20:00:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5603,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":89,"quantity":1,"discount_percent":0,"notes":null,"id":26993},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":26994},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":26995},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":26996},{"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null,"id":26997},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26998}],"validated_items":[{"id":26993,"menu_item_id":89,"quantity":1,"discount_percent":0,"notes":null},{"id":26994,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":26995,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":26996,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":26997,"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null},{"id":26998,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 20:00:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5603,"items_count":6} 
[2026-03-07 20:00:59] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26993,"menu_item_id":89,"quantity":1},{"id":26994,"menu_item_id":113,"quantity":1},{"id":26995,"menu_item_id":396,"quantity":3},{"id":26996,"menu_item_id":56,"quantity":1},{"id":26997,"menu_item_id":60,"quantity":1},{"id":26998,"menu_item_id":5,"quantity":1}]} 
[2026-03-07 20:00:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5603,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["89|1|","113|1|","396|3|","56|1|","60|1|","5|1|"],"new_items_map_keys":["89|1|","113|1|","396|3|","56|1|","60|1|","5|1|"]} 
[2026-03-07 20:00:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5603,"order_number":"AZS-070326-021"} 
[2026-03-07 20:00:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5603,"order_number":"AZS-070326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-07 20:00:59"} 
[2026-03-07 20:02:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T08:02:22.042Z","date_to":"2026-03-07T20:02:22.042Z","per_page":"100"} 
[2026-03-07 20:02:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T08:02:22.024Z","date_to":"2026-03-07T20:02:22.024Z","per_page":"100"} 
[2026-03-07 20:02:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":51,"count":51,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-021","AZS-070326-020","AZS-070326-020","AZS-070326-019","AZS-070326-019","AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","pending","changed","paid","changed","pending","paid","changed","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":30,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-07 20:02:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":51,"count":51,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-021","AZS-070326-020","AZS-070326-020","AZS-070326-019","AZS-070326-019","AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","pending","changed","paid","changed","pending","paid","changed","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":30,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-07 20:02:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T08:02:22.024Z","date_to":"2026-03-07T20:02:22.024Z","per_page":"100"} 
[2026-03-07 20:02:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":51,"count":51,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-021","AZS-070326-020","AZS-070326-020","AZS-070326-019","AZS-070326-019","AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","pending","changed","paid","changed","pending","paid","changed","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","pending","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":30,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-07 20:05:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":5603,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":89,"quantity":1,"discount_percent":0,"notes":null,"id":26993},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":26994},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":26995},{"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null,"id":26997},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":26998}],"validated_items":[{"id":26993,"menu_item_id":89,"quantity":1,"discount_percent":0,"notes":null},{"id":26994,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":26995,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":26997,"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null},{"id":26998,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 20:05:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5603,"items_count":5} 
[2026-03-07 20:05:41] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[26996],"items":[{"id":26993,"menu_item_id":89,"quantity":1},{"id":26994,"menu_item_id":113,"quantity":1},{"id":26995,"menu_item_id":396,"quantity":3},{"id":26997,"menu_item_id":60,"quantity":1},{"id":26998,"menu_item_id":5,"quantity":1}]} 
[2026-03-07 20:05:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5603,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["89|1|","113|1|","396|3|","56|1|","60|1|","5|1|"],"new_items_map_keys":["89|1|","113|1|","396|3|","60|1|","5|1|"]} 
[2026-03-07 20:05:41] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5603,"order_number":"AZS-070326-021"} 
[2026-03-07 20:05:41] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-021","replaced_order_id":5603} 
[2026-03-07 20:05:41] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5605,"items_count":5,"items":[{"menu_item_id":89,"quantity":1,"price":"1999.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":60,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-07 20:05:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5605,"item_index":0,"item_data":{"menu_item_id":89,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Rajhistani Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5605}} 
[2026-03-07 20:05:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5605,"item_index":0,"menu_item_id":89} 
[2026-03-07 20:05:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5605,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5605}} 
[2026-03-07 20:05:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5605,"item_index":1,"menu_item_id":113} 
[2026-03-07 20:05:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5605,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5605}} 
[2026-03-07 20:05:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5605,"item_index":2,"menu_item_id":396} 
[2026-03-07 20:05:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5605,"item_index":3,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5605}} 
[2026-03-07 20:05:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5605,"item_index":3,"menu_item_id":60} 
[2026-03-07 20:05:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5605,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5605}} 
[2026-03-07 20:05:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5605,"item_index":4,"menu_item_id":5} 
[2026-03-07 20:05:41] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5603,"new_order_id":5605,"order_number":"AZS-070326-021"} 
[2026-03-07 20:06:52] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5602,"order_number":"AZS-070326-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3533,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 20:06:52"} 
[2026-03-07 20:06:52] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5602,"order_number":"AZS-070326-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3533,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 20:06:52"} 
[2026-03-07 20:06:52] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5602,"order_number":"AZS-070326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3533,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 20:06:52"} 
[2026-03-07 20:06:52] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5602,"order_number":"AZS-070326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3533,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 20:06:52"} 
[2026-03-07 20:06:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5602,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":26988},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":26989},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":26990},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26991},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":26992}],"validated_items":[{"id":26988,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":26989,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":26990,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":26991,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":26992,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-07 20:06:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5602,"items_count":5} 
[2026-03-07 20:06:52] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26988,"menu_item_id":96,"quantity":1},{"id":26989,"menu_item_id":62,"quantity":1},{"id":26990,"menu_item_id":396,"quantity":3},{"id":26991,"menu_item_id":61,"quantity":1},{"id":26992,"menu_item_id":5,"quantity":1}]} 
[2026-03-07 20:06:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5602,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","62|1|","396|3|","61|1|","5|1|"],"new_items_map_keys":["96|1|","62|1|","396|3|","61|1|","5|1|"]} 
[2026-03-07 20:06:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5602,"order_number":"AZS-070326-020"} 
[2026-03-07 20:06:52] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5602,"order_number":"AZS-070326-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3533,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-07 20:06:52","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 20:06:52"} 
[2026-03-07 20:06:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5602,"order_number":"AZS-070326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 20:06:52"} 
[2026-03-07 20:06:52] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5602,"order_number":"AZS-070326-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3533.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-07 20:06:52","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3533,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3533.00","database_verification_match":true,"timestamp":"2026-03-07 20:06:52"} 
[2026-03-07 20:07:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5558,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null,"id":26789},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":26790},{"menu_item_id":12,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":26789,"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null},{"id":26790,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":12,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 20:07:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5558,"items_count":4} 
[2026-03-07 20:07:12] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26789,"menu_item_id":393,"quantity":1},{"id":26790,"menu_item_id":137,"quantity":1},{"id":null,"menu_item_id":12,"quantity":1},{"id":null,"menu_item_id":13,"quantity":1}]} 
[2026-03-07 20:07:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5558,"has_item_changes":true,"old_items_count":2,"new_items_count":4,"old_items_map_keys":["393|1|","137|1|"],"new_items_map_keys":["393|1|","137|1|","12|1|","13|1|"]} 
[2026-03-07 20:07:12] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5558,"order_number":"AZS-070326-005"} 
[2026-03-07 20:07:12] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-005","replaced_order_id":5558} 
[2026-03-07 20:07:12] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5606,"items_count":4,"items":[{"menu_item_id":393,"quantity":1,"price":"499.00"},{"menu_item_id":137,"quantity":1,"price":"1299.00"},{"menu_item_id":12,"quantity":1,"price":"199.00"},{"menu_item_id":13,"quantity":1,"price":"249.00"}]} 
[2026-03-07 20:07:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5606,"item_index":0,"item_data":{"menu_item_id":393,"restaurant_category_id":35,"restaurant_category_name":"ROCK N ROLL","item_name":"Chicken Shawarma","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5606}} 
[2026-03-07 20:07:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5606,"item_index":0,"menu_item_id":393} 
[2026-03-07 20:07:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5606,"item_index":1,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5606}} 
[2026-03-07 20:07:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5606,"item_index":1,"menu_item_id":137} 
[2026-03-07 20:07:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5606,"item_index":2,"item_data":{"menu_item_id":12,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Green Tea","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5606}} 
[2026-03-07 20:07:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5606,"item_index":2,"menu_item_id":12} 
[2026-03-07 20:07:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5606,"item_index":3,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5606}} 
[2026-03-07 20:07:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5606,"item_index":3,"menu_item_id":13} 
[2026-03-07 20:07:12] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5558,"new_order_id":5606,"order_number":"AZS-070326-005"} 
[2026-03-07 20:08:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5604,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26999}],"validated_items":[{"id":26999,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-07 20:08:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5604,"items_count":1} 
[2026-03-07 20:08:53] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26999,"menu_item_id":6,"quantity":1}]} 
[2026-03-07 20:08:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5604,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-03-07 20:08:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5604,"order_number":"AZS-070326-022"} 
[2026-03-07 20:08:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5604,"order_number":"AZS-070326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-07 20:08:53"} 
[2026-03-07 20:18:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5606,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null,"id":27005},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":27006},{"menu_item_id":12,"quantity":1,"discount_percent":0,"notes":null,"id":27007},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null,"id":27008},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":27005,"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null},{"id":27006,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"id":27007,"menu_item_id":12,"quantity":1,"discount_percent":0,"notes":null},{"id":27008,"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-07 20:18:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5606,"items_count":7} 
[2026-03-07 20:18:41] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27005,"menu_item_id":393,"quantity":1},{"id":27006,"menu_item_id":137,"quantity":1},{"id":27007,"menu_item_id":12,"quantity":1},{"id":27008,"menu_item_id":13,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":3}]} 
[2026-03-07 20:18:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5606,"has_item_changes":true,"old_items_count":4,"new_items_count":7,"old_items_map_keys":["393|1|","137|1|","12|1|","13|1|"],"new_items_map_keys":["393|1|","137|1|","12|1|","13|1|","2|1|","56|1|","5|3|"]} 
[2026-03-07 20:18:41] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5606,"order_number":"AZS-070326-005"} 
[2026-03-07 20:18:41] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-005","replaced_order_id":5606} 
[2026-03-07 20:18:41] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5607,"items_count":7,"items":[{"menu_item_id":393,"quantity":1,"price":"499.00"},{"menu_item_id":137,"quantity":1,"price":"1299.00"},{"menu_item_id":12,"quantity":1,"price":"199.00"},{"menu_item_id":13,"quantity":1,"price":"249.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":3,"price":"170.00"}]} 
[2026-03-07 20:18:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5607,"item_index":0,"item_data":{"menu_item_id":393,"restaurant_category_id":35,"restaurant_category_name":"ROCK N ROLL","item_name":"Chicken Shawarma","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5607}} 
[2026-03-07 20:18:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5607,"item_index":0,"menu_item_id":393} 
[2026-03-07 20:18:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5607,"item_index":1,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5607}} 
[2026-03-07 20:18:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5607,"item_index":1,"menu_item_id":137} 
[2026-03-07 20:18:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5607,"item_index":2,"item_data":{"menu_item_id":12,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Green Tea","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5607}} 
[2026-03-07 20:18:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5607,"item_index":2,"menu_item_id":12} 
[2026-03-07 20:18:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5607,"item_index":3,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5607}} 
[2026-03-07 20:18:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5607,"item_index":3,"menu_item_id":13} 
[2026-03-07 20:18:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5607,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5607}} 
[2026-03-07 20:18:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5607,"item_index":4,"menu_item_id":2} 
[2026-03-07 20:18:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5607,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5607}} 
[2026-03-07 20:18:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5607,"item_index":5,"menu_item_id":56} 
[2026-03-07 20:18:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5607,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":3,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":510.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5607}} 
[2026-03-07 20:18:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5607,"item_index":6,"menu_item_id":5} 
[2026-03-07 20:18:41] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5606,"new_order_id":5607,"order_number":"AZS-070326-005"} 
[2026-03-07 20:20:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5607,"item_index":0,"item_id":27005} 
[2026-03-07 20:20:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5607,"item_index":1,"item_id":27006} 
[2026-03-07 20:20:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5607,"item_index":2,"item_id":27007} 
[2026-03-07 20:20:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5607,"item_index":3,"item_id":27008} 
[2026-03-07 20:20:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":7,"order_id":5607,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null,"id":27005},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":27006},{"menu_item_id":12,"quantity":1,"discount_percent":0,"notes":null,"id":27007},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null,"id":27008},{"menu_item_id":2,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":12,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 20:20:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5607,"items_count":8} 
[2026-03-07 20:20:30] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":7,"items_to_remove":[27009,27010,27011,27012,27013,27014,27015],"items":[{"id":null,"menu_item_id":393,"quantity":1},{"id":null,"menu_item_id":137,"quantity":1},{"id":null,"menu_item_id":12,"quantity":1},{"id":null,"menu_item_id":13,"quantity":1},{"id":null,"menu_item_id":2,"quantity":5},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":3},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 20:20:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5607,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["393|1|","137|1|","12|1|","13|1|","2|1|","56|1|","5|3|"],"new_items_map_keys":["393|1|","137|1|","12|1|","13|1|","2|5|","56|1|","5|3|","3|1|"]} 
[2026-03-07 20:20:30] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5607,"order_number":"AZS-070326-005"} 
[2026-03-07 20:20:30] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-005","replaced_order_id":5607} 
[2026-03-07 20:20:30] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5608,"items_count":8,"items":[{"menu_item_id":393,"quantity":1,"price":"499.00"},{"menu_item_id":137,"quantity":1,"price":"1299.00"},{"menu_item_id":12,"quantity":1,"price":"199.00"},{"menu_item_id":13,"quantity":1,"price":"249.00"},{"menu_item_id":2,"quantity":5,"price":"130.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":3,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-07 20:20:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5608,"item_index":0,"item_data":{"menu_item_id":393,"restaurant_category_id":35,"restaurant_category_name":"ROCK N ROLL","item_name":"Chicken Shawarma","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5608}} 
[2026-03-07 20:20:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5608,"item_index":0,"menu_item_id":393} 
[2026-03-07 20:20:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5608,"item_index":1,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5608}} 
[2026-03-07 20:20:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5608,"item_index":1,"menu_item_id":137} 
[2026-03-07 20:20:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5608,"item_index":2,"item_data":{"menu_item_id":12,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Green Tea","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5608}} 
[2026-03-07 20:20:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5608,"item_index":2,"menu_item_id":12} 
[2026-03-07 20:20:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5608,"item_index":3,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5608}} 
[2026-03-07 20:20:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5608,"item_index":3,"menu_item_id":13} 
[2026-03-07 20:20:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5608,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":5,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":650.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5608}} 
[2026-03-07 20:20:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5608,"item_index":4,"menu_item_id":2} 
[2026-03-07 20:20:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5608,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5608}} 
[2026-03-07 20:20:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5608,"item_index":5,"menu_item_id":56} 
[2026-03-07 20:20:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5608,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":3,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":510.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5608}} 
[2026-03-07 20:20:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5608,"item_index":6,"menu_item_id":5} 
[2026-03-07 20:20:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5608,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5608}} 
[2026-03-07 20:20:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5608,"item_index":7,"menu_item_id":3} 
[2026-03-07 20:20:30] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5607,"new_order_id":5608,"order_number":"AZS-070326-005"} 
[2026-03-07 20:38:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5605,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":89,"quantity":1,"discount_percent":0,"notes":null,"id":27000},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":27001},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":27002},{"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null,"id":27003},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27004},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27000,"menu_item_id":89,"quantity":1,"discount_percent":0,"notes":null},{"id":27001,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":27002,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":27003,"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null},{"id":27004,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 20:38:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5605,"items_count":6} 
[2026-03-07 20:38:41] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27000,"menu_item_id":89,"quantity":1},{"id":27001,"menu_item_id":113,"quantity":1},{"id":27002,"menu_item_id":396,"quantity":3},{"id":27003,"menu_item_id":60,"quantity":1},{"id":27004,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 20:38:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5605,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["89|1|","113|1|","396|3|","60|1|","5|1|"],"new_items_map_keys":["89|1|","113|1|","396|3|","60|1|","5|1|","3|1|"]} 
[2026-03-07 20:38:41] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5605,"order_number":"AZS-070326-021"} 
[2026-03-07 20:38:41] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-021","replaced_order_id":5605} 
[2026-03-07 20:38:41] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5609,"items_count":6,"items":[{"menu_item_id":89,"quantity":1,"price":"1999.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":60,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-07 20:38:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5609,"item_index":0,"item_data":{"menu_item_id":89,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Rajhistani Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5609}} 
[2026-03-07 20:38:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5609,"item_index":0,"menu_item_id":89} 
[2026-03-07 20:38:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5609,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5609}} 
[2026-03-07 20:38:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5609,"item_index":1,"menu_item_id":113} 
[2026-03-07 20:38:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5609,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5609}} 
[2026-03-07 20:38:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5609,"item_index":2,"menu_item_id":396} 
[2026-03-07 20:38:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5609,"item_index":3,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5609}} 
[2026-03-07 20:38:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5609,"item_index":3,"menu_item_id":60} 
[2026-03-07 20:38:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5609,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5609}} 
[2026-03-07 20:38:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5609,"item_index":4,"menu_item_id":5} 
[2026-03-07 20:38:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5609,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5609}} 
[2026-03-07 20:38:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5609,"item_index":5,"menu_item_id":3} 
[2026-03-07 20:38:41] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5605,"new_order_id":5609,"order_number":"AZS-070326-021"} 
[2026-03-07 20:53:56] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5604,"order_number":"AZS-070326-022","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 20:53:56"} 
[2026-03-07 20:53:56] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5604,"order_number":"AZS-070326-022","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 20:53:56"} 
[2026-03-07 20:53:56] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5604,"order_number":"AZS-070326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 20:53:56"} 
[2026-03-07 20:53:56] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5604,"order_number":"AZS-070326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 20:53:56"} 
[2026-03-07 20:53:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5604,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26999}],"validated_items":[{"id":26999,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-07 20:53:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5604,"items_count":1} 
[2026-03-07 20:53:56] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26999,"menu_item_id":6,"quantity":1}]} 
[2026-03-07 20:53:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5604,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-03-07 20:53:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5604,"order_number":"AZS-070326-022"} 
[2026-03-07 20:53:56] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5604,"order_number":"AZS-070326-022","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-07 20:53:56","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 20:53:56"} 
[2026-03-07 20:53:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5604,"order_number":"AZS-070326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 20:53:56"} 
[2026-03-07 20:53:56] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5604,"order_number":"AZS-070326-022","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-07 20:53:56","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"200.00","database_verification_match":true,"timestamp":"2026-03-07 20:53:56"} 
[2026-03-07 21:10:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5609,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":27024},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27025},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":27026},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27027},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27028},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27029}],"validated_items":[{"id":27024,"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":27025,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27026,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":27027,"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27028,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27029,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-07 21:10:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5609,"items_count":6} 
[2026-03-07 21:10:35] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27024,"menu_item_id":89,"quantity":1},{"id":27025,"menu_item_id":113,"quantity":1},{"id":27026,"menu_item_id":396,"quantity":3},{"id":27027,"menu_item_id":60,"quantity":1},{"id":27028,"menu_item_id":5,"quantity":1},{"id":27029,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 21:10:35] local.INFO: PosOrderController::update - Item changes check {"order_id":5609,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["89|1|","113|1|","396|3|","60|1|","5|1|","3|1|"],"new_items_map_keys":["89|1|","113|1|","396|3|","60|1|","5|1|","3|1|"]} 
[2026-03-07 21:10:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5609,"order_number":"AZS-070326-021"} 
[2026-03-07 21:10:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5609,"order_number":"AZS-070326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 21:10:35"} 
[2026-03-07 21:10:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":5609,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":27024},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27025},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":27026},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27027},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27029}],"validated_items":[{"id":27024,"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":27025,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27026,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":27027,"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27029,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-07 21:10:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5609,"items_count":5} 
[2026-03-07 21:10:56] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[27028],"items":[{"id":27024,"menu_item_id":89,"quantity":1},{"id":27025,"menu_item_id":113,"quantity":1},{"id":27026,"menu_item_id":396,"quantity":3},{"id":27027,"menu_item_id":60,"quantity":1},{"id":27029,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 21:10:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5609,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["89|1|","113|1|","396|3|","60|1|","5|1|","3|1|"],"new_items_map_keys":["89|1|","113|1|","396|3|","60|1|","3|1|"]} 
[2026-03-07 21:10:56] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5609,"order_number":"AZS-070326-021"} 
[2026-03-07 21:10:56] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-021","replaced_order_id":5609} 
[2026-03-07 21:10:56] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5612,"items_count":5,"items":[{"menu_item_id":89,"quantity":1,"price":1999.0},{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":60,"quantity":1,"price":199.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-07 21:10:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5612,"item_index":0,"item_data":{"menu_item_id":89,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Rajhistani Handi","quantity":1,"price":1999.0,"discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5612}} 
[2026-03-07 21:10:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5612,"item_index":0,"menu_item_id":89} 
[2026-03-07 21:10:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5612,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5612}} 
[2026-03-07 21:10:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5612,"item_index":1,"menu_item_id":113} 
[2026-03-07 21:10:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5612,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5612}} 
[2026-03-07 21:10:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5612,"item_index":2,"menu_item_id":396} 
[2026-03-07 21:10:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5612,"item_index":3,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5612}} 
[2026-03-07 21:10:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5612,"item_index":3,"menu_item_id":60} 
[2026-03-07 21:10:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5612,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5612}} 
[2026-03-07 21:10:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5612,"item_index":4,"menu_item_id":3} 
[2026-03-07 21:10:56] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5609,"new_order_id":5612,"order_number":"AZS-070326-021"} 
[2026-03-07 21:11:00] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5612,"item_index":0,"item_id":27024} 
[2026-03-07 21:11:00] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5612,"item_index":1,"item_id":27025} 
[2026-03-07 21:11:00] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5612,"item_index":2,"item_id":27026} 
[2026-03-07 21:11:00] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5612,"item_index":3,"item_id":27027} 
[2026-03-07 21:11:00] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5612,"item_index":4,"item_id":27029} 
[2026-03-07 21:11:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5612,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":27024},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27025},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":27026},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27027},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27029}],"validated_items":[{"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-07 21:11:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5612,"items_count":5} 
[2026-03-07 21:11:00] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[27032,27033,27034,27035,27036],"items":[{"id":null,"menu_item_id":89,"quantity":1},{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":60,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 21:11:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5612,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["89|1|","113|1|","396|3|","60|1|","3|1|"],"new_items_map_keys":["89|1|","113|1|","396|3|","60|1|","3|1|"]} 
[2026-03-07 21:11:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5612,"order_number":"AZS-070326-021"} 
[2026-03-07 21:11:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5612,"order_number":"AZS-070326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 21:11:00"} 
[2026-03-07 21:19:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5612,"item_index":0,"item_id":27024} 
[2026-03-07 21:19:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5612,"item_index":1,"item_id":27025} 
[2026-03-07 21:19:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5612,"item_index":2,"item_id":27026} 
[2026-03-07 21:19:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5612,"item_index":3,"item_id":27027} 
[2026-03-07 21:19:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5612,"item_index":4,"item_id":27029} 
[2026-03-07 21:19:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5612,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":27024},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27025},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":27026},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27027},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27029}],"validated_items":[{"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-07 21:19:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5612,"items_count":5} 
[2026-03-07 21:19:12] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[27032,27033,27034,27035,27036],"items":[{"id":null,"menu_item_id":89,"quantity":1},{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":60,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 21:19:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5612,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["89|1|","113|1|","396|3|","60|1|","3|1|"],"new_items_map_keys":["89|1|","113|1|","396|3|","60|1|","3|1|"]} 
[2026-03-07 21:19:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5612,"order_number":"AZS-070326-021"} 
[2026-03-07 21:19:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5612,"order_number":"AZS-070326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 21:19:12"} 
[2026-03-07 21:20:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5612,"item_index":0,"item_id":27024} 
[2026-03-07 21:20:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5612,"item_index":1,"item_id":27025} 
[2026-03-07 21:20:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5612,"item_index":2,"item_id":27026} 
[2026-03-07 21:20:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5612,"item_index":3,"item_id":27029} 
[2026-03-07 21:20:31] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5612,"order_number":"AZS-070326-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3765,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 21:20:31"} 
[2026-03-07 21:20:31] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5612,"order_number":"AZS-070326-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3765,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 21:20:31"} 
[2026-03-07 21:20:31] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5612,"order_number":"AZS-070326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3765,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 21:20:31"} 
[2026-03-07 21:20:31] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5612,"order_number":"AZS-070326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3765,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 21:20:31"} 
[2026-03-07 21:20:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":5,"order_id":5612,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":27024},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27025},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":27026},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27029}],"validated_items":[{"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-07 21:20:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5612,"items_count":4} 
[2026-03-07 21:20:31] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":5,"items_to_remove":[27032,27033,27034,27035,27036],"items":[{"id":null,"menu_item_id":89,"quantity":1},{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 21:20:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5612,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["89|1|","113|1|","396|3|","60|1|","3|1|"],"new_items_map_keys":["89|1|","113|1|","396|3|","3|1|"]} 
[2026-03-07 21:20:31] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5612,"order_number":"AZS-070326-021","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3765,"new_order_data_payment_mode":"online","new_order_data_paid_at":"2026-03-07 21:20:31","original_payment_amount":"0.00","grand_total":3765.0,"timestamp":"2026-03-07 21:20:31"} 
[2026-03-07 21:20:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5612,"order_number":"AZS-070326-021"} 
[2026-03-07 21:20:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-021","replaced_order_id":5612} 
[2026-03-07 21:20:31] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5612,"new_order_id":5613,"order_number":"AZS-070326-021","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3765.00","payment_mode_after_creation":"online","paid_at_after_creation":"2026-03-07 21:20:31","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3765,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-07 21:20:31"} 
[2026-03-07 21:20:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5613,"items_count":4,"items":[{"menu_item_id":89,"quantity":1,"price":1999.0},{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-07 21:20:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5613,"item_index":0,"item_data":{"menu_item_id":89,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Rajhistani Handi","quantity":1,"price":1999.0,"discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5613}} 
[2026-03-07 21:20:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5613,"item_index":0,"menu_item_id":89} 
[2026-03-07 21:20:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5613,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5613}} 
[2026-03-07 21:20:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5613,"item_index":1,"menu_item_id":113} 
[2026-03-07 21:20:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5613,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5613}} 
[2026-03-07 21:20:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5613,"item_index":2,"menu_item_id":396} 
[2026-03-07 21:20:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5613,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5613}} 
[2026-03-07 21:20:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5613,"item_index":3,"menu_item_id":3} 
[2026-03-07 21:20:31] local.ERROR: Error tracking recipe usage for order 5613: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5613, 89, 184, 1, 0.5, 0.00, Order #AZS-070326-021 - 1x Rajhistani Handi, 2026-03-07 21:20:31, 2026-03-07 21:20:31))  
[2026-03-07 21:20:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5612,"new_order_id":5613,"order_number":"AZS-070326-021"} 
[2026-03-07 21:20:31] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5612,"new_order_id":5613,"order_number":"AZS-070326-021","route":"api/orders/5612"} 
[2026-03-07 21:44:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5611,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":27031},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":27031,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-07 21:44:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5611,"items_count":3} 
[2026-03-07 21:44:40] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27031,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":425,"quantity":1},{"id":null,"menu_item_id":416,"quantity":2}]} 
[2026-03-07 21:44:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5611,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|","425|1|","416|2|"]} 
[2026-03-07 21:44:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5611,"order_number":"AZS-070326-024"} 
[2026-03-07 21:44:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-024","replaced_order_id":5611} 
[2026-03-07 21:44:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5614,"items_count":3,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":425,"quantity":1,"price":"99.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"}]} 
[2026-03-07 21:44:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5614,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5614}} 
[2026-03-07 21:44:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5614,"item_index":0,"menu_item_id":411} 
[2026-03-07 21:44:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5614,"item_index":1,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5614}} 
[2026-03-07 21:44:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5614,"item_index":1,"menu_item_id":425} 
[2026-03-07 21:44:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5614,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5614}} 
[2026-03-07 21:44:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5614,"item_index":2,"menu_item_id":416} 
[2026-03-07 21:44:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5611,"new_order_id":5614,"order_number":"AZS-070326-024"} 
[2026-03-07 21:45:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5610,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":27030}],"validated_items":[{"id":27030,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-07 21:45:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5610,"items_count":1} 
[2026-03-07 21:45:05] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27030,"menu_item_id":13,"quantity":2}]} 
[2026-03-07 21:45:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5610,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|2|"]} 
[2026-03-07 21:45:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5610,"order_number":"AZS-070326-023"} 
[2026-03-07 21:45:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5610,"order_number":"AZS-070326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 21:45:05"} 
[2026-03-07 21:50:52] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5610,"order_number":"AZS-070326-023","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":523,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 21:50:52"} 
[2026-03-07 21:50:52] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5610,"order_number":"AZS-070326-023","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":523,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 21:50:52"} 
[2026-03-07 21:50:52] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5610,"order_number":"AZS-070326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":523,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 21:50:52"} 
[2026-03-07 21:50:52] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5610,"order_number":"AZS-070326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":523,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 21:50:52"} 
[2026-03-07 21:50:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5610,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":27030}],"validated_items":[{"id":27030,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-07 21:50:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5610,"items_count":1} 
[2026-03-07 21:50:52] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27030,"menu_item_id":13,"quantity":2}]} 
[2026-03-07 21:50:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5610,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|2|"]} 
[2026-03-07 21:50:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5610,"order_number":"AZS-070326-023"} 
[2026-03-07 21:50:52] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5610,"order_number":"AZS-070326-023","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":523,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-07 21:50:52","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 21:50:52"} 
[2026-03-07 21:50:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5610,"order_number":"AZS-070326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 21:50:52"} 
[2026-03-07 21:50:52] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5610,"order_number":"AZS-070326-023","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"523.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-07 21:50:52","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":523,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"523.00","database_verification_match":true,"timestamp":"2026-03-07 21:50:52"} 
[2026-03-07 21:57:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5614,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":27041},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null,"id":27042},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null,"id":27043},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27041,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":27042,"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"id":27043,"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 21:57:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5614,"items_count":4} 
[2026-03-07 21:57:54] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27041,"menu_item_id":411,"quantity":1},{"id":27042,"menu_item_id":425,"quantity":1},{"id":27043,"menu_item_id":416,"quantity":2},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 21:57:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5614,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["411|1|","425|1|","416|2|"],"new_items_map_keys":["411|1|","425|1|","416|2|","3|1|"]} 
[2026-03-07 21:57:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5614,"order_number":"AZS-070326-024"} 
[2026-03-07 21:57:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-024","replaced_order_id":5614} 
[2026-03-07 21:57:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5616,"items_count":4,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":425,"quantity":1,"price":"99.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-07 21:57:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5616,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5616}} 
[2026-03-07 21:57:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5616,"item_index":0,"menu_item_id":411} 
[2026-03-07 21:57:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5616,"item_index":1,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5616}} 
[2026-03-07 21:57:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5616,"item_index":1,"menu_item_id":425} 
[2026-03-07 21:57:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5616,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5616}} 
[2026-03-07 21:57:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5616,"item_index":2,"menu_item_id":416} 
[2026-03-07 21:57:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5616,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5616}} 
[2026-03-07 21:57:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5616,"item_index":3,"menu_item_id":3} 
[2026-03-07 21:57:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5614,"new_order_id":5616,"order_number":"AZS-070326-024"} 
[2026-03-07 22:01:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5608,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null,"id":27016},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":27017},{"menu_item_id":12,"quantity":1,"discount_percent":0,"notes":null,"id":27018},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null,"id":27019},{"menu_item_id":2,"quantity":5,"discount_percent":0,"notes":null,"id":27020},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27021},{"menu_item_id":5,"quantity":3,"discount_percent":0,"notes":null,"id":27022},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":27023}],"validated_items":[{"id":27016,"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null},{"id":27017,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"id":27018,"menu_item_id":12,"quantity":1,"discount_percent":0,"notes":null},{"id":27019,"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"id":27020,"menu_item_id":2,"quantity":5,"discount_percent":0,"notes":null},{"id":27021,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27022,"menu_item_id":5,"quantity":3,"discount_percent":0,"notes":null},{"id":27023,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 22:01:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5608,"items_count":8} 
[2026-03-07 22:01:34] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27016,"menu_item_id":393,"quantity":1},{"id":27017,"menu_item_id":137,"quantity":1},{"id":27018,"menu_item_id":12,"quantity":1},{"id":27019,"menu_item_id":13,"quantity":1},{"id":27020,"menu_item_id":2,"quantity":5},{"id":27021,"menu_item_id":56,"quantity":1},{"id":27022,"menu_item_id":5,"quantity":3},{"id":27023,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 22:01:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5608,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["393|1|","137|1|","12|1|","13|1|","2|5|","56|1|","5|3|","3|1|"],"new_items_map_keys":["393|1|","137|1|","12|1|","13|1|","2|5|","56|1|","5|3|","3|1|"]} 
[2026-03-07 22:01:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5608,"order_number":"AZS-070326-005"} 
[2026-03-07 22:01:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5608,"order_number":"AZS-070326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-03-07 22:01:34"} 
[2026-03-07 22:02:09] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5608,"order_number":"AZS-070326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3875,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 22:02:09"} 
[2026-03-07 22:02:09] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5608,"order_number":"AZS-070326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3875,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 22:02:09"} 
[2026-03-07 22:02:09] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5608,"order_number":"AZS-070326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3875,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 22:02:09"} 
[2026-03-07 22:02:09] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5608,"order_number":"AZS-070326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3875,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 22:02:09"} 
[2026-03-07 22:02:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5608,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":27016},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":27017},{"menu_item_id":12,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27018},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":27019},{"menu_item_id":2,"quantity":5,"price":130,"discount_percent":0,"notes":null,"id":27020},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27021},{"menu_item_id":5,"quantity":3,"price":170,"discount_percent":0,"notes":null,"id":27022},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27023}],"validated_items":[{"id":27016,"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":27017,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":27018,"menu_item_id":12,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27019,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":27020,"menu_item_id":2,"quantity":5,"price":130,"discount_percent":0,"notes":null},{"id":27021,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27022,"menu_item_id":5,"quantity":3,"price":170,"discount_percent":0,"notes":null},{"id":27023,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-07 22:02:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5608,"items_count":8} 
[2026-03-07 22:02:09] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27016,"menu_item_id":393,"quantity":1},{"id":27017,"menu_item_id":137,"quantity":1},{"id":27018,"menu_item_id":12,"quantity":1},{"id":27019,"menu_item_id":13,"quantity":1},{"id":27020,"menu_item_id":2,"quantity":5},{"id":27021,"menu_item_id":56,"quantity":1},{"id":27022,"menu_item_id":5,"quantity":3},{"id":27023,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 22:02:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5608,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["393|1|","137|1|","12|1|","13|1|","2|5|","56|1|","5|3|","3|1|"],"new_items_map_keys":["393|1|","137|1|","12|1|","13|1|","2|5|","56|1|","5|3|","3|1|"]} 
[2026-03-07 22:02:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5608,"order_number":"AZS-070326-005"} 
[2026-03-07 22:02:09] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5608,"order_number":"AZS-070326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3875,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-07 22:02:09","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 22:02:09"} 
[2026-03-07 22:02:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5608,"order_number":"AZS-070326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 22:02:09"} 
[2026-03-07 22:02:09] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5608,"order_number":"AZS-070326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3875.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-07 22:02:09","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3875,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3875.00","database_verification_match":true,"timestamp":"2026-03-07 22:02:09"} 
[2026-03-07 22:02:40] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5597,"order_number":"AZS-070326-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 22:02:40"} 
[2026-03-07 22:02:40] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5597,"order_number":"AZS-070326-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 22:02:40"} 
[2026-03-07 22:02:40] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5597,"order_number":"AZS-070326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 22:02:40"} 
[2026-03-07 22:02:40] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5597,"order_number":"AZS-070326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 22:02:40"} 
[2026-03-07 22:02:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5597,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":26974}],"validated_items":[{"id":26974,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-07 22:02:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5597,"items_count":1} 
[2026-03-07 22:02:40] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":26974,"menu_item_id":6,"quantity":1}]} 
[2026-03-07 22:02:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5597,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-03-07 22:02:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5597,"order_number":"AZS-070326-018"} 
[2026-03-07 22:02:40] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5597,"order_number":"AZS-070326-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-07 22:02:40","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 22:02:40"} 
[2026-03-07 22:02:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5597,"order_number":"AZS-070326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 22:02:40"} 
[2026-03-07 22:02:40] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5597,"order_number":"AZS-070326-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-07 22:02:40","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"200.00","database_verification_match":true,"timestamp":"2026-03-07 22:02:40"} 
[2026-03-07 22:02:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T10:02:51.564Z","date_to":"2026-03-07T22:02:51.564Z","per_page":"100"} 
[2026-03-07 22:02:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T10:02:51.580Z","date_to":"2026-03-07T22:02:51.580Z","per_page":"100"} 
[2026-03-07 22:02:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":64,"count":64,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-025","AZS-070326-024","AZS-070326-024","AZS-070326-024","AZS-070326-023","AZS-070326-022","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-020","AZS-070326-020","AZS-070326-019","AZS-070326-019","AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","pending","changed","changed","paid","paid","paid","changed","changed","changed","changed","paid","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":39,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-07 22:02:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":64,"count":64,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-025","AZS-070326-024","AZS-070326-024","AZS-070326-024","AZS-070326-023","AZS-070326-022","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-020","AZS-070326-020","AZS-070326-019","AZS-070326-019","AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","pending","changed","changed","paid","paid","paid","changed","changed","changed","changed","paid","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":39,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-07 22:02:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T10:02:51.564Z","date_to":"2026-03-07T22:02:51.564Z","per_page":"100"} 
[2026-03-07 22:02:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":64,"count":64,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-025","AZS-070326-024","AZS-070326-024","AZS-070326-024","AZS-070326-023","AZS-070326-022","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-020","AZS-070326-020","AZS-070326-019","AZS-070326-019","AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","pending","changed","changed","paid","paid","paid","changed","changed","changed","changed","paid","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":39,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-07 22:11:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T10:11:13.772Z","date_to":"2026-03-07T22:11:13.772Z","per_page":"100"} 
[2026-03-07 22:11:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":65,"count":65,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-026","AZS-070326-025","AZS-070326-024","AZS-070326-024","AZS-070326-024","AZS-070326-023","AZS-070326-022","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-020","AZS-070326-020","AZS-070326-019","AZS-070326-019","AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","pending","pending","changed","changed","paid","paid","paid","changed","changed","changed","changed","paid","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":39,"paid_count":23,"unpaid_count":3,"unique_order_numbers":26} 
[2026-03-07 22:11:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T10:11:13.783Z","date_to":"2026-03-07T22:11:13.783Z","per_page":"100"} 
[2026-03-07 22:11:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":65,"count":65,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-026","AZS-070326-025","AZS-070326-024","AZS-070326-024","AZS-070326-024","AZS-070326-023","AZS-070326-022","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-020","AZS-070326-020","AZS-070326-019","AZS-070326-019","AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","pending","pending","changed","changed","paid","paid","paid","changed","changed","changed","changed","paid","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":39,"paid_count":23,"unpaid_count":3,"unique_order_numbers":26} 
[2026-03-07 22:11:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T10:11:13.772Z","date_to":"2026-03-07T22:11:13.772Z","per_page":"100"} 
[2026-03-07 22:11:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":65,"count":65,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-026","AZS-070326-025","AZS-070326-024","AZS-070326-024","AZS-070326-024","AZS-070326-023","AZS-070326-022","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-020","AZS-070326-020","AZS-070326-019","AZS-070326-019","AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","pending","pending","changed","changed","paid","paid","paid","changed","changed","changed","changed","paid","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":39,"paid_count":23,"unpaid_count":3,"unique_order_numbers":26} 
[2026-03-07 22:12:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5616,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27045},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":27046},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":27047},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27048}],"validated_items":[{"id":27045,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":27046,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":27047,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":27048,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-07 22:12:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5616,"items_count":4} 
[2026-03-07 22:12:37] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27045,"menu_item_id":411,"quantity":1},{"id":27046,"menu_item_id":425,"quantity":1},{"id":27047,"menu_item_id":416,"quantity":2},{"id":27048,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 22:12:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5616,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|1|","425|1|","416|2|","3|1|"],"new_items_map_keys":["411|1|","425|1|","416|2|","3|1|"]} 
[2026-03-07 22:12:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5616,"order_number":"AZS-070326-024"} 
[2026-03-07 22:12:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5616,"order_number":"AZS-070326-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 22:12:37"} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":5617,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":27049},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":27050},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":27051},{"menu_item_id":71,"quantity":1,"discount_percent":0,"notes":null,"id":27052},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":27053},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":27054},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":27055},{"menu_item_id":416,"quantity":6,"discount_percent":0,"notes":null,"id":27056},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":27057},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null,"id":27058},{"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27049,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":27050,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":27051,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":27052,"menu_item_id":71,"quantity":1,"discount_percent":0,"notes":null},{"id":27053,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":27054,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":27055,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":27056,"menu_item_id":416,"quantity":6,"discount_percent":0,"notes":null},{"id":27057,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":27058,"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5617,"items_count":11} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27049,"menu_item_id":95,"quantity":1},{"id":27050,"menu_item_id":106,"quantity":1},{"id":27051,"menu_item_id":114,"quantity":1},{"id":27052,"menu_item_id":71,"quantity":1},{"id":27053,"menu_item_id":61,"quantity":2},{"id":27054,"menu_item_id":56,"quantity":2},{"id":27055,"menu_item_id":5,"quantity":2},{"id":27056,"menu_item_id":416,"quantity":6},{"id":27057,"menu_item_id":396,"quantity":3},{"id":27058,"menu_item_id":50,"quantity":4},{"id":null,"menu_item_id":103,"quantity":1}]} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5617,"has_item_changes":true,"old_items_count":10,"new_items_count":11,"old_items_map_keys":["95|1|","106|1|","114|1|","71|1|","61|2|","56|2|","5|2|","416|6|","396|3|","50|4|"],"new_items_map_keys":["95|1|","106|1|","114|1|","71|1|","61|2|","56|2|","5|2|","416|6|","396|3|","50|4|","103|1|"]} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5617,"order_number":"AZS-070326-026"} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-026","replaced_order_id":5617} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5618,"items_count":11,"items":[{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":71,"quantity":1,"price":"1199.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":416,"quantity":6,"price":"70.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":4,"price":"129.00"},{"menu_item_id":103,"quantity":1,"price":"2599.00"}]} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5618,"item_index":0,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5618}} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5618,"item_index":0,"menu_item_id":95} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5618,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5618}} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5618,"item_index":1,"menu_item_id":106} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5618,"item_index":2,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5618}} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5618,"item_index":2,"menu_item_id":114} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5618,"item_index":3,"item_data":{"menu_item_id":71,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Special Afghani Boti (10 pcs)","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5618}} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5618,"item_index":3,"menu_item_id":71} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5618,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5618}} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5618,"item_index":4,"menu_item_id":61} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5618,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5618}} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5618,"item_index":5,"menu_item_id":56} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5618,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5618}} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5618,"item_index":6,"menu_item_id":5} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5618,"item_index":7,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":6,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":420.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5618}} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5618,"item_index":7,"menu_item_id":416} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5618,"item_index":8,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5618}} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5618,"item_index":8,"menu_item_id":396} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5618,"item_index":9,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5618}} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5618,"item_index":9,"menu_item_id":50} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5618,"item_index":10,"item_data":{"menu_item_id":103,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Full","quantity":1,"price":"2599.00","discount_percent":0.0,"discount_amount":0.0,"total":2599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5618}} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5618,"item_index":10,"menu_item_id":103} 
[2026-03-07 22:14:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5617,"new_order_id":5618,"order_number":"AZS-070326-026"} 
[2026-03-07 22:20:23] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5616,"order_number":"AZS-070326-024","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1110,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 22:20:23"} 
[2026-03-07 22:20:23] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5616,"order_number":"AZS-070326-024","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1110,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 22:20:23"} 
[2026-03-07 22:20:23] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5616,"order_number":"AZS-070326-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1110,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 22:20:23"} 
[2026-03-07 22:20:23] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5616,"order_number":"AZS-070326-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1110,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 22:20:23"} 
[2026-03-07 22:20:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5616,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27045},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":27046},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":27047},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27048}],"validated_items":[{"id":27045,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":27046,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":27047,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":27048,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-07 22:20:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5616,"items_count":4} 
[2026-03-07 22:20:23] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27045,"menu_item_id":411,"quantity":1},{"id":27046,"menu_item_id":425,"quantity":1},{"id":27047,"menu_item_id":416,"quantity":2},{"id":27048,"menu_item_id":3,"quantity":1}]} 
[2026-03-07 22:20:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5616,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|1|","425|1|","416|2|","3|1|"],"new_items_map_keys":["411|1|","425|1|","416|2|","3|1|"]} 
[2026-03-07 22:20:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5616,"order_number":"AZS-070326-024"} 
[2026-03-07 22:20:23] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5616,"order_number":"AZS-070326-024","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1110,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-07 22:20:23","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 22:20:23"} 
[2026-03-07 22:20:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5616,"order_number":"AZS-070326-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 22:20:23"} 
[2026-03-07 22:20:23] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5616,"order_number":"AZS-070326-024","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1110.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-07 22:20:23","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1110,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1110.00","database_verification_match":true,"timestamp":"2026-03-07 22:20:23"} 
[2026-03-07 22:21:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5615,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27044}],"validated_items":[{"id":27044,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null}]} 
[2026-03-07 22:21:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5615,"items_count":1} 
[2026-03-07 22:21:10] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27044,"menu_item_id":411,"quantity":1}]} 
[2026-03-07 22:21:10] local.INFO: PosOrderController::update - Item changes check {"order_id":5615,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|"]} 
[2026-03-07 22:21:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5615,"order_number":"AZS-070326-025"} 
[2026-03-07 22:21:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5615,"order_number":"AZS-070326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 22:21:10"} 
[2026-03-07 22:23:25] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5615,"order_number":"AZS-070326-025","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":600,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 22:23:25"} 
[2026-03-07 22:23:25] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5615,"order_number":"AZS-070326-025","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 22:23:25"} 
[2026-03-07 22:23:25] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5615,"order_number":"AZS-070326-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 22:23:25"} 
[2026-03-07 22:23:25] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5615,"order_number":"AZS-070326-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 22:23:25"} 
[2026-03-07 22:23:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5615,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27044}],"validated_items":[{"id":27044,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null}]} 
[2026-03-07 22:23:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5615,"items_count":1} 
[2026-03-07 22:23:25] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27044,"menu_item_id":411,"quantity":1}]} 
[2026-03-07 22:23:25] local.INFO: PosOrderController::update - Item changes check {"order_id":5615,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|"]} 
[2026-03-07 22:23:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5615,"order_number":"AZS-070326-025"} 
[2026-03-07 22:23:25] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5615,"order_number":"AZS-070326-025","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":600,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-07 22:23:25","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 22:23:25"} 
[2026-03-07 22:23:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5615,"order_number":"AZS-070326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 22:23:25"} 
[2026-03-07 22:23:25] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5615,"order_number":"AZS-070326-025","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"600.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-07 22:23:25","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"600.00","database_verification_match":true,"timestamp":"2026-03-07 22:23:25"} 
[2026-03-07 22:35:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5619,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":27070},{"menu_item_id":412,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":27070,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-07 22:35:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5619,"items_count":2} 
[2026-03-07 22:35:02] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27070,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":412,"quantity":2}]} 
[2026-03-07 22:35:02] local.INFO: PosOrderController::update - Item changes check {"order_id":5619,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|","412|2|"]} 
[2026-03-07 22:35:02] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5619,"order_number":"AZS-070326-027"} 
[2026-03-07 22:35:02] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-027","replaced_order_id":5619} 
[2026-03-07 22:35:02] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5620,"items_count":2,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":412,"quantity":2,"price":"220.00"}]} 
[2026-03-07 22:35:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5620,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5620}} 
[2026-03-07 22:35:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5620,"item_index":0,"menu_item_id":411} 
[2026-03-07 22:35:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5620,"item_index":1,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":2,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":440.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5620}} 
[2026-03-07 22:35:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5620,"item_index":1,"menu_item_id":412} 
[2026-03-07 22:35:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5619,"new_order_id":5620,"order_number":"AZS-070326-027"} 
[2026-03-07 22:35:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T10:35:40.097Z","date_to":"2026-03-07T22:35:40.097Z","per_page":"100"} 
[2026-03-07 22:35:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T10:35:40.086Z","date_to":"2026-03-07T22:35:40.086Z","per_page":"100"} 
[2026-03-07 22:35:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":68,"count":68,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-027","AZS-070326-027","AZS-070326-026","AZS-070326-026","AZS-070326-025","AZS-070326-024","AZS-070326-024","AZS-070326-024","AZS-070326-023","AZS-070326-022","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-020","AZS-070326-020","AZS-070326-019","AZS-070326-019","AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","changed","pending","changed","paid","paid","changed","changed","paid","paid","paid","changed","changed","changed","changed","paid","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":41,"paid_count":25,"unpaid_count":2,"unique_order_numbers":27} 
[2026-03-07 22:35:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":68,"count":68,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-027","AZS-070326-027","AZS-070326-026","AZS-070326-026","AZS-070326-025","AZS-070326-024","AZS-070326-024","AZS-070326-024","AZS-070326-023","AZS-070326-022","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-020","AZS-070326-020","AZS-070326-019","AZS-070326-019","AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","changed","pending","changed","paid","paid","changed","changed","paid","paid","paid","changed","changed","changed","changed","paid","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":41,"paid_count":25,"unpaid_count":2,"unique_order_numbers":27} 
[2026-03-07 22:35:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T10:35:40.086Z","date_to":"2026-03-07T22:35:40.086Z","per_page":"100"} 
[2026-03-07 22:35:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":68,"count":68,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-027","AZS-070326-027","AZS-070326-026","AZS-070326-026","AZS-070326-025","AZS-070326-024","AZS-070326-024","AZS-070326-024","AZS-070326-023","AZS-070326-022","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-020","AZS-070326-020","AZS-070326-019","AZS-070326-019","AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","changed","pending","changed","paid","paid","changed","changed","paid","paid","paid","changed","changed","changed","changed","paid","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":41,"paid_count":25,"unpaid_count":2,"unique_order_numbers":27} 
[2026-03-07 22:49:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5620,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27071},{"menu_item_id":412,"quantity":2,"price":220,"discount_percent":0,"notes":null,"id":27072}],"validated_items":[{"id":27071,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":27072,"menu_item_id":412,"quantity":2,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-07 22:49:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5620,"items_count":2} 
[2026-03-07 22:49:02] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27071,"menu_item_id":411,"quantity":1},{"id":27072,"menu_item_id":412,"quantity":2}]} 
[2026-03-07 22:49:02] local.INFO: PosOrderController::update - Item changes check {"order_id":5620,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","412|2|"],"new_items_map_keys":["411|1|","412|2|"]} 
[2026-03-07 22:49:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5620,"order_number":"AZS-070326-027"} 
[2026-03-07 22:49:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5620,"order_number":"AZS-070326-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 22:49:02"} 
[2026-03-07 22:54:21] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5620,"order_number":"AZS-070326-027","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1050,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 22:54:21"} 
[2026-03-07 22:54:21] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5620,"order_number":"AZS-070326-027","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1050,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 22:54:21"} 
[2026-03-07 22:54:21] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5620,"order_number":"AZS-070326-027","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1050,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 22:54:21"} 
[2026-03-07 22:54:21] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5620,"order_number":"AZS-070326-027","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1050,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 22:54:21"} 
[2026-03-07 22:54:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5620,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27071},{"menu_item_id":412,"quantity":2,"price":220,"discount_percent":0,"notes":null,"id":27072}],"validated_items":[{"id":27071,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":27072,"menu_item_id":412,"quantity":2,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-07 22:54:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5620,"items_count":2} 
[2026-03-07 22:54:21] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27071,"menu_item_id":411,"quantity":1},{"id":27072,"menu_item_id":412,"quantity":2}]} 
[2026-03-07 22:54:21] local.INFO: PosOrderController::update - Item changes check {"order_id":5620,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","412|2|"],"new_items_map_keys":["411|1|","412|2|"]} 
[2026-03-07 22:54:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5620,"order_number":"AZS-070326-027"} 
[2026-03-07 22:54:21] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5620,"order_number":"AZS-070326-027","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1050,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-07 22:54:21","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 22:54:21"} 
[2026-03-07 22:54:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5620,"order_number":"AZS-070326-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 22:54:21"} 
[2026-03-07 22:54:21] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5620,"order_number":"AZS-070326-027","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1050.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-07 22:54:21","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1050,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1050.00","database_verification_match":true,"timestamp":"2026-03-07 22:54:21"} 
[2026-03-07 23:00:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5621,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":27073},{"menu_item_id":402,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27073,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":402,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 23:00:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5621,"items_count":2} 
[2026-03-07 23:00:52] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27073,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":402,"quantity":1}]} 
[2026-03-07 23:00:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5621,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|","402|1|"]} 
[2026-03-07 23:00:52] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5621,"order_number":"AZS-070326-028"} 
[2026-03-07 23:00:52] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-028","replaced_order_id":5621} 
[2026-03-07 23:00:52] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5622,"items_count":2,"items":[{"menu_item_id":6,"quantity":2,"price":"199.00"},{"menu_item_id":402,"quantity":1,"price":"325.00"}]} 
[2026-03-07 23:00:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5622,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5622}} 
[2026-03-07 23:00:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5622,"item_index":0,"menu_item_id":6} 
[2026-03-07 23:00:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5622,"item_index":1,"item_data":{"menu_item_id":402,"restaurant_category_id":39,"restaurant_category_name":"DESSERT BAR","item_name":"HOT GULAB JAMUN","quantity":1,"price":"325.00","discount_percent":0.0,"discount_amount":0.0,"total":325.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5622}} 
[2026-03-07 23:00:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5622,"item_index":1,"menu_item_id":402} 
[2026-03-07 23:00:52] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5621,"new_order_id":5622,"order_number":"AZS-070326-028"} 
[2026-03-07 23:01:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5622,"item_index":0,"item_id":27073} 
[2026-03-07 23:01:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":2,"order_id":5622,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":27073}],"validated_items":[{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-07 23:01:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5622,"items_count":1} 
[2026-03-07 23:01:30] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":2,"items_to_remove":[27074,27075],"items":[{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-03-07 23:01:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5622,"has_item_changes":true,"old_items_count":2,"new_items_count":1,"old_items_map_keys":["6|2|","402|1|"],"new_items_map_keys":["6|2|"]} 
[2026-03-07 23:01:30] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5622,"order_number":"AZS-070326-028"} 
[2026-03-07 23:01:30] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-028","replaced_order_id":5622} 
[2026-03-07 23:01:30] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5623,"items_count":1,"items":[{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-03-07 23:01:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5623,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5623}} 
[2026-03-07 23:01:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5623,"item_index":0,"menu_item_id":6} 
[2026-03-07 23:01:30] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5622,"new_order_id":5623,"order_number":"AZS-070326-028"} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":5618,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":27059},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":27060},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":27061},{"menu_item_id":71,"quantity":1,"discount_percent":0,"notes":null,"id":27062},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":27063},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":27064},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":27065},{"menu_item_id":416,"quantity":6,"discount_percent":0,"notes":null,"id":27066},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":27067},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null,"id":27068},{"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null,"id":27069},{"menu_item_id":412,"quantity":8,"discount_percent":0,"notes":null}],"validated_items":[{"id":27059,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":27060,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":27061,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":27062,"menu_item_id":71,"quantity":1,"discount_percent":0,"notes":null},{"id":27063,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":27064,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":27065,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":27066,"menu_item_id":416,"quantity":6,"discount_percent":0,"notes":null},{"id":27067,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":27068,"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null},{"id":27069,"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":8,"discount_percent":0,"notes":null}]} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5618,"items_count":12} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27059,"menu_item_id":95,"quantity":1},{"id":27060,"menu_item_id":106,"quantity":1},{"id":27061,"menu_item_id":114,"quantity":1},{"id":27062,"menu_item_id":71,"quantity":1},{"id":27063,"menu_item_id":61,"quantity":2},{"id":27064,"menu_item_id":56,"quantity":2},{"id":27065,"menu_item_id":5,"quantity":2},{"id":27066,"menu_item_id":416,"quantity":6},{"id":27067,"menu_item_id":396,"quantity":3},{"id":27068,"menu_item_id":50,"quantity":4},{"id":27069,"menu_item_id":103,"quantity":1},{"id":null,"menu_item_id":412,"quantity":8}]} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5618,"has_item_changes":true,"old_items_count":11,"new_items_count":12,"old_items_map_keys":["95|1|","106|1|","114|1|","71|1|","61|2|","56|2|","5|2|","416|6|","396|3|","50|4|","103|1|"],"new_items_map_keys":["95|1|","106|1|","114|1|","71|1|","61|2|","56|2|","5|2|","416|6|","396|3|","50|4|","103|1|","412|8|"]} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5618,"order_number":"AZS-070326-026"} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-026","replaced_order_id":5618} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5624,"items_count":12,"items":[{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":71,"quantity":1,"price":"1199.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":416,"quantity":6,"price":"70.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":4,"price":"129.00"},{"menu_item_id":103,"quantity":1,"price":"2599.00"},{"menu_item_id":412,"quantity":8,"price":"220.00"}]} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5624,"item_index":0,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5624}} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5624,"item_index":0,"menu_item_id":95} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5624,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5624}} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5624,"item_index":1,"menu_item_id":106} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5624,"item_index":2,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5624}} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5624,"item_index":2,"menu_item_id":114} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5624,"item_index":3,"item_data":{"menu_item_id":71,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Special Afghani Boti (10 pcs)","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5624}} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5624,"item_index":3,"menu_item_id":71} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5624,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5624}} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5624,"item_index":4,"menu_item_id":61} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5624,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5624}} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5624,"item_index":5,"menu_item_id":56} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5624,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5624}} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5624,"item_index":6,"menu_item_id":5} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5624,"item_index":7,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":6,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":420.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5624}} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5624,"item_index":7,"menu_item_id":416} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5624,"item_index":8,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5624}} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5624,"item_index":8,"menu_item_id":396} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5624,"item_index":9,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5624}} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5624,"item_index":9,"menu_item_id":50} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5624,"item_index":10,"item_data":{"menu_item_id":103,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Full","quantity":1,"price":"2599.00","discount_percent":0.0,"discount_amount":0.0,"total":2599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5624}} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5624,"item_index":10,"menu_item_id":103} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5624,"item_index":11,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":8,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":1760.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5624}} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5624,"item_index":11,"menu_item_id":412} 
[2026-03-07 23:08:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5618,"new_order_id":5624,"order_number":"AZS-070326-026"} 
[2026-03-07 23:11:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5624,"item_index":0,"item_id":27059} 
[2026-03-07 23:11:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5624,"item_index":1,"item_id":27060} 
[2026-03-07 23:11:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5624,"item_index":2,"item_id":27061} 
[2026-03-07 23:11:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5624,"item_index":3,"item_id":27062} 
[2026-03-07 23:11:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5624,"item_index":4,"item_id":27063} 
[2026-03-07 23:11:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5624,"item_index":5,"item_id":27064} 
[2026-03-07 23:11:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5624,"item_index":6,"item_id":27065} 
[2026-03-07 23:11:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5624,"item_index":7,"item_id":27066} 
[2026-03-07 23:11:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5624,"item_index":8,"item_id":27067} 
[2026-03-07 23:11:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5624,"item_index":9,"item_id":27068} 
[2026-03-07 23:11:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5624,"item_index":10,"item_id":27069} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":12,"order_id":5624,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":27059},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":27060},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":27061},{"menu_item_id":71,"quantity":1,"discount_percent":0,"notes":null,"id":27062},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":27063},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":27064},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":27065},{"menu_item_id":416,"quantity":9,"discount_percent":0,"notes":null,"id":27066},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":27067},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null,"id":27068},{"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null,"id":27069},{"menu_item_id":412,"quantity":8,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":71,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":9,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":8,"discount_percent":0,"notes":null}]} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5624,"items_count":12} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":12,"items_to_remove":[27077,27078,27079,27080,27081,27082,27083,27084,27085,27086,27087,27088],"items":[{"id":null,"menu_item_id":95,"quantity":1},{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":71,"quantity":1},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":416,"quantity":9},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":50,"quantity":4},{"id":null,"menu_item_id":103,"quantity":1},{"id":null,"menu_item_id":412,"quantity":8}]} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5624,"has_item_changes":true,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["95|1|","106|1|","114|1|","71|1|","61|2|","56|2|","5|2|","416|6|","396|3|","50|4|","103|1|","412|8|"],"new_items_map_keys":["95|1|","106|1|","114|1|","71|1|","61|2|","56|2|","5|2|","416|9|","396|3|","50|4|","103|1|","412|8|"]} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5624,"order_number":"AZS-070326-026"} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-026","replaced_order_id":5624} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5625,"items_count":12,"items":[{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":71,"quantity":1,"price":"1199.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":416,"quantity":9,"price":"70.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":4,"price":"129.00"},{"menu_item_id":103,"quantity":1,"price":"2599.00"},{"menu_item_id":412,"quantity":8,"price":"220.00"}]} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5625,"item_index":0,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5625}} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5625,"item_index":0,"menu_item_id":95} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5625,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5625}} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5625,"item_index":1,"menu_item_id":106} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5625,"item_index":2,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5625}} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5625,"item_index":2,"menu_item_id":114} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5625,"item_index":3,"item_data":{"menu_item_id":71,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Special Afghani Boti (10 pcs)","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5625}} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5625,"item_index":3,"menu_item_id":71} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5625,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5625}} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5625,"item_index":4,"menu_item_id":61} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5625,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5625}} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5625,"item_index":5,"menu_item_id":56} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5625,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5625}} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5625,"item_index":6,"menu_item_id":5} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5625,"item_index":7,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":9,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":630.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5625}} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5625,"item_index":7,"menu_item_id":416} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5625,"item_index":8,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5625}} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5625,"item_index":8,"menu_item_id":396} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5625,"item_index":9,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5625}} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5625,"item_index":9,"menu_item_id":50} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5625,"item_index":10,"item_data":{"menu_item_id":103,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Full","quantity":1,"price":"2599.00","discount_percent":0.0,"discount_amount":0.0,"total":2599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5625}} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5625,"item_index":10,"menu_item_id":103} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5625,"item_index":11,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":8,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":1760.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5625}} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5625,"item_index":11,"menu_item_id":412} 
[2026-03-07 23:11:16] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5624,"new_order_id":5625,"order_number":"AZS-070326-026"} 
[2026-03-07 23:20:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5623,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27076}],"validated_items":[{"id":27076,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-07 23:20:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5623,"items_count":1} 
[2026-03-07 23:20:58] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27076,"menu_item_id":6,"quantity":2}]} 
[2026-03-07 23:20:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5623,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-07 23:20:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5623,"order_number":"AZS-070326-028"} 
[2026-03-07 23:20:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5623,"order_number":"AZS-070326-028","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 23:20:58"} 
[2026-03-07 23:23:03] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5627,"order_number":"AZS-070326-030","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":200,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 23:23:03"} 
[2026-03-07 23:23:03] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5627,"order_number":"AZS-070326-030","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 23:23:03"} 
[2026-03-07 23:23:03] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5627,"order_number":"AZS-070326-030","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 23:23:03"} 
[2026-03-07 23:23:03] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5627,"order_number":"AZS-070326-030","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 23:23:03"} 
[2026-03-07 23:23:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5627,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":27102},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":27103},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":27104}],"validated_items":[{"id":27102,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":27103,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"id":27104,"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-07 23:23:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5627,"items_count":3} 
[2026-03-07 23:23:03] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27102,"menu_item_id":425,"quantity":1},{"id":27103,"menu_item_id":286,"quantity":2},{"id":27104,"menu_item_id":422,"quantity":1}]} 
[2026-03-07 23:23:03] local.INFO: PosOrderController::update - Item changes check {"order_id":5627,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["425|1|","286|2|","422|1|"],"new_items_map_keys":["425|1|","286|2|","422|1|"]} 
[2026-03-07 23:23:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5627,"order_number":"AZS-070326-030"} 
[2026-03-07 23:23:03] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5627,"order_number":"AZS-070326-030","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":200,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-07 23:23:03","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 23:23:03"} 
[2026-03-07 23:23:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5627,"order_number":"AZS-070326-030","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 23:23:03"} 
[2026-03-07 23:23:03] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5627,"order_number":"AZS-070326-030","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"200.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-07 23:23:03","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"200.00","database_verification_match":true,"timestamp":"2026-03-07 23:23:03"} 
[2026-03-07 23:26:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":5625,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":27089},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":27090},{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":27091},{"menu_item_id":71,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27092},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27093},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27094},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":27095},{"menu_item_id":416,"quantity":9,"price":70,"discount_percent":0,"notes":null,"id":27096},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":27097},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":27098},{"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null,"id":27099},{"menu_item_id":412,"quantity":8,"price":220,"discount_percent":0,"notes":null,"id":27100}],"validated_items":[{"id":27089,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":27090,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":27091,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":27092,"menu_item_id":71,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27093,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":27094,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":27095,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":27096,"menu_item_id":416,"quantity":9,"price":70,"discount_percent":0,"notes":null},{"id":27097,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":27098,"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"id":27099,"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null},{"id":27100,"menu_item_id":412,"quantity":8,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-07 23:26:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5625,"items_count":12} 
[2026-03-07 23:26:46] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27089,"menu_item_id":95,"quantity":1},{"id":27090,"menu_item_id":106,"quantity":1},{"id":27091,"menu_item_id":114,"quantity":1},{"id":27092,"menu_item_id":71,"quantity":1},{"id":27093,"menu_item_id":61,"quantity":2},{"id":27094,"menu_item_id":56,"quantity":2},{"id":27095,"menu_item_id":5,"quantity":2},{"id":27096,"menu_item_id":416,"quantity":9},{"id":27097,"menu_item_id":396,"quantity":3},{"id":27098,"menu_item_id":50,"quantity":4},{"id":27099,"menu_item_id":103,"quantity":1},{"id":27100,"menu_item_id":412,"quantity":8}]} 
[2026-03-07 23:26:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5625,"has_item_changes":false,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["95|1|","106|1|","114|1|","71|1|","61|2|","56|2|","5|2|","416|9|","396|3|","50|4|","103|1|","412|8|"],"new_items_map_keys":["95|1|","106|1|","114|1|","71|1|","61|2|","56|2|","5|2|","416|9|","396|3|","50|4|","103|1|","412|8|"]} 
[2026-03-07 23:26:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5625,"order_number":"AZS-070326-026"} 
[2026-03-07 23:26:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5625,"order_number":"AZS-070326-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 23:26:46"} 
[2026-03-07 23:28:59] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5625,"order_number":"AZS-070326-026","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":18000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 23:28:59"} 
[2026-03-07 23:28:59] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5625,"order_number":"AZS-070326-026","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":18000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 23:28:59"} 
[2026-03-07 23:28:59] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5625,"order_number":"AZS-070326-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":18000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 23:28:59"} 
[2026-03-07 23:28:59] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5625,"order_number":"AZS-070326-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":18000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 23:28:59"} 
[2026-03-07 23:28:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":5625,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":27089},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":27090},{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":27091},{"menu_item_id":71,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27092},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27093},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27094},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":27095},{"menu_item_id":416,"quantity":9,"price":70,"discount_percent":0,"notes":null,"id":27096},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":27097},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":27098},{"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null,"id":27099},{"menu_item_id":412,"quantity":8,"price":220,"discount_percent":0,"notes":null,"id":27100}],"validated_items":[{"id":27089,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":27090,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":27091,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":27092,"menu_item_id":71,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27093,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":27094,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":27095,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":27096,"menu_item_id":416,"quantity":9,"price":70,"discount_percent":0,"notes":null},{"id":27097,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":27098,"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"id":27099,"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null},{"id":27100,"menu_item_id":412,"quantity":8,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-07 23:28:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5625,"items_count":12} 
[2026-03-07 23:28:59] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27089,"menu_item_id":95,"quantity":1},{"id":27090,"menu_item_id":106,"quantity":1},{"id":27091,"menu_item_id":114,"quantity":1},{"id":27092,"menu_item_id":71,"quantity":1},{"id":27093,"menu_item_id":61,"quantity":2},{"id":27094,"menu_item_id":56,"quantity":2},{"id":27095,"menu_item_id":5,"quantity":2},{"id":27096,"menu_item_id":416,"quantity":9},{"id":27097,"menu_item_id":396,"quantity":3},{"id":27098,"menu_item_id":50,"quantity":4},{"id":27099,"menu_item_id":103,"quantity":1},{"id":27100,"menu_item_id":412,"quantity":8}]} 
[2026-03-07 23:28:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5625,"has_item_changes":false,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["95|1|","106|1|","114|1|","71|1|","61|2|","56|2|","5|2|","416|9|","396|3|","50|4|","103|1|","412|8|"],"new_items_map_keys":["95|1|","106|1|","114|1|","71|1|","61|2|","56|2|","5|2|","416|9|","396|3|","50|4|","103|1|","412|8|"]} 
[2026-03-07 23:28:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5625,"order_number":"AZS-070326-026"} 
[2026-03-07 23:28:59] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5625,"order_number":"AZS-070326-026","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":18000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-07 23:28:59","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 23:28:59"} 
[2026-03-07 23:28:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5625,"order_number":"AZS-070326-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 23:28:59"} 
[2026-03-07 23:28:59] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5625,"order_number":"AZS-070326-026","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"18000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-07 23:28:59","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":18000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"18000.00","database_verification_match":true,"timestamp":"2026-03-07 23:28:59"} 
[2026-03-07 23:33:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T11:33:40.896Z","date_to":"2026-03-07T23:33:40.896Z","per_page":"100"} 
[2026-03-07 23:33:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T11:33:40.914Z","date_to":"2026-03-07T23:33:40.914Z","per_page":"100"} 
[2026-03-07 23:33:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":76,"count":76,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-031","AZS-070326-030","AZS-070326-029","AZS-070326-028","AZS-070326-028","AZS-070326-028","AZS-070326-027","AZS-070326-027","AZS-070326-026","AZS-070326-026","AZS-070326-026","AZS-070326-026","AZS-070326-025","AZS-070326-024","AZS-070326-024","AZS-070326-024","AZS-070326-023","AZS-070326-022","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-020","AZS-070326-020","AZS-070326-019","AZS-070326-019","AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","paid","pending","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","paid","paid","changed","changed","changed","changed","paid","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":45,"paid_count":28,"unpaid_count":3,"unique_order_numbers":31} 
[2026-03-07 23:33:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":76,"count":76,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-031","AZS-070326-030","AZS-070326-029","AZS-070326-028","AZS-070326-028","AZS-070326-028","AZS-070326-027","AZS-070326-027","AZS-070326-026","AZS-070326-026","AZS-070326-026","AZS-070326-026","AZS-070326-025","AZS-070326-024","AZS-070326-024","AZS-070326-024","AZS-070326-023","AZS-070326-022","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-020","AZS-070326-020","AZS-070326-019","AZS-070326-019","AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","paid","pending","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","paid","paid","changed","changed","changed","changed","paid","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":45,"paid_count":28,"unpaid_count":3,"unique_order_numbers":31} 
[2026-03-07 23:33:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T11:33:40.896Z","date_to":"2026-03-07T23:33:40.896Z","per_page":"100"} 
[2026-03-07 23:33:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":76,"count":76,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-031","AZS-070326-030","AZS-070326-029","AZS-070326-028","AZS-070326-028","AZS-070326-028","AZS-070326-027","AZS-070326-027","AZS-070326-026","AZS-070326-026","AZS-070326-026","AZS-070326-026","AZS-070326-025","AZS-070326-024","AZS-070326-024","AZS-070326-024","AZS-070326-023","AZS-070326-022","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-020","AZS-070326-020","AZS-070326-019","AZS-070326-019","AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["pending","paid","pending","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","paid","paid","changed","changed","changed","changed","paid","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":45,"paid_count":28,"unpaid_count":3,"unique_order_numbers":31} 
[2026-03-07 23:38:35] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5623,"order_number":"AZS-070326-028","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":420,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 23:38:35"} 
[2026-03-07 23:38:35] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5623,"order_number":"AZS-070326-028","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":420,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 23:38:35"} 
[2026-03-07 23:38:35] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5623,"order_number":"AZS-070326-028","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":420,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 23:38:35"} 
[2026-03-07 23:38:35] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5623,"order_number":"AZS-070326-028","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":420,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 23:38:35"} 
[2026-03-07 23:38:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5623,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27076}],"validated_items":[{"id":27076,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-07 23:38:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5623,"items_count":1} 
[2026-03-07 23:38:35] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27076,"menu_item_id":6,"quantity":2}]} 
[2026-03-07 23:38:35] local.INFO: PosOrderController::update - Item changes check {"order_id":5623,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-07 23:38:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5623,"order_number":"AZS-070326-028"} 
[2026-03-07 23:38:35] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5623,"order_number":"AZS-070326-028","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":420,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-07 23:38:35","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 23:38:35"} 
[2026-03-07 23:38:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5623,"order_number":"AZS-070326-028","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 23:38:35"} 
[2026-03-07 23:38:35] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5623,"order_number":"AZS-070326-028","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"420.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-07 23:38:35","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":420,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"420.00","database_verification_match":true,"timestamp":"2026-03-07 23:38:35"} 
[2026-03-07 23:39:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5628,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":27105},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27105,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 23:39:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5628,"items_count":3} 
[2026-03-07 23:39:06] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27105,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":416,"quantity":1}]} 
[2026-03-07 23:39:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5628,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|","5|1|","416|1|"]} 
[2026-03-07 23:39:06] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5628,"order_number":"AZS-070326-031"} 
[2026-03-07 23:39:06] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-031","replaced_order_id":5628} 
[2026-03-07 23:39:06] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5629,"items_count":3,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":416,"quantity":1,"price":"70.00"}]} 
[2026-03-07 23:39:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5629,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5629}} 
[2026-03-07 23:39:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5629,"item_index":0,"menu_item_id":411} 
[2026-03-07 23:39:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5629,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5629}} 
[2026-03-07 23:39:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5629,"item_index":1,"menu_item_id":5} 
[2026-03-07 23:39:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5629,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5629}} 
[2026-03-07 23:39:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5629,"item_index":2,"menu_item_id":416} 
[2026-03-07 23:39:06] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5628,"new_order_id":5629,"order_number":"AZS-070326-031"} 
[2026-03-07 23:44:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5626,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":27101},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27101,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-07 23:44:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5626,"items_count":2} 
[2026-03-07 23:44:39] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27101,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1}]} 
[2026-03-07 23:44:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5626,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|","50|1|"]} 
[2026-03-07 23:44:39] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5626,"order_number":"AZS-070326-029"} 
[2026-03-07 23:44:39] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070326-029","replaced_order_id":5626} 
[2026-03-07 23:44:39] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5630,"items_count":2,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"}]} 
[2026-03-07 23:44:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5630,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5630}} 
[2026-03-07 23:44:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5630,"item_index":0,"menu_item_id":411} 
[2026-03-07 23:44:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5630,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5630}} 
[2026-03-07 23:44:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5630,"item_index":1,"menu_item_id":50} 
[2026-03-07 23:44:39] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5626,"new_order_id":5630,"order_number":"AZS-070326-029"} 
[2026-03-07 23:44:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5630,"item_index":0,"item_id":27101} 
[2026-03-07 23:44:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":5630,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27101},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-07 23:44:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5630,"items_count":2} 
[2026-03-07 23:44:44] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[27109,27110],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1}]} 
[2026-03-07 23:44:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5630,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","50|1|"],"new_items_map_keys":["411|1|","50|1|"]} 
[2026-03-07 23:44:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5630,"order_number":"AZS-070326-029"} 
[2026-03-07 23:44:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5630,"order_number":"AZS-070326-029","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 23:44:44"} 
[2026-03-07 23:44:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5629,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27106},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27107},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":27108}],"validated_items":[{"id":27106,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":27107,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27108,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-07 23:44:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5629,"items_count":3} 
[2026-03-07 23:44:55] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27106,"menu_item_id":411,"quantity":1},{"id":27107,"menu_item_id":5,"quantity":1},{"id":27108,"menu_item_id":416,"quantity":1}]} 
[2026-03-07 23:44:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5629,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|1|","5|1|","416|1|"],"new_items_map_keys":["411|1|","5|1|","416|1|"]} 
[2026-03-07 23:44:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5629,"order_number":"AZS-070326-031"} 
[2026-03-07 23:44:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5629,"order_number":"AZS-070326-031","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-07 23:44:55"} 
[2026-03-07 23:46:52] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5630,"order_number":"AZS-070326-029","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 23:46:52"} 
[2026-03-07 23:46:52] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5630,"order_number":"AZS-070326-029","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 23:46:52"} 
[2026-03-07 23:46:52] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5630,"order_number":"AZS-070326-029","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 23:46:52"} 
[2026-03-07 23:46:52] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5630,"order_number":"AZS-070326-029","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 23:46:52"} 
[2026-03-07 23:46:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5630,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27109},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":27110}],"validated_items":[{"id":27109,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":27110,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-07 23:46:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5630,"items_count":2} 
[2026-03-07 23:46:52] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27109,"menu_item_id":411,"quantity":1},{"id":27110,"menu_item_id":50,"quantity":1}]} 
[2026-03-07 23:46:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5630,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","50|1|"],"new_items_map_keys":["411|1|","50|1|"]} 
[2026-03-07 23:46:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5630,"order_number":"AZS-070326-029"} 
[2026-03-07 23:46:52] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5630,"order_number":"AZS-070326-029","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-07 23:46:52","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 23:46:52"} 
[2026-03-07 23:46:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5630,"order_number":"AZS-070326-029","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 23:46:52"} 
[2026-03-07 23:46:52] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5630,"order_number":"AZS-070326-029","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-07 23:46:52","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-07 23:46:52"} 
[2026-03-07 23:54:53] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5629,"order_number":"AZS-070326-031","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 23:54:53"} 
[2026-03-07 23:54:53] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5629,"order_number":"AZS-070326-031","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-07 23:54:53"} 
[2026-03-07 23:54:53] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5629,"order_number":"AZS-070326-031","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 23:54:53"} 
[2026-03-07 23:54:53] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5629,"order_number":"AZS-070326-031","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-07 23:54:53"} 
[2026-03-07 23:54:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5629,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27106},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27107},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":27108}],"validated_items":[{"id":27106,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":27107,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27108,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-07 23:54:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5629,"items_count":3} 
[2026-03-07 23:54:53] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27106,"menu_item_id":411,"quantity":1},{"id":27107,"menu_item_id":5,"quantity":1},{"id":27108,"menu_item_id":416,"quantity":1}]} 
[2026-03-07 23:54:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5629,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|1|","5|1|","416|1|"],"new_items_map_keys":["411|1|","5|1|","416|1|"]} 
[2026-03-07 23:54:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5629,"order_number":"AZS-070326-031"} 
[2026-03-07 23:54:53] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5629,"order_number":"AZS-070326-031","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-07 23:54:53","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-07 23:54:53"} 
[2026-03-07 23:54:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5629,"order_number":"AZS-070326-031","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-07 23:54:53"} 
[2026-03-07 23:54:53] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5629,"order_number":"AZS-070326-031","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-07 23:54:53","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-07 23:54:53"} 
[2026-03-07 23:55:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T11:55:04.699Z","date_to":"2026-03-07T23:55:04.699Z","per_page":"100"} 
[2026-03-07 23:55:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":78,"count":78,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-031","AZS-070326-031","AZS-070326-030","AZS-070326-029","AZS-070326-029","AZS-070326-028","AZS-070326-028","AZS-070326-028","AZS-070326-027","AZS-070326-027","AZS-070326-026","AZS-070326-026","AZS-070326-026","AZS-070326-026","AZS-070326-025","AZS-070326-024","AZS-070326-024","AZS-070326-024","AZS-070326-023","AZS-070326-022","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-020","AZS-070326-020","AZS-070326-019","AZS-070326-019","AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","paid","paid","changed","changed","changed","changed","paid","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":47,"paid_count":31,"unpaid_count":0,"unique_order_numbers":31} 
[2026-03-07 23:55:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T11:55:04.679Z","date_to":"2026-03-07T23:55:04.679Z","per_page":"100"} 
[2026-03-07 23:55:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":78,"count":78,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-031","AZS-070326-031","AZS-070326-030","AZS-070326-029","AZS-070326-029","AZS-070326-028","AZS-070326-028","AZS-070326-028","AZS-070326-027","AZS-070326-027","AZS-070326-026","AZS-070326-026","AZS-070326-026","AZS-070326-026","AZS-070326-025","AZS-070326-024","AZS-070326-024","AZS-070326-024","AZS-070326-023","AZS-070326-022","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-020","AZS-070326-020","AZS-070326-019","AZS-070326-019","AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","paid","paid","changed","changed","changed","changed","paid","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":47,"paid_count":31,"unpaid_count":0,"unique_order_numbers":31} 
[2026-03-07 23:55:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T11:55:04.679Z","date_to":"2026-03-07T23:55:04.679Z","per_page":"100"} 
[2026-03-07 23:55:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":78,"count":78,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070326-031","AZS-070326-031","AZS-070326-030","AZS-070326-029","AZS-070326-029","AZS-070326-028","AZS-070326-028","AZS-070326-028","AZS-070326-027","AZS-070326-027","AZS-070326-026","AZS-070326-026","AZS-070326-026","AZS-070326-026","AZS-070326-025","AZS-070326-024","AZS-070326-024","AZS-070326-024","AZS-070326-023","AZS-070326-022","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-021","AZS-070326-020","AZS-070326-020","AZS-070326-019","AZS-070326-019","AZS-070326-018","AZS-070326-017","AZS-070326-017","AZS-070326-017","AZS-070326-016","AZS-070326-016","AZS-070326-015","AZS-070326-015","AZS-070326-015","AZS-070326-014","AZS-070326-014","AZS-070326-013","AZS-070326-013","AZS-070326-012","AZS-070326-012","AZS-070326-012","AZS-070326-011","AZS-070326-011","AZS-070326-010","AZS-070326-009","AZS-070326-009","AZS-070326-009","AZS-070326-008","AZS-070326-008","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-007","AZS-070326-006","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-005","AZS-070326-004","AZS-070326-004","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-003","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-002","AZS-070326-001","AZS-070326-001","AZS-070326-001","AZS-070326-001"],"order_statuses":["paid","changed","paid","paid","changed","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","paid","paid","paid","changed","changed","changed","changed","paid","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","paid","changed","paid","changed","paid","changed","changed","paid","changed","paid","paid","changed","changed","paid","changed","paid","changed","changed","changed","paid","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed","changed","paid","changed","changed","changed"],"deleted_count":47,"paid_count":31,"unpaid_count":0,"unique_order_numbers":31} 
[2026-03-08 13:54:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T01:54:02.754Z","date_to":"2026-03-08T13:54:02.754Z","per_page":"100"} 
[2026-03-08 13:54:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T01:54:02.761Z","date_to":"2026-03-08T13:54:02.761Z","per_page":"100"} 
[2026-03-08 13:54:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-003","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":3,"unique_order_numbers":3} 
[2026-03-08 13:54:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-003","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":3,"unique_order_numbers":3} 
[2026-03-08 13:54:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T01:54:02.754Z","date_to":"2026-03-08T13:54:02.754Z","per_page":"100"} 
[2026-03-08 13:54:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-003","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":3,"unique_order_numbers":3} 
[2026-03-08 13:54:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5632,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"discount_percent":0,"notes":null,"id":27112},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":27113},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":27114},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27115},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27116},{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":27117},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27112,"menu_item_id":100,"quantity":1,"discount_percent":0,"notes":null},{"id":27113,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":27114,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":27115,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27116,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27117,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 13:54:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5632,"items_count":8} 
[2026-03-08 13:54:41] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27112,"menu_item_id":100,"quantity":1},{"id":27113,"menu_item_id":50,"quantity":1},{"id":27114,"menu_item_id":396,"quantity":1},{"id":27115,"menu_item_id":61,"quantity":1},{"id":27116,"menu_item_id":56,"quantity":1},{"id":27117,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 13:54:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5632,"has_item_changes":true,"old_items_count":6,"new_items_count":8,"old_items_map_keys":["100|1|","50|1|","396|1|","61|1|","56|1|","417|1|"],"new_items_map_keys":["100|1|","50|1|","396|1|","61|1|","56|1|","417|1|","2|2|","5|1|"]} 
[2026-03-08 13:54:42] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5632,"order_number":"AZS-080326-002"} 
[2026-03-08 13:54:42] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-002","replaced_order_id":5632} 
[2026-03-08 13:54:42] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5634,"items_count":8,"items":[{"menu_item_id":100,"quantity":1,"price":"1299.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-08 13:54:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5634,"item_index":0,"item_data":{"menu_item_id":100,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Half","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5634}} 
[2026-03-08 13:54:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5634,"item_index":0,"menu_item_id":100} 
[2026-03-08 13:54:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5634,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5634}} 
[2026-03-08 13:54:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5634,"item_index":1,"menu_item_id":50} 
[2026-03-08 13:54:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5634,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5634}} 
[2026-03-08 13:54:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5634,"item_index":2,"menu_item_id":396} 
[2026-03-08 13:54:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5634,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5634}} 
[2026-03-08 13:54:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5634,"item_index":3,"menu_item_id":61} 
[2026-03-08 13:54:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5634,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5634}} 
[2026-03-08 13:54:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5634,"item_index":4,"menu_item_id":56} 
[2026-03-08 13:54:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5634,"item_index":5,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5634}} 
[2026-03-08 13:54:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5634,"item_index":5,"menu_item_id":417} 
[2026-03-08 13:54:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5634,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5634}} 
[2026-03-08 13:54:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5634,"item_index":6,"menu_item_id":2} 
[2026-03-08 13:54:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5634,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5634}} 
[2026-03-08 13:54:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5634,"item_index":7,"menu_item_id":5} 
[2026-03-08 13:54:42] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5632,"new_order_id":5634,"order_number":"AZS-080326-002"} 
[2026-03-08 13:54:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5634,"item_index":0,"item_id":27112} 
[2026-03-08 13:54:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5634,"item_index":1,"item_id":27113} 
[2026-03-08 13:54:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5634,"item_index":2,"item_id":27114} 
[2026-03-08 13:54:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5634,"item_index":3,"item_id":27115} 
[2026-03-08 13:54:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5634,"item_index":4,"item_id":27116} 
[2026-03-08 13:54:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5634,"item_index":5,"item_id":27117} 
[2026-03-08 13:54:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":8,"order_id":5634,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":27112},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":27113},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":27114},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27115},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27116},{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":27117},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-08 13:54:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5634,"items_count":8} 
[2026-03-08 13:54:51] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":8,"items_to_remove":[27119,27120,27121,27122,27123,27124,27125,27126],"items":[{"id":null,"menu_item_id":100,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 13:54:51] local.INFO: PosOrderController::update - Item changes check {"order_id":5634,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["100|1|","50|1|","396|1|","61|1|","56|1|","417|1|","2|2|","5|1|"],"new_items_map_keys":["100|1|","50|1|","396|1|","61|1|","56|1|","417|1|","2|2|","5|1|"]} 
[2026-03-08 13:54:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5634,"order_number":"AZS-080326-002"} 
[2026-03-08 13:54:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5634,"order_number":"AZS-080326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-08 13:54:51"} 
[2026-03-08 13:56:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5634,"item_index":0,"item_id":27112} 
[2026-03-08 13:56:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5634,"item_index":1,"item_id":27113} 
[2026-03-08 13:56:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5634,"item_index":2,"item_id":27114} 
[2026-03-08 13:56:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5634,"item_index":3,"item_id":27115} 
[2026-03-08 13:56:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5634,"item_index":4,"item_id":27116} 
[2026-03-08 13:56:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5634,"item_index":5,"item_id":27117} 
[2026-03-08 13:56:31] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5634,"order_number":"AZS-080326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 13:56:31"} 
[2026-03-08 13:56:31] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5634,"order_number":"AZS-080326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 13:56:31"} 
[2026-03-08 13:56:31] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5634,"order_number":"AZS-080326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 13:56:31"} 
[2026-03-08 13:56:31] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5634,"order_number":"AZS-080326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 13:56:31"} 
[2026-03-08 13:56:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":8,"order_id":5634,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":27112},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":27113},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":27114},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27115},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27116},{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":27117},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-08 13:56:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5634,"items_count":8} 
[2026-03-08 13:56:31] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":8,"items_to_remove":[27119,27120,27121,27122,27123,27124,27125,27126],"items":[{"id":null,"menu_item_id":100,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 13:56:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5634,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["100|1|","50|1|","396|1|","61|1|","56|1|","417|1|","2|2|","5|1|"],"new_items_map_keys":["100|1|","50|1|","396|1|","61|1|","56|1|","417|1|","2|2|","5|1|"]} 
[2026-03-08 13:56:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5634,"order_number":"AZS-080326-002"} 
[2026-03-08 13:56:31] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5634,"order_number":"AZS-080326-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-08 13:56:31","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-08 13:56:31"} 
[2026-03-08 13:56:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5634,"order_number":"AZS-080326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-08 13:56:31"} 
[2026-03-08 13:56:31] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5634,"order_number":"AZS-080326-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-08 13:56:31","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-03-08 13:56:31"} 
[2026-03-08 14:15:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T02:15:52.960Z","date_to":"2026-03-08T14:15:52.960Z","per_page":"100"} 
[2026-03-08 14:15:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":4,"count":4,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","paid","changed","pending"],"deleted_count":1,"paid_count":1,"unpaid_count":2,"unique_order_numbers":3} 
[2026-03-08 14:15:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T02:15:52.973Z","date_to":"2026-03-08T14:15:52.973Z","per_page":"100"} 
[2026-03-08 14:15:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":4,"count":4,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","paid","changed","pending"],"deleted_count":1,"paid_count":1,"unpaid_count":2,"unique_order_numbers":3} 
[2026-03-08 14:15:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T02:15:52.960Z","date_to":"2026-03-08T14:15:52.960Z","per_page":"100"} 
[2026-03-08 14:15:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":4,"count":4,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","paid","changed","pending"],"deleted_count":1,"paid_count":1,"unpaid_count":2,"unique_order_numbers":3} 
[2026-03-08 14:17:11] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5631,"order_number":"AZS-080326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 14:17:11"} 
[2026-03-08 14:17:11] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5631,"order_number":"AZS-080326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 14:17:11"} 
[2026-03-08 14:17:11] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5631,"order_number":"AZS-080326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 14:17:11"} 
[2026-03-08 14:17:11] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5631,"order_number":"AZS-080326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 14:17:11"} 
[2026-03-08 14:17:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5631,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":27111}],"validated_items":[{"id":27111,"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-08 14:17:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5631,"items_count":1} 
[2026-03-08 14:17:11] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27111,"menu_item_id":417,"quantity":2}]} 
[2026-03-08 14:17:11] local.INFO: PosOrderController::update - Item changes check {"order_id":5631,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|2|"],"new_items_map_keys":["417|2|"]} 
[2026-03-08 14:17:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5631,"order_number":"AZS-080326-001"} 
[2026-03-08 14:17:11] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5631,"order_number":"AZS-080326-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-08 14:17:11","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-08 14:17:11"} 
[2026-03-08 14:17:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5631,"order_number":"AZS-080326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-08 14:17:11"} 
[2026-03-08 14:17:11] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5631,"order_number":"AZS-080326-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-08 14:17:11","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-08 14:17:11"} 
[2026-03-08 14:36:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5635,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":27127},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":27128},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null,"id":27129},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":27130},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27131},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27132},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27127,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":27128,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":27129,"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"id":27130,"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"id":27131,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27132,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 14:36:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5635,"items_count":7} 
[2026-03-08 14:36:18] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27127,"menu_item_id":114,"quantity":1},{"id":27128,"menu_item_id":396,"quantity":2},{"id":27129,"menu_item_id":55,"quantity":2},{"id":27130,"menu_item_id":61,"quantity":4},{"id":27131,"menu_item_id":56,"quantity":1},{"id":27132,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1}]} 
[2026-03-08 14:36:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5635,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["114|1|","396|2|","55|2|","61|4|","56|1|","5|1|"],"new_items_map_keys":["114|1|","396|2|","55|2|","61|4|","56|1|","5|1|","62|1|"]} 
[2026-03-08 14:36:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5635,"order_number":"AZS-080326-004"} 
[2026-03-08 14:36:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-004","replaced_order_id":5635} 
[2026-03-08 14:36:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5636,"items_count":7,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":61,"quantity":4,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"}]} 
[2026-03-08 14:36:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5636,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5636}} 
[2026-03-08 14:36:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5636,"item_index":0,"menu_item_id":114} 
[2026-03-08 14:36:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5636,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5636}} 
[2026-03-08 14:36:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5636,"item_index":1,"menu_item_id":396} 
[2026-03-08 14:36:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5636,"item_index":2,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5636}} 
[2026-03-08 14:36:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5636,"item_index":2,"menu_item_id":55} 
[2026-03-08 14:36:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5636,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5636}} 
[2026-03-08 14:36:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5636,"item_index":3,"menu_item_id":61} 
[2026-03-08 14:36:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5636,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5636}} 
[2026-03-08 14:36:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5636,"item_index":4,"menu_item_id":56} 
[2026-03-08 14:36:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5636,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5636}} 
[2026-03-08 14:36:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5636,"item_index":5,"menu_item_id":5} 
[2026-03-08 14:36:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5636,"item_index":6,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5636}} 
[2026-03-08 14:36:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5636,"item_index":6,"menu_item_id":62} 
[2026-03-08 14:36:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5635,"new_order_id":5636,"order_number":"AZS-080326-004"} 
[2026-03-08 15:14:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5636,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":27133},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":27134},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null,"id":27135},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":27136},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27137},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27138},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":27139},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27133,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":27134,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":27135,"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"id":27136,"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"id":27137,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27138,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":27139,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 15:14:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5636,"items_count":8} 
[2026-03-08 15:14:46] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27133,"menu_item_id":114,"quantity":1},{"id":27134,"menu_item_id":396,"quantity":2},{"id":27135,"menu_item_id":55,"quantity":2},{"id":27136,"menu_item_id":61,"quantity":4},{"id":27137,"menu_item_id":56,"quantity":1},{"id":27138,"menu_item_id":5,"quantity":1},{"id":27139,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-08 15:14:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5636,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["114|1|","396|2|","55|2|","61|4|","56|1|","5|1|","62|1|"],"new_items_map_keys":["114|1|","396|2|","55|2|","61|4|","56|1|","5|1|","62|1|","3|1|"]} 
[2026-03-08 15:14:46] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5636,"order_number":"AZS-080326-004"} 
[2026-03-08 15:14:46] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-004","replaced_order_id":5636} 
[2026-03-08 15:14:46] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5638,"items_count":8,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":61,"quantity":4,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-08 15:14:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5638,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5638}} 
[2026-03-08 15:14:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5638,"item_index":0,"menu_item_id":114} 
[2026-03-08 15:14:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5638,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5638}} 
[2026-03-08 15:14:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5638,"item_index":1,"menu_item_id":396} 
[2026-03-08 15:14:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5638,"item_index":2,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5638}} 
[2026-03-08 15:14:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5638,"item_index":2,"menu_item_id":55} 
[2026-03-08 15:14:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5638,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5638}} 
[2026-03-08 15:14:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5638,"item_index":3,"menu_item_id":61} 
[2026-03-08 15:14:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5638,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5638}} 
[2026-03-08 15:14:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5638,"item_index":4,"menu_item_id":56} 
[2026-03-08 15:14:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5638,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5638}} 
[2026-03-08 15:14:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5638,"item_index":5,"menu_item_id":5} 
[2026-03-08 15:14:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5638,"item_index":6,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5638}} 
[2026-03-08 15:14:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5638,"item_index":6,"menu_item_id":62} 
[2026-03-08 15:14:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5638,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5638}} 
[2026-03-08 15:14:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5638,"item_index":7,"menu_item_id":3} 
[2026-03-08 15:14:46] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5636,"new_order_id":5638,"order_number":"AZS-080326-004"} 
[2026-03-08 15:26:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5638,"item_index":0,"item_id":27133} 
[2026-03-08 15:26:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5638,"item_index":1,"item_id":27134} 
[2026-03-08 15:26:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5638,"item_index":2,"item_id":27135} 
[2026-03-08 15:26:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5638,"item_index":3,"item_id":27136} 
[2026-03-08 15:26:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5638,"item_index":4,"item_id":27137} 
[2026-03-08 15:26:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5638,"item_index":5,"item_id":27138} 
[2026-03-08 15:26:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5638,"item_index":6,"item_id":27139} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":8,"order_id":5638,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":27133},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":27134},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null,"id":27135},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":27136},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27137},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27138},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":27139},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":23,"quantity":8,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":23,"quantity":8,"discount_percent":0,"notes":null}]} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5638,"items_count":9} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":8,"items_to_remove":[27141,27142,27143,27144,27145,27146,27147,27148],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":55,"quantity":2},{"id":null,"menu_item_id":61,"quantity":4},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":23,"quantity":8}]} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5638,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["114|1|","396|2|","55|2|","61|4|","56|1|","5|1|","62|1|","3|1|"],"new_items_map_keys":["114|1|","396|2|","55|2|","61|4|","56|1|","5|1|","62|1|","3|1|","23|8|"]} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5638,"order_number":"AZS-080326-004"} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-004","replaced_order_id":5638} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5639,"items_count":9,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":61,"quantity":4,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":23,"quantity":8,"price":"249.00"}]} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5639,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5639}} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5639,"item_index":0,"menu_item_id":114} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5639,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5639}} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5639,"item_index":1,"menu_item_id":396} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5639,"item_index":2,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5639}} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5639,"item_index":2,"menu_item_id":55} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5639,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5639}} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5639,"item_index":3,"menu_item_id":61} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5639,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5639}} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5639,"item_index":4,"menu_item_id":56} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5639,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5639}} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5639,"item_index":5,"menu_item_id":5} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5639,"item_index":6,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5639}} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5639,"item_index":6,"menu_item_id":62} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5639,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5639}} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5639,"item_index":7,"menu_item_id":3} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5639,"item_index":8,"item_data":{"menu_item_id":23,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Vanilla","quantity":8,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":1992.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5639}} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5639,"item_index":8,"menu_item_id":23} 
[2026-03-08 15:26:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5638,"new_order_id":5639,"order_number":"AZS-080326-004"} 
[2026-03-08 15:39:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5639,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":27149},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27150},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":27151},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":27152},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27153},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27154},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":27155},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27156},{"menu_item_id":23,"quantity":8,"price":249,"discount_percent":0,"notes":null,"id":27157}],"validated_items":[{"id":27149,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":27150,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27151,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":27152,"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":27153,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27154,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27155,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":27156,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":27157,"menu_item_id":23,"quantity":8,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-08 15:39:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5639,"items_count":9} 
[2026-03-08 15:39:00] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27149,"menu_item_id":114,"quantity":1},{"id":27150,"menu_item_id":396,"quantity":2},{"id":27151,"menu_item_id":55,"quantity":2},{"id":27152,"menu_item_id":61,"quantity":4},{"id":27153,"menu_item_id":56,"quantity":1},{"id":27154,"menu_item_id":5,"quantity":1},{"id":27155,"menu_item_id":62,"quantity":1},{"id":27156,"menu_item_id":3,"quantity":1},{"id":27157,"menu_item_id":23,"quantity":8}]} 
[2026-03-08 15:39:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5639,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["114|1|","396|2|","55|2|","61|4|","56|1|","5|1|","62|1|","3|1|","23|8|"],"new_items_map_keys":["114|1|","396|2|","55|2|","61|4|","56|1|","5|1|","62|1|","3|1|","23|8|"]} 
[2026-03-08 15:39:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5639,"order_number":"AZS-080326-004"} 
[2026-03-08 15:39:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5639,"order_number":"AZS-080326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-08 15:39:00"} 
[2026-03-08 15:39:21] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5633,"order_number":"AZS-080326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 15:39:21"} 
[2026-03-08 15:39:21] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5633,"order_number":"AZS-080326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 15:39:21"} 
[2026-03-08 15:39:21] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5633,"order_number":"AZS-080326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 15:39:21"} 
[2026-03-08 15:39:21] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5633,"order_number":"AZS-080326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 15:39:21"} 
[2026-03-08 15:39:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5633,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":27118}],"validated_items":[{"id":27118,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-08 15:39:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5633,"items_count":1} 
[2026-03-08 15:39:21] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27118,"menu_item_id":417,"quantity":1}]} 
[2026-03-08 15:39:21] local.INFO: PosOrderController::update - Item changes check {"order_id":5633,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-08 15:39:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5633,"order_number":"AZS-080326-003"} 
[2026-03-08 15:39:21] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5633,"order_number":"AZS-080326-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-08 15:39:21","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-08 15:39:21"} 
[2026-03-08 15:39:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5633,"order_number":"AZS-080326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-08 15:39:21"} 
[2026-03-08 15:39:21] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5633,"order_number":"AZS-080326-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-08 15:39:21","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-08 15:39:21"} 
[2026-03-08 15:39:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5637,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null,"id":27140}],"validated_items":[{"id":27140,"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 15:39:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5637,"items_count":1} 
[2026-03-08 15:39:56] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27140,"menu_item_id":386,"quantity":1}]} 
[2026-03-08 15:39:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5637,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|"]} 
[2026-03-08 15:39:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5637,"order_number":"AZS-080326-005"} 
[2026-03-08 15:39:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5637,"order_number":"AZS-080326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-08 15:39:56"} 
[2026-03-08 15:41:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5639,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":27149},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27150},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":27151},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":27152},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27153},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27154},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":27155},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27156},{"menu_item_id":23,"quantity":8,"price":249,"discount_percent":0,"notes":null,"id":27157}],"validated_items":[{"id":27149,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":27150,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27151,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":27152,"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":27153,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27154,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27155,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":27156,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":27157,"menu_item_id":23,"quantity":8,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-08 15:41:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5639,"items_count":9} 
[2026-03-08 15:41:43] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27149,"menu_item_id":114,"quantity":1},{"id":27150,"menu_item_id":396,"quantity":2},{"id":27151,"menu_item_id":55,"quantity":2},{"id":27152,"menu_item_id":61,"quantity":4},{"id":27153,"menu_item_id":56,"quantity":1},{"id":27154,"menu_item_id":5,"quantity":1},{"id":27155,"menu_item_id":62,"quantity":1},{"id":27156,"menu_item_id":3,"quantity":1},{"id":27157,"menu_item_id":23,"quantity":8}]} 
[2026-03-08 15:41:43] local.INFO: PosOrderController::update - Item changes check {"order_id":5639,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["114|1|","396|2|","55|2|","61|4|","56|1|","5|1|","62|1|","3|1|","23|8|"],"new_items_map_keys":["114|1|","396|2|","55|2|","61|4|","56|1|","5|1|","62|1|","3|1|","23|8|"]} 
[2026-03-08 15:41:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5639,"order_number":"AZS-080326-004"} 
[2026-03-08 15:41:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5639,"order_number":"AZS-080326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-08 15:41:43"} 
[2026-03-08 15:45:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T03:45:43.555Z","date_to":"2026-03-08T15:45:43.555Z","per_page":"100"} 
[2026-03-08 15:45:45] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending","pending","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":4,"paid_count":3,"unpaid_count":4,"unique_order_numbers":7} 
[2026-03-08 15:45:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T03:45:43.539Z","date_to":"2026-03-08T15:45:43.539Z","per_page":"100"} 
[2026-03-08 15:45:45] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending","pending","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":4,"paid_count":3,"unpaid_count":4,"unique_order_numbers":7} 
[2026-03-08 15:45:46] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T03:45:43.539Z","date_to":"2026-03-08T15:45:43.539Z","per_page":"100"} 
[2026-03-08 15:45:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending","pending","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":4,"paid_count":3,"unpaid_count":4,"unique_order_numbers":7} 
[2026-03-08 15:51:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T03:51:17.147Z","date_to":"2026-03-08T15:51:17.147Z","per_page":"100"} 
[2026-03-08 15:51:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending","pending","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":4,"paid_count":3,"unpaid_count":4,"unique_order_numbers":7} 
[2026-03-08 15:51:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T03:51:17.162Z","date_to":"2026-03-08T15:51:17.162Z","per_page":"100"} 
[2026-03-08 15:51:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending","pending","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":4,"paid_count":3,"unpaid_count":4,"unique_order_numbers":7} 
[2026-03-08 15:51:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T03:51:17.147Z","date_to":"2026-03-08T15:51:17.147Z","per_page":"100"} 
[2026-03-08 15:51:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending","pending","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":4,"paid_count":3,"unpaid_count":4,"unique_order_numbers":7} 
[2026-03-08 15:53:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5639,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":27149},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27150},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":27151},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":27152},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27153},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27154},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":27155},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27156},{"menu_item_id":23,"quantity":8,"price":249,"discount_percent":0,"notes":null,"id":27157}],"validated_items":[{"id":27149,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":27150,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27151,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":27152,"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":27153,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27154,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27155,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":27156,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":27157,"menu_item_id":23,"quantity":8,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-08 15:53:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5639,"items_count":9} 
[2026-03-08 15:53:08] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27149,"menu_item_id":114,"quantity":1},{"id":27150,"menu_item_id":396,"quantity":2},{"id":27151,"menu_item_id":55,"quantity":2},{"id":27152,"menu_item_id":61,"quantity":4},{"id":27153,"menu_item_id":56,"quantity":1},{"id":27154,"menu_item_id":5,"quantity":1},{"id":27155,"menu_item_id":62,"quantity":1},{"id":27156,"menu_item_id":3,"quantity":1},{"id":27157,"menu_item_id":23,"quantity":8}]} 
[2026-03-08 15:53:08] local.INFO: PosOrderController::update - Item changes check {"order_id":5639,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["114|1|","396|2|","55|2|","61|4|","56|1|","5|1|","62|1|","3|1|","23|8|"],"new_items_map_keys":["114|1|","396|2|","55|2|","61|4|","56|1|","5|1|","62|1|","3|1|","23|8|"]} 
[2026-03-08 15:53:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5639,"order_number":"AZS-080326-004"} 
[2026-03-08 15:53:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5639,"order_number":"AZS-080326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-08 15:53:08"} 
[2026-03-08 16:05:22] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5639,"order_number":"AZS-080326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 16:05:22"} 
[2026-03-08 16:05:22] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5639,"order_number":"AZS-080326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 16:05:22"} 
[2026-03-08 16:05:22] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5639,"order_number":"AZS-080326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 16:05:22"} 
[2026-03-08 16:05:22] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5639,"order_number":"AZS-080326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 16:05:22"} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5639,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":27149},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27150},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":27151},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27152},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27153},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27154},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":27155},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27156},{"menu_item_id":23,"quantity":8,"price":249,"discount_percent":0,"notes":null,"id":27157}],"validated_items":[{"id":27149,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":27150,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27151,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":27152,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":27153,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27154,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27155,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":27156,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":27157,"menu_item_id":23,"quantity":8,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5639,"items_count":9} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27149,"menu_item_id":114,"quantity":1},{"id":27150,"menu_item_id":396,"quantity":2},{"id":27151,"menu_item_id":55,"quantity":2},{"id":27152,"menu_item_id":61,"quantity":2},{"id":27153,"menu_item_id":56,"quantity":1},{"id":27154,"menu_item_id":5,"quantity":1},{"id":27155,"menu_item_id":62,"quantity":1},{"id":27156,"menu_item_id":3,"quantity":1},{"id":27157,"menu_item_id":23,"quantity":8}]} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5639,"has_item_changes":true,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["114|1|","396|2|","55|2|","61|4|","56|1|","5|1|","62|1|","3|1|","23|8|"],"new_items_map_keys":["114|1|","396|2|","55|2|","61|2|","56|1|","5|1|","62|1|","3|1|","23|8|"]} 
[2026-03-08 16:05:22] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5639,"order_number":"AZS-080326-004","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":10000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-08 16:05:22","original_payment_amount":"0.00","grand_total":7343.0,"timestamp":"2026-03-08 16:05:22"} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5639,"order_number":"AZS-080326-004"} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-004","replaced_order_id":5639} 
[2026-03-08 16:05:22] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5639,"new_order_id":5642,"order_number":"AZS-080326-004","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"10000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-08 16:05:22","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-08 16:05:22"} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5642,"items_count":9,"items":[{"menu_item_id":114,"quantity":1,"price":2299.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":55,"quantity":2,"price":159.0},{"menu_item_id":61,"quantity":2,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":62,"quantity":1,"price":1499.0},{"menu_item_id":3,"quantity":1,"price":270.0},{"menu_item_id":23,"quantity":8,"price":249.0}]} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5642,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5642}} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5642,"item_index":0,"menu_item_id":114} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5642,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5642}} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5642,"item_index":1,"menu_item_id":396} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5642,"item_index":2,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5642}} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5642,"item_index":2,"menu_item_id":55} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5642,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5642}} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5642,"item_index":3,"menu_item_id":61} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5642,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5642}} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5642,"item_index":4,"menu_item_id":56} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5642,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5642}} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5642,"item_index":5,"menu_item_id":5} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5642,"item_index":6,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":1499.0,"discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5642}} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5642,"item_index":6,"menu_item_id":62} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5642,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5642}} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5642,"item_index":7,"menu_item_id":3} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5642,"item_index":8,"item_data":{"menu_item_id":23,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Vanilla","quantity":8,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":1992.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5642}} 
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5642,"item_index":8,"menu_item_id":23} 
[2026-03-08 16:05:22] local.ERROR: Error tracking recipe usage for order 5642: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5642, 114, 77, 1, 100, 0.00, Order #AZS-080326-004 - 1x Chicken Shinwari - Full, 2026-03-08 16:05:22, 2026-03-08 16:05:22))  
[2026-03-08 16:05:22] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5639,"new_order_id":5642,"order_number":"AZS-080326-004"} 
[2026-03-08 16:05:23] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5639,"new_order_id":5642,"order_number":"AZS-080326-004","route":"api/orders/5639"} 
[2026-03-08 16:05:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T04:05:27.035Z","date_to":"2026-03-08T16:05:27.035Z","per_page":"100"} 
[2026-03-08 16:05:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":5,"paid_count":4,"unpaid_count":3,"unique_order_numbers":7} 
[2026-03-08 16:05:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T04:05:27.060Z","date_to":"2026-03-08T16:05:27.060Z","per_page":"100"} 
[2026-03-08 16:05:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":5,"paid_count":4,"unpaid_count":3,"unique_order_numbers":7} 
[2026-03-08 16:05:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T04:05:27.035Z","date_to":"2026-03-08T16:05:27.035Z","per_page":"100"} 
[2026-03-08 16:05:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":5,"paid_count":4,"unpaid_count":3,"unique_order_numbers":7} 
[2026-03-08 16:31:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5640,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":27158},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27159},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27160},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27161},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27162}],"validated_items":[{"id":27158,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":27159,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27160,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27161,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27162,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-08 16:31:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5640,"items_count":5} 
[2026-03-08 16:31:09] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27158,"menu_item_id":105,"quantity":1},{"id":27159,"menu_item_id":396,"quantity":2},{"id":27160,"menu_item_id":61,"quantity":1},{"id":27161,"menu_item_id":56,"quantity":1},{"id":27162,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 16:31:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5640,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-08 16:31:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5640,"order_number":"AZS-080326-006"} 
[2026-03-08 16:31:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5640,"order_number":"AZS-080326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-08 16:31:09"} 
[2026-03-08 16:42:54] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5640,"order_number":"AZS-080326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 16:42:54"} 
[2026-03-08 16:42:54] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5640,"order_number":"AZS-080326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 16:42:54"} 
[2026-03-08 16:42:54] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5640,"order_number":"AZS-080326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 16:42:54"} 
[2026-03-08 16:42:54] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5640,"order_number":"AZS-080326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 16:42:54"} 
[2026-03-08 16:42:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5640,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":27158},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27159},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27160},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27161},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27162}],"validated_items":[{"id":27158,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":27159,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27160,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27161,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27162,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-08 16:42:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5640,"items_count":5} 
[2026-03-08 16:42:54] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27158,"menu_item_id":105,"quantity":1},{"id":27159,"menu_item_id":396,"quantity":2},{"id":27160,"menu_item_id":61,"quantity":1},{"id":27161,"menu_item_id":56,"quantity":1},{"id":27162,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 16:42:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5640,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-08 16:42:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5640,"order_number":"AZS-080326-006"} 
[2026-03-08 16:42:54] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5640,"order_number":"AZS-080326-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-08 16:42:54","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-08 16:42:54"} 
[2026-03-08 16:42:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5640,"order_number":"AZS-080326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-08 16:42:54"} 
[2026-03-08 16:42:54] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5640,"order_number":"AZS-080326-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-08 16:42:54","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-08 16:42:54"} 
[2026-03-08 17:13:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5644,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":27179},{"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null,"id":27180}],"validated_items":[{"id":27179,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":27180,"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-08 17:13:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5644,"items_count":2} 
[2026-03-08 17:13:01] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27179,"menu_item_id":13,"quantity":2},{"id":27180,"menu_item_id":286,"quantity":3}]} 
[2026-03-08 17:13:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5644,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|2|","286|3|"],"new_items_map_keys":["13|2|","286|3|"]} 
[2026-03-08 17:13:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5644,"order_number":"AZS-080326-009"} 
[2026-03-08 17:13:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5644,"order_number":"AZS-080326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-08 17:13:01"} 
[2026-03-08 17:17:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5644,"order_number":"AZS-080326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":600,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 17:17:27"} 
[2026-03-08 17:17:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5644,"order_number":"AZS-080326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 17:17:27"} 
[2026-03-08 17:17:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5644,"order_number":"AZS-080326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 17:17:27"} 
[2026-03-08 17:17:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5644,"order_number":"AZS-080326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 17:17:27"} 
[2026-03-08 17:17:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5644,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":27179},{"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null,"id":27180}],"validated_items":[{"id":27179,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":27180,"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-08 17:17:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5644,"items_count":2} 
[2026-03-08 17:17:27] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27179,"menu_item_id":13,"quantity":2},{"id":27180,"menu_item_id":286,"quantity":3}]} 
[2026-03-08 17:17:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5644,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|2|","286|3|"],"new_items_map_keys":["13|2|","286|3|"]} 
[2026-03-08 17:17:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5644,"order_number":"AZS-080326-009"} 
[2026-03-08 17:17:27] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5644,"order_number":"AZS-080326-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":600,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-08 17:17:27","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-08 17:17:27"} 
[2026-03-08 17:17:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5644,"order_number":"AZS-080326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-08 17:17:27"} 
[2026-03-08 17:17:27] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5644,"order_number":"AZS-080326-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"600.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-08 17:17:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"600.00","database_verification_match":true,"timestamp":"2026-03-08 17:17:27"} 
[2026-03-08 17:25:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5643,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":27173},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":27174},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27175},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27176},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":27177},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27178},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27173,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":27174,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":27175,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27176,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27177,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":27178,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 17:25:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5643,"items_count":7} 
[2026-03-08 17:25:11] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27173,"menu_item_id":112,"quantity":1},{"id":27174,"menu_item_id":396,"quantity":3},{"id":27175,"menu_item_id":61,"quantity":1},{"id":27176,"menu_item_id":56,"quantity":1},{"id":27177,"menu_item_id":105,"quantity":1},{"id":27178,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-08 17:25:11] local.INFO: PosOrderController::update - Item changes check {"order_id":5643,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["112|1|","396|3|","61|1|","56|1|","105|1|","5|1|"],"new_items_map_keys":["112|1|","396|3|","61|1|","56|1|","105|1|","5|1|","3|1|"]} 
[2026-03-08 17:25:11] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5643,"order_number":"AZS-080326-008"} 
[2026-03-08 17:25:11] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-008","replaced_order_id":5643} 
[2026-03-08 17:25:11] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5647,"items_count":7,"items":[{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-08 17:25:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5647,"item_index":0,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5647}} 
[2026-03-08 17:25:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5647,"item_index":0,"menu_item_id":112} 
[2026-03-08 17:25:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5647,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5647}} 
[2026-03-08 17:25:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5647,"item_index":1,"menu_item_id":396} 
[2026-03-08 17:25:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5647,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5647}} 
[2026-03-08 17:25:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5647,"item_index":2,"menu_item_id":61} 
[2026-03-08 17:25:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5647,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5647}} 
[2026-03-08 17:25:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5647,"item_index":3,"menu_item_id":56} 
[2026-03-08 17:25:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5647,"item_index":4,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5647}} 
[2026-03-08 17:25:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5647,"item_index":4,"menu_item_id":105} 
[2026-03-08 17:25:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5647,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5647}} 
[2026-03-08 17:25:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5647,"item_index":5,"menu_item_id":5} 
[2026-03-08 17:25:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5647,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5647}} 
[2026-03-08 17:25:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5647,"item_index":6,"menu_item_id":3} 
[2026-03-08 17:25:11] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5643,"new_order_id":5647,"order_number":"AZS-080326-008"} 
[2026-03-08 17:25:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5647,"item_index":0,"item_id":27173} 
[2026-03-08 17:25:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5647,"item_index":1,"item_id":27174} 
[2026-03-08 17:25:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5647,"item_index":2,"item_id":27175} 
[2026-03-08 17:25:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5647,"item_index":3,"item_id":27176} 
[2026-03-08 17:25:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5647,"item_index":4,"item_id":27177} 
[2026-03-08 17:25:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5647,"item_index":5,"item_id":27178} 
[2026-03-08 17:25:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5647,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":27173},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":27174},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27175},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27176},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":27177},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27178},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-08 17:25:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5647,"items_count":7} 
[2026-03-08 17:25:18] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[27192,27193,27194,27195,27196,27197,27198],"items":[{"id":null,"menu_item_id":112,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-08 17:25:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5647,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["112|1|","396|3|","61|1|","56|1|","105|1|","5|1|","3|1|"],"new_items_map_keys":["112|1|","396|3|","61|1|","56|1|","105|1|","5|1|","3|1|"]} 
[2026-03-08 17:25:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5647,"order_number":"AZS-080326-008"} 
[2026-03-08 17:25:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5647,"order_number":"AZS-080326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-08 17:25:18"} 
[2026-03-08 17:26:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5647,"item_index":0,"item_id":27173} 
[2026-03-08 17:26:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5647,"item_index":1,"item_id":27174} 
[2026-03-08 17:26:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5647,"item_index":2,"item_id":27175} 
[2026-03-08 17:26:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5647,"item_index":3,"item_id":27176} 
[2026-03-08 17:26:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5647,"item_index":4,"item_id":27177} 
[2026-03-08 17:26:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5647,"item_index":5,"item_id":27178} 
[2026-03-08 17:26:54] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5647,"order_number":"AZS-080326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 17:26:54"} 
[2026-03-08 17:26:54] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5647,"order_number":"AZS-080326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 17:26:54"} 
[2026-03-08 17:26:54] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5647,"order_number":"AZS-080326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 17:26:54"} 
[2026-03-08 17:26:54] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5647,"order_number":"AZS-080326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 17:26:54"} 
[2026-03-08 17:26:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5647,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":27173},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":27174},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27175},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27176},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":27177},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27178},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-08 17:26:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5647,"items_count":7} 
[2026-03-08 17:26:54] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[27192,27193,27194,27195,27196,27197,27198],"items":[{"id":null,"menu_item_id":112,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-08 17:26:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5647,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["112|1|","396|3|","61|1|","56|1|","105|1|","5|1|","3|1|"],"new_items_map_keys":["112|1|","396|3|","61|1|","56|1|","105|1|","5|1|","3|1|"]} 
[2026-03-08 17:26:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5647,"order_number":"AZS-080326-008"} 
[2026-03-08 17:26:54] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5647,"order_number":"AZS-080326-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":6000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-08 17:26:54","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-08 17:26:54"} 
[2026-03-08 17:26:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5647,"order_number":"AZS-080326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-08 17:26:54"} 
[2026-03-08 17:26:54] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5647,"order_number":"AZS-080326-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"6000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-08 17:26:54","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"6000.00","database_verification_match":true,"timestamp":"2026-03-08 17:26:54"} 
[2026-03-08 17:48:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5645,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":27181},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":27182},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27183},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null,"id":27184},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":27185},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":27181,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":27182,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":27183,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27184,"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"id":27185,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-08 17:48:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5645,"items_count":6} 
[2026-03-08 17:48:28] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27181,"menu_item_id":105,"quantity":1},{"id":27182,"menu_item_id":396,"quantity":2},{"id":27183,"menu_item_id":61,"quantity":1},{"id":27184,"menu_item_id":83,"quantity":1},{"id":27185,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":13,"quantity":3}]} 
[2026-03-08 17:48:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5645,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["105|1|","396|2|","61|1|","83|1|","3|1|"],"new_items_map_keys":["105|1|","396|2|","61|1|","83|1|","3|1|","13|3|"]} 
[2026-03-08 17:48:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5645,"order_number":"AZS-080326-010"} 
[2026-03-08 17:48:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-010","replaced_order_id":5645} 
[2026-03-08 17:48:28] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5649,"items_count":6,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":83,"quantity":1,"price":"649.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":13,"quantity":3,"price":"249.00"}]} 
[2026-03-08 17:48:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5649,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5649}} 
[2026-03-08 17:48:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5649,"item_index":0,"menu_item_id":105} 
[2026-03-08 17:48:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5649,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5649}} 
[2026-03-08 17:48:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5649,"item_index":1,"menu_item_id":396} 
[2026-03-08 17:48:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5649,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5649}} 
[2026-03-08 17:48:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5649,"item_index":2,"menu_item_id":61} 
[2026-03-08 17:48:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5649,"item_index":3,"item_data":{"menu_item_id":83,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Chicken Nuggets","quantity":1,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":649.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5649}} 
[2026-03-08 17:48:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5649,"item_index":3,"menu_item_id":83} 
[2026-03-08 17:48:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5649,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5649}} 
[2026-03-08 17:48:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5649,"item_index":4,"menu_item_id":3} 
[2026-03-08 17:48:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5649,"item_index":5,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5649}} 
[2026-03-08 17:48:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5649,"item_index":5,"menu_item_id":13} 
[2026-03-08 17:48:28] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5645,"new_order_id":5649,"order_number":"AZS-080326-010"} 
[2026-03-08 17:48:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5649,"item_index":0,"item_id":27181} 
[2026-03-08 17:48:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5649,"item_index":1,"item_id":27182} 
[2026-03-08 17:48:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5649,"item_index":2,"item_id":27183} 
[2026-03-08 17:48:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5649,"item_index":3,"item_id":27184} 
[2026-03-08 17:48:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5649,"item_index":4,"item_id":27185} 
[2026-03-08 17:48:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5649,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":27181},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27182},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27183},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":27184},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27185},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-08 17:48:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5649,"items_count":6} 
[2026-03-08 17:48:36] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27200,27201,27202,27203,27204,27205],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":83,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":13,"quantity":3}]} 
[2026-03-08 17:48:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5649,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["105|1|","396|2|","61|1|","83|1|","3|1|","13|3|"],"new_items_map_keys":["105|1|","396|2|","61|1|","83|1|","3|1|","13|3|"]} 
[2026-03-08 17:48:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5649,"order_number":"AZS-080326-010"} 
[2026-03-08 17:48:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5649,"order_number":"AZS-080326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-08 17:48:36"} 
[2026-03-08 17:55:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5649,"item_index":0,"item_id":27181} 
[2026-03-08 17:55:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5649,"item_index":1,"item_id":27182} 
[2026-03-08 17:55:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5649,"item_index":2,"item_id":27183} 
[2026-03-08 17:55:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5649,"item_index":3,"item_id":27184} 
[2026-03-08 17:55:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5649,"item_index":4,"item_id":27185} 
[2026-03-08 17:55:52] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5649,"order_number":"AZS-080326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 17:55:52"} 
[2026-03-08 17:55:52] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5649,"order_number":"AZS-080326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 17:55:52"} 
[2026-03-08 17:55:52] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5649,"order_number":"AZS-080326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 17:55:52"} 
[2026-03-08 17:55:52] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5649,"order_number":"AZS-080326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 17:55:52"} 
[2026-03-08 17:55:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5649,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":27181},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27182},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27183},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":27184},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27185},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-08 17:55:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5649,"items_count":6} 
[2026-03-08 17:55:52] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27200,27201,27202,27203,27204,27205],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":83,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":13,"quantity":3}]} 
[2026-03-08 17:55:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5649,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["105|1|","396|2|","61|1|","83|1|","3|1|","13|3|"],"new_items_map_keys":["105|1|","396|2|","61|1|","83|1|","3|1|","13|3|"]} 
[2026-03-08 17:55:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5649,"order_number":"AZS-080326-010"} 
[2026-03-08 17:55:52] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5649,"order_number":"AZS-080326-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-08 17:55:52","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-08 17:55:52"} 
[2026-03-08 17:55:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5649,"order_number":"AZS-080326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-08 17:55:52"} 
[2026-03-08 17:55:52] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5649,"order_number":"AZS-080326-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-08 17:55:52","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4500.00","database_verification_match":true,"timestamp":"2026-03-08 17:55:52"} 
[2026-03-08 18:00:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T06:00:30.983Z","date_to":"2026-03-08T18:00:30.983Z","per_page":"100"} 
[2026-03-08 18:00:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-012","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","paid","changed","paid","paid","changed","pending","paid","pending","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":7,"paid_count":8,"unpaid_count":4,"unique_order_numbers":12} 
[2026-03-08 18:00:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T06:00:30.966Z","date_to":"2026-03-08T18:00:30.966Z","per_page":"100"} 
[2026-03-08 18:00:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-012","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","paid","changed","paid","paid","changed","pending","paid","pending","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":7,"paid_count":8,"unpaid_count":4,"unique_order_numbers":12} 
[2026-03-08 18:00:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T06:00:30.966Z","date_to":"2026-03-08T18:00:30.966Z","per_page":"100"} 
[2026-03-08 18:00:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-012","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","paid","changed","paid","paid","changed","pending","paid","pending","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":7,"paid_count":8,"unpaid_count":4,"unique_order_numbers":12} 
[2026-03-08 18:16:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5648,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":7,"quantity":6,"discount_percent":0,"notes":null,"id":27199}],"validated_items":[{"id":27199,"menu_item_id":7,"quantity":6,"discount_percent":0,"notes":null}]} 
[2026-03-08 18:16:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5648,"items_count":1} 
[2026-03-08 18:16:09] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27199,"menu_item_id":7,"quantity":6}]} 
[2026-03-08 18:16:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5648,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["7|5|"],"new_items_map_keys":["7|6|"]} 
[2026-03-08 18:16:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5648,"order_number":"AZS-080326-012"} 
[2026-03-08 18:16:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-012","replaced_order_id":5648} 
[2026-03-08 18:16:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5650,"items_count":1,"items":[{"menu_item_id":7,"quantity":6,"price":"249.00"}]} 
[2026-03-08 18:16:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5650,"item_index":0,"item_data":{"menu_item_id":7,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Cardamom Tea","quantity":6,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":1494.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5650}} 
[2026-03-08 18:16:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5650,"item_index":0,"menu_item_id":7} 
[2026-03-08 18:16:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5648,"new_order_id":5650,"order_number":"AZS-080326-012"} 
[2026-03-08 18:26:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5650,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":7,"quantity":6,"discount_percent":0,"notes":null,"id":27206},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27206,"menu_item_id":7,"quantity":6,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 18:26:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5650,"items_count":2} 
[2026-03-08 18:26:21] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27206,"menu_item_id":7,"quantity":6},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-08 18:26:21] local.INFO: PosOrderController::update - Item changes check {"order_id":5650,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["7|6|"],"new_items_map_keys":["7|6|","4|1|"]} 
[2026-03-08 18:26:21] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5650,"order_number":"AZS-080326-012"} 
[2026-03-08 18:26:21] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-012","replaced_order_id":5650} 
[2026-03-08 18:26:21] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5652,"items_count":2,"items":[{"menu_item_id":7,"quantity":6,"price":"249.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-03-08 18:26:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5652,"item_index":0,"item_data":{"menu_item_id":7,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Cardamom Tea","quantity":6,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":1494.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5652}} 
[2026-03-08 18:26:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5652,"item_index":0,"menu_item_id":7} 
[2026-03-08 18:26:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5652,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5652}} 
[2026-03-08 18:26:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5652,"item_index":1,"menu_item_id":4} 
[2026-03-08 18:26:21] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5650,"new_order_id":5652,"order_number":"AZS-080326-012"} 
[2026-03-08 18:29:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5651,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27207}],"validated_items":[{"id":27207,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-08 18:29:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5651,"items_count":1} 
[2026-03-08 18:29:25] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27207,"menu_item_id":6,"quantity":1}]} 
[2026-03-08 18:29:25] local.INFO: PosOrderController::update - Item changes check {"order_id":5651,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-03-08 18:29:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5651,"order_number":"AZS-080326-013"} 
[2026-03-08 18:29:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5651,"order_number":"AZS-080326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-08 18:29:25"} 
[2026-03-08 18:43:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5652,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":7,"quantity":6,"price":249,"discount_percent":0,"notes":null,"id":27208},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":27209}],"validated_items":[{"id":27208,"menu_item_id":7,"quantity":6,"price":249,"discount_percent":0,"notes":null},{"id":27209,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-08 18:43:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5652,"items_count":2} 
[2026-03-08 18:43:38] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27208,"menu_item_id":7,"quantity":6},{"id":27209,"menu_item_id":4,"quantity":1}]} 
[2026-03-08 18:43:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5652,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["7|6|","4|1|"],"new_items_map_keys":["7|6|","4|1|"]} 
[2026-03-08 18:43:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5652,"order_number":"AZS-080326-012"} 
[2026-03-08 18:43:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5652,"order_number":"AZS-080326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-08 18:43:38"} 
[2026-03-08 18:44:53] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5652,"order_number":"AZS-080326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 18:44:53"} 
[2026-03-08 18:44:53] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5652,"order_number":"AZS-080326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 18:44:53"} 
[2026-03-08 18:44:53] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5652,"order_number":"AZS-080326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 18:44:53"} 
[2026-03-08 18:44:53] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5652,"order_number":"AZS-080326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 18:44:53"} 
[2026-03-08 18:44:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5652,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":7,"quantity":6,"price":249,"discount_percent":0,"notes":null,"id":27208},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":27209}],"validated_items":[{"id":27208,"menu_item_id":7,"quantity":6,"price":249,"discount_percent":0,"notes":null},{"id":27209,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-08 18:44:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5652,"items_count":2} 
[2026-03-08 18:44:53] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27208,"menu_item_id":7,"quantity":6},{"id":27209,"menu_item_id":4,"quantity":1}]} 
[2026-03-08 18:44:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5652,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["7|6|","4|1|"],"new_items_map_keys":["7|6|","4|1|"]} 
[2026-03-08 18:44:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5652,"order_number":"AZS-080326-012"} 
[2026-03-08 18:44:53] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5652,"order_number":"AZS-080326-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-08 18:44:53","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-08 18:44:53"} 
[2026-03-08 18:44:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5652,"order_number":"AZS-080326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-08 18:44:53"} 
[2026-03-08 18:44:53] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5652,"order_number":"AZS-080326-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-08 18:44:53","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-08 18:44:53"} 
[2026-03-08 19:07:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T07:07:40.995Z","date_to":"2026-03-08T19:07:40.995Z","per_page":"100"} 
[2026-03-08 19:07:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","paid","changed","changed","pending","paid","changed","paid","paid","changed","pending","paid","pending","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":9,"paid_count":9,"unpaid_count":5,"unique_order_numbers":14} 
[2026-03-08 19:07:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T07:07:41.002Z","date_to":"2026-03-08T19:07:41.002Z","per_page":"100"} 
[2026-03-08 19:07:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","paid","changed","changed","pending","paid","changed","paid","paid","changed","pending","paid","pending","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":9,"paid_count":9,"unpaid_count":5,"unique_order_numbers":14} 
[2026-03-08 19:07:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T07:07:40.995Z","date_to":"2026-03-08T19:07:40.995Z","per_page":"100"} 
[2026-03-08 19:07:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","paid","changed","changed","pending","paid","changed","paid","paid","changed","pending","paid","pending","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":9,"paid_count":9,"unpaid_count":5,"unique_order_numbers":14} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":5646,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":2,"discount_percent":0,"notes":null,"id":27186},{"menu_item_id":110,"quantity":1,"discount_percent":0,"notes":null,"id":27187},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":27188},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null,"id":27189},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27190},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27191},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":11,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27186,"menu_item_id":105,"quantity":2,"discount_percent":0,"notes":null},{"id":27187,"menu_item_id":110,"quantity":1,"discount_percent":0,"notes":null},{"id":27188,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":27189,"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null},{"id":27190,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27191,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":11,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5646,"items_count":11} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27186,"menu_item_id":105,"quantity":2},{"id":27187,"menu_item_id":110,"quantity":1},{"id":27188,"menu_item_id":396,"quantity":1},{"id":27189,"menu_item_id":51,"quantity":1},{"id":27190,"menu_item_id":61,"quantity":1},{"id":27191,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":13,"quantity":2},{"id":null,"menu_item_id":11,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":29,"quantity":1}]} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5646,"has_item_changes":true,"old_items_count":6,"new_items_count":11,"old_items_map_keys":["105|2|","110|1|","396|1|","51|1|","61|1|","56|1|"],"new_items_map_keys":["105|2|","110|1|","396|1|","51|1|","61|1|","56|1|","13|2|","11|3|","5|1|","3|1|","29|1|"]} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5646,"order_number":"AZS-080326-011"} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-011","replaced_order_id":5646} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5655,"items_count":11,"items":[{"menu_item_id":105,"quantity":2,"price":"2199.00"},{"menu_item_id":110,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":51,"quantity":1,"price":"199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":11,"quantity":3,"price":"159.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"}]} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5655,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":2,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":4398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5655}} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5655,"item_index":0,"menu_item_id":105} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5655,"item_index":1,"item_data":{"menu_item_id":110,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Namkeen Rosh","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5655}} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5655,"item_index":1,"menu_item_id":110} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5655,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5655}} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5655,"item_index":2,"menu_item_id":396} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5655,"item_index":3,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5655}} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5655,"item_index":3,"menu_item_id":51} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5655,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5655}} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5655,"item_index":4,"menu_item_id":61} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5655,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5655}} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5655,"item_index":5,"menu_item_id":56} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5655,"item_index":6,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5655}} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5655,"item_index":6,"menu_item_id":13} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5655,"item_index":7,"item_data":{"menu_item_id":11,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Sulemani Qehwa","quantity":3,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":477.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5655}} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5655,"item_index":7,"menu_item_id":11} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5655,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5655}} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5655,"item_index":8,"menu_item_id":5} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5655,"item_index":9,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5655}} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5655,"item_index":9,"menu_item_id":3} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5655,"item_index":10,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5655}} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5655,"item_index":10,"menu_item_id":29} 
[2026-03-08 19:24:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5646,"new_order_id":5655,"order_number":"AZS-080326-011"} 
[2026-03-08 19:50:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T07:50:50.202Z","date_to":"2026-03-08T19:50:50.202Z","per_page":"100"} 
[2026-03-08 19:50:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T07:50:50.185Z","date_to":"2026-03-08T19:50:50.185Z","per_page":"100"} 
[2026-03-08 19:50:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending","paid","changed","changed","pending","changed","paid","changed","paid","paid","changed","pending","paid","pending","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":10,"paid_count":9,"unpaid_count":6,"unique_order_numbers":15} 
[2026-03-08 19:50:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending","paid","changed","changed","pending","changed","paid","changed","paid","paid","changed","pending","paid","pending","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":10,"paid_count":9,"unpaid_count":6,"unique_order_numbers":15} 
[2026-03-08 19:50:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T07:50:50.185Z","date_to":"2026-03-08T19:50:50.185Z","per_page":"100"} 
[2026-03-08 19:50:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending","paid","changed","changed","pending","changed","paid","changed","paid","paid","changed","pending","paid","pending","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":10,"paid_count":9,"unpaid_count":6,"unique_order_numbers":15} 
[2026-03-08 19:51:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5654,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27211},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27212},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27213},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27214},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27215}],"validated_items":[{"id":27211,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27212,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27213,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27214,"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27215,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-08 19:51:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5654,"items_count":5} 
[2026-03-08 19:51:11] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27211,"menu_item_id":113,"quantity":1},{"id":27212,"menu_item_id":396,"quantity":2},{"id":27213,"menu_item_id":5,"quantity":1},{"id":27214,"menu_item_id":60,"quantity":1},{"id":27215,"menu_item_id":56,"quantity":1}]} 
[2026-03-08 19:51:11] local.INFO: PosOrderController::update - Item changes check {"order_id":5654,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["113|1|","396|2|","5|1|","60|1|","56|1|"],"new_items_map_keys":["113|1|","396|2|","5|1|","60|1|","56|1|"]} 
[2026-03-08 19:51:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5654,"order_number":"AZS-080326-015"} 
[2026-03-08 19:51:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5654,"order_number":"AZS-080326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-08 19:51:11"} 
[2026-03-08 19:51:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5653,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27210}],"validated_items":[{"id":27210,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-08 19:51:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5653,"items_count":1} 
[2026-03-08 19:51:36] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27210,"menu_item_id":6,"quantity":2}]} 
[2026-03-08 19:51:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5653,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-08 19:51:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5653,"order_number":"AZS-080326-014"} 
[2026-03-08 19:51:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5653,"order_number":"AZS-080326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-08 19:51:36"} 
[2026-03-08 19:53:24] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5653,"order_number":"AZS-080326-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 19:53:24"} 
[2026-03-08 19:53:24] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5653,"order_number":"AZS-080326-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 19:53:24"} 
[2026-03-08 19:53:24] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5653,"order_number":"AZS-080326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 19:53:24"} 
[2026-03-08 19:53:24] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5653,"order_number":"AZS-080326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 19:53:24"} 
[2026-03-08 19:53:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5653,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27210}],"validated_items":[{"id":27210,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-08 19:53:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5653,"items_count":1} 
[2026-03-08 19:53:24] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27210,"menu_item_id":6,"quantity":2}]} 
[2026-03-08 19:53:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5653,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-08 19:53:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5653,"order_number":"AZS-080326-014"} 
[2026-03-08 19:53:24] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5653,"order_number":"AZS-080326-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-08 19:53:24","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-08 19:53:24"} 
[2026-03-08 19:53:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5653,"order_number":"AZS-080326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-08 19:53:24"} 
[2026-03-08 19:53:24] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5653,"order_number":"AZS-080326-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-08 19:53:24","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-08 19:53:24"} 
[2026-03-08 20:00:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5654,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":27211},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":27212},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27213},{"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null,"id":27214},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27215},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":27211,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":27212,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":27213,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":27214,"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null},{"id":27215,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:00:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5654,"items_count":6} 
[2026-03-08 20:00:22] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27211,"menu_item_id":113,"quantity":1},{"id":27212,"menu_item_id":396,"quantity":2},{"id":27213,"menu_item_id":5,"quantity":1},{"id":27214,"menu_item_id":60,"quantity":1},{"id":27215,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-08 20:00:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5654,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["113|1|","396|2|","5|1|","60|1|","56|1|"],"new_items_map_keys":["113|1|","396|2|","5|1|","60|1|","56|1|","2|2|"]} 
[2026-03-08 20:00:22] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5654,"order_number":"AZS-080326-015"} 
[2026-03-08 20:00:22] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-015","replaced_order_id":5654} 
[2026-03-08 20:00:22] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5656,"items_count":6,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":60,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-08 20:00:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5656,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5656}} 
[2026-03-08 20:00:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5656,"item_index":0,"menu_item_id":113} 
[2026-03-08 20:00:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5656,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5656}} 
[2026-03-08 20:00:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5656,"item_index":1,"menu_item_id":396} 
[2026-03-08 20:00:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5656,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5656}} 
[2026-03-08 20:00:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5656,"item_index":2,"menu_item_id":5} 
[2026-03-08 20:00:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5656,"item_index":3,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5656}} 
[2026-03-08 20:00:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5656,"item_index":3,"menu_item_id":60} 
[2026-03-08 20:00:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5656,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5656}} 
[2026-03-08 20:00:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5656,"item_index":4,"menu_item_id":56} 
[2026-03-08 20:00:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5656,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5656}} 
[2026-03-08 20:00:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5656,"item_index":5,"menu_item_id":2} 
[2026-03-08 20:00:22] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5654,"new_order_id":5656,"order_number":"AZS-080326-015"} 
[2026-03-08 20:01:42] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5651,"order_number":"AZS-080326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":210,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 20:01:42"} 
[2026-03-08 20:01:42] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5651,"order_number":"AZS-080326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":210,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 20:01:42"} 
[2026-03-08 20:01:42] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5651,"order_number":"AZS-080326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":210,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 20:01:42"} 
[2026-03-08 20:01:42] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5651,"order_number":"AZS-080326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":210,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 20:01:42"} 
[2026-03-08 20:01:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5651,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27207}],"validated_items":[{"id":27207,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:01:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5651,"items_count":1} 
[2026-03-08 20:01:42] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27207,"menu_item_id":6,"quantity":1}]} 
[2026-03-08 20:01:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5651,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-03-08 20:01:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5651,"order_number":"AZS-080326-013"} 
[2026-03-08 20:01:42] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5651,"order_number":"AZS-080326-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":210,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-08 20:01:42","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-08 20:01:42"} 
[2026-03-08 20:01:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5651,"order_number":"AZS-080326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-08 20:01:42"} 
[2026-03-08 20:01:42] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5651,"order_number":"AZS-080326-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"210.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-08 20:01:42","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":210,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"210.00","database_verification_match":true,"timestamp":"2026-03-08 20:01:42"} 
[2026-03-08 20:05:01] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5637,"order_number":"AZS-080326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2099,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 20:05:01"} 
[2026-03-08 20:05:01] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5637,"order_number":"AZS-080326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2099,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 20:05:01"} 
[2026-03-08 20:05:01] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5637,"order_number":"AZS-080326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2099,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 20:05:01"} 
[2026-03-08 20:05:01] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5637,"order_number":"AZS-080326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2099,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 20:05:01"} 
[2026-03-08 20:05:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5637,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":27140}],"validated_items":[{"id":27140,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:05:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5637,"items_count":1} 
[2026-03-08 20:05:01] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27140,"menu_item_id":386,"quantity":1}]} 
[2026-03-08 20:05:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5637,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|"]} 
[2026-03-08 20:05:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5637,"order_number":"AZS-080326-005"} 
[2026-03-08 20:05:01] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5637,"order_number":"AZS-080326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2099,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-08 20:05:01","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-08 20:05:01"} 
[2026-03-08 20:05:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5637,"order_number":"AZS-080326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-08 20:05:01"} 
[2026-03-08 20:05:01] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5637,"order_number":"AZS-080326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2099.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-08 20:05:01","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2099,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2099.00","database_verification_match":true,"timestamp":"2026-03-08 20:05:01"} 
[2026-03-08 20:05:19] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5641,"order_number":"AZS-080326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1199,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 20:05:19"} 
[2026-03-08 20:05:19] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5641,"order_number":"AZS-080326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1199,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 20:05:19"} 
[2026-03-08 20:05:19] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5641,"order_number":"AZS-080326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1199,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 20:05:19"} 
[2026-03-08 20:05:19] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5641,"order_number":"AZS-080326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1199,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 20:05:19"} 
[2026-03-08 20:05:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5641,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27163}],"validated_items":[{"id":27163,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:05:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5641,"items_count":1} 
[2026-03-08 20:05:19] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27163,"menu_item_id":96,"quantity":1}]} 
[2026-03-08 20:05:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5641,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["96|1|"],"new_items_map_keys":["96|1|"]} 
[2026-03-08 20:05:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5641,"order_number":"AZS-080326-007"} 
[2026-03-08 20:05:19] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5641,"order_number":"AZS-080326-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1199,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-08 20:05:19","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-08 20:05:19"} 
[2026-03-08 20:05:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5641,"order_number":"AZS-080326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-08 20:05:19"} 
[2026-03-08 20:05:19] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5641,"order_number":"AZS-080326-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1199.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-08 20:05:19","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1199,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1199.00","database_verification_match":true,"timestamp":"2026-03-08 20:05:19"} 
[2026-03-08 20:05:33] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5655,"order_number":"AZS-080326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10958,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 20:05:33"} 
[2026-03-08 20:05:33] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5655,"order_number":"AZS-080326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10958,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 20:05:33"} 
[2026-03-08 20:05:33] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5655,"order_number":"AZS-080326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10958,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 20:05:33"} 
[2026-03-08 20:05:33] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5655,"order_number":"AZS-080326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10958,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 20:05:33"} 
[2026-03-08 20:05:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":5655,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":2,"price":2199,"discount_percent":0,"notes":null,"id":27216},{"menu_item_id":110,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":27217},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":27218},{"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27219},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27220},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27221},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":27222},{"menu_item_id":11,"quantity":3,"price":159,"discount_percent":0,"notes":null,"id":27223},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27224},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27225},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":27226}],"validated_items":[{"id":27216,"menu_item_id":105,"quantity":2,"price":2199,"discount_percent":0,"notes":null},{"id":27217,"menu_item_id":110,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":27218,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":27219,"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27220,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27221,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27222,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":27223,"menu_item_id":11,"quantity":3,"price":159,"discount_percent":0,"notes":null},{"id":27224,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27225,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":27226,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:05:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5655,"items_count":11} 
[2026-03-08 20:05:33] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27216,"menu_item_id":105,"quantity":2},{"id":27217,"menu_item_id":110,"quantity":1},{"id":27218,"menu_item_id":396,"quantity":1},{"id":27219,"menu_item_id":51,"quantity":1},{"id":27220,"menu_item_id":61,"quantity":1},{"id":27221,"menu_item_id":56,"quantity":1},{"id":27222,"menu_item_id":13,"quantity":2},{"id":27223,"menu_item_id":11,"quantity":3},{"id":27224,"menu_item_id":5,"quantity":1},{"id":27225,"menu_item_id":3,"quantity":1},{"id":27226,"menu_item_id":29,"quantity":1}]} 
[2026-03-08 20:05:33] local.INFO: PosOrderController::update - Item changes check {"order_id":5655,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["105|2|","110|1|","396|1|","51|1|","61|1|","56|1|","13|2|","11|3|","5|1|","3|1|","29|1|"],"new_items_map_keys":["105|2|","110|1|","396|1|","51|1|","61|1|","56|1|","13|2|","11|3|","5|1|","3|1|","29|1|"]} 
[2026-03-08 20:05:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5655,"order_number":"AZS-080326-011"} 
[2026-03-08 20:05:33] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5655,"order_number":"AZS-080326-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":10958,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-08 20:05:33","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-08 20:05:33"} 
[2026-03-08 20:05:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5655,"order_number":"AZS-080326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-08 20:05:33"} 
[2026-03-08 20:05:33] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5655,"order_number":"AZS-080326-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"10958.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-08 20:05:33","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10958,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"10958.00","database_verification_match":true,"timestamp":"2026-03-08 20:05:33"} 
[2026-03-08 20:05:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T08:05:36.233Z","date_to":"2026-03-08T20:05:36.233Z","per_page":"100"} 
[2026-03-08 20:05:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":11,"paid_count":14,"unpaid_count":1,"unique_order_numbers":15} 
[2026-03-08 20:05:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T08:05:36.249Z","date_to":"2026-03-08T20:05:36.249Z","per_page":"100"} 
[2026-03-08 20:05:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":11,"paid_count":14,"unpaid_count":1,"unique_order_numbers":15} 
[2026-03-08 20:05:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T08:05:36.233Z","date_to":"2026-03-08T20:05:36.233Z","per_page":"100"} 
[2026-03-08 20:05:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":11,"paid_count":14,"unpaid_count":1,"unique_order_numbers":15} 
[2026-03-08 20:17:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":5656,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":27227},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":27228},{"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null,"id":27230},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27231},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null,"id":27232}],"validated_items":[{"id":27227,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":27228,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":27230,"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null},{"id":27231,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27232,"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:17:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5656,"items_count":5} 
[2026-03-08 20:17:05] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[27229],"items":[{"id":27227,"menu_item_id":113,"quantity":1},{"id":27228,"menu_item_id":396,"quantity":2},{"id":27230,"menu_item_id":60,"quantity":1},{"id":27231,"menu_item_id":56,"quantity":1},{"id":27232,"menu_item_id":2,"quantity":2}]} 
[2026-03-08 20:17:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5656,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["113|1|","396|2|","5|1|","60|1|","56|1|","2|2|"],"new_items_map_keys":["113|1|","396|2|","60|1|","56|1|","2|2|"]} 
[2026-03-08 20:17:05] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5656,"order_number":"AZS-080326-015"} 
[2026-03-08 20:17:05] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-015","replaced_order_id":5656} 
[2026-03-08 20:17:05] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5657,"items_count":5,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":60,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-08 20:17:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5657,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5657}} 
[2026-03-08 20:17:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5657,"item_index":0,"menu_item_id":113} 
[2026-03-08 20:17:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5657,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5657}} 
[2026-03-08 20:17:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5657,"item_index":1,"menu_item_id":396} 
[2026-03-08 20:17:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5657,"item_index":2,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5657}} 
[2026-03-08 20:17:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5657,"item_index":2,"menu_item_id":60} 
[2026-03-08 20:17:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5657,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5657}} 
[2026-03-08 20:17:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5657,"item_index":3,"menu_item_id":56} 
[2026-03-08 20:17:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5657,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5657}} 
[2026-03-08 20:17:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5657,"item_index":4,"menu_item_id":2} 
[2026-03-08 20:17:05] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5656,"new_order_id":5657,"order_number":"AZS-080326-015"} 
[2026-03-08 20:17:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5657,"item_index":0,"item_id":27227} 
[2026-03-08 20:17:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5657,"item_index":1,"item_id":27228} 
[2026-03-08 20:17:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5657,"item_index":2,"item_id":27230} 
[2026-03-08 20:17:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5657,"item_index":3,"item_id":27231} 
[2026-03-08 20:17:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5657,"item_index":4,"item_id":27232} 
[2026-03-08 20:17:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5657,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27227},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27228},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27230},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27231},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":27232}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:17:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5657,"items_count":5} 
[2026-03-08 20:17:15] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[27233,27234,27235,27236,27237],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":60,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-08 20:17:15] local.INFO: PosOrderController::update - Item changes check {"order_id":5657,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["113|1|","396|2|","60|1|","56|1|","2|2|"],"new_items_map_keys":["113|1|","396|2|","60|1|","56|1|","2|2|"]} 
[2026-03-08 20:17:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5657,"order_number":"AZS-080326-015"} 
[2026-03-08 20:17:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5657,"order_number":"AZS-080326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-08 20:17:15"} 
[2026-03-08 20:19:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T08:19:15.775Z","date_to":"2026-03-08T20:19:15.775Z","per_page":"100"} 
[2026-03-08 20:19:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":12,"paid_count":14,"unpaid_count":1,"unique_order_numbers":15} 
[2026-03-08 20:19:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T08:19:15.760Z","date_to":"2026-03-08T20:19:15.760Z","per_page":"100"} 
[2026-03-08 20:19:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":12,"paid_count":14,"unpaid_count":1,"unique_order_numbers":15} 
[2026-03-08 20:19:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T08:19:15.760Z","date_to":"2026-03-08T20:19:15.760Z","per_page":"100"} 
[2026-03-08 20:19:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":12,"paid_count":14,"unpaid_count":1,"unique_order_numbers":15} 
[2026-03-08 20:36:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":5657,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27233},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27234},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27236},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":27237}],"validated_items":[{"id":27233,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27234,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27236,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27237,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:36:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5657,"items_count":4} 
[2026-03-08 20:36:06] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[27235],"items":[{"id":27233,"menu_item_id":113,"quantity":1},{"id":27234,"menu_item_id":396,"quantity":2},{"id":27236,"menu_item_id":56,"quantity":1},{"id":27237,"menu_item_id":2,"quantity":2}]} 
[2026-03-08 20:36:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5657,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["113|1|","396|2|","60|1|","56|1|","2|2|"],"new_items_map_keys":["113|1|","396|2|","56|1|","2|2|"]} 
[2026-03-08 20:36:06] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5657,"order_number":"AZS-080326-015"} 
[2026-03-08 20:36:06] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-015","replaced_order_id":5657} 
[2026-03-08 20:36:06] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5659,"items_count":4,"items":[{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":2,"quantity":2,"price":130.0}]} 
[2026-03-08 20:36:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5659,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5659}} 
[2026-03-08 20:36:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5659,"item_index":0,"menu_item_id":113} 
[2026-03-08 20:36:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5659,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5659}} 
[2026-03-08 20:36:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5659,"item_index":1,"menu_item_id":396} 
[2026-03-08 20:36:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5659,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5659}} 
[2026-03-08 20:36:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5659,"item_index":2,"menu_item_id":56} 
[2026-03-08 20:36:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5659,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5659}} 
[2026-03-08 20:36:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5659,"item_index":3,"menu_item_id":2} 
[2026-03-08 20:36:06] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5657,"new_order_id":5659,"order_number":"AZS-080326-015"} 
[2026-03-08 20:36:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5659,"item_index":0,"item_id":27233} 
[2026-03-08 20:36:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5659,"item_index":1,"item_id":27234} 
[2026-03-08 20:36:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5659,"item_index":2,"item_id":27236} 
[2026-03-08 20:36:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5659,"item_index":3,"item_id":27237} 
[2026-03-08 20:36:18] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5659,"order_number":"AZS-080326-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 20:36:18"} 
[2026-03-08 20:36:18] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5659,"order_number":"AZS-080326-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 20:36:18"} 
[2026-03-08 20:36:18] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5659,"order_number":"AZS-080326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 20:36:18"} 
[2026-03-08 20:36:18] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5659,"order_number":"AZS-080326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 20:36:18"} 
[2026-03-08 20:36:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5659,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27233},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27234},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27236},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":27237}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:36:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5659,"items_count":4} 
[2026-03-08 20:36:18] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[27239,27240,27241,27242],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-08 20:36:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5659,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","396|2|","56|1|","2|2|"],"new_items_map_keys":["113|1|","396|2|","56|1|","2|2|"]} 
[2026-03-08 20:36:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5659,"order_number":"AZS-080326-015"} 
[2026-03-08 20:36:18] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5659,"order_number":"AZS-080326-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-08 20:36:18","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-08 20:36:18"} 
[2026-03-08 20:36:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5659,"order_number":"AZS-080326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-08 20:36:18"} 
[2026-03-08 20:36:18] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5659,"order_number":"AZS-080326-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-08 20:36:18","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-08 20:36:18"} 
[2026-03-08 20:49:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5660,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:49:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5660,"items_count":6} 
[2026-03-08 20:49:25] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27243,27244,27245,27246,27247,27248],"items":[{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 20:49:25] local.INFO: PosOrderController::update - Item changes check {"order_id":5660,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"]} 
[2026-03-08 20:49:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5660,"order_number":"AZS-080326-017"} 
[2026-03-08 20:49:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5660,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-08 20:49:25"} 
[2026-03-08 20:49:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5660,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:49:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5660,"items_count":6} 
[2026-03-08 20:49:25] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27243,27244,27245,27246,27247,27248],"items":[{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 20:49:25] local.INFO: PosOrderController::update - Item changes check {"order_id":5660,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"]} 
[2026-03-08 20:49:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5660,"order_number":"AZS-080326-017"} 
[2026-03-08 20:49:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5660,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-08 20:49:25"} 
[2026-03-08 20:49:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5660,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:49:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5660,"items_count":6} 
[2026-03-08 20:49:25] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27243,27244,27245,27246,27247,27248],"items":[{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 20:49:25] local.INFO: PosOrderController::update - Item changes check {"order_id":5660,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"]} 
[2026-03-08 20:49:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5660,"order_number":"AZS-080326-017"} 
[2026-03-08 20:49:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5660,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-08 20:49:25"} 
[2026-03-08 20:49:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5660,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:49:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5660,"items_count":6} 
[2026-03-08 20:49:27] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27243,27244,27245,27246,27247,27248],"items":[{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 20:49:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5660,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"]} 
[2026-03-08 20:49:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5660,"order_number":"AZS-080326-017"} 
[2026-03-08 20:49:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5660,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-08 20:49:27"} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5660,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5660,"items_count":6} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27243,27244,27245,27246,27247,27248],"items":[{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5660,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5660,"order_number":"AZS-080326-017"} 
[2026-03-08 20:49:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5660,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-08 20:49:28"} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5660,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5660,"items_count":6} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27243,27244,27245,27246,27247,27248],"items":[{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5660,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5660,"order_number":"AZS-080326-017"} 
[2026-03-08 20:49:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5660,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-08 20:49:28"} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5660,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5660,"items_count":6} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27243,27244,27245,27246,27247,27248],"items":[{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5660,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5660,"order_number":"AZS-080326-017"} 
[2026-03-08 20:49:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5660,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-08 20:49:28"} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5660,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5660,"items_count":6} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27243,27244,27245,27246,27247,27248],"items":[{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5660,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5660,"order_number":"AZS-080326-017"} 
[2026-03-08 20:49:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5660,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-08 20:49:28"} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5660,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5660,"items_count":6} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27243,27244,27245,27246,27247,27248],"items":[{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5660,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5660,"order_number":"AZS-080326-017"} 
[2026-03-08 20:49:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5660,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-08 20:49:28"} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5660,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5660,"items_count":6} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27243,27244,27245,27246,27247,27248],"items":[{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5660,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5660,"order_number":"AZS-080326-017"} 
[2026-03-08 20:49:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5660,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-08 20:49:28"} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5660,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5660,"items_count":6} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27243,27244,27245,27246,27247,27248],"items":[{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5660,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5660,"order_number":"AZS-080326-017"} 
[2026-03-08 20:49:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5660,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-08 20:49:28"} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5660,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5660,"items_count":6} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27243,27244,27245,27246,27247,27248],"items":[{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5660,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5660,"order_number":"AZS-080326-017"} 
[2026-03-08 20:49:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5660,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-08 20:49:28"} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5660,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5660,"items_count":6} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27243,27244,27245,27246,27247,27248],"items":[{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5660,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5660,"order_number":"AZS-080326-017"} 
[2026-03-08 20:49:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5660,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-08 20:49:28"} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5660,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5660,"items_count":6} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27243,27244,27245,27246,27247,27248],"items":[{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5660,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5660,"order_number":"AZS-080326-017"} 
[2026-03-08 20:49:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5660,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-08 20:49:28"} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5660,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5660,"items_count":6} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27243,27244,27245,27246,27247,27248],"items":[{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5660,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5660,"order_number":"AZS-080326-017"} 
[2026-03-08 20:49:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5660,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-08 20:49:28"} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5660,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5660,"items_count":6} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27243,27244,27245,27246,27247,27248],"items":[{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5660,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5660,"order_number":"AZS-080326-017"} 
[2026-03-08 20:49:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5660,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-08 20:49:28"} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5660,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5660,"items_count":6} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27243,27244,27245,27246,27247,27248],"items":[{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5660,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5660,"order_number":"AZS-080326-017"} 
[2026-03-08 20:49:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5660,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-08 20:49:28"} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5660,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5660,"items_count":6} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27243,27244,27245,27246,27247,27248],"items":[{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5660,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"]} 
[2026-03-08 20:49:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5660,"order_number":"AZS-080326-017"} 
[2026-03-08 20:49:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5660,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-08 20:49:28"} 
[2026-03-08 21:30:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5660,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":27243},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":27244},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":27245},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27246},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27247},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27248},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27243,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":27244,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":27245,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":27246,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27247,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27248,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 21:30:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5660,"items_count":7} 
[2026-03-08 21:30:24] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27243,"menu_item_id":102,"quantity":1},{"id":27244,"menu_item_id":96,"quantity":1},{"id":27245,"menu_item_id":396,"quantity":4},{"id":27246,"menu_item_id":61,"quantity":1},{"id":27247,"menu_item_id":56,"quantity":1},{"id":27248,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-08 21:30:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5660,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-03-08 21:30:24] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5660,"order_number":"AZS-080326-017"} 
[2026-03-08 21:30:24] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-017","replaced_order_id":5660} 
[2026-03-08 21:30:24] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5661,"items_count":7,"items":[{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-08 21:30:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5661,"item_index":0,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5661}} 
[2026-03-08 21:30:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5661,"item_index":0,"menu_item_id":102} 
[2026-03-08 21:30:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5661,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5661}} 
[2026-03-08 21:30:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5661,"item_index":1,"menu_item_id":96} 
[2026-03-08 21:30:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5661,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5661}} 
[2026-03-08 21:30:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5661,"item_index":2,"menu_item_id":396} 
[2026-03-08 21:30:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5661,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5661}} 
[2026-03-08 21:30:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5661,"item_index":3,"menu_item_id":61} 
[2026-03-08 21:30:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5661,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5661}} 
[2026-03-08 21:30:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5661,"item_index":4,"menu_item_id":56} 
[2026-03-08 21:30:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5661,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5661}} 
[2026-03-08 21:30:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5661,"item_index":5,"menu_item_id":5} 
[2026-03-08 21:30:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5661,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5661}} 
[2026-03-08 21:30:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5661,"item_index":6,"menu_item_id":3} 
[2026-03-08 21:30:24] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5660,"new_order_id":5661,"order_number":"AZS-080326-017"} 
[2026-03-08 22:01:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5662,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":27256},{"menu_item_id":416,"quantity":5,"discount_percent":0,"notes":null,"id":27257},{"menu_item_id":414,"quantity":1,"discount_percent":0,"notes":null,"id":27258}],"validated_items":[{"id":27256,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":27257,"menu_item_id":416,"quantity":5,"discount_percent":0,"notes":null},{"id":27258,"menu_item_id":414,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 22:01:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5662,"items_count":3} 
[2026-03-08 22:01:15] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27256,"menu_item_id":411,"quantity":1},{"id":27257,"menu_item_id":416,"quantity":5},{"id":27258,"menu_item_id":414,"quantity":1}]} 
[2026-03-08 22:01:15] local.INFO: PosOrderController::update - Item changes check {"order_id":5662,"has_item_changes":true,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|1|","416|4|","414|1|"],"new_items_map_keys":["411|1|","416|5|","414|1|"]} 
[2026-03-08 22:01:15] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5662,"order_number":"AZS-080326-018"} 
[2026-03-08 22:01:15] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-018","replaced_order_id":5662} 
[2026-03-08 22:01:15] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5663,"items_count":3,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":416,"quantity":5,"price":"70.00"},{"menu_item_id":414,"quantity":1,"price":"150.00"}]} 
[2026-03-08 22:01:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5663,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5663}} 
[2026-03-08 22:01:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5663,"item_index":0,"menu_item_id":411} 
[2026-03-08 22:01:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5663,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":5,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":350.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5663}} 
[2026-03-08 22:01:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5663,"item_index":1,"menu_item_id":416} 
[2026-03-08 22:01:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5663,"item_index":2,"item_data":{"menu_item_id":414,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sada Channy","quantity":1,"price":"150.00","discount_percent":0.0,"discount_amount":0.0,"total":150.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5663}} 
[2026-03-08 22:01:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5663,"item_index":2,"menu_item_id":414} 
[2026-03-08 22:01:15] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5662,"new_order_id":5663,"order_number":"AZS-080326-018"} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5661,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":27249},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":27250},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":27251},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27252},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27253},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27254},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":27255},{"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null}],"validated_items":[{"id":27249,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":27250,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":27251,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":27252,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27253,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27254,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":27255,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5661,"items_count":9} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27249,"menu_item_id":102,"quantity":1},{"id":27250,"menu_item_id":96,"quantity":1},{"id":27251,"menu_item_id":396,"quantity":4},{"id":27252,"menu_item_id":61,"quantity":1},{"id":27253,"menu_item_id":56,"quantity":1},{"id":27254,"menu_item_id":5,"quantity":1},{"id":27255,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":412,"quantity":1},{"id":null,"menu_item_id":13,"quantity":4}]} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5661,"has_item_changes":true,"old_items_count":7,"new_items_count":9,"old_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|","3|1|","412|1|","13|4|"]} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5661,"order_number":"AZS-080326-017"} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-017","replaced_order_id":5661} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5666,"items_count":9,"items":[{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":412,"quantity":1,"price":"220.00"},{"menu_item_id":13,"quantity":4,"price":"249.00"}]} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5666,"item_index":0,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5666}} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5666,"item_index":0,"menu_item_id":102} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5666,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5666}} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5666,"item_index":1,"menu_item_id":96} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5666,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5666}} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5666,"item_index":2,"menu_item_id":396} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5666,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5666}} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5666,"item_index":3,"menu_item_id":61} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5666,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5666}} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5666,"item_index":4,"menu_item_id":56} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5666,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5666}} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5666,"item_index":5,"menu_item_id":5} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5666,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5666}} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5666,"item_index":6,"menu_item_id":3} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5666,"item_index":7,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":1,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":220.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5666}} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5666,"item_index":7,"menu_item_id":412} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5666,"item_index":8,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":4,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5666}} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5666,"item_index":8,"menu_item_id":13} 
[2026-03-08 22:10:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5661,"new_order_id":5666,"order_number":"AZS-080326-017"} 
[2026-03-08 22:29:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5663,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27259},{"menu_item_id":416,"quantity":7,"price":70,"discount_percent":0,"notes":null,"id":27260},{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null,"id":27261},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null}],"validated_items":[{"id":27259,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":27260,"menu_item_id":416,"quantity":7,"price":70,"discount_percent":0,"notes":null},{"id":27261,"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-08 22:29:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5663,"items_count":4} 
[2026-03-08 22:29:28] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27259,"menu_item_id":411,"quantity":1},{"id":27260,"menu_item_id":416,"quantity":7},{"id":27261,"menu_item_id":414,"quantity":1},{"id":null,"menu_item_id":425,"quantity":1}]} 
[2026-03-08 22:29:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5663,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["411|1|","416|5|","414|1|"],"new_items_map_keys":["411|1|","416|7|","414|1|","425|1|"]} 
[2026-03-08 22:29:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5663,"order_number":"AZS-080326-018"} 
[2026-03-08 22:29:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-018","replaced_order_id":5663} 
[2026-03-08 22:29:28] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5667,"items_count":4,"items":[{"menu_item_id":411,"quantity":1,"price":599.0},{"menu_item_id":416,"quantity":7,"price":70.0},{"menu_item_id":414,"quantity":1,"price":150.0},{"menu_item_id":425,"quantity":1,"price":99.0}]} 
[2026-03-08 22:29:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5667,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":599.0,"discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5667}} 
[2026-03-08 22:29:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5667,"item_index":0,"menu_item_id":411} 
[2026-03-08 22:29:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5667,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":7,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":490.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5667}} 
[2026-03-08 22:29:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5667,"item_index":1,"menu_item_id":416} 
[2026-03-08 22:29:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5667,"item_index":2,"item_data":{"menu_item_id":414,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sada Channy","quantity":1,"price":150.0,"discount_percent":0.0,"discount_amount":0.0,"total":150.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5667}} 
[2026-03-08 22:29:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5667,"item_index":2,"menu_item_id":414} 
[2026-03-08 22:29:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5667,"item_index":3,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5667}} 
[2026-03-08 22:29:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5667,"item_index":3,"menu_item_id":425} 
[2026-03-08 22:29:28] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5663,"new_order_id":5667,"order_number":"AZS-080326-018"} 
[2026-03-08 22:29:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5667,"item_index":0,"item_id":27259} 
[2026-03-08 22:29:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5667,"item_index":1,"item_id":27260} 
[2026-03-08 22:29:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5667,"item_index":2,"item_id":27261} 
[2026-03-08 22:29:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5667,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27259},{"menu_item_id":416,"quantity":7,"price":70,"discount_percent":0,"notes":null,"id":27260},{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null,"id":27261},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":7,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-08 22:29:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5667,"items_count":4} 
[2026-03-08 22:29:34] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[27275,27276,27277,27278],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":416,"quantity":7},{"id":null,"menu_item_id":414,"quantity":1},{"id":null,"menu_item_id":425,"quantity":1}]} 
[2026-03-08 22:29:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5667,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|1|","416|7|","414|1|","425|1|"],"new_items_map_keys":["411|1|","416|7|","414|1|","425|1|"]} 
[2026-03-08 22:29:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5667,"order_number":"AZS-080326-018"} 
[2026-03-08 22:29:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5667,"order_number":"AZS-080326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-08 22:29:34"} 
[2026-03-08 22:30:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5667,"item_index":0,"item_id":27259} 
[2026-03-08 22:30:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5667,"item_index":1,"item_id":27260} 
[2026-03-08 22:30:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5667,"item_index":2,"item_id":27261} 
[2026-03-08 22:30:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":4,"order_id":5667,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":27259},{"menu_item_id":416,"quantity":7,"discount_percent":0,"notes":null,"id":27260},{"menu_item_id":414,"quantity":1,"discount_percent":0,"notes":null,"id":27261},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":7,"discount_percent":0,"notes":null},{"menu_item_id":414,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 22:30:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5667,"items_count":5} 
[2026-03-08 22:30:02] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":4,"items_to_remove":[27275,27276,27277,27278],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":416,"quantity":7},{"id":null,"menu_item_id":414,"quantity":1},{"id":null,"menu_item_id":425,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 22:30:02] local.INFO: PosOrderController::update - Item changes check {"order_id":5667,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["411|1|","416|7|","414|1|","425|1|"],"new_items_map_keys":["411|1|","416|7|","414|1|","425|1|","5|1|"]} 
[2026-03-08 22:30:02] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5667,"order_number":"AZS-080326-018"} 
[2026-03-08 22:30:02] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-018","replaced_order_id":5667} 
[2026-03-08 22:30:02] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5668,"items_count":5,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":416,"quantity":7,"price":"70.00"},{"menu_item_id":414,"quantity":1,"price":"150.00"},{"menu_item_id":425,"quantity":1,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-08 22:30:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5668,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5668}} 
[2026-03-08 22:30:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5668,"item_index":0,"menu_item_id":411} 
[2026-03-08 22:30:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5668,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":7,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":490.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5668}} 
[2026-03-08 22:30:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5668,"item_index":1,"menu_item_id":416} 
[2026-03-08 22:30:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5668,"item_index":2,"item_data":{"menu_item_id":414,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sada Channy","quantity":1,"price":"150.00","discount_percent":0.0,"discount_amount":0.0,"total":150.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5668}} 
[2026-03-08 22:30:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5668,"item_index":2,"menu_item_id":414} 
[2026-03-08 22:30:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5668,"item_index":3,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5668}} 
[2026-03-08 22:30:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5668,"item_index":3,"menu_item_id":425} 
[2026-03-08 22:30:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5668,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5668}} 
[2026-03-08 22:30:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5668,"item_index":4,"menu_item_id":5} 
[2026-03-08 22:30:02] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5667,"new_order_id":5668,"order_number":"AZS-080326-018"} 
[2026-03-08 22:30:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5668,"item_index":0,"item_id":27259} 
[2026-03-08 22:30:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5668,"item_index":1,"item_id":27260} 
[2026-03-08 22:30:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5668,"item_index":2,"item_id":27261} 
[2026-03-08 22:30:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5668,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27259},{"menu_item_id":416,"quantity":7,"price":70,"discount_percent":0,"notes":null,"id":27260},{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null,"id":27261},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":7,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-08 22:30:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5668,"items_count":5} 
[2026-03-08 22:30:09] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[27279,27280,27281,27282,27283],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":416,"quantity":7},{"id":null,"menu_item_id":414,"quantity":1},{"id":null,"menu_item_id":425,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 22:30:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5668,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|1|","416|7|","414|1|","425|1|","5|1|"],"new_items_map_keys":["411|1|","416|7|","414|1|","425|1|","5|1|"]} 
[2026-03-08 22:30:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5668,"order_number":"AZS-080326-018"} 
[2026-03-08 22:30:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5668,"order_number":"AZS-080326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-08 22:30:09"} 
[2026-03-08 22:34:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T10:34:54.318Z","date_to":"2026-03-08T22:34:54.318Z","per_page":"100"} 
[2026-03-08 22:34:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":38,"count":38,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending","changed","changed","changed","pending","changed","changed","pending","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":18,"paid_count":15,"unpaid_count":5,"unique_order_numbers":20} 
[2026-03-08 22:34:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T10:34:54.303Z","date_to":"2026-03-08T22:34:54.303Z","per_page":"100"} 
[2026-03-08 22:34:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":38,"count":38,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending","changed","changed","changed","pending","changed","changed","pending","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":18,"paid_count":15,"unpaid_count":5,"unique_order_numbers":20} 
[2026-03-08 22:34:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T10:34:54.303Z","date_to":"2026-03-08T22:34:54.303Z","per_page":"100"} 
[2026-03-08 22:34:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":38,"count":38,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending","changed","changed","changed","pending","changed","changed","pending","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":18,"paid_count":15,"unpaid_count":5,"unique_order_numbers":20} 
[2026-03-08 22:40:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T10:40:32.280Z","date_to":"2026-03-08T22:40:32.280Z","per_page":"100"} 
[2026-03-08 22:40:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T10:40:32.298Z","date_to":"2026-03-08T22:40:32.298Z","per_page":"100"} 
[2026-03-08 22:40:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending","pending","changed","changed","changed","pending","changed","changed","pending","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":18,"paid_count":15,"unpaid_count":6,"unique_order_numbers":21} 
[2026-03-08 22:40:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending","pending","changed","changed","changed","pending","changed","changed","pending","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":18,"paid_count":15,"unpaid_count":6,"unique_order_numbers":21} 
[2026-03-08 22:40:35] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T10:40:32.280Z","date_to":"2026-03-08T22:40:32.280Z","per_page":"100"} 
[2026-03-08 22:40:35] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending","pending","changed","changed","changed","pending","changed","changed","pending","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":18,"paid_count":15,"unpaid_count":6,"unique_order_numbers":21} 
[2026-03-08 22:47:50] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5658,"order_number":"AZS-080326-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":600,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 22:47:50"} 
[2026-03-08 22:47:50] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5658,"order_number":"AZS-080326-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 22:47:50"} 
[2026-03-08 22:47:50] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5658,"order_number":"AZS-080326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 22:47:50"} 
[2026-03-08 22:47:50] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5658,"order_number":"AZS-080326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 22:47:50"} 
[2026-03-08 22:47:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5658,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27238}],"validated_items":[{"id":27238,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null}]} 
[2026-03-08 22:47:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5658,"items_count":1} 
[2026-03-08 22:47:50] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27238,"menu_item_id":411,"quantity":1}]} 
[2026-03-08 22:47:50] local.INFO: PosOrderController::update - Item changes check {"order_id":5658,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|"]} 
[2026-03-08 22:47:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5658,"order_number":"AZS-080326-016"} 
[2026-03-08 22:47:50] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5658,"order_number":"AZS-080326-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":600,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-08 22:47:50","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-08 22:47:50"} 
[2026-03-08 22:47:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5658,"order_number":"AZS-080326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-08 22:47:50"} 
[2026-03-08 22:47:50] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5658,"order_number":"AZS-080326-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"600.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-08 22:47:50","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"600.00","database_verification_match":true,"timestamp":"2026-03-08 22:47:50"} 
[2026-03-08 22:47:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T10:47:56.640Z","date_to":"2026-03-08T22:47:56.640Z","per_page":"100"} 
[2026-03-08 22:47:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending","pending","changed","changed","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":18,"paid_count":16,"unpaid_count":5,"unique_order_numbers":21} 
[2026-03-08 22:47:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T10:47:56.656Z","date_to":"2026-03-08T22:47:56.656Z","per_page":"100"} 
[2026-03-08 22:47:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending","pending","changed","changed","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":18,"paid_count":16,"unpaid_count":5,"unique_order_numbers":21} 
[2026-03-08 22:47:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T10:47:56.640Z","date_to":"2026-03-08T22:47:56.640Z","per_page":"100"} 
[2026-03-08 22:47:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending","pending","changed","changed","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":18,"paid_count":16,"unpaid_count":5,"unique_order_numbers":21} 
[2026-03-08 22:53:46] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5668,"order_number":"AZS-080326-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1508,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 22:53:46"} 
[2026-03-08 22:53:46] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5668,"order_number":"AZS-080326-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1508,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 22:53:46"} 
[2026-03-08 22:53:46] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5668,"order_number":"AZS-080326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1508,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 22:53:46"} 
[2026-03-08 22:53:46] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5668,"order_number":"AZS-080326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1508,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 22:53:46"} 
[2026-03-08 22:53:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5668,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27279},{"menu_item_id":416,"quantity":7,"price":70,"discount_percent":0,"notes":null,"id":27280},{"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null,"id":27281},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":27282},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27283}],"validated_items":[{"id":27279,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":27280,"menu_item_id":416,"quantity":7,"price":70,"discount_percent":0,"notes":null},{"id":27281,"menu_item_id":414,"quantity":1,"price":150,"discount_percent":0,"notes":null},{"id":27282,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":27283,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-08 22:53:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5668,"items_count":5} 
[2026-03-08 22:53:46] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27279,"menu_item_id":411,"quantity":1},{"id":27280,"menu_item_id":416,"quantity":7},{"id":27281,"menu_item_id":414,"quantity":1},{"id":27282,"menu_item_id":425,"quantity":1},{"id":27283,"menu_item_id":5,"quantity":1}]} 
[2026-03-08 22:53:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5668,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|1|","416|7|","414|1|","425|1|","5|1|"],"new_items_map_keys":["411|1|","416|7|","414|1|","425|1|","5|1|"]} 
[2026-03-08 22:53:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5668,"order_number":"AZS-080326-018"} 
[2026-03-08 22:53:46] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5668,"order_number":"AZS-080326-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1508,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-08 22:53:46","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-08 22:53:46"} 
[2026-03-08 22:53:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5668,"order_number":"AZS-080326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-08 22:53:46"} 
[2026-03-08 22:53:46] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5668,"order_number":"AZS-080326-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1508.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-08 22:53:46","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1508,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1508.00","database_verification_match":true,"timestamp":"2026-03-08 22:53:46"} 
[2026-03-08 22:53:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T10:53:49.919Z","date_to":"2026-03-08T22:53:49.919Z","per_page":"100"} 
[2026-03-08 22:53:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending","paid","changed","changed","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":18,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-08 22:53:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T10:53:49.934Z","date_to":"2026-03-08T22:53:49.934Z","per_page":"100"} 
[2026-03-08 22:53:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending","paid","changed","changed","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":18,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-08 22:53:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T10:53:49.919Z","date_to":"2026-03-08T22:53:49.919Z","per_page":"100"} 
[2026-03-08 22:53:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","pending","paid","changed","changed","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":18,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-08 22:55:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5669,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null,"id":27284},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27285},{"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27284,"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null},{"id":27285,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 22:55:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5669,"items_count":3} 
[2026-03-08 22:55:02] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27284,"menu_item_id":411,"quantity":3},{"id":27285,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":422,"quantity":1}]} 
[2026-03-08 22:55:02] local.INFO: PosOrderController::update - Item changes check {"order_id":5669,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["411|3|","5|1|"],"new_items_map_keys":["411|3|","5|1|","422|1|"]} 
[2026-03-08 22:55:02] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5669,"order_number":"AZS-080326-021"} 
[2026-03-08 22:55:02] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-021","replaced_order_id":5669} 
[2026-03-08 22:55:02] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5670,"items_count":3,"items":[{"menu_item_id":411,"quantity":3,"price":"599.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":422,"quantity":1,"price":"70.00"}]} 
[2026-03-08 22:55:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5670,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":3,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1797.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5670}} 
[2026-03-08 22:55:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5670,"item_index":0,"menu_item_id":411} 
[2026-03-08 22:55:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5670,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5670}} 
[2026-03-08 22:55:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5670,"item_index":1,"menu_item_id":5} 
[2026-03-08 22:55:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5670,"item_index":2,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5670}} 
[2026-03-08 22:55:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5670,"item_index":2,"menu_item_id":422} 
[2026-03-08 22:55:02] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5669,"new_order_id":5670,"order_number":"AZS-080326-021"} 
[2026-03-08 22:55:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T10:55:48.862Z","date_to":"2026-03-08T22:55:48.862Z","per_page":"100"} 
[2026-03-08 22:55:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":40,"count":40,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","pending","pending","paid","changed","changed","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":19,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-08 22:55:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T10:55:48.847Z","date_to":"2026-03-08T22:55:48.847Z","per_page":"100"} 
[2026-03-08 22:55:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":40,"count":40,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","pending","pending","paid","changed","changed","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":19,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-08 22:55:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T10:55:48.847Z","date_to":"2026-03-08T22:55:48.847Z","per_page":"100"} 
[2026-03-08 22:55:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":40,"count":40,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","pending","pending","paid","changed","changed","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":19,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-08 22:58:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5670,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null,"id":27286},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27287},{"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null,"id":27288},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27286,"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null},{"id":27287,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":27288,"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 22:58:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5670,"items_count":4} 
[2026-03-08 22:58:19] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27286,"menu_item_id":411,"quantity":3},{"id":27287,"menu_item_id":5,"quantity":1},{"id":27288,"menu_item_id":422,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-08 22:58:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5670,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["411|3|","5|1|","422|1|"],"new_items_map_keys":["411|3|","5|1|","422|1|","2|1|"]} 
[2026-03-08 22:58:19] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5670,"order_number":"AZS-080326-021"} 
[2026-03-08 22:58:19] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-021","replaced_order_id":5670} 
[2026-03-08 22:58:19] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5671,"items_count":4,"items":[{"menu_item_id":411,"quantity":3,"price":"599.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":422,"quantity":1,"price":"70.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-08 22:58:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5671,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":3,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1797.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5671}} 
[2026-03-08 22:58:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5671,"item_index":0,"menu_item_id":411} 
[2026-03-08 22:58:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5671,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5671}} 
[2026-03-08 22:58:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5671,"item_index":1,"menu_item_id":5} 
[2026-03-08 22:58:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5671,"item_index":2,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5671}} 
[2026-03-08 22:58:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5671,"item_index":2,"menu_item_id":422} 
[2026-03-08 22:58:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5671,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5671}} 
[2026-03-08 22:58:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5671,"item_index":3,"menu_item_id":2} 
[2026-03-08 22:58:19] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5670,"new_order_id":5671,"order_number":"AZS-080326-021"} 
[2026-03-08 22:58:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T10:58:27.007Z","date_to":"2026-03-08T22:58:27.007Z","per_page":"100"} 
[2026-03-08 22:58:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T10:58:27.021Z","date_to":"2026-03-08T22:58:27.021Z","per_page":"100"} 
[2026-03-08 22:58:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":41,"count":41,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","changed","pending","pending","paid","changed","changed","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":20,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-08 22:58:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":41,"count":41,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","changed","pending","pending","paid","changed","changed","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":20,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-08 22:58:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T10:58:27.007Z","date_to":"2026-03-08T22:58:27.007Z","per_page":"100"} 
[2026-03-08 22:58:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":41,"count":41,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","changed","pending","pending","paid","changed","changed","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":20,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-08 22:58:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5666,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":27266},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27267},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":27268},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27269},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27270},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27271},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27272},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null,"id":27273},{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":27274}],"validated_items":[{"id":27266,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":27267,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27268,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":27269,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27270,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27271,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27272,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":27273,"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null},{"id":27274,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-08 22:58:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5666,"items_count":9} 
[2026-03-08 22:58:58] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27266,"menu_item_id":102,"quantity":1},{"id":27267,"menu_item_id":96,"quantity":1},{"id":27268,"menu_item_id":396,"quantity":4},{"id":27269,"menu_item_id":61,"quantity":1},{"id":27270,"menu_item_id":56,"quantity":1},{"id":27271,"menu_item_id":5,"quantity":1},{"id":27272,"menu_item_id":3,"quantity":1},{"id":27273,"menu_item_id":412,"quantity":1},{"id":27274,"menu_item_id":13,"quantity":4}]} 
[2026-03-08 22:58:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5666,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|","3|1|","412|1|","13|4|"],"new_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|","3|1|","412|1|","13|4|"]} 
[2026-03-08 22:58:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5666,"order_number":"AZS-080326-017"} 
[2026-03-08 22:58:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5666,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-08 22:58:58"} 
[2026-03-08 22:59:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T10:59:17.296Z","date_to":"2026-03-08T22:59:17.296Z","per_page":"100"} 
[2026-03-08 22:59:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T10:59:17.315Z","date_to":"2026-03-08T22:59:17.315Z","per_page":"100"} 
[2026-03-08 22:59:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":41,"count":41,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","changed","pending","pending","paid","changed","changed","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":20,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-08 22:59:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":41,"count":41,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","changed","pending","pending","paid","changed","changed","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":20,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-08 22:59:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T10:59:17.296Z","date_to":"2026-03-08T22:59:17.296Z","per_page":"100"} 
[2026-03-08 22:59:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":41,"count":41,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","changed","pending","pending","paid","changed","changed","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":20,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-08 22:59:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5671,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null,"id":27289},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27290},{"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null,"id":27291},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":27292},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27289,"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null},{"id":27290,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":27291,"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null},{"id":27292,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 22:59:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5671,"items_count":5} 
[2026-03-08 22:59:50] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27289,"menu_item_id":411,"quantity":3},{"id":27290,"menu_item_id":5,"quantity":1},{"id":27291,"menu_item_id":422,"quantity":1},{"id":27292,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":416,"quantity":1}]} 
[2026-03-08 22:59:50] local.INFO: PosOrderController::update - Item changes check {"order_id":5671,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["411|3|","5|1|","422|1|","2|1|"],"new_items_map_keys":["411|3|","5|1|","422|1|","2|1|","416|1|"]} 
[2026-03-08 22:59:50] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5671,"order_number":"AZS-080326-021"} 
[2026-03-08 22:59:50] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-021","replaced_order_id":5671} 
[2026-03-08 22:59:50] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5672,"items_count":5,"items":[{"menu_item_id":411,"quantity":3,"price":"599.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":422,"quantity":1,"price":"70.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":416,"quantity":1,"price":"70.00"}]} 
[2026-03-08 22:59:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5672,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":3,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1797.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5672}} 
[2026-03-08 22:59:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5672,"item_index":0,"menu_item_id":411} 
[2026-03-08 22:59:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5672,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5672}} 
[2026-03-08 22:59:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5672,"item_index":1,"menu_item_id":5} 
[2026-03-08 22:59:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5672,"item_index":2,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5672}} 
[2026-03-08 22:59:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5672,"item_index":2,"menu_item_id":422} 
[2026-03-08 22:59:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5672,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5672}} 
[2026-03-08 22:59:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5672,"item_index":3,"menu_item_id":2} 
[2026-03-08 22:59:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5672,"item_index":4,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5672}} 
[2026-03-08 22:59:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5672,"item_index":4,"menu_item_id":416} 
[2026-03-08 22:59:50] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5671,"new_order_id":5672,"order_number":"AZS-080326-021"} 
[2026-03-08 23:00:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T11:00:39.229Z","date_to":"2026-03-08T23:00:39.229Z","per_page":"100"} 
[2026-03-08 23:00:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","changed","changed","pending","pending","paid","changed","changed","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":21,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-08 23:00:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T11:00:39.222Z","date_to":"2026-03-08T23:00:39.222Z","per_page":"100"} 
[2026-03-08 23:00:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","changed","changed","pending","pending","paid","changed","changed","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":21,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-08 23:00:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T11:00:39.222Z","date_to":"2026-03-08T23:00:39.222Z","per_page":"100"} 
[2026-03-08 23:00:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","changed","changed","pending","pending","paid","changed","changed","changed","pending","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":21,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-08 23:03:37] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5666,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5300,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 23:03:37"} 
[2026-03-08 23:03:37] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5666,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5300,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 23:03:37"} 
[2026-03-08 23:03:37] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5666,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5300,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 23:03:37"} 
[2026-03-08 23:03:37] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5666,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5300,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 23:03:37"} 
[2026-03-08 23:03:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5666,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":27266},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27267},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":27268},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27269},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27270},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27271},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27272},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null,"id":27273},{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":27274}],"validated_items":[{"id":27266,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":27267,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27268,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":27269,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27270,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27271,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27272,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":27273,"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null},{"id":27274,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-08 23:03:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5666,"items_count":9} 
[2026-03-08 23:03:37] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27266,"menu_item_id":102,"quantity":1},{"id":27267,"menu_item_id":96,"quantity":1},{"id":27268,"menu_item_id":396,"quantity":4},{"id":27269,"menu_item_id":61,"quantity":1},{"id":27270,"menu_item_id":56,"quantity":1},{"id":27271,"menu_item_id":5,"quantity":1},{"id":27272,"menu_item_id":3,"quantity":1},{"id":27273,"menu_item_id":412,"quantity":1},{"id":27274,"menu_item_id":13,"quantity":4}]} 
[2026-03-08 23:03:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5666,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|","3|1|","412|1|","13|4|"],"new_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|","3|1|","412|1|","13|4|"]} 
[2026-03-08 23:03:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5666,"order_number":"AZS-080326-017"} 
[2026-03-08 23:03:37] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5666,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5300,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-08 23:03:37","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-08 23:03:37"} 
[2026-03-08 23:03:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5666,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-08 23:03:37"} 
[2026-03-08 23:03:37] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5666,"order_number":"AZS-080326-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5300.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-08 23:03:37","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5300,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5300.00","database_verification_match":true,"timestamp":"2026-03-08 23:03:37"} 
[2026-03-08 23:03:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T11:03:47.111Z","date_to":"2026-03-08T23:03:47.111Z","per_page":"100"} 
[2026-03-08 23:03:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","changed","changed","pending","pending","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":21,"paid_count":18,"unpaid_count":3,"unique_order_numbers":21} 
[2026-03-08 23:03:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T11:03:47.133Z","date_to":"2026-03-08T23:03:47.133Z","per_page":"100"} 
[2026-03-08 23:03:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","changed","changed","pending","pending","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":21,"paid_count":18,"unpaid_count":3,"unique_order_numbers":21} 
[2026-03-08 23:03:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T11:03:47.111Z","date_to":"2026-03-08T23:03:47.111Z","per_page":"100"} 
[2026-03-08 23:03:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","changed","changed","pending","pending","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":21,"paid_count":18,"unpaid_count":3,"unique_order_numbers":21} 
[2026-03-08 23:06:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5672,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null,"id":27293},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27294},{"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null,"id":27295},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":27296},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null,"id":27297}],"validated_items":[{"id":27293,"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null},{"id":27294,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":27295,"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null},{"id":27296,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":27297,"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-08 23:06:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5672,"items_count":5} 
[2026-03-08 23:06:14] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27293,"menu_item_id":411,"quantity":3},{"id":27294,"menu_item_id":5,"quantity":1},{"id":27295,"menu_item_id":422,"quantity":1},{"id":27296,"menu_item_id":2,"quantity":1},{"id":27297,"menu_item_id":416,"quantity":2}]} 
[2026-03-08 23:06:14] local.INFO: PosOrderController::update - Item changes check {"order_id":5672,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|3|","5|1|","422|1|","2|1|","416|1|"],"new_items_map_keys":["411|3|","5|1|","422|1|","2|1|","416|2|"]} 
[2026-03-08 23:06:14] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5672,"order_number":"AZS-080326-021"} 
[2026-03-08 23:06:14] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-021","replaced_order_id":5672} 
[2026-03-08 23:06:14] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5673,"items_count":5,"items":[{"menu_item_id":411,"quantity":3,"price":"599.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":422,"quantity":1,"price":"70.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"}]} 
[2026-03-08 23:06:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5673,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":3,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1797.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5673}} 
[2026-03-08 23:06:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5673,"item_index":0,"menu_item_id":411} 
[2026-03-08 23:06:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5673,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5673}} 
[2026-03-08 23:06:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5673,"item_index":1,"menu_item_id":5} 
[2026-03-08 23:06:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5673,"item_index":2,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5673}} 
[2026-03-08 23:06:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5673,"item_index":2,"menu_item_id":422} 
[2026-03-08 23:06:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5673,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5673}} 
[2026-03-08 23:06:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5673,"item_index":3,"menu_item_id":2} 
[2026-03-08 23:06:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5673,"item_index":4,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5673}} 
[2026-03-08 23:06:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5673,"item_index":4,"menu_item_id":416} 
[2026-03-08 23:06:14] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5672,"new_order_id":5673,"order_number":"AZS-080326-021"} 
[2026-03-08 23:08:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T11:08:49.599Z","date_to":"2026-03-08T23:08:49.599Z","per_page":"100"} 
[2026-03-08 23:08:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T11:08:49.582Z","date_to":"2026-03-08T23:08:49.582Z","per_page":"100"} 
[2026-03-08 23:08:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":43,"count":43,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","changed","changed","changed","pending","pending","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":22,"paid_count":18,"unpaid_count":3,"unique_order_numbers":21} 
[2026-03-08 23:08:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":43,"count":43,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","changed","changed","changed","pending","pending","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":22,"paid_count":18,"unpaid_count":3,"unique_order_numbers":21} 
[2026-03-08 23:08:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T11:08:49.582Z","date_to":"2026-03-08T23:08:49.582Z","per_page":"100"} 
[2026-03-08 23:08:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":43,"count":43,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","changed","changed","changed","pending","pending","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":22,"paid_count":18,"unpaid_count":3,"unique_order_numbers":21} 
[2026-03-08 23:09:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T11:09:43.029Z","date_to":"2026-03-08T23:09:43.029Z","per_page":"100"} 
[2026-03-08 23:09:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":43,"count":43,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","changed","changed","changed","pending","pending","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":22,"paid_count":18,"unpaid_count":3,"unique_order_numbers":21} 
[2026-03-08 23:09:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T11:09:43.049Z","date_to":"2026-03-08T23:09:43.049Z","per_page":"100"} 
[2026-03-08 23:09:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":43,"count":43,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","changed","changed","changed","pending","pending","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":22,"paid_count":18,"unpaid_count":3,"unique_order_numbers":21} 
[2026-03-08 23:09:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T11:09:43.029Z","date_to":"2026-03-08T23:09:43.029Z","per_page":"100"} 
[2026-03-08 23:09:45] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":43,"count":43,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","changed","changed","changed","changed","pending","pending","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":22,"paid_count":18,"unpaid_count":3,"unique_order_numbers":21} 
[2026-03-08 23:16:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5665,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null,"id":27264},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null,"id":27265},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":413,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":27264,"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null},{"id":27265,"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":413,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-08 23:16:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5665,"items_count":7} 
[2026-03-08 23:16:42] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27264,"menu_item_id":4,"quantity":1},{"id":27265,"menu_item_id":29,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":51,"quantity":2},{"id":null,"menu_item_id":416,"quantity":1},{"id":null,"menu_item_id":425,"quantity":2},{"id":null,"menu_item_id":413,"quantity":2}]} 
[2026-03-08 23:16:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5665,"has_item_changes":true,"old_items_count":2,"new_items_count":7,"old_items_map_keys":["4|1|","29|1|"],"new_items_map_keys":["4|1|","29|1|","105|1|","51|2|","416|1|","425|2|","413|2|"]} 
[2026-03-08 23:16:42] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5665,"order_number":"AZS-080326-020"} 
[2026-03-08 23:16:42] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-020","replaced_order_id":5665} 
[2026-03-08 23:16:42] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5675,"items_count":7,"items":[{"menu_item_id":4,"quantity":1,"price":"90.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":51,"quantity":2,"price":"199.00"},{"menu_item_id":416,"quantity":1,"price":"70.00"},{"menu_item_id":425,"quantity":2,"price":"99.00"},{"menu_item_id":413,"quantity":2,"price":"200.00"}]} 
[2026-03-08 23:16:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5675,"item_index":0,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5675}} 
[2026-03-08 23:16:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5675,"item_index":0,"menu_item_id":4} 
[2026-03-08 23:16:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5675,"item_index":1,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5675}} 
[2026-03-08 23:16:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5675,"item_index":1,"menu_item_id":29} 
[2026-03-08 23:16:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5675,"item_index":2,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5675}} 
[2026-03-08 23:16:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5675,"item_index":2,"menu_item_id":105} 
[2026-03-08 23:16:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5675,"item_index":3,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5675}} 
[2026-03-08 23:16:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5675,"item_index":3,"menu_item_id":51} 
[2026-03-08 23:16:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5675,"item_index":4,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5675}} 
[2026-03-08 23:16:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5675,"item_index":4,"menu_item_id":416} 
[2026-03-08 23:16:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5675,"item_index":5,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5675}} 
[2026-03-08 23:16:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5675,"item_index":5,"menu_item_id":425} 
[2026-03-08 23:16:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5675,"item_index":6,"item_data":{"menu_item_id":413,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Namkeen Lassi","quantity":2,"price":"200.00","discount_percent":0.0,"discount_amount":0.0,"total":400.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5675}} 
[2026-03-08 23:16:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5675,"item_index":6,"menu_item_id":413} 
[2026-03-08 23:16:42] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5665,"new_order_id":5675,"order_number":"AZS-080326-020"} 
[2026-03-08 23:17:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5664,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27262},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":27263}],"validated_items":[{"id":27262,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27263,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-08 23:17:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5664,"items_count":2} 
[2026-03-08 23:17:42] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27262,"menu_item_id":6,"quantity":1},{"id":27263,"menu_item_id":13,"quantity":1}]} 
[2026-03-08 23:17:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5664,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|1|","13|1|"],"new_items_map_keys":["6|1|","13|1|"]} 
[2026-03-08 23:17:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5664,"order_number":"AZS-080326-019"} 
[2026-03-08 23:17:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5664,"order_number":"AZS-080326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-08 23:17:42"} 
[2026-03-08 23:19:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":1,"order_id":5675,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null,"id":27307},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null,"id":27308},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null,"id":27310},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null,"id":27311},{"menu_item_id":425,"quantity":2,"discount_percent":0,"notes":null,"id":27312},{"menu_item_id":413,"quantity":2,"discount_percent":0,"notes":null,"id":27313},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27307,"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null},{"id":27308,"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null},{"id":27310,"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"id":27311,"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null},{"id":27312,"menu_item_id":425,"quantity":2,"discount_percent":0,"notes":null},{"id":27313,"menu_item_id":413,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 23:19:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5675,"items_count":7} 
[2026-03-08 23:19:31] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":1,"items_to_remove":[27309],"items":[{"id":27307,"menu_item_id":4,"quantity":1},{"id":27308,"menu_item_id":29,"quantity":1},{"id":27310,"menu_item_id":51,"quantity":2},{"id":27311,"menu_item_id":416,"quantity":1},{"id":27312,"menu_item_id":425,"quantity":2},{"id":27313,"menu_item_id":413,"quantity":2},{"id":null,"menu_item_id":113,"quantity":1}]} 
[2026-03-08 23:19:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5675,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["4|1|","29|1|","105|1|","51|2|","416|1|","425|2|","413|2|"],"new_items_map_keys":["4|1|","29|1|","51|2|","416|1|","425|2|","413|2|","113|1|"]} 
[2026-03-08 23:19:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5675,"order_number":"AZS-080326-020"} 
[2026-03-08 23:19:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-020","replaced_order_id":5675} 
[2026-03-08 23:19:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5676,"items_count":7,"items":[{"menu_item_id":4,"quantity":1,"price":"90.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"},{"menu_item_id":51,"quantity":2,"price":"199.00"},{"menu_item_id":416,"quantity":1,"price":"70.00"},{"menu_item_id":425,"quantity":2,"price":"99.00"},{"menu_item_id":413,"quantity":2,"price":"200.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"}]} 
[2026-03-08 23:19:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5676,"item_index":0,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5676}} 
[2026-03-08 23:19:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5676,"item_index":0,"menu_item_id":4} 
[2026-03-08 23:19:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5676,"item_index":1,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5676}} 
[2026-03-08 23:19:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5676,"item_index":1,"menu_item_id":29} 
[2026-03-08 23:19:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5676,"item_index":2,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5676}} 
[2026-03-08 23:19:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5676,"item_index":2,"menu_item_id":51} 
[2026-03-08 23:19:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5676,"item_index":3,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5676}} 
[2026-03-08 23:19:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5676,"item_index":3,"menu_item_id":416} 
[2026-03-08 23:19:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5676,"item_index":4,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5676}} 
[2026-03-08 23:19:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5676,"item_index":4,"menu_item_id":425} 
[2026-03-08 23:19:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5676,"item_index":5,"item_data":{"menu_item_id":413,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Namkeen Lassi","quantity":2,"price":"200.00","discount_percent":0.0,"discount_amount":0.0,"total":400.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5676}} 
[2026-03-08 23:19:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5676,"item_index":5,"menu_item_id":413} 
[2026-03-08 23:19:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5676,"item_index":6,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5676}} 
[2026-03-08 23:19:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5676,"item_index":6,"menu_item_id":113} 
[2026-03-08 23:19:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5675,"new_order_id":5676,"order_number":"AZS-080326-020"} 
[2026-03-08 23:19:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5676,"item_index":0,"item_id":27307} 
[2026-03-08 23:19:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5676,"item_index":1,"item_id":27308} 
[2026-03-08 23:19:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5676,"item_index":2,"item_id":27310} 
[2026-03-08 23:19:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5676,"item_index":3,"item_id":27311} 
[2026-03-08 23:19:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5676,"item_index":4,"item_id":27312} 
[2026-03-08 23:19:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5676,"item_index":5,"item_id":27313} 
[2026-03-08 23:19:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5676,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null,"id":27307},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null,"id":27308},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null,"id":27310},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null,"id":27311},{"menu_item_id":425,"quantity":2,"discount_percent":0,"notes":null,"id":27312},{"menu_item_id":413,"quantity":2,"discount_percent":0,"notes":null,"id":27313},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":413,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 23:19:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5676,"items_count":7} 
[2026-03-08 23:19:36] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[27314,27315,27316,27317,27318,27319,27320],"items":[{"id":null,"menu_item_id":4,"quantity":1},{"id":null,"menu_item_id":29,"quantity":1},{"id":null,"menu_item_id":51,"quantity":2},{"id":null,"menu_item_id":416,"quantity":1},{"id":null,"menu_item_id":425,"quantity":2},{"id":null,"menu_item_id":413,"quantity":2},{"id":null,"menu_item_id":113,"quantity":1}]} 
[2026-03-08 23:19:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5676,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["4|1|","29|1|","51|2|","416|1|","425|2|","413|2|","113|1|"],"new_items_map_keys":["4|1|","29|1|","51|2|","416|1|","425|2|","413|2|","113|1|"]} 
[2026-03-08 23:19:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5676,"order_number":"AZS-080326-020"} 
[2026-03-08 23:19:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5676,"order_number":"AZS-080326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-03-08 23:19:36"} 
[2026-03-08 23:22:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5673,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"price":599,"discount_percent":0,"notes":null,"id":27298},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27299},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":27300},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":27301},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":27302}],"validated_items":[{"id":27298,"menu_item_id":411,"quantity":3,"price":599,"discount_percent":0,"notes":null},{"id":27299,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27300,"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":27301,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":27302,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-08 23:22:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5673,"items_count":5} 
[2026-03-08 23:22:32] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27298,"menu_item_id":411,"quantity":3},{"id":27299,"menu_item_id":5,"quantity":1},{"id":27300,"menu_item_id":422,"quantity":1},{"id":27301,"menu_item_id":2,"quantity":1},{"id":27302,"menu_item_id":416,"quantity":2}]} 
[2026-03-08 23:22:32] local.INFO: PosOrderController::update - Item changes check {"order_id":5673,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|3|","5|1|","422|1|","2|1|","416|2|"],"new_items_map_keys":["411|3|","5|1|","422|1|","2|1|","416|2|"]} 
[2026-03-08 23:22:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5673,"order_number":"AZS-080326-021"} 
[2026-03-08 23:22:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5673,"order_number":"AZS-080326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-08 23:22:32"} 
[2026-03-08 23:26:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5673,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null,"id":27298},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27299},{"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null,"id":27300},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null,"id":27301},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null,"id":27302}],"validated_items":[{"id":27298,"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null},{"id":27299,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":27300,"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null},{"id":27301,"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"id":27302,"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-08 23:26:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5673,"items_count":5} 
[2026-03-08 23:26:22] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27298,"menu_item_id":411,"quantity":3},{"id":27299,"menu_item_id":5,"quantity":1},{"id":27300,"menu_item_id":422,"quantity":1},{"id":27301,"menu_item_id":2,"quantity":2},{"id":27302,"menu_item_id":416,"quantity":2}]} 
[2026-03-08 23:26:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5673,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|3|","5|1|","422|1|","2|1|","416|2|"],"new_items_map_keys":["411|3|","5|1|","422|1|","2|2|","416|2|"]} 
[2026-03-08 23:26:22] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5673,"order_number":"AZS-080326-021"} 
[2026-03-08 23:26:22] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-021","replaced_order_id":5673} 
[2026-03-08 23:26:22] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5678,"items_count":5,"items":[{"menu_item_id":411,"quantity":3,"price":"599.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":422,"quantity":1,"price":"70.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"}]} 
[2026-03-08 23:26:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5678,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":3,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1797.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5678}} 
[2026-03-08 23:26:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5678,"item_index":0,"menu_item_id":411} 
[2026-03-08 23:26:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5678,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5678}} 
[2026-03-08 23:26:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5678,"item_index":1,"menu_item_id":5} 
[2026-03-08 23:26:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5678,"item_index":2,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5678}} 
[2026-03-08 23:26:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5678,"item_index":2,"menu_item_id":422} 
[2026-03-08 23:26:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5678,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5678}} 
[2026-03-08 23:26:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5678,"item_index":3,"menu_item_id":2} 
[2026-03-08 23:26:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5678,"item_index":4,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5678}} 
[2026-03-08 23:26:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5678,"item_index":4,"menu_item_id":416} 
[2026-03-08 23:26:22] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5673,"new_order_id":5678,"order_number":"AZS-080326-021"} 
[2026-03-08 23:26:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5678,"item_index":0,"item_id":27298} 
[2026-03-08 23:26:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5678,"item_index":1,"item_id":27299} 
[2026-03-08 23:26:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5678,"item_index":2,"item_id":27300} 
[2026-03-08 23:26:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5678,"item_index":3,"item_id":27301} 
[2026-03-08 23:26:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5678,"item_index":4,"item_id":27302} 
[2026-03-08 23:26:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5678,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"price":599,"discount_percent":0,"notes":null,"id":27298},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27299},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":27300},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":27301},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":27302}],"validated_items":[{"menu_item_id":411,"quantity":3,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-08 23:26:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5678,"items_count":5} 
[2026-03-08 23:26:28] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[27324,27325,27326,27327,27328],"items":[{"id":null,"menu_item_id":411,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":422,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":416,"quantity":2}]} 
[2026-03-08 23:26:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5678,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|3|","5|1|","422|1|","2|2|","416|2|"],"new_items_map_keys":["411|3|","5|1|","422|1|","2|2|","416|2|"]} 
[2026-03-08 23:26:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5678,"order_number":"AZS-080326-021"} 
[2026-03-08 23:26:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5678,"order_number":"AZS-080326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-08 23:26:28"} 
[2026-03-08 23:32:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5678,"item_index":0,"item_id":27298} 
[2026-03-08 23:32:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5678,"item_index":1,"item_id":27299} 
[2026-03-08 23:32:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5678,"item_index":2,"item_id":27300} 
[2026-03-08 23:32:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5678,"item_index":3,"item_id":27301} 
[2026-03-08 23:32:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5678,"item_index":4,"item_id":27302} 
[2026-03-08 23:32:41] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5678,"order_number":"AZS-080326-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 23:32:41"} 
[2026-03-08 23:32:41] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5678,"order_number":"AZS-080326-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 23:32:41"} 
[2026-03-08 23:32:41] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5678,"order_number":"AZS-080326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 23:32:41"} 
[2026-03-08 23:32:41] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5678,"order_number":"AZS-080326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 23:32:41"} 
[2026-03-08 23:32:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5678,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"price":599,"discount_percent":0,"notes":null,"id":27298},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27299},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":27300},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":27301},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":27302}],"validated_items":[{"menu_item_id":411,"quantity":3,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-08 23:32:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5678,"items_count":5} 
[2026-03-08 23:32:41] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[27324,27325,27326,27327,27328],"items":[{"id":null,"menu_item_id":411,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":422,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":416,"quantity":2}]} 
[2026-03-08 23:32:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5678,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|3|","5|1|","422|1|","2|2|","416|2|"],"new_items_map_keys":["411|3|","5|1|","422|1|","2|2|","416|2|"]} 
[2026-03-08 23:32:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5678,"order_number":"AZS-080326-021"} 
[2026-03-08 23:32:41] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5678,"order_number":"AZS-080326-021","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-08 23:32:41","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-08 23:32:41"} 
[2026-03-08 23:32:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5678,"order_number":"AZS-080326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-08 23:32:41"} 
[2026-03-08 23:32:41] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5678,"order_number":"AZS-080326-021","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-08 23:32:41","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2500.00","database_verification_match":true,"timestamp":"2026-03-08 23:32:41"} 
[2026-03-08 23:32:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T11:32:58.613Z","date_to":"2026-03-08T23:32:58.613Z","per_page":"100"} 
[2026-03-08 23:32:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T11:32:58.598Z","date_to":"2026-03-08T23:32:58.598Z","per_page":"100"} 
[2026-03-08 23:33:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":48,"count":48,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-023","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","paid","changed","changed","changed","changed","changed","pending","changed","changed","pending","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":25,"paid_count":19,"unpaid_count":4,"unique_order_numbers":23} 
[2026-03-08 23:33:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":48,"count":48,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-023","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","paid","changed","changed","changed","changed","changed","pending","changed","changed","pending","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":25,"paid_count":19,"unpaid_count":4,"unique_order_numbers":23} 
[2026-03-08 23:33:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T11:32:58.598Z","date_to":"2026-03-08T23:32:58.598Z","per_page":"100"} 
[2026-03-08 23:33:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":48,"count":48,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-023","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["pending","pending","paid","changed","changed","changed","changed","changed","pending","changed","changed","pending","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":25,"paid_count":19,"unpaid_count":4,"unique_order_numbers":23} 
[2026-03-08 23:39:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5664,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27262},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":27263}],"validated_items":[{"id":27262,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27263,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-08 23:39:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5664,"items_count":2} 
[2026-03-08 23:39:37] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27262,"menu_item_id":6,"quantity":1},{"id":27263,"menu_item_id":13,"quantity":1}]} 
[2026-03-08 23:39:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5664,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|1|","13|1|"],"new_items_map_keys":["6|1|","13|1|"]} 
[2026-03-08 23:39:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5664,"order_number":"AZS-080326-019"} 
[2026-03-08 23:39:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5664,"order_number":"AZS-080326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-08 23:39:37"} 
[2026-03-08 23:40:00] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5664,"order_number":"AZS-080326-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":210,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 23:40:00"} 
[2026-03-08 23:40:00] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5664,"order_number":"AZS-080326-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":210,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 23:40:00"} 
[2026-03-08 23:40:00] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5664,"order_number":"AZS-080326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":210,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 23:40:00"} 
[2026-03-08 23:40:00] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5664,"order_number":"AZS-080326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":210,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 23:40:00"} 
[2026-03-08 23:40:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":5664,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27262}],"validated_items":[{"id":27262,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-08 23:40:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5664,"items_count":1} 
[2026-03-08 23:40:00] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[27263],"items":[{"id":27262,"menu_item_id":6,"quantity":1}]} 
[2026-03-08 23:40:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5664,"has_item_changes":true,"old_items_count":2,"new_items_count":1,"old_items_map_keys":["6|1|","13|1|"],"new_items_map_keys":["6|1|"]} 
[2026-03-08 23:40:00] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5664,"order_number":"AZS-080326-019","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":210,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-08 23:40:00","original_payment_amount":"0.00","grand_total":209.0,"timestamp":"2026-03-08 23:40:00"} 
[2026-03-08 23:40:00] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5664,"order_number":"AZS-080326-019"} 
[2026-03-08 23:40:00] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-019","replaced_order_id":5664} 
[2026-03-08 23:40:00] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5664,"new_order_id":5679,"order_number":"AZS-080326-019","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"210.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-08 23:40:00","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":210,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-08 23:40:00"} 
[2026-03-08 23:40:00] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5679,"items_count":1,"items":[{"menu_item_id":6,"quantity":1,"price":199.0}]} 
[2026-03-08 23:40:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5679,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5679}} 
[2026-03-08 23:40:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5679,"item_index":0,"menu_item_id":6} 
[2026-03-08 23:40:00] local.ERROR: Error tracking recipe usage for order 5679: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5679, 6, 177, 1, 333, 0.00, Order #AZS-080326-019 - 1x Karak Tea, 2026-03-08 23:40:00, 2026-03-08 23:40:00))  
[2026-03-08 23:40:00] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5664,"new_order_id":5679,"order_number":"AZS-080326-019"} 
[2026-03-08 23:40:00] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5664,"new_order_id":5679,"order_number":"AZS-080326-019","route":"api/orders/5664"} 
[2026-03-08 23:40:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5677,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":27321},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":27322},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":27323}],"validated_items":[{"id":27321,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"id":27322,"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":27323,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-08 23:40:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5677,"items_count":3} 
[2026-03-08 23:40:44] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27321,"menu_item_id":286,"quantity":2},{"id":27322,"menu_item_id":422,"quantity":1},{"id":27323,"menu_item_id":425,"quantity":1}]} 
[2026-03-08 23:40:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5677,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["286|2|","422|1|","425|1|"],"new_items_map_keys":["286|2|","422|1|","425|1|"]} 
[2026-03-08 23:40:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5677,"order_number":"AZS-080326-023"} 
[2026-03-08 23:40:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5677,"order_number":"AZS-080326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-08 23:40:44"} 
[2026-03-08 23:42:02] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5677,"order_number":"AZS-080326-023","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":200,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 23:42:02"} 
[2026-03-08 23:42:02] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5677,"order_number":"AZS-080326-023","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 23:42:02"} 
[2026-03-08 23:42:02] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5677,"order_number":"AZS-080326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 23:42:02"} 
[2026-03-08 23:42:02] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5677,"order_number":"AZS-080326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 23:42:02"} 
[2026-03-08 23:42:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5677,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":27321},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":27322},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":27323}],"validated_items":[{"id":27321,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"id":27322,"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":27323,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-08 23:42:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5677,"items_count":3} 
[2026-03-08 23:42:02] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27321,"menu_item_id":286,"quantity":2},{"id":27322,"menu_item_id":422,"quantity":1},{"id":27323,"menu_item_id":425,"quantity":1}]} 
[2026-03-08 23:42:02] local.INFO: PosOrderController::update - Item changes check {"order_id":5677,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["286|2|","422|1|","425|1|"],"new_items_map_keys":["286|2|","422|1|","425|1|"]} 
[2026-03-08 23:42:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5677,"order_number":"AZS-080326-023"} 
[2026-03-08 23:42:02] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5677,"order_number":"AZS-080326-023","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":200,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-08 23:42:02","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-08 23:42:02"} 
[2026-03-08 23:42:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5677,"order_number":"AZS-080326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-08 23:42:02"} 
[2026-03-08 23:42:02] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5677,"order_number":"AZS-080326-023","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"200.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-08 23:42:02","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"200.00","database_verification_match":true,"timestamp":"2026-03-08 23:42:02"} 
[2026-03-08 23:43:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T11:43:31.549Z","date_to":"2026-03-08T23:43:31.549Z","per_page":"100"} 
[2026-03-08 23:43:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":49,"count":49,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-023","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["paid","pending","paid","changed","changed","changed","changed","changed","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":26,"paid_count":21,"unpaid_count":2,"unique_order_numbers":23} 
[2026-03-08 23:43:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T11:43:31.563Z","date_to":"2026-03-08T23:43:31.563Z","per_page":"100"} 
[2026-03-08 23:43:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":49,"count":49,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-023","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["paid","pending","paid","changed","changed","changed","changed","changed","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":26,"paid_count":21,"unpaid_count":2,"unique_order_numbers":23} 
[2026-03-08 23:43:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T11:43:31.549Z","date_to":"2026-03-08T23:43:31.549Z","per_page":"100"} 
[2026-03-08 23:43:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":49,"count":49,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-023","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["paid","pending","paid","changed","changed","changed","changed","changed","pending","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":26,"paid_count":21,"unpaid_count":2,"unique_order_numbers":23} 
[2026-03-08 23:46:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5674,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":27303},{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":27304},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null,"id":27305},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27306},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":27303,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":27304,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":27305,"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null},{"id":27306,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-08 23:46:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5674,"items_count":5} 
[2026-03-08 23:46:29] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27303,"menu_item_id":62,"quantity":1},{"id":27304,"menu_item_id":411,"quantity":1},{"id":27305,"menu_item_id":416,"quantity":1},{"id":27306,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-03-08 23:46:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5674,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["62|1|","411|1|","416|1|","5|1|"],"new_items_map_keys":["62|1|","411|1|","416|1|","5|1|","6|2|"]} 
[2026-03-08 23:46:29] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5674,"order_number":"AZS-080326-022"} 
[2026-03-08 23:46:29] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-022","replaced_order_id":5674} 
[2026-03-08 23:46:29] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5680,"items_count":5,"items":[{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":416,"quantity":1,"price":"70.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-03-08 23:46:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5680,"item_index":0,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5680}} 
[2026-03-08 23:46:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5680,"item_index":0,"menu_item_id":62} 
[2026-03-08 23:46:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5680,"item_index":1,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5680}} 
[2026-03-08 23:46:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5680,"item_index":1,"menu_item_id":411} 
[2026-03-08 23:46:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5680,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5680}} 
[2026-03-08 23:46:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5680,"item_index":2,"menu_item_id":416} 
[2026-03-08 23:46:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5680,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5680}} 
[2026-03-08 23:46:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5680,"item_index":3,"menu_item_id":5} 
[2026-03-08 23:46:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5680,"item_index":4,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5680}} 
[2026-03-08 23:46:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5680,"item_index":4,"menu_item_id":6} 
[2026-03-08 23:46:30] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5674,"new_order_id":5680,"order_number":"AZS-080326-022"} 
[2026-03-08 23:53:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5676,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null,"id":27314},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null,"id":27315},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null,"id":27316},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null,"id":27317},{"menu_item_id":425,"quantity":2,"discount_percent":0,"notes":null,"id":27318},{"menu_item_id":413,"quantity":2,"discount_percent":0,"notes":null,"id":27319},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":27320},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27314,"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null},{"id":27315,"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null},{"id":27316,"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"id":27317,"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null},{"id":27318,"menu_item_id":425,"quantity":2,"discount_percent":0,"notes":null},{"id":27319,"menu_item_id":413,"quantity":2,"discount_percent":0,"notes":null},{"id":27320,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 23:53:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5676,"items_count":8} 
[2026-03-08 23:53:36] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27314,"menu_item_id":4,"quantity":1},{"id":27315,"menu_item_id":29,"quantity":1},{"id":27316,"menu_item_id":51,"quantity":2},{"id":27317,"menu_item_id":416,"quantity":1},{"id":27318,"menu_item_id":425,"quantity":2},{"id":27319,"menu_item_id":413,"quantity":2},{"id":27320,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":13,"quantity":1}]} 
[2026-03-08 23:53:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5676,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["4|1|","29|1|","51|2|","416|1|","425|2|","413|2|","113|1|"],"new_items_map_keys":["4|1|","29|1|","51|2|","416|1|","425|2|","413|2|","113|1|","13|1|"]} 
[2026-03-08 23:53:36] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5676,"order_number":"AZS-080326-020"} 
[2026-03-08 23:53:36] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080326-020","replaced_order_id":5676} 
[2026-03-08 23:53:36] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5681,"items_count":8,"items":[{"menu_item_id":4,"quantity":1,"price":"90.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"},{"menu_item_id":51,"quantity":2,"price":"199.00"},{"menu_item_id":416,"quantity":1,"price":"70.00"},{"menu_item_id":425,"quantity":2,"price":"99.00"},{"menu_item_id":413,"quantity":2,"price":"200.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":13,"quantity":1,"price":"249.00"}]} 
[2026-03-08 23:53:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5681,"item_index":0,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5681}} 
[2026-03-08 23:53:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5681,"item_index":0,"menu_item_id":4} 
[2026-03-08 23:53:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5681,"item_index":1,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5681}} 
[2026-03-08 23:53:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5681,"item_index":1,"menu_item_id":29} 
[2026-03-08 23:53:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5681,"item_index":2,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5681}} 
[2026-03-08 23:53:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5681,"item_index":2,"menu_item_id":51} 
[2026-03-08 23:53:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5681,"item_index":3,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5681}} 
[2026-03-08 23:53:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5681,"item_index":3,"menu_item_id":416} 
[2026-03-08 23:53:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5681,"item_index":4,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5681}} 
[2026-03-08 23:53:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5681,"item_index":4,"menu_item_id":425} 
[2026-03-08 23:53:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5681,"item_index":5,"item_data":{"menu_item_id":413,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Namkeen Lassi","quantity":2,"price":"200.00","discount_percent":0.0,"discount_amount":0.0,"total":400.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5681}} 
[2026-03-08 23:53:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5681,"item_index":5,"menu_item_id":413} 
[2026-03-08 23:53:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5681,"item_index":6,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5681}} 
[2026-03-08 23:53:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5681,"item_index":6,"menu_item_id":113} 
[2026-03-08 23:53:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5681,"item_index":7,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5681}} 
[2026-03-08 23:53:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5681,"item_index":7,"menu_item_id":13} 
[2026-03-08 23:53:36] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5676,"new_order_id":5681,"order_number":"AZS-080326-020"} 
[2026-03-08 23:53:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5681,"item_index":0,"item_id":27314} 
[2026-03-08 23:53:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5681,"item_index":1,"item_id":27315} 
[2026-03-08 23:53:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5681,"item_index":2,"item_id":27316} 
[2026-03-08 23:53:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5681,"item_index":3,"item_id":27317} 
[2026-03-08 23:53:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5681,"item_index":4,"item_id":27318} 
[2026-03-08 23:53:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5681,"item_index":5,"item_id":27319} 
[2026-03-08 23:53:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5681,"item_index":6,"item_id":27320} 
[2026-03-08 23:53:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":8,"order_id":5681,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null,"id":27314},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null,"id":27315},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null,"id":27316},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null,"id":27317},{"menu_item_id":425,"quantity":2,"discount_percent":0,"notes":null,"id":27318},{"menu_item_id":413,"quantity":2,"discount_percent":0,"notes":null,"id":27319},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":27320},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":413,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-08 23:53:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5681,"items_count":8} 
[2026-03-08 23:53:47] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":8,"items_to_remove":[27335,27336,27337,27338,27339,27340,27341,27342],"items":[{"id":null,"menu_item_id":4,"quantity":1},{"id":null,"menu_item_id":29,"quantity":1},{"id":null,"menu_item_id":51,"quantity":2},{"id":null,"menu_item_id":416,"quantity":1},{"id":null,"menu_item_id":425,"quantity":2},{"id":null,"menu_item_id":413,"quantity":2},{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":13,"quantity":1}]} 
[2026-03-08 23:53:47] local.INFO: PosOrderController::update - Item changes check {"order_id":5681,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["4|1|","29|1|","51|2|","416|1|","425|2|","413|2|","113|1|","13|1|"],"new_items_map_keys":["4|1|","29|1|","51|2|","416|1|","425|2|","413|2|","113|1|","13|1|"]} 
[2026-03-08 23:53:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5681,"order_number":"AZS-080326-020"} 
[2026-03-08 23:53:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5681,"order_number":"AZS-080326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-03-08 23:53:47"} 
[2026-03-08 23:54:23] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5681,"order_number":"AZS-080326-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2854,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 23:54:23"} 
[2026-03-08 23:54:23] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5681,"order_number":"AZS-080326-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2854,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-08 23:54:23"} 
[2026-03-08 23:54:23] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5681,"order_number":"AZS-080326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2854,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 23:54:23"} 
[2026-03-08 23:54:23] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5681,"order_number":"AZS-080326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2854,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-08 23:54:23"} 
[2026-03-08 23:54:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5681,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":27335},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":27336},{"menu_item_id":51,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27337},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":27338},{"menu_item_id":425,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27339},{"menu_item_id":413,"quantity":2,"price":200,"discount_percent":0,"notes":null,"id":27340},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27341},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":27342}],"validated_items":[{"id":27335,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"id":27336,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":27337,"menu_item_id":51,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":27338,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":27339,"menu_item_id":425,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27340,"menu_item_id":413,"quantity":2,"price":200,"discount_percent":0,"notes":null},{"id":27341,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27342,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-08 23:54:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5681,"items_count":8} 
[2026-03-08 23:54:23] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27335,"menu_item_id":4,"quantity":1},{"id":27336,"menu_item_id":29,"quantity":1},{"id":27337,"menu_item_id":51,"quantity":2},{"id":27338,"menu_item_id":416,"quantity":1},{"id":27339,"menu_item_id":425,"quantity":2},{"id":27340,"menu_item_id":413,"quantity":2},{"id":27341,"menu_item_id":113,"quantity":1},{"id":27342,"menu_item_id":13,"quantity":1}]} 
[2026-03-08 23:54:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5681,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["4|1|","29|1|","51|2|","416|1|","425|2|","413|2|","113|1|","13|1|"],"new_items_map_keys":["4|1|","29|1|","51|2|","416|1|","425|2|","413|2|","113|1|","13|1|"]} 
[2026-03-08 23:54:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5681,"order_number":"AZS-080326-020"} 
[2026-03-08 23:54:23] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5681,"order_number":"AZS-080326-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2854,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-08 23:54:23","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-08 23:54:23"} 
[2026-03-08 23:54:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5681,"order_number":"AZS-080326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-08 23:54:23"} 
[2026-03-08 23:54:23] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5681,"order_number":"AZS-080326-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2854.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-08 23:54:23","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2854,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2854.00","database_verification_match":true,"timestamp":"2026-03-08 23:54:23"} 
[2026-03-08 23:54:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T11:54:26.692Z","date_to":"2026-03-08T23:54:26.692Z","per_page":"100"} 
[2026-03-08 23:54:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T11:54:26.709Z","date_to":"2026-03-08T23:54:26.709Z","per_page":"100"} 
[2026-03-08 23:54:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":51,"count":51,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-023","AZS-080326-022","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["paid","pending","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":28,"paid_count":22,"unpaid_count":1,"unique_order_numbers":23} 
[2026-03-08 23:54:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":51,"count":51,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-023","AZS-080326-022","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["paid","pending","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":28,"paid_count":22,"unpaid_count":1,"unique_order_numbers":23} 
[2026-03-08 23:54:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T11:54:26.692Z","date_to":"2026-03-08T23:54:26.692Z","per_page":"100"} 
[2026-03-08 23:54:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":51,"count":51,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-023","AZS-080326-022","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["paid","pending","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":28,"paid_count":22,"unpaid_count":1,"unique_order_numbers":23} 
[2026-03-08 23:59:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T11:59:57.333Z","date_to":"2026-03-08T23:59:57.333Z","per_page":"100"} 
[2026-03-08 23:59:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":51,"count":51,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-023","AZS-080326-022","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["paid","pending","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":28,"paid_count":22,"unpaid_count":1,"unique_order_numbers":23} 
[2026-03-08 23:59:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T11:59:57.320Z","date_to":"2026-03-08T23:59:57.320Z","per_page":"100"} 
[2026-03-08 23:59:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":51,"count":51,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-023","AZS-080326-022","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["paid","pending","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":28,"paid_count":22,"unpaid_count":1,"unique_order_numbers":23} 
[2026-03-09 00:00:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T11:59:57.320Z","date_to":"2026-03-08T23:59:57.320Z","per_page":"100"} 
[2026-03-09 00:00:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":51,"count":51,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-023","AZS-080326-022","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["paid","pending","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":28,"paid_count":22,"unpaid_count":1,"unique_order_numbers":23} 
[2026-03-09 00:01:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5680,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":27330},{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27331},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":27332},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27333},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27334}],"validated_items":[{"id":27330,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":27331,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":27332,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":27333,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27334,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-09 00:01:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5680,"items_count":5} 
[2026-03-09 00:01:01] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27330,"menu_item_id":62,"quantity":1},{"id":27331,"menu_item_id":411,"quantity":1},{"id":27332,"menu_item_id":416,"quantity":1},{"id":27333,"menu_item_id":5,"quantity":1},{"id":27334,"menu_item_id":6,"quantity":2}]} 
[2026-03-09 00:01:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5680,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["62|1|","411|1|","416|1|","5|1|","6|2|"],"new_items_map_keys":["62|1|","411|1|","416|1|","5|1|","6|2|"]} 
[2026-03-09 00:01:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5680,"order_number":"AZS-080326-022"} 
[2026-03-09 00:01:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5680,"order_number":"AZS-080326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 00:01:01"} 
[2026-03-09 00:07:53] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5680,"order_number":"AZS-080326-022","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2873,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 00:07:53"} 
[2026-03-09 00:07:53] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5680,"order_number":"AZS-080326-022","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2873,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 00:07:53"} 
[2026-03-09 00:07:53] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5680,"order_number":"AZS-080326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2873,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 00:07:53"} 
[2026-03-09 00:07:53] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5680,"order_number":"AZS-080326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2873,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 00:07:53"} 
[2026-03-09 00:07:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5680,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":27330},{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27331},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":27332},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27333},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27334}],"validated_items":[{"id":27330,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":27331,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":27332,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":27333,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27334,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-09 00:07:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5680,"items_count":5} 
[2026-03-09 00:07:53] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27330,"menu_item_id":62,"quantity":1},{"id":27331,"menu_item_id":411,"quantity":1},{"id":27332,"menu_item_id":416,"quantity":1},{"id":27333,"menu_item_id":5,"quantity":1},{"id":27334,"menu_item_id":6,"quantity":2}]} 
[2026-03-09 00:07:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5680,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["62|1|","411|1|","416|1|","5|1|","6|2|"],"new_items_map_keys":["62|1|","411|1|","416|1|","5|1|","6|2|"]} 
[2026-03-09 00:07:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5680,"order_number":"AZS-080326-022"} 
[2026-03-09 00:07:53] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5680,"order_number":"AZS-080326-022","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2873,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-09 00:07:53","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-09 00:07:53"} 
[2026-03-09 00:07:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5680,"order_number":"AZS-080326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-09 00:07:53"} 
[2026-03-09 00:07:53] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5680,"order_number":"AZS-080326-022","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2873.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-09 00:07:53","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2873,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2873.00","database_verification_match":true,"timestamp":"2026-03-09 00:07:53"} 
[2026-03-09 00:07:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T12:07:58.212Z","date_to":"2026-03-09T00:07:58.212Z","per_page":"100"} 
[2026-03-09 00:07:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":51,"count":51,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-023","AZS-080326-022","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":28,"paid_count":23,"unpaid_count":0,"unique_order_numbers":23} 
[2026-03-09 00:07:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T12:07:58.224Z","date_to":"2026-03-09T00:07:58.224Z","per_page":"100"} 
[2026-03-09 00:07:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":51,"count":51,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-023","AZS-080326-022","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":28,"paid_count":23,"unpaid_count":0,"unique_order_numbers":23} 
[2026-03-09 00:08:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T12:07:58.212Z","date_to":"2026-03-09T00:07:58.212Z","per_page":"100"} 
[2026-03-09 00:08:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":51,"count":51,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-023","AZS-080326-022","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":28,"paid_count":23,"unpaid_count":0,"unique_order_numbers":23} 
[2026-03-09 05:19:30] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T17:19:44.814Z","date_to":"2026-03-09T05:19:44.814Z","per_page":"100"} 
[2026-03-09 05:19:30] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T17:19:44.798Z","date_to":"2026-03-09T05:19:44.798Z","per_page":"100"} 
[2026-03-09 05:19:30] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-023","AZS-080326-022","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012"],"order_statuses":["paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed"],"deleted_count":20,"paid_count":12,"unpaid_count":0,"unique_order_numbers":12} 
[2026-03-09 05:19:30] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-023","AZS-080326-022","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012"],"order_statuses":["paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed"],"deleted_count":20,"paid_count":12,"unpaid_count":0,"unique_order_numbers":12} 
[2026-03-09 05:19:33] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T17:19:44.798Z","date_to":"2026-03-09T05:19:44.798Z","per_page":"100"} 
[2026-03-09 05:19:33] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-023","AZS-080326-022","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012"],"order_statuses":["paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed"],"deleted_count":20,"paid_count":12,"unpaid_count":0,"unique_order_numbers":12} 
[2026-03-09 05:20:10] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T17:20:24.123Z","date_to":"2026-03-09T05:20:24.123Z","per_page":"100"} 
[2026-03-09 05:20:10] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-023","AZS-080326-022","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012"],"order_statuses":["paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed"],"deleted_count":20,"paid_count":12,"unpaid_count":0,"unique_order_numbers":12} 
[2026-03-09 06:27:15] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T18:27:14.626Z","date_to":"2026-03-09T06:27:14.626Z","per_page":"100"} 
[2026-03-09 06:27:15] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-023","AZS-080326-022","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014"],"order_statuses":["paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid"],"deleted_count":18,"paid_count":10,"unpaid_count":0,"unique_order_numbers":10} 
[2026-03-09 06:27:15] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T18:27:14.675Z","date_to":"2026-03-09T06:27:14.675Z","per_page":"100"} 
[2026-03-09 06:27:15] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-023","AZS-080326-022","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014"],"order_statuses":["paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid"],"deleted_count":18,"paid_count":10,"unpaid_count":0,"unique_order_numbers":10} 
[2026-03-09 06:27:15] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T18:27:14.626Z","date_to":"2026-03-09T06:27:14.626Z","per_page":"100"} 
[2026-03-09 06:27:15] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-023","AZS-080326-022","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014"],"order_statuses":["paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid"],"deleted_count":18,"paid_count":10,"unpaid_count":0,"unique_order_numbers":10} 
[2026-03-09 06:28:17] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T06:28:16.514Z","date_to":"2026-03-09T06:28:16.514Z","per_page":"100"} 
[2026-03-09 06:28:17] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":51,"count":51,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080326-023","AZS-080326-022","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011","AZS-080326-011","AZS-080326-010","AZS-080326-010","AZS-080326-009","AZS-080326-008","AZS-080326-008","AZS-080326-007","AZS-080326-006","AZS-080326-005","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-004","AZS-080326-003","AZS-080326-002","AZS-080326-002","AZS-080326-001"],"order_statuses":["paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","paid","paid","changed","changed","changed","changed","paid","paid","changed","paid"],"deleted_count":28,"paid_count":23,"unpaid_count":0,"unique_order_numbers":23} 
[2026-03-09 13:07:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5685,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null,"id":27351},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":27351,"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-09 13:07:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5685,"items_count":4} 
[2026-03-09 13:07:07] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27351,"menu_item_id":417,"quantity":2},{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":112,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2}]} 
[2026-03-09 13:07:07] local.INFO: PosOrderController::update - Item changes check {"order_id":5685,"has_item_changes":true,"old_items_count":1,"new_items_count":4,"old_items_map_keys":["417|2|"],"new_items_map_keys":["417|2|","113|1|","112|1|","396|2|"]} 
[2026-03-09 13:07:07] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5685,"order_number":"AZS-090326-004"} 
[2026-03-09 13:07:07] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-004","replaced_order_id":5685} 
[2026-03-09 13:07:07] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5686,"items_count":4,"items":[{"menu_item_id":417,"quantity":2,"price":"499.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"}]} 
[2026-03-09 13:07:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5686,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":2,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5686}} 
[2026-03-09 13:07:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5686,"item_index":0,"menu_item_id":417} 
[2026-03-09 13:07:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5686,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5686}} 
[2026-03-09 13:07:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5686,"item_index":1,"menu_item_id":113} 
[2026-03-09 13:07:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5686,"item_index":2,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5686}} 
[2026-03-09 13:07:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5686,"item_index":2,"menu_item_id":112} 
[2026-03-09 13:07:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5686,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5686}} 
[2026-03-09 13:07:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5686,"item_index":3,"menu_item_id":396} 
[2026-03-09 13:07:07] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5685,"new_order_id":5686,"order_number":"AZS-090326-004"} 
[2026-03-09 13:09:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5682,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null,"id":27343},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27343,"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 13:09:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5682,"items_count":8} 
[2026-03-09 13:09:49] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27343,"menu_item_id":417,"quantity":4},{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":97,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":396,"quantity":5},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-09 13:09:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5682,"has_item_changes":true,"old_items_count":1,"new_items_count":8,"old_items_map_keys":["417|4|"],"new_items_map_keys":["417|4|","114|1|","97|1|","62|1|","396|5|","61|2|","56|2|","5|1|"]} 
[2026-03-09 13:09:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5682,"order_number":"AZS-090326-001"} 
[2026-03-09 13:09:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-001","replaced_order_id":5682} 
[2026-03-09 13:09:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5687,"items_count":8,"items":[{"menu_item_id":417,"quantity":4,"price":"499.00"},{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-09 13:09:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5687,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":4,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":1996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5687}} 
[2026-03-09 13:09:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5687,"item_index":0,"menu_item_id":417} 
[2026-03-09 13:09:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5687,"item_index":1,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5687}} 
[2026-03-09 13:09:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5687,"item_index":1,"menu_item_id":114} 
[2026-03-09 13:09:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5687,"item_index":2,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5687}} 
[2026-03-09 13:09:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5687,"item_index":2,"menu_item_id":97} 
[2026-03-09 13:09:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5687,"item_index":3,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5687}} 
[2026-03-09 13:09:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5687,"item_index":3,"menu_item_id":62} 
[2026-03-09 13:09:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5687,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5687}} 
[2026-03-09 13:09:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5687,"item_index":4,"menu_item_id":396} 
[2026-03-09 13:09:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5687,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5687}} 
[2026-03-09 13:09:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5687,"item_index":5,"menu_item_id":61} 
[2026-03-09 13:09:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5687,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5687}} 
[2026-03-09 13:09:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5687,"item_index":6,"menu_item_id":56} 
[2026-03-09 13:09:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5687,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5687}} 
[2026-03-09 13:09:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5687,"item_index":7,"menu_item_id":5} 
[2026-03-09 13:09:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5682,"new_order_id":5687,"order_number":"AZS-090326-001"} 
[2026-03-09 13:22:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":3,"order_id":5686,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null,"id":27352}],"validated_items":[{"id":27352,"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-09 13:22:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5686,"items_count":1} 
[2026-03-09 13:22:00] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":3,"items_to_remove":[27353,27354,27355],"items":[{"id":27352,"menu_item_id":417,"quantity":2}]} 
[2026-03-09 13:22:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5686,"has_item_changes":true,"old_items_count":4,"new_items_count":1,"old_items_map_keys":["417|2|","113|1|","112|1|","396|2|"],"new_items_map_keys":["417|2|"]} 
[2026-03-09 13:22:00] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5686,"order_number":"AZS-090326-004"} 
[2026-03-09 13:22:00] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-004","replaced_order_id":5686} 
[2026-03-09 13:22:00] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5690,"items_count":1,"items":[{"menu_item_id":417,"quantity":2,"price":"499.00"}]} 
[2026-03-09 13:22:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5690,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":2,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5690}} 
[2026-03-09 13:22:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5690,"item_index":0,"menu_item_id":417} 
[2026-03-09 13:22:00] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5686,"new_order_id":5690,"order_number":"AZS-090326-004"} 
[2026-03-09 13:22:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5690,"item_index":0,"item_id":27352} 
[2026-03-09 13:22:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":5690,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null,"id":27352}],"validated_items":[{"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-09 13:22:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5690,"items_count":1} 
[2026-03-09 13:22:05] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[27369],"items":[{"id":null,"menu_item_id":417,"quantity":2}]} 
[2026-03-09 13:22:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5690,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|2|"],"new_items_map_keys":["417|2|"]} 
[2026-03-09 13:22:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5690,"order_number":"AZS-090326-004"} 
[2026-03-09 13:22:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5690,"order_number":"AZS-090326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-09 13:22:05"} 
[2026-03-09 13:22:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5684,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":3,"discount_percent":0,"notes":null,"id":27345},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":27346},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":27347},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27348},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27349},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27350}],"validated_items":[{"id":27345,"menu_item_id":67,"quantity":3,"discount_percent":0,"notes":null},{"id":27346,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":27347,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":27348,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27349,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27350,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 13:22:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5684,"items_count":6} 
[2026-03-09 13:22:42] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27345,"menu_item_id":67,"quantity":3},{"id":27346,"menu_item_id":113,"quantity":1},{"id":27347,"menu_item_id":396,"quantity":3},{"id":27348,"menu_item_id":61,"quantity":1},{"id":27349,"menu_item_id":56,"quantity":1},{"id":27350,"menu_item_id":5,"quantity":1}]} 
[2026-03-09 13:22:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5684,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["67|3|","113|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["67|3|","113|1|","396|3|","61|1|","56|1|","5|1|"]} 
[2026-03-09 13:22:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5684,"order_number":"AZS-090326-003"} 
[2026-03-09 13:22:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5684,"order_number":"AZS-090326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-09 13:22:42"} 
[2026-03-09 13:29:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5690,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null,"id":27369},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":5,"discount_percent":0,"notes":null}],"validated_items":[{"id":27369,"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":5,"discount_percent":0,"notes":null}]} 
[2026-03-09 13:29:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5690,"items_count":4} 
[2026-03-09 13:29:31] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27369,"menu_item_id":417,"quantity":2},{"id":null,"menu_item_id":112,"quantity":1},{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":286,"quantity":5}]} 
[2026-03-09 13:29:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5690,"has_item_changes":true,"old_items_count":1,"new_items_count":4,"old_items_map_keys":["417|2|"],"new_items_map_keys":["417|2|","112|1|","113|1|","286|5|"]} 
[2026-03-09 13:29:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5690,"order_number":"AZS-090326-004"} 
[2026-03-09 13:29:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-004","replaced_order_id":5690} 
[2026-03-09 13:29:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5692,"items_count":4,"items":[{"menu_item_id":417,"quantity":2,"price":"499.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":286,"quantity":5,"price":"15.00"}]} 
[2026-03-09 13:29:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5692,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":2,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5692}} 
[2026-03-09 13:29:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5692,"item_index":0,"menu_item_id":417} 
[2026-03-09 13:29:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5692,"item_index":1,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5692}} 
[2026-03-09 13:29:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5692,"item_index":1,"menu_item_id":112} 
[2026-03-09 13:29:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5692,"item_index":2,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5692}} 
[2026-03-09 13:29:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5692,"item_index":2,"menu_item_id":113} 
[2026-03-09 13:29:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5692,"item_index":3,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":5,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":75.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5692}} 
[2026-03-09 13:29:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5692,"item_index":3,"menu_item_id":286} 
[2026-03-09 13:29:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5690,"new_order_id":5692,"order_number":"AZS-090326-004"} 
[2026-03-09 13:29:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5687,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null,"id":27356},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":27357},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":27358},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":27359},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":27360},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":27361},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":27362},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27363}],"validated_items":[{"id":27356,"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null},{"id":27357,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":27358,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":27359,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":27360,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":27361,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":27362,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":27363,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 13:29:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5687,"items_count":8} 
[2026-03-09 13:29:57] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27356,"menu_item_id":417,"quantity":4},{"id":27357,"menu_item_id":114,"quantity":1},{"id":27358,"menu_item_id":97,"quantity":1},{"id":27359,"menu_item_id":62,"quantity":1},{"id":27360,"menu_item_id":396,"quantity":5},{"id":27361,"menu_item_id":61,"quantity":2},{"id":27362,"menu_item_id":56,"quantity":2},{"id":27363,"menu_item_id":5,"quantity":1}]} 
[2026-03-09 13:29:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5687,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["417|4|","114|1|","97|1|","62|1|","396|5|","61|2|","56|2|","5|1|"],"new_items_map_keys":["417|4|","114|1|","97|1|","62|1|","396|5|","61|2|","56|2|","5|1|"]} 
[2026-03-09 13:29:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5687,"order_number":"AZS-090326-001"} 
[2026-03-09 13:29:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5687,"order_number":"AZS-090326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-09 13:29:57"} 
[2026-03-09 13:30:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5692,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null,"id":27372},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":27373},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":27374},{"menu_item_id":286,"quantity":5,"discount_percent":0,"notes":null,"id":27375}],"validated_items":[{"id":27372,"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null},{"id":27373,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":27374,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":27375,"menu_item_id":286,"quantity":5,"discount_percent":0,"notes":null}]} 
[2026-03-09 13:30:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5692,"items_count":4} 
[2026-03-09 13:30:11] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27372,"menu_item_id":417,"quantity":2},{"id":27373,"menu_item_id":112,"quantity":1},{"id":27374,"menu_item_id":113,"quantity":1},{"id":27375,"menu_item_id":286,"quantity":5}]} 
[2026-03-09 13:30:11] local.INFO: PosOrderController::update - Item changes check {"order_id":5692,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["417|2|","112|1|","113|1|","286|5|"],"new_items_map_keys":["417|2|","112|1|","113|1|","286|5|"]} 
[2026-03-09 13:30:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5692,"order_number":"AZS-090326-004"} 
[2026-03-09 13:30:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5692,"order_number":"AZS-090326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-09 13:30:11"} 
[2026-03-09 13:30:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5688,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":27364},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":27365},{"menu_item_id":286,"quantity":3,"discount_percent":0,"notes":null,"id":27366},{"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null,"id":27367}],"validated_items":[{"id":27364,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":27365,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":27366,"menu_item_id":286,"quantity":3,"discount_percent":0,"notes":null},{"id":27367,"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-09 13:30:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5688,"items_count":4} 
[2026-03-09 13:30:30] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27364,"menu_item_id":112,"quantity":1},{"id":27365,"menu_item_id":96,"quantity":1},{"id":27366,"menu_item_id":286,"quantity":3},{"id":27367,"menu_item_id":49,"quantity":2}]} 
[2026-03-09 13:30:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5688,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["112|1|","96|1|","286|3|","49|2|"],"new_items_map_keys":["112|1|","96|1|","286|3|","49|2|"]} 
[2026-03-09 13:30:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5688,"order_number":"AZS-090326-005"} 
[2026-03-09 13:30:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5688,"order_number":"AZS-090326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-09 13:30:30"} 
[2026-03-09 13:33:08] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5689,"order_number":"AZS-090326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 13:33:08"} 
[2026-03-09 13:33:08] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5689,"order_number":"AZS-090326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 13:33:08"} 
[2026-03-09 13:33:08] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5689,"order_number":"AZS-090326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 13:33:08"} 
[2026-03-09 13:33:08] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5689,"order_number":"AZS-090326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 13:33:08"} 
[2026-03-09 13:33:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5689,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null,"id":27368}],"validated_items":[{"id":27368,"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-09 13:33:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5689,"items_count":1} 
[2026-03-09 13:33:08] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27368,"menu_item_id":417,"quantity":3}]} 
[2026-03-09 13:33:08] local.INFO: PosOrderController::update - Item changes check {"order_id":5689,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|3|"],"new_items_map_keys":["417|3|"]} 
[2026-03-09 13:33:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5689,"order_number":"AZS-090326-006"} 
[2026-03-09 13:33:08] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5689,"order_number":"AZS-090326-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-09 13:33:08","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-09 13:33:08"} 
[2026-03-09 13:33:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5689,"order_number":"AZS-090326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-09 13:33:08"} 
[2026-03-09 13:33:08] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5689,"order_number":"AZS-090326-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-09 13:33:08","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1500.00","database_verification_match":true,"timestamp":"2026-03-09 13:33:08"} 
[2026-03-09 13:39:58] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5683,"order_number":"AZS-090326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 13:39:58"} 
[2026-03-09 13:39:58] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5683,"order_number":"AZS-090326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 13:39:58"} 
[2026-03-09 13:39:58] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5683,"order_number":"AZS-090326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 13:39:58"} 
[2026-03-09 13:39:58] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5683,"order_number":"AZS-090326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 13:39:58"} 
[2026-03-09 13:39:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5683,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":27344}],"validated_items":[{"id":27344,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-09 13:39:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5683,"items_count":1} 
[2026-03-09 13:39:58] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27344,"menu_item_id":417,"quantity":1}]} 
[2026-03-09 13:39:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5683,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-09 13:39:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5683,"order_number":"AZS-090326-002"} 
[2026-03-09 13:39:58] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5683,"order_number":"AZS-090326-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-09 13:39:58","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-09 13:39:58"} 
[2026-03-09 13:39:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5683,"order_number":"AZS-090326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-09 13:39:58"} 
[2026-03-09 13:39:58] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5683,"order_number":"AZS-090326-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-09 13:39:58","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-09 13:39:58"} 
[2026-03-09 13:45:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":5684,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":3,"discount_percent":0,"notes":null,"id":27345},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":27346},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":27347},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27348},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27350}],"validated_items":[{"id":27345,"menu_item_id":67,"quantity":3,"discount_percent":0,"notes":null},{"id":27346,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":27347,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":27348,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27350,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 13:45:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5684,"items_count":5} 
[2026-03-09 13:45:07] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[27349],"items":[{"id":27345,"menu_item_id":67,"quantity":3},{"id":27346,"menu_item_id":113,"quantity":1},{"id":27347,"menu_item_id":396,"quantity":3},{"id":27348,"menu_item_id":61,"quantity":1},{"id":27350,"menu_item_id":5,"quantity":1}]} 
[2026-03-09 13:45:07] local.INFO: PosOrderController::update - Item changes check {"order_id":5684,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["67|3|","113|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["67|3|","113|1|","396|3|","61|1|","5|1|"]} 
[2026-03-09 13:45:07] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5684,"order_number":"AZS-090326-003"} 
[2026-03-09 13:45:07] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-003","replaced_order_id":5684} 
[2026-03-09 13:45:07] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5694,"items_count":5,"items":[{"menu_item_id":67,"quantity":3,"price":"599.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-09 13:45:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5694,"item_index":0,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":3,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1797.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5694}} 
[2026-03-09 13:45:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5694,"item_index":0,"menu_item_id":67} 
[2026-03-09 13:45:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5694,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5694}} 
[2026-03-09 13:45:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5694,"item_index":1,"menu_item_id":113} 
[2026-03-09 13:45:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5694,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5694}} 
[2026-03-09 13:45:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5694,"item_index":2,"menu_item_id":396} 
[2026-03-09 13:45:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5694,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5694}} 
[2026-03-09 13:45:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5694,"item_index":3,"menu_item_id":61} 
[2026-03-09 13:45:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5694,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5694}} 
[2026-03-09 13:45:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5694,"item_index":4,"menu_item_id":5} 
[2026-03-09 13:45:07] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5684,"new_order_id":5694,"order_number":"AZS-090326-003"} 
[2026-03-09 13:45:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5688,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":27364},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":27365},{"menu_item_id":286,"quantity":3,"discount_percent":0,"notes":null,"id":27366},{"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null,"id":27367},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27364,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":27365,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":27366,"menu_item_id":286,"quantity":3,"discount_percent":0,"notes":null},{"id":27367,"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 13:45:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5688,"items_count":5} 
[2026-03-09 13:45:41] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27364,"menu_item_id":112,"quantity":1},{"id":27365,"menu_item_id":96,"quantity":1},{"id":27366,"menu_item_id":286,"quantity":3},{"id":27367,"menu_item_id":49,"quantity":2},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-09 13:45:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5688,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["112|1|","96|1|","286|3|","49|2|"],"new_items_map_keys":["112|1|","96|1|","286|3|","49|2|","3|1|"]} 
[2026-03-09 13:45:41] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5688,"order_number":"AZS-090326-005"} 
[2026-03-09 13:45:41] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-005","replaced_order_id":5688} 
[2026-03-09 13:45:41] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5695,"items_count":5,"items":[{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":286,"quantity":3,"price":"15.00"},{"menu_item_id":49,"quantity":2,"price":"70.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-09 13:45:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5695,"item_index":0,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5695}} 
[2026-03-09 13:45:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5695,"item_index":0,"menu_item_id":112} 
[2026-03-09 13:45:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5695,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5695}} 
[2026-03-09 13:45:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5695,"item_index":1,"menu_item_id":96} 
[2026-03-09 13:45:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5695,"item_index":2,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":3,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":45.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5695}} 
[2026-03-09 13:45:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5695,"item_index":2,"menu_item_id":286} 
[2026-03-09 13:45:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5695,"item_index":3,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5695}} 
[2026-03-09 13:45:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5695,"item_index":3,"menu_item_id":49} 
[2026-03-09 13:45:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5695,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5695}} 
[2026-03-09 13:45:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5695,"item_index":4,"menu_item_id":3} 
[2026-03-09 13:45:41] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5688,"new_order_id":5695,"order_number":"AZS-090326-005"} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5687,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null,"id":27356},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":27357},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":27358},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":27359},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":27360},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":27361},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":27362},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27363},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27356,"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null},{"id":27357,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":27358,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":27359,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":27360,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":27361,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":27362,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":27363,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5687,"items_count":9} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27356,"menu_item_id":417,"quantity":4},{"id":27357,"menu_item_id":114,"quantity":1},{"id":27358,"menu_item_id":97,"quantity":1},{"id":27359,"menu_item_id":62,"quantity":1},{"id":27360,"menu_item_id":396,"quantity":5},{"id":27361,"menu_item_id":61,"quantity":2},{"id":27362,"menu_item_id":56,"quantity":2},{"id":27363,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":1}]} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5687,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["417|4|","114|1|","97|1|","62|1|","396|5|","61|2|","56|2|","5|1|"],"new_items_map_keys":["417|4|","114|1|","97|1|","62|1|","396|5|","61|2|","56|2|","5|1|","13|1|"]} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5687,"order_number":"AZS-090326-001"} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-001","replaced_order_id":5687} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5696,"items_count":9,"items":[{"menu_item_id":417,"quantity":4,"price":"499.00"},{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":1,"price":"249.00"}]} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5696,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":4,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":1996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5696}} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5696,"item_index":0,"menu_item_id":417} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5696,"item_index":1,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5696}} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5696,"item_index":1,"menu_item_id":114} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5696,"item_index":2,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5696}} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5696,"item_index":2,"menu_item_id":97} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5696,"item_index":3,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5696}} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5696,"item_index":3,"menu_item_id":62} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5696,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5696}} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5696,"item_index":4,"menu_item_id":396} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5696,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5696}} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5696,"item_index":5,"menu_item_id":61} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5696,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5696}} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5696,"item_index":6,"menu_item_id":56} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5696,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5696}} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5696,"item_index":7,"menu_item_id":5} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5696,"item_index":8,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5696}} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5696,"item_index":8,"menu_item_id":13} 
[2026-03-09 13:46:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5687,"new_order_id":5696,"order_number":"AZS-090326-001"} 
[2026-03-09 13:48:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5693,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null,"id":27376}],"validated_items":[{"id":27376,"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-03-09 13:48:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5693,"items_count":1} 
[2026-03-09 13:48:18] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27376,"menu_item_id":417,"quantity":4}]} 
[2026-03-09 13:48:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5693,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|4|"],"new_items_map_keys":["417|4|"]} 
[2026-03-09 13:48:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5693,"order_number":"AZS-090326-008"} 
[2026-03-09 13:48:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5693,"order_number":"AZS-090326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-03-09 13:48:18"} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5696,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null,"id":27387},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":27388},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":27389},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":27390},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":27391},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":27392},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":27393},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":27394},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null,"id":27395},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27387,"menu_item_id":417,"quantity":4,"discount_percent":0,"notes":null},{"id":27388,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":27389,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":27390,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":27391,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":27392,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":27393,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":27394,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":27395,"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5696,"items_count":10} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27387,"menu_item_id":417,"quantity":4},{"id":27388,"menu_item_id":114,"quantity":1},{"id":27389,"menu_item_id":97,"quantity":1},{"id":27390,"menu_item_id":62,"quantity":1},{"id":27391,"menu_item_id":396,"quantity":5},{"id":27392,"menu_item_id":61,"quantity":2},{"id":27393,"menu_item_id":56,"quantity":2},{"id":27394,"menu_item_id":5,"quantity":2},{"id":27395,"menu_item_id":13,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5696,"has_item_changes":true,"old_items_count":9,"new_items_count":10,"old_items_map_keys":["417|4|","114|1|","97|1|","62|1|","396|5|","61|2|","56|2|","5|1|","13|1|"],"new_items_map_keys":["417|4|","114|1|","97|1|","62|1|","396|5|","61|2|","56|2|","5|2|","13|1|","3|1|"]} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5696,"order_number":"AZS-090326-001"} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-001","replaced_order_id":5696} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5697,"items_count":10,"items":[{"menu_item_id":417,"quantity":4,"price":"499.00"},{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":13,"quantity":1,"price":"249.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5697,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":4,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":1996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5697}} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5697,"item_index":0,"menu_item_id":417} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5697,"item_index":1,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5697}} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5697,"item_index":1,"menu_item_id":114} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5697,"item_index":2,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5697}} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5697,"item_index":2,"menu_item_id":97} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5697,"item_index":3,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5697}} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5697,"item_index":3,"menu_item_id":62} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5697,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5697}} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5697,"item_index":4,"menu_item_id":396} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5697,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5697}} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5697,"item_index":5,"menu_item_id":61} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5697,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5697}} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5697,"item_index":6,"menu_item_id":56} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5697,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5697}} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5697,"item_index":7,"menu_item_id":5} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5697,"item_index":8,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5697}} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5697,"item_index":8,"menu_item_id":13} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5697,"item_index":9,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5697}} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5697,"item_index":9,"menu_item_id":3} 
[2026-03-09 13:55:05] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5696,"new_order_id":5697,"order_number":"AZS-090326-001"} 
[2026-03-09 14:08:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5695,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":27382},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27383},{"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null,"id":27384},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":27385},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27386}],"validated_items":[{"id":27382,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":27383,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27384,"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null},{"id":27385,"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":27386,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-09 14:08:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5695,"items_count":5} 
[2026-03-09 14:08:35] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27382,"menu_item_id":112,"quantity":1},{"id":27383,"menu_item_id":96,"quantity":1},{"id":27384,"menu_item_id":286,"quantity":3},{"id":27385,"menu_item_id":49,"quantity":2},{"id":27386,"menu_item_id":3,"quantity":1}]} 
[2026-03-09 14:08:35] local.INFO: PosOrderController::update - Item changes check {"order_id":5695,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["112|1|","96|1|","286|3|","49|2|","3|1|"],"new_items_map_keys":["112|1|","96|1|","286|3|","49|2|","3|1|"]} 
[2026-03-09 14:08:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5695,"order_number":"AZS-090326-005"} 
[2026-03-09 14:08:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5695,"order_number":"AZS-090326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 14:08:35"} 
[2026-03-09 14:09:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5694,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":3,"discount_percent":0,"notes":null,"id":27377},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":27378},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":27379},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27380},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27381}],"validated_items":[{"id":27377,"menu_item_id":67,"quantity":3,"discount_percent":0,"notes":null},{"id":27378,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":27379,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":27380,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27381,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 14:09:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5694,"items_count":5} 
[2026-03-09 14:09:16] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27377,"menu_item_id":67,"quantity":3},{"id":27378,"menu_item_id":113,"quantity":1},{"id":27379,"menu_item_id":396,"quantity":3},{"id":27380,"menu_item_id":61,"quantity":1},{"id":27381,"menu_item_id":5,"quantity":1}]} 
[2026-03-09 14:09:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5694,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["67|3|","113|1|","396|3|","61|1|","5|1|"],"new_items_map_keys":["67|3|","113|1|","396|3|","61|1|","5|1|"]} 
[2026-03-09 14:09:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5694,"order_number":"AZS-090326-003"} 
[2026-03-09 14:09:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5694,"order_number":"AZS-090326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-09 14:09:16"} 
[2026-03-09 14:09:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5694,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":3,"price":599,"discount_percent":0,"notes":null,"id":27377},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27378},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":27379},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27380},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27381}],"validated_items":[{"id":27377,"menu_item_id":67,"quantity":3,"price":599,"discount_percent":0,"notes":null},{"id":27378,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27379,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":27380,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27381,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-09 14:09:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5694,"items_count":5} 
[2026-03-09 14:09:17] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27377,"menu_item_id":67,"quantity":3},{"id":27378,"menu_item_id":113,"quantity":1},{"id":27379,"menu_item_id":396,"quantity":3},{"id":27380,"menu_item_id":61,"quantity":1},{"id":27381,"menu_item_id":5,"quantity":1}]} 
[2026-03-09 14:09:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5694,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["67|3|","113|1|","396|3|","61|1|","5|1|"],"new_items_map_keys":["67|3|","113|1|","396|3|","61|1|","5|1|"]} 
[2026-03-09 14:09:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5694,"order_number":"AZS-090326-003"} 
[2026-03-09 14:09:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5694,"order_number":"AZS-090326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 14:09:17"} 
[2026-03-09 14:09:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5694,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":3,"price":599,"discount_percent":0,"notes":null,"id":27377},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27378},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":27379},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27380},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27381}],"validated_items":[{"id":27377,"menu_item_id":67,"quantity":3,"price":599,"discount_percent":0,"notes":null},{"id":27378,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27379,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":27380,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27381,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-09 14:09:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5694,"items_count":5} 
[2026-03-09 14:09:18] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27377,"menu_item_id":67,"quantity":3},{"id":27378,"menu_item_id":113,"quantity":1},{"id":27379,"menu_item_id":396,"quantity":3},{"id":27380,"menu_item_id":61,"quantity":1},{"id":27381,"menu_item_id":5,"quantity":1}]} 
[2026-03-09 14:09:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5694,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["67|3|","113|1|","396|3|","61|1|","5|1|"],"new_items_map_keys":["67|3|","113|1|","396|3|","61|1|","5|1|"]} 
[2026-03-09 14:09:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5694,"order_number":"AZS-090326-003"} 
[2026-03-09 14:09:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5694,"order_number":"AZS-090326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 14:09:18"} 
[2026-03-09 14:09:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T02:09:42.885Z","date_to":"2026-03-09T14:09:42.885Z","per_page":"100"} 
[2026-03-09 14:09:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-008","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["pending","pending","paid","pending","changed","pending","changed","changed","changed","pending","changed","paid","pending","changed","changed","changed"],"deleted_count":8,"paid_count":2,"unpaid_count":6,"unique_order_numbers":8} 
[2026-03-09 14:09:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T02:09:42.870Z","date_to":"2026-03-09T14:09:42.870Z","per_page":"100"} 
[2026-03-09 14:09:45] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-008","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["pending","pending","paid","pending","changed","pending","changed","changed","changed","pending","changed","paid","pending","changed","changed","changed"],"deleted_count":8,"paid_count":2,"unpaid_count":6,"unique_order_numbers":8} 
[2026-03-09 14:09:46] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T02:09:42.870Z","date_to":"2026-03-09T14:09:42.870Z","per_page":"100"} 
[2026-03-09 14:09:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-008","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["pending","pending","paid","pending","changed","pending","changed","changed","changed","pending","changed","paid","pending","changed","changed","changed"],"deleted_count":8,"paid_count":2,"unpaid_count":6,"unique_order_numbers":8} 
[2026-03-09 14:18:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5697,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":4,"price":499,"discount_percent":0,"notes":null,"id":27396},{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":27397},{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":27398},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":27399},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":27400},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27401},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27402},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":27403},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":27404},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27405}],"validated_items":[{"id":27396,"menu_item_id":417,"quantity":4,"price":499,"discount_percent":0,"notes":null},{"id":27397,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":27398,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":27399,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":27400,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":27401,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":27402,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":27403,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":27404,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":27405,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-09 14:18:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5697,"items_count":10} 
[2026-03-09 14:18:54] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27396,"menu_item_id":417,"quantity":4},{"id":27397,"menu_item_id":114,"quantity":1},{"id":27398,"menu_item_id":97,"quantity":1},{"id":27399,"menu_item_id":62,"quantity":1},{"id":27400,"menu_item_id":396,"quantity":5},{"id":27401,"menu_item_id":61,"quantity":2},{"id":27402,"menu_item_id":56,"quantity":2},{"id":27403,"menu_item_id":5,"quantity":2},{"id":27404,"menu_item_id":13,"quantity":1},{"id":27405,"menu_item_id":3,"quantity":1}]} 
[2026-03-09 14:18:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5697,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["417|4|","114|1|","97|1|","62|1|","396|5|","61|2|","56|2|","5|2|","13|1|","3|1|"],"new_items_map_keys":["417|4|","114|1|","97|1|","62|1|","396|5|","61|2|","56|2|","5|2|","13|1|","3|1|"]} 
[2026-03-09 14:18:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5697,"order_number":"AZS-090326-001"} 
[2026-03-09 14:18:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5697,"order_number":"AZS-090326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 14:18:54"} 
[2026-03-09 14:24:40] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5695,"order_number":"AZS-090326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3521,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 14:24:40"} 
[2026-03-09 14:24:40] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5695,"order_number":"AZS-090326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3521,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 14:24:40"} 
[2026-03-09 14:24:40] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5695,"order_number":"AZS-090326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3521,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 14:24:40"} 
[2026-03-09 14:24:40] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5695,"order_number":"AZS-090326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3521,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 14:24:40"} 
[2026-03-09 14:24:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5695,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":27382},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27383},{"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null,"id":27384},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":27385},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27386}],"validated_items":[{"id":27382,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":27383,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27384,"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null},{"id":27385,"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":27386,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-09 14:24:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5695,"items_count":5} 
[2026-03-09 14:24:40] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27382,"menu_item_id":112,"quantity":1},{"id":27383,"menu_item_id":96,"quantity":1},{"id":27384,"menu_item_id":286,"quantity":3},{"id":27385,"menu_item_id":49,"quantity":2},{"id":27386,"menu_item_id":3,"quantity":1}]} 
[2026-03-09 14:24:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5695,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["112|1|","96|1|","286|3|","49|2|","3|1|"],"new_items_map_keys":["112|1|","96|1|","286|3|","49|2|","3|1|"]} 
[2026-03-09 14:24:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5695,"order_number":"AZS-090326-005"} 
[2026-03-09 14:24:40] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5695,"order_number":"AZS-090326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3521,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-09 14:24:40","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-09 14:24:40"} 
[2026-03-09 14:24:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5695,"order_number":"AZS-090326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-09 14:24:40"} 
[2026-03-09 14:24:40] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5695,"order_number":"AZS-090326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3521.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-09 14:24:40","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3521,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3521.00","database_verification_match":true,"timestamp":"2026-03-09 14:24:40"} 
[2026-03-09 14:30:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5692,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null,"id":27372},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":27373},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":27374},{"menu_item_id":286,"quantity":5,"discount_percent":0,"notes":null,"id":27375},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":27372,"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null},{"id":27373,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":27374,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":27375,"menu_item_id":286,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-09 14:30:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5692,"items_count":5} 
[2026-03-09 14:30:58] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27372,"menu_item_id":417,"quantity":2},{"id":27373,"menu_item_id":112,"quantity":1},{"id":27374,"menu_item_id":113,"quantity":1},{"id":27375,"menu_item_id":286,"quantity":5},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-03-09 14:30:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5692,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["417|2|","112|1|","113|1|","286|5|"],"new_items_map_keys":["417|2|","112|1|","113|1|","286|5|","2|3|"]} 
[2026-03-09 14:30:58] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5692,"order_number":"AZS-090326-004"} 
[2026-03-09 14:30:58] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-004","replaced_order_id":5692} 
[2026-03-09 14:30:58] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5698,"items_count":5,"items":[{"menu_item_id":417,"quantity":2,"price":"499.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":286,"quantity":5,"price":"15.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"}]} 
[2026-03-09 14:30:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5698,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":2,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5698}} 
[2026-03-09 14:30:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5698,"item_index":0,"menu_item_id":417} 
[2026-03-09 14:30:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5698,"item_index":1,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5698}} 
[2026-03-09 14:30:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5698,"item_index":1,"menu_item_id":112} 
[2026-03-09 14:30:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5698,"item_index":2,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5698}} 
[2026-03-09 14:30:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5698,"item_index":2,"menu_item_id":113} 
[2026-03-09 14:30:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5698,"item_index":3,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":5,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":75.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5698}} 
[2026-03-09 14:30:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5698,"item_index":3,"menu_item_id":286} 
[2026-03-09 14:30:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5698,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5698}} 
[2026-03-09 14:30:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5698,"item_index":4,"menu_item_id":2} 
[2026-03-09 14:30:58] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5692,"new_order_id":5698,"order_number":"AZS-090326-004"} 
[2026-03-09 14:31:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5691,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":27370},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":27371},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27370,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":27371,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 14:31:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5691,"items_count":3} 
[2026-03-09 14:31:16] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27370,"menu_item_id":113,"quantity":1},{"id":27371,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-09 14:31:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5691,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["113|1|","396|2|"],"new_items_map_keys":["113|1|","396|2|","5|1|"]} 
[2026-03-09 14:31:16] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5691,"order_number":"AZS-090326-007"} 
[2026-03-09 14:31:16] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-007","replaced_order_id":5691} 
[2026-03-09 14:31:16] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5699,"items_count":3,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-09 14:31:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5699,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5699}} 
[2026-03-09 14:31:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5699,"item_index":0,"menu_item_id":113} 
[2026-03-09 14:31:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5699,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5699}} 
[2026-03-09 14:31:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5699,"item_index":1,"menu_item_id":396} 
[2026-03-09 14:31:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5699,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5699}} 
[2026-03-09 14:31:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5699,"item_index":2,"menu_item_id":5} 
[2026-03-09 14:31:16] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5691,"new_order_id":5699,"order_number":"AZS-090326-007"} 
[2026-03-09 14:39:09] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5697,"order_number":"AZS-090326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10755,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 14:39:09"} 
[2026-03-09 14:39:09] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5697,"order_number":"AZS-090326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10755,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 14:39:09"} 
[2026-03-09 14:39:09] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5697,"order_number":"AZS-090326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10755,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 14:39:09"} 
[2026-03-09 14:39:09] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5697,"order_number":"AZS-090326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10755,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 14:39:09"} 
[2026-03-09 14:39:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5697,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":4,"price":499,"discount_percent":0,"notes":null,"id":27396},{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":27397},{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":27398},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":27399},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":27400},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27401},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27402},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":27403},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":27404},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27405}],"validated_items":[{"id":27396,"menu_item_id":417,"quantity":4,"price":499,"discount_percent":0,"notes":null},{"id":27397,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":27398,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":27399,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":27400,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":27401,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":27402,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":27403,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":27404,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":27405,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-09 14:39:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5697,"items_count":10} 
[2026-03-09 14:39:09] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27396,"menu_item_id":417,"quantity":4},{"id":27397,"menu_item_id":114,"quantity":1},{"id":27398,"menu_item_id":97,"quantity":1},{"id":27399,"menu_item_id":62,"quantity":1},{"id":27400,"menu_item_id":396,"quantity":5},{"id":27401,"menu_item_id":61,"quantity":2},{"id":27402,"menu_item_id":56,"quantity":2},{"id":27403,"menu_item_id":5,"quantity":2},{"id":27404,"menu_item_id":13,"quantity":1},{"id":27405,"menu_item_id":3,"quantity":1}]} 
[2026-03-09 14:39:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5697,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["417|4|","114|1|","97|1|","62|1|","396|5|","61|2|","56|2|","5|2|","13|1|","3|1|"],"new_items_map_keys":["417|4|","114|1|","97|1|","62|1|","396|5|","61|2|","56|2|","5|2|","13|1|","3|1|"]} 
[2026-03-09 14:39:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5697,"order_number":"AZS-090326-001"} 
[2026-03-09 14:39:09] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5697,"order_number":"AZS-090326-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":10755,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-09 14:39:09","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-09 14:39:09"} 
[2026-03-09 14:39:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5697,"order_number":"AZS-090326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-09 14:39:09"} 
[2026-03-09 14:39:09] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5697,"order_number":"AZS-090326-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"10755.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-09 14:39:09","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10755,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"10755.00","database_verification_match":true,"timestamp":"2026-03-09 14:39:09"} 
[2026-03-09 14:39:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5699,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27411},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27412},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27413}],"validated_items":[{"id":27411,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27412,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27413,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-09 14:39:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5699,"items_count":3} 
[2026-03-09 14:39:18] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27411,"menu_item_id":113,"quantity":1},{"id":27412,"menu_item_id":396,"quantity":2},{"id":27413,"menu_item_id":5,"quantity":1}]} 
[2026-03-09 14:39:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5699,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["113|1|","396|2|","5|1|"],"new_items_map_keys":["113|1|","396|2|","5|1|"]} 
[2026-03-09 14:39:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5699,"order_number":"AZS-090326-007"} 
[2026-03-09 14:39:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5699,"order_number":"AZS-090326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 14:39:18"} 
[2026-03-09 14:40:48] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5699,"order_number":"AZS-090326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1645,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 14:40:48"} 
[2026-03-09 14:40:48] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5699,"order_number":"AZS-090326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1645,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 14:40:48"} 
[2026-03-09 14:40:48] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5699,"order_number":"AZS-090326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1645,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 14:40:48"} 
[2026-03-09 14:40:48] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5699,"order_number":"AZS-090326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1645,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 14:40:48"} 
[2026-03-09 14:40:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5699,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27411},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27412},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27413}],"validated_items":[{"id":27411,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27412,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27413,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-09 14:40:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5699,"items_count":3} 
[2026-03-09 14:40:48] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27411,"menu_item_id":113,"quantity":1},{"id":27412,"menu_item_id":396,"quantity":2},{"id":27413,"menu_item_id":5,"quantity":1}]} 
[2026-03-09 14:40:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5699,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["113|1|","396|2|","5|1|"],"new_items_map_keys":["113|1|","396|2|","5|1|"]} 
[2026-03-09 14:40:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5699,"order_number":"AZS-090326-007"} 
[2026-03-09 14:40:48] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5699,"order_number":"AZS-090326-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1645,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-09 14:40:48","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-09 14:40:48"} 
[2026-03-09 14:40:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5699,"order_number":"AZS-090326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-09 14:40:48"} 
[2026-03-09 14:40:48] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5699,"order_number":"AZS-090326-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1645.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-09 14:40:48","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1645,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1645.00","database_verification_match":true,"timestamp":"2026-03-09 14:40:48"} 
[2026-03-09 14:44:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5698,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":27406},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":27407},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27408},{"menu_item_id":286,"quantity":5,"price":15,"discount_percent":0,"notes":null,"id":27409},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":27410}],"validated_items":[{"id":27406,"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null},{"id":27407,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":27408,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27409,"menu_item_id":286,"quantity":5,"price":15,"discount_percent":0,"notes":null},{"id":27410,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-09 14:44:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5698,"items_count":5} 
[2026-03-09 14:44:41] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27406,"menu_item_id":417,"quantity":2},{"id":27407,"menu_item_id":112,"quantity":1},{"id":27408,"menu_item_id":113,"quantity":1},{"id":27409,"menu_item_id":286,"quantity":5},{"id":27410,"menu_item_id":2,"quantity":3}]} 
[2026-03-09 14:44:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5698,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|2|","112|1|","113|1|","286|5|","2|3|"],"new_items_map_keys":["417|2|","112|1|","113|1|","286|5|","2|3|"]} 
[2026-03-09 14:44:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5698,"order_number":"AZS-090326-004"} 
[2026-03-09 14:44:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5698,"order_number":"AZS-090326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 14:44:41"} 
[2026-03-09 14:49:55] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5698,"order_number":"AZS-090326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 14:49:55"} 
[2026-03-09 14:49:55] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5698,"order_number":"AZS-090326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 14:49:55"} 
[2026-03-09 14:49:55] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5698,"order_number":"AZS-090326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 14:49:55"} 
[2026-03-09 14:49:55] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5698,"order_number":"AZS-090326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 14:49:55"} 
[2026-03-09 14:49:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5698,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":27406},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":27407},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27408},{"menu_item_id":286,"quantity":5,"price":15,"discount_percent":0,"notes":null,"id":27409},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":27410}],"validated_items":[{"id":27406,"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null},{"id":27407,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":27408,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27409,"menu_item_id":286,"quantity":5,"price":15,"discount_percent":0,"notes":null},{"id":27410,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-09 14:49:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5698,"items_count":5} 
[2026-03-09 14:49:55] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27406,"menu_item_id":417,"quantity":2},{"id":27407,"menu_item_id":112,"quantity":1},{"id":27408,"menu_item_id":113,"quantity":1},{"id":27409,"menu_item_id":286,"quantity":5},{"id":27410,"menu_item_id":2,"quantity":3}]} 
[2026-03-09 14:49:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5698,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|2|","112|1|","113|1|","286|5|","2|3|"],"new_items_map_keys":["417|2|","112|1|","113|1|","286|5|","2|3|"]} 
[2026-03-09 14:49:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5698,"order_number":"AZS-090326-004"} 
[2026-03-09 14:49:55] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5698,"order_number":"AZS-090326-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-09 14:49:55","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-09 14:49:55"} 
[2026-03-09 14:49:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5698,"order_number":"AZS-090326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-09 14:49:55"} 
[2026-03-09 14:49:55] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5698,"order_number":"AZS-090326-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-09 14:49:55","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4000.00","database_verification_match":true,"timestamp":"2026-03-09 14:49:55"} 
[2026-03-09 14:57:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5700,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":164,"quantity":1,"discount_percent":0,"notes":null,"id":27414},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null,"id":27415},{"menu_item_id":12,"quantity":1,"discount_percent":0,"notes":null,"id":27416},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27414,"menu_item_id":164,"quantity":1,"discount_percent":0,"notes":null},{"id":27415,"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null},{"id":27416,"menu_item_id":12,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 14:57:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5700,"items_count":4} 
[2026-03-09 14:57:25] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27414,"menu_item_id":164,"quantity":1},{"id":27415,"menu_item_id":6,"quantity":1},{"id":27416,"menu_item_id":12,"quantity":1},{"id":null,"menu_item_id":29,"quantity":1}]} 
[2026-03-09 14:57:25] local.INFO: PosOrderController::update - Item changes check {"order_id":5700,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["164|1|","6|1|","12|1|"],"new_items_map_keys":["164|1|","6|1|","12|1|","29|1|"]} 
[2026-03-09 14:57:25] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5700,"order_number":"AZS-090326-009"} 
[2026-03-09 14:57:25] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-009","replaced_order_id":5700} 
[2026-03-09 14:57:25] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5703,"items_count":4,"items":[{"menu_item_id":164,"quantity":1,"price":"649.00"},{"menu_item_id":6,"quantity":1,"price":"199.00"},{"menu_item_id":12,"quantity":1,"price":"199.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"}]} 
[2026-03-09 14:57:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5703,"item_index":0,"item_data":{"menu_item_id":164,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Cold Chicken Sandwich","quantity":1,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":649.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5703}} 
[2026-03-09 14:57:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5703,"item_index":0,"menu_item_id":164} 
[2026-03-09 14:57:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5703,"item_index":1,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5703}} 
[2026-03-09 14:57:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5703,"item_index":1,"menu_item_id":6} 
[2026-03-09 14:57:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5703,"item_index":2,"item_data":{"menu_item_id":12,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Green Tea","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5703}} 
[2026-03-09 14:57:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5703,"item_index":2,"menu_item_id":12} 
[2026-03-09 14:57:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5703,"item_index":3,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5703}} 
[2026-03-09 14:57:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5703,"item_index":3,"menu_item_id":29} 
[2026-03-09 14:57:25] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5700,"new_order_id":5703,"order_number":"AZS-090326-009"} 
[2026-03-09 15:07:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5702,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":172,"quantity":1,"discount_percent":0,"notes":null,"id":27418},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27418,"menu_item_id":172,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 15:07:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5702,"items_count":2} 
[2026-03-09 15:07:27] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27418,"menu_item_id":172,"quantity":1},{"id":null,"menu_item_id":6,"quantity":1}]} 
[2026-03-09 15:07:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5702,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["172|1|"],"new_items_map_keys":["172|1|","6|1|"]} 
[2026-03-09 15:07:27] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5702,"order_number":"AZS-090326-011"} 
[2026-03-09 15:07:27] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-011","replaced_order_id":5702} 
[2026-03-09 15:07:27] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5705,"items_count":2,"items":[{"menu_item_id":172,"quantity":1,"price":"999.00"},{"menu_item_id":6,"quantity":1,"price":"199.00"}]} 
[2026-03-09 15:07:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5705,"item_index":0,"item_data":{"menu_item_id":172,"restaurant_category_id":17,"restaurant_category_name":"BURGER","item_name":"Zinger Burger","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5705}} 
[2026-03-09 15:07:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5705,"item_index":0,"menu_item_id":172} 
[2026-03-09 15:07:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5705,"item_index":1,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5705}} 
[2026-03-09 15:07:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5705,"item_index":1,"menu_item_id":6} 
[2026-03-09 15:07:27] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5702,"new_order_id":5705,"order_number":"AZS-090326-011"} 
[2026-03-09 15:12:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5694,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":3,"price":599,"discount_percent":0,"notes":null,"id":27377},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27378},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":27379},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27380},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27381}],"validated_items":[{"id":27377,"menu_item_id":67,"quantity":3,"price":599,"discount_percent":0,"notes":null},{"id":27378,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27379,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":27380,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27381,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-09 15:12:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5694,"items_count":5} 
[2026-03-09 15:12:40] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27377,"menu_item_id":67,"quantity":3},{"id":27378,"menu_item_id":113,"quantity":1},{"id":27379,"menu_item_id":396,"quantity":3},{"id":27380,"menu_item_id":61,"quantity":1},{"id":27381,"menu_item_id":5,"quantity":1}]} 
[2026-03-09 15:12:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5694,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["67|3|","113|1|","396|3|","61|1|","5|1|"],"new_items_map_keys":["67|3|","113|1|","396|3|","61|1|","5|1|"]} 
[2026-03-09 15:12:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5694,"order_number":"AZS-090326-003"} 
[2026-03-09 15:12:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5694,"order_number":"AZS-090326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 15:12:40"} 
[2026-03-09 15:13:09] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5694,"order_number":"AZS-090326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 15:13:09"} 
[2026-03-09 15:13:09] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5694,"order_number":"AZS-090326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 15:13:09"} 
[2026-03-09 15:13:09] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5694,"order_number":"AZS-090326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 15:13:09"} 
[2026-03-09 15:13:09] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5694,"order_number":"AZS-090326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 15:13:09"} 
[2026-03-09 15:13:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":5694,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":3,"price":599,"discount_percent":0,"notes":null,"id":27377},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27378},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":27379},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27381}],"validated_items":[{"id":27377,"menu_item_id":67,"quantity":3,"price":599,"discount_percent":0,"notes":null},{"id":27378,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27379,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":27381,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-09 15:13:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5694,"items_count":4} 
[2026-03-09 15:13:09] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[27380],"items":[{"id":27377,"menu_item_id":67,"quantity":3},{"id":27378,"menu_item_id":113,"quantity":1},{"id":27379,"menu_item_id":396,"quantity":3},{"id":27381,"menu_item_id":5,"quantity":1}]} 
[2026-03-09 15:13:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5694,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["67|3|","113|1|","396|3|","61|1|","5|1|"],"new_items_map_keys":["67|3|","113|1|","396|3|","5|1|"]} 
[2026-03-09 15:13:09] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5694,"order_number":"AZS-090326-003","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3500,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-09 15:13:09","original_payment_amount":"0.00","grand_total":3463.0,"timestamp":"2026-03-09 15:13:09"} 
[2026-03-09 15:13:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5694,"order_number":"AZS-090326-003"} 
[2026-03-09 15:13:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-003","replaced_order_id":5694} 
[2026-03-09 15:13:09] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5694,"new_order_id":5706,"order_number":"AZS-090326-003","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3500.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-09 15:13:09","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-09 15:13:09"} 
[2026-03-09 15:13:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5706,"items_count":4,"items":[{"menu_item_id":67,"quantity":3,"price":599.0},{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-03-09 15:13:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5706,"item_index":0,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":3,"price":599.0,"discount_percent":0.0,"discount_amount":0.0,"total":1797.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5706}} 
[2026-03-09 15:13:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5706,"item_index":0,"menu_item_id":67} 
[2026-03-09 15:13:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5706,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5706}} 
[2026-03-09 15:13:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5706,"item_index":1,"menu_item_id":113} 
[2026-03-09 15:13:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5706,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5706}} 
[2026-03-09 15:13:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5706,"item_index":2,"menu_item_id":396} 
[2026-03-09 15:13:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5706,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5706}} 
[2026-03-09 15:13:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5706,"item_index":3,"menu_item_id":5} 
[2026-03-09 15:13:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5694,"new_order_id":5706,"order_number":"AZS-090326-003"} 
[2026-03-09 15:13:10] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5694,"new_order_id":5706,"order_number":"AZS-090326-003","route":"api/orders/5694"} 
[2026-03-09 15:21:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5701,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":27417}],"validated_items":[{"id":27417,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-09 15:21:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5701,"items_count":1} 
[2026-03-09 15:21:43] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27417,"menu_item_id":29,"quantity":1}]} 
[2026-03-09 15:21:43] local.INFO: PosOrderController::update - Item changes check {"order_id":5701,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["29|1|"],"new_items_map_keys":["29|1|"]} 
[2026-03-09 15:21:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5701,"order_number":"AZS-090326-010"} 
[2026-03-09 15:21:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5701,"order_number":"AZS-090326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 15:21:43"} 
[2026-03-09 15:22:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5701,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":27417}],"validated_items":[{"id":27417,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-09 15:22:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5701,"items_count":1} 
[2026-03-09 15:22:30] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27417,"menu_item_id":29,"quantity":1}]} 
[2026-03-09 15:22:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5701,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["29|1|"],"new_items_map_keys":["29|1|"]} 
[2026-03-09 15:22:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5701,"order_number":"AZS-090326-010"} 
[2026-03-09 15:22:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5701,"order_number":"AZS-090326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 15:22:30"} 
[2026-03-09 15:24:30] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5701,"order_number":"AZS-090326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 15:24:30"} 
[2026-03-09 15:24:30] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5701,"order_number":"AZS-090326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 15:24:30"} 
[2026-03-09 15:24:30] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5701,"order_number":"AZS-090326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 15:24:30"} 
[2026-03-09 15:24:30] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5701,"order_number":"AZS-090326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 15:24:30"} 
[2026-03-09 15:24:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5701,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":27417}],"validated_items":[{"id":27417,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-09 15:24:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5701,"items_count":1} 
[2026-03-09 15:24:30] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27417,"menu_item_id":29,"quantity":1}]} 
[2026-03-09 15:24:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5701,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["29|1|"],"new_items_map_keys":["29|1|"]} 
[2026-03-09 15:24:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5701,"order_number":"AZS-090326-010"} 
[2026-03-09 15:24:30] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5701,"order_number":"AZS-090326-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-09 15:24:30","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-09 15:24:30"} 
[2026-03-09 15:24:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5701,"order_number":"AZS-090326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-09 15:24:30"} 
[2026-03-09 15:24:30] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5701,"order_number":"AZS-090326-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-09 15:24:30","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-09 15:24:30"} 
[2026-03-09 15:45:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5707,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":27430},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":27431},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null,"id":27432},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27430,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":27431,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":27432,"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 15:45:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5707,"items_count":5} 
[2026-03-09 15:45:45] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27430,"menu_item_id":113,"quantity":1},{"id":27431,"menu_item_id":396,"quantity":2},{"id":27432,"menu_item_id":52,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-03-09 15:45:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5707,"has_item_changes":true,"old_items_count":3,"new_items_count":5,"old_items_map_keys":["113|1|","396|2|","52|2|"],"new_items_map_keys":["113|1|","396|2|","52|2|","5|1|","61|1|"]} 
[2026-03-09 15:45:45] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5707,"order_number":"AZS-090326-013"} 
[2026-03-09 15:45:45] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-013","replaced_order_id":5707} 
[2026-03-09 15:45:45] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5708,"items_count":5,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":52,"quantity":2,"price":"70.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"}]} 
[2026-03-09 15:45:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5708,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5708}} 
[2026-03-09 15:45:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5708,"item_index":0,"menu_item_id":113} 
[2026-03-09 15:45:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5708,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5708}} 
[2026-03-09 15:45:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5708,"item_index":1,"menu_item_id":396} 
[2026-03-09 15:45:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5708,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5708}} 
[2026-03-09 15:45:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5708,"item_index":2,"menu_item_id":52} 
[2026-03-09 15:45:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5708,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5708}} 
[2026-03-09 15:45:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5708,"item_index":3,"menu_item_id":5} 
[2026-03-09 15:45:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5708,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5708}} 
[2026-03-09 15:45:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5708,"item_index":4,"menu_item_id":61} 
[2026-03-09 15:45:45] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5707,"new_order_id":5708,"order_number":"AZS-090326-013"} 
[2026-03-09 15:49:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5703,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":164,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":27419},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27420},{"menu_item_id":12,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27421},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":27422}],"validated_items":[{"id":27419,"menu_item_id":164,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":27420,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27421,"menu_item_id":12,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27422,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-09 15:49:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5703,"items_count":4} 
[2026-03-09 15:49:48] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27419,"menu_item_id":164,"quantity":1},{"id":27420,"menu_item_id":6,"quantity":1},{"id":27421,"menu_item_id":12,"quantity":1},{"id":27422,"menu_item_id":29,"quantity":1}]} 
[2026-03-09 15:49:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5703,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["164|1|","6|1|","12|1|","29|1|"],"new_items_map_keys":["164|1|","6|1|","12|1|","29|1|"]} 
[2026-03-09 15:49:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5703,"order_number":"AZS-090326-009"} 
[2026-03-09 15:49:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5703,"order_number":"AZS-090326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 15:49:48"} 
[2026-03-09 16:21:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5708,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":27433},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":27434},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null,"id":27435},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27436},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27437},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27433,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":27434,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":27435,"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null},{"id":27436,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":27437,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 16:21:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5708,"items_count":7} 
[2026-03-09 16:21:04] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27433,"menu_item_id":113,"quantity":1},{"id":27434,"menu_item_id":396,"quantity":2},{"id":27435,"menu_item_id":52,"quantity":2},{"id":27436,"menu_item_id":5,"quantity":1},{"id":27437,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-09 16:21:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5708,"has_item_changes":true,"old_items_count":5,"new_items_count":7,"old_items_map_keys":["113|1|","396|2|","52|2|","5|1|","61|1|"],"new_items_map_keys":["113|1|","396|2|","52|2|","5|1|","61|1|","56|1|","3|1|"]} 
[2026-03-09 16:21:04] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5708,"order_number":"AZS-090326-013"} 
[2026-03-09 16:21:04] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-013","replaced_order_id":5708} 
[2026-03-09 16:21:04] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5710,"items_count":7,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":52,"quantity":2,"price":"70.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-09 16:21:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5710,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5710}} 
[2026-03-09 16:21:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5710,"item_index":0,"menu_item_id":113} 
[2026-03-09 16:21:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5710,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5710}} 
[2026-03-09 16:21:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5710,"item_index":1,"menu_item_id":396} 
[2026-03-09 16:21:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5710,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5710}} 
[2026-03-09 16:21:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5710,"item_index":2,"menu_item_id":52} 
[2026-03-09 16:21:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5710,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5710}} 
[2026-03-09 16:21:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5710,"item_index":3,"menu_item_id":5} 
[2026-03-09 16:21:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5710,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5710}} 
[2026-03-09 16:21:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5710,"item_index":4,"menu_item_id":61} 
[2026-03-09 16:21:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5710,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5710}} 
[2026-03-09 16:21:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5710,"item_index":5,"menu_item_id":56} 
[2026-03-09 16:21:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5710,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5710}} 
[2026-03-09 16:21:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5710,"item_index":6,"menu_item_id":3} 
[2026-03-09 16:21:04] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5708,"new_order_id":5710,"order_number":"AZS-090326-013"} 
[2026-03-09 16:21:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5705,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":172,"quantity":1,"discount_percent":0,"notes":null,"id":27424},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null,"id":27425},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27424,"menu_item_id":172,"quantity":1,"discount_percent":0,"notes":null},{"id":27425,"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 16:21:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5705,"items_count":3} 
[2026-03-09 16:21:24] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27424,"menu_item_id":172,"quantity":1},{"id":27425,"menu_item_id":6,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-09 16:21:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5705,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["172|1|","6|1|"],"new_items_map_keys":["172|1|","6|1|","2|1|"]} 
[2026-03-09 16:21:24] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5705,"order_number":"AZS-090326-011"} 
[2026-03-09 16:21:24] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-011","replaced_order_id":5705} 
[2026-03-09 16:21:24] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5711,"items_count":3,"items":[{"menu_item_id":172,"quantity":1,"price":"999.00"},{"menu_item_id":6,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-09 16:21:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5711,"item_index":0,"item_data":{"menu_item_id":172,"restaurant_category_id":17,"restaurant_category_name":"BURGER","item_name":"Zinger Burger","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5711}} 
[2026-03-09 16:21:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5711,"item_index":0,"menu_item_id":172} 
[2026-03-09 16:21:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5711,"item_index":1,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5711}} 
[2026-03-09 16:21:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5711,"item_index":1,"menu_item_id":6} 
[2026-03-09 16:21:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5711,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5711}} 
[2026-03-09 16:21:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5711,"item_index":2,"menu_item_id":2} 
[2026-03-09 16:21:24] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5705,"new_order_id":5711,"order_number":"AZS-090326-011"} 
[2026-03-09 16:27:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5709,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":27438},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":27439}],"validated_items":[{"id":27438,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":27439,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-09 16:27:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5709,"items_count":2} 
[2026-03-09 16:27:34] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27438,"menu_item_id":13,"quantity":2},{"id":27439,"menu_item_id":4,"quantity":1}]} 
[2026-03-09 16:27:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5709,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|2|","4|1|"],"new_items_map_keys":["13|2|","4|1|"]} 
[2026-03-09 16:27:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5709,"order_number":"AZS-090326-014"} 
[2026-03-09 16:27:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5709,"order_number":"AZS-090326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 16:27:34"} 
[2026-03-09 16:39:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5710,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27440},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27441},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":27442},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27443},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27444},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27445},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27446}],"validated_items":[{"id":27440,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27441,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27442,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":27443,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27444,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27445,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27446,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-09 16:39:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5710,"items_count":7} 
[2026-03-09 16:39:26] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27440,"menu_item_id":113,"quantity":1},{"id":27441,"menu_item_id":396,"quantity":2},{"id":27442,"menu_item_id":52,"quantity":2},{"id":27443,"menu_item_id":5,"quantity":1},{"id":27444,"menu_item_id":61,"quantity":1},{"id":27445,"menu_item_id":56,"quantity":1},{"id":27446,"menu_item_id":3,"quantity":1}]} 
[2026-03-09 16:39:26] local.INFO: PosOrderController::update - Item changes check {"order_id":5710,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["113|1|","396|2|","52|2|","5|1|","61|1|","56|1|","3|1|"],"new_items_map_keys":["113|1|","396|2|","52|2|","5|1|","61|1|","56|1|","3|1|"]} 
[2026-03-09 16:39:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5710,"order_number":"AZS-090326-013"} 
[2026-03-09 16:39:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5710,"order_number":"AZS-090326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 16:39:26"} 
[2026-03-09 16:40:08] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5703,"order_number":"AZS-090326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1362,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 16:40:08"} 
[2026-03-09 16:40:08] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5703,"order_number":"AZS-090326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1362,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 16:40:08"} 
[2026-03-09 16:40:08] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5703,"order_number":"AZS-090326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1362,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 16:40:08"} 
[2026-03-09 16:40:08] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5703,"order_number":"AZS-090326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1362,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 16:40:08"} 
[2026-03-09 16:40:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5703,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":164,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":27419},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27420},{"menu_item_id":12,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27421},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":27422}],"validated_items":[{"id":27419,"menu_item_id":164,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":27420,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27421,"menu_item_id":12,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27422,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-09 16:40:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5703,"items_count":4} 
[2026-03-09 16:40:08] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27419,"menu_item_id":164,"quantity":1},{"id":27420,"menu_item_id":6,"quantity":1},{"id":27421,"menu_item_id":12,"quantity":1},{"id":27422,"menu_item_id":29,"quantity":1}]} 
[2026-03-09 16:40:08] local.INFO: PosOrderController::update - Item changes check {"order_id":5703,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["164|1|","6|1|","12|1|","29|1|"],"new_items_map_keys":["164|1|","6|1|","12|1|","29|1|"]} 
[2026-03-09 16:40:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5703,"order_number":"AZS-090326-009"} 
[2026-03-09 16:40:08] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5703,"order_number":"AZS-090326-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1362,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-09 16:40:08","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-09 16:40:08"} 
[2026-03-09 16:40:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5703,"order_number":"AZS-090326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-09 16:40:08"} 
[2026-03-09 16:40:08] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5703,"order_number":"AZS-090326-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1362.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-09 16:40:08","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1362,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1362.00","database_verification_match":true,"timestamp":"2026-03-09 16:40:08"} 
[2026-03-09 16:46:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":5710,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27440},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27441},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":27442},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27443},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27444},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27446}],"validated_items":[{"id":27440,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27441,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27442,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":27443,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27444,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27446,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-09 16:46:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5710,"items_count":6} 
[2026-03-09 16:46:21] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[27445],"items":[{"id":27440,"menu_item_id":113,"quantity":1},{"id":27441,"menu_item_id":396,"quantity":2},{"id":27442,"menu_item_id":52,"quantity":2},{"id":27443,"menu_item_id":5,"quantity":1},{"id":27444,"menu_item_id":61,"quantity":1},{"id":27446,"menu_item_id":3,"quantity":1}]} 
[2026-03-09 16:46:21] local.INFO: PosOrderController::update - Item changes check {"order_id":5710,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["113|1|","396|2|","52|2|","5|1|","61|1|","56|1|","3|1|"],"new_items_map_keys":["113|1|","396|2|","52|2|","5|1|","61|1|","3|1|"]} 
[2026-03-09 16:46:21] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5710,"order_number":"AZS-090326-013"} 
[2026-03-09 16:46:21] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-013","replaced_order_id":5710} 
[2026-03-09 16:46:21] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5713,"items_count":6,"items":[{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":52,"quantity":2,"price":70.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-09 16:46:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5713,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5713}} 
[2026-03-09 16:46:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5713,"item_index":0,"menu_item_id":113} 
[2026-03-09 16:46:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5713,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5713}} 
[2026-03-09 16:46:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5713,"item_index":1,"menu_item_id":396} 
[2026-03-09 16:46:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5713,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5713}} 
[2026-03-09 16:46:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5713,"item_index":2,"menu_item_id":52} 
[2026-03-09 16:46:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5713,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5713}} 
[2026-03-09 16:46:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5713,"item_index":3,"menu_item_id":5} 
[2026-03-09 16:46:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5713,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5713}} 
[2026-03-09 16:46:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5713,"item_index":4,"menu_item_id":61} 
[2026-03-09 16:46:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5713,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5713}} 
[2026-03-09 16:46:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5713,"item_index":5,"menu_item_id":3} 
[2026-03-09 16:46:21] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5710,"new_order_id":5713,"order_number":"AZS-090326-013"} 
[2026-03-09 16:46:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5713,"item_index":0,"item_id":27440} 
[2026-03-09 16:46:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5713,"item_index":1,"item_id":27441} 
[2026-03-09 16:46:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5713,"item_index":2,"item_id":27442} 
[2026-03-09 16:46:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5713,"item_index":3,"item_id":27443} 
[2026-03-09 16:46:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5713,"item_index":4,"item_id":27444} 
[2026-03-09 16:46:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5713,"item_index":5,"item_id":27446} 
[2026-03-09 16:46:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5713,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27440},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27441},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":27442},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27443},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27444},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27446}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-09 16:46:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5713,"items_count":6} 
[2026-03-09 16:46:42] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27454,27455,27456,27457,27458,27459],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":52,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-09 16:46:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5713,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","396|2|","52|2|","5|1|","61|1|","3|1|"],"new_items_map_keys":["113|1|","396|2|","52|2|","5|1|","61|1|","3|1|"]} 
[2026-03-09 16:46:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5713,"order_number":"AZS-090326-013"} 
[2026-03-09 16:46:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5713,"order_number":"AZS-090326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 16:46:42"} 
[2026-03-09 17:01:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5713,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27454},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27455},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":27456},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27457},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27458},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27459}],"validated_items":[{"id":27454,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27455,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27456,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":27457,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27458,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27459,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-09 17:01:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5713,"items_count":6} 
[2026-03-09 17:01:52] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27454,"menu_item_id":113,"quantity":1},{"id":27455,"menu_item_id":396,"quantity":2},{"id":27456,"menu_item_id":52,"quantity":2},{"id":27457,"menu_item_id":5,"quantity":1},{"id":27458,"menu_item_id":61,"quantity":1},{"id":27459,"menu_item_id":3,"quantity":1}]} 
[2026-03-09 17:01:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5713,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","396|2|","52|2|","5|1|","61|1|","3|1|"],"new_items_map_keys":["113|1|","396|2|","52|2|","5|1|","61|1|","3|1|"]} 
[2026-03-09 17:01:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5713,"order_number":"AZS-090326-013"} 
[2026-03-09 17:01:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5713,"order_number":"AZS-090326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 17:01:52"} 
[2026-03-09 17:02:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5713,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27454},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27455},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":27456},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27457},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27458},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27459}],"validated_items":[{"id":27454,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27455,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27456,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":27457,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27458,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27459,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-09 17:02:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5713,"items_count":6} 
[2026-03-09 17:02:09] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27454,"menu_item_id":113,"quantity":1},{"id":27455,"menu_item_id":396,"quantity":2},{"id":27456,"menu_item_id":52,"quantity":2},{"id":27457,"menu_item_id":5,"quantity":1},{"id":27458,"menu_item_id":61,"quantity":1},{"id":27459,"menu_item_id":3,"quantity":1}]} 
[2026-03-09 17:02:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5713,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","396|2|","52|2|","5|1|","61|1|","3|1|"],"new_items_map_keys":["113|1|","396|2|","52|2|","5|1|","61|1|","3|1|"]} 
[2026-03-09 17:02:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5713,"order_number":"AZS-090326-013"} 
[2026-03-09 17:02:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5713,"order_number":"AZS-090326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 17:02:09"} 
[2026-03-09 17:02:45] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5713,"order_number":"AZS-090326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 17:02:45"} 
[2026-03-09 17:02:45] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5713,"order_number":"AZS-090326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 17:02:45"} 
[2026-03-09 17:02:45] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5713,"order_number":"AZS-090326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 17:02:45"} 
[2026-03-09 17:02:45] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5713,"order_number":"AZS-090326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 17:02:45"} 
[2026-03-09 17:02:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":5713,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27454},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27455},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":27456},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27457},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27459}],"validated_items":[{"id":27454,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27455,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27456,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":27457,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27459,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-09 17:02:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5713,"items_count":5} 
[2026-03-09 17:02:45] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[27458],"items":[{"id":27454,"menu_item_id":113,"quantity":1},{"id":27455,"menu_item_id":396,"quantity":2},{"id":27456,"menu_item_id":52,"quantity":2},{"id":27457,"menu_item_id":5,"quantity":1},{"id":27459,"menu_item_id":3,"quantity":1}]} 
[2026-03-09 17:02:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5713,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["113|1|","396|2|","52|2|","5|1|","61|1|","3|1|"],"new_items_map_keys":["113|1|","396|2|","52|2|","5|1|","3|1|"]} 
[2026-03-09 17:02:45] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5713,"order_number":"AZS-090326-013","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":2000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-09 17:02:45","original_payment_amount":"0.00","grand_total":1977.0,"timestamp":"2026-03-09 17:02:45"} 
[2026-03-09 17:02:45] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5713,"order_number":"AZS-090326-013"} 
[2026-03-09 17:02:45] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-013","replaced_order_id":5713} 
[2026-03-09 17:02:45] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5713,"new_order_id":5714,"order_number":"AZS-090326-013","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"2000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-09 17:02:45","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-09 17:02:45"} 
[2026-03-09 17:02:45] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5714,"items_count":5,"items":[{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":52,"quantity":2,"price":70.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-09 17:02:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5714,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5714}} 
[2026-03-09 17:02:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5714,"item_index":0,"menu_item_id":113} 
[2026-03-09 17:02:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5714,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5714}} 
[2026-03-09 17:02:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5714,"item_index":1,"menu_item_id":396} 
[2026-03-09 17:02:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5714,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5714}} 
[2026-03-09 17:02:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5714,"item_index":2,"menu_item_id":52} 
[2026-03-09 17:02:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5714,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5714}} 
[2026-03-09 17:02:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5714,"item_index":3,"menu_item_id":5} 
[2026-03-09 17:02:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5714,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5714}} 
[2026-03-09 17:02:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5714,"item_index":4,"menu_item_id":3} 
[2026-03-09 17:02:45] local.ERROR: Error tracking recipe usage for order 5714: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5714, 52, 102, 1, 20, 0.00, Order #AZS-090326-013 - 2x Khamiri Roti, 2026-03-09 17:02:45, 2026-03-09 17:02:45))  
[2026-03-09 17:02:45] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5713,"new_order_id":5714,"order_number":"AZS-090326-013"} 
[2026-03-09 17:02:46] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5713,"new_order_id":5714,"order_number":"AZS-090326-013","route":"api/orders/5713"} 
[2026-03-09 17:03:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5709,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":27438},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":27439}],"validated_items":[{"id":27438,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":27439,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-09 17:03:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5709,"items_count":2} 
[2026-03-09 17:03:04] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27438,"menu_item_id":13,"quantity":2},{"id":27439,"menu_item_id":4,"quantity":1}]} 
[2026-03-09 17:03:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5709,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|2|","4|1|"],"new_items_map_keys":["13|2|","4|1|"]} 
[2026-03-09 17:03:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5709,"order_number":"AZS-090326-014"} 
[2026-03-09 17:03:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5709,"order_number":"AZS-090326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 17:03:04"} 
[2026-03-09 17:03:41] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5709,"order_number":"AZS-090326-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":360,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 17:03:41"} 
[2026-03-09 17:03:41] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5709,"order_number":"AZS-090326-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":360,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 17:03:41"} 
[2026-03-09 17:03:41] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5709,"order_number":"AZS-090326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":360,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 17:03:41"} 
[2026-03-09 17:03:41] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5709,"order_number":"AZS-090326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":360,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 17:03:41"} 
[2026-03-09 17:03:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5709,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":27438},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":27439}],"validated_items":[{"id":27438,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":27439,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-09 17:03:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5709,"items_count":2} 
[2026-03-09 17:03:41] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27438,"menu_item_id":13,"quantity":1},{"id":27439,"menu_item_id":4,"quantity":1}]} 
[2026-03-09 17:03:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5709,"has_item_changes":true,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|2|","4|1|"],"new_items_map_keys":["13|1|","4|1|"]} 
[2026-03-09 17:03:41] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5709,"order_number":"AZS-090326-014","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":360,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-09 17:03:41","original_payment_amount":"0.00","grand_total":356.0,"timestamp":"2026-03-09 17:03:41"} 
[2026-03-09 17:03:41] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5709,"order_number":"AZS-090326-014"} 
[2026-03-09 17:03:41] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-014","replaced_order_id":5709} 
[2026-03-09 17:03:41] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5709,"new_order_id":5715,"order_number":"AZS-090326-014","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"360.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-09 17:03:41","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":360,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-09 17:03:41"} 
[2026-03-09 17:03:41] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5715,"items_count":2,"items":[{"menu_item_id":13,"quantity":1,"price":249.0},{"menu_item_id":4,"quantity":1,"price":90.0}]} 
[2026-03-09 17:03:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5715,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5715}} 
[2026-03-09 17:03:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5715,"item_index":0,"menu_item_id":13} 
[2026-03-09 17:03:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5715,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":90.0,"discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5715}} 
[2026-03-09 17:03:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5715,"item_index":1,"menu_item_id":4} 
[2026-03-09 17:03:41] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5709,"new_order_id":5715,"order_number":"AZS-090326-014"} 
[2026-03-09 17:03:41] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5709,"new_order_id":5715,"order_number":"AZS-090326-014","route":"api/orders/5709"} 
[2026-03-09 17:07:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5712,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":27450},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27451},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":27452},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27453},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27450,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":27451,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27452,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":27453,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 17:07:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5712,"items_count":5} 
[2026-03-09 17:07:40] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27450,"menu_item_id":396,"quantity":3},{"id":27451,"menu_item_id":61,"quantity":1},{"id":27452,"menu_item_id":106,"quantity":1},{"id":27453,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-09 17:07:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5712,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["396|3|","61|1|","106|1|","5|1|"],"new_items_map_keys":["396|3|","61|1|","106|1|","5|1|","3|1|"]} 
[2026-03-09 17:07:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5712,"order_number":"AZS-090326-015"} 
[2026-03-09 17:07:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-015","replaced_order_id":5712} 
[2026-03-09 17:07:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5716,"items_count":5,"items":[{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-09 17:07:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5716,"item_index":0,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5716}} 
[2026-03-09 17:07:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5716,"item_index":0,"menu_item_id":396} 
[2026-03-09 17:07:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5716,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5716}} 
[2026-03-09 17:07:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5716,"item_index":1,"menu_item_id":61} 
[2026-03-09 17:07:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5716,"item_index":2,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5716}} 
[2026-03-09 17:07:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5716,"item_index":2,"menu_item_id":106} 
[2026-03-09 17:07:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5716,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5716}} 
[2026-03-09 17:07:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5716,"item_index":3,"menu_item_id":5} 
[2026-03-09 17:07:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5716,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5716}} 
[2026-03-09 17:07:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5716,"item_index":4,"menu_item_id":3} 
[2026-03-09 17:07:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5712,"new_order_id":5716,"order_number":"AZS-090326-015"} 
[2026-03-09 17:35:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5716,"item_index":0,"item_id":27450} 
[2026-03-09 17:35:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5716,"item_index":1,"item_id":27451} 
[2026-03-09 17:35:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5716,"item_index":2,"item_id":27452} 
[2026-03-09 17:35:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5716,"item_index":3,"item_id":27453} 
[2026-03-09 17:35:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5716,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":27450},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27451},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":27452},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27453},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-09 17:35:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5716,"items_count":5} 
[2026-03-09 17:35:54] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[27467,27468,27469,27470,27471],"items":[{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-09 17:35:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5716,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["396|3|","61|1|","106|1|","5|1|","3|1|"],"new_items_map_keys":["396|3|","61|1|","106|1|","5|1|","3|1|"]} 
[2026-03-09 17:35:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5716,"order_number":"AZS-090326-015"} 
[2026-03-09 17:35:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5716,"order_number":"AZS-090326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 17:35:54"} 
[2026-03-09 17:39:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5716,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":27467},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27468},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":27469},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27470},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27471}],"validated_items":[{"id":27467,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":27468,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27469,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":27470,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27471,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-09 17:39:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5716,"items_count":5} 
[2026-03-09 17:39:06] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27467,"menu_item_id":396,"quantity":3},{"id":27468,"menu_item_id":61,"quantity":1},{"id":27469,"menu_item_id":106,"quantity":1},{"id":27470,"menu_item_id":5,"quantity":1},{"id":27471,"menu_item_id":3,"quantity":1}]} 
[2026-03-09 17:39:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5716,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["396|3|","61|1|","106|1|","5|1|","3|1|"],"new_items_map_keys":["396|3|","61|1|","106|1|","5|1|","3|1|"]} 
[2026-03-09 17:39:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5716,"order_number":"AZS-090326-015"} 
[2026-03-09 17:39:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5716,"order_number":"AZS-090326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 17:39:06"} 
[2026-03-09 17:43:30] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5716,"order_number":"AZS-090326-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5400,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 17:43:30"} 
[2026-03-09 17:43:30] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5716,"order_number":"AZS-090326-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5400,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 17:43:30"} 
[2026-03-09 17:43:30] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5716,"order_number":"AZS-090326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5400,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 17:43:30"} 
[2026-03-09 17:43:30] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5716,"order_number":"AZS-090326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5400,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 17:43:30"} 
[2026-03-09 17:43:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5716,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":27467},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27468},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":27469},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27470},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27471}],"validated_items":[{"id":27467,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":27468,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27469,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":27470,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27471,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-09 17:43:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5716,"items_count":5} 
[2026-03-09 17:43:30] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27467,"menu_item_id":396,"quantity":3},{"id":27468,"menu_item_id":61,"quantity":1},{"id":27469,"menu_item_id":106,"quantity":1},{"id":27470,"menu_item_id":5,"quantity":1},{"id":27471,"menu_item_id":3,"quantity":1}]} 
[2026-03-09 17:43:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5716,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["396|3|","61|1|","106|1|","5|1|","3|1|"],"new_items_map_keys":["396|3|","61|1|","106|1|","5|1|","3|1|"]} 
[2026-03-09 17:43:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5716,"order_number":"AZS-090326-015"} 
[2026-03-09 17:43:30] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5716,"order_number":"AZS-090326-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5400,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-09 17:43:30","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-09 17:43:30"} 
[2026-03-09 17:43:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5716,"order_number":"AZS-090326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-09 17:43:30"} 
[2026-03-09 17:43:30] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5716,"order_number":"AZS-090326-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5400.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-09 17:43:30","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5400,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5400.00","database_verification_match":true,"timestamp":"2026-03-09 17:43:30"} 
[2026-03-09 18:25:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5717,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"discount_percent":0,"notes":null,"id":27472},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":27473},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27474},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27475},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27476},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27472,"menu_item_id":101,"quantity":1,"discount_percent":0,"notes":null},{"id":27473,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":27474,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27475,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27476,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 18:25:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5717,"items_count":6} 
[2026-03-09 18:25:47] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27472,"menu_item_id":101,"quantity":1},{"id":27473,"menu_item_id":396,"quantity":4},{"id":27474,"menu_item_id":61,"quantity":1},{"id":27475,"menu_item_id":56,"quantity":1},{"id":27476,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-09 18:25:47] local.INFO: PosOrderController::update - Item changes check {"order_id":5717,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["101|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["101|1|","396|4|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-03-09 18:25:47] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5717,"order_number":"AZS-090326-016"} 
[2026-03-09 18:25:47] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-016","replaced_order_id":5717} 
[2026-03-09 18:25:47] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5718,"items_count":6,"items":[{"menu_item_id":101,"quantity":1,"price":"2399.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-09 18:25:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5718,"item_index":0,"item_data":{"menu_item_id":101,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Full","quantity":1,"price":"2399.00","discount_percent":0.0,"discount_amount":0.0,"total":2399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5718}} 
[2026-03-09 18:25:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5718,"item_index":0,"menu_item_id":101} 
[2026-03-09 18:25:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5718,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5718}} 
[2026-03-09 18:25:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5718,"item_index":1,"menu_item_id":396} 
[2026-03-09 18:25:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5718,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5718}} 
[2026-03-09 18:25:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5718,"item_index":2,"menu_item_id":61} 
[2026-03-09 18:25:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5718,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5718}} 
[2026-03-09 18:25:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5718,"item_index":3,"menu_item_id":56} 
[2026-03-09 18:25:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5718,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5718}} 
[2026-03-09 18:25:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5718,"item_index":4,"menu_item_id":5} 
[2026-03-09 18:25:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5718,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5718}} 
[2026-03-09 18:25:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5718,"item_index":5,"menu_item_id":3} 
[2026-03-09 18:25:47] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5717,"new_order_id":5718,"order_number":"AZS-090326-016"} 
[2026-03-09 18:46:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5718,"item_index":0,"item_id":27472} 
[2026-03-09 18:46:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5718,"item_index":1,"item_id":27473} 
[2026-03-09 18:46:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5718,"item_index":2,"item_id":27474} 
[2026-03-09 18:46:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5718,"item_index":3,"item_id":27475} 
[2026-03-09 18:46:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5718,"item_index":4,"item_id":27476} 
[2026-03-09 18:46:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":6,"order_id":5718,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"discount_percent":0,"notes":null,"id":27472},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":27473},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27474},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27475},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27476},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":5,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":101,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":5,"discount_percent":0,"notes":null}]} 
[2026-03-09 18:46:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5718,"items_count":7} 
[2026-03-09 18:46:01] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":6,"items_to_remove":[27477,27478,27479,27480,27481,27482],"items":[{"id":null,"menu_item_id":101,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":6,"quantity":5}]} 
[2026-03-09 18:46:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5718,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["101|1|","396|4|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["101|1|","396|4|","61|1|","56|1|","5|1|","3|1|","6|5|"]} 
[2026-03-09 18:46:01] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5718,"order_number":"AZS-090326-016"} 
[2026-03-09 18:46:01] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-016","replaced_order_id":5718} 
[2026-03-09 18:46:01] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5719,"items_count":7,"items":[{"menu_item_id":101,"quantity":1,"price":"2399.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":6,"quantity":5,"price":"199.00"}]} 
[2026-03-09 18:46:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5719,"item_index":0,"item_data":{"menu_item_id":101,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Full","quantity":1,"price":"2399.00","discount_percent":0.0,"discount_amount":0.0,"total":2399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5719}} 
[2026-03-09 18:46:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5719,"item_index":0,"menu_item_id":101} 
[2026-03-09 18:46:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5719,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5719}} 
[2026-03-09 18:46:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5719,"item_index":1,"menu_item_id":396} 
[2026-03-09 18:46:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5719,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5719}} 
[2026-03-09 18:46:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5719,"item_index":2,"menu_item_id":61} 
[2026-03-09 18:46:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5719,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5719}} 
[2026-03-09 18:46:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5719,"item_index":3,"menu_item_id":56} 
[2026-03-09 18:46:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5719,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5719}} 
[2026-03-09 18:46:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5719,"item_index":4,"menu_item_id":5} 
[2026-03-09 18:46:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5719,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5719}} 
[2026-03-09 18:46:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5719,"item_index":5,"menu_item_id":3} 
[2026-03-09 18:46:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5719,"item_index":6,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":5,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":995.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5719}} 
[2026-03-09 18:46:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5719,"item_index":6,"menu_item_id":6} 
[2026-03-09 18:46:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5718,"new_order_id":5719,"order_number":"AZS-090326-016"} 
[2026-03-09 19:01:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T07:01:41.265Z","date_to":"2026-03-09T19:01:41.265Z","per_page":"100"} 
[2026-03-09 19:01:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T07:01:41.281Z","date_to":"2026-03-09T19:01:41.281Z","per_page":"100"} 
[2026-03-09 19:01:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["pending","pending","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","pending","pending","changed","changed","paid","paid","changed","pending","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":22,"paid_count":12,"unpaid_count":5,"unique_order_numbers":17} 
[2026-03-09 19:01:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["pending","pending","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","pending","pending","changed","changed","paid","paid","changed","pending","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":22,"paid_count":12,"unpaid_count":5,"unique_order_numbers":17} 
[2026-03-09 19:01:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T07:01:41.265Z","date_to":"2026-03-09T19:01:41.265Z","per_page":"100"} 
[2026-03-09 19:01:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["pending","pending","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","pending","pending","changed","changed","paid","paid","changed","pending","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":22,"paid_count":12,"unpaid_count":5,"unique_order_numbers":17} 
[2026-03-09 19:15:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5719,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null,"id":27483},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":27484},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27485},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27486},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27487},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27488},{"menu_item_id":6,"quantity":5,"price":199,"discount_percent":0,"notes":null,"id":27489}],"validated_items":[{"id":27483,"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null},{"id":27484,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":27485,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27486,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27487,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27488,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":27489,"menu_item_id":6,"quantity":5,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-09 19:15:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5719,"items_count":7} 
[2026-03-09 19:15:15] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27483,"menu_item_id":101,"quantity":1},{"id":27484,"menu_item_id":396,"quantity":4},{"id":27485,"menu_item_id":61,"quantity":1},{"id":27486,"menu_item_id":56,"quantity":1},{"id":27487,"menu_item_id":5,"quantity":1},{"id":27488,"menu_item_id":3,"quantity":1},{"id":27489,"menu_item_id":6,"quantity":5}]} 
[2026-03-09 19:15:15] local.INFO: PosOrderController::update - Item changes check {"order_id":5719,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["101|1|","396|4|","61|1|","56|1|","5|1|","3|1|","6|5|"],"new_items_map_keys":["101|1|","396|4|","61|1|","56|1|","5|1|","3|1|","6|5|"]} 
[2026-03-09 19:15:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5719,"order_number":"AZS-090326-016"} 
[2026-03-09 19:15:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5719,"order_number":"AZS-090326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 19:15:15"} 
[2026-03-09 19:17:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5711,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":172,"quantity":1,"discount_percent":0,"notes":null,"id":27447},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null,"id":27448},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":27449}],"validated_items":[{"id":27447,"menu_item_id":172,"quantity":1,"discount_percent":0,"notes":null},{"id":27448,"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null},{"id":27449,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 19:17:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5711,"items_count":3} 
[2026-03-09 19:17:00] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27447,"menu_item_id":172,"quantity":1},{"id":27448,"menu_item_id":6,"quantity":1},{"id":27449,"menu_item_id":2,"quantity":1}]} 
[2026-03-09 19:17:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5711,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["172|1|","6|1|","2|1|"],"new_items_map_keys":["172|1|","6|1|","2|1|"]} 
[2026-03-09 19:17:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5711,"order_number":"AZS-090326-011"} 
[2026-03-09 19:17:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5711,"order_number":"AZS-090326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-03-09 19:17:00"} 
[2026-03-09 19:17:15] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5711,"order_number":"AZS-090326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1328,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 19:17:15"} 
[2026-03-09 19:17:15] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5711,"order_number":"AZS-090326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1328,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 19:17:15"} 
[2026-03-09 19:17:15] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5711,"order_number":"AZS-090326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1328,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 19:17:15"} 
[2026-03-09 19:17:15] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5711,"order_number":"AZS-090326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1328,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 19:17:15"} 
[2026-03-09 19:17:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5711,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":172,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":27447},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27448},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":27449}],"validated_items":[{"id":27447,"menu_item_id":172,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":27448,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27449,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-09 19:17:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5711,"items_count":3} 
[2026-03-09 19:17:15] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27447,"menu_item_id":172,"quantity":1},{"id":27448,"menu_item_id":6,"quantity":1},{"id":27449,"menu_item_id":2,"quantity":1}]} 
[2026-03-09 19:17:15] local.INFO: PosOrderController::update - Item changes check {"order_id":5711,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["172|1|","6|1|","2|1|"],"new_items_map_keys":["172|1|","6|1|","2|1|"]} 
[2026-03-09 19:17:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5711,"order_number":"AZS-090326-011"} 
[2026-03-09 19:17:15] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5711,"order_number":"AZS-090326-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1328,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-09 19:17:15","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-09 19:17:15"} 
[2026-03-09 19:17:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5711,"order_number":"AZS-090326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-09 19:17:15"} 
[2026-03-09 19:17:15] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5711,"order_number":"AZS-090326-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1328.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-09 19:17:15","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1328,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1328.00","database_verification_match":true,"timestamp":"2026-03-09 19:17:15"} 
[2026-03-09 19:17:29] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5693,"order_number":"AZS-090326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 19:17:29"} 
[2026-03-09 19:17:29] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5693,"order_number":"AZS-090326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 19:17:29"} 
[2026-03-09 19:17:29] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5693,"order_number":"AZS-090326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 19:17:29"} 
[2026-03-09 19:17:29] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5693,"order_number":"AZS-090326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 19:17:29"} 
[2026-03-09 19:17:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5693,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":4,"price":499,"discount_percent":0,"notes":null,"id":27376}],"validated_items":[{"id":27376,"menu_item_id":417,"quantity":4,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-09 19:17:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5693,"items_count":1} 
[2026-03-09 19:17:29] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27376,"menu_item_id":417,"quantity":4}]} 
[2026-03-09 19:17:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5693,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|4|"],"new_items_map_keys":["417|4|"]} 
[2026-03-09 19:17:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5693,"order_number":"AZS-090326-008"} 
[2026-03-09 19:17:29] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5693,"order_number":"AZS-090326-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-09 19:17:29","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-09 19:17:29"} 
[2026-03-09 19:17:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5693,"order_number":"AZS-090326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-09 19:17:29"} 
[2026-03-09 19:17:29] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5693,"order_number":"AZS-090326-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-09 19:17:29","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-09 19:17:29"} 
[2026-03-09 19:17:40] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5704,"order_number":"AZS-090326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":400,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 19:17:40"} 
[2026-03-09 19:17:40] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5704,"order_number":"AZS-090326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":400,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 19:17:40"} 
[2026-03-09 19:17:40] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5704,"order_number":"AZS-090326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":400,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 19:17:40"} 
[2026-03-09 19:17:40] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5704,"order_number":"AZS-090326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":400,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 19:17:40"} 
[2026-03-09 19:17:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5704,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27423}],"validated_items":[{"id":27423,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-09 19:17:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5704,"items_count":1} 
[2026-03-09 19:17:40] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27423,"menu_item_id":6,"quantity":2}]} 
[2026-03-09 19:17:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5704,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-09 19:17:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5704,"order_number":"AZS-090326-012"} 
[2026-03-09 19:17:40] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5704,"order_number":"AZS-090326-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":400,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-09 19:17:40","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-09 19:17:40"} 
[2026-03-09 19:17:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5704,"order_number":"AZS-090326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-09 19:17:40"} 
[2026-03-09 19:17:40] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5704,"order_number":"AZS-090326-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"400.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-09 19:17:40","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":400,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"400.00","database_verification_match":true,"timestamp":"2026-03-09 19:17:40"} 
[2026-03-09 19:17:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T07:17:55.165Z","date_to":"2026-03-09T19:17:55.165Z","per_page":"100"} 
[2026-03-09 19:17:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["pending","pending","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":22,"paid_count":15,"unpaid_count":2,"unique_order_numbers":17} 
[2026-03-09 19:17:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T07:17:55.186Z","date_to":"2026-03-09T19:17:55.186Z","per_page":"100"} 
[2026-03-09 19:17:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["pending","pending","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":22,"paid_count":15,"unpaid_count":2,"unique_order_numbers":17} 
[2026-03-09 19:17:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T07:17:55.165Z","date_to":"2026-03-09T19:17:55.165Z","per_page":"100"} 
[2026-03-09 19:17:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["pending","pending","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":22,"paid_count":15,"unpaid_count":2,"unique_order_numbers":17} 
[2026-03-09 19:22:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5719,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null,"id":27483},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":27484},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27485},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27486},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27487},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27488},{"menu_item_id":6,"quantity":5,"price":199,"discount_percent":0,"notes":null,"id":27489}],"validated_items":[{"id":27483,"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null},{"id":27484,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":27485,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27486,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27487,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27488,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":27489,"menu_item_id":6,"quantity":5,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-09 19:22:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5719,"items_count":7} 
[2026-03-09 19:22:14] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27483,"menu_item_id":101,"quantity":1},{"id":27484,"menu_item_id":396,"quantity":4},{"id":27485,"menu_item_id":61,"quantity":1},{"id":27486,"menu_item_id":56,"quantity":1},{"id":27487,"menu_item_id":5,"quantity":1},{"id":27488,"menu_item_id":3,"quantity":1},{"id":27489,"menu_item_id":6,"quantity":5}]} 
[2026-03-09 19:22:14] local.INFO: PosOrderController::update - Item changes check {"order_id":5719,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["101|1|","396|4|","61|1|","56|1|","5|1|","3|1|","6|5|"],"new_items_map_keys":["101|1|","396|4|","61|1|","56|1|","5|1|","3|1|","6|5|"]} 
[2026-03-09 19:22:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5719,"order_number":"AZS-090326-016"} 
[2026-03-09 19:22:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5719,"order_number":"AZS-090326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 19:22:14"} 
[2026-03-09 19:22:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T07:22:31.863Z","date_to":"2026-03-09T19:22:31.863Z","per_page":"100"} 
[2026-03-09 19:22:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["pending","pending","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":22,"paid_count":15,"unpaid_count":2,"unique_order_numbers":17} 
[2026-03-09 19:22:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T07:22:31.840Z","date_to":"2026-03-09T19:22:31.840Z","per_page":"100"} 
[2026-03-09 19:22:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["pending","pending","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":22,"paid_count":15,"unpaid_count":2,"unique_order_numbers":17} 
[2026-03-09 19:22:35] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T07:22:31.840Z","date_to":"2026-03-09T19:22:31.840Z","per_page":"100"} 
[2026-03-09 19:22:35] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["pending","pending","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":22,"paid_count":15,"unpaid_count":2,"unique_order_numbers":17} 
[2026-03-09 19:32:18] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5719,"order_number":"AZS-090326-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 19:32:18"} 
[2026-03-09 19:32:18] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5719,"order_number":"AZS-090326-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 19:32:18"} 
[2026-03-09 19:32:18] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5719,"order_number":"AZS-090326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 19:32:18"} 
[2026-03-09 19:32:18] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5719,"order_number":"AZS-090326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 19:32:18"} 
[2026-03-09 19:32:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":5719,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null,"id":27483},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":27484},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27486},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27487},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27488},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":27489}],"validated_items":[{"id":27483,"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null},{"id":27484,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":27486,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27487,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27488,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":27489,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-09 19:32:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5719,"items_count":6} 
[2026-03-09 19:32:18] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[27485],"items":[{"id":27483,"menu_item_id":101,"quantity":1},{"id":27484,"menu_item_id":396,"quantity":4},{"id":27486,"menu_item_id":56,"quantity":1},{"id":27487,"menu_item_id":5,"quantity":1},{"id":27488,"menu_item_id":3,"quantity":1},{"id":27489,"menu_item_id":6,"quantity":3}]} 
[2026-03-09 19:32:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5719,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["101|1|","396|4|","61|1|","56|1|","5|1|","3|1|","6|5|"],"new_items_map_keys":["101|1|","396|4|","56|1|","5|1|","3|1|","6|3|"]} 
[2026-03-09 19:32:18] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5719,"order_number":"AZS-090326-016","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":4100,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-09 19:32:18","original_payment_amount":"0.00","grand_total":4031.0,"timestamp":"2026-03-09 19:32:18"} 
[2026-03-09 19:32:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5719,"order_number":"AZS-090326-016"} 
[2026-03-09 19:32:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-016","replaced_order_id":5719} 
[2026-03-09 19:32:18] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5719,"new_order_id":5721,"order_number":"AZS-090326-016","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"4100.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-09 19:32:18","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-09 19:32:18"} 
[2026-03-09 19:32:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5721,"items_count":6,"items":[{"menu_item_id":101,"quantity":1,"price":2399.0},{"menu_item_id":396,"quantity":4,"price":99.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0},{"menu_item_id":6,"quantity":3,"price":199.0}]} 
[2026-03-09 19:32:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5721,"item_index":0,"item_data":{"menu_item_id":101,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Full","quantity":1,"price":2399.0,"discount_percent":0.0,"discount_amount":0.0,"total":2399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5721}} 
[2026-03-09 19:32:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5721,"item_index":0,"menu_item_id":101} 
[2026-03-09 19:32:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5721,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5721}} 
[2026-03-09 19:32:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5721,"item_index":1,"menu_item_id":396} 
[2026-03-09 19:32:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5721,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5721}} 
[2026-03-09 19:32:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5721,"item_index":2,"menu_item_id":56} 
[2026-03-09 19:32:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5721,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5721}} 
[2026-03-09 19:32:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5721,"item_index":3,"menu_item_id":5} 
[2026-03-09 19:32:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5721,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5721}} 
[2026-03-09 19:32:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5721,"item_index":4,"menu_item_id":3} 
[2026-03-09 19:32:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5721,"item_index":5,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":3,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5721}} 
[2026-03-09 19:32:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5721,"item_index":5,"menu_item_id":6} 
[2026-03-09 19:32:18] local.ERROR: Error tracking recipe usage for order 5721: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5721, 101, 77, 1, 1, 0.00, Order #AZS-090326-016 - 1x Chicken Peshawari Karahi - Full, 2026-03-09 19:32:18, 2026-03-09 19:32:18))  
[2026-03-09 19:32:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5719,"new_order_id":5721,"order_number":"AZS-090326-016"} 
[2026-03-09 19:32:19] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5719,"new_order_id":5721,"order_number":"AZS-090326-016","route":"api/orders/5719"} 
[2026-03-09 19:33:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5720,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":27490},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":27491},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27492},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27493},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27494}],"validated_items":[{"id":27490,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":27491,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":27492,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27493,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27494,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 19:33:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5720,"items_count":5} 
[2026-03-09 19:33:22] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27490,"menu_item_id":95,"quantity":1},{"id":27491,"menu_item_id":396,"quantity":3},{"id":27492,"menu_item_id":61,"quantity":1},{"id":27493,"menu_item_id":56,"quantity":1},{"id":27494,"menu_item_id":5,"quantity":1}]} 
[2026-03-09 19:33:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5720,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["95|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["95|1|","396|3|","61|1|","56|1|","5|1|"]} 
[2026-03-09 19:33:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5720,"order_number":"AZS-090326-017"} 
[2026-03-09 19:33:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5720,"order_number":"AZS-090326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-09 19:33:22"} 
[2026-03-09 19:45:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5720,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":27490},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":27491},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27492},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27493},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27494},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27490,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":27491,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":27492,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27493,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27494,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 19:45:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5720,"items_count":6} 
[2026-03-09 19:45:29] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27490,"menu_item_id":95,"quantity":1},{"id":27491,"menu_item_id":396,"quantity":3},{"id":27492,"menu_item_id":61,"quantity":1},{"id":27493,"menu_item_id":56,"quantity":1},{"id":27494,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-09 19:45:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5720,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["95|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["95|1|","396|3|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-03-09 19:45:29] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5720,"order_number":"AZS-090326-017"} 
[2026-03-09 19:45:29] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-017","replaced_order_id":5720} 
[2026-03-09 19:45:29] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5722,"items_count":6,"items":[{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-09 19:45:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5722,"item_index":0,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5722}} 
[2026-03-09 19:45:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5722,"item_index":0,"menu_item_id":95} 
[2026-03-09 19:45:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5722,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5722}} 
[2026-03-09 19:45:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5722,"item_index":1,"menu_item_id":396} 
[2026-03-09 19:45:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5722,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5722}} 
[2026-03-09 19:45:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5722,"item_index":2,"menu_item_id":61} 
[2026-03-09 19:45:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5722,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5722}} 
[2026-03-09 19:45:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5722,"item_index":3,"menu_item_id":56} 
[2026-03-09 19:45:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5722,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5722}} 
[2026-03-09 19:45:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5722,"item_index":4,"menu_item_id":5} 
[2026-03-09 19:45:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5722,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5722}} 
[2026-03-09 19:45:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5722,"item_index":5,"menu_item_id":3} 
[2026-03-09 19:45:29] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5720,"new_order_id":5722,"order_number":"AZS-090326-017"} 
[2026-03-09 19:59:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5722,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":27501},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":27502},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27503},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27504},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27505},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27506}],"validated_items":[{"id":27501,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":27502,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":27503,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27504,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27505,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27506,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-09 19:59:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5722,"items_count":6} 
[2026-03-09 19:59:08] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27501,"menu_item_id":95,"quantity":1},{"id":27502,"menu_item_id":396,"quantity":3},{"id":27503,"menu_item_id":61,"quantity":1},{"id":27504,"menu_item_id":56,"quantity":1},{"id":27505,"menu_item_id":5,"quantity":1},{"id":27506,"menu_item_id":3,"quantity":1}]} 
[2026-03-09 19:59:08] local.INFO: PosOrderController::update - Item changes check {"order_id":5722,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["95|1|","396|3|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["95|1|","396|3|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-03-09 19:59:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5722,"order_number":"AZS-090326-017"} 
[2026-03-09 19:59:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5722,"order_number":"AZS-090326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 19:59:08"} 
[2026-03-09 20:02:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":5722,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":27501},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":27502},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27503},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27504},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27506}],"validated_items":[{"id":27501,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":27502,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":27503,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27504,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27506,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-09 20:02:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5722,"items_count":5} 
[2026-03-09 20:02:45] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[27505],"items":[{"id":27501,"menu_item_id":95,"quantity":1},{"id":27502,"menu_item_id":396,"quantity":3},{"id":27503,"menu_item_id":61,"quantity":1},{"id":27504,"menu_item_id":56,"quantity":1},{"id":27506,"menu_item_id":3,"quantity":1}]} 
[2026-03-09 20:02:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5722,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["95|1|","396|3|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["95|1|","396|3|","61|1|","56|1|","3|1|"]} 
[2026-03-09 20:02:45] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5722,"order_number":"AZS-090326-017"} 
[2026-03-09 20:02:45] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-017","replaced_order_id":5722} 
[2026-03-09 20:02:45] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5724,"items_count":5,"items":[{"menu_item_id":95,"quantity":1,"price":1999.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-09 20:02:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5724,"item_index":0,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":1999.0,"discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5724}} 
[2026-03-09 20:02:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5724,"item_index":0,"menu_item_id":95} 
[2026-03-09 20:02:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5724,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5724}} 
[2026-03-09 20:02:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5724,"item_index":1,"menu_item_id":396} 
[2026-03-09 20:02:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5724,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5724}} 
[2026-03-09 20:02:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5724,"item_index":2,"menu_item_id":61} 
[2026-03-09 20:02:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5724,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5724}} 
[2026-03-09 20:02:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5724,"item_index":3,"menu_item_id":56} 
[2026-03-09 20:02:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5724,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5724}} 
[2026-03-09 20:02:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5724,"item_index":4,"menu_item_id":3} 
[2026-03-09 20:02:45] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5722,"new_order_id":5724,"order_number":"AZS-090326-017"} 
[2026-03-09 20:02:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5724,"item_index":0,"item_id":27501} 
[2026-03-09 20:02:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5724,"item_index":1,"item_id":27502} 
[2026-03-09 20:02:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5724,"item_index":2,"item_id":27503} 
[2026-03-09 20:02:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5724,"item_index":3,"item_id":27504} 
[2026-03-09 20:02:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5724,"item_index":4,"item_id":27506} 
[2026-03-09 20:02:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5724,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":27501},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":27502},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27503},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27504},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27506}],"validated_items":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-09 20:02:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5724,"items_count":5} 
[2026-03-09 20:02:50] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[27513,27514,27515,27516,27517],"items":[{"id":null,"menu_item_id":95,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-09 20:02:50] local.INFO: PosOrderController::update - Item changes check {"order_id":5724,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["95|1|","396|3|","61|1|","56|1|","3|1|"],"new_items_map_keys":["95|1|","396|3|","61|1|","56|1|","3|1|"]} 
[2026-03-09 20:02:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5724,"order_number":"AZS-090326-017"} 
[2026-03-09 20:02:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5724,"order_number":"AZS-090326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 20:02:50"} 
[2026-03-09 20:03:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5724,"item_index":0,"item_id":27501} 
[2026-03-09 20:03:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5724,"item_index":1,"item_id":27502} 
[2026-03-09 20:03:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5724,"item_index":2,"item_id":27503} 
[2026-03-09 20:03:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5724,"item_index":3,"item_id":27504} 
[2026-03-09 20:03:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5724,"item_index":4,"item_id":27506} 
[2026-03-09 20:03:37] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5724,"order_number":"AZS-090326-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3112,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 20:03:37"} 
[2026-03-09 20:03:37] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5724,"order_number":"AZS-090326-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3112,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 20:03:37"} 
[2026-03-09 20:03:37] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5724,"order_number":"AZS-090326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3112,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 20:03:37"} 
[2026-03-09 20:03:37] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5724,"order_number":"AZS-090326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3112,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 20:03:37"} 
[2026-03-09 20:03:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5724,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":27501},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":27502},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27503},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27504},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27506}],"validated_items":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-09 20:03:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5724,"items_count":5} 
[2026-03-09 20:03:37] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[27513,27514,27515,27516,27517],"items":[{"id":null,"menu_item_id":95,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-09 20:03:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5724,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["95|1|","396|3|","61|1|","56|1|","3|1|"],"new_items_map_keys":["95|1|","396|3|","61|1|","56|1|","3|1|"]} 
[2026-03-09 20:03:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5724,"order_number":"AZS-090326-017"} 
[2026-03-09 20:03:37] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5724,"order_number":"AZS-090326-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3112,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-09 20:03:37","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-09 20:03:37"} 
[2026-03-09 20:03:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5724,"order_number":"AZS-090326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-09 20:03:37"} 
[2026-03-09 20:03:37] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5724,"order_number":"AZS-090326-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3112.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-09 20:03:37","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3112,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3112.00","database_verification_match":true,"timestamp":"2026-03-09 20:03:37"} 
[2026-03-09 21:03:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5723,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":27507},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":27508},{"menu_item_id":52,"quantity":6,"discount_percent":0,"notes":null,"id":27509},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27510},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27511},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27512},{"menu_item_id":286,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27507,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":27508,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":27509,"menu_item_id":52,"quantity":6,"discount_percent":0,"notes":null},{"id":27510,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27511,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27512,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 21:03:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5723,"items_count":7} 
[2026-03-09 21:03:00] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27507,"menu_item_id":114,"quantity":1},{"id":27508,"menu_item_id":112,"quantity":1},{"id":27509,"menu_item_id":52,"quantity":6},{"id":27510,"menu_item_id":61,"quantity":1},{"id":27511,"menu_item_id":56,"quantity":1},{"id":27512,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":286,"quantity":1}]} 
[2026-03-09 21:03:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5723,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["114|1|","112|1|","52|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["114|1|","112|1|","52|6|","61|1|","56|1|","5|1|","286|1|"]} 
[2026-03-09 21:03:00] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5723,"order_number":"AZS-090326-018"} 
[2026-03-09 21:03:00] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-018","replaced_order_id":5723} 
[2026-03-09 21:03:00] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5727,"items_count":7,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":52,"quantity":6,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":286,"quantity":1,"price":"15.00"}]} 
[2026-03-09 21:03:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5727,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5727}} 
[2026-03-09 21:03:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5727,"item_index":0,"menu_item_id":114} 
[2026-03-09 21:03:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5727,"item_index":1,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5727}} 
[2026-03-09 21:03:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5727,"item_index":1,"menu_item_id":112} 
[2026-03-09 21:03:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5727,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":6,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":420.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5727}} 
[2026-03-09 21:03:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5727,"item_index":2,"menu_item_id":52} 
[2026-03-09 21:03:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5727,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5727}} 
[2026-03-09 21:03:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5727,"item_index":3,"menu_item_id":61} 
[2026-03-09 21:03:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5727,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5727}} 
[2026-03-09 21:03:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5727,"item_index":4,"menu_item_id":56} 
[2026-03-09 21:03:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5727,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5727}} 
[2026-03-09 21:03:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5727,"item_index":5,"menu_item_id":5} 
[2026-03-09 21:03:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5727,"item_index":6,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":1,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":15.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5727}} 
[2026-03-09 21:03:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5727,"item_index":6,"menu_item_id":286} 
[2026-03-09 21:03:00] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5723,"new_order_id":5727,"order_number":"AZS-090326-018"} 
[2026-03-09 21:03:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5725,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":27518},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":27519},{"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null,"id":27520},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27521},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27522},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27523},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27518,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":27519,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":27520,"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null},{"id":27521,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27522,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27523,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 21:03:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5725,"items_count":7} 
[2026-03-09 21:03:37] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27518,"menu_item_id":105,"quantity":1},{"id":27519,"menu_item_id":396,"quantity":1},{"id":27520,"menu_item_id":54,"quantity":1},{"id":27521,"menu_item_id":61,"quantity":1},{"id":27522,"menu_item_id":56,"quantity":1},{"id":27523,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-09 21:03:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5725,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["105|1|","396|1|","54|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","396|1|","54|1|","61|1|","56|1|","5|1|","2|1|"]} 
[2026-03-09 21:03:37] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5725,"order_number":"AZS-090326-019"} 
[2026-03-09 21:03:37] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-019","replaced_order_id":5725} 
[2026-03-09 21:03:37] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5728,"items_count":7,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":54,"quantity":1,"price":"159.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-09 21:03:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5728,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5728}} 
[2026-03-09 21:03:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5728,"item_index":0,"menu_item_id":105} 
[2026-03-09 21:03:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5728,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5728}} 
[2026-03-09 21:03:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5728,"item_index":1,"menu_item_id":396} 
[2026-03-09 21:03:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5728,"item_index":2,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5728}} 
[2026-03-09 21:03:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5728,"item_index":2,"menu_item_id":54} 
[2026-03-09 21:03:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5728,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5728}} 
[2026-03-09 21:03:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5728,"item_index":3,"menu_item_id":61} 
[2026-03-09 21:03:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5728,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5728}} 
[2026-03-09 21:03:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5728,"item_index":4,"menu_item_id":56} 
[2026-03-09 21:03:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5728,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5728}} 
[2026-03-09 21:03:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5728,"item_index":5,"menu_item_id":5} 
[2026-03-09 21:03:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5728,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5728}} 
[2026-03-09 21:03:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5728,"item_index":6,"menu_item_id":2} 
[2026-03-09 21:03:37] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5725,"new_order_id":5728,"order_number":"AZS-090326-019"} 
[2026-03-09 21:10:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5727,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":27525},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":27526},{"menu_item_id":52,"quantity":6,"price":70,"discount_percent":0,"notes":null,"id":27527},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27528},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27529},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27530},{"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null,"id":27531}],"validated_items":[{"id":27525,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":27526,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":27527,"menu_item_id":52,"quantity":6,"price":70,"discount_percent":0,"notes":null},{"id":27528,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27529,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27530,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27531,"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-09 21:10:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5727,"items_count":7} 
[2026-03-09 21:10:23] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27525,"menu_item_id":114,"quantity":1},{"id":27526,"menu_item_id":112,"quantity":1},{"id":27527,"menu_item_id":52,"quantity":6},{"id":27528,"menu_item_id":61,"quantity":1},{"id":27529,"menu_item_id":56,"quantity":1},{"id":27530,"menu_item_id":5,"quantity":1},{"id":27531,"menu_item_id":286,"quantity":1}]} 
[2026-03-09 21:10:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5727,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|1|","112|1|","52|6|","61|1|","56|1|","5|1|","286|1|"],"new_items_map_keys":["114|1|","112|1|","52|6|","61|1|","56|1|","5|1|","286|1|"]} 
[2026-03-09 21:10:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5727,"order_number":"AZS-090326-018"} 
[2026-03-09 21:10:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5727,"order_number":"AZS-090326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 21:10:23"} 
[2026-03-09 21:11:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":5727,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":27525},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":27526},{"menu_item_id":52,"quantity":6,"discount_percent":0,"notes":null,"id":27527},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27528},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27530},{"menu_item_id":286,"quantity":1,"discount_percent":0,"notes":null,"id":27531}],"validated_items":[{"id":27525,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":27526,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":27527,"menu_item_id":52,"quantity":6,"discount_percent":0,"notes":null},{"id":27528,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27530,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":27531,"menu_item_id":286,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 21:11:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5727,"items_count":6} 
[2026-03-09 21:11:24] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[27529],"items":[{"id":27525,"menu_item_id":114,"quantity":1},{"id":27526,"menu_item_id":112,"quantity":1},{"id":27527,"menu_item_id":52,"quantity":6},{"id":27528,"menu_item_id":61,"quantity":1},{"id":27530,"menu_item_id":5,"quantity":1},{"id":27531,"menu_item_id":286,"quantity":1}]} 
[2026-03-09 21:11:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5727,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["114|1|","112|1|","52|6|","61|1|","56|1|","5|1|","286|1|"],"new_items_map_keys":["114|1|","112|1|","52|6|","61|1|","5|1|","286|1|"]} 
[2026-03-09 21:11:24] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5727,"order_number":"AZS-090326-018"} 
[2026-03-09 21:11:24] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-018","replaced_order_id":5727} 
[2026-03-09 21:11:24] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5729,"items_count":6,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":52,"quantity":6,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":286,"quantity":1,"price":"15.00"}]} 
[2026-03-09 21:11:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5729,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5729}} 
[2026-03-09 21:11:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5729,"item_index":0,"menu_item_id":114} 
[2026-03-09 21:11:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5729,"item_index":1,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5729}} 
[2026-03-09 21:11:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5729,"item_index":1,"menu_item_id":112} 
[2026-03-09 21:11:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5729,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":6,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":420.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5729}} 
[2026-03-09 21:11:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5729,"item_index":2,"menu_item_id":52} 
[2026-03-09 21:11:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5729,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5729}} 
[2026-03-09 21:11:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5729,"item_index":3,"menu_item_id":61} 
[2026-03-09 21:11:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5729,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5729}} 
[2026-03-09 21:11:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5729,"item_index":4,"menu_item_id":5} 
[2026-03-09 21:11:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5729,"item_index":5,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":1,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":15.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5729}} 
[2026-03-09 21:11:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5729,"item_index":5,"menu_item_id":286} 
[2026-03-09 21:11:24] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5727,"new_order_id":5729,"order_number":"AZS-090326-018"} 
[2026-03-09 21:11:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5729,"item_index":0,"item_id":27525} 
[2026-03-09 21:11:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5729,"item_index":1,"item_id":27526} 
[2026-03-09 21:11:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5729,"item_index":2,"item_id":27527} 
[2026-03-09 21:11:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5729,"item_index":3,"item_id":27528} 
[2026-03-09 21:11:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5729,"item_index":4,"item_id":27530} 
[2026-03-09 21:11:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5729,"item_index":5,"item_id":27531} 
[2026-03-09 21:11:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5729,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":27525},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":27526},{"menu_item_id":52,"quantity":6,"price":70,"discount_percent":0,"notes":null,"id":27527},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27528},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27530},{"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null,"id":27531}],"validated_items":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":6,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-09 21:11:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5729,"items_count":6} 
[2026-03-09 21:11:29] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27539,27540,27541,27542,27543,27544],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":112,"quantity":1},{"id":null,"menu_item_id":52,"quantity":6},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":286,"quantity":1}]} 
[2026-03-09 21:11:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5729,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","112|1|","52|6|","61|1|","5|1|","286|1|"],"new_items_map_keys":["114|1|","112|1|","52|6|","61|1|","5|1|","286|1|"]} 
[2026-03-09 21:11:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5729,"order_number":"AZS-090326-018"} 
[2026-03-09 21:11:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5729,"order_number":"AZS-090326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 21:11:29"} 
[2026-03-09 21:12:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5729,"item_index":0,"item_id":27525} 
[2026-03-09 21:12:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5729,"item_index":1,"item_id":27526} 
[2026-03-09 21:12:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5729,"item_index":2,"item_id":27527} 
[2026-03-09 21:12:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5729,"item_index":3,"item_id":27528} 
[2026-03-09 21:12:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5729,"item_index":4,"item_id":27530} 
[2026-03-09 21:12:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5729,"item_index":5,"item_id":27531} 
[2026-03-09 21:12:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5729,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":27525},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":27526},{"menu_item_id":52,"quantity":5,"price":70,"discount_percent":0,"notes":null,"id":27527},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27528},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27530},{"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null,"id":27531}],"validated_items":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":5,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-09 21:12:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5729,"items_count":6} 
[2026-03-09 21:12:56] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27539,27540,27541,27542,27543,27544],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":112,"quantity":1},{"id":null,"menu_item_id":52,"quantity":5},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":286,"quantity":1}]} 
[2026-03-09 21:12:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5729,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","112|1|","52|6|","61|1|","5|1|","286|1|"],"new_items_map_keys":["114|1|","112|1|","52|5|","61|1|","5|1|","286|1|"]} 
[2026-03-09 21:12:56] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5729,"order_number":"AZS-090326-018"} 
[2026-03-09 21:12:56] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-018","replaced_order_id":5729} 
[2026-03-09 21:12:56] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5730,"items_count":6,"items":[{"menu_item_id":114,"quantity":1,"price":2299.0},{"menu_item_id":112,"quantity":1,"price":1699.0},{"menu_item_id":52,"quantity":5,"price":70.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":286,"quantity":1,"price":15.0}]} 
[2026-03-09 21:12:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5730,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5730}} 
[2026-03-09 21:12:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5730,"item_index":0,"menu_item_id":114} 
[2026-03-09 21:12:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5730,"item_index":1,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":1699.0,"discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5730}} 
[2026-03-09 21:12:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5730,"item_index":1,"menu_item_id":112} 
[2026-03-09 21:12:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5730,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":5,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":350.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5730}} 
[2026-03-09 21:12:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5730,"item_index":2,"menu_item_id":52} 
[2026-03-09 21:12:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5730,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5730}} 
[2026-03-09 21:12:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5730,"item_index":3,"menu_item_id":61} 
[2026-03-09 21:12:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5730,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5730}} 
[2026-03-09 21:12:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5730,"item_index":4,"menu_item_id":5} 
[2026-03-09 21:12:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5730,"item_index":5,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":1,"price":15.0,"discount_percent":0.0,"discount_amount":0.0,"total":15.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5730}} 
[2026-03-09 21:12:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5730,"item_index":5,"menu_item_id":286} 
[2026-03-09 21:12:56] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5729,"new_order_id":5730,"order_number":"AZS-090326-018"} 
[2026-03-09 21:13:00] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5730,"item_index":0,"item_id":27525} 
[2026-03-09 21:13:00] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5730,"item_index":1,"item_id":27526} 
[2026-03-09 21:13:00] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5730,"item_index":2,"item_id":27527} 
[2026-03-09 21:13:00] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5730,"item_index":3,"item_id":27528} 
[2026-03-09 21:13:00] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5730,"item_index":4,"item_id":27530} 
[2026-03-09 21:13:00] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5730,"item_index":5,"item_id":27531} 
[2026-03-09 21:13:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5730,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":27525},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":27526},{"menu_item_id":52,"quantity":5,"price":70,"discount_percent":0,"notes":null,"id":27527},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27528},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27530},{"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null,"id":27531}],"validated_items":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":5,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-09 21:13:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5730,"items_count":6} 
[2026-03-09 21:13:00] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27545,27546,27547,27548,27549,27550],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":112,"quantity":1},{"id":null,"menu_item_id":52,"quantity":5},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":286,"quantity":1}]} 
[2026-03-09 21:13:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5730,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","112|1|","52|5|","61|1|","5|1|","286|1|"],"new_items_map_keys":["114|1|","112|1|","52|5|","61|1|","5|1|","286|1|"]} 
[2026-03-09 21:13:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5730,"order_number":"AZS-090326-018"} 
[2026-03-09 21:13:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5730,"order_number":"AZS-090326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 21:13:00"} 
[2026-03-09 21:18:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5728,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":27532},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":27533},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":27534},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27535},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27536},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27537},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":27538}],"validated_items":[{"id":27532,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":27533,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":27534,"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":27535,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27536,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27537,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27538,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-09 21:18:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5728,"items_count":7} 
[2026-03-09 21:18:20] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27532,"menu_item_id":105,"quantity":1},{"id":27533,"menu_item_id":396,"quantity":1},{"id":27534,"menu_item_id":54,"quantity":1},{"id":27535,"menu_item_id":61,"quantity":1},{"id":27536,"menu_item_id":56,"quantity":1},{"id":27537,"menu_item_id":5,"quantity":1},{"id":27538,"menu_item_id":2,"quantity":1}]} 
[2026-03-09 21:18:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5728,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["105|1|","396|1|","54|1|","61|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["105|1|","396|1|","54|1|","61|1|","56|1|","5|1|","2|1|"]} 
[2026-03-09 21:18:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5728,"order_number":"AZS-090326-019"} 
[2026-03-09 21:18:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5728,"order_number":"AZS-090326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 21:18:20"} 
[2026-03-09 21:25:40] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5730,"order_number":"AZS-090326-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 21:25:40"} 
[2026-03-09 21:25:40] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5730,"order_number":"AZS-090326-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 21:25:40"} 
[2026-03-09 21:25:40] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5730,"order_number":"AZS-090326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 21:25:40"} 
[2026-03-09 21:25:40] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5730,"order_number":"AZS-090326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 21:25:40"} 
[2026-03-09 21:25:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5730,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":27545},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":27546},{"menu_item_id":52,"quantity":5,"price":70,"discount_percent":0,"notes":null,"id":27547},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27548},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27549},{"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null,"id":27550}],"validated_items":[{"id":27545,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":27546,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":27547,"menu_item_id":52,"quantity":5,"price":70,"discount_percent":0,"notes":null},{"id":27548,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27549,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27550,"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-09 21:25:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5730,"items_count":6} 
[2026-03-09 21:25:40] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27545,"menu_item_id":114,"quantity":1},{"id":27546,"menu_item_id":112,"quantity":1},{"id":27547,"menu_item_id":52,"quantity":5},{"id":27548,"menu_item_id":61,"quantity":1},{"id":27549,"menu_item_id":5,"quantity":1},{"id":27550,"menu_item_id":286,"quantity":1}]} 
[2026-03-09 21:25:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5730,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","112|1|","52|5|","61|1|","5|1|","286|1|"],"new_items_map_keys":["114|1|","112|1|","52|5|","61|1|","5|1|","286|1|"]} 
[2026-03-09 21:25:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5730,"order_number":"AZS-090326-018"} 
[2026-03-09 21:25:40] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5730,"order_number":"AZS-090326-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-09 21:25:40","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-09 21:25:40"} 
[2026-03-09 21:25:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5730,"order_number":"AZS-090326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-09 21:25:40"} 
[2026-03-09 21:25:40] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5730,"order_number":"AZS-090326-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-09 21:25:40","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-09 21:25:40"} 
[2026-03-09 21:28:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5728,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":27532},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":27533},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":27534},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27535},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27536},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27537},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":27538}],"validated_items":[{"id":27532,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":27533,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":27534,"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":27535,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27536,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27537,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27538,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-09 21:28:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5728,"items_count":7} 
[2026-03-09 21:28:19] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27532,"menu_item_id":105,"quantity":1},{"id":27533,"menu_item_id":396,"quantity":1},{"id":27534,"menu_item_id":54,"quantity":1},{"id":27535,"menu_item_id":61,"quantity":1},{"id":27536,"menu_item_id":56,"quantity":1},{"id":27537,"menu_item_id":5,"quantity":1},{"id":27538,"menu_item_id":2,"quantity":1}]} 
[2026-03-09 21:28:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5728,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["105|1|","396|1|","54|1|","61|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["105|1|","396|1|","54|1|","61|1|","56|1|","5|1|","2|1|"]} 
[2026-03-09 21:28:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5728,"order_number":"AZS-090326-019"} 
[2026-03-09 21:28:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5728,"order_number":"AZS-090326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 21:28:19"} 
[2026-03-09 21:28:46] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5728,"order_number":"AZS-090326-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 21:28:46"} 
[2026-03-09 21:28:46] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5728,"order_number":"AZS-090326-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 21:28:46"} 
[2026-03-09 21:28:46] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5728,"order_number":"AZS-090326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 21:28:46"} 
[2026-03-09 21:28:46] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5728,"order_number":"AZS-090326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 21:28:46"} 
[2026-03-09 21:28:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":5728,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":27532},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":27533},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":27534},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27536},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27537},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":27538}],"validated_items":[{"id":27532,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":27533,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":27534,"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":27536,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27537,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27538,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-09 21:28:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5728,"items_count":6} 
[2026-03-09 21:28:46] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[27535],"items":[{"id":27532,"menu_item_id":105,"quantity":1},{"id":27533,"menu_item_id":396,"quantity":1},{"id":27534,"menu_item_id":54,"quantity":1},{"id":27536,"menu_item_id":56,"quantity":1},{"id":27537,"menu_item_id":5,"quantity":1},{"id":27538,"menu_item_id":2,"quantity":1}]} 
[2026-03-09 21:28:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5728,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["105|1|","396|1|","54|1|","61|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["105|1|","396|1|","54|1|","56|1|","5|1|","2|1|"]} 
[2026-03-09 21:28:46] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5728,"order_number":"AZS-090326-019","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-09 21:28:46","original_payment_amount":"0.00","grand_total":2956.0,"timestamp":"2026-03-09 21:28:46"} 
[2026-03-09 21:28:46] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5728,"order_number":"AZS-090326-019"} 
[2026-03-09 21:28:46] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-019","replaced_order_id":5728} 
[2026-03-09 21:28:46] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5728,"new_order_id":5731,"order_number":"AZS-090326-019","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-09 21:28:46","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-09 21:28:46"} 
[2026-03-09 21:28:46] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5731,"items_count":6,"items":[{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":54,"quantity":1,"price":159.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":2,"quantity":1,"price":130.0}]} 
[2026-03-09 21:28:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5731,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5731}} 
[2026-03-09 21:28:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5731,"item_index":0,"menu_item_id":105} 
[2026-03-09 21:28:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5731,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5731}} 
[2026-03-09 21:28:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5731,"item_index":1,"menu_item_id":396} 
[2026-03-09 21:28:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5731,"item_index":2,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":1,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5731}} 
[2026-03-09 21:28:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5731,"item_index":2,"menu_item_id":54} 
[2026-03-09 21:28:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5731,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5731}} 
[2026-03-09 21:28:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5731,"item_index":3,"menu_item_id":56} 
[2026-03-09 21:28:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5731,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5731}} 
[2026-03-09 21:28:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5731,"item_index":4,"menu_item_id":5} 
[2026-03-09 21:28:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5731,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5731}} 
[2026-03-09 21:28:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5731,"item_index":5,"menu_item_id":2} 
[2026-03-09 21:28:46] local.ERROR: Error tracking recipe usage for order 5731: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5731, 105, 196, 1, 500, 0.00, Order #AZS-090326-019 - 1x Mutton Shinwari - Half, 2026-03-09 21:28:46, 2026-03-09 21:28:46))  
[2026-03-09 21:28:46] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5728,"new_order_id":5731,"order_number":"AZS-090326-019"} 
[2026-03-09 21:28:46] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5728,"new_order_id":5731,"order_number":"AZS-090326-019","route":"api/orders/5728"} 
[2026-03-09 21:59:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T09:59:06.697Z","date_to":"2026-03-09T21:59:06.697Z","per_page":"100"} 
[2026-03-09 21:59:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T09:59:06.683Z","date_to":"2026-03-09T21:59:06.683Z","per_page":"100"} 
[2026-03-09 21:59:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":50,"count":50,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["pending","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":30,"paid_count":19,"unpaid_count":1,"unique_order_numbers":20} 
[2026-03-09 21:59:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":50,"count":50,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["pending","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":30,"paid_count":19,"unpaid_count":1,"unique_order_numbers":20} 
[2026-03-09 21:59:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T09:59:06.683Z","date_to":"2026-03-09T21:59:06.683Z","per_page":"100"} 
[2026-03-09 21:59:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":50,"count":50,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["pending","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":30,"paid_count":19,"unpaid_count":1,"unique_order_numbers":20} 
[2026-03-09 22:56:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5732,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":27557},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":27557,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-09 22:56:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5732,"items_count":2} 
[2026-03-09 22:56:51] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27557,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":416,"quantity":2}]} 
[2026-03-09 22:56:51] local.INFO: PosOrderController::update - Item changes check {"order_id":5732,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|2|"],"new_items_map_keys":["411|2|","416|2|"]} 
[2026-03-09 22:56:51] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5732,"order_number":"AZS-090326-021"} 
[2026-03-09 22:56:51] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-021","replaced_order_id":5732} 
[2026-03-09 22:56:51] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5734,"items_count":2,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"}]} 
[2026-03-09 22:56:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5734,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5734}} 
[2026-03-09 22:56:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5734,"item_index":0,"menu_item_id":411} 
[2026-03-09 22:56:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5734,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5734}} 
[2026-03-09 22:56:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5734,"item_index":1,"menu_item_id":416} 
[2026-03-09 22:56:51] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5732,"new_order_id":5734,"order_number":"AZS-090326-021"} 
[2026-03-09 23:00:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5733,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":27558},{"menu_item_id":416,"quantity":4,"discount_percent":0,"notes":null}],"validated_items":[{"id":27558,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-03-09 23:00:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5733,"items_count":2} 
[2026-03-09 23:00:07] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27558,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":416,"quantity":4}]} 
[2026-03-09 23:00:07] local.INFO: PosOrderController::update - Item changes check {"order_id":5733,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|2|"],"new_items_map_keys":["411|2|","416|4|"]} 
[2026-03-09 23:00:07] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5733,"order_number":"AZS-090326-022"} 
[2026-03-09 23:00:07] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-022","replaced_order_id":5733} 
[2026-03-09 23:00:07] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5735,"items_count":2,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":416,"quantity":4,"price":"70.00"}]} 
[2026-03-09 23:00:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5735,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5735}} 
[2026-03-09 23:00:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5735,"item_index":0,"menu_item_id":411} 
[2026-03-09 23:00:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5735,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5735}} 
[2026-03-09 23:00:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5735,"item_index":1,"menu_item_id":416} 
[2026-03-09 23:00:07] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5733,"new_order_id":5735,"order_number":"AZS-090326-022"} 
[2026-03-09 23:00:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5735,"item_index":0,"item_id":27558} 
[2026-03-09 23:00:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":5735,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":27558},{"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-09 23:00:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5735,"items_count":2} 
[2026-03-09 23:00:19] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[27561,27562],"items":[{"id":null,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":416,"quantity":4}]} 
[2026-03-09 23:00:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5735,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|2|","416|4|"],"new_items_map_keys":["411|2|","416|4|"]} 
[2026-03-09 23:00:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5735,"order_number":"AZS-090326-022"} 
[2026-03-09 23:00:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5735,"order_number":"AZS-090326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-09 23:00:19"} 
[2026-03-09 23:04:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5735,"item_index":0,"item_id":27558} 
[2026-03-09 23:04:21] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5735,"order_number":"AZS-090326-022","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 23:04:21"} 
[2026-03-09 23:04:21] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5735,"order_number":"AZS-090326-022","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 23:04:21"} 
[2026-03-09 23:04:21] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5735,"order_number":"AZS-090326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 23:04:21"} 
[2026-03-09 23:04:21] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5735,"order_number":"AZS-090326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 23:04:21"} 
[2026-03-09 23:04:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":5735,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":27558},{"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-09 23:04:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5735,"items_count":2} 
[2026-03-09 23:04:21] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[27561,27562],"items":[{"id":null,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":416,"quantity":4}]} 
[2026-03-09 23:04:21] local.INFO: PosOrderController::update - Item changes check {"order_id":5735,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|2|","416|4|"],"new_items_map_keys":["411|2|","416|4|"]} 
[2026-03-09 23:04:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5735,"order_number":"AZS-090326-022"} 
[2026-03-09 23:04:21] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5735,"order_number":"AZS-090326-022","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-09 23:04:21","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-09 23:04:21"} 
[2026-03-09 23:04:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5735,"order_number":"AZS-090326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-09 23:04:21"} 
[2026-03-09 23:04:21] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5735,"order_number":"AZS-090326-022","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-09 23:04:21","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1500.00","database_verification_match":true,"timestamp":"2026-03-09 23:04:21"} 
[2026-03-09 23:18:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5734,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":27559},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null,"id":27560},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":27559,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":27560,"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-09 23:18:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5734,"items_count":3} 
[2026-03-09 23:18:59] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27559,"menu_item_id":411,"quantity":2},{"id":27560,"menu_item_id":416,"quantity":2},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-03-09 23:18:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5734,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["411|2|","416|2|"],"new_items_map_keys":["411|2|","416|2|","6|2|"]} 
[2026-03-09 23:18:59] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5734,"order_number":"AZS-090326-021"} 
[2026-03-09 23:18:59] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-021","replaced_order_id":5734} 
[2026-03-09 23:18:59] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5736,"items_count":3,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-03-09 23:18:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5736,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5736}} 
[2026-03-09 23:18:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5736,"item_index":0,"menu_item_id":411} 
[2026-03-09 23:18:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5736,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5736}} 
[2026-03-09 23:18:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5736,"item_index":1,"menu_item_id":416} 
[2026-03-09 23:18:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5736,"item_index":2,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5736}} 
[2026-03-09 23:18:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5736,"item_index":2,"menu_item_id":6} 
[2026-03-09 23:18:59] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5734,"new_order_id":5736,"order_number":"AZS-090326-021"} 
[2026-03-09 23:31:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5737,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":27566},{"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null,"id":27567},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27568},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27569},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27570},{"menu_item_id":412,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":27566,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":27567,"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null},{"id":27568,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27569,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27570,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-09 23:31:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5737,"items_count":6} 
[2026-03-09 23:31:43] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27566,"menu_item_id":106,"quantity":1},{"id":27567,"menu_item_id":48,"quantity":2},{"id":27568,"menu_item_id":61,"quantity":1},{"id":27569,"menu_item_id":56,"quantity":1},{"id":27570,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":412,"quantity":3}]} 
[2026-03-09 23:31:43] local.INFO: PosOrderController::update - Item changes check {"order_id":5737,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["106|1|","48|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["106|1|","48|2|","61|1|","56|1|","5|1|","412|3|"]} 
[2026-03-09 23:31:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5737,"order_number":"AZS-090326-023"} 
[2026-03-09 23:31:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-023","replaced_order_id":5737} 
[2026-03-09 23:31:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5738,"items_count":6,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":48,"quantity":2,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":412,"quantity":3,"price":"220.00"}]} 
[2026-03-09 23:31:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5738,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5738}} 
[2026-03-09 23:31:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5738,"item_index":0,"menu_item_id":106} 
[2026-03-09 23:31:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5738,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5738}} 
[2026-03-09 23:31:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5738,"item_index":1,"menu_item_id":48} 
[2026-03-09 23:31:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5738,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5738}} 
[2026-03-09 23:31:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5738,"item_index":2,"menu_item_id":61} 
[2026-03-09 23:31:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5738,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5738}} 
[2026-03-09 23:31:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5738,"item_index":3,"menu_item_id":56} 
[2026-03-09 23:31:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5738,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5738}} 
[2026-03-09 23:31:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5738,"item_index":4,"menu_item_id":5} 
[2026-03-09 23:31:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5738,"item_index":5,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":3,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":660.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5738}} 
[2026-03-09 23:31:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5738,"item_index":5,"menu_item_id":412} 
[2026-03-09 23:31:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5737,"new_order_id":5738,"order_number":"AZS-090326-023"} 
[2026-03-09 23:35:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5726,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":5,"quantity":3,"discount_percent":0,"notes":null,"id":27524}],"validated_items":[{"id":27524,"menu_item_id":5,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-09 23:35:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5726,"items_count":1} 
[2026-03-09 23:35:14] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27524,"menu_item_id":5,"quantity":3}]} 
[2026-03-09 23:35:14] local.INFO: PosOrderController::update - Item changes check {"order_id":5726,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["5|1|"],"new_items_map_keys":["5|3|"]} 
[2026-03-09 23:35:14] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5726,"order_number":"AZS-090326-020"} 
[2026-03-09 23:35:14] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-020","replaced_order_id":5726} 
[2026-03-09 23:35:14] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5739,"items_count":1,"items":[{"menu_item_id":5,"quantity":3,"price":"170.00"}]} 
[2026-03-09 23:35:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5739,"item_index":0,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":3,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":510.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5739}} 
[2026-03-09 23:35:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5739,"item_index":0,"menu_item_id":5} 
[2026-03-09 23:35:14] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5726,"new_order_id":5739,"order_number":"AZS-090326-020"} 
[2026-03-09 23:35:32] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5739,"order_number":"AZS-090326-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":510,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 23:35:32"} 
[2026-03-09 23:35:32] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5739,"order_number":"AZS-090326-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":510,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 23:35:32"} 
[2026-03-09 23:35:32] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5739,"order_number":"AZS-090326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":510,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 23:35:32"} 
[2026-03-09 23:35:32] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5739,"order_number":"AZS-090326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":510,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 23:35:32"} 
[2026-03-09 23:35:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5739,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":5,"quantity":3,"price":170,"discount_percent":0,"notes":null,"id":27577}],"validated_items":[{"id":27577,"menu_item_id":5,"quantity":3,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-09 23:35:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5739,"items_count":1} 
[2026-03-09 23:35:32] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27577,"menu_item_id":5,"quantity":3}]} 
[2026-03-09 23:35:32] local.INFO: PosOrderController::update - Item changes check {"order_id":5739,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["5|3|"],"new_items_map_keys":["5|3|"]} 
[2026-03-09 23:35:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5739,"order_number":"AZS-090326-020"} 
[2026-03-09 23:35:32] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5739,"order_number":"AZS-090326-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":510,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-09 23:35:32","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-09 23:35:32"} 
[2026-03-09 23:35:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5739,"order_number":"AZS-090326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-09 23:35:32"} 
[2026-03-09 23:35:32] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5739,"order_number":"AZS-090326-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"510.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-09 23:35:32","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":510,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"510.00","database_verification_match":true,"timestamp":"2026-03-09 23:35:32"} 
[2026-03-09 23:36:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5736,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":27563},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":27564},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27565}],"validated_items":[{"id":27563,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":27564,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":27565,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-09 23:36:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5736,"items_count":3} 
[2026-03-09 23:36:13] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27563,"menu_item_id":411,"quantity":2},{"id":27564,"menu_item_id":416,"quantity":2},{"id":27565,"menu_item_id":6,"quantity":2}]} 
[2026-03-09 23:36:13] local.INFO: PosOrderController::update - Item changes check {"order_id":5736,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|2|","416|2|","6|2|"],"new_items_map_keys":["411|2|","416|2|","6|2|"]} 
[2026-03-09 23:36:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5736,"order_number":"AZS-090326-021"} 
[2026-03-09 23:36:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5736,"order_number":"AZS-090326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 23:36:13"} 
[2026-03-09 23:45:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5736,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":27563},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null,"id":27564},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":27565},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27563,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":27564,"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"id":27565,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 23:45:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5736,"items_count":4} 
[2026-03-09 23:45:35] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27563,"menu_item_id":411,"quantity":2},{"id":27564,"menu_item_id":416,"quantity":2},{"id":27565,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-09 23:45:35] local.INFO: PosOrderController::update - Item changes check {"order_id":5736,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["411|2|","416|2|","6|2|"],"new_items_map_keys":["411|2|","416|2|","6|2|","5|1|"]} 
[2026-03-09 23:45:35] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5736,"order_number":"AZS-090326-021"} 
[2026-03-09 23:45:35] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-021","replaced_order_id":5736} 
[2026-03-09 23:45:35] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5741,"items_count":4,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-09 23:45:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5741,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5741}} 
[2026-03-09 23:45:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5741,"item_index":0,"menu_item_id":411} 
[2026-03-09 23:45:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5741,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5741}} 
[2026-03-09 23:45:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5741,"item_index":1,"menu_item_id":416} 
[2026-03-09 23:45:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5741,"item_index":2,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5741}} 
[2026-03-09 23:45:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5741,"item_index":2,"menu_item_id":6} 
[2026-03-09 23:45:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5741,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5741}} 
[2026-03-09 23:45:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5741,"item_index":3,"menu_item_id":5} 
[2026-03-09 23:45:35] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5736,"new_order_id":5741,"order_number":"AZS-090326-021"} 
[2026-03-09 23:45:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5741,"item_index":0,"item_id":27563} 
[2026-03-09 23:45:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5741,"item_index":1,"item_id":27564} 
[2026-03-09 23:45:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5741,"item_index":2,"item_id":27565} 
[2026-03-09 23:45:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5741,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":27563},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":27564},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27565},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-09 23:45:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5741,"items_count":4} 
[2026-03-09 23:45:42] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[27579,27580,27581,27582],"items":[{"id":null,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":416,"quantity":2},{"id":null,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-09 23:45:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5741,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|2|","416|2|","6|2|","5|1|"],"new_items_map_keys":["411|2|","416|2|","6|2|","5|1|"]} 
[2026-03-09 23:45:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5741,"order_number":"AZS-090326-021"} 
[2026-03-09 23:45:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5741,"order_number":"AZS-090326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 23:45:42"} 
[2026-03-09 23:46:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5741,"item_index":0,"item_id":27563} 
[2026-03-09 23:46:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5741,"item_index":1,"item_id":27564} 
[2026-03-09 23:46:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5741,"item_index":2,"item_id":27565} 
[2026-03-09 23:46:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":4,"order_id":5741,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":27563},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null,"id":27564},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":27565},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 23:46:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5741,"items_count":5} 
[2026-03-09 23:46:59] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":4,"items_to_remove":[27579,27580,27581,27582],"items":[{"id":null,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":416,"quantity":2},{"id":null,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-09 23:46:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5741,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["411|2|","416|2|","6|2|","5|1|"],"new_items_map_keys":["411|2|","416|2|","6|2|","5|1|","4|1|"]} 
[2026-03-09 23:46:59] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5741,"order_number":"AZS-090326-021"} 
[2026-03-09 23:46:59] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-021","replaced_order_id":5741} 
[2026-03-09 23:46:59] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5742,"items_count":5,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-03-09 23:46:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5742,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5742}} 
[2026-03-09 23:46:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5742,"item_index":0,"menu_item_id":411} 
[2026-03-09 23:46:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5742,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5742}} 
[2026-03-09 23:46:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5742,"item_index":1,"menu_item_id":416} 
[2026-03-09 23:46:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5742,"item_index":2,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5742}} 
[2026-03-09 23:46:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5742,"item_index":2,"menu_item_id":6} 
[2026-03-09 23:46:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5742,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5742}} 
[2026-03-09 23:46:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5742,"item_index":3,"menu_item_id":5} 
[2026-03-09 23:46:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5742,"item_index":4,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5742}} 
[2026-03-09 23:46:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5742,"item_index":4,"menu_item_id":4} 
[2026-03-09 23:46:59] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5741,"new_order_id":5742,"order_number":"AZS-090326-021"} 
[2026-03-09 23:47:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5742,"item_index":0,"item_id":27563} 
[2026-03-09 23:47:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5742,"item_index":1,"item_id":27564} 
[2026-03-09 23:47:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5742,"item_index":2,"item_id":27565} 
[2026-03-09 23:47:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5742,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":27563},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":27564},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27565},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-09 23:47:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5742,"items_count":5} 
[2026-03-09 23:47:05] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[27583,27584,27585,27586,27587],"items":[{"id":null,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":416,"quantity":2},{"id":null,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-09 23:47:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5742,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|2|","416|2|","6|2|","5|1|","4|1|"],"new_items_map_keys":["411|2|","416|2|","6|2|","5|1|","4|1|"]} 
[2026-03-09 23:47:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5742,"order_number":"AZS-090326-021"} 
[2026-03-09 23:47:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5742,"order_number":"AZS-090326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 23:47:05"} 
[2026-03-09 23:51:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5743,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":27588},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":27589}],"validated_items":[{"id":27588,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":27589,"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-09 23:51:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5743,"items_count":2} 
[2026-03-09 23:51:59] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27588,"menu_item_id":416,"quantity":2},{"id":27589,"menu_item_id":422,"quantity":1}]} 
[2026-03-09 23:51:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5743,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["416|2|","422|1|"],"new_items_map_keys":["416|2|","422|1|"]} 
[2026-03-09 23:51:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5743,"order_number":"AZS-090326-025"} 
[2026-03-09 23:51:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5743,"order_number":"AZS-090326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-09 23:51:59"} 
[2026-03-09 23:52:21] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5743,"order_number":"AZS-090326-025","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":210,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 23:52:21"} 
[2026-03-09 23:52:21] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5743,"order_number":"AZS-090326-025","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":210,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 23:52:21"} 
[2026-03-09 23:52:21] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5743,"order_number":"AZS-090326-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":210,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 23:52:21"} 
[2026-03-09 23:52:21] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5743,"order_number":"AZS-090326-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":210,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 23:52:21"} 
[2026-03-09 23:52:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5743,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":27588},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":27589}],"validated_items":[{"id":27588,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":27589,"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-09 23:52:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5743,"items_count":2} 
[2026-03-09 23:52:21] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27588,"menu_item_id":416,"quantity":2},{"id":27589,"menu_item_id":422,"quantity":1}]} 
[2026-03-09 23:52:21] local.INFO: PosOrderController::update - Item changes check {"order_id":5743,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["416|2|","422|1|"],"new_items_map_keys":["416|2|","422|1|"]} 
[2026-03-09 23:52:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5743,"order_number":"AZS-090326-025"} 
[2026-03-09 23:52:21] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5743,"order_number":"AZS-090326-025","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":210,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-09 23:52:21","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-09 23:52:21"} 
[2026-03-09 23:52:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5743,"order_number":"AZS-090326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-09 23:52:21"} 
[2026-03-09 23:52:21] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5743,"order_number":"AZS-090326-025","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"210.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-09 23:52:21","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":210,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"210.00","database_verification_match":true,"timestamp":"2026-03-09 23:52:21"} 
[2026-03-09 23:52:34] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5742,"order_number":"AZS-090326-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 23:52:34"} 
[2026-03-09 23:52:34] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5742,"order_number":"AZS-090326-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-09 23:52:34"} 
[2026-03-09 23:52:34] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5742,"order_number":"AZS-090326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 23:52:34"} 
[2026-03-09 23:52:34] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5742,"order_number":"AZS-090326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-09 23:52:34"} 
[2026-03-09 23:52:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5742,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":27583},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":27584},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27585},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27586},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":27587}],"validated_items":[{"id":27583,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":27584,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":27585,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":27586,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27587,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-09 23:52:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5742,"items_count":5} 
[2026-03-09 23:52:34] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27583,"menu_item_id":411,"quantity":2},{"id":27584,"menu_item_id":416,"quantity":2},{"id":27585,"menu_item_id":6,"quantity":2},{"id":27586,"menu_item_id":5,"quantity":1},{"id":27587,"menu_item_id":4,"quantity":1}]} 
[2026-03-09 23:52:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5742,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|2|","416|2|","6|2|","5|1|","4|1|"],"new_items_map_keys":["411|2|","416|2|","6|2|","5|1|","4|1|"]} 
[2026-03-09 23:52:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5742,"order_number":"AZS-090326-021"} 
[2026-03-09 23:52:34] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5742,"order_number":"AZS-090326-021","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-09 23:52:34","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-09 23:52:34"} 
[2026-03-09 23:52:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5742,"order_number":"AZS-090326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-09 23:52:34"} 
[2026-03-09 23:52:34] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5742,"order_number":"AZS-090326-021","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-09 23:52:34","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-09 23:52:34"} 
[2026-03-09 23:58:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T11:58:49.163Z","date_to":"2026-03-09T23:58:49.163Z","per_page":"100"} 
[2026-03-09 23:58:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":62,"count":62,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["paid","pending","pending","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":37,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-09 23:58:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T11:58:49.151Z","date_to":"2026-03-09T23:58:49.151Z","per_page":"100"} 
[2026-03-09 23:58:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":62,"count":62,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["paid","pending","pending","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":37,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-09 23:58:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T11:58:49.151Z","date_to":"2026-03-09T23:58:49.151Z","per_page":"100"} 
[2026-03-09 23:58:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":62,"count":62,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["paid","pending","pending","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":37,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-09 23:59:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5740,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":27578},{"menu_item_id":49,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27578,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-09 23:59:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5740,"items_count":2} 
[2026-03-09 23:59:38] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27578,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":49,"quantity":1}]} 
[2026-03-09 23:59:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5740,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|","49|1|"]} 
[2026-03-09 23:59:38] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5740,"order_number":"AZS-090326-024"} 
[2026-03-09 23:59:38] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-024","replaced_order_id":5740} 
[2026-03-09 23:59:38] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5744,"items_count":2,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":49,"quantity":1,"price":"70.00"}]} 
[2026-03-09 23:59:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5744,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5744}} 
[2026-03-09 23:59:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5744,"item_index":0,"menu_item_id":411} 
[2026-03-09 23:59:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5744,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5744}} 
[2026-03-09 23:59:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5744,"item_index":1,"menu_item_id":49} 
[2026-03-09 23:59:38] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5740,"new_order_id":5744,"order_number":"AZS-090326-024"} 
[2026-03-09 23:59:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5744,"item_index":0,"item_id":27578} 
[2026-03-09 23:59:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":5744,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27578},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-09 23:59:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5744,"items_count":2} 
[2026-03-09 23:59:44] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[27590,27591],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":49,"quantity":1}]} 
[2026-03-09 23:59:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5744,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","49|1|"],"new_items_map_keys":["411|1|","49|1|"]} 
[2026-03-09 23:59:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5744,"order_number":"AZS-090326-024"} 
[2026-03-09 23:59:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5744,"order_number":"AZS-090326-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-09 23:59:44"} 
[2026-03-09 23:59:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T11:59:51.960Z","date_to":"2026-03-09T23:59:51.960Z","per_page":"100"} 
[2026-03-09 23:59:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T11:59:51.948Z","date_to":"2026-03-09T23:59:51.948Z","per_page":"100"} 
[2026-03-09 23:59:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":63,"count":63,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["paid","pending","changed","pending","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":38,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-09 23:59:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":63,"count":63,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["paid","pending","changed","pending","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":38,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-09 23:59:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T11:59:51.948Z","date_to":"2026-03-09T23:59:51.948Z","per_page":"100"} 
[2026-03-09 23:59:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":63,"count":63,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["paid","pending","changed","pending","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":38,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-10 00:00:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T12:00:55.569Z","date_to":"2026-03-10T00:00:55.569Z","per_page":"100"} 
[2026-03-10 00:00:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":63,"count":63,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["paid","pending","changed","pending","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":38,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-10 00:00:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T12:00:55.564Z","date_to":"2026-03-10T00:00:55.564Z","per_page":"100"} 
[2026-03-10 00:00:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":63,"count":63,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["paid","pending","changed","pending","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":38,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-10 00:05:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5744,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":27590},{"menu_item_id":49,"quantity":1,"discount_percent":0,"notes":null,"id":27591},{"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27590,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":27591,"menu_item_id":49,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 00:05:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5744,"items_count":3} 
[2026-03-10 00:05:11] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27590,"menu_item_id":411,"quantity":1},{"id":27591,"menu_item_id":49,"quantity":1},{"id":null,"menu_item_id":412,"quantity":1}]} 
[2026-03-10 00:05:11] local.INFO: PosOrderController::update - Item changes check {"order_id":5744,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["411|1|","49|1|"],"new_items_map_keys":["411|1|","49|1|","412|1|"]} 
[2026-03-10 00:05:11] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5744,"order_number":"AZS-090326-024"} 
[2026-03-10 00:05:11] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-024","replaced_order_id":5744} 
[2026-03-10 00:05:11] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5745,"items_count":3,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":49,"quantity":1,"price":"70.00"},{"menu_item_id":412,"quantity":1,"price":"220.00"}]} 
[2026-03-10 00:05:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5745,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5745}} 
[2026-03-10 00:05:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5745,"item_index":0,"menu_item_id":411} 
[2026-03-10 00:05:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5745,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5745}} 
[2026-03-10 00:05:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5745,"item_index":1,"menu_item_id":49} 
[2026-03-10 00:05:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5745,"item_index":2,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":1,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":220.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5745}} 
[2026-03-10 00:05:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5745,"item_index":2,"menu_item_id":412} 
[2026-03-10 00:05:11] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5744,"new_order_id":5745,"order_number":"AZS-090326-024"} 
[2026-03-10 00:05:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5745,"item_index":0,"item_id":27590} 
[2026-03-10 00:05:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5745,"item_index":1,"item_id":27591} 
[2026-03-10 00:05:38] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5745,"order_number":"AZS-090326-024","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":890,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 00:05:38"} 
[2026-03-10 00:05:38] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5745,"order_number":"AZS-090326-024","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":890,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 00:05:38"} 
[2026-03-10 00:05:38] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5745,"order_number":"AZS-090326-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":890,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 00:05:38"} 
[2026-03-10 00:05:38] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5745,"order_number":"AZS-090326-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":890,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 00:05:38"} 
[2026-03-10 00:05:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":5745,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27590},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":27591},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-10 00:05:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5745,"items_count":3} 
[2026-03-10 00:05:38] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[27592,27593,27594],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":49,"quantity":1},{"id":null,"menu_item_id":412,"quantity":1}]} 
[2026-03-10 00:05:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5745,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|1|","49|1|","412|1|"],"new_items_map_keys":["411|1|","49|1|","412|1|"]} 
[2026-03-10 00:05:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5745,"order_number":"AZS-090326-024"} 
[2026-03-10 00:05:38] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5745,"order_number":"AZS-090326-024","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":890,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-10 00:05:38","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-10 00:05:38"} 
[2026-03-10 00:05:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5745,"order_number":"AZS-090326-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-10 00:05:38"} 
[2026-03-10 00:05:38] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5745,"order_number":"AZS-090326-024","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"890.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-10 00:05:38","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":890,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"890.00","database_verification_match":true,"timestamp":"2026-03-10 00:05:38"} 
[2026-03-10 00:06:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5738,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":27571},{"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null,"id":27572},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27573},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27574},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27575},{"menu_item_id":412,"quantity":2,"discount_percent":0,"notes":null,"id":27576}],"validated_items":[{"id":27571,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":27572,"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null},{"id":27573,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27574,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27575,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":27576,"menu_item_id":412,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-10 00:06:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5738,"items_count":6} 
[2026-03-10 00:06:05] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27571,"menu_item_id":106,"quantity":1},{"id":27572,"menu_item_id":48,"quantity":2},{"id":27573,"menu_item_id":61,"quantity":1},{"id":27574,"menu_item_id":56,"quantity":1},{"id":27575,"menu_item_id":5,"quantity":1},{"id":27576,"menu_item_id":412,"quantity":2}]} 
[2026-03-10 00:06:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5738,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["106|1|","48|2|","61|1|","56|1|","5|1|","412|3|"],"new_items_map_keys":["106|1|","48|2|","61|1|","56|1|","5|1|","412|2|"]} 
[2026-03-10 00:06:05] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5738,"order_number":"AZS-090326-023"} 
[2026-03-10 00:06:05] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-023","replaced_order_id":5738} 
[2026-03-10 00:06:05] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5746,"items_count":6,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":48,"quantity":2,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":412,"quantity":2,"price":"220.00"}]} 
[2026-03-10 00:06:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5746,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5746}} 
[2026-03-10 00:06:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5746,"item_index":0,"menu_item_id":106} 
[2026-03-10 00:06:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5746,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5746}} 
[2026-03-10 00:06:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5746,"item_index":1,"menu_item_id":48} 
[2026-03-10 00:06:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5746,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5746}} 
[2026-03-10 00:06:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5746,"item_index":2,"menu_item_id":61} 
[2026-03-10 00:06:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5746,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5746}} 
[2026-03-10 00:06:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5746,"item_index":3,"menu_item_id":56} 
[2026-03-10 00:06:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5746,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5746}} 
[2026-03-10 00:06:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5746,"item_index":4,"menu_item_id":5} 
[2026-03-10 00:06:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5746,"item_index":5,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":2,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":440.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5746}} 
[2026-03-10 00:06:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5746,"item_index":5,"menu_item_id":412} 
[2026-03-10 00:06:05] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5738,"new_order_id":5746,"order_number":"AZS-090326-023"} 
[2026-03-10 00:06:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5746,"item_index":0,"item_id":27571} 
[2026-03-10 00:06:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5746,"item_index":1,"item_id":27572} 
[2026-03-10 00:06:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5746,"item_index":2,"item_id":27573} 
[2026-03-10 00:06:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5746,"item_index":3,"item_id":27574} 
[2026-03-10 00:06:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5746,"item_index":4,"item_id":27575} 
[2026-03-10 00:06:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5746,"item_index":5,"item_id":27576} 
[2026-03-10 00:06:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5746,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":27571},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":27572},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27573},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27574},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27575},{"menu_item_id":412,"quantity":2,"price":220,"discount_percent":0,"notes":null,"id":27576}],"validated_items":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":2,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-10 00:06:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5746,"items_count":6} 
[2026-03-10 00:06:28] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27595,27596,27597,27598,27599,27600],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":48,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":412,"quantity":2}]} 
[2026-03-10 00:06:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5746,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["106|1|","48|2|","61|1|","56|1|","5|1|","412|2|"],"new_items_map_keys":["106|1|","48|2|","61|1|","56|1|","5|1|","412|2|"]} 
[2026-03-10 00:06:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5746,"order_number":"AZS-090326-023"} 
[2026-03-10 00:06:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5746,"order_number":"AZS-090326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 00:06:28"} 
[2026-03-10 00:07:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5746,"item_index":0,"item_id":27571} 
[2026-03-10 00:07:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5746,"item_index":1,"item_id":27572} 
[2026-03-10 00:07:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5746,"item_index":2,"item_id":27573} 
[2026-03-10 00:07:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5746,"item_index":3,"item_id":27574} 
[2026-03-10 00:07:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5746,"item_index":4,"item_id":27575} 
[2026-03-10 00:07:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5746,"item_index":5,"item_id":27576} 
[2026-03-10 00:07:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":6,"order_id":5746,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":27571},{"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null,"id":27572},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27573},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27574},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27575},{"menu_item_id":412,"quantity":3,"discount_percent":0,"notes":null,"id":27576},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-10 00:07:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5746,"items_count":7} 
[2026-03-10 00:07:22] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":6,"items_to_remove":[27595,27596,27597,27598,27599,27600],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":48,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":412,"quantity":3},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-10 00:07:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5746,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["106|1|","48|2|","61|1|","56|1|","5|1|","412|2|"],"new_items_map_keys":["106|1|","48|2|","61|1|","56|1|","5|1|","412|3|","2|2|"]} 
[2026-03-10 00:07:22] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5746,"order_number":"AZS-090326-023"} 
[2026-03-10 00:07:22] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-023","replaced_order_id":5746} 
[2026-03-10 00:07:22] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5747,"items_count":7,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":48,"quantity":2,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":412,"quantity":3,"price":"220.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-10 00:07:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5747,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5747}} 
[2026-03-10 00:07:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5747,"item_index":0,"menu_item_id":106} 
[2026-03-10 00:07:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5747,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5747}} 
[2026-03-10 00:07:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5747,"item_index":1,"menu_item_id":48} 
[2026-03-10 00:07:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5747,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5747}} 
[2026-03-10 00:07:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5747,"item_index":2,"menu_item_id":61} 
[2026-03-10 00:07:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5747,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5747}} 
[2026-03-10 00:07:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5747,"item_index":3,"menu_item_id":56} 
[2026-03-10 00:07:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5747,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5747}} 
[2026-03-10 00:07:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5747,"item_index":4,"menu_item_id":5} 
[2026-03-10 00:07:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5747,"item_index":5,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":3,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":660.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5747}} 
[2026-03-10 00:07:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5747,"item_index":5,"menu_item_id":412} 
[2026-03-10 00:07:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5747,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5747}} 
[2026-03-10 00:07:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5747,"item_index":6,"menu_item_id":2} 
[2026-03-10 00:07:22] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5746,"new_order_id":5747,"order_number":"AZS-090326-023"} 
[2026-03-10 00:09:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5747,"item_index":0,"item_id":27571} 
[2026-03-10 00:09:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5747,"item_index":1,"item_id":27572} 
[2026-03-10 00:09:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5747,"item_index":2,"item_id":27573} 
[2026-03-10 00:09:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5747,"item_index":3,"item_id":27574} 
[2026-03-10 00:09:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5747,"item_index":4,"item_id":27575} 
[2026-03-10 00:09:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5747,"item_index":5,"item_id":27576} 
[2026-03-10 00:09:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5747,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":27571},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":27572},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27573},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27574},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27575},{"menu_item_id":412,"quantity":3,"price":220,"discount_percent":0,"notes":null,"id":27576},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":3,"price":220,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-10 00:09:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5747,"items_count":7} 
[2026-03-10 00:09:09] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[27601,27602,27603,27604,27605,27606,27607],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":48,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":412,"quantity":3},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-10 00:09:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5747,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","48|2|","61|1|","56|1|","5|1|","412|3|","2|2|"],"new_items_map_keys":["106|1|","48|2|","61|1|","56|1|","5|1|","412|3|","2|2|"]} 
[2026-03-10 00:09:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5747,"order_number":"AZS-090326-023"} 
[2026-03-10 00:09:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5747,"order_number":"AZS-090326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 00:09:09"} 
[2026-03-10 00:09:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5747,"item_index":0,"item_id":27571} 
[2026-03-10 00:09:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5747,"item_index":1,"item_id":27572} 
[2026-03-10 00:09:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5747,"item_index":2,"item_id":27573} 
[2026-03-10 00:09:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5747,"item_index":3,"item_id":27574} 
[2026-03-10 00:09:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5747,"item_index":4,"item_id":27575} 
[2026-03-10 00:09:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5747,"item_index":5,"item_id":27576} 
[2026-03-10 00:09:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5747,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":27571},{"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null,"id":27572},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27573},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27574},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27575},{"menu_item_id":412,"quantity":3,"discount_percent":0,"notes":null,"id":27576},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 00:09:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5747,"items_count":7} 
[2026-03-10 00:09:31] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[27601,27602,27603,27604,27605,27606,27607],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":48,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":412,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-10 00:09:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5747,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","48|2|","61|1|","56|1|","5|1|","412|3|","2|2|"],"new_items_map_keys":["106|1|","48|2|","61|1|","56|1|","5|1|","412|3|","2|1|"]} 
[2026-03-10 00:09:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5747,"order_number":"AZS-090326-023"} 
[2026-03-10 00:09:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-090326-023","replaced_order_id":5747} 
[2026-03-10 00:09:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5748,"items_count":7,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":48,"quantity":2,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":412,"quantity":3,"price":"220.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-10 00:09:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5748,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5748}} 
[2026-03-10 00:09:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5748,"item_index":0,"menu_item_id":106} 
[2026-03-10 00:09:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5748,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5748}} 
[2026-03-10 00:09:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5748,"item_index":1,"menu_item_id":48} 
[2026-03-10 00:09:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5748,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5748}} 
[2026-03-10 00:09:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5748,"item_index":2,"menu_item_id":61} 
[2026-03-10 00:09:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5748,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5748}} 
[2026-03-10 00:09:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5748,"item_index":3,"menu_item_id":56} 
[2026-03-10 00:09:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5748,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5748}} 
[2026-03-10 00:09:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5748,"item_index":4,"menu_item_id":5} 
[2026-03-10 00:09:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5748,"item_index":5,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":3,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":660.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5748}} 
[2026-03-10 00:09:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5748,"item_index":5,"menu_item_id":412} 
[2026-03-10 00:09:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5748,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5748}} 
[2026-03-10 00:09:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5748,"item_index":6,"menu_item_id":2} 
[2026-03-10 00:09:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5747,"new_order_id":5748,"order_number":"AZS-090326-023"} 
[2026-03-10 00:09:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5748,"item_index":0,"item_id":27571} 
[2026-03-10 00:09:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5748,"item_index":1,"item_id":27572} 
[2026-03-10 00:09:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5748,"item_index":2,"item_id":27573} 
[2026-03-10 00:09:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5748,"item_index":3,"item_id":27574} 
[2026-03-10 00:09:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5748,"item_index":4,"item_id":27575} 
[2026-03-10 00:09:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5748,"item_index":5,"item_id":27576} 
[2026-03-10 00:09:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5748,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":27571},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":27572},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27573},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27574},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27575},{"menu_item_id":412,"quantity":3,"price":220,"discount_percent":0,"notes":null,"id":27576},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":3,"price":220,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-10 00:09:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5748,"items_count":7} 
[2026-03-10 00:09:46] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[27608,27609,27610,27611,27612,27613,27614],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":48,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":412,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-10 00:09:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5748,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","48|2|","61|1|","56|1|","5|1|","412|3|","2|1|"],"new_items_map_keys":["106|1|","48|2|","61|1|","56|1|","5|1|","412|3|","2|1|"]} 
[2026-03-10 00:09:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5748,"order_number":"AZS-090326-023"} 
[2026-03-10 00:09:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5748,"order_number":"AZS-090326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 00:09:46"} 
[2026-03-10 00:10:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5748,"item_index":0,"item_id":27571} 
[2026-03-10 00:10:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5748,"item_index":1,"item_id":27572} 
[2026-03-10 00:10:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5748,"item_index":2,"item_id":27573} 
[2026-03-10 00:10:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5748,"item_index":3,"item_id":27574} 
[2026-03-10 00:10:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5748,"item_index":4,"item_id":27575} 
[2026-03-10 00:10:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5748,"item_index":5,"item_id":27576} 
[2026-03-10 00:10:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5748,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":27571},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":27572},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27573},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27574},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27575},{"menu_item_id":412,"quantity":3,"price":220,"discount_percent":0,"notes":null,"id":27576},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":3,"price":220,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-10 00:10:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5748,"items_count":7} 
[2026-03-10 00:10:21] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[27608,27609,27610,27611,27612,27613,27614],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":48,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":412,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-10 00:10:21] local.INFO: PosOrderController::update - Item changes check {"order_id":5748,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","48|2|","61|1|","56|1|","5|1|","412|3|","2|1|"],"new_items_map_keys":["106|1|","48|2|","61|1|","56|1|","5|1|","412|3|","2|1|"]} 
[2026-03-10 00:10:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5748,"order_number":"AZS-090326-023"} 
[2026-03-10 00:10:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5748,"order_number":"AZS-090326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 00:10:21"} 
[2026-03-10 00:11:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T12:11:02.393Z","date_to":"2026-03-10T00:11:02.393Z","per_page":"100"} 
[2026-03-10 00:11:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T12:11:02.416Z","date_to":"2026-03-10T00:11:02.416Z","per_page":"100"} 
[2026-03-10 00:11:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":67,"count":67,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["paid","paid","changed","changed","pending","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":42,"paid_count":24,"unpaid_count":1,"unique_order_numbers":25} 
[2026-03-10 00:11:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":67,"count":67,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["paid","paid","changed","changed","pending","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":42,"paid_count":24,"unpaid_count":1,"unique_order_numbers":25} 
[2026-03-10 00:11:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T12:11:02.393Z","date_to":"2026-03-10T00:11:02.393Z","per_page":"100"} 
[2026-03-10 00:11:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":67,"count":67,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["paid","paid","changed","changed","pending","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":42,"paid_count":24,"unpaid_count":1,"unique_order_numbers":25} 
[2026-03-10 00:15:44] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5748,"order_number":"AZS-090326-023","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6360,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 00:15:44"} 
[2026-03-10 00:15:44] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5748,"order_number":"AZS-090326-023","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6360,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 00:15:44"} 
[2026-03-10 00:15:44] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5748,"order_number":"AZS-090326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6360,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 00:15:44"} 
[2026-03-10 00:15:44] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5748,"order_number":"AZS-090326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6360,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 00:15:44"} 
[2026-03-10 00:15:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5748,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":27608},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":27609},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27610},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27611},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27612},{"menu_item_id":412,"quantity":3,"price":220,"discount_percent":0,"notes":null,"id":27613},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":27614}],"validated_items":[{"id":27608,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":27609,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":27610,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27611,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27612,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27613,"menu_item_id":412,"quantity":3,"price":220,"discount_percent":0,"notes":null},{"id":27614,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-10 00:15:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5748,"items_count":7} 
[2026-03-10 00:15:44] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27608,"menu_item_id":106,"quantity":1},{"id":27609,"menu_item_id":48,"quantity":2},{"id":27610,"menu_item_id":61,"quantity":1},{"id":27611,"menu_item_id":56,"quantity":1},{"id":27612,"menu_item_id":5,"quantity":1},{"id":27613,"menu_item_id":412,"quantity":3},{"id":27614,"menu_item_id":2,"quantity":1}]} 
[2026-03-10 00:15:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5748,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","48|2|","61|1|","56|1|","5|1|","412|3|","2|1|"],"new_items_map_keys":["106|1|","48|2|","61|1|","56|1|","5|1|","412|3|","2|1|"]} 
[2026-03-10 00:15:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5748,"order_number":"AZS-090326-023"} 
[2026-03-10 00:15:44] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5748,"order_number":"AZS-090326-023","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":6360,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-10 00:15:44","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-10 00:15:44"} 
[2026-03-10 00:15:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5748,"order_number":"AZS-090326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-10 00:15:44"} 
[2026-03-10 00:15:44] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5748,"order_number":"AZS-090326-023","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"6360.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-10 00:15:44","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6360,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"6360.00","database_verification_match":true,"timestamp":"2026-03-10 00:15:44"} 
[2026-03-10 00:15:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T12:15:50.976Z","date_to":"2026-03-10T00:15:50.976Z","per_page":"100"} 
[2026-03-10 00:15:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T12:15:50.996Z","date_to":"2026-03-10T00:15:50.996Z","per_page":"100"} 
[2026-03-10 00:15:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":67,"count":67,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":42,"paid_count":25,"unpaid_count":0,"unique_order_numbers":25} 
[2026-03-10 00:15:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":67,"count":67,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":42,"paid_count":25,"unpaid_count":0,"unique_order_numbers":25} 
[2026-03-10 00:15:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T12:15:50.976Z","date_to":"2026-03-10T00:15:50.976Z","per_page":"100"} 
[2026-03-10 00:15:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":67,"count":67,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":42,"paid_count":25,"unpaid_count":0,"unique_order_numbers":25} 
[2026-03-10 05:34:20] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T17:34:29.947Z","date_to":"2026-03-10T05:34:29.947Z","per_page":"100"} 
[2026-03-10 05:34:20] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T05:34:31.206Z","date_to":"2026-03-10T05:34:31.206Z","per_page":"100"} 
[2026-03-10 05:34:20] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T17:34:29.952Z","date_to":"2026-03-10T05:34:29.952Z","per_page":"100"} 
[2026-03-10 05:34:20] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":22,"paid_count":10,"unpaid_count":0,"unique_order_numbers":10} 
[2026-03-10 05:34:20] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":67,"count":67,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":42,"paid_count":25,"unpaid_count":0,"unique_order_numbers":25} 
[2026-03-10 05:34:20] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":22,"paid_count":10,"unpaid_count":0,"unique_order_numbers":10} 
[2026-03-10 05:34:28] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T17:34:29.947Z","date_to":"2026-03-10T05:34:29.947Z","per_page":"100"} 
[2026-03-10 05:34:28] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":22,"paid_count":10,"unpaid_count":0,"unique_order_numbers":10} 
[2026-03-10 05:37:38] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5726,"new_order_id":5739,"order_number":"AZS-090326-020","route":"api/orders/5726"} 
[2026-03-10 05:37:59] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5726,"new_order_id":5739,"order_number":"AZS-090326-020","route":"api/orders/5726"} 
[2026-03-10 05:38:01] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5726,"new_order_id":5739,"order_number":"AZS-090326-020","route":"api/orders/5726"} 
[2026-03-10 05:39:49] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5717,"new_order_id":5721,"order_number":"AZS-090326-016","route":"api/orders/5717"} 
[2026-03-10 05:39:50] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5717,"new_order_id":5721,"order_number":"AZS-090326-016","route":"api/orders/5717"} 
[2026-03-10 05:39:58] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5718,"new_order_id":5721,"order_number":"AZS-090326-016","route":"api/orders/5718"} 
[2026-03-10 05:40:33] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5719,"new_order_id":5721,"order_number":"AZS-090326-016","route":"api/orders/5719"} 
[2026-03-10 05:41:09] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5717,"new_order_id":5721,"order_number":"AZS-090326-016","route":"api/orders/5717"} 
[2026-03-10 05:41:26] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5717,"new_order_id":5721,"order_number":"AZS-090326-016","route":"api/orders/5717"} 
[2026-03-10 05:41:44] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5717,"new_order_id":5721,"order_number":"AZS-090326-016","route":"api/orders/5717"} 
[2026-03-10 05:42:08] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5719,"new_order_id":5721,"order_number":"AZS-090326-016","route":"api/orders/5719"} 
[2026-03-10 05:43:10] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5720,"new_order_id":5724,"order_number":"AZS-090326-017","route":"api/orders/5720"} 
[2026-03-10 05:43:41] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5720,"new_order_id":5724,"order_number":"AZS-090326-017","route":"api/orders/5720"} 
[2026-03-10 05:43:53] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5722,"new_order_id":5724,"order_number":"AZS-090326-017","route":"api/orders/5722"} 
[2026-03-10 05:46:04] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5746,"new_order_id":5748,"order_number":"AZS-090326-023","route":"api/orders/5746"} 
[2026-03-10 05:49:12] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T19:00:00.000Z","date_to":"2026-03-10T05:34:31.206Z","per_page":"100"} 
[2026-03-10 05:49:12] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":214,"count":100,"current_page":1,"last_page":3,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-080326-023","AZS-080326-022","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid"],"deleted_count":62,"paid_count":38,"unpaid_count":0,"unique_order_numbers":38} 
[2026-03-10 05:49:19] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T19:00:00.000Z","date_to":"2026-03-10T05:34:31.206Z","per_page":"100"} 
[2026-03-10 05:49:19] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":214,"count":100,"current_page":1,"last_page":3,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-080326-023","AZS-080326-022","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid"],"deleted_count":62,"paid_count":38,"unpaid_count":0,"unique_order_numbers":38} 
[2026-03-10 05:52:51] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-06T19:00:00.000Z","date_to":"2026-03-10T05:34:31.206Z","per_page":"100"} 
[2026-03-10 05:52:51] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":214,"count":100,"current_page":1,"last_page":3,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-080326-023","AZS-080326-022","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid"],"deleted_count":62,"paid_count":38,"unpaid_count":0,"unique_order_numbers":38} 
[2026-03-10 06:22:34] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T18:22:32.094Z","date_to":"2026-03-10T06:22:32.094Z","per_page":"100"} 
[2026-03-10 06:22:34] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed"],"deleted_count":19,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-10 06:22:34] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T18:22:32.010Z","date_to":"2026-03-10T06:22:32.010Z","per_page":"100"} 
[2026-03-10 06:22:34] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed"],"deleted_count":19,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-10 06:22:44] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T18:22:32.010Z","date_to":"2026-03-10T06:22:32.010Z","per_page":"100"} 
[2026-03-10 06:22:44] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed"],"deleted_count":19,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-10 06:22:46] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T19:00:00.000Z","date_to":"2026-03-09T18:59:59.999Z","per_page":"100"} 
[2026-03-10 06:22:46] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":66,"count":66,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-080326-023","AZS-080326-022","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015"],"order_statuses":["paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":41,"paid_count":25,"unpaid_count":0,"unique_order_numbers":25} 
[2026-03-10 06:23:17] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T19:00:00.000Z","date_to":"2026-03-09T18:59:59.999Z","per_page":"100"} 
[2026-03-10 06:23:17] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":66,"count":66,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-080326-023","AZS-080326-022","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015"],"order_statuses":["paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":41,"paid_count":25,"unpaid_count":0,"unique_order_numbers":25} 
[2026-03-10 06:23:27] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-08T19:00:00.000Z","date_to":"2026-03-09T18:59:59.999Z","per_page":"100"} 
[2026-03-10 06:23:27] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":66,"count":66,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-080326-023","AZS-080326-022","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015"],"order_statuses":["paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":41,"paid_count":25,"unpaid_count":0,"unique_order_numbers":25} 
[2026-03-10 06:24:06] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T18:24:04.471Z","date_to":"2026-03-10T06:24:04.471Z","per_page":"100"} 
[2026-03-10 06:24:06] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed"],"deleted_count":19,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-10 06:24:06] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T18:24:04.492Z","date_to":"2026-03-10T06:24:04.492Z","per_page":"100"} 
[2026-03-10 06:24:06] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed"],"deleted_count":19,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-10 06:24:06] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T18:24:04.471Z","date_to":"2026-03-10T06:24:04.471Z","per_page":"100"} 
[2026-03-10 06:24:06] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed"],"deleted_count":19,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-10 06:24:08] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T06:24:06.415Z","date_to":"2026-03-10T06:24:06.415Z","per_page":"100"} 
[2026-03-10 06:24:08] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":67,"count":67,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":42,"paid_count":25,"unpaid_count":0,"unique_order_numbers":25} 
[2026-03-10 06:26:23] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5747,"new_order_id":5748,"order_number":"AZS-090326-023","route":"api/orders/5747"} 
[2026-03-10 06:26:48] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5747,"new_order_id":5748,"order_number":"AZS-090326-023","route":"api/orders/5747"} 
[2026-03-10 06:27:06] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5746,"new_order_id":5748,"order_number":"AZS-090326-023","route":"api/orders/5746"} 
[2026-03-10 06:27:33] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5747,"new_order_id":5748,"order_number":"AZS-090326-023","route":"api/orders/5747"} 
[2026-03-10 06:28:14] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5746,"new_order_id":5748,"order_number":"AZS-090326-023","route":"api/orders/5746"} 
[2026-03-10 06:28:23] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5747,"new_order_id":5748,"order_number":"AZS-090326-023","route":"api/orders/5747"} 
[2026-03-10 06:28:48] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5738,"new_order_id":5748,"order_number":"AZS-090326-023","route":"api/orders/5738"} 
[2026-03-10 06:28:56] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5737,"new_order_id":5748,"order_number":"AZS-090326-023","route":"api/orders/5737"} 
[2026-03-10 06:29:39] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5737,"new_order_id":5748,"order_number":"AZS-090326-023","route":"api/orders/5737"} 
[2026-03-10 06:29:47] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5738,"new_order_id":5748,"order_number":"AZS-090326-023","route":"api/orders/5738"} 
[2026-03-10 06:29:58] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5746,"new_order_id":5748,"order_number":"AZS-090326-023","route":"api/orders/5746"} 
[2026-03-10 06:30:05] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5747,"new_order_id":5748,"order_number":"AZS-090326-023","route":"api/orders/5747"} 
[2026-03-10 06:31:55] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5737,"new_order_id":5748,"order_number":"AZS-090326-023","route":"api/orders/5737"} 
[2026-03-10 06:32:42] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5747,"new_order_id":5748,"order_number":"AZS-090326-023","route":"api/orders/5747"} 
[2026-03-10 06:33:38] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5737,"new_order_id":5748,"order_number":"AZS-090326-023","route":"api/orders/5737"} 
[2026-03-10 06:34:25] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T18:34:23.843Z","date_to":"2026-03-10T06:34:23.843Z","per_page":"100"} 
[2026-03-10 06:34:25] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T18:34:23.772Z","date_to":"2026-03-10T06:34:23.772Z","per_page":"100"} 
[2026-03-10 06:34:25] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed"],"deleted_count":19,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-10 06:34:25] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed"],"deleted_count":19,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-10 06:34:27] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T18:34:23.772Z","date_to":"2026-03-10T06:34:23.772Z","per_page":"100"} 
[2026-03-10 06:34:27] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed"],"deleted_count":19,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-10 06:46:22] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T18:46:20.673Z","date_to":"2026-03-10T06:46:20.673Z","per_page":"100"} 
[2026-03-10 06:46:22] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed"],"deleted_count":19,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-10 06:46:22] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T18:46:20.719Z","date_to":"2026-03-10T06:46:20.719Z","per_page":"100"} 
[2026-03-10 06:46:22] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed"],"deleted_count":19,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-10 06:46:23] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T18:46:20.673Z","date_to":"2026-03-10T06:46:20.673Z","per_page":"100"} 
[2026-03-10 06:46:23] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed"],"deleted_count":19,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-10 06:48:45] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T18:48:43.645Z","date_to":"2026-03-10T06:48:43.645Z","per_page":"100"} 
[2026-03-10 06:48:45] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed"],"deleted_count":19,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-10 06:48:45] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T18:48:43.724Z","date_to":"2026-03-10T06:48:43.724Z","per_page":"100"} 
[2026-03-10 06:48:45] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed"],"deleted_count":19,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-10 06:48:46] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T18:48:43.645Z","date_to":"2026-03-10T06:48:43.645Z","per_page":"100"} 
[2026-03-10 06:48:46] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed"],"deleted_count":19,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-10 06:49:11] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5725,"new_order_id":5731,"order_number":"AZS-090326-019","route":"api/orders/5725"} 
[2026-03-10 06:49:37] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5728,"new_order_id":5731,"order_number":"AZS-090326-019","route":"api/orders/5728"} 
[2026-03-10 06:50:13] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5725,"new_order_id":5731,"order_number":"AZS-090326-019","route":"api/orders/5725"} 
[2026-03-10 06:51:30] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5723,"new_order_id":5730,"order_number":"AZS-090326-018","route":"api/orders/5723"} 
[2026-03-10 06:52:58] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5727,"new_order_id":5730,"order_number":"AZS-090326-018","route":"api/orders/5727"} 
[2026-03-10 06:53:13] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T18:53:11.305Z","date_to":"2026-03-10T06:53:11.305Z","per_page":"100"} 
[2026-03-10 06:53:13] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed"],"deleted_count":19,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-10 06:53:13] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T18:53:11.348Z","date_to":"2026-03-10T06:53:11.348Z","per_page":"100"} 
[2026-03-10 06:53:13] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed"],"deleted_count":19,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-10 06:53:14] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T18:53:11.305Z","date_to":"2026-03-10T06:53:11.305Z","per_page":"100"} 
[2026-03-10 06:53:14] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed"],"deleted_count":19,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-10 06:53:47] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T18:53:40.474Z","date_to":"2026-03-10T06:53:40.474Z","per_page":"100"} 
[2026-03-10 06:53:47] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed"],"deleted_count":19,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-10 06:53:53] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T18:53:40.519Z","date_to":"2026-03-10T06:53:40.519Z","per_page":"100"} 
[2026-03-10 06:53:53] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed"],"deleted_count":19,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-10 06:54:03] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T18:53:40.474Z","date_to":"2026-03-10T06:53:40.474Z","per_page":"100"} 
[2026-03-10 06:54:03] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed"],"deleted_count":19,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-10 06:54:10] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-07T19:00:00.000Z","date_to":"2026-03-10T06:53:40.519Z","per_page":"100"} 
[2026-03-10 06:54:10] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":145,"count":100,"current_page":1,"last_page":2,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-080326-023","AZS-080326-022","AZS-080326-022","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-021","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-020","AZS-080326-019","AZS-080326-019","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-018","AZS-080326-017","AZS-080326-017","AZS-080326-017","AZS-080326-016","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-015","AZS-080326-014","AZS-080326-013","AZS-080326-012","AZS-080326-012","AZS-080326-012","AZS-080326-011"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","changed","paid","changed","changed","changed","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed","paid","paid","paid","changed","changed","paid"],"deleted_count":62,"paid_count":38,"unpaid_count":0,"unique_order_numbers":38} 
[2026-03-10 06:54:30] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5737,"new_order_id":5748,"order_number":"AZS-090326-023","route":"api/orders/5737"} 
[2026-03-10 06:56:46] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5737,"new_order_id":5748,"order_number":"AZS-090326-023","route":"api/orders/5737"} 
[2026-03-10 06:57:27] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5737,"new_order_id":5748,"order_number":"AZS-090326-023","route":"api/orders/5737"} 
[2026-03-10 06:58:00] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5747,"new_order_id":5748,"order_number":"AZS-090326-023","route":"api/orders/5747"} 
[2026-03-10 06:58:12] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5747,"new_order_id":5748,"order_number":"AZS-090326-023","route":"api/orders/5747"} 
[2026-03-10 06:58:26] local.INFO: RouteServiceProvider: Redirecting GET request to active order with same order_number {"old_order_id":5737,"new_order_id":5748,"order_number":"AZS-090326-023","route":"api/orders/5737"} 
[2026-03-10 07:25:34] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T19:25:49.185Z","date_to":"2026-03-10T07:25:49.185Z","per_page":"100"} 
[2026-03-10 07:25:34] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":17,"paid_count":8,"unpaid_count":0,"unique_order_numbers":8} 
[2026-03-10 07:25:34] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T19:25:49.197Z","date_to":"2026-03-10T07:25:49.197Z","per_page":"100"} 
[2026-03-10 07:25:34] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":17,"paid_count":8,"unpaid_count":0,"unique_order_numbers":8} 
[2026-03-10 07:25:35] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T19:25:49.185Z","date_to":"2026-03-10T07:25:49.185Z","per_page":"100"} 
[2026-03-10 07:25:35] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":17,"paid_count":8,"unpaid_count":0,"unique_order_numbers":8} 
[2026-03-10 07:47:09] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T19:47:24.162Z","date_to":"2026-03-10T07:47:24.162Z","per_page":"100"} 
[2026-03-10 07:47:09] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":17,"paid_count":8,"unpaid_count":0,"unique_order_numbers":8} 
[2026-03-10 07:47:09] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T19:47:24.179Z","date_to":"2026-03-10T07:47:24.179Z","per_page":"100"} 
[2026-03-10 07:47:09] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":17,"paid_count":8,"unpaid_count":0,"unique_order_numbers":8} 
[2026-03-10 07:47:09] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T19:47:24.162Z","date_to":"2026-03-10T07:47:24.162Z","per_page":"100"} 
[2026-03-10 07:47:09] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed"],"deleted_count":17,"paid_count":8,"unpaid_count":0,"unique_order_numbers":8} 
[2026-03-10 08:01:28] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T08:01:41.299Z","date_to":"2026-03-10T08:01:41.299Z","per_page":"100"} 
[2026-03-10 08:01:28] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":67,"count":67,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":42,"paid_count":25,"unpaid_count":0,"unique_order_numbers":25} 
[2026-03-10 08:01:37] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T08:01:41.299Z","date_to":"2026-03-10T08:01:41.299Z","per_page":"100"} 
[2026-03-10 08:01:37] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":44,"count":44,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001"],"order_statuses":["paid","paid","changed","paid","changed","paid","changed","paid","changed","paid","changed","paid","changed","paid","changed","paid","changed","paid","changed","paid","changed","paid","changed","paid","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","paid","changed","paid","paid","changed"],"deleted_count":19,"paid_count":25,"unpaid_count":0,"unique_order_numbers":25} 
[2026-03-10 08:01:50] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T20:02:04.804Z","date_to":"2026-03-10T08:02:04.804Z","per_page":"100"} 
[2026-03-10 08:01:50] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed"],"deleted_count":14,"paid_count":7,"unpaid_count":0,"unique_order_numbers":7} 
[2026-03-10 08:01:50] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T20:02:04.831Z","date_to":"2026-03-10T08:02:04.831Z","per_page":"100"} 
[2026-03-10 08:01:50] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed"],"deleted_count":14,"paid_count":7,"unpaid_count":0,"unique_order_numbers":7} 
[2026-03-10 08:01:52] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T20:02:04.804Z","date_to":"2026-03-10T08:02:04.804Z","per_page":"100"} 
[2026-03-10 08:01:52] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed"],"deleted_count":14,"paid_count":7,"unpaid_count":0,"unique_order_numbers":7} 
[2026-03-10 08:02:00] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T08:02:15.203Z","date_to":"2026-03-10T08:02:15.203Z","per_page":"100"} 
[2026-03-10 08:02:00] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":67,"count":67,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-024","AZS-090326-024","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-023","AZS-090326-022","AZS-090326-022","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-021","AZS-090326-020","AZS-090326-020","AZS-090326-019","AZS-090326-019","AZS-090326-019","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-018","AZS-090326-017","AZS-090326-017","AZS-090326-017","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-016","AZS-090326-015","AZS-090326-015","AZS-090326-014","AZS-090326-014","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-011","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-005","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-004","AZS-090326-003","AZS-090326-003","AZS-090326-003","AZS-090326-002","AZS-090326-001","AZS-090326-001","AZS-090326-001","AZS-090326-001"],"order_statuses":["paid","paid","changed","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","changed","changed","paid","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","changed","paid","changed","changed","changed","paid","changed","paid","changed","paid","changed","changed","changed","changed","paid","paid","changed","changed","paid","paid","changed","paid","paid","changed","paid","paid","changed","paid","changed","changed","changed","changed","paid","changed","changed","paid","paid","changed","changed","changed"],"deleted_count":42,"paid_count":25,"unpaid_count":0,"unique_order_numbers":25} 
[2026-03-10 12:16:55] local.INFO: Login attempt {"email":"azancashier@pos.com","ip":"89.39.107.193"} 
[2026-03-10 12:17:02] local.INFO: Login attempt {"email":"azancashier@pos.com","ip":"89.39.107.193"} 
[2026-03-10 12:17:11] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"89.39.107.193"} 
[2026-03-10 12:17:20] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T00:27:10.880Z","date_to":"2026-03-10T12:27:10.880Z","per_page":"100"} 
[2026-03-10 12:17:20] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-10 12:17:20] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T00:27:10.880Z","date_to":"2026-03-10T12:27:10.880Z","per_page":"100"} 
[2026-03-10 12:17:20] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-10 12:17:20] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T00:27:10.932Z","date_to":"2026-03-10T12:27:10.932Z","per_page":"100"} 
[2026-03-10 12:17:20] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-10 12:17:41] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-09T12:27:31.470Z","date_to":"2026-03-10T12:27:31.470Z","per_page":"100"} 
[2026-03-10 12:17:41] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-090326-025","AZS-090326-024","AZS-090326-023","AZS-090326-022","AZS-090326-021","AZS-090326-020","AZS-090326-019","AZS-090326-018","AZS-090326-017","AZS-090326-016","AZS-090326-015","AZS-090326-014","AZS-090326-013","AZS-090326-012","AZS-090326-011","AZS-090326-010","AZS-090326-009","AZS-090326-008","AZS-090326-007","AZS-090326-006","AZS-090326-005","AZS-090326-004","AZS-090326-003","AZS-090326-002","AZS-090326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":0,"unique_order_numbers":25} 
[2026-03-10 12:31:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5749,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27615},{"menu_item_id":64,"quantity":2,"price":999,"discount_percent":0,"notes":null,"id":27616},{"menu_item_id":286,"quantity":8,"price":15,"discount_percent":0,"notes":null,"id":27617}],"validated_items":[{"id":27615,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27616,"menu_item_id":64,"quantity":2,"price":999,"discount_percent":0,"notes":null},{"id":27617,"menu_item_id":286,"quantity":8,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-10 12:31:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5749,"items_count":3} 
[2026-03-10 12:31:12] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27615,"menu_item_id":61,"quantity":1},{"id":27616,"menu_item_id":64,"quantity":2},{"id":27617,"menu_item_id":286,"quantity":8}]} 
[2026-03-10 12:31:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5749,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["61|1|","64|2|","286|8|"],"new_items_map_keys":["61|1|","64|2|","286|8|"]} 
[2026-03-10 12:31:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5749,"order_number":"AZS-100326-001"} 
[2026-03-10 12:31:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5749,"order_number":"AZS-100326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-10 12:31:12"} 
[2026-03-10 12:32:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5749,"order_number":"AZS-100326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2317,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 12:32:27"} 
[2026-03-10 12:32:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5749,"order_number":"AZS-100326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2317,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 12:32:27"} 
[2026-03-10 12:32:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5749,"order_number":"AZS-100326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2317,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 12:32:27"} 
[2026-03-10 12:32:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5749,"order_number":"AZS-100326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2317,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 12:32:27"} 
[2026-03-10 12:32:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5749,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27615},{"menu_item_id":64,"quantity":2,"price":999,"discount_percent":0,"notes":null,"id":27616},{"menu_item_id":286,"quantity":8,"price":15,"discount_percent":0,"notes":null,"id":27617}],"validated_items":[{"id":27615,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27616,"menu_item_id":64,"quantity":2,"price":999,"discount_percent":0,"notes":null},{"id":27617,"menu_item_id":286,"quantity":8,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-10 12:32:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5749,"items_count":3} 
[2026-03-10 12:32:27] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27615,"menu_item_id":61,"quantity":1},{"id":27616,"menu_item_id":64,"quantity":2},{"id":27617,"menu_item_id":286,"quantity":8}]} 
[2026-03-10 12:32:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5749,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["61|1|","64|2|","286|8|"],"new_items_map_keys":["61|1|","64|2|","286|8|"]} 
[2026-03-10 12:32:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5749,"order_number":"AZS-100326-001"} 
[2026-03-10 12:32:27] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5749,"order_number":"AZS-100326-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2317,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-10 12:32:27","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-10 12:32:27"} 
[2026-03-10 12:32:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5749,"order_number":"AZS-100326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-10 12:32:27"} 
[2026-03-10 12:32:27] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5749,"order_number":"AZS-100326-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2317.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-10 12:32:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2317,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2317.00","database_verification_match":true,"timestamp":"2026-03-10 12:32:27"} 
[2026-03-10 12:34:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5750,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":27618},{"menu_item_id":400,"quantity":150,"discount_percent":0,"notes":null}],"validated_items":[{"id":27618,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":400,"quantity":150,"discount_percent":0,"notes":null}]} 
[2026-03-10 12:34:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5750,"items_count":2} 
[2026-03-10 12:34:17] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27618,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":400,"quantity":150}]} 
[2026-03-10 12:34:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5750,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","400|150|"]} 
[2026-03-10 12:34:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5750,"order_number":"AZS-100326-002"} 
[2026-03-10 12:34:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-002","replaced_order_id":5750} 
[2026-03-10 12:34:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5751,"items_count":2,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":400,"quantity":150,"price":"1.00"}]} 
[2026-03-10 12:34:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5751,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5751}} 
[2026-03-10 12:34:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5751,"item_index":0,"menu_item_id":417} 
[2026-03-10 12:34:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5751,"item_index":1,"item_data":{"menu_item_id":400,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL ITEMS","quantity":150,"price":"1.00","discount_percent":0.0,"discount_amount":0.0,"total":150.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5751}} 
[2026-03-10 12:34:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5751,"item_index":1,"menu_item_id":400} 
[2026-03-10 12:34:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5750,"new_order_id":5751,"order_number":"AZS-100326-002"} 
[2026-03-10 12:58:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5756,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":27627},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":27628},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":27629},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27630},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27631},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27632},{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27627,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":27628,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":27629,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":27630,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27631,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27632,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 12:58:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5756,"items_count":7} 
[2026-03-10 12:58:45] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27627,"menu_item_id":113,"quantity":1},{"id":27628,"menu_item_id":98,"quantity":1},{"id":27629,"menu_item_id":396,"quantity":3},{"id":27630,"menu_item_id":61,"quantity":1},{"id":27631,"menu_item_id":56,"quantity":1},{"id":27632,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":417,"quantity":1}]} 
[2026-03-10 12:58:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5756,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["113|1|","98|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["113|1|","98|1|","396|3|","61|1|","56|1|","5|1|","417|1|"]} 
[2026-03-10 12:58:45] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5756,"order_number":"AZS-100326-007"} 
[2026-03-10 12:58:45] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-007","replaced_order_id":5756} 
[2026-03-10 12:58:45] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5757,"items_count":7,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":417,"quantity":1,"price":"499.00"}]} 
[2026-03-10 12:58:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5757,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5757}} 
[2026-03-10 12:58:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5757,"item_index":0,"menu_item_id":113} 
[2026-03-10 12:58:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5757,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5757}} 
[2026-03-10 12:58:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5757,"item_index":1,"menu_item_id":98} 
[2026-03-10 12:58:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5757,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5757}} 
[2026-03-10 12:58:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5757,"item_index":2,"menu_item_id":396} 
[2026-03-10 12:58:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5757,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5757}} 
[2026-03-10 12:58:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5757,"item_index":3,"menu_item_id":61} 
[2026-03-10 12:58:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5757,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5757}} 
[2026-03-10 12:58:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5757,"item_index":4,"menu_item_id":56} 
[2026-03-10 12:58:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5757,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5757}} 
[2026-03-10 12:58:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5757,"item_index":5,"menu_item_id":5} 
[2026-03-10 12:58:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5757,"item_index":6,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5757}} 
[2026-03-10 12:58:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5757,"item_index":6,"menu_item_id":417} 
[2026-03-10 12:58:45] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5756,"new_order_id":5757,"order_number":"AZS-100326-007"} 
[2026-03-10 13:01:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5752,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":3,"discount_percent":0,"notes":null,"id":27621},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27621,"menu_item_id":417,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 13:01:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5752,"items_count":8} 
[2026-03-10 13:01:59] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27621,"menu_item_id":417,"quantity":3},{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":55,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-10 13:01:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5752,"has_item_changes":true,"old_items_count":1,"new_items_count":8,"old_items_map_keys":["417|3|"],"new_items_map_keys":["417|3|","98|1|","62|1|","50|2|","55|2|","61|1|","56|1|","5|1|"]} 
[2026-03-10 13:01:59] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5752,"order_number":"AZS-100326-003"} 
[2026-03-10 13:01:59] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-003","replaced_order_id":5752} 
[2026-03-10 13:01:59] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5758,"items_count":8,"items":[{"menu_item_id":417,"quantity":3,"price":"499.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-10 13:01:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5758,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":3,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":1497.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5758}} 
[2026-03-10 13:01:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5758,"item_index":0,"menu_item_id":417} 
[2026-03-10 13:01:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5758,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5758}} 
[2026-03-10 13:01:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5758,"item_index":1,"menu_item_id":98} 
[2026-03-10 13:01:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5758,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5758}} 
[2026-03-10 13:01:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5758,"item_index":2,"menu_item_id":62} 
[2026-03-10 13:01:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5758,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5758}} 
[2026-03-10 13:01:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5758,"item_index":3,"menu_item_id":50} 
[2026-03-10 13:01:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5758,"item_index":4,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5758}} 
[2026-03-10 13:01:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5758,"item_index":4,"menu_item_id":55} 
[2026-03-10 13:01:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5758,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5758}} 
[2026-03-10 13:01:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5758,"item_index":5,"menu_item_id":61} 
[2026-03-10 13:01:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5758,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5758}} 
[2026-03-10 13:01:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5758,"item_index":6,"menu_item_id":56} 
[2026-03-10 13:01:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5758,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5758}} 
[2026-03-10 13:01:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5758,"item_index":7,"menu_item_id":5} 
[2026-03-10 13:01:59] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5752,"new_order_id":5758,"order_number":"AZS-100326-003"} 
[2026-03-10 13:07:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5754,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":27625},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":27625,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-10 13:07:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5754,"items_count":3} 
[2026-03-10 13:07:13] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27625,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2}]} 
[2026-03-10 13:07:13] local.INFO: PosOrderController::update - Item changes check {"order_id":5754,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","98|1|","396|2|"]} 
[2026-03-10 13:07:13] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5754,"order_number":"AZS-100326-005"} 
[2026-03-10 13:07:13] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-005","replaced_order_id":5754} 
[2026-03-10 13:07:13] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5759,"items_count":3,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"}]} 
[2026-03-10 13:07:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5759,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5759}} 
[2026-03-10 13:07:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5759,"item_index":0,"menu_item_id":417} 
[2026-03-10 13:07:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5759,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5759}} 
[2026-03-10 13:07:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5759,"item_index":1,"menu_item_id":98} 
[2026-03-10 13:07:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5759,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5759}} 
[2026-03-10 13:07:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5759,"item_index":2,"menu_item_id":396} 
[2026-03-10 13:07:13] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5754,"new_order_id":5759,"order_number":"AZS-100326-005"} 
[2026-03-10 13:25:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T01:25:38.749Z","date_to":"2026-03-10T13:25:38.749Z","per_page":"100"} 
[2026-03-10 13:25:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":6,"unique_order_numbers":7} 
[2026-03-10 13:25:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T01:25:38.767Z","date_to":"2026-03-10T13:25:38.767Z","per_page":"100"} 
[2026-03-10 13:25:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":6,"unique_order_numbers":7} 
[2026-03-10 13:25:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T01:25:38.749Z","date_to":"2026-03-10T13:25:38.749Z","per_page":"100"} 
[2026-03-10 13:25:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":6,"unique_order_numbers":7} 
[2026-03-10 13:25:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T01:25:41.337Z","date_to":"2026-03-10T13:25:41.337Z","per_page":"100"} 
[2026-03-10 13:25:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":6,"unique_order_numbers":7} 
[2026-03-10 13:25:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T01:25:41.353Z","date_to":"2026-03-10T13:25:41.353Z","per_page":"100"} 
[2026-03-10 13:25:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":6,"unique_order_numbers":7} 
[2026-03-10 13:25:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T01:25:41.337Z","date_to":"2026-03-10T13:25:41.337Z","per_page":"100"} 
[2026-03-10 13:25:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":6,"unique_order_numbers":7} 
[2026-03-10 13:25:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T01:25:45.202Z","date_to":"2026-03-10T13:25:45.202Z","per_page":"100"} 
[2026-03-10 13:25:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":6,"unique_order_numbers":7} 
[2026-03-10 13:25:46] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T01:25:45.185Z","date_to":"2026-03-10T13:25:45.185Z","per_page":"100"} 
[2026-03-10 13:25:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":6,"unique_order_numbers":7} 
[2026-03-10 13:25:46] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T01:25:45.185Z","date_to":"2026-03-10T13:25:45.185Z","per_page":"100"} 
[2026-03-10 13:25:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":6,"unique_order_numbers":7} 
[2026-03-10 13:26:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5753,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":27622},{"menu_item_id":28,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":27623},{"menu_item_id":35,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":27624}],"validated_items":[{"id":27622,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":27623,"menu_item_id":28,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":27624,"menu_item_id":35,"quantity":1,"price":349,"discount_percent":0,"notes":null}]} 
[2026-03-10 13:26:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5753,"items_count":3} 
[2026-03-10 13:26:17] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27622,"menu_item_id":417,"quantity":1},{"id":27623,"menu_item_id":28,"quantity":2},{"id":27624,"menu_item_id":35,"quantity":1}]} 
[2026-03-10 13:26:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5753,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["417|1|","28|2|","35|1|"],"new_items_map_keys":["417|1|","28|2|","35|1|"]} 
[2026-03-10 13:26:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5753,"order_number":"AZS-100326-004"} 
[2026-03-10 13:26:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5753,"order_number":"AZS-100326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 13:26:17"} 
[2026-03-10 13:31:08] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5753,"order_number":"AZS-100326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 13:31:08"} 
[2026-03-10 13:31:08] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5753,"order_number":"AZS-100326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 13:31:08"} 
[2026-03-10 13:31:08] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5753,"order_number":"AZS-100326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 13:31:08"} 
[2026-03-10 13:31:08] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5753,"order_number":"AZS-100326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 13:31:08"} 
[2026-03-10 13:31:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5753,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":27622},{"menu_item_id":28,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":27623},{"menu_item_id":35,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":27624}],"validated_items":[{"id":27622,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":27623,"menu_item_id":28,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":27624,"menu_item_id":35,"quantity":1,"price":349,"discount_percent":0,"notes":null}]} 
[2026-03-10 13:31:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5753,"items_count":3} 
[2026-03-10 13:31:08] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27622,"menu_item_id":417,"quantity":1},{"id":27623,"menu_item_id":28,"quantity":2},{"id":27624,"menu_item_id":35,"quantity":1}]} 
[2026-03-10 13:31:08] local.INFO: PosOrderController::update - Item changes check {"order_id":5753,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["417|1|","28|2|","35|1|"],"new_items_map_keys":["417|1|","28|2|","35|1|"]} 
[2026-03-10 13:31:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5753,"order_number":"AZS-100326-004"} 
[2026-03-10 13:31:08] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5753,"order_number":"AZS-100326-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-10 13:31:08","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-10 13:31:08"} 
[2026-03-10 13:31:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5753,"order_number":"AZS-100326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-10 13:31:08"} 
[2026-03-10 13:31:08] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5753,"order_number":"AZS-100326-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-10 13:31:08","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-10 13:31:08"} 
[2026-03-10 13:32:03] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5755,"order_number":"AZS-100326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 13:32:03"} 
[2026-03-10 13:32:03] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5755,"order_number":"AZS-100326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 13:32:03"} 
[2026-03-10 13:32:03] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5755,"order_number":"AZS-100326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 13:32:03"} 
[2026-03-10 13:32:03] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5755,"order_number":"AZS-100326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 13:32:03"} 
[2026-03-10 13:32:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5755,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":27626}],"validated_items":[{"id":27626,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-10 13:32:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5755,"items_count":1} 
[2026-03-10 13:32:03] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27626,"menu_item_id":417,"quantity":1}]} 
[2026-03-10 13:32:03] local.INFO: PosOrderController::update - Item changes check {"order_id":5755,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-10 13:32:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5755,"order_number":"AZS-100326-006"} 
[2026-03-10 13:32:03] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5755,"order_number":"AZS-100326-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-10 13:32:03","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-10 13:32:03"} 
[2026-03-10 13:32:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5755,"order_number":"AZS-100326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-10 13:32:03"} 
[2026-03-10 13:32:03] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5755,"order_number":"AZS-100326-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-10 13:32:03","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-10 13:32:03"} 
[2026-03-10 13:35:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5751,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":27619},{"menu_item_id":400,"quantity":150,"discount_percent":0,"notes":null,"id":27620},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":27619,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":27620,"menu_item_id":400,"quantity":150,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-10 13:35:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5751,"items_count":4} 
[2026-03-10 13:35:17] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27619,"menu_item_id":417,"quantity":1},{"id":27620,"menu_item_id":400,"quantity":150},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2}]} 
[2026-03-10 13:35:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5751,"has_item_changes":true,"old_items_count":2,"new_items_count":4,"old_items_map_keys":["417|1|","400|150|"],"new_items_map_keys":["417|1|","400|150|","96|1|","396|2|"]} 
[2026-03-10 13:35:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5751,"order_number":"AZS-100326-002"} 
[2026-03-10 13:35:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-002","replaced_order_id":5751} 
[2026-03-10 13:35:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5760,"items_count":4,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":400,"quantity":150,"price":"1.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"}]} 
[2026-03-10 13:35:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5760,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5760}} 
[2026-03-10 13:35:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5760,"item_index":0,"menu_item_id":417} 
[2026-03-10 13:35:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5760,"item_index":1,"item_data":{"menu_item_id":400,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL ITEMS","quantity":150,"price":"1.00","discount_percent":0.0,"discount_amount":0.0,"total":150.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5760}} 
[2026-03-10 13:35:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5760,"item_index":1,"menu_item_id":400} 
[2026-03-10 13:35:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5760,"item_index":2,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5760}} 
[2026-03-10 13:35:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5760,"item_index":2,"menu_item_id":96} 
[2026-03-10 13:35:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5760,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5760}} 
[2026-03-10 13:35:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5760,"item_index":3,"menu_item_id":396} 
[2026-03-10 13:35:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5751,"new_order_id":5760,"order_number":"AZS-100326-002"} 
[2026-03-10 13:37:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T01:37:05.967Z","date_to":"2026-03-10T13:37:05.967Z","per_page":"100"} 
[2026-03-10 13:37:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T01:37:05.954Z","date_to":"2026-03-10T13:37:05.954Z","per_page":"100"} 
[2026-03-10 13:37:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","paid","pending","paid","pending","pending","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":4,"unique_order_numbers":7} 
[2026-03-10 13:37:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","paid","pending","paid","pending","pending","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":4,"unique_order_numbers":7} 
[2026-03-10 13:37:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T01:37:05.954Z","date_to":"2026-03-10T13:37:05.954Z","per_page":"100"} 
[2026-03-10 13:37:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","paid","pending","paid","pending","pending","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":4,"unique_order_numbers":7} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5757,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":27633},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":27634},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":27635},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27636},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27637},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27638},{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":27639},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":27633,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":27634,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":27635,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":27636,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27637,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27638,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":27639,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5757,"items_count":9} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27633,"menu_item_id":113,"quantity":1},{"id":27634,"menu_item_id":98,"quantity":1},{"id":27635,"menu_item_id":396,"quantity":3},{"id":27636,"menu_item_id":61,"quantity":1},{"id":27637,"menu_item_id":56,"quantity":1},{"id":27638,"menu_item_id":5,"quantity":1},{"id":27639,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Item changes check {"order_id":5757,"has_item_changes":true,"old_items_count":7,"new_items_count":9,"old_items_map_keys":["113|1|","98|1|","396|3|","61|1|","56|1|","5|1|","417|1|"],"new_items_map_keys":["113|1|","98|1|","396|3|","61|1|","56|1|","5|1|","417|1|","4|1|","2|2|"]} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5757,"order_number":"AZS-100326-007"} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-007","replaced_order_id":5757} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5761,"items_count":9,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5761,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5761}} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5761,"item_index":0,"menu_item_id":113} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5761,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5761}} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5761,"item_index":1,"menu_item_id":98} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5761,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5761}} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5761,"item_index":2,"menu_item_id":396} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5761,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5761}} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5761,"item_index":3,"menu_item_id":61} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5761,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5761}} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5761,"item_index":4,"menu_item_id":56} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5761,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5761}} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5761,"item_index":5,"menu_item_id":5} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5761,"item_index":6,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5761}} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5761,"item_index":6,"menu_item_id":417} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5761,"item_index":7,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5761}} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5761,"item_index":7,"menu_item_id":4} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5761,"item_index":8,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5761}} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5761,"item_index":8,"menu_item_id":2} 
[2026-03-10 13:40:10] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5757,"new_order_id":5761,"order_number":"AZS-100326-007"} 
[2026-03-10 13:40:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5761,"item_index":0,"item_id":27633} 
[2026-03-10 13:40:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5761,"item_index":1,"item_id":27634} 
[2026-03-10 13:40:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5761,"item_index":2,"item_id":27635} 
[2026-03-10 13:40:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5761,"item_index":3,"item_id":27636} 
[2026-03-10 13:40:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5761,"item_index":4,"item_id":27637} 
[2026-03-10 13:40:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5761,"item_index":5,"item_id":27638} 
[2026-03-10 13:40:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5761,"item_index":6,"item_id":27639} 
[2026-03-10 13:40:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":9,"order_id":5761,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":27633},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":27634},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":27635},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27636},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27637},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":27638},{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":27639},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-10 13:40:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5761,"items_count":8} 
[2026-03-10 13:40:59] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":9,"items_to_remove":[27655,27656,27657,27658,27659,27660,27661,27662,27663],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-10 13:40:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5761,"has_item_changes":true,"old_items_count":9,"new_items_count":8,"old_items_map_keys":["113|1|","98|1|","396|3|","61|1|","56|1|","5|1|","417|1|","4|1|","2|2|"],"new_items_map_keys":["113|1|","98|1|","396|3|","61|1|","56|1|","5|2|","417|1|","2|2|"]} 
[2026-03-10 13:40:59] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5761,"order_number":"AZS-100326-007"} 
[2026-03-10 13:40:59] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-007","replaced_order_id":5761} 
[2026-03-10 13:40:59] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5762,"items_count":8,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-10 13:40:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5762,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5762}} 
[2026-03-10 13:40:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5762,"item_index":0,"menu_item_id":113} 
[2026-03-10 13:40:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5762,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5762}} 
[2026-03-10 13:40:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5762,"item_index":1,"menu_item_id":98} 
[2026-03-10 13:40:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5762,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5762}} 
[2026-03-10 13:40:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5762,"item_index":2,"menu_item_id":396} 
[2026-03-10 13:40:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5762,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5762}} 
[2026-03-10 13:40:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5762,"item_index":3,"menu_item_id":61} 
[2026-03-10 13:40:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5762,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5762}} 
[2026-03-10 13:40:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5762,"item_index":4,"menu_item_id":56} 
[2026-03-10 13:40:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5762,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5762}} 
[2026-03-10 13:40:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5762,"item_index":5,"menu_item_id":5} 
[2026-03-10 13:40:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5762,"item_index":6,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5762}} 
[2026-03-10 13:40:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5762,"item_index":6,"menu_item_id":417} 
[2026-03-10 13:40:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5762,"item_index":7,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5762}} 
[2026-03-10 13:40:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5762,"item_index":7,"menu_item_id":2} 
[2026-03-10 13:40:59] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5761,"new_order_id":5762,"order_number":"AZS-100326-007"} 
[2026-03-10 13:52:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5759,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":27648},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":27649},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":27650},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27648,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":27649,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":27650,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 13:52:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5759,"items_count":5} 
[2026-03-10 13:52:38] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27648,"menu_item_id":417,"quantity":1},{"id":27649,"menu_item_id":98,"quantity":1},{"id":27650,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":13,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-10 13:52:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5759,"has_item_changes":true,"old_items_count":3,"new_items_count":5,"old_items_map_keys":["417|1|","98|1|","396|2|"],"new_items_map_keys":["417|1|","98|1|","396|2|","13|1|","2|1|"]} 
[2026-03-10 13:52:38] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5759,"order_number":"AZS-100326-005"} 
[2026-03-10 13:52:38] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-005","replaced_order_id":5759} 
[2026-03-10 13:52:38] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5764,"items_count":5,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":13,"quantity":1,"price":"249.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-10 13:52:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5764,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5764}} 
[2026-03-10 13:52:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5764,"item_index":0,"menu_item_id":417} 
[2026-03-10 13:52:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5764,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5764}} 
[2026-03-10 13:52:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5764,"item_index":1,"menu_item_id":98} 
[2026-03-10 13:52:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5764,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5764}} 
[2026-03-10 13:52:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5764,"item_index":2,"menu_item_id":396} 
[2026-03-10 13:52:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5764,"item_index":3,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5764}} 
[2026-03-10 13:52:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5764,"item_index":3,"menu_item_id":13} 
[2026-03-10 13:52:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5764,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5764}} 
[2026-03-10 13:52:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5764,"item_index":4,"menu_item_id":2} 
[2026-03-10 13:52:38] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5759,"new_order_id":5764,"order_number":"AZS-100326-005"} 
[2026-03-10 13:53:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":1,"order_id":5762,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":27664},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":27665},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":27666},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27668},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":27669},{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":27670},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null,"id":27671}],"validated_items":[{"id":27664,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":27665,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":27666,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":27668,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27669,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":27670,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":27671,"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-10 13:53:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5762,"items_count":7} 
[2026-03-10 13:53:46] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":1,"items_to_remove":[27667],"items":[{"id":27664,"menu_item_id":113,"quantity":1},{"id":27665,"menu_item_id":98,"quantity":1},{"id":27666,"menu_item_id":396,"quantity":3},{"id":27668,"menu_item_id":56,"quantity":1},{"id":27669,"menu_item_id":5,"quantity":2},{"id":27670,"menu_item_id":417,"quantity":1},{"id":27671,"menu_item_id":2,"quantity":2}]} 
[2026-03-10 13:53:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5762,"has_item_changes":true,"old_items_count":8,"new_items_count":7,"old_items_map_keys":["113|1|","98|1|","396|3|","61|1|","56|1|","5|2|","417|1|","2|2|"],"new_items_map_keys":["113|1|","98|1|","396|3|","56|1|","5|2|","417|1|","2|2|"]} 
[2026-03-10 13:53:46] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5762,"order_number":"AZS-100326-007"} 
[2026-03-10 13:53:46] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-007","replaced_order_id":5762} 
[2026-03-10 13:53:46] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5765,"items_count":7,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-10 13:53:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5765,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5765}} 
[2026-03-10 13:53:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5765,"item_index":0,"menu_item_id":113} 
[2026-03-10 13:53:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5765,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5765}} 
[2026-03-10 13:53:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5765,"item_index":1,"menu_item_id":98} 
[2026-03-10 13:53:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5765,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5765}} 
[2026-03-10 13:53:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5765,"item_index":2,"menu_item_id":396} 
[2026-03-10 13:53:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5765,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5765}} 
[2026-03-10 13:53:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5765,"item_index":3,"menu_item_id":56} 
[2026-03-10 13:53:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5765,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5765}} 
[2026-03-10 13:53:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5765,"item_index":4,"menu_item_id":5} 
[2026-03-10 13:53:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5765,"item_index":5,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5765}} 
[2026-03-10 13:53:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5765,"item_index":5,"menu_item_id":417} 
[2026-03-10 13:53:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5765,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5765}} 
[2026-03-10 13:53:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5765,"item_index":6,"menu_item_id":2} 
[2026-03-10 13:53:46] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5762,"new_order_id":5765,"order_number":"AZS-100326-007"} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5758,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":3,"discount_percent":0,"notes":null,"id":27640},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":27641},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":27642},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":27643},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null,"id":27644},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27645},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27646},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27647},{"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null}],"validated_items":[{"id":27640,"menu_item_id":417,"quantity":3,"discount_percent":0,"notes":null},{"id":27641,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":27642,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":27643,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":27644,"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"id":27645,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27646,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27647,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null}]} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5758,"items_count":9} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27640,"menu_item_id":417,"quantity":3},{"id":27641,"menu_item_id":98,"quantity":1},{"id":27642,"menu_item_id":62,"quantity":1},{"id":27643,"menu_item_id":50,"quantity":2},{"id":27644,"menu_item_id":55,"quantity":2},{"id":27645,"menu_item_id":61,"quantity":1},{"id":27646,"menu_item_id":56,"quantity":1},{"id":27647,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":5}]} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5758,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["417|3|","98|1|","62|1|","50|2|","55|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["417|3|","98|1|","62|1|","50|2|","55|2|","61|1|","56|1|","5|1|","13|5|"]} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5758,"order_number":"AZS-100326-003"} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-003","replaced_order_id":5758} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5766,"items_count":9,"items":[{"menu_item_id":417,"quantity":3,"price":"499.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":5,"price":"249.00"}]} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5766,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":3,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":1497.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5766}} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5766,"item_index":0,"menu_item_id":417} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5766,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5766}} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5766,"item_index":1,"menu_item_id":98} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5766,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5766}} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5766,"item_index":2,"menu_item_id":62} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5766,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5766}} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5766,"item_index":3,"menu_item_id":50} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5766,"item_index":4,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5766}} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5766,"item_index":4,"menu_item_id":55} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5766,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5766}} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5766,"item_index":5,"menu_item_id":61} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5766,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5766}} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5766,"item_index":6,"menu_item_id":56} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5766,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5766}} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5766,"item_index":7,"menu_item_id":5} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5766,"item_index":8,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":5,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":1245.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5766}} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5766,"item_index":8,"menu_item_id":13} 
[2026-03-10 13:55:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5758,"new_order_id":5766,"order_number":"AZS-100326-003"} 
[2026-03-10 13:56:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5765,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":27682},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":27683},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":27684},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27685},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27686},{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":27687},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null,"id":27688}],"validated_items":[{"id":27682,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":27683,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":27684,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":27685,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27686,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":27687,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":27688,"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-10 13:56:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5765,"items_count":7} 
[2026-03-10 13:56:19] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27682,"menu_item_id":113,"quantity":1},{"id":27683,"menu_item_id":98,"quantity":1},{"id":27684,"menu_item_id":396,"quantity":3},{"id":27685,"menu_item_id":56,"quantity":1},{"id":27686,"menu_item_id":5,"quantity":1},{"id":27687,"menu_item_id":417,"quantity":1},{"id":27688,"menu_item_id":2,"quantity":2}]} 
[2026-03-10 13:56:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5765,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["113|1|","98|1|","396|3|","56|1|","5|2|","417|1|","2|2|"],"new_items_map_keys":["113|1|","98|1|","396|3|","56|1|","5|1|","417|1|","2|2|"]} 
[2026-03-10 13:56:19] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5765,"order_number":"AZS-100326-007"} 
[2026-03-10 13:56:19] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-007","replaced_order_id":5765} 
[2026-03-10 13:56:19] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5767,"items_count":7,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-10 13:56:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5767,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5767}} 
[2026-03-10 13:56:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5767,"item_index":0,"menu_item_id":113} 
[2026-03-10 13:56:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5767,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5767}} 
[2026-03-10 13:56:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5767,"item_index":1,"menu_item_id":98} 
[2026-03-10 13:56:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5767,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5767}} 
[2026-03-10 13:56:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5767,"item_index":2,"menu_item_id":396} 
[2026-03-10 13:56:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5767,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5767}} 
[2026-03-10 13:56:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5767,"item_index":3,"menu_item_id":56} 
[2026-03-10 13:56:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5767,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5767}} 
[2026-03-10 13:56:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5767,"item_index":4,"menu_item_id":5} 
[2026-03-10 13:56:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5767,"item_index":5,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5767}} 
[2026-03-10 13:56:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5767,"item_index":5,"menu_item_id":417} 
[2026-03-10 13:56:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5767,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5767}} 
[2026-03-10 13:56:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5767,"item_index":6,"menu_item_id":2} 
[2026-03-10 13:56:19] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5765,"new_order_id":5767,"order_number":"AZS-100326-007"} 
[2026-03-10 13:56:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T01:56:35.503Z","date_to":"2026-03-10T13:56:35.503Z","per_page":"100"} 
[2026-03-10 13:56:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T01:56:35.519Z","date_to":"2026-03-10T13:56:35.519Z","per_page":"100"} 
[2026-03-10 13:56:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","paid","pending","paid","pending","pending","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":5,"unique_order_numbers":8} 
[2026-03-10 13:56:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","paid","pending","paid","pending","pending","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":5,"unique_order_numbers":8} 
[2026-03-10 13:56:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T01:56:35.503Z","date_to":"2026-03-10T13:56:35.503Z","per_page":"100"} 
[2026-03-10 13:56:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","paid","pending","paid","pending","pending","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":5,"unique_order_numbers":8} 
[2026-03-10 13:57:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5767,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27698},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27699},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":27700},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27701},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27702},{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":27703},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":27704}],"validated_items":[{"id":27698,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27699,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27700,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":27701,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27702,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27703,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":27704,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-10 13:57:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5767,"items_count":7} 
[2026-03-10 13:57:55] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27698,"menu_item_id":113,"quantity":1},{"id":27699,"menu_item_id":98,"quantity":1},{"id":27700,"menu_item_id":396,"quantity":3},{"id":27701,"menu_item_id":56,"quantity":1},{"id":27702,"menu_item_id":5,"quantity":1},{"id":27703,"menu_item_id":417,"quantity":1},{"id":27704,"menu_item_id":2,"quantity":2}]} 
[2026-03-10 13:57:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5767,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["113|1|","98|1|","396|3|","56|1|","5|1|","417|1|","2|2|"],"new_items_map_keys":["113|1|","98|1|","396|3|","56|1|","5|1|","417|1|","2|2|"]} 
[2026-03-10 13:57:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5767,"order_number":"AZS-100326-007"} 
[2026-03-10 13:57:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5767,"order_number":"AZS-100326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 13:57:55"} 
[2026-03-10 14:02:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5764,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":27677},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27678},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27679},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":27680},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":27681}],"validated_items":[{"id":27677,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":27678,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27679,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27680,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":27681,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-10 14:02:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5764,"items_count":5} 
[2026-03-10 14:02:48] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27677,"menu_item_id":417,"quantity":1},{"id":27678,"menu_item_id":98,"quantity":1},{"id":27679,"menu_item_id":396,"quantity":2},{"id":27680,"menu_item_id":13,"quantity":1},{"id":27681,"menu_item_id":2,"quantity":1}]} 
[2026-03-10 14:02:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5764,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|1|","98|1|","396|2|","13|1|","2|1|"],"new_items_map_keys":["417|1|","98|1|","396|2|","13|1|","2|1|"]} 
[2026-03-10 14:02:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5764,"order_number":"AZS-100326-005"} 
[2026-03-10 14:02:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5764,"order_number":"AZS-100326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 14:02:48"} 
[2026-03-10 14:10:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5760,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":27651},{"menu_item_id":400,"quantity":150,"discount_percent":0,"notes":null,"id":27652},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":27653},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":27654},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":27651,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":27652,"menu_item_id":400,"quantity":150,"discount_percent":0,"notes":null},{"id":27653,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":27654,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-10 14:10:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5760,"items_count":5} 
[2026-03-10 14:10:10] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27651,"menu_item_id":417,"quantity":1},{"id":27652,"menu_item_id":400,"quantity":150},{"id":27653,"menu_item_id":96,"quantity":1},{"id":27654,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":4,"quantity":2}]} 
[2026-03-10 14:10:10] local.INFO: PosOrderController::update - Item changes check {"order_id":5760,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["417|1|","400|150|","96|1|","396|2|"],"new_items_map_keys":["417|1|","400|150|","96|1|","396|2|","4|2|"]} 
[2026-03-10 14:10:10] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5760,"order_number":"AZS-100326-002"} 
[2026-03-10 14:10:10] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-002","replaced_order_id":5760} 
[2026-03-10 14:10:10] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5768,"items_count":5,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":400,"quantity":150,"price":"1.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":4,"quantity":2,"price":"90.00"}]} 
[2026-03-10 14:10:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5768,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5768}} 
[2026-03-10 14:10:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5768,"item_index":0,"menu_item_id":417} 
[2026-03-10 14:10:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5768,"item_index":1,"item_data":{"menu_item_id":400,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL ITEMS","quantity":150,"price":"1.00","discount_percent":0.0,"discount_amount":0.0,"total":150.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5768}} 
[2026-03-10 14:10:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5768,"item_index":1,"menu_item_id":400} 
[2026-03-10 14:10:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5768,"item_index":2,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5768}} 
[2026-03-10 14:10:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5768,"item_index":2,"menu_item_id":96} 
[2026-03-10 14:10:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5768,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5768}} 
[2026-03-10 14:10:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5768,"item_index":3,"menu_item_id":396} 
[2026-03-10 14:10:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5768,"item_index":4,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":2,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":180.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5768}} 
[2026-03-10 14:10:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5768,"item_index":4,"menu_item_id":4} 
[2026-03-10 14:10:10] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5760,"new_order_id":5768,"order_number":"AZS-100326-002"} 
[2026-03-10 14:21:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5766,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null,"id":27689},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27690},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":27691},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":27692},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":27693},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27694},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27695},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27696},{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":27697}],"validated_items":[{"id":27689,"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null},{"id":27690,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27691,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":27692,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":27693,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":27694,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27695,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27696,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27697,"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-10 14:21:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5766,"items_count":9} 
[2026-03-10 14:21:04] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27689,"menu_item_id":417,"quantity":3},{"id":27690,"menu_item_id":98,"quantity":1},{"id":27691,"menu_item_id":62,"quantity":1},{"id":27692,"menu_item_id":50,"quantity":2},{"id":27693,"menu_item_id":55,"quantity":2},{"id":27694,"menu_item_id":61,"quantity":1},{"id":27695,"menu_item_id":56,"quantity":1},{"id":27696,"menu_item_id":5,"quantity":1},{"id":27697,"menu_item_id":13,"quantity":5}]} 
[2026-03-10 14:21:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5766,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["417|3|","98|1|","62|1|","50|2|","55|2|","61|1|","56|1|","5|1|","13|5|"],"new_items_map_keys":["417|3|","98|1|","62|1|","50|2|","55|2|","61|1|","56|1|","5|1|","13|5|"]} 
[2026-03-10 14:21:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5766,"order_number":"AZS-100326-003"} 
[2026-03-10 14:21:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5766,"order_number":"AZS-100326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 14:21:04"} 
[2026-03-10 14:21:28] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5764,"order_number":"AZS-100326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 14:21:28"} 
[2026-03-10 14:21:28] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5764,"order_number":"AZS-100326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 14:21:28"} 
[2026-03-10 14:21:28] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5764,"order_number":"AZS-100326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 14:21:28"} 
[2026-03-10 14:21:28] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5764,"order_number":"AZS-100326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 14:21:28"} 
[2026-03-10 14:21:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5764,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":27677},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27678},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27679},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":27680},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":27681}],"validated_items":[{"id":27677,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":27678,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27679,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27680,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":27681,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-10 14:21:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5764,"items_count":5} 
[2026-03-10 14:21:28] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27677,"menu_item_id":417,"quantity":1},{"id":27678,"menu_item_id":98,"quantity":1},{"id":27679,"menu_item_id":396,"quantity":2},{"id":27680,"menu_item_id":13,"quantity":1},{"id":27681,"menu_item_id":2,"quantity":1}]} 
[2026-03-10 14:21:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5764,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|1|","98|1|","396|2|","13|1|","2|1|"],"new_items_map_keys":["417|1|","98|1|","396|2|","13|1|","2|1|"]} 
[2026-03-10 14:21:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5764,"order_number":"AZS-100326-005"} 
[2026-03-10 14:21:28] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5764,"order_number":"AZS-100326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-10 14:21:28","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-10 14:21:28"} 
[2026-03-10 14:21:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5764,"order_number":"AZS-100326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-10 14:21:28"} 
[2026-03-10 14:21:28] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5764,"order_number":"AZS-100326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-10 14:21:28","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-10 14:21:28"} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5766,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":3,"discount_percent":0,"notes":null,"id":27689},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":27690},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":27691},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":27692},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null,"id":27693},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27694},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27695},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27696},{"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null,"id":27697},{"menu_item_id":49,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27689,"menu_item_id":417,"quantity":3,"discount_percent":0,"notes":null},{"id":27690,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":27691,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":27692,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":27693,"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"id":27694,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27695,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27696,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":27697,"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5766,"items_count":10} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27689,"menu_item_id":417,"quantity":3},{"id":27690,"menu_item_id":98,"quantity":1},{"id":27691,"menu_item_id":62,"quantity":1},{"id":27692,"menu_item_id":50,"quantity":2},{"id":27693,"menu_item_id":55,"quantity":2},{"id":27694,"menu_item_id":61,"quantity":1},{"id":27695,"menu_item_id":56,"quantity":1},{"id":27696,"menu_item_id":5,"quantity":1},{"id":27697,"menu_item_id":13,"quantity":5},{"id":null,"menu_item_id":49,"quantity":1}]} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5766,"has_item_changes":true,"old_items_count":9,"new_items_count":10,"old_items_map_keys":["417|3|","98|1|","62|1|","50|2|","55|2|","61|1|","56|1|","5|1|","13|5|"],"new_items_map_keys":["417|3|","98|1|","62|1|","50|2|","55|2|","61|1|","56|1|","5|1|","13|5|","49|1|"]} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5766,"order_number":"AZS-100326-003"} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-003","replaced_order_id":5766} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5769,"items_count":10,"items":[{"menu_item_id":417,"quantity":3,"price":"499.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":5,"price":"249.00"},{"menu_item_id":49,"quantity":1,"price":"70.00"}]} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5769,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":3,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":1497.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5769}} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5769,"item_index":0,"menu_item_id":417} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5769,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5769}} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5769,"item_index":1,"menu_item_id":98} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5769,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5769}} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5769,"item_index":2,"menu_item_id":62} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5769,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5769}} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5769,"item_index":3,"menu_item_id":50} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5769,"item_index":4,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5769}} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5769,"item_index":4,"menu_item_id":55} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5769,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5769}} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5769,"item_index":5,"menu_item_id":61} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5769,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5769}} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5769,"item_index":6,"menu_item_id":56} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5769,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5769}} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5769,"item_index":7,"menu_item_id":5} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5769,"item_index":8,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":5,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":1245.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5769}} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5769,"item_index":8,"menu_item_id":13} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5769,"item_index":9,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5769}} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5769,"item_index":9,"menu_item_id":49} 
[2026-03-10 14:21:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5766,"new_order_id":5769,"order_number":"AZS-100326-003"} 
[2026-03-10 14:21:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5769,"item_index":0,"item_id":27689} 
[2026-03-10 14:21:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5769,"item_index":1,"item_id":27690} 
[2026-03-10 14:21:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5769,"item_index":2,"item_id":27691} 
[2026-03-10 14:21:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5769,"item_index":3,"item_id":27692} 
[2026-03-10 14:21:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5769,"item_index":4,"item_id":27693} 
[2026-03-10 14:21:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5769,"item_index":5,"item_id":27694} 
[2026-03-10 14:21:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5769,"item_index":6,"item_id":27695} 
[2026-03-10 14:21:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5769,"item_index":7,"item_id":27696} 
[2026-03-10 14:21:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5769,"item_index":8,"item_id":27697} 
[2026-03-10 14:21:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":10,"order_id":5769,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null,"id":27689},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27690},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":27691},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":27692},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":27693},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27694},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27695},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27696},{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":27697},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-10 14:21:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5769,"items_count":10} 
[2026-03-10 14:21:44] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":10,"items_to_remove":[27710,27711,27712,27713,27714,27715,27716,27717,27718,27719],"items":[{"id":null,"menu_item_id":417,"quantity":3},{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":55,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":5},{"id":null,"menu_item_id":49,"quantity":1}]} 
[2026-03-10 14:21:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5769,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["417|3|","98|1|","62|1|","50|2|","55|2|","61|1|","56|1|","5|1|","13|5|","49|1|"],"new_items_map_keys":["417|3|","98|1|","62|1|","50|2|","55|2|","61|1|","56|1|","5|1|","13|5|","49|1|"]} 
[2026-03-10 14:21:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5769,"order_number":"AZS-100326-003"} 
[2026-03-10 14:21:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5769,"order_number":"AZS-100326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 14:21:44"} 
[2026-03-10 14:32:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5768,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":27705},{"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null,"id":27706},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27707},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27708},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null,"id":27709}],"validated_items":[{"id":27705,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":27706,"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null},{"id":27707,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27708,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27709,"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-10 14:32:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5768,"items_count":5} 
[2026-03-10 14:32:31] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27705,"menu_item_id":417,"quantity":1},{"id":27706,"menu_item_id":400,"quantity":150},{"id":27707,"menu_item_id":96,"quantity":1},{"id":27708,"menu_item_id":396,"quantity":2},{"id":27709,"menu_item_id":4,"quantity":2}]} 
[2026-03-10 14:32:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5768,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|1|","400|150|","96|1|","396|2|","4|2|"],"new_items_map_keys":["417|1|","400|150|","96|1|","396|2|","4|2|"]} 
[2026-03-10 14:32:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5768,"order_number":"AZS-100326-002"} 
[2026-03-10 14:32:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5768,"order_number":"AZS-100326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 14:32:31"} 
[2026-03-10 14:32:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5768,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":27705},{"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null,"id":27706},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27707},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27708},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null,"id":27709}],"validated_items":[{"id":27705,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":27706,"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null},{"id":27707,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27708,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27709,"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-10 14:32:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5768,"items_count":5} 
[2026-03-10 14:32:37] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27705,"menu_item_id":417,"quantity":1},{"id":27706,"menu_item_id":400,"quantity":150},{"id":27707,"menu_item_id":96,"quantity":1},{"id":27708,"menu_item_id":396,"quantity":2},{"id":27709,"menu_item_id":4,"quantity":2}]} 
[2026-03-10 14:32:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5768,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|1|","400|150|","96|1|","396|2|","4|2|"],"new_items_map_keys":["417|1|","400|150|","96|1|","396|2|","4|2|"]} 
[2026-03-10 14:32:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5768,"order_number":"AZS-100326-002"} 
[2026-03-10 14:32:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5768,"order_number":"AZS-100326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 14:32:37"} 
[2026-03-10 14:32:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5769,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null,"id":27710},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27711},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":27712},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":27713},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":27714},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27715},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27716},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27717},{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":27718},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":27719}],"validated_items":[{"id":27710,"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null},{"id":27711,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27712,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":27713,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":27714,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":27715,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27716,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27717,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27718,"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null},{"id":27719,"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-10 14:32:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5769,"items_count":10} 
[2026-03-10 14:32:56] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27710,"menu_item_id":417,"quantity":3},{"id":27711,"menu_item_id":98,"quantity":1},{"id":27712,"menu_item_id":62,"quantity":1},{"id":27713,"menu_item_id":50,"quantity":2},{"id":27714,"menu_item_id":55,"quantity":2},{"id":27715,"menu_item_id":61,"quantity":1},{"id":27716,"menu_item_id":56,"quantity":1},{"id":27717,"menu_item_id":5,"quantity":1},{"id":27718,"menu_item_id":13,"quantity":5},{"id":27719,"menu_item_id":49,"quantity":1}]} 
[2026-03-10 14:32:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5769,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["417|3|","98|1|","62|1|","50|2|","55|2|","61|1|","56|1|","5|1|","13|5|","49|1|"],"new_items_map_keys":["417|3|","98|1|","62|1|","50|2|","55|2|","61|1|","56|1|","5|1|","13|5|","49|1|"]} 
[2026-03-10 14:32:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5769,"order_number":"AZS-100326-003"} 
[2026-03-10 14:32:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5769,"order_number":"AZS-100326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 14:32:56"} 
[2026-03-10 14:33:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T02:33:13.264Z","date_to":"2026-03-10T14:33:13.264Z","per_page":"100"} 
[2026-03-10 14:33:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T02:33:13.278Z","date_to":"2026-03-10T14:33:13.278Z","per_page":"100"} 
[2026-03-10 14:33:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","paid","paid","paid","pending","pending","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":4,"unique_order_numbers":8} 
[2026-03-10 14:33:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","paid","paid","paid","pending","pending","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":4,"unique_order_numbers":8} 
[2026-03-10 14:33:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T02:33:13.264Z","date_to":"2026-03-10T14:33:13.264Z","per_page":"100"} 
[2026-03-10 14:33:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","paid","paid","paid","pending","pending","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":4,"unique_order_numbers":8} 
[2026-03-10 14:34:07] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5769,"order_number":"AZS-100326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":7000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 14:34:07"} 
[2026-03-10 14:34:07] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5769,"order_number":"AZS-100326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":7000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 14:34:07"} 
[2026-03-10 14:34:07] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5769,"order_number":"AZS-100326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 14:34:07"} 
[2026-03-10 14:34:07] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5769,"order_number":"AZS-100326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 14:34:07"} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":1,"order_id":5769,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null,"id":27710},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27711},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":27712},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":27713},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":27714},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27716},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27717},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":27718},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":27719}],"validated_items":[{"id":27710,"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null},{"id":27711,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27712,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":27713,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":27714,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":27716,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27717,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27718,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null},{"id":27719,"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5769,"items_count":9} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":1,"items_to_remove":[27715],"items":[{"id":27710,"menu_item_id":417,"quantity":3},{"id":27711,"menu_item_id":98,"quantity":1},{"id":27712,"menu_item_id":62,"quantity":1},{"id":27713,"menu_item_id":50,"quantity":2},{"id":27714,"menu_item_id":55,"quantity":2},{"id":27716,"menu_item_id":56,"quantity":1},{"id":27717,"menu_item_id":5,"quantity":1},{"id":27718,"menu_item_id":13,"quantity":3},{"id":27719,"menu_item_id":49,"quantity":1}]} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Item changes check {"order_id":5769,"has_item_changes":true,"old_items_count":10,"new_items_count":9,"old_items_map_keys":["417|3|","98|1|","62|1|","50|2|","55|2|","61|1|","56|1|","5|1|","13|5|","49|1|"],"new_items_map_keys":["417|3|","98|1|","62|1|","50|2|","55|2|","56|1|","5|1|","13|3|","49|1|"]} 
[2026-03-10 14:34:07] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5769,"order_number":"AZS-100326-003","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":7000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-10 14:34:07","original_payment_amount":"0.00","grand_total":6255.0,"timestamp":"2026-03-10 14:34:07"} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5769,"order_number":"AZS-100326-003"} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-003","replaced_order_id":5769} 
[2026-03-10 14:34:07] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5769,"new_order_id":5770,"order_number":"AZS-100326-003","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"7000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-10 14:34:07","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":7000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-10 14:34:07"} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5770,"items_count":9,"items":[{"menu_item_id":417,"quantity":3,"price":499.0},{"menu_item_id":98,"quantity":1,"price":1199.0},{"menu_item_id":62,"quantity":1,"price":1499.0},{"menu_item_id":50,"quantity":2,"price":129.0},{"menu_item_id":55,"quantity":2,"price":159.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":13,"quantity":3,"price":249.0},{"menu_item_id":49,"quantity":1,"price":70.0}]} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5770,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":3,"price":499.0,"discount_percent":0.0,"discount_amount":0.0,"total":1497.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5770}} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5770,"item_index":0,"menu_item_id":417} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5770,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5770}} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5770,"item_index":1,"menu_item_id":98} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5770,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":1499.0,"discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5770}} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5770,"item_index":2,"menu_item_id":62} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5770,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5770}} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5770,"item_index":3,"menu_item_id":50} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5770,"item_index":4,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5770}} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5770,"item_index":4,"menu_item_id":55} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5770,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5770}} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5770,"item_index":5,"menu_item_id":56} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5770,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5770}} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5770,"item_index":6,"menu_item_id":5} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5770,"item_index":7,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5770}} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5770,"item_index":7,"menu_item_id":13} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5770,"item_index":8,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":1,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5770}} 
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5770,"item_index":8,"menu_item_id":49} 
[2026-03-10 14:34:07] local.ERROR: Error tracking recipe usage for order 5770: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5770, 62, 184, 1, 5000, 0.00, Order #AZS-100326-003 - 1x Chicken Malai Boti (10 pcs), 2026-03-10 14:34:07, 2026-03-10 14:34:07))  
[2026-03-10 14:34:07] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5769,"new_order_id":5770,"order_number":"AZS-100326-003"} 
[2026-03-10 14:34:09] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5769,"new_order_id":5770,"order_number":"AZS-100326-003","route":"api/orders/5769"} 
[2026-03-10 14:34:39] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5767,"order_number":"AZS-100326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 14:34:39"} 
[2026-03-10 14:34:39] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5767,"order_number":"AZS-100326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 14:34:39"} 
[2026-03-10 14:34:39] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5767,"order_number":"AZS-100326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 14:34:39"} 
[2026-03-10 14:34:39] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5767,"order_number":"AZS-100326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 14:34:39"} 
[2026-03-10 14:34:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5767,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27698},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27699},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":27700},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27701},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27702},{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":27703},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":27704}],"validated_items":[{"id":27698,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27699,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27700,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":27701,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27702,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27703,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":27704,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-10 14:34:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5767,"items_count":7} 
[2026-03-10 14:34:39] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27698,"menu_item_id":113,"quantity":1},{"id":27699,"menu_item_id":98,"quantity":1},{"id":27700,"menu_item_id":396,"quantity":3},{"id":27701,"menu_item_id":56,"quantity":1},{"id":27702,"menu_item_id":5,"quantity":1},{"id":27703,"menu_item_id":417,"quantity":1},{"id":27704,"menu_item_id":2,"quantity":2}]} 
[2026-03-10 14:34:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5767,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["113|1|","98|1|","396|3|","56|1|","5|1|","417|1|","2|2|"],"new_items_map_keys":["113|1|","98|1|","396|3|","56|1|","5|1|","417|1|","2|2|"]} 
[2026-03-10 14:34:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5767,"order_number":"AZS-100326-007"} 
[2026-03-10 14:34:39] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5767,"order_number":"AZS-100326-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-10 14:34:39","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-10 14:34:39"} 
[2026-03-10 14:34:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5767,"order_number":"AZS-100326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-10 14:34:39"} 
[2026-03-10 14:34:39] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5767,"order_number":"AZS-100326-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-10 14:34:39","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-10 14:34:39"} 
[2026-03-10 14:37:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T02:37:21.884Z","date_to":"2026-03-10T14:37:21.884Z","per_page":"100"} 
[2026-03-10 14:37:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T02:37:21.889Z","date_to":"2026-03-10T14:37:21.889Z","per_page":"100"} 
[2026-03-10 14:37:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","pending","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":3,"unique_order_numbers":9} 
[2026-03-10 14:37:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","pending","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":3,"unique_order_numbers":9} 
[2026-03-10 14:37:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T02:37:21.884Z","date_to":"2026-03-10T14:37:21.884Z","per_page":"100"} 
[2026-03-10 14:37:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","pending","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":3,"unique_order_numbers":9} 
[2026-03-10 14:41:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5768,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":27705},{"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null,"id":27706},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27707},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27708},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":27709}],"validated_items":[{"id":27705,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":27706,"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null},{"id":27707,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27708,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27709,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-10 14:41:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5768,"items_count":5} 
[2026-03-10 14:41:28] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27705,"menu_item_id":417,"quantity":1},{"id":27706,"menu_item_id":400,"quantity":150},{"id":27707,"menu_item_id":96,"quantity":1},{"id":27708,"menu_item_id":396,"quantity":2},{"id":27709,"menu_item_id":4,"quantity":1}]} 
[2026-03-10 14:41:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5768,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|1|","400|150|","96|1|","396|2|","4|2|"],"new_items_map_keys":["417|1|","400|150|","96|1|","396|2|","4|1|"]} 
[2026-03-10 14:41:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5768,"order_number":"AZS-100326-002"} 
[2026-03-10 14:41:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-002","replaced_order_id":5768} 
[2026-03-10 14:41:28] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5772,"items_count":5,"items":[{"menu_item_id":417,"quantity":1,"price":499.0},{"menu_item_id":400,"quantity":150,"price":1.0},{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":4,"quantity":1,"price":90.0}]} 
[2026-03-10 14:41:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5772,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":499.0,"discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5772}} 
[2026-03-10 14:41:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5772,"item_index":0,"menu_item_id":417} 
[2026-03-10 14:41:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5772,"item_index":1,"item_data":{"menu_item_id":400,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL ITEMS","quantity":150,"price":1.0,"discount_percent":0.0,"discount_amount":0.0,"total":150.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5772}} 
[2026-03-10 14:41:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5772,"item_index":1,"menu_item_id":400} 
[2026-03-10 14:41:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5772,"item_index":2,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5772}} 
[2026-03-10 14:41:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5772,"item_index":2,"menu_item_id":96} 
[2026-03-10 14:41:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5772,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5772}} 
[2026-03-10 14:41:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5772,"item_index":3,"menu_item_id":396} 
[2026-03-10 14:41:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5772,"item_index":4,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":90.0,"discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5772}} 
[2026-03-10 14:41:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5772,"item_index":4,"menu_item_id":4} 
[2026-03-10 14:41:28] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5768,"new_order_id":5772,"order_number":"AZS-100326-002"} 
[2026-03-10 14:41:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5772,"item_index":0,"item_id":27705} 
[2026-03-10 14:41:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5772,"item_index":1,"item_id":27706} 
[2026-03-10 14:41:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5772,"item_index":2,"item_id":27707} 
[2026-03-10 14:41:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5772,"item_index":3,"item_id":27708} 
[2026-03-10 14:41:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5772,"item_index":4,"item_id":27709} 
[2026-03-10 14:41:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5772,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":27705},{"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null,"id":27706},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27707},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27708},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":27709}],"validated_items":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-10 14:41:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5772,"items_count":5} 
[2026-03-10 14:41:44] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[27730,27731,27732,27733,27734],"items":[{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":400,"quantity":150},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-10 14:41:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5772,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|1|","400|150|","96|1|","396|2|","4|1|"],"new_items_map_keys":["417|1|","400|150|","96|1|","396|2|","4|1|"]} 
[2026-03-10 14:41:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5772,"order_number":"AZS-100326-002"} 
[2026-03-10 14:41:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5772,"order_number":"AZS-100326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 14:41:44"} 
[2026-03-10 14:42:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5772,"item_index":0,"item_id":27705} 
[2026-03-10 14:42:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5772,"item_index":1,"item_id":27706} 
[2026-03-10 14:42:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5772,"item_index":2,"item_id":27707} 
[2026-03-10 14:42:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5772,"item_index":3,"item_id":27708} 
[2026-03-10 14:42:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5772,"item_index":4,"item_id":27709} 
[2026-03-10 14:42:38] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5772,"order_number":"AZS-100326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 14:42:38"} 
[2026-03-10 14:42:38] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5772,"order_number":"AZS-100326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 14:42:38"} 
[2026-03-10 14:42:38] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5772,"order_number":"AZS-100326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 14:42:38"} 
[2026-03-10 14:42:38] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5772,"order_number":"AZS-100326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 14:42:38"} 
[2026-03-10 14:42:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5772,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":27705},{"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null,"id":27706},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27707},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27708},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":27709}],"validated_items":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-10 14:42:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5772,"items_count":5} 
[2026-03-10 14:42:38] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[27730,27731,27732,27733,27734],"items":[{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":400,"quantity":150},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-10 14:42:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5772,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|1|","400|150|","96|1|","396|2|","4|1|"],"new_items_map_keys":["417|1|","400|150|","96|1|","396|2|","4|1|"]} 
[2026-03-10 14:42:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5772,"order_number":"AZS-100326-002"} 
[2026-03-10 14:42:38] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5772,"order_number":"AZS-100326-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-10 14:42:38","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-10 14:42:38"} 
[2026-03-10 14:42:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5772,"order_number":"AZS-100326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-10 14:42:38"} 
[2026-03-10 14:42:38] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5772,"order_number":"AZS-100326-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-10 14:42:38","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2500.00","database_verification_match":true,"timestamp":"2026-03-10 14:42:38"} 
[2026-03-10 14:47:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5763,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null,"id":27672},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":27673},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27674},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27675},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":27676},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27672,"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null},{"id":27673,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":27674,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27675,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27676,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 14:47:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5763,"items_count":6} 
[2026-03-10 14:47:53] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27672,"menu_item_id":87,"quantity":1},{"id":27673,"menu_item_id":396,"quantity":2},{"id":27674,"menu_item_id":61,"quantity":1},{"id":27675,"menu_item_id":56,"quantity":1},{"id":27676,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-10 14:47:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5763,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["87|1|","396|2|","61|1|","56|1|","2|2|"],"new_items_map_keys":["87|1|","396|2|","61|1|","56|1|","2|1|","5|1|"]} 
[2026-03-10 14:47:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5763,"order_number":"AZS-100326-008"} 
[2026-03-10 14:47:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-008","replaced_order_id":5763} 
[2026-03-10 14:47:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5773,"items_count":6,"items":[{"menu_item_id":87,"quantity":1,"price":"1999.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-10 14:47:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5773,"item_index":0,"item_data":{"menu_item_id":87,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5773}} 
[2026-03-10 14:47:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5773,"item_index":0,"menu_item_id":87} 
[2026-03-10 14:47:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5773,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5773}} 
[2026-03-10 14:47:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5773,"item_index":1,"menu_item_id":396} 
[2026-03-10 14:47:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5773,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5773}} 
[2026-03-10 14:47:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5773,"item_index":2,"menu_item_id":61} 
[2026-03-10 14:47:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5773,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5773}} 
[2026-03-10 14:47:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5773,"item_index":3,"menu_item_id":56} 
[2026-03-10 14:47:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5773,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5773}} 
[2026-03-10 14:47:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5773,"item_index":4,"menu_item_id":2} 
[2026-03-10 14:47:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5773,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5773}} 
[2026-03-10 14:47:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5773,"item_index":5,"menu_item_id":5} 
[2026-03-10 14:47:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5763,"new_order_id":5773,"order_number":"AZS-100326-008"} 
[2026-03-10 14:48:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5773,"item_index":0,"item_id":27672} 
[2026-03-10 14:48:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5773,"item_index":1,"item_id":27673} 
[2026-03-10 14:48:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5773,"item_index":2,"item_id":27674} 
[2026-03-10 14:48:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5773,"item_index":3,"item_id":27675} 
[2026-03-10 14:48:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5773,"item_index":4,"item_id":27676} 
[2026-03-10 14:48:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5773,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":27672},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27673},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27674},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27675},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":27676},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-10 14:48:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5773,"items_count":6} 
[2026-03-10 14:48:02] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27735,27736,27737,27738,27739,27740],"items":[{"id":null,"menu_item_id":87,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-10 14:48:02] local.INFO: PosOrderController::update - Item changes check {"order_id":5773,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["87|1|","396|2|","61|1|","56|1|","2|1|","5|1|"],"new_items_map_keys":["87|1|","396|2|","61|1|","56|1|","2|1|","5|1|"]} 
[2026-03-10 14:48:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5773,"order_number":"AZS-100326-008"} 
[2026-03-10 14:48:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5773,"order_number":"AZS-100326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 14:48:02"} 
[2026-03-10 14:53:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5773,"item_index":0,"item_id":27672} 
[2026-03-10 14:53:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5773,"item_index":1,"item_id":27673} 
[2026-03-10 14:53:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5773,"item_index":2,"item_id":27674} 
[2026-03-10 14:53:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5773,"item_index":3,"item_id":27675} 
[2026-03-10 14:53:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5773,"item_index":4,"item_id":27676} 
[2026-03-10 14:53:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5773,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":27672},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27673},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27674},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27675},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":27676},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-10 14:53:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5773,"items_count":6} 
[2026-03-10 14:53:44] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27735,27736,27737,27738,27739,27740],"items":[{"id":null,"menu_item_id":87,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-10 14:53:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5773,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["87|1|","396|2|","61|1|","56|1|","2|1|","5|1|"],"new_items_map_keys":["87|1|","396|2|","61|1|","56|1|","2|1|","5|1|"]} 
[2026-03-10 14:53:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5773,"order_number":"AZS-100326-008"} 
[2026-03-10 14:53:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5773,"order_number":"AZS-100326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 14:53:44"} 
[2026-03-10 15:01:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5773,"item_index":0,"item_id":27672} 
[2026-03-10 15:01:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5773,"item_index":1,"item_id":27673} 
[2026-03-10 15:01:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5773,"item_index":2,"item_id":27674} 
[2026-03-10 15:01:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5773,"item_index":3,"item_id":27675} 
[2026-03-10 15:01:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5773,"item_index":4,"item_id":27676} 
[2026-03-10 15:01:55] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5773,"order_number":"AZS-100326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 15:01:55"} 
[2026-03-10 15:01:55] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5773,"order_number":"AZS-100326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 15:01:55"} 
[2026-03-10 15:01:55] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5773,"order_number":"AZS-100326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 15:01:55"} 
[2026-03-10 15:01:55] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5773,"order_number":"AZS-100326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 15:01:55"} 
[2026-03-10 15:01:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5773,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":27672},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27673},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27674},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27675},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":27676},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-10 15:01:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5773,"items_count":6} 
[2026-03-10 15:01:55] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27735,27736,27737,27738,27739,27740],"items":[{"id":null,"menu_item_id":87,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-10 15:01:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5773,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["87|1|","396|2|","61|1|","56|1|","2|1|","5|1|"],"new_items_map_keys":["87|1|","396|2|","61|1|","56|1|","2|1|","5|1|"]} 
[2026-03-10 15:01:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5773,"order_number":"AZS-100326-008"} 
[2026-03-10 15:01:55] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5773,"order_number":"AZS-100326-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-10 15:01:55","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-10 15:01:55"} 
[2026-03-10 15:01:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5773,"order_number":"AZS-100326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-10 15:01:55"} 
[2026-03-10 15:01:55] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5773,"order_number":"AZS-100326-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-10 15:01:55","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-10 15:01:55"} 
[2026-03-10 15:02:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5771,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27729}],"validated_items":[{"id":27729,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-10 15:02:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5771,"items_count":1} 
[2026-03-10 15:02:59] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27729,"menu_item_id":6,"quantity":2}]} 
[2026-03-10 15:02:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5771,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-10 15:02:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5771,"order_number":"AZS-100326-009"} 
[2026-03-10 15:02:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5771,"order_number":"AZS-100326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 15:02:59"} 
[2026-03-10 15:05:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5771,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":27729},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27729,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 15:05:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5771,"items_count":2} 
[2026-03-10 15:05:28] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27729,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-10 15:05:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5771,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|","4|1|"]} 
[2026-03-10 15:05:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5771,"order_number":"AZS-100326-009"} 
[2026-03-10 15:05:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-009","replaced_order_id":5771} 
[2026-03-10 15:05:28] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5774,"items_count":2,"items":[{"menu_item_id":6,"quantity":2,"price":"199.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-03-10 15:05:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5774,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5774}} 
[2026-03-10 15:05:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5774,"item_index":0,"menu_item_id":6} 
[2026-03-10 15:05:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5774,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5774}} 
[2026-03-10 15:05:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5774,"item_index":1,"menu_item_id":4} 
[2026-03-10 15:05:28] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5771,"new_order_id":5774,"order_number":"AZS-100326-009"} 
[2026-03-10 15:05:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5774,"item_index":0,"item_id":27729} 
[2026-03-10 15:05:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":5774,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27729},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-10 15:05:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5774,"items_count":2} 
[2026-03-10 15:05:37] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[27741,27742],"items":[{"id":null,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-10 15:05:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5774,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|2|","4|1|"],"new_items_map_keys":["6|2|","4|1|"]} 
[2026-03-10 15:05:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5774,"order_number":"AZS-100326-009"} 
[2026-03-10 15:05:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5774,"order_number":"AZS-100326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 15:05:37"} 
[2026-03-10 15:05:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5774,"item_index":0,"item_id":27729} 
[2026-03-10 15:05:53] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5774,"order_number":"AZS-100326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":512,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 15:05:53"} 
[2026-03-10 15:05:53] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5774,"order_number":"AZS-100326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":512,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 15:05:53"} 
[2026-03-10 15:05:53] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5774,"order_number":"AZS-100326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":512,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 15:05:53"} 
[2026-03-10 15:05:53] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5774,"order_number":"AZS-100326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":512,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 15:05:53"} 
[2026-03-10 15:05:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":5774,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27729},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-10 15:05:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5774,"items_count":2} 
[2026-03-10 15:05:53] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[27741,27742],"items":[{"id":null,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-10 15:05:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5774,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|2|","4|1|"],"new_items_map_keys":["6|2|","4|1|"]} 
[2026-03-10 15:05:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5774,"order_number":"AZS-100326-009"} 
[2026-03-10 15:05:53] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5774,"order_number":"AZS-100326-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":512,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-10 15:05:53","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-10 15:05:53"} 
[2026-03-10 15:05:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5774,"order_number":"AZS-100326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-10 15:05:53"} 
[2026-03-10 15:05:53] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5774,"order_number":"AZS-100326-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"512.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-10 15:05:53","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":512,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"512.00","database_verification_match":true,"timestamp":"2026-03-10 15:05:53"} 
[2026-03-10 15:33:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5775,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":27743},{"menu_item_id":286,"quantity":3,"discount_percent":0,"notes":null,"id":27744},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27743,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":27744,"menu_item_id":286,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 15:33:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5775,"items_count":3} 
[2026-03-10 15:33:28] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27743,"menu_item_id":64,"quantity":1},{"id":27744,"menu_item_id":286,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-03-10 15:33:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5775,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["64|1|","286|3|"],"new_items_map_keys":["64|1|","286|3|","61|1|"]} 
[2026-03-10 15:33:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5775,"order_number":"AZS-100326-010"} 
[2026-03-10 15:33:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-010","replaced_order_id":5775} 
[2026-03-10 15:33:28] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5776,"items_count":3,"items":[{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":286,"quantity":3,"price":"15.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"}]} 
[2026-03-10 15:33:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5776,"item_index":0,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5776}} 
[2026-03-10 15:33:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5776,"item_index":0,"menu_item_id":64} 
[2026-03-10 15:33:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5776,"item_index":1,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":3,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":45.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5776}} 
[2026-03-10 15:33:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5776,"item_index":1,"menu_item_id":286} 
[2026-03-10 15:33:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5776,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5776}} 
[2026-03-10 15:33:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5776,"item_index":2,"menu_item_id":61} 
[2026-03-10 15:33:28] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5775,"new_order_id":5776,"order_number":"AZS-100326-010"} 
[2026-03-10 15:46:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T03:46:38.253Z","date_to":"2026-03-10T15:46:38.253Z","per_page":"100"} 
[2026-03-10 15:46:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":1,"unique_order_numbers":10} 
[2026-03-10 15:46:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T03:46:38.268Z","date_to":"2026-03-10T15:46:38.268Z","per_page":"100"} 
[2026-03-10 15:46:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":1,"unique_order_numbers":10} 
[2026-03-10 15:46:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T03:46:38.253Z","date_to":"2026-03-10T15:46:38.253Z","per_page":"100"} 
[2026-03-10 15:46:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":1,"unique_order_numbers":10} 
[2026-03-10 16:13:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5776,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":27745},{"menu_item_id":286,"quantity":3,"discount_percent":0,"notes":null,"id":27746},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27747},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":27745,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":27746,"menu_item_id":286,"quantity":3,"discount_percent":0,"notes":null},{"id":27747,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-10 16:13:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5776,"items_count":4} 
[2026-03-10 16:13:51] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27745,"menu_item_id":64,"quantity":1},{"id":27746,"menu_item_id":286,"quantity":3},{"id":27747,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-03-10 16:13:51] local.INFO: PosOrderController::update - Item changes check {"order_id":5776,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["64|1|","286|3|","61|1|"],"new_items_map_keys":["64|1|","286|3|","61|1|","13|2|"]} 
[2026-03-10 16:13:51] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5776,"order_number":"AZS-100326-010"} 
[2026-03-10 16:13:51] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-010","replaced_order_id":5776} 
[2026-03-10 16:13:51] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5779,"items_count":4,"items":[{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":286,"quantity":3,"price":"15.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"}]} 
[2026-03-10 16:13:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5779,"item_index":0,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5779}} 
[2026-03-10 16:13:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5779,"item_index":0,"menu_item_id":64} 
[2026-03-10 16:13:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5779,"item_index":1,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":3,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":45.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5779}} 
[2026-03-10 16:13:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5779,"item_index":1,"menu_item_id":286} 
[2026-03-10 16:13:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5779,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5779}} 
[2026-03-10 16:13:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5779,"item_index":2,"menu_item_id":61} 
[2026-03-10 16:13:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5779,"item_index":3,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5779}} 
[2026-03-10 16:13:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5779,"item_index":3,"menu_item_id":13} 
[2026-03-10 16:13:51] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5776,"new_order_id":5779,"order_number":"AZS-100326-010"} 
[2026-03-10 16:14:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5779,"item_index":0,"item_id":27745} 
[2026-03-10 16:14:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5779,"item_index":1,"item_id":27746} 
[2026-03-10 16:14:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5779,"item_index":2,"item_id":27747} 
[2026-03-10 16:14:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":4,"order_id":5779,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":27745},{"menu_item_id":286,"quantity":3,"discount_percent":0,"notes":null,"id":27746},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27747},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 16:14:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5779,"items_count":5} 
[2026-03-10 16:14:42] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":4,"items_to_remove":[27756,27757,27758,27759],"items":[{"id":null,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":286,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":13,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-10 16:14:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5779,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["64|1|","286|3|","61|1|","13|2|"],"new_items_map_keys":["64|1|","286|3|","61|1|","13|2|","5|1|"]} 
[2026-03-10 16:14:42] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5779,"order_number":"AZS-100326-010"} 
[2026-03-10 16:14:42] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-010","replaced_order_id":5779} 
[2026-03-10 16:14:42] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5780,"items_count":5,"items":[{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":286,"quantity":3,"price":"15.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-10 16:14:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5780,"item_index":0,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5780}} 
[2026-03-10 16:14:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5780,"item_index":0,"menu_item_id":64} 
[2026-03-10 16:14:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5780,"item_index":1,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":3,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":45.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5780}} 
[2026-03-10 16:14:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5780,"item_index":1,"menu_item_id":286} 
[2026-03-10 16:14:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5780,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5780}} 
[2026-03-10 16:14:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5780,"item_index":2,"menu_item_id":61} 
[2026-03-10 16:14:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5780,"item_index":3,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5780}} 
[2026-03-10 16:14:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5780,"item_index":3,"menu_item_id":13} 
[2026-03-10 16:14:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5780,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5780}} 
[2026-03-10 16:14:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5780,"item_index":4,"menu_item_id":5} 
[2026-03-10 16:14:42] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5779,"new_order_id":5780,"order_number":"AZS-100326-010"} 
[2026-03-10 16:15:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5777,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":158,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":27748},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":27749}],"validated_items":[{"id":27748,"menu_item_id":158,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":27749,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-10 16:15:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5777,"items_count":2} 
[2026-03-10 16:15:45] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27748,"menu_item_id":158,"quantity":1},{"id":27749,"menu_item_id":2,"quantity":3}]} 
[2026-03-10 16:15:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5777,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["158|1|","2|3|"],"new_items_map_keys":["158|1|","2|3|"]} 
[2026-03-10 16:15:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5777,"order_number":"AZS-100326-011"} 
[2026-03-10 16:15:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5777,"order_number":"AZS-100326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 16:15:45"} 
[2026-03-10 16:26:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5780,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":27760},{"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null,"id":27761},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27762},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":27763},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27764}],"validated_items":[{"id":27760,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":27761,"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null},{"id":27762,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27763,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":27764,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-10 16:26:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5780,"items_count":5} 
[2026-03-10 16:26:03] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27760,"menu_item_id":64,"quantity":1},{"id":27761,"menu_item_id":286,"quantity":3},{"id":27762,"menu_item_id":61,"quantity":1},{"id":27763,"menu_item_id":13,"quantity":2},{"id":27764,"menu_item_id":5,"quantity":1}]} 
[2026-03-10 16:26:03] local.INFO: PosOrderController::update - Item changes check {"order_id":5780,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["64|1|","286|3|","61|1|","13|2|","5|1|"],"new_items_map_keys":["64|1|","286|3|","61|1|","13|2|","5|1|"]} 
[2026-03-10 16:26:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5780,"order_number":"AZS-100326-010"} 
[2026-03-10 16:26:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5780,"order_number":"AZS-100326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 16:26:03"} 
[2026-03-10 16:30:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T04:30:06.769Z","date_to":"2026-03-10T16:30:06.769Z","per_page":"100"} 
[2026-03-10 16:30:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":4,"unique_order_numbers":13} 
[2026-03-10 16:30:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T04:30:06.781Z","date_to":"2026-03-10T16:30:06.781Z","per_page":"100"} 
[2026-03-10 16:30:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":4,"unique_order_numbers":13} 
[2026-03-10 16:30:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T04:30:06.769Z","date_to":"2026-03-10T16:30:06.769Z","per_page":"100"} 
[2026-03-10 16:30:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":4,"unique_order_numbers":13} 
[2026-03-10 16:33:39] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5777,"order_number":"AZS-100326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1773,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 16:33:39"} 
[2026-03-10 16:33:39] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5777,"order_number":"AZS-100326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1773,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 16:33:39"} 
[2026-03-10 16:33:39] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5777,"order_number":"AZS-100326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1773,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 16:33:39"} 
[2026-03-10 16:33:39] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5777,"order_number":"AZS-100326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1773,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 16:33:39"} 
[2026-03-10 16:33:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5777,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":158,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":27748},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":27749}],"validated_items":[{"id":27748,"menu_item_id":158,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":27749,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-10 16:33:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5777,"items_count":2} 
[2026-03-10 16:33:39] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27748,"menu_item_id":158,"quantity":1},{"id":27749,"menu_item_id":2,"quantity":3}]} 
[2026-03-10 16:33:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5777,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["158|1|","2|3|"],"new_items_map_keys":["158|1|","2|3|"]} 
[2026-03-10 16:33:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5777,"order_number":"AZS-100326-011"} 
[2026-03-10 16:33:39] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5777,"order_number":"AZS-100326-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1773,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-10 16:33:39","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-10 16:33:39"} 
[2026-03-10 16:33:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5777,"order_number":"AZS-100326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-10 16:33:39"} 
[2026-03-10 16:33:39] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5777,"order_number":"AZS-100326-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1773.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-10 16:33:39","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1773,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1773.00","database_verification_match":true,"timestamp":"2026-03-10 16:33:39"} 
[2026-03-10 16:38:46] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5780,"order_number":"AZS-100326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2010,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 16:38:46"} 
[2026-03-10 16:38:46] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5780,"order_number":"AZS-100326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2010,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 16:38:46"} 
[2026-03-10 16:38:46] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5780,"order_number":"AZS-100326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2010,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 16:38:46"} 
[2026-03-10 16:38:46] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5780,"order_number":"AZS-100326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2010,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 16:38:46"} 
[2026-03-10 16:38:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5780,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":27760},{"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null,"id":27761},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27762},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":27763},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27764}],"validated_items":[{"id":27760,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":27761,"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null},{"id":27762,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27763,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":27764,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-10 16:38:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5780,"items_count":5} 
[2026-03-10 16:38:46] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27760,"menu_item_id":64,"quantity":1},{"id":27761,"menu_item_id":286,"quantity":3},{"id":27762,"menu_item_id":61,"quantity":1},{"id":27763,"menu_item_id":13,"quantity":2},{"id":27764,"menu_item_id":5,"quantity":1}]} 
[2026-03-10 16:38:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5780,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["64|1|","286|3|","61|1|","13|2|","5|1|"],"new_items_map_keys":["64|1|","286|3|","61|1|","13|2|","5|1|"]} 
[2026-03-10 16:38:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5780,"order_number":"AZS-100326-010"} 
[2026-03-10 16:38:46] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5780,"order_number":"AZS-100326-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2010,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-10 16:38:46","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-10 16:38:46"} 
[2026-03-10 16:38:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5780,"order_number":"AZS-100326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-10 16:38:46"} 
[2026-03-10 16:38:46] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5780,"order_number":"AZS-100326-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2010.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-10 16:38:46","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2010,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2010.00","database_verification_match":true,"timestamp":"2026-03-10 16:38:46"} 
[2026-03-10 16:38:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5782,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":27766},{"menu_item_id":26,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":27767}],"validated_items":[{"id":27766,"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":27767,"menu_item_id":26,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-10 16:38:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5782,"items_count":2} 
[2026-03-10 16:38:56] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27766,"menu_item_id":24,"quantity":1},{"id":27767,"menu_item_id":26,"quantity":1}]} 
[2026-03-10 16:38:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5782,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["24|1|","26|1|"],"new_items_map_keys":["24|1|","26|1|"]} 
[2026-03-10 16:38:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5782,"order_number":"AZS-100326-014"} 
[2026-03-10 16:38:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5782,"order_number":"AZS-100326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 16:38:56"} 
[2026-03-10 16:46:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T04:46:46.366Z","date_to":"2026-03-10T16:46:46.366Z","per_page":"100"} 
[2026-03-10 16:46:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T04:46:46.351Z","date_to":"2026-03-10T16:46:46.351Z","per_page":"100"} 
[2026-03-10 16:46:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":4,"unique_order_numbers":15} 
[2026-03-10 16:46:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":4,"unique_order_numbers":15} 
[2026-03-10 16:46:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T04:46:46.351Z","date_to":"2026-03-10T16:46:46.351Z","per_page":"100"} 
[2026-03-10 16:46:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":4,"unique_order_numbers":15} 
[2026-03-10 17:00:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5781,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27765},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":27765,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-10 17:00:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5781,"items_count":2} 
[2026-03-10 17:00:01] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27765,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-03-10 17:00:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5781,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["5|1|"],"new_items_map_keys":["5|1|","6|2|"]} 
[2026-03-10 17:00:01] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5781,"order_number":"AZS-100326-013"} 
[2026-03-10 17:00:01] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-013","replaced_order_id":5781} 
[2026-03-10 17:00:01] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5784,"items_count":2,"items":[{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-03-10 17:00:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5784,"item_index":0,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5784}} 
[2026-03-10 17:00:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5784,"item_index":0,"menu_item_id":5} 
[2026-03-10 17:00:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5784,"item_index":1,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5784}} 
[2026-03-10 17:00:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5784,"item_index":1,"menu_item_id":6} 
[2026-03-10 17:00:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5781,"new_order_id":5784,"order_number":"AZS-100326-013"} 
[2026-03-10 17:21:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5778,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":27750},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27751},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":27752},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27753},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27754},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27755}],"validated_items":[{"id":27750,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":27751,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27752,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":27753,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27754,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27755,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-10 17:21:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5778,"items_count":6} 
[2026-03-10 17:21:59] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27750,"menu_item_id":114,"quantity":1},{"id":27751,"menu_item_id":396,"quantity":2},{"id":27752,"menu_item_id":50,"quantity":2},{"id":27753,"menu_item_id":61,"quantity":1},{"id":27754,"menu_item_id":56,"quantity":1},{"id":27755,"menu_item_id":5,"quantity":1}]} 
[2026-03-10 17:21:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5778,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","396|2|","50|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["114|1|","396|2|","50|2|","61|1|","56|1|","5|1|"]} 
[2026-03-10 17:21:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5778,"order_number":"AZS-100326-012"} 
[2026-03-10 17:21:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5778,"order_number":"AZS-100326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 17:21:59"} 
[2026-03-10 17:38:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5778,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":27750},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27751},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":27752},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27753},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27754},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27755}],"validated_items":[{"id":27750,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":27751,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27752,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":27753,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27754,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27755,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-10 17:38:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5778,"items_count":6} 
[2026-03-10 17:38:29] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27750,"menu_item_id":114,"quantity":1},{"id":27751,"menu_item_id":396,"quantity":2},{"id":27752,"menu_item_id":50,"quantity":2},{"id":27753,"menu_item_id":61,"quantity":1},{"id":27754,"menu_item_id":56,"quantity":1},{"id":27755,"menu_item_id":5,"quantity":1}]} 
[2026-03-10 17:38:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5778,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","396|2|","50|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["114|1|","396|2|","50|2|","61|1|","56|1|","5|1|"]} 
[2026-03-10 17:38:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5778,"order_number":"AZS-100326-012"} 
[2026-03-10 17:38:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5778,"order_number":"AZS-100326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 17:38:29"} 
[2026-03-10 17:38:53] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5778,"order_number":"AZS-100326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 17:38:53"} 
[2026-03-10 17:38:53] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5778,"order_number":"AZS-100326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 17:38:53"} 
[2026-03-10 17:38:53] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5778,"order_number":"AZS-100326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 17:38:53"} 
[2026-03-10 17:38:53] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5778,"order_number":"AZS-100326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 17:38:53"} 
[2026-03-10 17:38:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":5778,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":27750},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27751},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":27752},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27754},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27755}],"validated_items":[{"id":27750,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":27751,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27752,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":27754,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27755,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-10 17:38:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5778,"items_count":5} 
[2026-03-10 17:38:53] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[27753],"items":[{"id":27750,"menu_item_id":114,"quantity":1},{"id":27751,"menu_item_id":396,"quantity":2},{"id":27752,"menu_item_id":50,"quantity":2},{"id":27754,"menu_item_id":56,"quantity":1},{"id":27755,"menu_item_id":5,"quantity":1}]} 
[2026-03-10 17:38:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5778,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["114|1|","396|2|","50|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["114|1|","396|2|","50|2|","56|1|","5|1|"]} 
[2026-03-10 17:38:53] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5778,"order_number":"AZS-100326-012","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3500,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-10 17:38:53","original_payment_amount":"0.00","grand_total":3280.0,"timestamp":"2026-03-10 17:38:53"} 
[2026-03-10 17:38:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5778,"order_number":"AZS-100326-012"} 
[2026-03-10 17:38:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-012","replaced_order_id":5778} 
[2026-03-10 17:38:53] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5778,"new_order_id":5785,"order_number":"AZS-100326-012","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3500.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-10 17:38:53","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-10 17:38:53"} 
[2026-03-10 17:38:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5785,"items_count":5,"items":[{"menu_item_id":114,"quantity":1,"price":2299.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":50,"quantity":2,"price":129.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-03-10 17:38:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5785,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5785}} 
[2026-03-10 17:38:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5785,"item_index":0,"menu_item_id":114} 
[2026-03-10 17:38:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5785,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5785}} 
[2026-03-10 17:38:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5785,"item_index":1,"menu_item_id":396} 
[2026-03-10 17:38:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5785,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5785}} 
[2026-03-10 17:38:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5785,"item_index":2,"menu_item_id":50} 
[2026-03-10 17:38:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5785,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5785}} 
[2026-03-10 17:38:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5785,"item_index":3,"menu_item_id":56} 
[2026-03-10 17:38:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5785,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5785}} 
[2026-03-10 17:38:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5785,"item_index":4,"menu_item_id":5} 
[2026-03-10 17:38:53] local.ERROR: Error tracking recipe usage for order 5785: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5785, 114, 77, 1, 100, 0.00, Order #AZS-100326-012 - 1x Chicken Shinwari - Full, 2026-03-10 17:38:53, 2026-03-10 17:38:53))  
[2026-03-10 17:38:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5778,"new_order_id":5785,"order_number":"AZS-100326-012"} 
[2026-03-10 17:38:54] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5778,"new_order_id":5785,"order_number":"AZS-100326-012","route":"api/orders/5778"} 
[2026-03-10 18:02:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":5786,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":27776},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":27777},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27778},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":27779}],"validated_items":[{"id":27776,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"id":27777,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":27778,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27779,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-10 18:02:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5786,"items_count":4} 
[2026-03-10 18:02:10] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[27780],"items":[{"id":27776,"menu_item_id":137,"quantity":1},{"id":27777,"menu_item_id":105,"quantity":1},{"id":27778,"menu_item_id":56,"quantity":1},{"id":27779,"menu_item_id":396,"quantity":2}]} 
[2026-03-10 18:02:10] local.INFO: PosOrderController::update - Item changes check {"order_id":5786,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["137|1|","105|1|","56|1|","396|2|","5|1|"],"new_items_map_keys":["137|1|","105|1|","56|1|","396|2|"]} 
[2026-03-10 18:02:10] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5786,"order_number":"AZS-100326-016"} 
[2026-03-10 18:02:10] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-016","replaced_order_id":5786} 
[2026-03-10 18:02:10] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5787,"items_count":4,"items":[{"menu_item_id":137,"quantity":1,"price":"1299.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"}]} 
[2026-03-10 18:02:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5787,"item_index":0,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5787}} 
[2026-03-10 18:02:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5787,"item_index":0,"menu_item_id":137} 
[2026-03-10 18:02:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5787,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5787}} 
[2026-03-10 18:02:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5787,"item_index":1,"menu_item_id":105} 
[2026-03-10 18:02:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5787,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5787}} 
[2026-03-10 18:02:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5787,"item_index":2,"menu_item_id":56} 
[2026-03-10 18:02:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5787,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5787}} 
[2026-03-10 18:02:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5787,"item_index":3,"menu_item_id":396} 
[2026-03-10 18:02:10] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5786,"new_order_id":5787,"order_number":"AZS-100326-016"} 
[2026-03-10 18:03:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5784,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27769},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27770}],"validated_items":[{"id":27769,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27770,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-10 18:03:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5784,"items_count":2} 
[2026-03-10 18:03:09] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27769,"menu_item_id":5,"quantity":1},{"id":27770,"menu_item_id":6,"quantity":2}]} 
[2026-03-10 18:03:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5784,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["5|1|","6|2|"],"new_items_map_keys":["5|1|","6|2|"]} 
[2026-03-10 18:03:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5784,"order_number":"AZS-100326-013"} 
[2026-03-10 18:03:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5784,"order_number":"AZS-100326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 18:03:09"} 
[2026-03-10 18:05:07] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5784,"order_number":"AZS-100326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":600,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 18:05:07"} 
[2026-03-10 18:05:07] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5784,"order_number":"AZS-100326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 18:05:07"} 
[2026-03-10 18:05:07] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5784,"order_number":"AZS-100326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 18:05:07"} 
[2026-03-10 18:05:07] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5784,"order_number":"AZS-100326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 18:05:07"} 
[2026-03-10 18:05:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5784,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27769},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":27770}],"validated_items":[{"id":27769,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27770,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-10 18:05:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5784,"items_count":2} 
[2026-03-10 18:05:07] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27769,"menu_item_id":5,"quantity":1},{"id":27770,"menu_item_id":6,"quantity":2}]} 
[2026-03-10 18:05:07] local.INFO: PosOrderController::update - Item changes check {"order_id":5784,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["5|1|","6|2|"],"new_items_map_keys":["5|1|","6|2|"]} 
[2026-03-10 18:05:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5784,"order_number":"AZS-100326-013"} 
[2026-03-10 18:05:07] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5784,"order_number":"AZS-100326-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":600,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-10 18:05:07","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-10 18:05:07"} 
[2026-03-10 18:05:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5784,"order_number":"AZS-100326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-10 18:05:07"} 
[2026-03-10 18:05:07] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5784,"order_number":"AZS-100326-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"600.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-10 18:05:07","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"600.00","database_verification_match":true,"timestamp":"2026-03-10 18:05:07"} 
[2026-03-10 18:53:23] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5782,"order_number":"AZS-100326-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 18:53:23"} 
[2026-03-10 18:53:23] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5782,"order_number":"AZS-100326-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 18:53:23"} 
[2026-03-10 18:53:23] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5782,"order_number":"AZS-100326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 18:53:23"} 
[2026-03-10 18:53:23] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5782,"order_number":"AZS-100326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 18:53:23"} 
[2026-03-10 18:53:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5782,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":27766},{"menu_item_id":26,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":27767}],"validated_items":[{"id":27766,"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":27767,"menu_item_id":26,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-10 18:53:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5782,"items_count":2} 
[2026-03-10 18:53:23] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27766,"menu_item_id":24,"quantity":1},{"id":27767,"menu_item_id":26,"quantity":1}]} 
[2026-03-10 18:53:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5782,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["24|1|","26|1|"],"new_items_map_keys":["24|1|","26|1|"]} 
[2026-03-10 18:53:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5782,"order_number":"AZS-100326-014"} 
[2026-03-10 18:53:23] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5782,"order_number":"AZS-100326-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-10 18:53:23","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-10 18:53:23"} 
[2026-03-10 18:53:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5782,"order_number":"AZS-100326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-10 18:53:23"} 
[2026-03-10 18:53:23] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5782,"order_number":"AZS-100326-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-10 18:53:23","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-10 18:53:23"} 
[2026-03-10 18:54:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5792,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":27807},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":27808},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":27809},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27810}],"validated_items":[{"id":27807,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":27808,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":27809,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":27810,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 18:54:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5792,"items_count":4} 
[2026-03-10 18:54:01] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27807,"menu_item_id":96,"quantity":1},{"id":27808,"menu_item_id":396,"quantity":1},{"id":27809,"menu_item_id":50,"quantity":1},{"id":27810,"menu_item_id":61,"quantity":1}]} 
[2026-03-10 18:54:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5792,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","396|1|","50|1|","61|1|"],"new_items_map_keys":["96|1|","396|1|","50|1|","61|1|"]} 
[2026-03-10 18:54:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5792,"order_number":"AZS-100326-021"} 
[2026-03-10 18:54:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5792,"order_number":"AZS-100326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-10 18:54:01"} 
[2026-03-10 18:54:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5790,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":27792},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":27793},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27794},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27795},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27796}],"validated_items":[{"id":27792,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":27793,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":27794,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27795,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27796,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 18:54:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5790,"items_count":5} 
[2026-03-10 18:54:36] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27792,"menu_item_id":114,"quantity":1},{"id":27793,"menu_item_id":396,"quantity":5},{"id":27794,"menu_item_id":61,"quantity":1},{"id":27795,"menu_item_id":56,"quantity":1},{"id":27796,"menu_item_id":5,"quantity":1}]} 
[2026-03-10 18:54:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5790,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|1|","396|5|","61|1|","56|1|","5|1|"],"new_items_map_keys":["114|1|","396|5|","61|1|","56|1|","5|1|"]} 
[2026-03-10 18:54:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5790,"order_number":"AZS-100326-019"} 
[2026-03-10 18:54:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5790,"order_number":"AZS-100326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-10 18:54:36"} 
[2026-03-10 18:55:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5787,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":27781},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":27782},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27783},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27784}],"validated_items":[{"id":27781,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":27782,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":27783,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27784,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-10 18:55:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5787,"items_count":4} 
[2026-03-10 18:55:58] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27781,"menu_item_id":137,"quantity":1},{"id":27782,"menu_item_id":105,"quantity":1},{"id":27783,"menu_item_id":56,"quantity":1},{"id":27784,"menu_item_id":396,"quantity":2}]} 
[2026-03-10 18:55:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5787,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["137|1|","105|1|","56|1|","396|2|"],"new_items_map_keys":["137|1|","105|1|","56|1|","396|2|"]} 
[2026-03-10 18:55:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5787,"order_number":"AZS-100326-016"} 
[2026-03-10 18:55:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5787,"order_number":"AZS-100326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 18:55:58"} 
[2026-03-10 18:59:42] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5787,"order_number":"AZS-100326-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 18:59:42"} 
[2026-03-10 18:59:42] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5787,"order_number":"AZS-100326-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 18:59:42"} 
[2026-03-10 18:59:42] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5787,"order_number":"AZS-100326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 18:59:42"} 
[2026-03-10 18:59:42] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5787,"order_number":"AZS-100326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 18:59:42"} 
[2026-03-10 18:59:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5787,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":27781},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":27782},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27783},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27784}],"validated_items":[{"id":27781,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":27782,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":27783,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27784,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-10 18:59:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5787,"items_count":4} 
[2026-03-10 18:59:42] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27781,"menu_item_id":137,"quantity":1},{"id":27782,"menu_item_id":105,"quantity":1},{"id":27783,"menu_item_id":56,"quantity":1},{"id":27784,"menu_item_id":396,"quantity":2}]} 
[2026-03-10 18:59:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5787,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["137|1|","105|1|","56|1|","396|2|"],"new_items_map_keys":["137|1|","105|1|","56|1|","396|2|"]} 
[2026-03-10 18:59:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5787,"order_number":"AZS-100326-016"} 
[2026-03-10 18:59:42] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5787,"order_number":"AZS-100326-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-10 18:59:42","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-10 18:59:42"} 
[2026-03-10 18:59:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5787,"order_number":"AZS-100326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-10 18:59:42"} 
[2026-03-10 18:59:42] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5787,"order_number":"AZS-100326-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-10 18:59:42","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-03-10 18:59:42"} 
[2026-03-10 19:23:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5792,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":27807},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":27808},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":27809},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27810},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27807,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":27808,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":27809,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":27810,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 19:23:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5792,"items_count":5} 
[2026-03-10 19:23:54] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27807,"menu_item_id":96,"quantity":1},{"id":27808,"menu_item_id":396,"quantity":1},{"id":27809,"menu_item_id":50,"quantity":1},{"id":27810,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-03-10 19:23:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5792,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["96|1|","396|1|","50|1|","61|1|"],"new_items_map_keys":["96|1|","396|1|","50|1|","61|1|","56|1|"]} 
[2026-03-10 19:23:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5792,"order_number":"AZS-100326-021"} 
[2026-03-10 19:23:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-021","replaced_order_id":5792} 
[2026-03-10 19:23:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5793,"items_count":5,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"}]} 
[2026-03-10 19:23:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5793,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5793}} 
[2026-03-10 19:23:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5793,"item_index":0,"menu_item_id":96} 
[2026-03-10 19:23:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5793,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5793}} 
[2026-03-10 19:23:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5793,"item_index":1,"menu_item_id":396} 
[2026-03-10 19:23:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5793,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5793}} 
[2026-03-10 19:23:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5793,"item_index":2,"menu_item_id":50} 
[2026-03-10 19:23:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5793,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5793}} 
[2026-03-10 19:23:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5793,"item_index":3,"menu_item_id":61} 
[2026-03-10 19:23:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5793,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5793}} 
[2026-03-10 19:23:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5793,"item_index":4,"menu_item_id":56} 
[2026-03-10 19:23:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5792,"new_order_id":5793,"order_number":"AZS-100326-021"} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":1,"order_id":5791,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":27797},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":27798},{"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null,"id":27799},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":27800},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":27801},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27802},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27804},{"menu_item_id":29,"quantity":5,"discount_percent":0,"notes":null,"id":27805},{"menu_item_id":400,"quantity":300,"discount_percent":0,"notes":null,"id":27806}],"validated_items":[{"id":27797,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"id":27798,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":27799,"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null},{"id":27800,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":27801,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":27802,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27804,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":27805,"menu_item_id":29,"quantity":5,"discount_percent":0,"notes":null},{"id":27806,"menu_item_id":400,"quantity":300,"discount_percent":0,"notes":null}]} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5791,"items_count":9} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":1,"items_to_remove":[27803],"items":[{"id":27797,"menu_item_id":137,"quantity":1},{"id":27798,"menu_item_id":105,"quantity":1},{"id":27799,"menu_item_id":87,"quantity":1},{"id":27800,"menu_item_id":62,"quantity":1},{"id":27801,"menu_item_id":65,"quantity":1},{"id":27802,"menu_item_id":61,"quantity":1},{"id":27804,"menu_item_id":5,"quantity":1},{"id":27805,"menu_item_id":29,"quantity":5},{"id":27806,"menu_item_id":400,"quantity":300}]} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5791,"has_item_changes":true,"old_items_count":10,"new_items_count":9,"old_items_map_keys":["137|1|","105|1|","87|1|","62|1|","65|1|","61|2|","56|1|","5|1|","29|5|","400|300|"],"new_items_map_keys":["137|1|","105|1|","87|1|","62|1|","65|1|","61|1|","5|1|","29|5|","400|300|"]} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5791,"order_number":"AZS-100326-020"} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-020","replaced_order_id":5791} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5794,"items_count":9,"items":[{"menu_item_id":137,"quantity":1,"price":"1299.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":87,"quantity":1,"price":"1999.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":29,"quantity":5,"price":"250.00"},{"menu_item_id":400,"quantity":300,"price":"1.00"}]} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5794,"item_index":0,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5794}} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5794,"item_index":0,"menu_item_id":137} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5794,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5794}} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5794,"item_index":1,"menu_item_id":105} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5794,"item_index":2,"item_data":{"menu_item_id":87,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5794}} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5794,"item_index":2,"menu_item_id":87} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5794,"item_index":3,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5794}} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5794,"item_index":3,"menu_item_id":62} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5794,"item_index":4,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5794}} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5794,"item_index":4,"menu_item_id":65} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5794,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5794}} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5794,"item_index":5,"menu_item_id":61} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5794,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5794}} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5794,"item_index":6,"menu_item_id":5} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5794,"item_index":7,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":5,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5794}} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5794,"item_index":7,"menu_item_id":29} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5794,"item_index":8,"item_data":{"menu_item_id":400,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL ITEMS","quantity":300,"price":"1.00","discount_percent":0.0,"discount_amount":0.0,"total":300.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5794}} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5794,"item_index":8,"menu_item_id":400} 
[2026-03-10 19:26:46] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5791,"new_order_id":5794,"order_number":"AZS-100326-020"} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":5794,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":27816},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":27817},{"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null,"id":27818},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":27819},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":27820},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27821},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27822},{"menu_item_id":29,"quantity":5,"discount_percent":0,"notes":null,"id":27823},{"menu_item_id":400,"quantity":300,"discount_percent":0,"notes":null,"id":27824},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":27816,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"id":27817,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":27818,"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null},{"id":27819,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":27820,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":27821,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27822,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":27823,"menu_item_id":29,"quantity":5,"discount_percent":0,"notes":null},{"id":27824,"menu_item_id":400,"quantity":300,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5794,"items_count":11} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27816,"menu_item_id":137,"quantity":1},{"id":27817,"menu_item_id":105,"quantity":1},{"id":27818,"menu_item_id":87,"quantity":1},{"id":27819,"menu_item_id":62,"quantity":1},{"id":27820,"menu_item_id":65,"quantity":1},{"id":27821,"menu_item_id":61,"quantity":1},{"id":27822,"menu_item_id":5,"quantity":1},{"id":27823,"menu_item_id":29,"quantity":5},{"id":27824,"menu_item_id":400,"quantity":300},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":50,"quantity":2}]} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Item changes check {"order_id":5794,"has_item_changes":true,"old_items_count":9,"new_items_count":11,"old_items_map_keys":["137|1|","105|1|","87|1|","62|1|","65|1|","61|1|","5|1|","29|5|","400|300|"],"new_items_map_keys":["137|1|","105|1|","87|1|","62|1|","65|1|","61|1|","5|1|","29|5|","400|300|","396|2|","50|2|"]} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5794,"order_number":"AZS-100326-020"} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-020","replaced_order_id":5794} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5795,"items_count":11,"items":[{"menu_item_id":137,"quantity":1,"price":"1299.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":87,"quantity":1,"price":"1999.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":29,"quantity":5,"price":"250.00"},{"menu_item_id":400,"quantity":300,"price":"1.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"}]} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5795,"item_index":0,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5795}} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5795,"item_index":0,"menu_item_id":137} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5795,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5795}} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5795,"item_index":1,"menu_item_id":105} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5795,"item_index":2,"item_data":{"menu_item_id":87,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5795}} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5795,"item_index":2,"menu_item_id":87} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5795,"item_index":3,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5795}} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5795,"item_index":3,"menu_item_id":62} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5795,"item_index":4,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5795}} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5795,"item_index":4,"menu_item_id":65} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5795,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5795}} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5795,"item_index":5,"menu_item_id":61} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5795,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5795}} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5795,"item_index":6,"menu_item_id":5} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5795,"item_index":7,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":5,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5795}} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5795,"item_index":7,"menu_item_id":29} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5795,"item_index":8,"item_data":{"menu_item_id":400,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL ITEMS","quantity":300,"price":"1.00","discount_percent":0.0,"discount_amount":0.0,"total":300.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5795}} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5795,"item_index":8,"menu_item_id":400} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5795,"item_index":9,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5795}} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5795,"item_index":9,"menu_item_id":396} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5795,"item_index":10,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5795}} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5795,"item_index":10,"menu_item_id":50} 
[2026-03-10 19:28:21] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5794,"new_order_id":5795,"order_number":"AZS-100326-020"} 
[2026-03-10 19:29:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5790,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":27792},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":27793},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27794},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27795},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27796},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27792,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":27793,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":27794,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27795,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27796,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 19:29:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5790,"items_count":6} 
[2026-03-10 19:29:23] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27792,"menu_item_id":114,"quantity":1},{"id":27793,"menu_item_id":396,"quantity":5},{"id":27794,"menu_item_id":61,"quantity":1},{"id":27795,"menu_item_id":56,"quantity":1},{"id":27796,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-10 19:29:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5790,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["114|1|","396|5|","61|1|","56|1|","5|1|"],"new_items_map_keys":["114|1|","396|5|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-03-10 19:29:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5790,"order_number":"AZS-100326-019"} 
[2026-03-10 19:29:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-019","replaced_order_id":5790} 
[2026-03-10 19:29:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5796,"items_count":6,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-10 19:29:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5796,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5796}} 
[2026-03-10 19:29:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5796,"item_index":0,"menu_item_id":114} 
[2026-03-10 19:29:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5796,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5796}} 
[2026-03-10 19:29:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5796,"item_index":1,"menu_item_id":396} 
[2026-03-10 19:29:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5796,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5796}} 
[2026-03-10 19:29:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5796,"item_index":2,"menu_item_id":61} 
[2026-03-10 19:29:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5796,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5796}} 
[2026-03-10 19:29:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5796,"item_index":3,"menu_item_id":56} 
[2026-03-10 19:29:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5796,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5796}} 
[2026-03-10 19:29:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5796,"item_index":4,"menu_item_id":5} 
[2026-03-10 19:29:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5796,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5796}} 
[2026-03-10 19:29:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5796,"item_index":5,"menu_item_id":3} 
[2026-03-10 19:29:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5790,"new_order_id":5796,"order_number":"AZS-100326-019"} 
[2026-03-10 19:29:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5796,"item_index":0,"item_id":27792} 
[2026-03-10 19:29:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5796,"item_index":1,"item_id":27793} 
[2026-03-10 19:29:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5796,"item_index":2,"item_id":27794} 
[2026-03-10 19:29:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5796,"item_index":3,"item_id":27795} 
[2026-03-10 19:29:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5796,"item_index":4,"item_id":27796} 
[2026-03-10 19:29:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5796,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":27792},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":27793},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27794},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27795},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27796},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-10 19:29:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5796,"items_count":6} 
[2026-03-10 19:29:30] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[27836,27837,27838,27839,27840,27841],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":396,"quantity":5},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-10 19:29:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5796,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","396|5|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["114|1|","396|5|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-03-10 19:29:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5796,"order_number":"AZS-100326-019"} 
[2026-03-10 19:29:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5796,"order_number":"AZS-100326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 19:29:30"} 
[2026-03-10 19:29:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5789,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":27786},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":27787},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":27788},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27789},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27790},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27791},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":27786,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":27787,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":27788,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":27789,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27790,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27791,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-10 19:29:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5789,"items_count":7} 
[2026-03-10 19:29:48] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27786,"menu_item_id":105,"quantity":1},{"id":27787,"menu_item_id":112,"quantity":1},{"id":27788,"menu_item_id":396,"quantity":2},{"id":27789,"menu_item_id":61,"quantity":1},{"id":27790,"menu_item_id":56,"quantity":1},{"id":27791,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-03-10 19:29:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5789,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["105|1|","112|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","112|1|","396|2|","61|1|","56|1|","5|1|","2|3|"]} 
[2026-03-10 19:29:48] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5789,"order_number":"AZS-100326-018"} 
[2026-03-10 19:29:48] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-018","replaced_order_id":5789} 
[2026-03-10 19:29:48] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5797,"items_count":7,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"}]} 
[2026-03-10 19:29:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5797,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5797}} 
[2026-03-10 19:29:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5797,"item_index":0,"menu_item_id":105} 
[2026-03-10 19:29:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5797,"item_index":1,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5797}} 
[2026-03-10 19:29:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5797,"item_index":1,"menu_item_id":112} 
[2026-03-10 19:29:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5797,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5797}} 
[2026-03-10 19:29:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5797,"item_index":2,"menu_item_id":396} 
[2026-03-10 19:29:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5797,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5797}} 
[2026-03-10 19:29:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5797,"item_index":3,"menu_item_id":61} 
[2026-03-10 19:29:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5797,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5797}} 
[2026-03-10 19:29:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5797,"item_index":4,"menu_item_id":56} 
[2026-03-10 19:29:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5797,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5797}} 
[2026-03-10 19:29:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5797,"item_index":5,"menu_item_id":5} 
[2026-03-10 19:29:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5797,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5797}} 
[2026-03-10 19:29:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5797,"item_index":6,"menu_item_id":2} 
[2026-03-10 19:29:48] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5789,"new_order_id":5797,"order_number":"AZS-100326-018"} 
[2026-03-10 19:30:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T07:30:24.651Z","date_to":"2026-03-10T19:30:24.651Z","per_page":"100"} 
[2026-03-10 19:30:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T07:30:24.665Z","date_to":"2026-03-10T19:30:24.665Z","per_page":"100"} 
[2026-03-10 19:30:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":6,"unique_order_numbers":21} 
[2026-03-10 19:30:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":6,"unique_order_numbers":21} 
[2026-03-10 19:30:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T07:30:24.651Z","date_to":"2026-03-10T19:30:24.651Z","per_page":"100"} 
[2026-03-10 19:30:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":6,"unique_order_numbers":21} 
[2026-03-10 19:32:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5793,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":27811},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":27812},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":27813},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27814},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27815},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27811,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":27812,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":27813,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":27814,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27815,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 19:32:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5793,"items_count":6} 
[2026-03-10 19:32:05] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27811,"menu_item_id":96,"quantity":1},{"id":27812,"menu_item_id":396,"quantity":1},{"id":27813,"menu_item_id":50,"quantity":1},{"id":27814,"menu_item_id":61,"quantity":1},{"id":27815,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":29,"quantity":1}]} 
[2026-03-10 19:32:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5793,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["96|1|","396|1|","50|1|","61|1|","56|1|"],"new_items_map_keys":["96|1|","396|1|","50|1|","61|1|","56|1|","29|1|"]} 
[2026-03-10 19:32:05] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5793,"order_number":"AZS-100326-021"} 
[2026-03-10 19:32:05] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-021","replaced_order_id":5793} 
[2026-03-10 19:32:05] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5798,"items_count":6,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"}]} 
[2026-03-10 19:32:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5798,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5798}} 
[2026-03-10 19:32:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5798,"item_index":0,"menu_item_id":96} 
[2026-03-10 19:32:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5798,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5798}} 
[2026-03-10 19:32:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5798,"item_index":1,"menu_item_id":396} 
[2026-03-10 19:32:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5798,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5798}} 
[2026-03-10 19:32:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5798,"item_index":2,"menu_item_id":50} 
[2026-03-10 19:32:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5798,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5798}} 
[2026-03-10 19:32:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5798,"item_index":3,"menu_item_id":61} 
[2026-03-10 19:32:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5798,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5798}} 
[2026-03-10 19:32:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5798,"item_index":4,"menu_item_id":56} 
[2026-03-10 19:32:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5798,"item_index":5,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5798}} 
[2026-03-10 19:32:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5798,"item_index":5,"menu_item_id":29} 
[2026-03-10 19:32:05] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5793,"new_order_id":5798,"order_number":"AZS-100326-021"} 
[2026-03-10 19:43:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5797,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":27842},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":27843},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27844},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27845},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27846},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27847},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":27848}],"validated_items":[{"id":27842,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":27843,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":27844,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27845,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27846,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27847,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27848,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-10 19:43:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5797,"items_count":7} 
[2026-03-10 19:43:49] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27842,"menu_item_id":105,"quantity":1},{"id":27843,"menu_item_id":112,"quantity":1},{"id":27844,"menu_item_id":396,"quantity":2},{"id":27845,"menu_item_id":61,"quantity":1},{"id":27846,"menu_item_id":56,"quantity":1},{"id":27847,"menu_item_id":5,"quantity":1},{"id":27848,"menu_item_id":2,"quantity":3}]} 
[2026-03-10 19:43:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5797,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["105|1|","112|1|","396|2|","61|1|","56|1|","5|1|","2|3|"],"new_items_map_keys":["105|1|","112|1|","396|2|","61|1|","56|1|","5|1|","2|3|"]} 
[2026-03-10 19:43:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5797,"order_number":"AZS-100326-018"} 
[2026-03-10 19:43:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5797,"order_number":"AZS-100326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 19:43:49"} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":5795,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":27825},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":27826},{"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null,"id":27827},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":27828},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":27829},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27830},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27831},{"menu_item_id":29,"quantity":5,"discount_percent":0,"notes":null,"id":27832},{"menu_item_id":400,"quantity":300,"discount_percent":0,"notes":null,"id":27833},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":27834},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":27835},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27825,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"id":27826,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":27827,"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null},{"id":27828,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":27829,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":27830,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27831,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":27832,"menu_item_id":29,"quantity":5,"discount_percent":0,"notes":null},{"id":27833,"menu_item_id":400,"quantity":300,"discount_percent":0,"notes":null},{"id":27834,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":27835,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5795,"items_count":12} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27825,"menu_item_id":137,"quantity":1},{"id":27826,"menu_item_id":105,"quantity":1},{"id":27827,"menu_item_id":87,"quantity":1},{"id":27828,"menu_item_id":62,"quantity":1},{"id":27829,"menu_item_id":65,"quantity":1},{"id":27830,"menu_item_id":61,"quantity":1},{"id":27831,"menu_item_id":5,"quantity":1},{"id":27832,"menu_item_id":29,"quantity":5},{"id":27833,"menu_item_id":400,"quantity":300},{"id":27834,"menu_item_id":396,"quantity":2},{"id":27835,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5795,"has_item_changes":true,"old_items_count":11,"new_items_count":12,"old_items_map_keys":["137|1|","105|1|","87|1|","62|1|","65|1|","61|1|","5|1|","29|5|","400|300|","396|2|","50|2|"],"new_items_map_keys":["137|1|","105|1|","87|1|","62|1|","65|1|","61|1|","5|1|","29|5|","400|300|","396|2|","50|2|","3|1|"]} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5795,"order_number":"AZS-100326-020"} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-020","replaced_order_id":5795} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5800,"items_count":12,"items":[{"menu_item_id":137,"quantity":1,"price":"1299.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":87,"quantity":1,"price":"1999.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":29,"quantity":5,"price":"250.00"},{"menu_item_id":400,"quantity":300,"price":"1.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5800,"item_index":0,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5800}} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5800,"item_index":0,"menu_item_id":137} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5800,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5800}} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5800,"item_index":1,"menu_item_id":105} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5800,"item_index":2,"item_data":{"menu_item_id":87,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5800}} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5800,"item_index":2,"menu_item_id":87} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5800,"item_index":3,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5800}} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5800,"item_index":3,"menu_item_id":62} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5800,"item_index":4,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5800}} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5800,"item_index":4,"menu_item_id":65} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5800,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5800}} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5800,"item_index":5,"menu_item_id":61} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5800,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5800}} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5800,"item_index":6,"menu_item_id":5} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5800,"item_index":7,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":5,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5800}} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5800,"item_index":7,"menu_item_id":29} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5800,"item_index":8,"item_data":{"menu_item_id":400,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL ITEMS","quantity":300,"price":"1.00","discount_percent":0.0,"discount_amount":0.0,"total":300.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5800}} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5800,"item_index":8,"menu_item_id":400} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5800,"item_index":9,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5800}} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5800,"item_index":9,"menu_item_id":396} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5800,"item_index":10,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5800}} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5800,"item_index":10,"menu_item_id":50} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5800,"item_index":11,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5800}} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5800,"item_index":11,"menu_item_id":3} 
[2026-03-10 19:44:52] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5795,"new_order_id":5800,"order_number":"AZS-100326-020"} 
[2026-03-10 19:46:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5796,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":27836},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":27837},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27838},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27839},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27840},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27841}],"validated_items":[{"id":27836,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":27837,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":27838,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27839,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27840,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27841,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-10 19:46:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5796,"items_count":6} 
[2026-03-10 19:46:33] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27836,"menu_item_id":114,"quantity":1},{"id":27837,"menu_item_id":396,"quantity":5},{"id":27838,"menu_item_id":61,"quantity":1},{"id":27839,"menu_item_id":56,"quantity":1},{"id":27840,"menu_item_id":5,"quantity":1},{"id":27841,"menu_item_id":3,"quantity":1}]} 
[2026-03-10 19:46:33] local.INFO: PosOrderController::update - Item changes check {"order_id":5796,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","396|5|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["114|1|","396|5|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-03-10 19:46:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5796,"order_number":"AZS-100326-019"} 
[2026-03-10 19:46:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5796,"order_number":"AZS-100326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 19:46:33"} 
[2026-03-10 19:48:09] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5796,"order_number":"AZS-100326-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 19:48:09"} 
[2026-03-10 19:48:09] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5796,"order_number":"AZS-100326-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 19:48:09"} 
[2026-03-10 19:48:09] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5796,"order_number":"AZS-100326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 19:48:09"} 
[2026-03-10 19:48:09] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5796,"order_number":"AZS-100326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 19:48:09"} 
[2026-03-10 19:48:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":5796,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":27836},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":27837},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27839},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27840},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27841}],"validated_items":[{"id":27836,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":27837,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":27839,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27840,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27841,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-10 19:48:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5796,"items_count":5} 
[2026-03-10 19:48:09] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[27838],"items":[{"id":27836,"menu_item_id":114,"quantity":1},{"id":27837,"menu_item_id":396,"quantity":5},{"id":27839,"menu_item_id":56,"quantity":1},{"id":27840,"menu_item_id":5,"quantity":1},{"id":27841,"menu_item_id":3,"quantity":1}]} 
[2026-03-10 19:48:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5796,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["114|1|","396|5|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["114|1|","396|5|","56|1|","5|1|","3|1|"]} 
[2026-03-10 19:48:09] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5796,"order_number":"AZS-100326-019","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3500,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-10 19:48:09","original_payment_amount":"0.00","grand_total":3433.0,"timestamp":"2026-03-10 19:48:09"} 
[2026-03-10 19:48:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5796,"order_number":"AZS-100326-019"} 
[2026-03-10 19:48:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-019","replaced_order_id":5796} 
[2026-03-10 19:48:09] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5796,"new_order_id":5801,"order_number":"AZS-100326-019","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3500.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-10 19:48:09","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-10 19:48:09"} 
[2026-03-10 19:48:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5801,"items_count":5,"items":[{"menu_item_id":114,"quantity":1,"price":2299.0},{"menu_item_id":396,"quantity":5,"price":99.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-10 19:48:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5801,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5801}} 
[2026-03-10 19:48:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5801,"item_index":0,"menu_item_id":114} 
[2026-03-10 19:48:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5801,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5801}} 
[2026-03-10 19:48:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5801,"item_index":1,"menu_item_id":396} 
[2026-03-10 19:48:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5801,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5801}} 
[2026-03-10 19:48:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5801,"item_index":2,"menu_item_id":56} 
[2026-03-10 19:48:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5801,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5801}} 
[2026-03-10 19:48:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5801,"item_index":3,"menu_item_id":5} 
[2026-03-10 19:48:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5801,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5801}} 
[2026-03-10 19:48:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5801,"item_index":4,"menu_item_id":3} 
[2026-03-10 19:48:09] local.ERROR: Error tracking recipe usage for order 5801: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5801, 114, 77, 1, 100, 0.00, Order #AZS-100326-019 - 1x Chicken Shinwari - Full, 2026-03-10 19:48:09, 2026-03-10 19:48:09))  
[2026-03-10 19:48:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5796,"new_order_id":5801,"order_number":"AZS-100326-019"} 
[2026-03-10 19:48:10] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5796,"new_order_id":5801,"order_number":"AZS-100326-019","route":"api/orders/5796"} 
[2026-03-10 19:51:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5797,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":27842},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":27843},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27844},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27845},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27846},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27847},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":27848}],"validated_items":[{"id":27842,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":27843,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":27844,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27845,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27846,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27847,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27848,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-10 19:51:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5797,"items_count":7} 
[2026-03-10 19:51:29] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27842,"menu_item_id":105,"quantity":1},{"id":27843,"menu_item_id":112,"quantity":1},{"id":27844,"menu_item_id":396,"quantity":2},{"id":27845,"menu_item_id":61,"quantity":1},{"id":27846,"menu_item_id":56,"quantity":1},{"id":27847,"menu_item_id":5,"quantity":1},{"id":27848,"menu_item_id":2,"quantity":3}]} 
[2026-03-10 19:51:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5797,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["105|1|","112|1|","396|2|","61|1|","56|1|","5|1|","2|3|"],"new_items_map_keys":["105|1|","112|1|","396|2|","61|1|","56|1|","5|1|","2|3|"]} 
[2026-03-10 19:51:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5797,"order_number":"AZS-100326-018"} 
[2026-03-10 19:51:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5797,"order_number":"AZS-100326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 19:51:29"} 
[2026-03-10 19:51:58] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5797,"order_number":"AZS-100326-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 19:51:58"} 
[2026-03-10 19:51:58] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5797,"order_number":"AZS-100326-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 19:51:58"} 
[2026-03-10 19:51:58] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5797,"order_number":"AZS-100326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 19:51:58"} 
[2026-03-10 19:51:58] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5797,"order_number":"AZS-100326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 19:51:58"} 
[2026-03-10 19:51:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":5797,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":27842},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":27843},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27844},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27845},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27847},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":27848}],"validated_items":[{"id":27842,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":27843,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":27844,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27845,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27847,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27848,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-10 19:51:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5797,"items_count":6} 
[2026-03-10 19:51:58] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[27846],"items":[{"id":27842,"menu_item_id":105,"quantity":1},{"id":27843,"menu_item_id":112,"quantity":1},{"id":27844,"menu_item_id":396,"quantity":2},{"id":27845,"menu_item_id":61,"quantity":1},{"id":27847,"menu_item_id":5,"quantity":1},{"id":27848,"menu_item_id":2,"quantity":3}]} 
[2026-03-10 19:51:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5797,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["105|1|","112|1|","396|2|","61|1|","56|1|","5|1|","2|3|"],"new_items_map_keys":["105|1|","112|1|","396|2|","61|1|","5|1|","2|3|"]} 
[2026-03-10 19:51:58] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5797,"order_number":"AZS-100326-018","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-10 19:51:58","original_payment_amount":"0.00","grand_total":4855.0,"timestamp":"2026-03-10 19:51:58"} 
[2026-03-10 19:51:58] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5797,"order_number":"AZS-100326-018"} 
[2026-03-10 19:51:58] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-018","replaced_order_id":5797} 
[2026-03-10 19:51:58] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5797,"new_order_id":5802,"order_number":"AZS-100326-018","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-10 19:51:58","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-10 19:51:58"} 
[2026-03-10 19:51:58] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5802,"items_count":6,"items":[{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":112,"quantity":1,"price":1699.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":2,"quantity":3,"price":130.0}]} 
[2026-03-10 19:51:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5802,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5802}} 
[2026-03-10 19:51:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5802,"item_index":0,"menu_item_id":105} 
[2026-03-10 19:51:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5802,"item_index":1,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":1699.0,"discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5802}} 
[2026-03-10 19:51:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5802,"item_index":1,"menu_item_id":112} 
[2026-03-10 19:51:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5802,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5802}} 
[2026-03-10 19:51:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5802,"item_index":2,"menu_item_id":396} 
[2026-03-10 19:51:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5802,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5802}} 
[2026-03-10 19:51:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5802,"item_index":3,"menu_item_id":61} 
[2026-03-10 19:51:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5802,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5802}} 
[2026-03-10 19:51:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5802,"item_index":4,"menu_item_id":5} 
[2026-03-10 19:51:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5802,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5802}} 
[2026-03-10 19:51:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5802,"item_index":5,"menu_item_id":2} 
[2026-03-10 19:51:58] local.ERROR: Error tracking recipe usage for order 5802: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5802, 105, 196, 1, 500, 0.00, Order #AZS-100326-018 - 1x Mutton Shinwari - Half, 2026-03-10 19:51:58, 2026-03-10 19:51:58))  
[2026-03-10 19:51:58] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5797,"new_order_id":5802,"order_number":"AZS-100326-018"} 
[2026-03-10 19:51:59] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5797,"new_order_id":5802,"order_number":"AZS-100326-018","route":"api/orders/5797"} 
[2026-03-10 19:52:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5798,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":27849},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":27850},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":27851},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27852},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27853},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null,"id":27854},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27849,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":27850,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":27851,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":27852,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27853,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27854,"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 19:52:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5798,"items_count":7} 
[2026-03-10 19:52:18] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27849,"menu_item_id":96,"quantity":1},{"id":27850,"menu_item_id":396,"quantity":1},{"id":27851,"menu_item_id":50,"quantity":1},{"id":27852,"menu_item_id":61,"quantity":1},{"id":27853,"menu_item_id":56,"quantity":1},{"id":27854,"menu_item_id":29,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-10 19:52:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5798,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["96|1|","396|1|","50|1|","61|1|","56|1|","29|1|"],"new_items_map_keys":["96|1|","396|1|","50|1|","61|1|","56|1|","29|1|","5|1|"]} 
[2026-03-10 19:52:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5798,"order_number":"AZS-100326-021"} 
[2026-03-10 19:52:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-021","replaced_order_id":5798} 
[2026-03-10 19:52:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5803,"items_count":7,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-10 19:52:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5803,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5803}} 
[2026-03-10 19:52:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5803,"item_index":0,"menu_item_id":96} 
[2026-03-10 19:52:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5803,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5803}} 
[2026-03-10 19:52:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5803,"item_index":1,"menu_item_id":396} 
[2026-03-10 19:52:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5803,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5803}} 
[2026-03-10 19:52:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5803,"item_index":2,"menu_item_id":50} 
[2026-03-10 19:52:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5803,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5803}} 
[2026-03-10 19:52:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5803,"item_index":3,"menu_item_id":61} 
[2026-03-10 19:52:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5803,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5803}} 
[2026-03-10 19:52:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5803,"item_index":4,"menu_item_id":56} 
[2026-03-10 19:52:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5803,"item_index":5,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5803}} 
[2026-03-10 19:52:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5803,"item_index":5,"menu_item_id":29} 
[2026-03-10 19:52:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5803,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5803}} 
[2026-03-10 19:52:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5803,"item_index":6,"menu_item_id":5} 
[2026-03-10 19:52:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5798,"new_order_id":5803,"order_number":"AZS-100326-021"} 
[2026-03-10 19:52:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5799,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":27855},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":27856},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27857},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27858},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":27859},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27855,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":27856,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":27857,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27858,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27859,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 19:52:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5799,"items_count":6} 
[2026-03-10 19:52:33] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27855,"menu_item_id":99,"quantity":1},{"id":27856,"menu_item_id":396,"quantity":4},{"id":27857,"menu_item_id":61,"quantity":1},{"id":27858,"menu_item_id":56,"quantity":1},{"id":27859,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-10 19:52:33] local.INFO: PosOrderController::update - Item changes check {"order_id":5799,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["99|1|","396|4|","61|1|","56|1|","3|1|"],"new_items_map_keys":["99|1|","396|4|","61|1|","56|1|","3|1|","5|1|"]} 
[2026-03-10 19:52:33] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5799,"order_number":"AZS-100326-022"} 
[2026-03-10 19:52:33] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-022","replaced_order_id":5799} 
[2026-03-10 19:52:33] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5804,"items_count":6,"items":[{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-10 19:52:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5804,"item_index":0,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5804}} 
[2026-03-10 19:52:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5804,"item_index":0,"menu_item_id":99} 
[2026-03-10 19:52:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5804,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5804}} 
[2026-03-10 19:52:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5804,"item_index":1,"menu_item_id":396} 
[2026-03-10 19:52:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5804,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5804}} 
[2026-03-10 19:52:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5804,"item_index":2,"menu_item_id":61} 
[2026-03-10 19:52:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5804,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5804}} 
[2026-03-10 19:52:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5804,"item_index":3,"menu_item_id":56} 
[2026-03-10 19:52:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5804,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5804}} 
[2026-03-10 19:52:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5804,"item_index":4,"menu_item_id":3} 
[2026-03-10 19:52:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5804,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5804}} 
[2026-03-10 19:52:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5804,"item_index":5,"menu_item_id":5} 
[2026-03-10 19:52:33] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5799,"new_order_id":5804,"order_number":"AZS-100326-022"} 
[2026-03-10 19:55:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T07:55:34.429Z","date_to":"2026-03-10T19:55:34.429Z","per_page":"100"} 
[2026-03-10 19:55:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":5,"unique_order_numbers":22} 
[2026-03-10 19:55:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T07:55:34.446Z","date_to":"2026-03-10T19:55:34.446Z","per_page":"100"} 
[2026-03-10 19:55:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":5,"unique_order_numbers":22} 
[2026-03-10 19:55:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T07:55:34.429Z","date_to":"2026-03-10T19:55:34.429Z","per_page":"100"} 
[2026-03-10 19:55:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":5,"unique_order_numbers":22} 
[2026-03-10 19:57:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5803,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27883},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":27884},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":27885},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27886},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27887},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":27888},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27889}],"validated_items":[{"id":27883,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27884,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":27885,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":27886,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27887,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27888,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":27889,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-10 19:57:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5803,"items_count":7} 
[2026-03-10 19:57:24] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27883,"menu_item_id":96,"quantity":1},{"id":27884,"menu_item_id":396,"quantity":1},{"id":27885,"menu_item_id":50,"quantity":1},{"id":27886,"menu_item_id":61,"quantity":1},{"id":27887,"menu_item_id":56,"quantity":1},{"id":27888,"menu_item_id":29,"quantity":1},{"id":27889,"menu_item_id":5,"quantity":1}]} 
[2026-03-10 19:57:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5803,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["96|1|","396|1|","50|1|","61|1|","56|1|","29|1|","5|1|"],"new_items_map_keys":["96|1|","396|1|","50|1|","61|1|","56|1|","29|1|","5|1|"]} 
[2026-03-10 19:57:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5803,"order_number":"AZS-100326-021"} 
[2026-03-10 19:57:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5803,"order_number":"AZS-100326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 19:57:24"} 
[2026-03-10 19:58:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T07:58:31.142Z","date_to":"2026-03-10T19:58:31.142Z","per_page":"100"} 
[2026-03-10 19:58:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T07:58:31.123Z","date_to":"2026-03-10T19:58:31.123Z","per_page":"100"} 
[2026-03-10 19:58:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":5,"unique_order_numbers":22} 
[2026-03-10 19:58:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":5,"unique_order_numbers":22} 
[2026-03-10 19:58:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T07:58:31.123Z","date_to":"2026-03-10T19:58:31.123Z","per_page":"100"} 
[2026-03-10 19:58:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":5,"unique_order_numbers":22} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":13,"items_to_remove_count":0,"order_id":5800,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":27860},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":27861},{"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null,"id":27862},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":27863},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":27864},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27865},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27866},{"menu_item_id":29,"quantity":5,"discount_percent":0,"notes":null,"id":27867},{"menu_item_id":400,"quantity":300,"discount_percent":0,"notes":null,"id":27868},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":27869},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":27870},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":27871},{"menu_item_id":6,"quantity":4,"discount_percent":0,"notes":null}],"validated_items":[{"id":27860,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"id":27861,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":27862,"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null},{"id":27863,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":27864,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":27865,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27866,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":27867,"menu_item_id":29,"quantity":5,"discount_percent":0,"notes":null},{"id":27868,"menu_item_id":400,"quantity":300,"discount_percent":0,"notes":null},{"id":27869,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":27870,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":27871,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5800,"items_count":13} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Processing items {"items_count":13,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27860,"menu_item_id":137,"quantity":1},{"id":27861,"menu_item_id":105,"quantity":1},{"id":27862,"menu_item_id":87,"quantity":1},{"id":27863,"menu_item_id":62,"quantity":1},{"id":27864,"menu_item_id":65,"quantity":1},{"id":27865,"menu_item_id":61,"quantity":1},{"id":27866,"menu_item_id":5,"quantity":1},{"id":27867,"menu_item_id":29,"quantity":5},{"id":27868,"menu_item_id":400,"quantity":300},{"id":27869,"menu_item_id":396,"quantity":2},{"id":27870,"menu_item_id":50,"quantity":2},{"id":27871,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":6,"quantity":4}]} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Item changes check {"order_id":5800,"has_item_changes":true,"old_items_count":12,"new_items_count":13,"old_items_map_keys":["137|1|","105|1|","87|1|","62|1|","65|1|","61|1|","5|1|","29|5|","400|300|","396|2|","50|2|","3|1|"],"new_items_map_keys":["137|1|","105|1|","87|1|","62|1|","65|1|","61|1|","5|1|","29|5|","400|300|","396|2|","50|2|","3|1|","6|4|"]} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5800,"order_number":"AZS-100326-020"} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-020","replaced_order_id":5800} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5805,"items_count":13,"items":[{"menu_item_id":137,"quantity":1,"price":"1299.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":87,"quantity":1,"price":"1999.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":29,"quantity":5,"price":"250.00"},{"menu_item_id":400,"quantity":300,"price":"1.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":6,"quantity":4,"price":"199.00"}]} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5805,"item_index":0,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5805}} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5805,"item_index":0,"menu_item_id":137} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5805,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5805}} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5805,"item_index":1,"menu_item_id":105} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5805,"item_index":2,"item_data":{"menu_item_id":87,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5805}} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5805,"item_index":2,"menu_item_id":87} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5805,"item_index":3,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5805}} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5805,"item_index":3,"menu_item_id":62} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5805,"item_index":4,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5805}} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5805,"item_index":4,"menu_item_id":65} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5805,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5805}} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5805,"item_index":5,"menu_item_id":61} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5805,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5805}} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5805,"item_index":6,"menu_item_id":5} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5805,"item_index":7,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":5,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5805}} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5805,"item_index":7,"menu_item_id":29} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5805,"item_index":8,"item_data":{"menu_item_id":400,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL ITEMS","quantity":300,"price":"1.00","discount_percent":0.0,"discount_amount":0.0,"total":300.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5805}} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5805,"item_index":8,"menu_item_id":400} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5805,"item_index":9,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5805}} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5805,"item_index":9,"menu_item_id":396} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5805,"item_index":10,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5805}} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5805,"item_index":10,"menu_item_id":50} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5805,"item_index":11,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5805}} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5805,"item_index":11,"menu_item_id":3} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5805,"item_index":12,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5805}} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5805,"item_index":12,"menu_item_id":6} 
[2026-03-10 20:04:13] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5800,"new_order_id":5805,"order_number":"AZS-100326-020"} 
[2026-03-10 20:04:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5804,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":27890},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":27891},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27892},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27893},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27894},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27895}],"validated_items":[{"id":27890,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":27891,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":27892,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27893,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27894,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":27895,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-10 20:04:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5804,"items_count":6} 
[2026-03-10 20:04:33] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27890,"menu_item_id":99,"quantity":1},{"id":27891,"menu_item_id":396,"quantity":4},{"id":27892,"menu_item_id":61,"quantity":1},{"id":27893,"menu_item_id":56,"quantity":1},{"id":27894,"menu_item_id":3,"quantity":1},{"id":27895,"menu_item_id":5,"quantity":1}]} 
[2026-03-10 20:04:33] local.INFO: PosOrderController::update - Item changes check {"order_id":5804,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["99|1|","396|4|","61|1|","56|1|","3|1|","5|1|"],"new_items_map_keys":["99|1|","396|4|","61|1|","56|1|","3|1|","5|1|"]} 
[2026-03-10 20:04:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5804,"order_number":"AZS-100326-022"} 
[2026-03-10 20:04:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5804,"order_number":"AZS-100326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 20:04:33"} 
[2026-03-10 20:04:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5788,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":133,"quantity":1,"discount_percent":0,"notes":null,"id":27785}],"validated_items":[{"id":27785,"menu_item_id":133,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 20:04:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5788,"items_count":1} 
[2026-03-10 20:04:49] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27785,"menu_item_id":133,"quantity":1}]} 
[2026-03-10 20:04:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5788,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["133|1|"],"new_items_map_keys":["133|1|"]} 
[2026-03-10 20:04:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5788,"order_number":"AZS-100326-017"} 
[2026-03-10 20:04:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5788,"order_number":"AZS-100326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-03-10 20:04:49"} 
[2026-03-10 20:06:58] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5803,"order_number":"AZS-100326-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 20:06:58"} 
[2026-03-10 20:06:58] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5803,"order_number":"AZS-100326-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 20:06:58"} 
[2026-03-10 20:06:58] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5803,"order_number":"AZS-100326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 20:06:58"} 
[2026-03-10 20:06:58] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5803,"order_number":"AZS-100326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 20:06:58"} 
[2026-03-10 20:06:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5803,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27883},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":27884},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":27885},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27886},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27887},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":27888},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27889}],"validated_items":[{"id":27883,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27884,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":27885,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":27886,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27887,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27888,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":27889,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-10 20:06:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5803,"items_count":7} 
[2026-03-10 20:06:58] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27883,"menu_item_id":96,"quantity":1},{"id":27884,"menu_item_id":396,"quantity":1},{"id":27885,"menu_item_id":50,"quantity":1},{"id":27886,"menu_item_id":61,"quantity":1},{"id":27887,"menu_item_id":56,"quantity":1},{"id":27888,"menu_item_id":29,"quantity":1},{"id":27889,"menu_item_id":5,"quantity":1}]} 
[2026-03-10 20:06:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5803,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["96|1|","396|1|","50|1|","61|1|","56|1|","29|1|","5|1|"],"new_items_map_keys":["96|1|","396|1|","50|1|","61|1|","56|1|","29|1|","5|1|"]} 
[2026-03-10 20:06:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5803,"order_number":"AZS-100326-021"} 
[2026-03-10 20:06:58] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5803,"order_number":"AZS-100326-021","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-10 20:06:58","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-10 20:06:58"} 
[2026-03-10 20:06:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5803,"order_number":"AZS-100326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-10 20:06:58"} 
[2026-03-10 20:06:58] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5803,"order_number":"AZS-100326-021","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-10 20:06:58","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2500.00","database_verification_match":true,"timestamp":"2026-03-10 20:06:58"} 
[2026-03-10 20:08:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5788,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":133,"quantity":1,"discount_percent":0,"notes":null,"id":27785}],"validated_items":[{"id":27785,"menu_item_id":133,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 20:08:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5788,"items_count":1} 
[2026-03-10 20:08:54] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27785,"menu_item_id":133,"quantity":1}]} 
[2026-03-10 20:08:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5788,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["133|1|"],"new_items_map_keys":["133|1|"]} 
[2026-03-10 20:08:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5788,"order_number":"AZS-100326-017"} 
[2026-03-10 20:08:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5788,"order_number":"AZS-100326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-03-10 20:08:54"} 
[2026-03-10 20:08:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T08:08:57.233Z","date_to":"2026-03-10T20:08:57.233Z","per_page":"100"} 
[2026-03-10 20:08:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","paid","pending","paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":4,"unique_order_numbers":22} 
[2026-03-10 20:08:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T08:08:57.246Z","date_to":"2026-03-10T20:08:57.246Z","per_page":"100"} 
[2026-03-10 20:08:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","paid","pending","paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":4,"unique_order_numbers":22} 
[2026-03-10 20:09:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T08:08:57.233Z","date_to":"2026-03-10T20:08:57.233Z","per_page":"100"} 
[2026-03-10 20:09:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","paid","pending","paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":4,"unique_order_numbers":22} 
[2026-03-10 20:12:42] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5804,"order_number":"AZS-100326-022","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 20:12:42"} 
[2026-03-10 20:12:42] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5804,"order_number":"AZS-100326-022","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 20:12:42"} 
[2026-03-10 20:12:42] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5804,"order_number":"AZS-100326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 20:12:42"} 
[2026-03-10 20:12:42] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5804,"order_number":"AZS-100326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 20:12:42"} 
[2026-03-10 20:12:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5804,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":27890},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":27891},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27892},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27893},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27894},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27895}],"validated_items":[{"id":27890,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":27891,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":27892,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27893,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27894,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":27895,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-10 20:12:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5804,"items_count":6} 
[2026-03-10 20:12:42] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27890,"menu_item_id":99,"quantity":1},{"id":27891,"menu_item_id":396,"quantity":4},{"id":27892,"menu_item_id":61,"quantity":1},{"id":27893,"menu_item_id":56,"quantity":1},{"id":27894,"menu_item_id":3,"quantity":1},{"id":27895,"menu_item_id":5,"quantity":1}]} 
[2026-03-10 20:12:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5804,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["99|1|","396|4|","61|1|","56|1|","3|1|","5|1|"],"new_items_map_keys":["99|1|","396|4|","61|1|","56|1|","3|1|","5|1|"]} 
[2026-03-10 20:12:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5804,"order_number":"AZS-100326-022"} 
[2026-03-10 20:12:42] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5804,"order_number":"AZS-100326-022","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-10 20:12:42","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-10 20:12:42"} 
[2026-03-10 20:12:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5804,"order_number":"AZS-100326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-10 20:12:42"} 
[2026-03-10 20:12:42] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5804,"order_number":"AZS-100326-022","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-10 20:12:42","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4000.00","database_verification_match":true,"timestamp":"2026-03-10 20:12:42"} 
[2026-03-10 20:31:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":13,"items_to_remove_count":0,"order_id":5805,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":27896},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":27897},{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":27898},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":27899},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":27900},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27901},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27902},{"menu_item_id":29,"quantity":5,"price":250,"discount_percent":0,"notes":null,"id":27903},{"menu_item_id":400,"quantity":300,"price":1,"discount_percent":0,"notes":null,"id":27904},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27905},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":27906},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27907},{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":27908}],"validated_items":[{"id":27896,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":27897,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":27898,"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":27899,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":27900,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":27901,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27902,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27903,"menu_item_id":29,"quantity":5,"price":250,"discount_percent":0,"notes":null},{"id":27904,"menu_item_id":400,"quantity":300,"price":1,"discount_percent":0,"notes":null},{"id":27905,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27906,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":27907,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":27908,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-10 20:31:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5805,"items_count":13} 
[2026-03-10 20:31:00] local.INFO: PosOrderController::update - Processing items {"items_count":13,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27896,"menu_item_id":137,"quantity":1},{"id":27897,"menu_item_id":105,"quantity":1},{"id":27898,"menu_item_id":87,"quantity":1},{"id":27899,"menu_item_id":62,"quantity":1},{"id":27900,"menu_item_id":65,"quantity":1},{"id":27901,"menu_item_id":61,"quantity":1},{"id":27902,"menu_item_id":5,"quantity":1},{"id":27903,"menu_item_id":29,"quantity":5},{"id":27904,"menu_item_id":400,"quantity":300},{"id":27905,"menu_item_id":396,"quantity":2},{"id":27906,"menu_item_id":50,"quantity":2},{"id":27907,"menu_item_id":3,"quantity":1},{"id":27908,"menu_item_id":6,"quantity":4}]} 
[2026-03-10 20:31:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5805,"has_item_changes":false,"old_items_count":13,"new_items_count":13,"old_items_map_keys":["137|1|","105|1|","87|1|","62|1|","65|1|","61|1|","5|1|","29|5|","400|300|","396|2|","50|2|","3|1|","6|4|"],"new_items_map_keys":["137|1|","105|1|","87|1|","62|1|","65|1|","61|1|","5|1|","29|5|","400|300|","396|2|","50|2|","3|1|","6|4|"]} 
[2026-03-10 20:31:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5805,"order_number":"AZS-100326-020"} 
[2026-03-10 20:31:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5805,"order_number":"AZS-100326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 20:31:00"} 
[2026-03-10 20:35:42] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5805,"order_number":"AZS-100326-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":12323,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 20:35:42"} 
[2026-03-10 20:35:42] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5805,"order_number":"AZS-100326-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":12323,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 20:35:42"} 
[2026-03-10 20:35:42] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5805,"order_number":"AZS-100326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":12323,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 20:35:42"} 
[2026-03-10 20:35:42] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5805,"order_number":"AZS-100326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":12323,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 20:35:42"} 
[2026-03-10 20:35:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":13,"items_to_remove_count":0,"order_id":5805,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":27896},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":27897},{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":27898},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":27899},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":27900},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27901},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27902},{"menu_item_id":29,"quantity":5,"price":250,"discount_percent":0,"notes":null,"id":27903},{"menu_item_id":400,"quantity":300,"price":1,"discount_percent":0,"notes":null,"id":27904},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27905},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":27906},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":27907},{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":27908}],"validated_items":[{"id":27896,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":27897,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":27898,"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":27899,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":27900,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":27901,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27902,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27903,"menu_item_id":29,"quantity":5,"price":250,"discount_percent":0,"notes":null},{"id":27904,"menu_item_id":400,"quantity":300,"price":1,"discount_percent":0,"notes":null},{"id":27905,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27906,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":27907,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":27908,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-10 20:35:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5805,"items_count":13} 
[2026-03-10 20:35:42] local.INFO: PosOrderController::update - Processing items {"items_count":13,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27896,"menu_item_id":137,"quantity":1},{"id":27897,"menu_item_id":105,"quantity":1},{"id":27898,"menu_item_id":87,"quantity":1},{"id":27899,"menu_item_id":62,"quantity":1},{"id":27900,"menu_item_id":65,"quantity":1},{"id":27901,"menu_item_id":61,"quantity":1},{"id":27902,"menu_item_id":5,"quantity":1},{"id":27903,"menu_item_id":29,"quantity":5},{"id":27904,"menu_item_id":400,"quantity":300},{"id":27905,"menu_item_id":396,"quantity":2},{"id":27906,"menu_item_id":50,"quantity":2},{"id":27907,"menu_item_id":3,"quantity":1},{"id":27908,"menu_item_id":6,"quantity":4}]} 
[2026-03-10 20:35:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5805,"has_item_changes":false,"old_items_count":13,"new_items_count":13,"old_items_map_keys":["137|1|","105|1|","87|1|","62|1|","65|1|","61|1|","5|1|","29|5|","400|300|","396|2|","50|2|","3|1|","6|4|"],"new_items_map_keys":["137|1|","105|1|","87|1|","62|1|","65|1|","61|1|","5|1|","29|5|","400|300|","396|2|","50|2|","3|1|","6|4|"]} 
[2026-03-10 20:35:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5805,"order_number":"AZS-100326-020"} 
[2026-03-10 20:35:42] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5805,"order_number":"AZS-100326-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":12323,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-10 20:35:42","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-10 20:35:42"} 
[2026-03-10 20:35:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5805,"order_number":"AZS-100326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-10 20:35:42"} 
[2026-03-10 20:35:42] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5805,"order_number":"AZS-100326-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"12323.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-10 20:35:42","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":12323,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"12323.00","database_verification_match":true,"timestamp":"2026-03-10 20:35:42"} 
[2026-03-10 21:22:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5807,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null,"id":27910},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27911},{"menu_item_id":416,"quantity":4,"discount_percent":0,"notes":null}],"validated_items":[{"id":27910,"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null},{"id":27911,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-03-10 21:22:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5807,"items_count":3} 
[2026-03-10 21:22:46] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27910,"menu_item_id":411,"quantity":4},{"id":27911,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":416,"quantity":4}]} 
[2026-03-10 21:22:46] local.INFO: PosOrderController::update - Item changes check {"order_id":5807,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["411|4|","5|1|"],"new_items_map_keys":["411|4|","5|1|","416|4|"]} 
[2026-03-10 21:22:46] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5807,"order_number":"AZS-100326-024"} 
[2026-03-10 21:22:46] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-024","replaced_order_id":5807} 
[2026-03-10 21:22:46] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5809,"items_count":3,"items":[{"menu_item_id":411,"quantity":4,"price":"599.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":416,"quantity":4,"price":"70.00"}]} 
[2026-03-10 21:22:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5809,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":4,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":2396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5809}} 
[2026-03-10 21:22:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5809,"item_index":0,"menu_item_id":411} 
[2026-03-10 21:22:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5809,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5809}} 
[2026-03-10 21:22:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5809,"item_index":1,"menu_item_id":5} 
[2026-03-10 21:22:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5809,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5809}} 
[2026-03-10 21:22:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5809,"item_index":2,"menu_item_id":416} 
[2026-03-10 21:22:46] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5807,"new_order_id":5809,"order_number":"AZS-100326-024"} 
[2026-03-10 21:23:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5809,"item_index":0,"item_id":27910} 
[2026-03-10 21:23:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5809,"item_index":1,"item_id":27911} 
[2026-03-10 21:23:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":3,"order_id":5809,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null,"id":27910},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27911},{"menu_item_id":416,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":8,"discount_percent":0,"notes":null},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":8,"discount_percent":0,"notes":null},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 21:23:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5809,"items_count":5} 
[2026-03-10 21:23:53] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":3,"items_to_remove":[27913,27914,27915],"items":[{"id":null,"menu_item_id":411,"quantity":4},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":416,"quantity":4},{"id":null,"menu_item_id":412,"quantity":8},{"id":null,"menu_item_id":413,"quantity":1}]} 
[2026-03-10 21:23:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5809,"has_item_changes":true,"old_items_count":3,"new_items_count":5,"old_items_map_keys":["411|4|","5|1|","416|4|"],"new_items_map_keys":["411|4|","5|1|","416|4|","412|8|","413|1|"]} 
[2026-03-10 21:23:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5809,"order_number":"AZS-100326-024"} 
[2026-03-10 21:23:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-024","replaced_order_id":5809} 
[2026-03-10 21:23:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5810,"items_count":5,"items":[{"menu_item_id":411,"quantity":4,"price":"599.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":416,"quantity":4,"price":"70.00"},{"menu_item_id":412,"quantity":8,"price":"220.00"},{"menu_item_id":413,"quantity":1,"price":"200.00"}]} 
[2026-03-10 21:23:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5810,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":4,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":2396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5810}} 
[2026-03-10 21:23:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5810,"item_index":0,"menu_item_id":411} 
[2026-03-10 21:23:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5810,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5810}} 
[2026-03-10 21:23:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5810,"item_index":1,"menu_item_id":5} 
[2026-03-10 21:23:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5810,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5810}} 
[2026-03-10 21:23:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5810,"item_index":2,"menu_item_id":416} 
[2026-03-10 21:23:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5810,"item_index":3,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":8,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":1760.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5810}} 
[2026-03-10 21:23:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5810,"item_index":3,"menu_item_id":412} 
[2026-03-10 21:23:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5810,"item_index":4,"item_data":{"menu_item_id":413,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Namkeen Lassi","quantity":1,"price":"200.00","discount_percent":0.0,"discount_amount":0.0,"total":200.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5810}} 
[2026-03-10 21:23:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5810,"item_index":4,"menu_item_id":413} 
[2026-03-10 21:23:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5809,"new_order_id":5810,"order_number":"AZS-100326-024"} 
[2026-03-10 21:54:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5810,"item_index":0,"item_id":27910} 
[2026-03-10 21:54:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5810,"item_index":1,"item_id":27911} 
[2026-03-10 21:54:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5810,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null,"id":27910},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":27911},{"menu_item_id":416,"quantity":8,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":8,"discount_percent":0,"notes":null},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":8,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":8,"discount_percent":0,"notes":null},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 21:54:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5810,"items_count":5} 
[2026-03-10 21:54:01] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[27916,27917,27918,27919,27920],"items":[{"id":null,"menu_item_id":411,"quantity":4},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":416,"quantity":8},{"id":null,"menu_item_id":412,"quantity":8},{"id":null,"menu_item_id":413,"quantity":1}]} 
[2026-03-10 21:54:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5810,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|4|","5|1|","416|4|","412|8|","413|1|"],"new_items_map_keys":["411|4|","5|2|","416|8|","412|8|","413|1|"]} 
[2026-03-10 21:54:01] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5810,"order_number":"AZS-100326-024"} 
[2026-03-10 21:54:01] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-024","replaced_order_id":5810} 
[2026-03-10 21:54:01] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5811,"items_count":5,"items":[{"menu_item_id":411,"quantity":4,"price":"599.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":416,"quantity":8,"price":"70.00"},{"menu_item_id":412,"quantity":8,"price":"220.00"},{"menu_item_id":413,"quantity":1,"price":"200.00"}]} 
[2026-03-10 21:54:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5811,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":4,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":2396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5811}} 
[2026-03-10 21:54:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5811,"item_index":0,"menu_item_id":411} 
[2026-03-10 21:54:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5811,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5811}} 
[2026-03-10 21:54:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5811,"item_index":1,"menu_item_id":5} 
[2026-03-10 21:54:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5811,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":8,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":560.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5811}} 
[2026-03-10 21:54:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5811,"item_index":2,"menu_item_id":416} 
[2026-03-10 21:54:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5811,"item_index":3,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":8,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":1760.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5811}} 
[2026-03-10 21:54:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5811,"item_index":3,"menu_item_id":412} 
[2026-03-10 21:54:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5811,"item_index":4,"item_data":{"menu_item_id":413,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Namkeen Lassi","quantity":1,"price":"200.00","discount_percent":0.0,"discount_amount":0.0,"total":200.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5811}} 
[2026-03-10 21:54:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5811,"item_index":4,"menu_item_id":413} 
[2026-03-10 21:54:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5810,"new_order_id":5811,"order_number":"AZS-100326-024"} 
[2026-03-10 21:54:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5811,"item_index":0,"item_id":27910} 
[2026-03-10 21:54:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5811,"item_index":1,"item_id":27911} 
[2026-03-10 21:54:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5811,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":4,"price":599,"discount_percent":0,"notes":null,"id":27910},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":27911},{"menu_item_id":416,"quantity":8,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":8,"price":220,"discount_percent":0,"notes":null},{"menu_item_id":413,"quantity":1,"price":200,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":4,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":8,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":8,"price":220,"discount_percent":0,"notes":null},{"menu_item_id":413,"quantity":1,"price":200,"discount_percent":0,"notes":null}]} 
[2026-03-10 21:54:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5811,"items_count":5} 
[2026-03-10 21:54:06] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[27921,27922,27923,27924,27925],"items":[{"id":null,"menu_item_id":411,"quantity":4},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":416,"quantity":8},{"id":null,"menu_item_id":412,"quantity":8},{"id":null,"menu_item_id":413,"quantity":1}]} 
[2026-03-10 21:54:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5811,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|4|","5|2|","416|8|","412|8|","413|1|"],"new_items_map_keys":["411|4|","5|2|","416|8|","412|8|","413|1|"]} 
[2026-03-10 21:54:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5811,"order_number":"AZS-100326-024"} 
[2026-03-10 21:54:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5811,"order_number":"AZS-100326-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 21:54:06"} 
[2026-03-10 21:55:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5811,"item_index":0,"item_id":27910} 
[2026-03-10 21:55:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5811,"item_index":1,"item_id":27911} 
[2026-03-10 21:55:15] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5811,"order_number":"AZS-100326-024","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 21:55:15"} 
[2026-03-10 21:55:15] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5811,"order_number":"AZS-100326-024","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 21:55:15"} 
[2026-03-10 21:55:15] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5811,"order_number":"AZS-100326-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 21:55:15"} 
[2026-03-10 21:55:15] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5811,"order_number":"AZS-100326-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 21:55:15"} 
[2026-03-10 21:55:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":5811,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":4,"price":599,"discount_percent":0,"notes":null,"id":27910},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":27911},{"menu_item_id":416,"quantity":8,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":8,"price":220,"discount_percent":0,"notes":null},{"menu_item_id":413,"quantity":1,"price":200,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":4,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":8,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":8,"price":220,"discount_percent":0,"notes":null},{"menu_item_id":413,"quantity":1,"price":200,"discount_percent":0,"notes":null}]} 
[2026-03-10 21:55:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5811,"items_count":5} 
[2026-03-10 21:55:15] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[27921,27922,27923,27924,27925],"items":[{"id":null,"menu_item_id":411,"quantity":4},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":416,"quantity":8},{"id":null,"menu_item_id":412,"quantity":8},{"id":null,"menu_item_id":413,"quantity":1}]} 
[2026-03-10 21:55:15] local.INFO: PosOrderController::update - Item changes check {"order_id":5811,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|4|","5|2|","416|8|","412|8|","413|1|"],"new_items_map_keys":["411|4|","5|2|","416|8|","412|8|","413|1|"]} 
[2026-03-10 21:55:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5811,"order_number":"AZS-100326-024"} 
[2026-03-10 21:55:15] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5811,"order_number":"AZS-100326-024","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-10 21:55:15","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-10 21:55:15"} 
[2026-03-10 21:55:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5811,"order_number":"AZS-100326-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-10 21:55:15"} 
[2026-03-10 21:55:15] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5811,"order_number":"AZS-100326-024","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-10 21:55:15","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5500.00","database_verification_match":true,"timestamp":"2026-03-10 21:55:15"} 
[2026-03-10 22:03:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5806,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":23,"quantity":1,"discount_percent":0,"notes":null,"id":27909},{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27909,"menu_item_id":23,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 22:03:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5806,"items_count":2} 
[2026-03-10 22:03:22] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27909,"menu_item_id":23,"quantity":1},{"id":null,"menu_item_id":411,"quantity":1}]} 
[2026-03-10 22:03:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5806,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["23|1|"],"new_items_map_keys":["23|1|","411|1|"]} 
[2026-03-10 22:03:22] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5806,"order_number":"AZS-100326-023"} 
[2026-03-10 22:03:22] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-023","replaced_order_id":5806} 
[2026-03-10 22:03:22] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5812,"items_count":2,"items":[{"menu_item_id":23,"quantity":1,"price":"249.00"},{"menu_item_id":411,"quantity":1,"price":"599.00"}]} 
[2026-03-10 22:03:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5812,"item_index":0,"item_data":{"menu_item_id":23,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Vanilla","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5812}} 
[2026-03-10 22:03:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5812,"item_index":0,"menu_item_id":23} 
[2026-03-10 22:03:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5812,"item_index":1,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5812}} 
[2026-03-10 22:03:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5812,"item_index":1,"menu_item_id":411} 
[2026-03-10 22:03:22] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5806,"new_order_id":5812,"order_number":"AZS-100326-023"} 
[2026-03-10 22:08:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5808,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":27912}],"validated_items":[{"id":27912,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-10 22:08:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5808,"items_count":1} 
[2026-03-10 22:08:17] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27912,"menu_item_id":6,"quantity":3}]} 
[2026-03-10 22:08:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5808,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|3|"],"new_items_map_keys":["6|3|"]} 
[2026-03-10 22:08:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5808,"order_number":"AZS-100326-025"} 
[2026-03-10 22:08:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5808,"order_number":"AZS-100326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 22:08:17"} 
[2026-03-10 22:11:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5813,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27928}],"validated_items":[{"id":27928,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null}]} 
[2026-03-10 22:11:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5813,"items_count":1} 
[2026-03-10 22:11:38] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27928,"menu_item_id":411,"quantity":1}]} 
[2026-03-10 22:11:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5813,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|"]} 
[2026-03-10 22:11:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5813,"order_number":"AZS-100326-026"} 
[2026-03-10 22:11:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5813,"order_number":"AZS-100326-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-10 22:11:38"} 
[2026-03-10 22:11:55] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5813,"order_number":"AZS-100326-026","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":600,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 22:11:55"} 
[2026-03-10 22:11:55] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5813,"order_number":"AZS-100326-026","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 22:11:55"} 
[2026-03-10 22:11:55] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5813,"order_number":"AZS-100326-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 22:11:55"} 
[2026-03-10 22:11:55] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5813,"order_number":"AZS-100326-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 22:11:55"} 
[2026-03-10 22:11:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5813,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27928}],"validated_items":[{"id":27928,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null}]} 
[2026-03-10 22:11:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5813,"items_count":1} 
[2026-03-10 22:11:55] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27928,"menu_item_id":411,"quantity":1}]} 
[2026-03-10 22:11:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5813,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|"]} 
[2026-03-10 22:11:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5813,"order_number":"AZS-100326-026"} 
[2026-03-10 22:11:55] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5813,"order_number":"AZS-100326-026","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":600,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-10 22:11:55","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-10 22:11:55"} 
[2026-03-10 22:11:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5813,"order_number":"AZS-100326-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-10 22:11:55"} 
[2026-03-10 22:11:55] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5813,"order_number":"AZS-100326-026","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"600.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-10 22:11:55","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"600.00","database_verification_match":true,"timestamp":"2026-03-10 22:11:55"} 
[2026-03-10 22:22:44] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5808,"order_number":"AZS-100326-025","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":630,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 22:22:44"} 
[2026-03-10 22:22:44] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5808,"order_number":"AZS-100326-025","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":630,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 22:22:44"} 
[2026-03-10 22:22:44] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5808,"order_number":"AZS-100326-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":630,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 22:22:44"} 
[2026-03-10 22:22:44] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5808,"order_number":"AZS-100326-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":630,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 22:22:44"} 
[2026-03-10 22:22:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5808,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":27912}],"validated_items":[{"id":27912,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-10 22:22:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5808,"items_count":1} 
[2026-03-10 22:22:44] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27912,"menu_item_id":6,"quantity":3}]} 
[2026-03-10 22:22:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5808,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|3|"],"new_items_map_keys":["6|3|"]} 
[2026-03-10 22:22:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5808,"order_number":"AZS-100326-025"} 
[2026-03-10 22:22:44] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5808,"order_number":"AZS-100326-025","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":630,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-10 22:22:44","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-10 22:22:44"} 
[2026-03-10 22:22:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5808,"order_number":"AZS-100326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-10 22:22:44"} 
[2026-03-10 22:22:44] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5808,"order_number":"AZS-100326-025","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"630.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-10 22:22:44","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":630,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"630.00","database_verification_match":true,"timestamp":"2026-03-10 22:22:44"} 
[2026-03-10 22:44:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5812,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":23,"quantity":1,"discount_percent":0,"notes":null,"id":27926},{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":27927},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27926,"menu_item_id":23,"quantity":1,"discount_percent":0,"notes":null},{"id":27927,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 22:44:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5812,"items_count":3} 
[2026-03-10 22:44:58] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27926,"menu_item_id":23,"quantity":1},{"id":27927,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":6,"quantity":1}]} 
[2026-03-10 22:44:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5812,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["23|1|","411|1|"],"new_items_map_keys":["23|1|","411|1|","6|1|"]} 
[2026-03-10 22:44:58] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5812,"order_number":"AZS-100326-023"} 
[2026-03-10 22:44:58] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-023","replaced_order_id":5812} 
[2026-03-10 22:44:58] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5815,"items_count":3,"items":[{"menu_item_id":23,"quantity":1,"price":"249.00"},{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":6,"quantity":1,"price":"199.00"}]} 
[2026-03-10 22:44:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5815,"item_index":0,"item_data":{"menu_item_id":23,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Vanilla","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5815}} 
[2026-03-10 22:44:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5815,"item_index":0,"menu_item_id":23} 
[2026-03-10 22:44:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5815,"item_index":1,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5815}} 
[2026-03-10 22:44:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5815,"item_index":1,"menu_item_id":411} 
[2026-03-10 22:44:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5815,"item_index":2,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5815}} 
[2026-03-10 22:44:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5815,"item_index":2,"menu_item_id":6} 
[2026-03-10 22:44:58] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5812,"new_order_id":5815,"order_number":"AZS-100326-023"} 
[2026-03-10 22:55:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5815,"item_index":0,"item_id":27926} 
[2026-03-10 22:55:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5815,"item_index":1,"item_id":27927} 
[2026-03-10 22:55:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":5815,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":27926},{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27927},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-10 22:55:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5815,"items_count":3} 
[2026-03-10 22:55:05] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[27930,27931,27932],"items":[{"id":null,"menu_item_id":23,"quantity":1},{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":6,"quantity":1}]} 
[2026-03-10 22:55:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5815,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["23|1|","411|1|","6|1|"],"new_items_map_keys":["23|1|","411|1|","6|1|"]} 
[2026-03-10 22:55:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5815,"order_number":"AZS-100326-023"} 
[2026-03-10 22:55:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5815,"order_number":"AZS-100326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 22:55:05"} 
[2026-03-10 23:06:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5815,"item_index":0,"item_id":27926} 
[2026-03-10 23:06:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5815,"item_index":1,"item_id":27927} 
[2026-03-10 23:06:50] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5815,"order_number":"AZS-100326-023","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1050,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 23:06:50"} 
[2026-03-10 23:06:50] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5815,"order_number":"AZS-100326-023","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1050,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 23:06:50"} 
[2026-03-10 23:06:50] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5815,"order_number":"AZS-100326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1050,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 23:06:50"} 
[2026-03-10 23:06:50] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5815,"order_number":"AZS-100326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1050,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 23:06:50"} 
[2026-03-10 23:06:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":5815,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":27926},{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27927},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-10 23:06:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5815,"items_count":3} 
[2026-03-10 23:06:50] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[27930,27931,27932],"items":[{"id":null,"menu_item_id":23,"quantity":1},{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":6,"quantity":1}]} 
[2026-03-10 23:06:50] local.INFO: PosOrderController::update - Item changes check {"order_id":5815,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["23|1|","411|1|","6|1|"],"new_items_map_keys":["23|1|","411|1|","6|1|"]} 
[2026-03-10 23:06:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5815,"order_number":"AZS-100326-023"} 
[2026-03-10 23:06:50] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5815,"order_number":"AZS-100326-023","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1050,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-10 23:06:50","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-10 23:06:50"} 
[2026-03-10 23:06:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5815,"order_number":"AZS-100326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-10 23:06:50"} 
[2026-03-10 23:06:50] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5815,"order_number":"AZS-100326-023","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1050.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-10 23:06:50","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1050,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1050.00","database_verification_match":true,"timestamp":"2026-03-10 23:06:50"} 
[2026-03-10 23:08:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":5788,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":286,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 23:08:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5788,"items_count":1} 
[2026-03-10 23:08:00] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[27785],"items":[{"id":null,"menu_item_id":286,"quantity":1}]} 
[2026-03-10 23:08:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5788,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["133|1|"],"new_items_map_keys":["286|1|"]} 
[2026-03-10 23:08:00] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5788,"order_number":"AZS-100326-017"} 
[2026-03-10 23:08:00] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-017","replaced_order_id":5788} 
[2026-03-10 23:08:00] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5816,"items_count":1,"items":[{"menu_item_id":286,"quantity":1,"price":"15.00"}]} 
[2026-03-10 23:08:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5816,"item_index":0,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":1,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":15.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5816}} 
[2026-03-10 23:08:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5816,"item_index":0,"menu_item_id":286} 
[2026-03-10 23:08:00] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5788,"new_order_id":5816,"order_number":"AZS-100326-017"} 
[2026-03-10 23:08:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T11:08:05.034Z","date_to":"2026-03-10T23:08:05.034Z","per_page":"100"} 
[2026-03-10 23:08:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T11:08:05.020Z","date_to":"2026-03-10T23:08:05.020Z","per_page":"100"} 
[2026-03-10 23:08:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":24,"unpaid_count":3,"unique_order_numbers":27} 
[2026-03-10 23:08:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":24,"unpaid_count":3,"unique_order_numbers":27} 
[2026-03-10 23:08:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T11:08:05.020Z","date_to":"2026-03-10T23:08:05.020Z","per_page":"100"} 
[2026-03-10 23:08:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":24,"unpaid_count":3,"unique_order_numbers":27} 
[2026-03-10 23:08:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5814,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":27929},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":27929,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-10 23:08:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5814,"items_count":2} 
[2026-03-10 23:08:51] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27929,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-10 23:08:51] local.INFO: PosOrderController::update - Item changes check {"order_id":5814,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|","2|2|"]} 
[2026-03-10 23:08:51] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5814,"order_number":"AZS-100326-027"} 
[2026-03-10 23:08:51] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-027","replaced_order_id":5814} 
[2026-03-10 23:08:51] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5817,"items_count":2,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-10 23:08:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5817,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5817}} 
[2026-03-10 23:08:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5817,"item_index":0,"menu_item_id":411} 
[2026-03-10 23:08:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5817,"item_index":1,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5817}} 
[2026-03-10 23:08:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5817,"item_index":1,"menu_item_id":2} 
[2026-03-10 23:08:51] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5814,"new_order_id":5817,"order_number":"AZS-100326-027"} 
[2026-03-10 23:09:12] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5783,"order_number":"AZS-100326-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":747,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 23:09:12"} 
[2026-03-10 23:09:12] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5783,"order_number":"AZS-100326-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":747,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 23:09:12"} 
[2026-03-10 23:09:12] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5783,"order_number":"AZS-100326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":747,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 23:09:12"} 
[2026-03-10 23:09:12] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5783,"order_number":"AZS-100326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":747,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 23:09:12"} 
[2026-03-10 23:09:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5783,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":27768}],"validated_items":[{"id":27768,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-10 23:09:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5783,"items_count":1} 
[2026-03-10 23:09:12] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27768,"menu_item_id":13,"quantity":3}]} 
[2026-03-10 23:09:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5783,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|3|"],"new_items_map_keys":["13|3|"]} 
[2026-03-10 23:09:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5783,"order_number":"AZS-100326-015"} 
[2026-03-10 23:09:12] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5783,"order_number":"AZS-100326-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":747,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-10 23:09:12","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-10 23:09:12"} 
[2026-03-10 23:09:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5783,"order_number":"AZS-100326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-10 23:09:12"} 
[2026-03-10 23:09:12] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5783,"order_number":"AZS-100326-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"747.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-10 23:09:12","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":747,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"747.00","database_verification_match":true,"timestamp":"2026-03-10 23:09:12"} 
[2026-03-10 23:09:23] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5816,"order_number":"AZS-100326-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":15,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 23:09:23"} 
[2026-03-10 23:09:23] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5816,"order_number":"AZS-100326-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":15,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 23:09:23"} 
[2026-03-10 23:09:23] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5816,"order_number":"AZS-100326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":15,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 23:09:23"} 
[2026-03-10 23:09:23] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5816,"order_number":"AZS-100326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":15,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 23:09:23"} 
[2026-03-10 23:09:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5816,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null,"id":27933}],"validated_items":[{"id":27933,"menu_item_id":286,"quantity":1,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-10 23:09:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5816,"items_count":1} 
[2026-03-10 23:09:23] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27933,"menu_item_id":286,"quantity":1}]} 
[2026-03-10 23:09:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5816,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["286|1|"],"new_items_map_keys":["286|1|"]} 
[2026-03-10 23:09:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5816,"order_number":"AZS-100326-017"} 
[2026-03-10 23:09:23] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5816,"order_number":"AZS-100326-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":15,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-10 23:09:23","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-10 23:09:23"} 
[2026-03-10 23:09:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5816,"order_number":"AZS-100326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-10 23:09:23"} 
[2026-03-10 23:09:23] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5816,"order_number":"AZS-100326-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"15.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-10 23:09:23","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":15,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"15.00","database_verification_match":true,"timestamp":"2026-03-10 23:09:23"} 
[2026-03-10 23:09:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5817,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":27934},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null,"id":27935},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27934,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":27935,"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-10 23:09:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5817,"items_count":4} 
[2026-03-10 23:09:35] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27934,"menu_item_id":411,"quantity":1},{"id":27935,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":416,"quantity":1}]} 
[2026-03-10 23:09:35] local.INFO: PosOrderController::update - Item changes check {"order_id":5817,"has_item_changes":true,"old_items_count":2,"new_items_count":4,"old_items_map_keys":["411|1|","2|2|"],"new_items_map_keys":["411|1|","2|2|","50|2|","416|1|"]} 
[2026-03-10 23:09:35] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5817,"order_number":"AZS-100326-027"} 
[2026-03-10 23:09:35] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-027","replaced_order_id":5817} 
[2026-03-10 23:09:35] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5818,"items_count":4,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":416,"quantity":1,"price":"70.00"}]} 
[2026-03-10 23:09:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5818,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5818}} 
[2026-03-10 23:09:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5818,"item_index":0,"menu_item_id":411} 
[2026-03-10 23:09:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5818,"item_index":1,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5818}} 
[2026-03-10 23:09:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5818,"item_index":1,"menu_item_id":2} 
[2026-03-10 23:09:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5818,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5818}} 
[2026-03-10 23:09:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5818,"item_index":2,"menu_item_id":50} 
[2026-03-10 23:09:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5818,"item_index":3,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5818}} 
[2026-03-10 23:09:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5818,"item_index":3,"menu_item_id":416} 
[2026-03-10 23:09:35] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5817,"new_order_id":5818,"order_number":"AZS-100326-027"} 
[2026-03-10 23:10:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T11:10:03.367Z","date_to":"2026-03-10T23:10:03.367Z","per_page":"100"} 
[2026-03-10 23:10:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":26,"unpaid_count":1,"unique_order_numbers":27} 
[2026-03-10 23:10:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T11:10:03.352Z","date_to":"2026-03-10T23:10:03.352Z","per_page":"100"} 
[2026-03-10 23:10:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":26,"unpaid_count":1,"unique_order_numbers":27} 
[2026-03-10 23:10:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T11:10:03.352Z","date_to":"2026-03-10T23:10:03.352Z","per_page":"100"} 
[2026-03-10 23:10:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":26,"unpaid_count":1,"unique_order_numbers":27} 
[2026-03-10 23:23:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5818,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27936},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":27937},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":27938},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":27939}],"validated_items":[{"id":27936,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":27937,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":27938,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":27939,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-10 23:23:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5818,"items_count":4} 
[2026-03-10 23:23:26] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27936,"menu_item_id":411,"quantity":1},{"id":27937,"menu_item_id":2,"quantity":2},{"id":27938,"menu_item_id":50,"quantity":2},{"id":27939,"menu_item_id":416,"quantity":1}]} 
[2026-03-10 23:23:26] local.INFO: PosOrderController::update - Item changes check {"order_id":5818,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|1|","2|2|","50|2|","416|1|"],"new_items_map_keys":["411|1|","2|2|","50|2|","416|1|"]} 
[2026-03-10 23:23:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5818,"order_number":"AZS-100326-027"} 
[2026-03-10 23:23:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5818,"order_number":"AZS-100326-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 23:23:26"} 
[2026-03-10 23:28:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5818,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27936},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":27937},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":27938},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":27939}],"validated_items":[{"id":27936,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":27937,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":27938,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":27939,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-10 23:28:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5818,"items_count":4} 
[2026-03-10 23:28:20] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27936,"menu_item_id":411,"quantity":1},{"id":27937,"menu_item_id":2,"quantity":2},{"id":27938,"menu_item_id":50,"quantity":2},{"id":27939,"menu_item_id":416,"quantity":1}]} 
[2026-03-10 23:28:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5818,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|1|","2|2|","50|2|","416|1|"],"new_items_map_keys":["411|1|","2|2|","50|2|","416|1|"]} 
[2026-03-10 23:28:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5818,"order_number":"AZS-100326-027"} 
[2026-03-10 23:28:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5818,"order_number":"AZS-100326-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-10 23:28:20"} 
[2026-03-10 23:28:43] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5818,"order_number":"AZS-100326-027","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 23:28:43"} 
[2026-03-10 23:28:43] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5818,"order_number":"AZS-100326-027","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-10 23:28:43"} 
[2026-03-10 23:28:43] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5818,"order_number":"AZS-100326-027","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 23:28:43"} 
[2026-03-10 23:28:43] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5818,"order_number":"AZS-100326-027","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-10 23:28:43"} 
[2026-03-10 23:28:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5818,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27936},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":27937},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":27938},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":27939}],"validated_items":[{"id":27936,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":27937,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":27938,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":27939,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-10 23:28:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5818,"items_count":4} 
[2026-03-10 23:28:43] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27936,"menu_item_id":411,"quantity":1},{"id":27937,"menu_item_id":2,"quantity":1},{"id":27938,"menu_item_id":50,"quantity":1},{"id":27939,"menu_item_id":416,"quantity":1}]} 
[2026-03-10 23:28:43] local.INFO: PosOrderController::update - Item changes check {"order_id":5818,"has_item_changes":true,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|1|","2|2|","50|2|","416|1|"],"new_items_map_keys":["411|1|","2|1|","50|1|","416|1|"]} 
[2026-03-10 23:28:43] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5818,"order_number":"AZS-100326-027","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":1000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-10 23:28:43","original_payment_amount":"0.00","grand_total":928.0,"timestamp":"2026-03-10 23:28:43"} 
[2026-03-10 23:28:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5818,"order_number":"AZS-100326-027"} 
[2026-03-10 23:28:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-100326-027","replaced_order_id":5818} 
[2026-03-10 23:28:43] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5818,"new_order_id":5819,"order_number":"AZS-100326-027","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"1000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-10 23:28:43","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-10 23:28:43"} 
[2026-03-10 23:28:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5819,"items_count":4,"items":[{"menu_item_id":411,"quantity":1,"price":599.0},{"menu_item_id":2,"quantity":1,"price":130.0},{"menu_item_id":50,"quantity":1,"price":129.0},{"menu_item_id":416,"quantity":1,"price":70.0}]} 
[2026-03-10 23:28:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5819,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":599.0,"discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5819}} 
[2026-03-10 23:28:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5819,"item_index":0,"menu_item_id":411} 
[2026-03-10 23:28:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5819,"item_index":1,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5819}} 
[2026-03-10 23:28:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5819,"item_index":1,"menu_item_id":2} 
[2026-03-10 23:28:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5819,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5819}} 
[2026-03-10 23:28:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5819,"item_index":2,"menu_item_id":50} 
[2026-03-10 23:28:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5819,"item_index":3,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5819}} 
[2026-03-10 23:28:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5819,"item_index":3,"menu_item_id":416} 
[2026-03-10 23:28:43] local.ERROR: Error tracking recipe usage for order 5819: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5819, 50, 102, 1, 10, 0.00, Order #AZS-100326-027 - 1x Roghni Naan, 2026-03-10 23:28:43, 2026-03-10 23:28:43))  
[2026-03-10 23:28:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5818,"new_order_id":5819,"order_number":"AZS-100326-027"} 
[2026-03-10 23:28:44] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5818,"new_order_id":5819,"order_number":"AZS-100326-027","route":"api/orders/5818"} 
[2026-03-10 23:29:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T11:29:31.568Z","date_to":"2026-03-10T23:29:31.568Z","per_page":"100"} 
[2026-03-10 23:29:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":27,"unpaid_count":0,"unique_order_numbers":27} 
[2026-03-10 23:29:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T11:29:31.588Z","date_to":"2026-03-10T23:29:31.588Z","per_page":"100"} 
[2026-03-10 23:29:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":27,"unpaid_count":0,"unique_order_numbers":27} 
[2026-03-10 23:29:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T11:29:31.568Z","date_to":"2026-03-10T23:29:31.568Z","per_page":"100"} 
[2026-03-10 23:29:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":27,"unpaid_count":0,"unique_order_numbers":27} 
[2026-03-11 05:51:49] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T17:52:04.108Z","date_to":"2026-03-11T05:52:04.108Z","per_page":"100"} 
[2026-03-11 05:51:49] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":0,"unique_order_numbers":11} 
[2026-03-11 05:51:49] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T17:52:04.091Z","date_to":"2026-03-11T05:52:04.091Z","per_page":"100"} 
[2026-03-11 05:51:49] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":0,"unique_order_numbers":11} 
[2026-03-11 05:51:51] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T17:52:04.091Z","date_to":"2026-03-11T05:52:04.091Z","per_page":"100"} 
[2026-03-11 05:51:51] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":0,"unique_order_numbers":11} 
[2026-03-11 05:51:53] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T05:52:08.647Z","date_to":"2026-03-11T05:52:08.647Z","per_page":"100"} 
[2026-03-11 05:51:53] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":27,"unpaid_count":0,"unique_order_numbers":27} 
[2026-03-11 06:10:00] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T18:09:59.747Z","date_to":"2026-03-11T06:09:59.747Z","per_page":"100"} 
[2026-03-11 06:10:00] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":0,"unique_order_numbers":10} 
[2026-03-11 06:10:00] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T18:09:59.810Z","date_to":"2026-03-11T06:09:59.810Z","per_page":"100"} 
[2026-03-11 06:10:00] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":0,"unique_order_numbers":10} 
[2026-03-11 06:10:01] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T18:09:59.747Z","date_to":"2026-03-11T06:09:59.747Z","per_page":"100"} 
[2026-03-11 06:10:01] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":0,"unique_order_numbers":10} 
[2026-03-11 06:10:03] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T06:10:01.768Z","date_to":"2026-03-11T06:10:01.768Z","per_page":"100"} 
[2026-03-11 06:10:03] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":27,"unpaid_count":0,"unique_order_numbers":27} 
[2026-03-11 06:28:47] local.ERROR: SQLSTATE[HY000] [1040] Too many connections (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 44 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 1040): SQLSTATE[HY000] [1040] Too many connections (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 44 limit 1) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('44')
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7f1nuzrQ05utDAg...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), NULL)
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), NULL)
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#50 {main}

[previous exception] [object] (PDOException(code: 1040): SQLSTATE[HY000] [1040] Too many connections at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=127....', 'pandamartsco_te...', Object(SensitiveParameterValue), Array)
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=127....', 'pandamartsco_te...', 'O?TpDEuS7UUOYE;...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=127....', Array, Array)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('44')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7f1nuzrQ05utDAg...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), NULL)
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), NULL)
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#53 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#54 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#55 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#58 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#59 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#60 {main}
"} 
[2026-03-11 06:39:25] local.ERROR: SQLSTATE[HY000] [1040] Too many connections (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 44 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 1040): SQLSTATE[HY000] [1040] Too many connections (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 44 limit 1) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('44')
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7f1nuzrQ05utDAg...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), NULL)
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), NULL)
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#50 {main}

[previous exception] [object] (PDOException(code: 1040): SQLSTATE[HY000] [1040] Too many connections at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=127....', 'pandamartsco_te...', Object(SensitiveParameterValue), Array)
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=127....', 'pandamartsco_te...', 'O?TpDEuS7UUOYE;...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=127....', Array, Array)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('44')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7f1nuzrQ05utDAg...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), NULL)
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), NULL)
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#53 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#54 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#55 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#58 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#59 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#60 {main}
"} 
[2026-03-11 06:39:25] local.ERROR: SQLSTATE[HY000] [1040] Too many connections (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 44 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 1040): SQLSTATE[HY000] [1040] Too many connections (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 44 limit 1) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('44')
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7f1nuzrQ05utDAg...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), NULL)
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), NULL)
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#50 {main}

[previous exception] [object] (PDOException(code: 1040): SQLSTATE[HY000] [1040] Too many connections at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=127....', 'pandamartsco_te...', Object(SensitiveParameterValue), Array)
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=127....', 'pandamartsco_te...', 'O?TpDEuS7UUOYE;...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=127....', Array, Array)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('44')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7f1nuzrQ05utDAg...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), NULL)
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), NULL)
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#53 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#54 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#55 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#58 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#59 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#60 {main}
"} 
[2026-03-11 06:43:23] local.ERROR: SQLSTATE[HY000] [1040] Too many connections (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 44 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 1040): SQLSTATE[HY000] [1040] Too many connections (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 44 limit 1) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('44')
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7f1nuzrQ05utDAg...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), NULL)
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), NULL)
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#50 {main}

[previous exception] [object] (PDOException(code: 1040): SQLSTATE[HY000] [1040] Too many connections at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=127....', 'pandamartsco_te...', Object(SensitiveParameterValue), Array)
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=127....', 'pandamartsco_te...', 'O?TpDEuS7UUOYE;...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=127....', Array, Array)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('44')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7f1nuzrQ05utDAg...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), NULL)
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), NULL)
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#53 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#54 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#55 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#58 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#59 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#60 {main}
"} 
[2026-03-11 06:48:06] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"182.176.113.26"} 
[2026-03-11 06:49:42] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T18:49:18.216Z","date_to":"2026-03-11T06:49:18.216Z","per_page":"100"} 
[2026-03-11 06:49:42] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":0,"unique_order_numbers":8} 
[2026-03-11 06:49:42] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T18:49:17.760Z","date_to":"2026-03-11T06:49:17.760Z","per_page":"100"} 
[2026-03-11 06:49:42] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":0,"unique_order_numbers":8} 
[2026-03-11 06:49:43] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T18:49:17.760Z","date_to":"2026-03-11T06:49:17.760Z","per_page":"100"} 
[2026-03-11 06:49:43] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":0,"unique_order_numbers":8} 
[2026-03-11 06:50:02] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T18:49:37.376Z","date_to":"2026-03-11T06:49:37.376Z","per_page":"100"} 
[2026-03-11 06:50:02] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T18:49:37.321Z","date_to":"2026-03-11T06:49:37.321Z","per_page":"100"} 
[2026-03-11 06:50:02] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":0,"unique_order_numbers":8} 
[2026-03-11 06:50:02] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":0,"unique_order_numbers":8} 
[2026-03-11 06:50:03] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T18:49:37.321Z","date_to":"2026-03-11T06:49:37.321Z","per_page":"100"} 
[2026-03-11 06:50:03] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":0,"unique_order_numbers":8} 
[2026-03-11 10:20:44] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"182.176.113.26"} 
[2026-03-11 10:20:53] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T22:30:46.453Z","date_to":"2026-03-11T10:30:46.453Z","per_page":"100"} 
[2026-03-11 10:20:53] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T22:30:46.453Z","date_to":"2026-03-11T10:30:46.453Z","per_page":"100"} 
[2026-03-11 10:20:53] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T22:30:46.491Z","date_to":"2026-03-11T10:30:46.491Z","per_page":"100"} 
[2026-03-11 10:20:53] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027"],"order_statuses":["paid"],"deleted_count":0,"paid_count":1,"unpaid_count":0,"unique_order_numbers":1} 
[2026-03-11 10:20:53] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027"],"order_statuses":["paid"],"deleted_count":0,"paid_count":1,"unpaid_count":0,"unique_order_numbers":1} 
[2026-03-11 10:20:53] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027"],"order_statuses":["paid"],"deleted_count":0,"paid_count":1,"unpaid_count":0,"unique_order_numbers":1} 
[2026-03-11 10:21:02] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T10:30:55.734Z","date_to":"2026-03-11T10:30:55.734Z","per_page":"100"} 
[2026-03-11 10:21:03] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":27,"unpaid_count":0,"unique_order_numbers":27} 
[2026-03-11 10:24:33] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T22:34:26.631Z","date_to":"2026-03-11T10:34:26.631Z","per_page":"100"} 
[2026-03-11 10:24:34] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-100326-027"],"order_statuses":["paid"],"deleted_count":0,"paid_count":1,"unpaid_count":0,"unique_order_numbers":1} 
[2026-03-11 11:54:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T23:54:55.254Z","date_to":"2026-03-11T11:54:55.254Z","per_page":"100"} 
[2026-03-11 11:54:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T23:54:55.015Z","date_to":"2026-03-11T11:54:55.015Z","per_page":"100"} 
[2026-03-11 11:54:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-11 11:54:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-11 11:54:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T23:54:54.608Z","date_to":"2026-03-11T11:54:54.608Z","per_page":"100"} 
[2026-03-11 11:54:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-11 11:54:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T23:54:55.455Z","date_to":"2026-03-11T11:54:55.455Z","per_page":"100"} 
[2026-03-11 11:54:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-11 11:55:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T23:55:04.280Z","date_to":"2026-03-11T11:55:04.280Z","per_page":"100"} 
[2026-03-11 11:55:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-11 11:55:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T23:55:04.315Z","date_to":"2026-03-11T11:55:04.315Z","per_page":"100"} 
[2026-03-11 11:55:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-11 11:55:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T23:55:04.280Z","date_to":"2026-03-11T11:55:04.280Z","per_page":"100"} 
[2026-03-11 11:55:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-11 11:55:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T11:55:27.479Z","date_to":"2026-03-11T11:55:27.479Z","per_page":"1000"} 
[2026-03-11 11:55:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":1000,"order_branch_ids":[1],"order_numbers":["AZS-100326-027","AZS-100326-026","AZS-100326-025","AZS-100326-024","AZS-100326-023","AZS-100326-022","AZS-100326-021","AZS-100326-020","AZS-100326-019","AZS-100326-018","AZS-100326-017","AZS-100326-016","AZS-100326-015","AZS-100326-014","AZS-100326-013","AZS-100326-012","AZS-100326-011","AZS-100326-010","AZS-100326-009","AZS-100326-008","AZS-100326-007","AZS-100326-006","AZS-100326-005","AZS-100326-004","AZS-100326-003","AZS-100326-002","AZS-100326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":27,"unpaid_count":0,"unique_order_numbers":27} 
[2026-03-11 11:56:17] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5177,"order_number":"AZS-280226-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2617,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 11:56:17"} 
[2026-03-11 11:56:17] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5177,"order_number":"AZS-280226-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2617,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 11:56:17"} 
[2026-03-11 11:56:17] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5177,"order_number":"AZS-280226-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2617,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 11:56:17"} 
[2026-03-11 11:56:17] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5177,"order_number":"AZS-280226-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2617,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 11:56:17"} 
[2026-03-11 11:56:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5177,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":173,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":25268},{"menu_item_id":146,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":25269},{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":25270},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":25271}],"validated_items":[{"id":25268,"menu_item_id":173,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":25269,"menu_item_id":146,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":25270,"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":25271,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-11 11:56:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5177,"items_count":4} 
[2026-03-11 11:56:17] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":25268,"menu_item_id":173,"quantity":1},{"id":25269,"menu_item_id":146,"quantity":1},{"id":25270,"menu_item_id":393,"quantity":1},{"id":25271,"menu_item_id":5,"quantity":1}]} 
[2026-03-11 11:56:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5177,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["173|1|","146|1|","393|1|","5|1|"],"new_items_map_keys":["173|1|","146|1|","393|1|","5|1|"]} 
[2026-03-11 11:56:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5177,"order_number":"AZS-280226-013"} 
[2026-03-11 11:56:17] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5177,"order_number":"AZS-280226-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2617,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-11 11:56:17","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 11:56:17"} 
[2026-03-11 11:56:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5177,"order_number":"AZS-280226-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 11:56:17"} 
[2026-03-11 11:56:17] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5177,"order_number":"AZS-280226-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2617.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-11 11:56:17","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2617,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2617.00","database_verification_match":true,"timestamp":"2026-03-11 11:56:17"} 
[2026-03-11 11:56:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T23:56:39.912Z","date_to":"2026-03-11T11:56:39.912Z","per_page":"100"} 
[2026-03-11 11:56:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-11 11:56:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T23:56:39.922Z","date_to":"2026-03-11T11:56:39.922Z","per_page":"100"} 
[2026-03-11 11:56:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-11 11:56:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-10T23:56:39.912Z","date_to":"2026-03-11T11:56:39.912Z","per_page":"100"} 
[2026-03-11 11:56:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-11 12:35:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T00:35:23.811Z","date_to":"2026-03-11T12:35:23.811Z","per_page":"100"} 
[2026-03-11 12:35:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T00:35:23.804Z","date_to":"2026-03-11T12:35:23.804Z","per_page":"100"} 
[2026-03-11 12:35:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-03-11 12:35:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-03-11 12:35:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T00:35:23.804Z","date_to":"2026-03-11T12:35:23.804Z","per_page":"100"} 
[2026-03-11 12:35:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-03-11 12:53:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5823,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":27952},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27952,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 12:53:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5823,"items_count":7} 
[2026-03-11 12:53:50] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27952,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-11 12:53:50] local.INFO: PosOrderController::update - Item changes check {"order_id":5823,"has_item_changes":true,"old_items_count":1,"new_items_count":7,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","113|1|","62|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-11 12:53:50] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5823,"order_number":"AZS-110326-004"} 
[2026-03-11 12:53:50] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-004","replaced_order_id":5823} 
[2026-03-11 12:53:50] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5824,"items_count":7,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-11 12:53:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5824,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5824}} 
[2026-03-11 12:53:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5824,"item_index":0,"menu_item_id":417} 
[2026-03-11 12:53:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5824,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5824}} 
[2026-03-11 12:53:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5824,"item_index":1,"menu_item_id":113} 
[2026-03-11 12:53:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5824,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5824}} 
[2026-03-11 12:53:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5824,"item_index":2,"menu_item_id":62} 
[2026-03-11 12:53:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5824,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5824}} 
[2026-03-11 12:53:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5824,"item_index":3,"menu_item_id":396} 
[2026-03-11 12:53:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5824,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5824}} 
[2026-03-11 12:53:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5824,"item_index":4,"menu_item_id":61} 
[2026-03-11 12:53:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5824,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5824}} 
[2026-03-11 12:53:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5824,"item_index":5,"menu_item_id":56} 
[2026-03-11 12:53:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5824,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5824}} 
[2026-03-11 12:53:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5824,"item_index":6,"menu_item_id":5} 
[2026-03-11 12:53:50] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5823,"new_order_id":5824,"order_number":"AZS-110326-004"} 
[2026-03-11 13:09:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":5829,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 13:09:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5829,"items_count":1} 
[2026-03-11 13:09:34] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[27964],"items":[{"id":null,"menu_item_id":417,"quantity":1}]} 
[2026-03-11 13:09:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5829,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-11 13:09:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5829,"order_number":"AZS-110326-009"} 
[2026-03-11 13:09:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5829,"order_number":"AZS-110326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-11 13:09:34"} 
[2026-03-11 13:26:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5821,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null,"id":27946}],"validated_items":[{"id":27946,"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 13:26:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5821,"items_count":1} 
[2026-03-11 13:26:12] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27946,"menu_item_id":386,"quantity":1}]} 
[2026-03-11 13:26:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5821,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|"]} 
[2026-03-11 13:26:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5821,"order_number":"AZS-110326-002"} 
[2026-03-11 13:26:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5821,"order_number":"AZS-110326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-11 13:26:12"} 
[2026-03-11 13:31:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5830,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":27965},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":27966},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":27967},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":27968},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":27969},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":27970},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27971}],"validated_items":[{"id":27965,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":27966,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":27967,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":27968,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":27969,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":27970,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":27971,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 13:31:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5830,"items_count":7} 
[2026-03-11 13:31:21] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27965,"menu_item_id":114,"quantity":1},{"id":27966,"menu_item_id":113,"quantity":1},{"id":27967,"menu_item_id":396,"quantity":3},{"id":27968,"menu_item_id":50,"quantity":2},{"id":27969,"menu_item_id":56,"quantity":2},{"id":27970,"menu_item_id":61,"quantity":3},{"id":27971,"menu_item_id":5,"quantity":1}]} 
[2026-03-11 13:31:21] local.INFO: PosOrderController::update - Item changes check {"order_id":5830,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|1|","113|1|","396|3|","50|2|","56|1|","61|2|","5|1|"],"new_items_map_keys":["114|1|","113|1|","396|3|","50|2|","56|2|","61|3|","5|1|"]} 
[2026-03-11 13:31:21] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5830,"order_number":"AZS-110326-010"} 
[2026-03-11 13:31:21] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-010","replaced_order_id":5830} 
[2026-03-11 13:31:21] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5831,"items_count":7,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-11 13:31:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5831,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5831}} 
[2026-03-11 13:31:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5831,"item_index":0,"menu_item_id":114} 
[2026-03-11 13:31:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5831,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5831}} 
[2026-03-11 13:31:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5831,"item_index":1,"menu_item_id":113} 
[2026-03-11 13:31:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5831,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5831}} 
[2026-03-11 13:31:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5831,"item_index":2,"menu_item_id":396} 
[2026-03-11 13:31:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5831,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5831}} 
[2026-03-11 13:31:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5831,"item_index":3,"menu_item_id":50} 
[2026-03-11 13:31:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5831,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5831}} 
[2026-03-11 13:31:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5831,"item_index":4,"menu_item_id":56} 
[2026-03-11 13:31:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5831,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5831}} 
[2026-03-11 13:31:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5831,"item_index":5,"menu_item_id":61} 
[2026-03-11 13:31:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5831,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5831}} 
[2026-03-11 13:31:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5831,"item_index":6,"menu_item_id":5} 
[2026-03-11 13:31:21] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5830,"new_order_id":5831,"order_number":"AZS-110326-010"} 
[2026-03-11 13:31:44] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5827,"order_number":"AZS-110326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":50,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 13:31:44"} 
[2026-03-11 13:31:44] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5827,"order_number":"AZS-110326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":50,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 13:31:44"} 
[2026-03-11 13:31:44] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5827,"order_number":"AZS-110326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":50,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 13:31:44"} 
[2026-03-11 13:31:44] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5827,"order_number":"AZS-110326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":50,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 13:31:44"} 
[2026-03-11 13:31:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5827,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":400,"quantity":50,"price":1,"discount_percent":0,"notes":null,"id":27962}],"validated_items":[{"id":27962,"menu_item_id":400,"quantity":50,"price":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 13:31:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5827,"items_count":1} 
[2026-03-11 13:31:44] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27962,"menu_item_id":400,"quantity":50}]} 
[2026-03-11 13:31:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5827,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["400|50|"],"new_items_map_keys":["400|50|"]} 
[2026-03-11 13:31:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5827,"order_number":"AZS-110326-007"} 
[2026-03-11 13:31:44] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5827,"order_number":"AZS-110326-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":50,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-11 13:31:44","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 13:31:44"} 
[2026-03-11 13:31:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5827,"order_number":"AZS-110326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 13:31:44"} 
[2026-03-11 13:31:44] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5827,"order_number":"AZS-110326-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"50.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-11 13:31:44","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":50,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"50.00","database_verification_match":true,"timestamp":"2026-03-11 13:31:44"} 
[2026-03-11 13:32:00] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5828,"order_number":"AZS-110326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 13:32:00"} 
[2026-03-11 13:32:00] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5828,"order_number":"AZS-110326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 13:32:00"} 
[2026-03-11 13:32:00] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5828,"order_number":"AZS-110326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 13:32:00"} 
[2026-03-11 13:32:00] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5828,"order_number":"AZS-110326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 13:32:00"} 
[2026-03-11 13:32:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5828,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":400,"quantity":100,"price":1,"discount_percent":0,"notes":null,"id":27963}],"validated_items":[{"id":27963,"menu_item_id":400,"quantity":100,"price":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 13:32:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5828,"items_count":1} 
[2026-03-11 13:32:00] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27963,"menu_item_id":400,"quantity":100}]} 
[2026-03-11 13:32:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5828,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["400|100|"],"new_items_map_keys":["400|100|"]} 
[2026-03-11 13:32:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5828,"order_number":"AZS-110326-008"} 
[2026-03-11 13:32:00] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5828,"order_number":"AZS-110326-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-11 13:32:00","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 13:32:00"} 
[2026-03-11 13:32:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5828,"order_number":"AZS-110326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 13:32:00"} 
[2026-03-11 13:32:00] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5828,"order_number":"AZS-110326-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-11 13:32:00","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"100.00","database_verification_match":true,"timestamp":"2026-03-11 13:32:00"} 
[2026-03-11 13:32:39] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5826,"order_number":"AZS-110326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 13:32:39"} 
[2026-03-11 13:32:39] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5826,"order_number":"AZS-110326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 13:32:39"} 
[2026-03-11 13:32:39] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5826,"order_number":"AZS-110326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 13:32:39"} 
[2026-03-11 13:32:39] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5826,"order_number":"AZS-110326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 13:32:39"} 
[2026-03-11 13:32:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5826,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":27961}],"validated_items":[{"id":27961,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-11 13:32:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5826,"items_count":1} 
[2026-03-11 13:32:39] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27961,"menu_item_id":417,"quantity":1}]} 
[2026-03-11 13:32:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5826,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-11 13:32:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5826,"order_number":"AZS-110326-006"} 
[2026-03-11 13:32:39] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5826,"order_number":"AZS-110326-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-11 13:32:39","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 13:32:39"} 
[2026-03-11 13:32:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5826,"order_number":"AZS-110326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 13:32:39"} 
[2026-03-11 13:32:39] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5826,"order_number":"AZS-110326-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-11 13:32:39","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-11 13:32:39"} 
[2026-03-11 13:50:20] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5821,"order_number":"AZS-110326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2100,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 13:50:20"} 
[2026-03-11 13:50:20] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5821,"order_number":"AZS-110326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 13:50:20"} 
[2026-03-11 13:50:20] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5821,"order_number":"AZS-110326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 13:50:20"} 
[2026-03-11 13:50:20] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5821,"order_number":"AZS-110326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 13:50:20"} 
[2026-03-11 13:50:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5821,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":27946}],"validated_items":[{"id":27946,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null}]} 
[2026-03-11 13:50:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5821,"items_count":1} 
[2026-03-11 13:50:20] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27946,"menu_item_id":386,"quantity":1}]} 
[2026-03-11 13:50:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5821,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|"]} 
[2026-03-11 13:50:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5821,"order_number":"AZS-110326-002"} 
[2026-03-11 13:50:20] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5821,"order_number":"AZS-110326-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2100,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-11 13:50:20","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 13:50:20"} 
[2026-03-11 13:50:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5821,"order_number":"AZS-110326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 13:50:20"} 
[2026-03-11 13:50:20] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5821,"order_number":"AZS-110326-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2100.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-11 13:50:20","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2100.00","database_verification_match":true,"timestamp":"2026-03-11 13:50:20"} 
[2026-03-11 13:50:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T01:50:44.550Z","date_to":"2026-03-11T13:50:44.550Z","per_page":"100"} 
[2026-03-11 13:50:45] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","pending","pending","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":8,"unique_order_numbers":12} 
[2026-03-11 13:50:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T01:50:44.564Z","date_to":"2026-03-11T13:50:44.564Z","per_page":"100"} 
[2026-03-11 13:50:45] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","pending","pending","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":8,"unique_order_numbers":12} 
[2026-03-11 13:50:46] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T01:50:44.550Z","date_to":"2026-03-11T13:50:44.550Z","per_page":"100"} 
[2026-03-11 13:50:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","pending","pending","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":8,"unique_order_numbers":12} 
[2026-03-11 13:51:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5824,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":27953},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":27954},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":27955},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":27956},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27957},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27958},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27959},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":27953,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":27954,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":27955,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":27956,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":27957,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27958,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27959,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-11 13:51:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5824,"items_count":8} 
[2026-03-11 13:51:04] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27953,"menu_item_id":417,"quantity":1},{"id":27954,"menu_item_id":113,"quantity":1},{"id":27955,"menu_item_id":62,"quantity":1},{"id":27956,"menu_item_id":396,"quantity":2},{"id":27957,"menu_item_id":61,"quantity":1},{"id":27958,"menu_item_id":56,"quantity":1},{"id":27959,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-03-11 13:51:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5824,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["417|1|","113|1|","62|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["417|1|","113|1|","62|1|","396|2|","61|1|","56|1|","5|1|","13|2|"]} 
[2026-03-11 13:51:04] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5824,"order_number":"AZS-110326-004"} 
[2026-03-11 13:51:04] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-004","replaced_order_id":5824} 
[2026-03-11 13:51:04] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5834,"items_count":8,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"}]} 
[2026-03-11 13:51:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5834,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5834}} 
[2026-03-11 13:51:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5834,"item_index":0,"menu_item_id":417} 
[2026-03-11 13:51:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5834,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5834}} 
[2026-03-11 13:51:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5834,"item_index":1,"menu_item_id":113} 
[2026-03-11 13:51:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5834,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5834}} 
[2026-03-11 13:51:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5834,"item_index":2,"menu_item_id":62} 
[2026-03-11 13:51:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5834,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5834}} 
[2026-03-11 13:51:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5834,"item_index":3,"menu_item_id":396} 
[2026-03-11 13:51:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5834,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5834}} 
[2026-03-11 13:51:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5834,"item_index":4,"menu_item_id":61} 
[2026-03-11 13:51:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5834,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5834}} 
[2026-03-11 13:51:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5834,"item_index":5,"menu_item_id":56} 
[2026-03-11 13:51:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5834,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5834}} 
[2026-03-11 13:51:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5834,"item_index":6,"menu_item_id":5} 
[2026-03-11 13:51:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5834,"item_index":7,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5834}} 
[2026-03-11 13:51:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5834,"item_index":7,"menu_item_id":13} 
[2026-03-11 13:51:04] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5824,"new_order_id":5834,"order_number":"AZS-110326-004"} 
[2026-03-11 13:59:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5822,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":27947},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":27948},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27949},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27950},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27951},{"menu_item_id":9,"quantity":4,"discount_percent":0,"notes":null}],"validated_items":[{"id":27947,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":27948,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":27949,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27950,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27951,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-03-11 13:59:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5822,"items_count":6} 
[2026-03-11 13:59:16] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27947,"menu_item_id":78,"quantity":1},{"id":27948,"menu_item_id":113,"quantity":1},{"id":27949,"menu_item_id":61,"quantity":1},{"id":27950,"menu_item_id":56,"quantity":1},{"id":27951,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":9,"quantity":4}]} 
[2026-03-11 13:59:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5822,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["78|1|","113|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["78|1|","113|1|","61|1|","56|1|","5|1|","9|4|"]} 
[2026-03-11 13:59:16] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5822,"order_number":"AZS-110326-003"} 
[2026-03-11 13:59:16] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-003","replaced_order_id":5822} 
[2026-03-11 13:59:16] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5835,"items_count":6,"items":[{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":9,"quantity":4,"price":"229.00"}]} 
[2026-03-11 13:59:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5835,"item_index":0,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5835}} 
[2026-03-11 13:59:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5835,"item_index":0,"menu_item_id":78} 
[2026-03-11 13:59:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5835,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5835}} 
[2026-03-11 13:59:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5835,"item_index":1,"menu_item_id":113} 
[2026-03-11 13:59:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5835,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5835}} 
[2026-03-11 13:59:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5835,"item_index":2,"menu_item_id":61} 
[2026-03-11 13:59:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5835,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5835}} 
[2026-03-11 13:59:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5835,"item_index":3,"menu_item_id":56} 
[2026-03-11 13:59:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5835,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5835}} 
[2026-03-11 13:59:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5835,"item_index":4,"menu_item_id":5} 
[2026-03-11 13:59:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5835,"item_index":5,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":4,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":916.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5835}} 
[2026-03-11 13:59:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5835,"item_index":5,"menu_item_id":9} 
[2026-03-11 13:59:16] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5822,"new_order_id":5835,"order_number":"AZS-110326-003"} 
[2026-03-11 14:02:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:02:26.076Z","date_to":"2026-03-11T14:02:26.076Z","per_page":"100"} 
[2026-03-11 14:02:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","pending","pending","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":8,"unique_order_numbers":12} 
[2026-03-11 14:02:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:02:26.090Z","date_to":"2026-03-11T14:02:26.090Z","per_page":"100"} 
[2026-03-11 14:02:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","pending","pending","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":8,"unique_order_numbers":12} 
[2026-03-11 14:02:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:02:26.076Z","date_to":"2026-03-11T14:02:26.076Z","per_page":"100"} 
[2026-03-11 14:02:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","pending","pending","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":8,"unique_order_numbers":12} 
[2026-03-11 14:04:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5835,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":27997},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":27998},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27999},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28000},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":28001},{"menu_item_id":9,"quantity":4,"discount_percent":0,"notes":null,"id":28002}],"validated_items":[{"id":27997,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":27998,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":27999,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28000,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28001,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":28002,"menu_item_id":9,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:04:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5835,"items_count":6} 
[2026-03-11 14:04:12] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27997,"menu_item_id":78,"quantity":1},{"id":27998,"menu_item_id":113,"quantity":1},{"id":27999,"menu_item_id":61,"quantity":1},{"id":28000,"menu_item_id":56,"quantity":1},{"id":28001,"menu_item_id":5,"quantity":2},{"id":28002,"menu_item_id":9,"quantity":4}]} 
[2026-03-11 14:04:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5835,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["78|1|","113|1|","61|1|","56|1|","5|1|","9|4|"],"new_items_map_keys":["78|1|","113|1|","61|1|","56|1|","5|2|","9|4|"]} 
[2026-03-11 14:04:12] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5835,"order_number":"AZS-110326-003"} 
[2026-03-11 14:04:12] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-003","replaced_order_id":5835} 
[2026-03-11 14:04:12] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5836,"items_count":6,"items":[{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":9,"quantity":4,"price":"229.00"}]} 
[2026-03-11 14:04:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5836,"item_index":0,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5836}} 
[2026-03-11 14:04:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5836,"item_index":0,"menu_item_id":78} 
[2026-03-11 14:04:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5836,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5836}} 
[2026-03-11 14:04:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5836,"item_index":1,"menu_item_id":113} 
[2026-03-11 14:04:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5836,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5836}} 
[2026-03-11 14:04:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5836,"item_index":2,"menu_item_id":61} 
[2026-03-11 14:04:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5836,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5836}} 
[2026-03-11 14:04:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5836,"item_index":3,"menu_item_id":56} 
[2026-03-11 14:04:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5836,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5836}} 
[2026-03-11 14:04:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5836,"item_index":4,"menu_item_id":5} 
[2026-03-11 14:04:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5836,"item_index":5,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":4,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":916.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5836}} 
[2026-03-11 14:04:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5836,"item_index":5,"menu_item_id":9} 
[2026-03-11 14:04:12] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5835,"new_order_id":5836,"order_number":"AZS-110326-003"} 
[2026-03-11 14:07:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":5831,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":27972},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":27973},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":27974},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":27976},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":27977},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":27978}],"validated_items":[{"id":27972,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":27973,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":27974,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":27976,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":27977,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":27978,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:07:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5831,"items_count":6} 
[2026-03-11 14:07:01] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[27975],"items":[{"id":27972,"menu_item_id":114,"quantity":1},{"id":27973,"menu_item_id":113,"quantity":1},{"id":27974,"menu_item_id":396,"quantity":5},{"id":27976,"menu_item_id":56,"quantity":2},{"id":27977,"menu_item_id":61,"quantity":3},{"id":27978,"menu_item_id":5,"quantity":1}]} 
[2026-03-11 14:07:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5831,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["114|1|","113|1|","396|3|","50|2|","56|2|","61|3|","5|1|"],"new_items_map_keys":["114|1|","113|1|","396|5|","56|2|","61|3|","5|1|"]} 
[2026-03-11 14:07:01] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5831,"order_number":"AZS-110326-010"} 
[2026-03-11 14:07:01] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-010","replaced_order_id":5831} 
[2026-03-11 14:07:01] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5837,"items_count":6,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-11 14:07:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5837,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5837}} 
[2026-03-11 14:07:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5837,"item_index":0,"menu_item_id":114} 
[2026-03-11 14:07:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5837,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5837}} 
[2026-03-11 14:07:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5837,"item_index":1,"menu_item_id":113} 
[2026-03-11 14:07:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5837,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5837}} 
[2026-03-11 14:07:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5837,"item_index":2,"menu_item_id":396} 
[2026-03-11 14:07:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5837,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5837}} 
[2026-03-11 14:07:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5837,"item_index":3,"menu_item_id":56} 
[2026-03-11 14:07:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5837,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5837}} 
[2026-03-11 14:07:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5837,"item_index":4,"menu_item_id":61} 
[2026-03-11 14:07:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5837,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5837}} 
[2026-03-11 14:07:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5837,"item_index":5,"menu_item_id":5} 
[2026-03-11 14:07:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5831,"new_order_id":5837,"order_number":"AZS-110326-010"} 
[2026-03-11 14:07:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:07:17.587Z","date_to":"2026-03-11T14:07:17.587Z","per_page":"100"} 
[2026-03-11 14:07:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","pending","pending","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":8,"unique_order_numbers":12} 
[2026-03-11 14:07:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:07:17.603Z","date_to":"2026-03-11T14:07:17.603Z","per_page":"100"} 
[2026-03-11 14:07:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","pending","pending","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":8,"unique_order_numbers":12} 
[2026-03-11 14:07:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:07:17.587Z","date_to":"2026-03-11T14:07:17.587Z","per_page":"100"} 
[2026-03-11 14:07:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","pending","pending","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":8,"unique_order_numbers":12} 
[2026-03-11 14:07:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5837,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":28009},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":28010},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":28011},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":28012},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":28013},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28014}],"validated_items":[{"id":28009,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":28010,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":28011,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":28012,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":28013,"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"id":28014,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:07:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5837,"items_count":6} 
[2026-03-11 14:07:53] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28009,"menu_item_id":114,"quantity":1},{"id":28010,"menu_item_id":113,"quantity":1},{"id":28011,"menu_item_id":396,"quantity":5},{"id":28012,"menu_item_id":56,"quantity":2},{"id":28013,"menu_item_id":61,"quantity":4},{"id":28014,"menu_item_id":5,"quantity":1}]} 
[2026-03-11 14:07:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5837,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","113|1|","396|5|","56|2|","61|3|","5|1|"],"new_items_map_keys":["114|1|","113|1|","396|5|","56|2|","61|4|","5|1|"]} 
[2026-03-11 14:07:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5837,"order_number":"AZS-110326-010"} 
[2026-03-11 14:07:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-010","replaced_order_id":5837} 
[2026-03-11 14:07:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5838,"items_count":6,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":61,"quantity":4,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-11 14:07:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5838,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5838}} 
[2026-03-11 14:07:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5838,"item_index":0,"menu_item_id":114} 
[2026-03-11 14:07:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5838,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5838}} 
[2026-03-11 14:07:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5838,"item_index":1,"menu_item_id":113} 
[2026-03-11 14:07:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5838,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5838}} 
[2026-03-11 14:07:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5838,"item_index":2,"menu_item_id":396} 
[2026-03-11 14:07:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5838,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5838}} 
[2026-03-11 14:07:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5838,"item_index":3,"menu_item_id":56} 
[2026-03-11 14:07:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5838,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5838}} 
[2026-03-11 14:07:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5838,"item_index":4,"menu_item_id":61} 
[2026-03-11 14:07:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5838,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5838}} 
[2026-03-11 14:07:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5838,"item_index":5,"menu_item_id":5} 
[2026-03-11 14:07:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5837,"new_order_id":5838,"order_number":"AZS-110326-010"} 
[2026-03-11 14:08:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5838,"item_index":0,"item_id":28009} 
[2026-03-11 14:08:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5838,"item_index":1,"item_id":28010} 
[2026-03-11 14:08:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5838,"item_index":2,"item_id":28011} 
[2026-03-11 14:08:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5838,"item_index":3,"item_id":28012} 
[2026-03-11 14:08:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5838,"item_index":4,"item_id":28013} 
[2026-03-11 14:08:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5838,"item_index":5,"item_id":28014} 
[2026-03-11 14:08:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5838,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":28009},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":28010},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":28011},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":28012},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":28013},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28014}],"validated_items":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:08:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5838,"items_count":6} 
[2026-03-11 14:08:06] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[28015,28016,28017,28018,28019,28020],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":396,"quantity":5},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":61,"quantity":4},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-11 14:08:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5838,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","113|1|","396|5|","56|2|","61|4|","5|1|"],"new_items_map_keys":["114|1|","113|1|","396|5|","56|2|","61|4|","5|1|"]} 
[2026-03-11 14:08:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5838,"order_number":"AZS-110326-010"} 
[2026-03-11 14:08:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5838,"order_number":"AZS-110326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-11 14:08:06"} 
[2026-03-11 14:08:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:08:10.234Z","date_to":"2026-03-11T14:08:10.234Z","per_page":"100"} 
[2026-03-11 14:08:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:08:10.251Z","date_to":"2026-03-11T14:08:10.251Z","per_page":"100"} 
[2026-03-11 14:08:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","pending","pending","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":8,"unique_order_numbers":12} 
[2026-03-11 14:08:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","pending","pending","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":8,"unique_order_numbers":12} 
[2026-03-11 14:08:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:08:10.234Z","date_to":"2026-03-11T14:08:10.234Z","per_page":"100"} 
[2026-03-11 14:08:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","pending","pending","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":8,"unique_order_numbers":12} 
[2026-03-11 14:09:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5838,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":28015},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":28016},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":28017},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":28018},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":28019},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28020}],"validated_items":[{"id":28015,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":28016,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":28017,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":28018,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":28019,"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"id":28020,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:09:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5838,"items_count":6} 
[2026-03-11 14:09:11] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28015,"menu_item_id":114,"quantity":1},{"id":28016,"menu_item_id":113,"quantity":1},{"id":28017,"menu_item_id":396,"quantity":5},{"id":28018,"menu_item_id":56,"quantity":2},{"id":28019,"menu_item_id":61,"quantity":4},{"id":28020,"menu_item_id":5,"quantity":1}]} 
[2026-03-11 14:09:11] local.INFO: PosOrderController::update - Item changes check {"order_id":5838,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","113|1|","396|5|","56|2|","61|4|","5|1|"],"new_items_map_keys":["114|1|","113|1|","396|5|","56|2|","61|4|","5|1|"]} 
[2026-03-11 14:09:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5838,"order_number":"AZS-110326-010"} 
[2026-03-11 14:09:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5838,"order_number":"AZS-110326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-11 14:09:11"} 
[2026-03-11 14:09:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5838,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28015},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28016},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":28017},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28018},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":28019},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28020}],"validated_items":[{"id":28015,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":28016,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28017,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":28018,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28019,"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":28020,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:09:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5838,"items_count":6} 
[2026-03-11 14:09:16] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28015,"menu_item_id":114,"quantity":1},{"id":28016,"menu_item_id":113,"quantity":1},{"id":28017,"menu_item_id":396,"quantity":5},{"id":28018,"menu_item_id":56,"quantity":2},{"id":28019,"menu_item_id":61,"quantity":4},{"id":28020,"menu_item_id":5,"quantity":1}]} 
[2026-03-11 14:09:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5838,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","113|1|","396|5|","56|2|","61|4|","5|1|"],"new_items_map_keys":["114|1|","113|1|","396|5|","56|2|","61|4|","5|1|"]} 
[2026-03-11 14:09:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5838,"order_number":"AZS-110326-010"} 
[2026-03-11 14:09:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5838,"order_number":"AZS-110326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 14:09:16"} 
[2026-03-11 14:09:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:09:21.379Z","date_to":"2026-03-11T14:09:21.379Z","per_page":"100"} 
[2026-03-11 14:09:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","pending","pending","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":8,"unique_order_numbers":12} 
[2026-03-11 14:09:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:09:21.364Z","date_to":"2026-03-11T14:09:21.364Z","per_page":"100"} 
[2026-03-11 14:09:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","pending","pending","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":8,"unique_order_numbers":12} 
[2026-03-11 14:09:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:09:21.364Z","date_to":"2026-03-11T14:09:21.364Z","per_page":"100"} 
[2026-03-11 14:09:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","pending","pending","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":8,"unique_order_numbers":12} 
[2026-03-11 14:10:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:10:29.506Z","date_to":"2026-03-11T14:10:29.506Z","per_page":"100"} 
[2026-03-11 14:10:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","pending","pending","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":8,"unique_order_numbers":12} 
[2026-03-11 14:10:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:10:29.522Z","date_to":"2026-03-11T14:10:29.522Z","per_page":"100"} 
[2026-03-11 14:10:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","pending","pending","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":8,"unique_order_numbers":12} 
[2026-03-11 14:10:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:10:29.506Z","date_to":"2026-03-11T14:10:29.506Z","per_page":"100"} 
[2026-03-11 14:10:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","pending","pending","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":8,"unique_order_numbers":12} 
[2026-03-11 14:10:56] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5829,"order_number":"AZS-110326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 14:10:56"} 
[2026-03-11 14:10:56] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5829,"order_number":"AZS-110326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 14:10:56"} 
[2026-03-11 14:10:56] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5829,"order_number":"AZS-110326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 14:10:56"} 
[2026-03-11 14:10:56] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5829,"order_number":"AZS-110326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 14:10:56"} 
[2026-03-11 14:10:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5829,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":27964}],"validated_items":[{"id":27964,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:10:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5829,"items_count":1} 
[2026-03-11 14:10:56] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27964,"menu_item_id":417,"quantity":1}]} 
[2026-03-11 14:10:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5829,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-11 14:10:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5829,"order_number":"AZS-110326-009"} 
[2026-03-11 14:10:56] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5829,"order_number":"AZS-110326-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-11 14:10:56","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 14:10:56"} 
[2026-03-11 14:10:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5829,"order_number":"AZS-110326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 14:10:56"} 
[2026-03-11 14:10:56] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5829,"order_number":"AZS-110326-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-11 14:10:56","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-11 14:10:56"} 
[2026-03-11 14:11:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:11:25.298Z","date_to":"2026-03-11T14:11:25.298Z","per_page":"100"} 
[2026-03-11 14:11:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","pending","pending","pending","paid","pending"],"deleted_count":0,"paid_count":5,"unpaid_count":7,"unique_order_numbers":12} 
[2026-03-11 14:11:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:11:25.282Z","date_to":"2026-03-11T14:11:25.282Z","per_page":"100"} 
[2026-03-11 14:11:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","pending","pending","pending","paid","pending"],"deleted_count":0,"paid_count":5,"unpaid_count":7,"unique_order_numbers":12} 
[2026-03-11 14:11:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:11:25.282Z","date_to":"2026-03-11T14:11:25.282Z","per_page":"100"} 
[2026-03-11 14:11:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","pending","pending","pending","paid","pending"],"deleted_count":0,"paid_count":5,"unpaid_count":7,"unique_order_numbers":12} 
[2026-03-11 14:12:12] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5825,"order_number":"AZS-110326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 14:12:12"} 
[2026-03-11 14:12:12] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5825,"order_number":"AZS-110326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 14:12:12"} 
[2026-03-11 14:12:12] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5825,"order_number":"AZS-110326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 14:12:12"} 
[2026-03-11 14:12:12] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5825,"order_number":"AZS-110326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 14:12:12"} 
[2026-03-11 14:12:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5825,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":27960}],"validated_items":[{"id":27960,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:12:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5825,"items_count":1} 
[2026-03-11 14:12:12] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27960,"menu_item_id":417,"quantity":1}]} 
[2026-03-11 14:12:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5825,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-11 14:12:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5825,"order_number":"AZS-110326-005"} 
[2026-03-11 14:12:12] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5825,"order_number":"AZS-110326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-11 14:12:12","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 14:12:12"} 
[2026-03-11 14:12:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5825,"order_number":"AZS-110326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 14:12:12"} 
[2026-03-11 14:12:12] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5825,"order_number":"AZS-110326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-11 14:12:12","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-11 14:12:12"} 
[2026-03-11 14:12:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:12:24.074Z","date_to":"2026-03-11T14:12:24.074Z","per_page":"100"} 
[2026-03-11 14:12:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:12:24.057Z","date_to":"2026-03-11T14:12:24.057Z","per_page":"100"} 
[2026-03-11 14:12:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","pending","pending","paid","pending"],"deleted_count":0,"paid_count":6,"unpaid_count":6,"unique_order_numbers":12} 
[2026-03-11 14:12:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","pending","pending","paid","pending"],"deleted_count":0,"paid_count":6,"unpaid_count":6,"unique_order_numbers":12} 
[2026-03-11 14:12:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:12:24.057Z","date_to":"2026-03-11T14:12:24.057Z","per_page":"100"} 
[2026-03-11 14:12:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","pending","pending","paid","pending"],"deleted_count":0,"paid_count":6,"unpaid_count":6,"unique_order_numbers":12} 
[2026-03-11 14:14:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5834,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":27989},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27990},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":27991},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27992},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27993},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27994},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27995},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":27996}],"validated_items":[{"id":27989,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":27990,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27991,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":27992,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27993,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27994,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27995,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27996,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:14:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5834,"items_count":8} 
[2026-03-11 14:14:08] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27989,"menu_item_id":417,"quantity":1},{"id":27990,"menu_item_id":113,"quantity":1},{"id":27991,"menu_item_id":62,"quantity":1},{"id":27992,"menu_item_id":396,"quantity":2},{"id":27993,"menu_item_id":61,"quantity":1},{"id":27994,"menu_item_id":56,"quantity":1},{"id":27995,"menu_item_id":5,"quantity":1},{"id":27996,"menu_item_id":13,"quantity":2}]} 
[2026-03-11 14:14:08] local.INFO: PosOrderController::update - Item changes check {"order_id":5834,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["417|1|","113|1|","62|1|","396|2|","61|1|","56|1|","5|1|","13|2|"],"new_items_map_keys":["417|1|","113|1|","62|1|","396|2|","61|1|","56|1|","5|1|","13|2|"]} 
[2026-03-11 14:14:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5834,"order_number":"AZS-110326-004"} 
[2026-03-11 14:14:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5834,"order_number":"AZS-110326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 14:14:08"} 
[2026-03-11 14:16:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5836,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":28003},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28004},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28005},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28006},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":28007},{"menu_item_id":9,"quantity":4,"price":229,"discount_percent":0,"notes":null,"id":28008}],"validated_items":[{"id":28003,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":28004,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28005,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28006,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28007,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":28008,"menu_item_id":9,"quantity":4,"price":229,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:16:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5836,"items_count":6} 
[2026-03-11 14:16:19] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28003,"menu_item_id":78,"quantity":1},{"id":28004,"menu_item_id":113,"quantity":1},{"id":28005,"menu_item_id":61,"quantity":1},{"id":28006,"menu_item_id":56,"quantity":1},{"id":28007,"menu_item_id":5,"quantity":2},{"id":28008,"menu_item_id":9,"quantity":4}]} 
[2026-03-11 14:16:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5836,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["78|1|","113|1|","61|1|","56|1|","5|2|","9|4|"],"new_items_map_keys":["78|1|","113|1|","61|1|","56|1|","5|2|","9|4|"]} 
[2026-03-11 14:16:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5836,"order_number":"AZS-110326-003"} 
[2026-03-11 14:16:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5836,"order_number":"AZS-110326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 14:16:19"} 
[2026-03-11 14:17:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5836,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":28003},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":28004},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28005},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28006},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":28007},{"menu_item_id":9,"quantity":4,"discount_percent":0,"notes":null,"id":28008},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28003,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":28004,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":28005,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28006,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28007,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":28008,"menu_item_id":9,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:17:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5836,"items_count":7} 
[2026-03-11 14:17:03] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28003,"menu_item_id":78,"quantity":1},{"id":28004,"menu_item_id":113,"quantity":1},{"id":28005,"menu_item_id":61,"quantity":1},{"id":28006,"menu_item_id":56,"quantity":1},{"id":28007,"menu_item_id":5,"quantity":2},{"id":28008,"menu_item_id":9,"quantity":4},{"id":null,"menu_item_id":396,"quantity":1}]} 
[2026-03-11 14:17:03] local.INFO: PosOrderController::update - Item changes check {"order_id":5836,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["78|1|","113|1|","61|1|","56|1|","5|2|","9|4|"],"new_items_map_keys":["78|1|","113|1|","61|1|","56|1|","5|2|","9|4|","396|1|"]} 
[2026-03-11 14:17:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5836,"order_number":"AZS-110326-003"} 
[2026-03-11 14:17:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-003","replaced_order_id":5836} 
[2026-03-11 14:17:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5839,"items_count":7,"items":[{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":9,"quantity":4,"price":"229.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"}]} 
[2026-03-11 14:17:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5839,"item_index":0,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5839}} 
[2026-03-11 14:17:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5839,"item_index":0,"menu_item_id":78} 
[2026-03-11 14:17:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5839,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5839}} 
[2026-03-11 14:17:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5839,"item_index":1,"menu_item_id":113} 
[2026-03-11 14:17:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5839,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5839}} 
[2026-03-11 14:17:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5839,"item_index":2,"menu_item_id":61} 
[2026-03-11 14:17:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5839,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5839}} 
[2026-03-11 14:17:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5839,"item_index":3,"menu_item_id":56} 
[2026-03-11 14:17:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5839,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5839}} 
[2026-03-11 14:17:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5839,"item_index":4,"menu_item_id":5} 
[2026-03-11 14:17:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5839,"item_index":5,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":4,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":916.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5839}} 
[2026-03-11 14:17:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5839,"item_index":5,"menu_item_id":9} 
[2026-03-11 14:17:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5839,"item_index":6,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5839}} 
[2026-03-11 14:17:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5839,"item_index":6,"menu_item_id":396} 
[2026-03-11 14:17:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5836,"new_order_id":5839,"order_number":"AZS-110326-003"} 
[2026-03-11 14:17:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5839,"item_index":0,"item_id":28003} 
[2026-03-11 14:17:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5839,"item_index":1,"item_id":28004} 
[2026-03-11 14:17:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5839,"item_index":2,"item_id":28005} 
[2026-03-11 14:17:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5839,"item_index":3,"item_id":28006} 
[2026-03-11 14:17:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5839,"item_index":4,"item_id":28007} 
[2026-03-11 14:17:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5839,"item_index":5,"item_id":28008} 
[2026-03-11 14:17:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5839,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":28003},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28004},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28005},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28006},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":28007},{"menu_item_id":9,"quantity":4,"price":229,"discount_percent":0,"notes":null,"id":28008},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":4,"price":229,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:17:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5839,"items_count":7} 
[2026-03-11 14:17:07] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[28021,28022,28023,28024,28025,28026,28027],"items":[{"id":null,"menu_item_id":78,"quantity":1},{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":9,"quantity":4},{"id":null,"menu_item_id":396,"quantity":1}]} 
[2026-03-11 14:17:07] local.INFO: PosOrderController::update - Item changes check {"order_id":5839,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["78|1|","113|1|","61|1|","56|1|","5|2|","9|4|","396|1|"],"new_items_map_keys":["78|1|","113|1|","61|1|","56|1|","5|2|","9|4|","396|1|"]} 
[2026-03-11 14:17:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5839,"order_number":"AZS-110326-003"} 
[2026-03-11 14:17:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5839,"order_number":"AZS-110326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 14:17:07"} 
[2026-03-11 14:28:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5838,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":28015},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":28016},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":28017},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":28018},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":28019},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28020},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28015,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":28016,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":28017,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":28018,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":28019,"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"id":28020,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:28:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5838,"items_count":7} 
[2026-03-11 14:28:31] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28015,"menu_item_id":114,"quantity":1},{"id":28016,"menu_item_id":113,"quantity":1},{"id":28017,"menu_item_id":396,"quantity":5},{"id":28018,"menu_item_id":56,"quantity":2},{"id":28019,"menu_item_id":61,"quantity":4},{"id":28020,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 14:28:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5838,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["114|1|","113|1|","396|5|","56|2|","61|4|","5|1|"],"new_items_map_keys":["114|1|","113|1|","396|5|","56|2|","61|4|","5|1|","3|1|"]} 
[2026-03-11 14:28:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5838,"order_number":"AZS-110326-010"} 
[2026-03-11 14:28:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-010","replaced_order_id":5838} 
[2026-03-11 14:28:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5841,"items_count":7,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":61,"quantity":4,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-11 14:28:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5841,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5841}} 
[2026-03-11 14:28:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5841,"item_index":0,"menu_item_id":114} 
[2026-03-11 14:28:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5841,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5841}} 
[2026-03-11 14:28:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5841,"item_index":1,"menu_item_id":113} 
[2026-03-11 14:28:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5841,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5841}} 
[2026-03-11 14:28:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5841,"item_index":2,"menu_item_id":396} 
[2026-03-11 14:28:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5841,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5841}} 
[2026-03-11 14:28:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5841,"item_index":3,"menu_item_id":56} 
[2026-03-11 14:28:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5841,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5841}} 
[2026-03-11 14:28:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5841,"item_index":4,"menu_item_id":61} 
[2026-03-11 14:28:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5841,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5841}} 
[2026-03-11 14:28:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5841,"item_index":5,"menu_item_id":5} 
[2026-03-11 14:28:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5841,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5841}} 
[2026-03-11 14:28:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5841,"item_index":6,"menu_item_id":3} 
[2026-03-11 14:28:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5838,"new_order_id":5841,"order_number":"AZS-110326-010"} 
[2026-03-11 14:35:07] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5839,"order_number":"AZS-110326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":8000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 14:35:07"} 
[2026-03-11 14:35:07] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5839,"order_number":"AZS-110326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":8000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 14:35:07"} 
[2026-03-11 14:35:07] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5839,"order_number":"AZS-110326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":8000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 14:35:07"} 
[2026-03-11 14:35:07] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5839,"order_number":"AZS-110326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":8000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 14:35:07"} 
[2026-03-11 14:35:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5839,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":28021},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28022},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28023},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28024},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":28025},{"menu_item_id":9,"quantity":4,"price":229,"discount_percent":0,"notes":null,"id":28026},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28027}],"validated_items":[{"id":28021,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":28022,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28023,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28024,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28025,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":28026,"menu_item_id":9,"quantity":4,"price":229,"discount_percent":0,"notes":null},{"id":28027,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:35:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5839,"items_count":7} 
[2026-03-11 14:35:07] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28021,"menu_item_id":78,"quantity":1},{"id":28022,"menu_item_id":113,"quantity":1},{"id":28023,"menu_item_id":61,"quantity":1},{"id":28024,"menu_item_id":56,"quantity":1},{"id":28025,"menu_item_id":5,"quantity":2},{"id":28026,"menu_item_id":9,"quantity":4},{"id":28027,"menu_item_id":396,"quantity":1}]} 
[2026-03-11 14:35:07] local.INFO: PosOrderController::update - Item changes check {"order_id":5839,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["78|1|","113|1|","61|1|","56|1|","5|2|","9|4|","396|1|"],"new_items_map_keys":["78|1|","113|1|","61|1|","56|1|","5|2|","9|4|","396|1|"]} 
[2026-03-11 14:35:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5839,"order_number":"AZS-110326-003"} 
[2026-03-11 14:35:07] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5839,"order_number":"AZS-110326-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":8000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-11 14:35:07","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 14:35:07"} 
[2026-03-11 14:35:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5839,"order_number":"AZS-110326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 14:35:07"} 
[2026-03-11 14:35:07] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5839,"order_number":"AZS-110326-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"8000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-11 14:35:07","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":8000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"8000.00","database_verification_match":true,"timestamp":"2026-03-11 14:35:07"} 
[2026-03-11 14:37:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5834,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":27989},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27990},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":27991},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27992},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27993},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27994},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27995},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":27996}],"validated_items":[{"id":27989,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":27990,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27991,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":27992,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27993,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27994,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27995,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27996,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:37:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5834,"items_count":8} 
[2026-03-11 14:37:36] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27989,"menu_item_id":417,"quantity":1},{"id":27990,"menu_item_id":113,"quantity":1},{"id":27991,"menu_item_id":62,"quantity":1},{"id":27992,"menu_item_id":396,"quantity":2},{"id":27993,"menu_item_id":61,"quantity":1},{"id":27994,"menu_item_id":56,"quantity":1},{"id":27995,"menu_item_id":5,"quantity":1},{"id":27996,"menu_item_id":13,"quantity":2}]} 
[2026-03-11 14:37:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5834,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["417|1|","113|1|","62|1|","396|2|","61|1|","56|1|","5|1|","13|2|"],"new_items_map_keys":["417|1|","113|1|","62|1|","396|2|","61|1|","56|1|","5|1|","13|2|"]} 
[2026-03-11 14:37:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5834,"order_number":"AZS-110326-004"} 
[2026-03-11 14:37:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5834,"order_number":"AZS-110326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 14:37:36"} 
[2026-03-11 14:38:12] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5834,"order_number":"AZS-110326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4262,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 14:38:12"} 
[2026-03-11 14:38:12] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5834,"order_number":"AZS-110326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4262,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 14:38:12"} 
[2026-03-11 14:38:12] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5834,"order_number":"AZS-110326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4262,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 14:38:12"} 
[2026-03-11 14:38:12] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5834,"order_number":"AZS-110326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4262,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 14:38:12"} 
[2026-03-11 14:38:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":1,"order_id":5834,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":27989},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27990},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":27991},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27992},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27994},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":27995},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":27996}],"validated_items":[{"id":27989,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":27990,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27991,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":27992,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27994,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27995,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":27996,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:38:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5834,"items_count":7} 
[2026-03-11 14:38:12] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":1,"items_to_remove":[27993],"items":[{"id":27989,"menu_item_id":417,"quantity":1},{"id":27990,"menu_item_id":113,"quantity":1},{"id":27991,"menu_item_id":62,"quantity":1},{"id":27992,"menu_item_id":396,"quantity":2},{"id":27994,"menu_item_id":56,"quantity":1},{"id":27995,"menu_item_id":5,"quantity":1},{"id":27996,"menu_item_id":13,"quantity":2}]} 
[2026-03-11 14:38:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5834,"has_item_changes":true,"old_items_count":8,"new_items_count":7,"old_items_map_keys":["417|1|","113|1|","62|1|","396|2|","61|1|","56|1|","5|1|","13|2|"],"new_items_map_keys":["417|1|","113|1|","62|1|","396|2|","56|1|","5|1|","13|2|"]} 
[2026-03-11 14:38:12] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5834,"order_number":"AZS-110326-004","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":4262,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-11 14:38:12","original_payment_amount":"0.00","grand_total":4262.0,"timestamp":"2026-03-11 14:38:12"} 
[2026-03-11 14:38:12] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5834,"order_number":"AZS-110326-004"} 
[2026-03-11 14:38:12] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-004","replaced_order_id":5834} 
[2026-03-11 14:38:12] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5834,"new_order_id":5843,"order_number":"AZS-110326-004","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"4262.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-11 14:38:12","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4262,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-11 14:38:12"} 
[2026-03-11 14:38:12] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5843,"items_count":7,"items":[{"menu_item_id":417,"quantity":1,"price":499.0},{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":62,"quantity":1,"price":1499.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":13,"quantity":2,"price":249.0}]} 
[2026-03-11 14:38:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5843,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":499.0,"discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5843}} 
[2026-03-11 14:38:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5843,"item_index":0,"menu_item_id":417} 
[2026-03-11 14:38:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5843,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5843}} 
[2026-03-11 14:38:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5843,"item_index":1,"menu_item_id":113} 
[2026-03-11 14:38:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5843,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":1499.0,"discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5843}} 
[2026-03-11 14:38:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5843,"item_index":2,"menu_item_id":62} 
[2026-03-11 14:38:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5843,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5843}} 
[2026-03-11 14:38:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5843,"item_index":3,"menu_item_id":396} 
[2026-03-11 14:38:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5843,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5843}} 
[2026-03-11 14:38:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5843,"item_index":4,"menu_item_id":56} 
[2026-03-11 14:38:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5843,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5843}} 
[2026-03-11 14:38:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5843,"item_index":5,"menu_item_id":5} 
[2026-03-11 14:38:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5843,"item_index":6,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5843}} 
[2026-03-11 14:38:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5843,"item_index":6,"menu_item_id":13} 
[2026-03-11 14:38:12] local.WARNING: Inventory not found for item 184  
[2026-03-11 14:38:12] local.ERROR: Error tracking recipe usage for order 5843: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5843, 62, 184, 1, 5000, ?, Order #AZS-110326-004 - 1x Chicken Malai Boti (10 pcs), 2026-03-11 14:38:12, 2026-03-11 14:38:12))  
[2026-03-11 14:38:12] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5834,"new_order_id":5843,"order_number":"AZS-110326-004"} 
[2026-03-11 14:38:12] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5834,"new_order_id":5843,"order_number":"AZS-110326-004","route":"api/orders/5834"} 
[2026-03-11 14:38:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5833,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27985},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":27986},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":27987},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27988}],"validated_items":[{"id":27985,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27986,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":27987,"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":27988,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:38:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5833,"items_count":4} 
[2026-03-11 14:38:31] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27985,"menu_item_id":113,"quantity":1},{"id":27986,"menu_item_id":50,"quantity":1},{"id":27987,"menu_item_id":49,"quantity":1},{"id":27988,"menu_item_id":61,"quantity":1}]} 
[2026-03-11 14:38:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5833,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","50|1|","49|1|","61|1|"],"new_items_map_keys":["113|1|","50|1|","49|1|","61|1|"]} 
[2026-03-11 14:38:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5833,"order_number":"AZS-110326-012"} 
[2026-03-11 14:38:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5833,"order_number":"AZS-110326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 14:38:31"} 
[2026-03-11 14:40:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5841,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28036},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28037},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":28038},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28039},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":28040},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28041},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28042}],"validated_items":[{"id":28036,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":28037,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28038,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":28039,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28040,"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":28041,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28042,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:40:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5841,"items_count":7} 
[2026-03-11 14:40:11] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28036,"menu_item_id":114,"quantity":1},{"id":28037,"menu_item_id":113,"quantity":1},{"id":28038,"menu_item_id":396,"quantity":5},{"id":28039,"menu_item_id":56,"quantity":2},{"id":28040,"menu_item_id":61,"quantity":4},{"id":28041,"menu_item_id":5,"quantity":1},{"id":28042,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 14:40:11] local.INFO: PosOrderController::update - Item changes check {"order_id":5841,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|1|","113|1|","396|5|","56|2|","61|4|","5|1|","3|1|"],"new_items_map_keys":["114|1|","113|1|","396|5|","56|2|","61|4|","5|1|","3|1|"]} 
[2026-03-11 14:40:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5841,"order_number":"AZS-110326-010"} 
[2026-03-11 14:40:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5841,"order_number":"AZS-110326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 14:40:11"} 
[2026-03-11 14:40:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:40:41.741Z","date_to":"2026-03-11T14:40:41.741Z","per_page":"100"} 
[2026-03-11 14:40:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":8,"unpaid_count":6,"unique_order_numbers":14} 
[2026-03-11 14:40:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:40:41.754Z","date_to":"2026-03-11T14:40:41.754Z","per_page":"100"} 
[2026-03-11 14:40:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":8,"unpaid_count":6,"unique_order_numbers":14} 
[2026-03-11 14:40:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:40:41.741Z","date_to":"2026-03-11T14:40:41.741Z","per_page":"100"} 
[2026-03-11 14:40:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":8,"unpaid_count":6,"unique_order_numbers":14} 
[2026-03-11 14:42:42] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5833,"order_number":"AZS-110326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1677,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 14:42:42"} 
[2026-03-11 14:42:42] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5833,"order_number":"AZS-110326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1677,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 14:42:42"} 
[2026-03-11 14:42:42] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5833,"order_number":"AZS-110326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1677,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 14:42:42"} 
[2026-03-11 14:42:42] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5833,"order_number":"AZS-110326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1677,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 14:42:42"} 
[2026-03-11 14:42:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5833,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":27985},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":27986},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":27987},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27988}],"validated_items":[{"id":27985,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":27986,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":27987,"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":27988,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:42:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5833,"items_count":4} 
[2026-03-11 14:42:42] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27985,"menu_item_id":113,"quantity":1},{"id":27986,"menu_item_id":50,"quantity":1},{"id":27987,"menu_item_id":49,"quantity":1},{"id":27988,"menu_item_id":61,"quantity":1}]} 
[2026-03-11 14:42:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5833,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","50|1|","49|1|","61|1|"],"new_items_map_keys":["113|1|","50|1|","49|1|","61|1|"]} 
[2026-03-11 14:42:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5833,"order_number":"AZS-110326-012"} 
[2026-03-11 14:42:42] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5833,"order_number":"AZS-110326-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1677,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-11 14:42:42","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 14:42:42"} 
[2026-03-11 14:42:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5833,"order_number":"AZS-110326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 14:42:42"} 
[2026-03-11 14:42:42] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5833,"order_number":"AZS-110326-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1677.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-11 14:42:42","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1677,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1677.00","database_verification_match":true,"timestamp":"2026-03-11 14:42:42"} 
[2026-03-11 14:42:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":5842,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:42:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5842,"items_count":1} 
[2026-03-11 14:42:53] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[28043],"items":[{"id":null,"menu_item_id":29,"quantity":2}]} 
[2026-03-11 14:42:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5842,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|2|"],"new_items_map_keys":["29|2|"]} 
[2026-03-11 14:42:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5842,"order_number":"AZS-110326-014"} 
[2026-03-11 14:42:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-014","replaced_order_id":5842} 
[2026-03-11 14:42:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5844,"items_count":1,"items":[{"menu_item_id":29,"quantity":2,"price":"250.00"}]} 
[2026-03-11 14:42:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5844,"item_index":0,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5844}} 
[2026-03-11 14:42:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5844,"item_index":0,"menu_item_id":29} 
[2026-03-11 14:42:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5842,"new_order_id":5844,"order_number":"AZS-110326-014"} 
[2026-03-11 14:44:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5832,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":27979},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27980},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":27981},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27982},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27983},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":27984}],"validated_items":[{"id":27979,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":27980,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":27981,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":27982,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27983,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":27984,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:44:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5832,"items_count":6} 
[2026-03-11 14:44:32] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27979,"menu_item_id":105,"quantity":1},{"id":27980,"menu_item_id":67,"quantity":1},{"id":27981,"menu_item_id":396,"quantity":2},{"id":27982,"menu_item_id":61,"quantity":1},{"id":27983,"menu_item_id":56,"quantity":1},{"id":27984,"menu_item_id":29,"quantity":2}]} 
[2026-03-11 14:44:32] local.INFO: PosOrderController::update - Item changes check {"order_id":5832,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["105|1|","67|1|","396|2|","61|1|","56|1|","29|2|"],"new_items_map_keys":["105|1|","67|1|","396|2|","61|1|","56|1|","29|2|"]} 
[2026-03-11 14:44:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5832,"order_number":"AZS-110326-011"} 
[2026-03-11 14:44:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5832,"order_number":"AZS-110326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 14:44:32"} 
[2026-03-11 14:45:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5841,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28036},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28037},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":28038},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28039},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":28040},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28041},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28042}],"validated_items":[{"id":28036,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":28037,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28038,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":28039,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28040,"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":28041,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28042,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:45:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5841,"items_count":7} 
[2026-03-11 14:45:20] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28036,"menu_item_id":114,"quantity":1},{"id":28037,"menu_item_id":113,"quantity":1},{"id":28038,"menu_item_id":396,"quantity":5},{"id":28039,"menu_item_id":56,"quantity":2},{"id":28040,"menu_item_id":61,"quantity":4},{"id":28041,"menu_item_id":5,"quantity":1},{"id":28042,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 14:45:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5841,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|1|","113|1|","396|5|","56|2|","61|4|","5|1|","3|1|"],"new_items_map_keys":["114|1|","113|1|","396|5|","56|2|","61|4|","5|1|","3|1|"]} 
[2026-03-11 14:45:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5841,"order_number":"AZS-110326-010"} 
[2026-03-11 14:45:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5841,"order_number":"AZS-110326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 14:45:20"} 
[2026-03-11 14:45:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5832,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":27979},{"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null,"id":27980},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":27981},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":27982},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":27983},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null,"id":27984},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27979,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":27980,"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null},{"id":27981,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":27982,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":27983,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":27984,"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:45:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5832,"items_count":7} 
[2026-03-11 14:45:38] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27979,"menu_item_id":105,"quantity":1},{"id":27980,"menu_item_id":67,"quantity":1},{"id":27981,"menu_item_id":396,"quantity":1},{"id":27982,"menu_item_id":61,"quantity":1},{"id":27983,"menu_item_id":56,"quantity":1},{"id":27984,"menu_item_id":29,"quantity":2},{"id":null,"menu_item_id":50,"quantity":1}]} 
[2026-03-11 14:45:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5832,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["105|1|","67|1|","396|2|","61|1|","56|1|","29|2|"],"new_items_map_keys":["105|1|","67|1|","396|1|","61|1|","56|1|","29|2|","50|1|"]} 
[2026-03-11 14:45:38] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5832,"order_number":"AZS-110326-011"} 
[2026-03-11 14:45:38] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-011","replaced_order_id":5832} 
[2026-03-11 14:45:38] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5845,"items_count":7,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":67,"quantity":1,"price":"599.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":29,"quantity":2,"price":"250.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"}]} 
[2026-03-11 14:45:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5845,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5845}} 
[2026-03-11 14:45:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5845,"item_index":0,"menu_item_id":105} 
[2026-03-11 14:45:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5845,"item_index":1,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5845}} 
[2026-03-11 14:45:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5845,"item_index":1,"menu_item_id":67} 
[2026-03-11 14:45:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5845,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5845}} 
[2026-03-11 14:45:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5845,"item_index":2,"menu_item_id":396} 
[2026-03-11 14:45:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5845,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5845}} 
[2026-03-11 14:45:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5845,"item_index":3,"menu_item_id":61} 
[2026-03-11 14:45:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5845,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5845}} 
[2026-03-11 14:45:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5845,"item_index":4,"menu_item_id":56} 
[2026-03-11 14:45:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5845,"item_index":5,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5845}} 
[2026-03-11 14:45:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5845,"item_index":5,"menu_item_id":29} 
[2026-03-11 14:45:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5845,"item_index":6,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5845}} 
[2026-03-11 14:45:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5845,"item_index":6,"menu_item_id":50} 
[2026-03-11 14:45:38] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5832,"new_order_id":5845,"order_number":"AZS-110326-011"} 
[2026-03-11 14:45:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5845,"item_index":0,"item_id":27979} 
[2026-03-11 14:45:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5845,"item_index":1,"item_id":27980} 
[2026-03-11 14:45:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5845,"item_index":2,"item_id":27981} 
[2026-03-11 14:45:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5845,"item_index":3,"item_id":27982} 
[2026-03-11 14:45:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5845,"item_index":4,"item_id":27983} 
[2026-03-11 14:45:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5845,"item_index":5,"item_id":27984} 
[2026-03-11 14:45:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5845,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":27979},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":27980},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":27981},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27982},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":27983},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":27984},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:45:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5845,"items_count":7} 
[2026-03-11 14:45:42] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[28052,28053,28054,28055,28056,28057,28058],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":67,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":29,"quantity":2},{"id":null,"menu_item_id":50,"quantity":1}]} 
[2026-03-11 14:45:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5845,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["105|1|","67|1|","396|1|","61|1|","56|1|","29|2|","50|1|"],"new_items_map_keys":["105|1|","67|1|","396|1|","61|1|","56|1|","29|2|","50|1|"]} 
[2026-03-11 14:45:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5845,"order_number":"AZS-110326-011"} 
[2026-03-11 14:45:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5845,"order_number":"AZS-110326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 14:45:42"} 
[2026-03-11 14:46:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5841,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28036},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28037},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":28038},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28039},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":28040},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28041},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28042}],"validated_items":[{"id":28036,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":28037,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28038,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":28039,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28040,"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":28041,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28042,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:46:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5841,"items_count":7} 
[2026-03-11 14:46:01] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28036,"menu_item_id":114,"quantity":1},{"id":28037,"menu_item_id":113,"quantity":1},{"id":28038,"menu_item_id":396,"quantity":5},{"id":28039,"menu_item_id":56,"quantity":2},{"id":28040,"menu_item_id":61,"quantity":4},{"id":28041,"menu_item_id":5,"quantity":1},{"id":28042,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 14:46:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5841,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|1|","113|1|","396|5|","56|2|","61|4|","5|1|","3|1|"],"new_items_map_keys":["114|1|","113|1|","396|5|","56|2|","61|4|","5|1|","3|1|"]} 
[2026-03-11 14:46:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5841,"order_number":"AZS-110326-010"} 
[2026-03-11 14:46:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5841,"order_number":"AZS-110326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 14:46:01"} 
[2026-03-11 14:46:40] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5841,"order_number":"AZS-110326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 14:46:40"} 
[2026-03-11 14:46:40] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5841,"order_number":"AZS-110326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 14:46:40"} 
[2026-03-11 14:46:40] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5841,"order_number":"AZS-110326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 14:46:40"} 
[2026-03-11 14:46:40] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5841,"order_number":"AZS-110326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 14:46:40"} 
[2026-03-11 14:46:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5841,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28036},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28037},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":28038},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28039},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":28040},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28041},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28042}],"validated_items":[{"id":28036,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":28037,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28038,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":28039,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28040,"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":28041,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28042,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:46:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5841,"items_count":7} 
[2026-03-11 14:46:40] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28036,"menu_item_id":114,"quantity":1},{"id":28037,"menu_item_id":113,"quantity":1},{"id":28038,"menu_item_id":396,"quantity":5},{"id":28039,"menu_item_id":56,"quantity":2},{"id":28040,"menu_item_id":61,"quantity":4},{"id":28041,"menu_item_id":5,"quantity":1},{"id":28042,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 14:46:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5841,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|1|","113|1|","396|5|","56|2|","61|4|","5|1|","3|1|"],"new_items_map_keys":["114|1|","113|1|","396|5|","56|2|","61|4|","5|1|","3|1|"]} 
[2026-03-11 14:46:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5841,"order_number":"AZS-110326-010"} 
[2026-03-11 14:46:40] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5841,"order_number":"AZS-110326-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":6000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-11 14:46:40","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 14:46:40"} 
[2026-03-11 14:46:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5841,"order_number":"AZS-110326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 14:46:40"} 
[2026-03-11 14:46:40] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5841,"order_number":"AZS-110326-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"6000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-11 14:46:40","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"6000.00","database_verification_match":true,"timestamp":"2026-03-11 14:46:40"} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5840,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":28028},{"menu_item_id":397,"quantity":130,"discount_percent":0,"notes":null,"id":28029},{"menu_item_id":110,"quantity":1,"discount_percent":0,"notes":null,"id":28030},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":28031},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":28032},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":28033},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28034},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28035},{"menu_item_id":57,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28028,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":28029,"menu_item_id":397,"quantity":130,"discount_percent":0,"notes":null},{"id":28030,"menu_item_id":110,"quantity":1,"discount_percent":0,"notes":null},{"id":28031,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":28032,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":28033,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":28034,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28035,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":57,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5840,"items_count":9} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28028,"menu_item_id":106,"quantity":1},{"id":28029,"menu_item_id":397,"quantity":130},{"id":28030,"menu_item_id":110,"quantity":1},{"id":28031,"menu_item_id":396,"quantity":2},{"id":28032,"menu_item_id":50,"quantity":2},{"id":28033,"menu_item_id":61,"quantity":2},{"id":28034,"menu_item_id":56,"quantity":1},{"id":28035,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":57,"quantity":1}]} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5840,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["106|1|","397|130|","110|1|","396|2|","50|2|","61|2|","56|2|","5|1|"],"new_items_map_keys":["106|1|","397|130|","110|1|","396|2|","50|2|","61|2|","56|1|","5|1|","57|1|"]} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5840,"order_number":"AZS-110326-013"} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-013","replaced_order_id":5840} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5846,"items_count":9,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":397,"quantity":130,"price":"4.00"},{"menu_item_id":110,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":57,"quantity":1,"price":"299.00"}]} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5846,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5846}} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5846,"item_index":0,"menu_item_id":106} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5846,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":130,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":520.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5846}} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5846,"item_index":1,"menu_item_id":397} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5846,"item_index":2,"item_data":{"menu_item_id":110,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Namkeen Rosh","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5846}} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5846,"item_index":2,"menu_item_id":110} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5846,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5846}} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5846,"item_index":3,"menu_item_id":396} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5846,"item_index":4,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5846}} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5846,"item_index":4,"menu_item_id":50} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5846,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5846}} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5846,"item_index":5,"menu_item_id":61} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5846,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5846}} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5846,"item_index":6,"menu_item_id":56} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5846,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5846}} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5846,"item_index":7,"menu_item_id":5} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5846,"item_index":8,"item_data":{"menu_item_id":57,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Cachumber Salad","quantity":1,"price":"299.00","discount_percent":0.0,"discount_amount":0.0,"total":299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5846}} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5846,"item_index":8,"menu_item_id":57} 
[2026-03-11 14:47:24] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5840,"new_order_id":5846,"order_number":"AZS-110326-013"} 
[2026-03-11 14:51:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5845,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28052},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":28053},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28054},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28055},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28056},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":28057},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":28058}],"validated_items":[{"id":28052,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":28053,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":28054,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28055,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28056,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28057,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":28058,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:51:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5845,"items_count":7} 
[2026-03-11 14:51:20] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28052,"menu_item_id":105,"quantity":1},{"id":28053,"menu_item_id":67,"quantity":1},{"id":28054,"menu_item_id":396,"quantity":1},{"id":28055,"menu_item_id":61,"quantity":1},{"id":28056,"menu_item_id":56,"quantity":1},{"id":28057,"menu_item_id":29,"quantity":2},{"id":28058,"menu_item_id":50,"quantity":1}]} 
[2026-03-11 14:51:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5845,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["105|1|","67|1|","396|1|","61|1|","56|1|","29|2|","50|1|"],"new_items_map_keys":["105|1|","67|1|","396|1|","61|1|","56|1|","29|2|","50|1|"]} 
[2026-03-11 14:51:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5845,"order_number":"AZS-110326-011"} 
[2026-03-11 14:51:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5845,"order_number":"AZS-110326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 14:51:20"} 
[2026-03-11 14:51:55] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5845,"order_number":"AZS-110326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 14:51:55"} 
[2026-03-11 14:51:55] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5845,"order_number":"AZS-110326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 14:51:55"} 
[2026-03-11 14:51:55] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5845,"order_number":"AZS-110326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 14:51:55"} 
[2026-03-11 14:51:55] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5845,"order_number":"AZS-110326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 14:51:55"} 
[2026-03-11 14:51:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5845,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28052},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":28053},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28054},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28055},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28056},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":28057},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":28058}],"validated_items":[{"id":28052,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":28053,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":28054,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28055,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28056,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28057,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":28058,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-11 14:51:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5845,"items_count":7} 
[2026-03-11 14:51:55] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28052,"menu_item_id":105,"quantity":1},{"id":28053,"menu_item_id":67,"quantity":1},{"id":28054,"menu_item_id":396,"quantity":1},{"id":28055,"menu_item_id":61,"quantity":1},{"id":28056,"menu_item_id":56,"quantity":1},{"id":28057,"menu_item_id":29,"quantity":2},{"id":28058,"menu_item_id":50,"quantity":1}]} 
[2026-03-11 14:51:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5845,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["105|1|","67|1|","396|1|","61|1|","56|1|","29|2|","50|1|"],"new_items_map_keys":["105|1|","67|1|","396|1|","61|1|","56|1|","29|2|","50|1|"]} 
[2026-03-11 14:51:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5845,"order_number":"AZS-110326-011"} 
[2026-03-11 14:51:55] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5845,"order_number":"AZS-110326-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-11 14:51:55","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 14:51:55"} 
[2026-03-11 14:51:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5845,"order_number":"AZS-110326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 14:51:55"} 
[2026-03-11 14:51:55] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5845,"order_number":"AZS-110326-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-11 14:51:55","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4000.00","database_verification_match":true,"timestamp":"2026-03-11 14:51:55"} 
[2026-03-11 14:51:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:51:59.139Z","date_to":"2026-03-11T14:51:59.139Z","per_page":"100"} 
[2026-03-11 14:52:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":11,"unpaid_count":4,"unique_order_numbers":15} 
[2026-03-11 14:52:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:51:59.157Z","date_to":"2026-03-11T14:51:59.157Z","per_page":"100"} 
[2026-03-11 14:52:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":11,"unpaid_count":4,"unique_order_numbers":15} 
[2026-03-11 14:52:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T02:51:59.139Z","date_to":"2026-03-11T14:51:59.139Z","per_page":"100"} 
[2026-03-11 14:52:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":11,"unpaid_count":4,"unique_order_numbers":15} 
[2026-03-11 15:01:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5820,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":27944},{"menu_item_id":400,"quantity":300,"discount_percent":0,"notes":null,"id":27945},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":27944,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"id":27945,"menu_item_id":400,"quantity":300,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 15:01:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5820,"items_count":8} 
[2026-03-11 15:01:49] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":27944,"menu_item_id":3,"quantity":1},{"id":27945,"menu_item_id":400,"quantity":300},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":51,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-11 15:01:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5820,"has_item_changes":true,"old_items_count":2,"new_items_count":8,"old_items_map_keys":["3|1|","400|300|"],"new_items_map_keys":["3|1|","400|300|","62|1|","65|1|","51|2|","61|1|","56|1|","5|1|"]} 
[2026-03-11 15:01:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5820,"order_number":"AZS-110326-001"} 
[2026-03-11 15:01:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-001","replaced_order_id":5820} 
[2026-03-11 15:01:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5849,"items_count":8,"items":[{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":400,"quantity":300,"price":"1.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":51,"quantity":2,"price":"199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-11 15:01:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5849,"item_index":0,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5849}} 
[2026-03-11 15:01:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5849,"item_index":0,"menu_item_id":3} 
[2026-03-11 15:01:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5849,"item_index":1,"item_data":{"menu_item_id":400,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL ITEMS","quantity":300,"price":"1.00","discount_percent":0.0,"discount_amount":0.0,"total":300.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5849}} 
[2026-03-11 15:01:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5849,"item_index":1,"menu_item_id":400} 
[2026-03-11 15:01:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5849,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5849}} 
[2026-03-11 15:01:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5849,"item_index":2,"menu_item_id":62} 
[2026-03-11 15:01:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5849,"item_index":3,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5849}} 
[2026-03-11 15:01:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5849,"item_index":3,"menu_item_id":65} 
[2026-03-11 15:01:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5849,"item_index":4,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5849}} 
[2026-03-11 15:01:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5849,"item_index":4,"menu_item_id":51} 
[2026-03-11 15:01:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5849,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5849}} 
[2026-03-11 15:01:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5849,"item_index":5,"menu_item_id":61} 
[2026-03-11 15:01:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5849,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5849}} 
[2026-03-11 15:01:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5849,"item_index":6,"menu_item_id":56} 
[2026-03-11 15:01:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5849,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5849}} 
[2026-03-11 15:01:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5849,"item_index":7,"menu_item_id":5} 
[2026-03-11 15:01:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5820,"new_order_id":5849,"order_number":"AZS-110326-001"} 
[2026-03-11 15:14:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5844,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":28051}],"validated_items":[{"id":28051,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-11 15:14:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5844,"items_count":1} 
[2026-03-11 15:14:53] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28051,"menu_item_id":29,"quantity":2}]} 
[2026-03-11 15:14:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5844,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["29|2|"],"new_items_map_keys":["29|2|"]} 
[2026-03-11 15:14:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5844,"order_number":"AZS-110326-014"} 
[2026-03-11 15:14:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5844,"order_number":"AZS-110326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 15:14:53"} 
[2026-03-11 15:26:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5847,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":28068},{"menu_item_id":18,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28069}],"validated_items":[{"id":28068,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":28069,"menu_item_id":18,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-11 15:26:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5847,"items_count":2} 
[2026-03-11 15:26:59] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28068,"menu_item_id":29,"quantity":2},{"id":28069,"menu_item_id":18,"quantity":1}]} 
[2026-03-11 15:26:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5847,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["29|2|","18|1|"],"new_items_map_keys":["29|2|","18|1|"]} 
[2026-03-11 15:26:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5847,"order_number":"AZS-110326-015"} 
[2026-03-11 15:26:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5847,"order_number":"AZS-110326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 15:26:59"} 
[2026-03-11 15:30:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T03:30:45.756Z","date_to":"2026-03-11T15:30:45.756Z","per_page":"100"} 
[2026-03-11 15:30:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T03:30:45.740Z","date_to":"2026-03-11T15:30:45.740Z","per_page":"100"} 
[2026-03-11 15:30:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":11,"unpaid_count":8,"unique_order_numbers":19} 
[2026-03-11 15:30:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":11,"unpaid_count":8,"unique_order_numbers":19} 
[2026-03-11 15:30:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T03:30:45.740Z","date_to":"2026-03-11T15:30:45.740Z","per_page":"100"} 
[2026-03-11 15:30:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":11,"unpaid_count":8,"unique_order_numbers":19} 
[2026-03-11 15:46:17] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5847,"order_number":"AZS-110326-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1050,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 15:46:17"} 
[2026-03-11 15:46:17] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5847,"order_number":"AZS-110326-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1050,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 15:46:17"} 
[2026-03-11 15:46:17] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5847,"order_number":"AZS-110326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1050,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 15:46:17"} 
[2026-03-11 15:46:17] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5847,"order_number":"AZS-110326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1050,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 15:46:17"} 
[2026-03-11 15:46:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5847,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":28068},{"menu_item_id":18,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28069}],"validated_items":[{"id":28068,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":28069,"menu_item_id":18,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-11 15:46:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5847,"items_count":2} 
[2026-03-11 15:46:17] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28068,"menu_item_id":29,"quantity":2},{"id":28069,"menu_item_id":18,"quantity":1}]} 
[2026-03-11 15:46:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5847,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["29|2|","18|1|"],"new_items_map_keys":["29|2|","18|1|"]} 
[2026-03-11 15:46:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5847,"order_number":"AZS-110326-015"} 
[2026-03-11 15:46:17] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5847,"order_number":"AZS-110326-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1050,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-11 15:46:17","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 15:46:17"} 
[2026-03-11 15:46:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5847,"order_number":"AZS-110326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 15:46:17"} 
[2026-03-11 15:46:17] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5847,"order_number":"AZS-110326-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1050.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-11 15:46:17","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1050,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1050.00","database_verification_match":true,"timestamp":"2026-03-11 15:46:17"} 
[2026-03-11 15:53:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5849,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":28075},{"menu_item_id":400,"quantity":300,"discount_percent":0,"notes":null,"id":28076},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":28077},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":28078},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null,"id":28079},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28080},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28081},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":28082}],"validated_items":[{"id":28075,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"id":28076,"menu_item_id":400,"quantity":300,"discount_percent":0,"notes":null},{"id":28077,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":28078,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":28079,"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"id":28080,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28081,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28082,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-11 15:53:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5849,"items_count":8} 
[2026-03-11 15:53:16] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28075,"menu_item_id":3,"quantity":1},{"id":28076,"menu_item_id":400,"quantity":300},{"id":28077,"menu_item_id":62,"quantity":1},{"id":28078,"menu_item_id":65,"quantity":1},{"id":28079,"menu_item_id":51,"quantity":2},{"id":28080,"menu_item_id":61,"quantity":1},{"id":28081,"menu_item_id":56,"quantity":1},{"id":28082,"menu_item_id":5,"quantity":2}]} 
[2026-03-11 15:53:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5849,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["3|1|","400|300|","62|1|","65|1|","51|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["3|1|","400|300|","62|1|","65|1|","51|2|","61|1|","56|1|","5|2|"]} 
[2026-03-11 15:53:16] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5849,"order_number":"AZS-110326-001"} 
[2026-03-11 15:53:16] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-001","replaced_order_id":5849} 
[2026-03-11 15:53:16] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5853,"items_count":8,"items":[{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":400,"quantity":300,"price":"1.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":51,"quantity":2,"price":"199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"}]} 
[2026-03-11 15:53:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5853,"item_index":0,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5853}} 
[2026-03-11 15:53:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5853,"item_index":0,"menu_item_id":3} 
[2026-03-11 15:53:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5853,"item_index":1,"item_data":{"menu_item_id":400,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL ITEMS","quantity":300,"price":"1.00","discount_percent":0.0,"discount_amount":0.0,"total":300.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5853}} 
[2026-03-11 15:53:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5853,"item_index":1,"menu_item_id":400} 
[2026-03-11 15:53:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5853,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5853}} 
[2026-03-11 15:53:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5853,"item_index":2,"menu_item_id":62} 
[2026-03-11 15:53:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5853,"item_index":3,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5853}} 
[2026-03-11 15:53:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5853,"item_index":3,"menu_item_id":65} 
[2026-03-11 15:53:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5853,"item_index":4,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5853}} 
[2026-03-11 15:53:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5853,"item_index":4,"menu_item_id":51} 
[2026-03-11 15:53:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5853,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5853}} 
[2026-03-11 15:53:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5853,"item_index":5,"menu_item_id":61} 
[2026-03-11 15:53:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5853,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5853}} 
[2026-03-11 15:53:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5853,"item_index":6,"menu_item_id":56} 
[2026-03-11 15:53:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5853,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5853}} 
[2026-03-11 15:53:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5853,"item_index":7,"menu_item_id":5} 
[2026-03-11 15:53:16] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5849,"new_order_id":5853,"order_number":"AZS-110326-001"} 
[2026-03-11 15:57:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5853,"item_index":0,"item_id":28075} 
[2026-03-11 15:57:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5853,"item_index":1,"item_id":28076} 
[2026-03-11 15:57:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5853,"item_index":2,"item_id":28077} 
[2026-03-11 15:57:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5853,"item_index":3,"item_id":28078} 
[2026-03-11 15:57:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5853,"item_index":4,"item_id":28079} 
[2026-03-11 15:57:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5853,"item_index":5,"item_id":28080} 
[2026-03-11 15:57:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5853,"item_index":6,"item_id":28081} 
[2026-03-11 15:57:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5853,"item_index":7,"item_id":28082} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":8,"order_id":5853,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":28075},{"menu_item_id":400,"quantity":300,"discount_percent":0,"notes":null,"id":28076},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":28077},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":28078},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null,"id":28079},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28080},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28081},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":28082},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":400,"quantity":300,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5853,"items_count":9} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":8,"items_to_remove":[28098,28099,28100,28101,28102,28103,28104,28105],"items":[{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":400,"quantity":300},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":51,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":13,"quantity":3}]} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Item changes check {"order_id":5853,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["3|1|","400|300|","62|1|","65|1|","51|2|","61|1|","56|1|","5|2|"],"new_items_map_keys":["3|1|","400|300|","62|1|","65|1|","51|2|","61|1|","56|1|","5|2|","13|3|"]} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5853,"order_number":"AZS-110326-001"} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-001","replaced_order_id":5853} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5854,"items_count":9,"items":[{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":400,"quantity":300,"price":"1.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":51,"quantity":2,"price":"199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":13,"quantity":3,"price":"249.00"}]} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5854,"item_index":0,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5854}} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5854,"item_index":0,"menu_item_id":3} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5854,"item_index":1,"item_data":{"menu_item_id":400,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL ITEMS","quantity":300,"price":"1.00","discount_percent":0.0,"discount_amount":0.0,"total":300.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5854}} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5854,"item_index":1,"menu_item_id":400} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5854,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5854}} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5854,"item_index":2,"menu_item_id":62} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5854,"item_index":3,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5854}} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5854,"item_index":3,"menu_item_id":65} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5854,"item_index":4,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5854}} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5854,"item_index":4,"menu_item_id":51} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5854,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5854}} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5854,"item_index":5,"menu_item_id":61} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5854,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5854}} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5854,"item_index":6,"menu_item_id":56} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5854,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5854}} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5854,"item_index":7,"menu_item_id":5} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5854,"item_index":8,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5854}} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5854,"item_index":8,"menu_item_id":13} 
[2026-03-11 15:57:14] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5853,"new_order_id":5854,"order_number":"AZS-110326-001"} 
[2026-03-11 15:58:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5848,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":28070},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":28071},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28072},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28073},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28074},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28070,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":28071,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":28072,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28073,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28074,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 15:58:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5848,"items_count":6} 
[2026-03-11 15:58:20] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28070,"menu_item_id":106,"quantity":1},{"id":28071,"menu_item_id":396,"quantity":3},{"id":28072,"menu_item_id":61,"quantity":1},{"id":28073,"menu_item_id":56,"quantity":1},{"id":28074,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 15:58:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5848,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["106|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["106|1|","396|3|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-03-11 15:58:20] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5848,"order_number":"AZS-110326-016"} 
[2026-03-11 15:58:20] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-016","replaced_order_id":5848} 
[2026-03-11 15:58:20] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5855,"items_count":6,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-11 15:58:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5855,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5855}} 
[2026-03-11 15:58:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5855,"item_index":0,"menu_item_id":106} 
[2026-03-11 15:58:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5855,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5855}} 
[2026-03-11 15:58:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5855,"item_index":1,"menu_item_id":396} 
[2026-03-11 15:58:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5855,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5855}} 
[2026-03-11 15:58:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5855,"item_index":2,"menu_item_id":61} 
[2026-03-11 15:58:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5855,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5855}} 
[2026-03-11 15:58:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5855,"item_index":3,"menu_item_id":56} 
[2026-03-11 15:58:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5855,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5855}} 
[2026-03-11 15:58:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5855,"item_index":4,"menu_item_id":5} 
[2026-03-11 15:58:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5855,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5855}} 
[2026-03-11 15:58:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5855,"item_index":5,"menu_item_id":3} 
[2026-03-11 15:58:20] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5848,"new_order_id":5855,"order_number":"AZS-110326-016"} 
[2026-03-11 15:58:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5855,"item_index":0,"item_id":28070} 
[2026-03-11 15:58:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5855,"item_index":1,"item_id":28071} 
[2026-03-11 15:58:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5855,"item_index":2,"item_id":28072} 
[2026-03-11 15:58:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5855,"item_index":3,"item_id":28073} 
[2026-03-11 15:58:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5855,"item_index":4,"item_id":28074} 
[2026-03-11 15:58:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5855,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":28070},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":28071},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":28072},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28073},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28074},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 15:58:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5855,"items_count":6} 
[2026-03-11 15:58:37] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[28115,28116,28117,28118,28119,28120],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 15:58:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5855,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["106|1|","396|3|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["106|1|","396|3|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-03-11 15:58:37] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5855,"order_number":"AZS-110326-016"} 
[2026-03-11 15:58:37] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-016","replaced_order_id":5855} 
[2026-03-11 15:58:37] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5856,"items_count":6,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-11 15:58:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5856,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5856}} 
[2026-03-11 15:58:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5856,"item_index":0,"menu_item_id":106} 
[2026-03-11 15:58:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5856,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5856}} 
[2026-03-11 15:58:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5856,"item_index":1,"menu_item_id":396} 
[2026-03-11 15:58:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5856,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5856}} 
[2026-03-11 15:58:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5856,"item_index":2,"menu_item_id":61} 
[2026-03-11 15:58:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5856,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5856}} 
[2026-03-11 15:58:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5856,"item_index":3,"menu_item_id":56} 
[2026-03-11 15:58:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5856,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5856}} 
[2026-03-11 15:58:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5856,"item_index":4,"menu_item_id":5} 
[2026-03-11 15:58:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5856,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5856}} 
[2026-03-11 15:58:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5856,"item_index":5,"menu_item_id":3} 
[2026-03-11 15:58:37] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5855,"new_order_id":5856,"order_number":"AZS-110326-016"} 
[2026-03-11 15:59:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5850,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":28083},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":28084},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":28085},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":28086},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":28087},{"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null,"id":28088},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":28089},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":28090},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28091}],"validated_items":[{"id":28083,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":28084,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":28085,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":28086,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":28087,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":28088,"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null},{"id":28089,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":28090,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":28091,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 15:59:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5850,"items_count":9} 
[2026-03-11 15:59:10] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28083,"menu_item_id":114,"quantity":1},{"id":28084,"menu_item_id":113,"quantity":1},{"id":28085,"menu_item_id":62,"quantity":1},{"id":28086,"menu_item_id":396,"quantity":3},{"id":28087,"menu_item_id":50,"quantity":2},{"id":28088,"menu_item_id":54,"quantity":1},{"id":28089,"menu_item_id":61,"quantity":2},{"id":28090,"menu_item_id":56,"quantity":2},{"id":28091,"menu_item_id":5,"quantity":1}]} 
[2026-03-11 15:59:10] local.INFO: PosOrderController::update - Item changes check {"order_id":5850,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["114|1|","113|1|","62|1|","396|3|","50|2|","54|1|","61|2|","56|2|","5|1|"],"new_items_map_keys":["114|1|","113|1|","62|1|","396|3|","50|2|","54|1|","61|2|","56|2|","5|1|"]} 
[2026-03-11 15:59:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5850,"order_number":"AZS-110326-017"} 
[2026-03-11 15:59:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5850,"order_number":"AZS-110326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-11 15:59:10"} 
[2026-03-11 16:02:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5856,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":28121},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":28122},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":28123},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28124},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28125},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":28126}],"validated_items":[{"id":28121,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":28122,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":28123,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":28124,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28125,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":28126,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:02:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5856,"items_count":6} 
[2026-03-11 16:02:00] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28121,"menu_item_id":106,"quantity":1},{"id":28122,"menu_item_id":396,"quantity":5},{"id":28123,"menu_item_id":61,"quantity":2},{"id":28124,"menu_item_id":56,"quantity":1},{"id":28125,"menu_item_id":5,"quantity":1},{"id":28126,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 16:02:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5856,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["106|1|","396|3|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["106|1|","396|5|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-03-11 16:02:00] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5856,"order_number":"AZS-110326-016"} 
[2026-03-11 16:02:00] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-016","replaced_order_id":5856} 
[2026-03-11 16:02:00] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5857,"items_count":6,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-11 16:02:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5857,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5857}} 
[2026-03-11 16:02:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5857,"item_index":0,"menu_item_id":106} 
[2026-03-11 16:02:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5857,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5857}} 
[2026-03-11 16:02:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5857,"item_index":1,"menu_item_id":396} 
[2026-03-11 16:02:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5857,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5857}} 
[2026-03-11 16:02:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5857,"item_index":2,"menu_item_id":61} 
[2026-03-11 16:02:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5857,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5857}} 
[2026-03-11 16:02:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5857,"item_index":3,"menu_item_id":56} 
[2026-03-11 16:02:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5857,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5857}} 
[2026-03-11 16:02:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5857,"item_index":4,"menu_item_id":5} 
[2026-03-11 16:02:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5857,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5857}} 
[2026-03-11 16:02:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5857,"item_index":5,"menu_item_id":3} 
[2026-03-11 16:02:00] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5856,"new_order_id":5857,"order_number":"AZS-110326-016"} 
[2026-03-11 16:02:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5857,"item_index":0,"item_id":28121} 
[2026-03-11 16:02:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5857,"item_index":1,"item_id":28122} 
[2026-03-11 16:02:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5857,"item_index":2,"item_id":28123} 
[2026-03-11 16:02:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5857,"item_index":3,"item_id":28124} 
[2026-03-11 16:02:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5857,"item_index":4,"item_id":28125} 
[2026-03-11 16:02:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5857,"item_index":5,"item_id":28126} 
[2026-03-11 16:02:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5857,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":28121},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":28122},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28123},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28124},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28125},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28126}],"validated_items":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:02:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5857,"items_count":6} 
[2026-03-11 16:02:05] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[28127,28128,28129,28130,28131,28132],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":396,"quantity":5},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 16:02:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5857,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["106|1|","396|5|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["106|1|","396|5|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-03-11 16:02:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5857,"order_number":"AZS-110326-016"} 
[2026-03-11 16:02:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5857,"order_number":"AZS-110326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 16:02:05"} 
[2026-03-11 16:02:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5857,"item_index":0,"item_id":28121} 
[2026-03-11 16:02:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5857,"item_index":1,"item_id":28122} 
[2026-03-11 16:02:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5857,"item_index":2,"item_id":28123} 
[2026-03-11 16:02:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5857,"item_index":3,"item_id":28124} 
[2026-03-11 16:02:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5857,"item_index":4,"item_id":28125} 
[2026-03-11 16:02:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5857,"item_index":5,"item_id":28126} 
[2026-03-11 16:02:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5857,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":28121},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":28122},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28123},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28124},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28125},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28126}],"validated_items":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:02:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5857,"items_count":6} 
[2026-03-11 16:02:14] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[28127,28128,28129,28130,28131,28132],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":396,"quantity":5},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 16:02:14] local.INFO: PosOrderController::update - Item changes check {"order_id":5857,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["106|1|","396|5|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["106|1|","396|5|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-03-11 16:02:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5857,"order_number":"AZS-110326-016"} 
[2026-03-11 16:02:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5857,"order_number":"AZS-110326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 16:02:14"} 
[2026-03-11 16:02:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T04:02:22.477Z","date_to":"2026-03-11T16:02:22.477Z","per_page":"100"} 
[2026-03-11 16:02:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":12,"unpaid_count":7,"unique_order_numbers":19} 
[2026-03-11 16:02:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T04:02:22.496Z","date_to":"2026-03-11T16:02:22.496Z","per_page":"100"} 
[2026-03-11 16:02:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":12,"unpaid_count":7,"unique_order_numbers":19} 
[2026-03-11 16:02:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T04:02:22.477Z","date_to":"2026-03-11T16:02:22.477Z","per_page":"100"} 
[2026-03-11 16:02:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":12,"unpaid_count":7,"unique_order_numbers":19} 
[2026-03-11 16:02:53] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5844,"order_number":"AZS-110326-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 16:02:53"} 
[2026-03-11 16:02:53] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5844,"order_number":"AZS-110326-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 16:02:53"} 
[2026-03-11 16:02:53] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5844,"order_number":"AZS-110326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 16:02:53"} 
[2026-03-11 16:02:53] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5844,"order_number":"AZS-110326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 16:02:53"} 
[2026-03-11 16:02:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5844,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":28051}],"validated_items":[{"id":28051,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:02:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5844,"items_count":1} 
[2026-03-11 16:02:53] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28051,"menu_item_id":29,"quantity":2}]} 
[2026-03-11 16:02:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5844,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["29|2|"],"new_items_map_keys":["29|2|"]} 
[2026-03-11 16:02:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5844,"order_number":"AZS-110326-014"} 
[2026-03-11 16:02:53] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5844,"order_number":"AZS-110326-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-11 16:02:53","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 16:02:53"} 
[2026-03-11 16:02:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5844,"order_number":"AZS-110326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 16:02:53"} 
[2026-03-11 16:02:53] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5844,"order_number":"AZS-110326-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-11 16:02:53","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-11 16:02:53"} 
[2026-03-11 16:03:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5850,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":28083},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":28084},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":28085},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":28086},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":28087},{"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null,"id":28088},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":28089},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":28090},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28091}],"validated_items":[{"id":28083,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":28084,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":28085,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":28086,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":28087,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":28088,"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null},{"id":28089,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":28090,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":28091,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:03:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5850,"items_count":9} 
[2026-03-11 16:03:23] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28083,"menu_item_id":114,"quantity":1},{"id":28084,"menu_item_id":113,"quantity":1},{"id":28085,"menu_item_id":62,"quantity":1},{"id":28086,"menu_item_id":396,"quantity":3},{"id":28087,"menu_item_id":50,"quantity":2},{"id":28088,"menu_item_id":54,"quantity":1},{"id":28089,"menu_item_id":61,"quantity":2},{"id":28090,"menu_item_id":56,"quantity":2},{"id":28091,"menu_item_id":5,"quantity":1}]} 
[2026-03-11 16:03:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5850,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["114|1|","113|1|","62|1|","396|3|","50|2|","54|1|","61|2|","56|2|","5|1|"],"new_items_map_keys":["114|1|","113|1|","62|1|","396|3|","50|2|","54|1|","61|2|","56|2|","5|1|"]} 
[2026-03-11 16:03:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5850,"order_number":"AZS-110326-017"} 
[2026-03-11 16:03:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5850,"order_number":"AZS-110326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-11 16:03:23"} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5850,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":28083},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":28084},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":28085},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":28086},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":28087},{"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null,"id":28088},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":28089},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":28090},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28091},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28083,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":28084,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":28085,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":28086,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":28087,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":28088,"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null},{"id":28089,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":28090,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":28091,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5850,"items_count":10} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28083,"menu_item_id":114,"quantity":1},{"id":28084,"menu_item_id":113,"quantity":1},{"id":28085,"menu_item_id":62,"quantity":1},{"id":28086,"menu_item_id":396,"quantity":3},{"id":28087,"menu_item_id":50,"quantity":2},{"id":28088,"menu_item_id":54,"quantity":1},{"id":28089,"menu_item_id":61,"quantity":2},{"id":28090,"menu_item_id":56,"quantity":2},{"id":28091,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Item changes check {"order_id":5850,"has_item_changes":true,"old_items_count":9,"new_items_count":10,"old_items_map_keys":["114|1|","113|1|","62|1|","396|3|","50|2|","54|1|","61|2|","56|2|","5|1|"],"new_items_map_keys":["114|1|","113|1|","62|1|","396|3|","50|2|","54|1|","61|2|","56|2|","5|1|","3|1|"]} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5850,"order_number":"AZS-110326-017"} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-017","replaced_order_id":5850} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5858,"items_count":10,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":54,"quantity":1,"price":"159.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5858,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5858}} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5858,"item_index":0,"menu_item_id":114} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5858,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5858}} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5858,"item_index":1,"menu_item_id":113} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5858,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5858}} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5858,"item_index":2,"menu_item_id":62} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5858,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5858}} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5858,"item_index":3,"menu_item_id":396} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5858,"item_index":4,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5858}} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5858,"item_index":4,"menu_item_id":50} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5858,"item_index":5,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5858}} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5858,"item_index":5,"menu_item_id":54} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5858,"item_index":6,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5858}} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5858,"item_index":6,"menu_item_id":61} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5858,"item_index":7,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5858}} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5858,"item_index":7,"menu_item_id":56} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5858,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5858}} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5858,"item_index":8,"menu_item_id":5} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5858,"item_index":9,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5858}} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5858,"item_index":9,"menu_item_id":3} 
[2026-03-11 16:03:47] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5850,"new_order_id":5858,"order_number":"AZS-110326-017"} 
[2026-03-11 16:05:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5857,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":28127},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":28128},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":28129},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28130},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28131},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":28132}],"validated_items":[{"id":28127,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":28128,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":28129,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":28130,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28131,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":28132,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:05:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5857,"items_count":6} 
[2026-03-11 16:05:40] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28127,"menu_item_id":106,"quantity":1},{"id":28128,"menu_item_id":396,"quantity":5},{"id":28129,"menu_item_id":61,"quantity":3},{"id":28130,"menu_item_id":56,"quantity":1},{"id":28131,"menu_item_id":5,"quantity":1},{"id":28132,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 16:05:40] local.INFO: PosOrderController::update - Item changes check {"order_id":5857,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["106|1|","396|5|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["106|1|","396|5|","61|3|","56|1|","5|1|","3|1|"]} 
[2026-03-11 16:05:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5857,"order_number":"AZS-110326-016"} 
[2026-03-11 16:05:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-016","replaced_order_id":5857} 
[2026-03-11 16:05:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5859,"items_count":6,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-11 16:05:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5859,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5859}} 
[2026-03-11 16:05:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5859,"item_index":0,"menu_item_id":106} 
[2026-03-11 16:05:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5859,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5859}} 
[2026-03-11 16:05:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5859,"item_index":1,"menu_item_id":396} 
[2026-03-11 16:05:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5859,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5859}} 
[2026-03-11 16:05:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5859,"item_index":2,"menu_item_id":61} 
[2026-03-11 16:05:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5859,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5859}} 
[2026-03-11 16:05:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5859,"item_index":3,"menu_item_id":56} 
[2026-03-11 16:05:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5859,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5859}} 
[2026-03-11 16:05:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5859,"item_index":4,"menu_item_id":5} 
[2026-03-11 16:05:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5859,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5859}} 
[2026-03-11 16:05:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5859,"item_index":5,"menu_item_id":3} 
[2026-03-11 16:05:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5857,"new_order_id":5859,"order_number":"AZS-110326-016"} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5846,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":28059},{"menu_item_id":397,"quantity":130,"discount_percent":0,"notes":null,"id":28060},{"menu_item_id":110,"quantity":1,"discount_percent":0,"notes":null,"id":28061},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":28062},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":28063},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":28064},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28065},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28066},{"menu_item_id":57,"quantity":1,"discount_percent":0,"notes":null,"id":28067},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28059,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":28060,"menu_item_id":397,"quantity":130,"discount_percent":0,"notes":null},{"id":28061,"menu_item_id":110,"quantity":1,"discount_percent":0,"notes":null},{"id":28062,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":28063,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":28064,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":28065,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28066,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":28067,"menu_item_id":57,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5846,"items_count":10} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28059,"menu_item_id":106,"quantity":1},{"id":28060,"menu_item_id":397,"quantity":130},{"id":28061,"menu_item_id":110,"quantity":1},{"id":28062,"menu_item_id":396,"quantity":2},{"id":28063,"menu_item_id":50,"quantity":2},{"id":28064,"menu_item_id":61,"quantity":2},{"id":28065,"menu_item_id":56,"quantity":1},{"id":28066,"menu_item_id":5,"quantity":1},{"id":28067,"menu_item_id":57,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Item changes check {"order_id":5846,"has_item_changes":true,"old_items_count":9,"new_items_count":10,"old_items_map_keys":["106|1|","397|130|","110|1|","396|2|","50|2|","61|2|","56|1|","5|1|","57|1|"],"new_items_map_keys":["106|1|","397|130|","110|1|","396|2|","50|2|","61|2|","56|1|","5|1|","57|1|","3|1|"]} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5846,"order_number":"AZS-110326-013"} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-013","replaced_order_id":5846} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5861,"items_count":10,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":397,"quantity":130,"price":"4.00"},{"menu_item_id":110,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":57,"quantity":1,"price":"299.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5861,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5861}} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5861,"item_index":0,"menu_item_id":106} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5861,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":130,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":520.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5861}} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5861,"item_index":1,"menu_item_id":397} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5861,"item_index":2,"item_data":{"menu_item_id":110,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Namkeen Rosh","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5861}} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5861,"item_index":2,"menu_item_id":110} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5861,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5861}} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5861,"item_index":3,"menu_item_id":396} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5861,"item_index":4,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5861}} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5861,"item_index":4,"menu_item_id":50} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5861,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5861}} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5861,"item_index":5,"menu_item_id":61} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5861,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5861}} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5861,"item_index":6,"menu_item_id":56} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5861,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5861}} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5861,"item_index":7,"menu_item_id":5} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5861,"item_index":8,"item_data":{"menu_item_id":57,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Cachumber Salad","quantity":1,"price":"299.00","discount_percent":0.0,"discount_amount":0.0,"total":299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5861}} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5861,"item_index":8,"menu_item_id":57} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5861,"item_index":9,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5861}} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5861,"item_index":9,"menu_item_id":3} 
[2026-03-11 16:09:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5846,"new_order_id":5861,"order_number":"AZS-110326-013"} 
[2026-03-11 16:12:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5861,"item_index":0,"item_id":28059} 
[2026-03-11 16:12:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5861,"item_index":1,"item_id":28060} 
[2026-03-11 16:12:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5861,"item_index":2,"item_id":28061} 
[2026-03-11 16:12:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5861,"item_index":3,"item_id":28062} 
[2026-03-11 16:12:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5861,"item_index":4,"item_id":28063} 
[2026-03-11 16:12:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5861,"item_index":5,"item_id":28064} 
[2026-03-11 16:12:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5861,"item_index":6,"item_id":28065} 
[2026-03-11 16:12:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5861,"item_index":7,"item_id":28066} 
[2026-03-11 16:12:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5861,"item_index":8,"item_id":28067} 
[2026-03-11 16:12:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":10,"order_id":5861,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":28059},{"menu_item_id":397,"quantity":130,"price":4,"discount_percent":0,"notes":null,"id":28060},{"menu_item_id":110,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":28061},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28062},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":28063},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28064},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28065},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28066},{"menu_item_id":57,"quantity":1,"price":299,"discount_percent":0,"notes":null,"id":28067},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":397,"quantity":130,"price":4,"discount_percent":0,"notes":null},{"menu_item_id":110,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":57,"quantity":1,"price":299,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:12:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5861,"items_count":10} 
[2026-03-11 16:12:26] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":10,"items_to_remove":[28151,28152,28153,28154,28155,28156,28157,28158,28159,28160],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":397,"quantity":130},{"id":null,"menu_item_id":110,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":57,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 16:12:26] local.INFO: PosOrderController::update - Item changes check {"order_id":5861,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["106|1|","397|130|","110|1|","396|2|","50|2|","61|2|","56|1|","5|1|","57|1|","3|1|"],"new_items_map_keys":["106|1|","397|130|","110|1|","396|2|","50|2|","61|2|","56|1|","5|1|","57|1|","3|1|"]} 
[2026-03-11 16:12:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5861,"order_number":"AZS-110326-013"} 
[2026-03-11 16:12:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5861,"order_number":"AZS-110326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 16:12:26"} 
[2026-03-11 16:13:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5851,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":28092},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":28093},{"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null,"id":28094},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":28095},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28096},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":28092,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":28093,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":28094,"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null},{"id":28095,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":28096,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:13:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5851,"items_count":6} 
[2026-03-11 16:13:57] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28092,"menu_item_id":105,"quantity":1},{"id":28093,"menu_item_id":396,"quantity":1},{"id":28094,"menu_item_id":54,"quantity":1},{"id":28095,"menu_item_id":61,"quantity":2},{"id":28096,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-11 16:13:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5851,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["105|1|","396|1|","54|1|","61|2|","5|1|"],"new_items_map_keys":["105|1|","396|1|","54|1|","61|2|","5|1|","2|2|"]} 
[2026-03-11 16:13:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5851,"order_number":"AZS-110326-018"} 
[2026-03-11 16:13:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-018","replaced_order_id":5851} 
[2026-03-11 16:13:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5862,"items_count":6,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":54,"quantity":1,"price":"159.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-11 16:13:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5862,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5862}} 
[2026-03-11 16:13:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5862,"item_index":0,"menu_item_id":105} 
[2026-03-11 16:13:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5862,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5862}} 
[2026-03-11 16:13:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5862,"item_index":1,"menu_item_id":396} 
[2026-03-11 16:13:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5862,"item_index":2,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5862}} 
[2026-03-11 16:13:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5862,"item_index":2,"menu_item_id":54} 
[2026-03-11 16:13:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5862,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5862}} 
[2026-03-11 16:13:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5862,"item_index":3,"menu_item_id":61} 
[2026-03-11 16:13:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5862,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5862}} 
[2026-03-11 16:13:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5862,"item_index":4,"menu_item_id":5} 
[2026-03-11 16:13:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5862,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5862}} 
[2026-03-11 16:13:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5862,"item_index":5,"menu_item_id":2} 
[2026-03-11 16:13:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5851,"new_order_id":5862,"order_number":"AZS-110326-018"} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5858,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":28133},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":28134},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":28135},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":28136},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null,"id":28137},{"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null,"id":28138},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":28139},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":28140},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28141},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":28142}],"validated_items":[{"id":28133,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":28134,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":28135,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":28136,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":28137,"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"id":28138,"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null},{"id":28139,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":28140,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":28141,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":28142,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5858,"items_count":10} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28133,"menu_item_id":114,"quantity":1},{"id":28134,"menu_item_id":113,"quantity":1},{"id":28135,"menu_item_id":62,"quantity":1},{"id":28136,"menu_item_id":396,"quantity":3},{"id":28137,"menu_item_id":50,"quantity":3},{"id":28138,"menu_item_id":54,"quantity":1},{"id":28139,"menu_item_id":61,"quantity":2},{"id":28140,"menu_item_id":56,"quantity":2},{"id":28141,"menu_item_id":5,"quantity":1},{"id":28142,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5858,"has_item_changes":true,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["114|1|","113|1|","62|1|","396|3|","50|2|","54|1|","61|2|","56|2|","5|1|","3|1|"],"new_items_map_keys":["114|1|","113|1|","62|1|","396|3|","50|3|","54|1|","61|2|","56|2|","5|1|","3|1|"]} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5858,"order_number":"AZS-110326-017"} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-017","replaced_order_id":5858} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5863,"items_count":10,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":3,"price":"129.00"},{"menu_item_id":54,"quantity":1,"price":"159.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5863,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5863}} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5863,"item_index":0,"menu_item_id":114} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5863,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5863}} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5863,"item_index":1,"menu_item_id":113} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5863,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5863}} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5863,"item_index":2,"menu_item_id":62} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5863,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5863}} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5863,"item_index":3,"menu_item_id":396} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5863,"item_index":4,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5863}} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5863,"item_index":4,"menu_item_id":50} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5863,"item_index":5,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5863}} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5863,"item_index":5,"menu_item_id":54} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5863,"item_index":6,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5863}} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5863,"item_index":6,"menu_item_id":61} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5863,"item_index":7,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5863}} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5863,"item_index":7,"menu_item_id":56} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5863,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5863}} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5863,"item_index":8,"menu_item_id":5} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5863,"item_index":9,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5863}} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5863,"item_index":9,"menu_item_id":3} 
[2026-03-11 16:15:58] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5858,"new_order_id":5863,"order_number":"AZS-110326-017"} 
[2026-03-11 16:18:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5863,"item_index":0,"item_id":28133} 
[2026-03-11 16:18:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5863,"item_index":1,"item_id":28134} 
[2026-03-11 16:18:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5863,"item_index":2,"item_id":28135} 
[2026-03-11 16:18:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5863,"item_index":3,"item_id":28136} 
[2026-03-11 16:18:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5863,"item_index":4,"item_id":28137} 
[2026-03-11 16:18:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5863,"item_index":5,"item_id":28138} 
[2026-03-11 16:18:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5863,"item_index":6,"item_id":28139} 
[2026-03-11 16:18:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5863,"item_index":7,"item_id":28140} 
[2026-03-11 16:18:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5863,"item_index":8,"item_id":28141} 
[2026-03-11 16:18:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5863,"item_index":9,"item_id":28142} 
[2026-03-11 16:18:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":10,"order_id":5863,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28133},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28134},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":28135},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28136},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":28137},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":28138},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28139},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28140},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28141},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28142}],"validated_items":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:18:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5863,"items_count":10} 
[2026-03-11 16:18:23] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":10,"items_to_remove":[28167,28168,28169,28170,28171,28172,28173,28174,28175,28176],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":50,"quantity":3},{"id":null,"menu_item_id":54,"quantity":1},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 16:18:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5863,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["114|1|","113|1|","62|1|","396|3|","50|3|","54|1|","61|2|","56|2|","5|1|","3|1|"],"new_items_map_keys":["114|1|","113|1|","62|1|","396|3|","50|3|","54|1|","61|2|","56|2|","5|1|","3|1|"]} 
[2026-03-11 16:18:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5863,"order_number":"AZS-110326-017"} 
[2026-03-11 16:18:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5863,"order_number":"AZS-110326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 16:18:23"} 
[2026-03-11 16:19:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5859,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":28143},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":28144},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":28145},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28146},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28147},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28148}],"validated_items":[{"id":28143,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":28144,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":28145,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":28146,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28147,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28148,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:19:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5859,"items_count":6} 
[2026-03-11 16:19:43] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28143,"menu_item_id":106,"quantity":1},{"id":28144,"menu_item_id":396,"quantity":5},{"id":28145,"menu_item_id":61,"quantity":3},{"id":28146,"menu_item_id":56,"quantity":1},{"id":28147,"menu_item_id":5,"quantity":1},{"id":28148,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 16:19:43] local.INFO: PosOrderController::update - Item changes check {"order_id":5859,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["106|1|","396|5|","61|3|","56|1|","5|1|","3|1|"],"new_items_map_keys":["106|1|","396|5|","61|3|","56|1|","5|1|","3|1|"]} 
[2026-03-11 16:19:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5859,"order_number":"AZS-110326-016"} 
[2026-03-11 16:19:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5859,"order_number":"AZS-110326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 16:19:43"} 
[2026-03-11 16:21:24] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5861,"order_number":"AZS-110326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":15000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 16:21:24"} 
[2026-03-11 16:21:24] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5861,"order_number":"AZS-110326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":15000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 16:21:24"} 
[2026-03-11 16:21:24] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5861,"order_number":"AZS-110326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":15000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 16:21:24"} 
[2026-03-11 16:21:24] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5861,"order_number":"AZS-110326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":15000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 16:21:24"} 
[2026-03-11 16:21:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5861,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":28151},{"menu_item_id":397,"quantity":130,"price":4,"discount_percent":0,"notes":null,"id":28152},{"menu_item_id":110,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":28153},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28154},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":28155},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28156},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28157},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28158},{"menu_item_id":57,"quantity":1,"price":299,"discount_percent":0,"notes":null,"id":28159},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28160}],"validated_items":[{"id":28151,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":28152,"menu_item_id":397,"quantity":130,"price":4,"discount_percent":0,"notes":null},{"id":28153,"menu_item_id":110,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":28154,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":28155,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":28156,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28157,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28158,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28159,"menu_item_id":57,"quantity":1,"price":299,"discount_percent":0,"notes":null},{"id":28160,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:21:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5861,"items_count":10} 
[2026-03-11 16:21:24] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28151,"menu_item_id":106,"quantity":1},{"id":28152,"menu_item_id":397,"quantity":130},{"id":28153,"menu_item_id":110,"quantity":1},{"id":28154,"menu_item_id":396,"quantity":2},{"id":28155,"menu_item_id":50,"quantity":2},{"id":28156,"menu_item_id":61,"quantity":2},{"id":28157,"menu_item_id":56,"quantity":1},{"id":28158,"menu_item_id":5,"quantity":1},{"id":28159,"menu_item_id":57,"quantity":1},{"id":28160,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 16:21:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5861,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["106|1|","397|130|","110|1|","396|2|","50|2|","61|2|","56|1|","5|1|","57|1|","3|1|"],"new_items_map_keys":["106|1|","397|130|","110|1|","396|2|","50|2|","61|2|","56|1|","5|1|","57|1|","3|1|"]} 
[2026-03-11 16:21:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5861,"order_number":"AZS-110326-013"} 
[2026-03-11 16:21:24] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5861,"order_number":"AZS-110326-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":15000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-11 16:21:24","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 16:21:24"} 
[2026-03-11 16:21:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5861,"order_number":"AZS-110326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 16:21:24"} 
[2026-03-11 16:21:24] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5861,"order_number":"AZS-110326-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"15000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-11 16:21:24","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":15000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"15000.00","database_verification_match":true,"timestamp":"2026-03-11 16:21:24"} 
[2026-03-11 16:25:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5862,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28161},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28162},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":28163},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28164},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28165},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":28166}],"validated_items":[{"id":28161,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":28162,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28163,"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":28164,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28165,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28166,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:25:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5862,"items_count":6} 
[2026-03-11 16:25:24] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28161,"menu_item_id":105,"quantity":1},{"id":28162,"menu_item_id":396,"quantity":1},{"id":28163,"menu_item_id":54,"quantity":1},{"id":28164,"menu_item_id":61,"quantity":2},{"id":28165,"menu_item_id":5,"quantity":1},{"id":28166,"menu_item_id":2,"quantity":2}]} 
[2026-03-11 16:25:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5862,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["105|1|","396|1|","54|1|","61|2|","5|1|","2|2|"],"new_items_map_keys":["105|1|","396|1|","54|1|","61|2|","5|1|","2|2|"]} 
[2026-03-11 16:25:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5862,"order_number":"AZS-110326-018"} 
[2026-03-11 16:25:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5862,"order_number":"AZS-110326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 16:25:24"} 
[2026-03-11 16:26:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5863,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28167},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28168},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":28169},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28170},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":28171},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":28172},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28173},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28174},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28175},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28176}],"validated_items":[{"id":28167,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":28168,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28169,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":28170,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":28171,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"id":28172,"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":28173,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28174,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28175,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28176,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:26:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5863,"items_count":10} 
[2026-03-11 16:26:03] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28167,"menu_item_id":114,"quantity":1},{"id":28168,"menu_item_id":113,"quantity":1},{"id":28169,"menu_item_id":62,"quantity":1},{"id":28170,"menu_item_id":396,"quantity":3},{"id":28171,"menu_item_id":50,"quantity":3},{"id":28172,"menu_item_id":54,"quantity":1},{"id":28173,"menu_item_id":61,"quantity":2},{"id":28174,"menu_item_id":56,"quantity":2},{"id":28175,"menu_item_id":5,"quantity":1},{"id":28176,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 16:26:03] local.INFO: PosOrderController::update - Item changes check {"order_id":5863,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["114|1|","113|1|","62|1|","396|3|","50|3|","54|1|","61|2|","56|2|","5|1|","3|1|"],"new_items_map_keys":["114|1|","113|1|","62|1|","396|3|","50|3|","54|1|","61|2|","56|2|","5|1|","3|1|"]} 
[2026-03-11 16:26:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5863,"order_number":"AZS-110326-017"} 
[2026-03-11 16:26:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5863,"order_number":"AZS-110326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 16:26:03"} 
[2026-03-11 16:26:31] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5863,"order_number":"AZS-110326-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":7100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 16:26:31"} 
[2026-03-11 16:26:31] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5863,"order_number":"AZS-110326-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":7100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 16:26:31"} 
[2026-03-11 16:26:31] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5863,"order_number":"AZS-110326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 16:26:31"} 
[2026-03-11 16:26:31] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5863,"order_number":"AZS-110326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 16:26:31"} 
[2026-03-11 16:26:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5863,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28167},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28168},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":28169},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28170},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":28171},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":28172},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28173},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28174},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28175},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28176}],"validated_items":[{"id":28167,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":28168,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28169,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":28170,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":28171,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"id":28172,"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":28173,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28174,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28175,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28176,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:26:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5863,"items_count":10} 
[2026-03-11 16:26:31] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28167,"menu_item_id":114,"quantity":1},{"id":28168,"menu_item_id":113,"quantity":1},{"id":28169,"menu_item_id":62,"quantity":1},{"id":28170,"menu_item_id":396,"quantity":3},{"id":28171,"menu_item_id":50,"quantity":3},{"id":28172,"menu_item_id":54,"quantity":1},{"id":28173,"menu_item_id":61,"quantity":2},{"id":28174,"menu_item_id":56,"quantity":2},{"id":28175,"menu_item_id":5,"quantity":1},{"id":28176,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 16:26:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5863,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["114|1|","113|1|","62|1|","396|3|","50|3|","54|1|","61|2|","56|2|","5|1|","3|1|"],"new_items_map_keys":["114|1|","113|1|","62|1|","396|3|","50|3|","54|1|","61|2|","56|2|","5|1|","3|1|"]} 
[2026-03-11 16:26:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5863,"order_number":"AZS-110326-017"} 
[2026-03-11 16:26:31] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5863,"order_number":"AZS-110326-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":7100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-11 16:26:31","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 16:26:31"} 
[2026-03-11 16:26:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5863,"order_number":"AZS-110326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 16:26:31"} 
[2026-03-11 16:26:31] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5863,"order_number":"AZS-110326-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"7100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-11 16:26:31","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":7100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"7100.00","database_verification_match":true,"timestamp":"2026-03-11 16:26:31"} 
[2026-03-11 16:27:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T04:26:59.604Z","date_to":"2026-03-11T16:26:59.604Z","per_page":"100"} 
[2026-03-11 16:27:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T04:26:59.585Z","date_to":"2026-03-11T16:26:59.585Z","per_page":"100"} 
[2026-03-11 16:27:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":15,"unpaid_count":5,"unique_order_numbers":20} 
[2026-03-11 16:27:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":15,"unpaid_count":5,"unique_order_numbers":20} 
[2026-03-11 16:27:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T04:26:59.585Z","date_to":"2026-03-11T16:26:59.585Z","per_page":"100"} 
[2026-03-11 16:27:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":15,"unpaid_count":5,"unique_order_numbers":20} 
[2026-03-11 16:27:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5859,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":28143},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":28144},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":28145},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28146},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28147},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28148}],"validated_items":[{"id":28143,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":28144,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":28145,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":28146,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28147,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28148,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:27:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5859,"items_count":6} 
[2026-03-11 16:27:12] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28143,"menu_item_id":106,"quantity":1},{"id":28144,"menu_item_id":396,"quantity":5},{"id":28145,"menu_item_id":61,"quantity":3},{"id":28146,"menu_item_id":56,"quantity":1},{"id":28147,"menu_item_id":5,"quantity":1},{"id":28148,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 16:27:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5859,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["106|1|","396|5|","61|3|","56|1|","5|1|","3|1|"],"new_items_map_keys":["106|1|","396|5|","61|3|","56|1|","5|1|","3|1|"]} 
[2026-03-11 16:27:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5859,"order_number":"AZS-110326-016"} 
[2026-03-11 16:27:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5859,"order_number":"AZS-110326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 16:27:12"} 
[2026-03-11 16:27:54] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5859,"order_number":"AZS-110326-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 16:27:54"} 
[2026-03-11 16:27:54] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5859,"order_number":"AZS-110326-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 16:27:54"} 
[2026-03-11 16:27:54] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5859,"order_number":"AZS-110326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 16:27:54"} 
[2026-03-11 16:27:54] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5859,"order_number":"AZS-110326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 16:27:54"} 
[2026-03-11 16:27:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5859,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":28143},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":28144},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":28145},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28146},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28147},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28148}],"validated_items":[{"id":28143,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":28144,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":28145,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":28146,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28147,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28148,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:27:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5859,"items_count":6} 
[2026-03-11 16:27:54] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28143,"menu_item_id":106,"quantity":1},{"id":28144,"menu_item_id":396,"quantity":5},{"id":28145,"menu_item_id":61,"quantity":3},{"id":28146,"menu_item_id":56,"quantity":1},{"id":28147,"menu_item_id":5,"quantity":1},{"id":28148,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 16:27:54] local.INFO: PosOrderController::update - Item changes check {"order_id":5859,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["106|1|","396|5|","61|3|","56|1|","5|1|","3|1|"],"new_items_map_keys":["106|1|","396|5|","61|3|","56|1|","5|1|","3|1|"]} 
[2026-03-11 16:27:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5859,"order_number":"AZS-110326-016"} 
[2026-03-11 16:27:54] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5859,"order_number":"AZS-110326-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":6000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-11 16:27:54","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 16:27:54"} 
[2026-03-11 16:27:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5859,"order_number":"AZS-110326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 16:27:54"} 
[2026-03-11 16:27:54] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5859,"order_number":"AZS-110326-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"6000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-11 16:27:54","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"6000.00","database_verification_match":true,"timestamp":"2026-03-11 16:27:54"} 
[2026-03-11 16:28:30] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5862,"order_number":"AZS-110326-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3450,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 16:28:30"} 
[2026-03-11 16:28:30] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5862,"order_number":"AZS-110326-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3450,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 16:28:30"} 
[2026-03-11 16:28:30] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5862,"order_number":"AZS-110326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3450,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 16:28:30"} 
[2026-03-11 16:28:30] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5862,"order_number":"AZS-110326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3450,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 16:28:30"} 
[2026-03-11 16:28:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5862,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28161},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28162},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":28163},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28164},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28165},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":28166}],"validated_items":[{"id":28161,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":28162,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28163,"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":28164,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28165,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28166,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:28:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5862,"items_count":6} 
[2026-03-11 16:28:30] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28161,"menu_item_id":105,"quantity":1},{"id":28162,"menu_item_id":396,"quantity":1},{"id":28163,"menu_item_id":54,"quantity":1},{"id":28164,"menu_item_id":61,"quantity":2},{"id":28165,"menu_item_id":5,"quantity":1},{"id":28166,"menu_item_id":2,"quantity":2}]} 
[2026-03-11 16:28:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5862,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["105|1|","396|1|","54|1|","61|2|","5|1|","2|2|"],"new_items_map_keys":["105|1|","396|1|","54|1|","61|2|","5|1|","2|2|"]} 
[2026-03-11 16:28:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5862,"order_number":"AZS-110326-018"} 
[2026-03-11 16:28:30] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5862,"order_number":"AZS-110326-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3450,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-11 16:28:30","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 16:28:30"} 
[2026-03-11 16:28:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5862,"order_number":"AZS-110326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 16:28:30"} 
[2026-03-11 16:28:30] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5862,"order_number":"AZS-110326-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3450.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-11 16:28:30","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3450,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3450.00","database_verification_match":true,"timestamp":"2026-03-11 16:28:30"} 
[2026-03-11 16:40:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T04:40:13.696Z","date_to":"2026-03-11T16:40:13.696Z","per_page":"100"} 
[2026-03-11 16:40:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T04:40:13.715Z","date_to":"2026-03-11T16:40:13.715Z","per_page":"100"} 
[2026-03-11 16:40:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":17,"unpaid_count":3,"unique_order_numbers":20} 
[2026-03-11 16:40:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":17,"unpaid_count":3,"unique_order_numbers":20} 
[2026-03-11 16:40:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T04:40:13.696Z","date_to":"2026-03-11T16:40:13.696Z","per_page":"100"} 
[2026-03-11 16:40:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":17,"unpaid_count":3,"unique_order_numbers":20} 
[2026-03-11 16:42:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T04:42:51.081Z","date_to":"2026-03-11T16:42:51.081Z","per_page":"100"} 
[2026-03-11 16:42:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":17,"unpaid_count":3,"unique_order_numbers":20} 
[2026-03-11 16:42:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T04:42:51.072Z","date_to":"2026-03-11T16:42:51.072Z","per_page":"100"} 
[2026-03-11 16:42:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":17,"unpaid_count":3,"unique_order_numbers":20} 
[2026-03-11 16:42:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T04:42:51.072Z","date_to":"2026-03-11T16:42:51.072Z","per_page":"100"} 
[2026-03-11 16:42:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":17,"unpaid_count":3,"unique_order_numbers":20} 
[2026-03-11 16:52:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5864,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":23,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":28177}],"validated_items":[{"id":28177,"menu_item_id":23,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:52:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5864,"items_count":1} 
[2026-03-11 16:52:34] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28177,"menu_item_id":23,"quantity":3}]} 
[2026-03-11 16:52:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5864,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["23|3|"],"new_items_map_keys":["23|3|"]} 
[2026-03-11 16:52:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5864,"order_number":"AZS-110326-021"} 
[2026-03-11 16:52:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5864,"order_number":"AZS-110326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 16:52:34"} 
[2026-03-11 16:52:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5864,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":23,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":28177}],"validated_items":[{"id":28177,"menu_item_id":23,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:52:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5864,"items_count":1} 
[2026-03-11 16:52:42] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28177,"menu_item_id":23,"quantity":3}]} 
[2026-03-11 16:52:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5864,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["23|3|"],"new_items_map_keys":["23|3|"]} 
[2026-03-11 16:52:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5864,"order_number":"AZS-110326-021"} 
[2026-03-11 16:52:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5864,"order_number":"AZS-110326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 16:52:42"} 
[2026-03-11 16:52:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5860,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28149},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":28150}],"validated_items":[{"id":28149,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28150,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:52:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5860,"items_count":2} 
[2026-03-11 16:52:50] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28149,"menu_item_id":6,"quantity":2},{"id":28150,"menu_item_id":4,"quantity":1}]} 
[2026-03-11 16:52:50] local.INFO: PosOrderController::update - Item changes check {"order_id":5860,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|2|","4|1|"],"new_items_map_keys":["6|2|","4|1|"]} 
[2026-03-11 16:52:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5860,"order_number":"AZS-110326-020"} 
[2026-03-11 16:52:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5860,"order_number":"AZS-110326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 16:52:50"} 
[2026-03-11 16:54:49] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5860,"order_number":"AZS-110326-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 16:54:49"} 
[2026-03-11 16:54:49] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5860,"order_number":"AZS-110326-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 16:54:49"} 
[2026-03-11 16:54:49] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5860,"order_number":"AZS-110326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 16:54:49"} 
[2026-03-11 16:54:49] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5860,"order_number":"AZS-110326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 16:54:49"} 
[2026-03-11 16:54:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5860,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28149},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":28150}],"validated_items":[{"id":28149,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28150,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:54:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5860,"items_count":2} 
[2026-03-11 16:54:49] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28149,"menu_item_id":6,"quantity":2},{"id":28150,"menu_item_id":4,"quantity":1}]} 
[2026-03-11 16:54:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5860,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|2|","4|1|"],"new_items_map_keys":["6|2|","4|1|"]} 
[2026-03-11 16:54:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5860,"order_number":"AZS-110326-020"} 
[2026-03-11 16:54:49] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5860,"order_number":"AZS-110326-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-11 16:54:49","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 16:54:49"} 
[2026-03-11 16:54:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5860,"order_number":"AZS-110326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 16:54:49"} 
[2026-03-11 16:54:49] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5860,"order_number":"AZS-110326-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-11 16:54:49","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-11 16:54:49"} 
[2026-03-11 16:55:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5864,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":23,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":28177}],"validated_items":[{"id":28177,"menu_item_id":23,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-11 16:55:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5864,"items_count":1} 
[2026-03-11 16:55:52] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28177,"menu_item_id":23,"quantity":3}]} 
[2026-03-11 16:55:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5864,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["23|3|"],"new_items_map_keys":["23|3|"]} 
[2026-03-11 16:55:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5864,"order_number":"AZS-110326-021"} 
[2026-03-11 16:55:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5864,"order_number":"AZS-110326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 16:55:52"} 
[2026-03-11 17:00:28] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5864,"order_number":"AZS-110326-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":784,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 17:00:28"} 
[2026-03-11 17:00:28] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5864,"order_number":"AZS-110326-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":784,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 17:00:28"} 
[2026-03-11 17:00:28] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5864,"order_number":"AZS-110326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":784,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 17:00:28"} 
[2026-03-11 17:00:28] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5864,"order_number":"AZS-110326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":784,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 17:00:28"} 
[2026-03-11 17:00:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5864,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":23,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":28177}],"validated_items":[{"id":28177,"menu_item_id":23,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-11 17:00:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5864,"items_count":1} 
[2026-03-11 17:00:28] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28177,"menu_item_id":23,"quantity":3}]} 
[2026-03-11 17:00:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5864,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["23|3|"],"new_items_map_keys":["23|3|"]} 
[2026-03-11 17:00:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5864,"order_number":"AZS-110326-021"} 
[2026-03-11 17:00:28] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5864,"order_number":"AZS-110326-021","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":784,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-11 17:00:28","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 17:00:28"} 
[2026-03-11 17:00:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5864,"order_number":"AZS-110326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 17:00:28"} 
[2026-03-11 17:00:28] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5864,"order_number":"AZS-110326-021","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"784.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-11 17:00:28","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":784,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"784.00","database_verification_match":true,"timestamp":"2026-03-11 17:00:28"} 
[2026-03-11 17:02:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T05:02:28.739Z","date_to":"2026-03-11T17:02:28.739Z","per_page":"100"} 
[2026-03-11 17:02:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T05:02:28.758Z","date_to":"2026-03-11T17:02:28.758Z","per_page":"100"} 
[2026-03-11 17:02:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":19,"unpaid_count":2,"unique_order_numbers":21} 
[2026-03-11 17:02:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":19,"unpaid_count":2,"unique_order_numbers":21} 
[2026-03-11 17:02:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T05:02:28.739Z","date_to":"2026-03-11T17:02:28.739Z","per_page":"100"} 
[2026-03-11 17:02:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":19,"unpaid_count":2,"unique_order_numbers":21} 
[2026-03-11 18:54:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5866,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":28182},{"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null,"id":28183},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":28184},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28185},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28186},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28187},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28182,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":28183,"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null},{"id":28184,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":28185,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28186,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28187,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 18:54:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5866,"items_count":7} 
[2026-03-11 18:54:15] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28182,"menu_item_id":65,"quantity":1},{"id":28183,"menu_item_id":113,"quantity":2},{"id":28184,"menu_item_id":396,"quantity":4},{"id":28185,"menu_item_id":61,"quantity":1},{"id":28186,"menu_item_id":56,"quantity":1},{"id":28187,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 18:54:15] local.INFO: PosOrderController::update - Item changes check {"order_id":5866,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["65|1|","113|2|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["65|1|","113|2|","396|4|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-03-11 18:54:15] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5866,"order_number":"AZS-110326-023"} 
[2026-03-11 18:54:15] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-023","replaced_order_id":5866} 
[2026-03-11 18:54:15] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5867,"items_count":7,"items":[{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":113,"quantity":2,"price":"1199.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-11 18:54:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5867,"item_index":0,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5867}} 
[2026-03-11 18:54:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5867,"item_index":0,"menu_item_id":65} 
[2026-03-11 18:54:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5867,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5867}} 
[2026-03-11 18:54:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5867,"item_index":1,"menu_item_id":113} 
[2026-03-11 18:54:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5867,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5867}} 
[2026-03-11 18:54:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5867,"item_index":2,"menu_item_id":396} 
[2026-03-11 18:54:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5867,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5867}} 
[2026-03-11 18:54:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5867,"item_index":3,"menu_item_id":61} 
[2026-03-11 18:54:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5867,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5867}} 
[2026-03-11 18:54:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5867,"item_index":4,"menu_item_id":56} 
[2026-03-11 18:54:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5867,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5867}} 
[2026-03-11 18:54:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5867,"item_index":5,"menu_item_id":5} 
[2026-03-11 18:54:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5867,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5867}} 
[2026-03-11 18:54:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5867,"item_index":6,"menu_item_id":3} 
[2026-03-11 18:54:15] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5866,"new_order_id":5867,"order_number":"AZS-110326-023"} 
[2026-03-11 18:56:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5867,"item_index":0,"item_id":28182} 
[2026-03-11 18:56:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5867,"item_index":1,"item_id":28183} 
[2026-03-11 18:56:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5867,"item_index":2,"item_id":28184} 
[2026-03-11 18:56:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5867,"item_index":3,"item_id":28185} 
[2026-03-11 18:56:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5867,"item_index":4,"item_id":28186} 
[2026-03-11 18:56:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5867,"item_index":5,"item_id":28187} 
[2026-03-11 18:56:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5867,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":28182},{"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null,"id":28183},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":28184},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":28185},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28186},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28187},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 18:56:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5867,"items_count":7} 
[2026-03-11 18:56:44] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[28188,28189,28190,28191,28192,28193,28194],"items":[{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":113,"quantity":2},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 18:56:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5867,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["65|1|","113|2|","396|4|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["65|1|","113|2|","396|4|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-03-11 18:56:44] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5867,"order_number":"AZS-110326-023"} 
[2026-03-11 18:56:44] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-023","replaced_order_id":5867} 
[2026-03-11 18:56:44] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5868,"items_count":7,"items":[{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":113,"quantity":2,"price":"1199.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-11 18:56:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5868,"item_index":0,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5868}} 
[2026-03-11 18:56:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5868,"item_index":0,"menu_item_id":65} 
[2026-03-11 18:56:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5868,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5868}} 
[2026-03-11 18:56:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5868,"item_index":1,"menu_item_id":113} 
[2026-03-11 18:56:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5868,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5868}} 
[2026-03-11 18:56:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5868,"item_index":2,"menu_item_id":396} 
[2026-03-11 18:56:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5868,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5868}} 
[2026-03-11 18:56:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5868,"item_index":3,"menu_item_id":61} 
[2026-03-11 18:56:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5868,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5868}} 
[2026-03-11 18:56:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5868,"item_index":4,"menu_item_id":56} 
[2026-03-11 18:56:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5868,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5868}} 
[2026-03-11 18:56:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5868,"item_index":5,"menu_item_id":5} 
[2026-03-11 18:56:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5868,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5868}} 
[2026-03-11 18:56:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5868,"item_index":6,"menu_item_id":3} 
[2026-03-11 18:56:44] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5867,"new_order_id":5868,"order_number":"AZS-110326-023"} 
[2026-03-11 19:20:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5868,"item_index":0,"item_id":28182} 
[2026-03-11 19:20:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5868,"item_index":1,"item_id":28183} 
[2026-03-11 19:20:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5868,"item_index":2,"item_id":28184} 
[2026-03-11 19:20:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5868,"item_index":3,"item_id":28185} 
[2026-03-11 19:20:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5868,"item_index":4,"item_id":28186} 
[2026-03-11 19:20:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5868,"item_index":5,"item_id":28187} 
[2026-03-11 19:20:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5868,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":28182},{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":28183},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":28184},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28185},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28186},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28187},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-11 19:20:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5868,"items_count":7} 
[2026-03-11 19:20:47] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[28195,28196,28197,28198,28199,28200,28201],"items":[{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":113,"quantity":2},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 19:20:47] local.INFO: PosOrderController::update - Item changes check {"order_id":5868,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["65|1|","113|2|","396|4|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["65|1|","113|2|","396|4|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-03-11 19:20:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5868,"order_number":"AZS-110326-023"} 
[2026-03-11 19:20:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5868,"order_number":"AZS-110326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 19:20:47"} 
[2026-03-11 19:27:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5865,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28178},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":28179},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28180},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":28181}],"validated_items":[{"id":28178,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":28179,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":28180,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28181,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-11 19:27:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5865,"items_count":4} 
[2026-03-11 19:27:30] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28178,"menu_item_id":105,"quantity":1},{"id":28179,"menu_item_id":67,"quantity":1},{"id":28180,"menu_item_id":61,"quantity":1},{"id":28181,"menu_item_id":50,"quantity":2}]} 
[2026-03-11 19:27:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5865,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["105|1|","67|1|","61|1|","50|2|"],"new_items_map_keys":["105|1|","67|1|","61|1|","50|2|"]} 
[2026-03-11 19:27:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5865,"order_number":"AZS-110326-022"} 
[2026-03-11 19:27:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5865,"order_number":"AZS-110326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 19:27:30"} 
[2026-03-11 19:28:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5868,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":28195},{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":28196},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":28197},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28198},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28199},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28200},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28201}],"validated_items":[{"id":28195,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":28196,"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":28197,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":28198,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28199,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28200,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28201,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-11 19:28:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5868,"items_count":7} 
[2026-03-11 19:28:37] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28195,"menu_item_id":65,"quantity":1},{"id":28196,"menu_item_id":113,"quantity":2},{"id":28197,"menu_item_id":396,"quantity":4},{"id":28198,"menu_item_id":61,"quantity":2},{"id":28199,"menu_item_id":56,"quantity":1},{"id":28200,"menu_item_id":5,"quantity":1},{"id":28201,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 19:28:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5868,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["65|1|","113|2|","396|4|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["65|1|","113|2|","396|4|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-03-11 19:28:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5868,"order_number":"AZS-110326-023"} 
[2026-03-11 19:28:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5868,"order_number":"AZS-110326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 19:28:37"} 
[2026-03-11 19:32:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5865,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28178},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":28179},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28180},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":28181}],"validated_items":[{"id":28178,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":28179,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":28180,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28181,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-11 19:32:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5865,"items_count":4} 
[2026-03-11 19:32:25] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28178,"menu_item_id":105,"quantity":1},{"id":28179,"menu_item_id":67,"quantity":1},{"id":28180,"menu_item_id":61,"quantity":1},{"id":28181,"menu_item_id":50,"quantity":2}]} 
[2026-03-11 19:32:25] local.INFO: PosOrderController::update - Item changes check {"order_id":5865,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["105|1|","67|1|","61|1|","50|2|"],"new_items_map_keys":["105|1|","67|1|","61|1|","50|2|"]} 
[2026-03-11 19:32:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5865,"order_number":"AZS-110326-022"} 
[2026-03-11 19:32:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5865,"order_number":"AZS-110326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 19:32:25"} 
[2026-03-11 19:32:53] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5865,"order_number":"AZS-110326-022","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3300,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 19:32:53"} 
[2026-03-11 19:32:53] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5865,"order_number":"AZS-110326-022","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3300,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 19:32:53"} 
[2026-03-11 19:32:53] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5865,"order_number":"AZS-110326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 19:32:53"} 
[2026-03-11 19:32:53] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5865,"order_number":"AZS-110326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 19:32:53"} 
[2026-03-11 19:32:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5865,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28178},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":28179},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28180},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":28181}],"validated_items":[{"id":28178,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":28179,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":28180,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28181,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-11 19:32:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5865,"items_count":4} 
[2026-03-11 19:32:53] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28178,"menu_item_id":105,"quantity":1},{"id":28179,"menu_item_id":67,"quantity":1},{"id":28180,"menu_item_id":61,"quantity":1},{"id":28181,"menu_item_id":50,"quantity":2}]} 
[2026-03-11 19:32:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5865,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["105|1|","67|1|","61|1|","50|2|"],"new_items_map_keys":["105|1|","67|1|","61|1|","50|2|"]} 
[2026-03-11 19:32:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5865,"order_number":"AZS-110326-022"} 
[2026-03-11 19:32:53] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5865,"order_number":"AZS-110326-022","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3300,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-11 19:32:53","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 19:32:53"} 
[2026-03-11 19:32:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5865,"order_number":"AZS-110326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 19:32:53"} 
[2026-03-11 19:32:53] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5865,"order_number":"AZS-110326-022","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3300.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-11 19:32:53","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3300,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3300.00","database_verification_match":true,"timestamp":"2026-03-11 19:32:53"} 
[2026-03-11 19:33:11] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5868,"order_number":"AZS-110326-023","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 19:33:11"} 
[2026-03-11 19:33:11] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5868,"order_number":"AZS-110326-023","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 19:33:11"} 
[2026-03-11 19:33:11] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5868,"order_number":"AZS-110326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 19:33:11"} 
[2026-03-11 19:33:11] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5868,"order_number":"AZS-110326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 19:33:11"} 
[2026-03-11 19:33:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5868,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":28195},{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":28196},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":28197},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28198},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28199},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28200},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28201}],"validated_items":[{"id":28195,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":28196,"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":28197,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":28198,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28199,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28200,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28201,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-11 19:33:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5868,"items_count":7} 
[2026-03-11 19:33:11] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28195,"menu_item_id":65,"quantity":1},{"id":28196,"menu_item_id":113,"quantity":2},{"id":28197,"menu_item_id":396,"quantity":4},{"id":28198,"menu_item_id":61,"quantity":1},{"id":28199,"menu_item_id":56,"quantity":1},{"id":28200,"menu_item_id":5,"quantity":1},{"id":28201,"menu_item_id":3,"quantity":1}]} 
[2026-03-11 19:33:11] local.INFO: PosOrderController::update - Item changes check {"order_id":5868,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["65|1|","113|2|","396|4|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["65|1|","113|2|","396|4|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-03-11 19:33:11] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5868,"order_number":"AZS-110326-023","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-11 19:33:11","original_payment_amount":"0.00","grand_total":4931.0,"timestamp":"2026-03-11 19:33:11"} 
[2026-03-11 19:33:11] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5868,"order_number":"AZS-110326-023"} 
[2026-03-11 19:33:11] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-023","replaced_order_id":5868} 
[2026-03-11 19:33:11] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5868,"new_order_id":5869,"order_number":"AZS-110326-023","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-11 19:33:11","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-11 19:33:11"} 
[2026-03-11 19:33:11] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5869,"items_count":7,"items":[{"menu_item_id":65,"quantity":1,"price":1299.0},{"menu_item_id":113,"quantity":2,"price":1199.0},{"menu_item_id":396,"quantity":4,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-11 19:33:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5869,"item_index":0,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5869}} 
[2026-03-11 19:33:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5869,"item_index":0,"menu_item_id":65} 
[2026-03-11 19:33:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5869,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":2,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5869}} 
[2026-03-11 19:33:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5869,"item_index":1,"menu_item_id":113} 
[2026-03-11 19:33:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5869,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5869}} 
[2026-03-11 19:33:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5869,"item_index":2,"menu_item_id":396} 
[2026-03-11 19:33:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5869,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5869}} 
[2026-03-11 19:33:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5869,"item_index":3,"menu_item_id":61} 
[2026-03-11 19:33:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5869,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5869}} 
[2026-03-11 19:33:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5869,"item_index":4,"menu_item_id":56} 
[2026-03-11 19:33:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5869,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5869}} 
[2026-03-11 19:33:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5869,"item_index":5,"menu_item_id":5} 
[2026-03-11 19:33:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5869,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5869}} 
[2026-03-11 19:33:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5869,"item_index":6,"menu_item_id":3} 
[2026-03-11 19:33:12] local.ERROR: Error tracking recipe usage for order 5869: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5869, 65, 209, 1, 5000, 0.00, Order #AZS-110326-023 - 1x Chicken Reshmi Kabab (4 pcs), 2026-03-11 19:33:11, 2026-03-11 19:33:11))  
[2026-03-11 19:33:12] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5868,"new_order_id":5869,"order_number":"AZS-110326-023"} 
[2026-03-11 19:33:12] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5868,"new_order_id":5869,"order_number":"AZS-110326-023","route":"api/orders/5868"} 
[2026-03-11 19:38:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T07:38:16.263Z","date_to":"2026-03-11T19:38:16.263Z","per_page":"100"} 
[2026-03-11 19:38:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T07:38:16.283Z","date_to":"2026-03-11T19:38:16.283Z","per_page":"100"} 
[2026-03-11 19:38:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-023","AZS-110326-022","AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":21,"unpaid_count":2,"unique_order_numbers":23} 
[2026-03-11 19:38:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-023","AZS-110326-022","AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":21,"unpaid_count":2,"unique_order_numbers":23} 
[2026-03-11 19:38:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T07:38:16.263Z","date_to":"2026-03-11T19:38:16.263Z","per_page":"100"} 
[2026-03-11 19:38:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-023","AZS-110326-022","AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":21,"unpaid_count":2,"unique_order_numbers":23} 
[2026-03-11 20:23:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5870,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":28209},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":28210},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28211},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28212},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":28213},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28214}],"validated_items":[{"id":28209,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":28210,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":28211,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28212,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28213,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":28214,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 20:23:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5870,"items_count":6} 
[2026-03-11 20:23:58] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28209,"menu_item_id":50,"quantity":2},{"id":28210,"menu_item_id":396,"quantity":1},{"id":28211,"menu_item_id":61,"quantity":1},{"id":28212,"menu_item_id":56,"quantity":1},{"id":28213,"menu_item_id":113,"quantity":1},{"id":28214,"menu_item_id":5,"quantity":1}]} 
[2026-03-11 20:23:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5870,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["50|1|","396|1|","61|1|","56|1|","113|1|","5|1|"],"new_items_map_keys":["50|2|","396|1|","61|1|","56|1|","113|1|","5|1|"]} 
[2026-03-11 20:23:58] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5870,"order_number":"AZS-110326-024"} 
[2026-03-11 20:23:58] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-024","replaced_order_id":5870} 
[2026-03-11 20:23:58] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5871,"items_count":6,"items":[{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-11 20:23:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5871,"item_index":0,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5871}} 
[2026-03-11 20:23:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5871,"item_index":0,"menu_item_id":50} 
[2026-03-11 20:23:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5871,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5871}} 
[2026-03-11 20:23:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5871,"item_index":1,"menu_item_id":396} 
[2026-03-11 20:23:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5871,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5871}} 
[2026-03-11 20:23:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5871,"item_index":2,"menu_item_id":61} 
[2026-03-11 20:23:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5871,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5871}} 
[2026-03-11 20:23:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5871,"item_index":3,"menu_item_id":56} 
[2026-03-11 20:23:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5871,"item_index":4,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5871}} 
[2026-03-11 20:23:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5871,"item_index":4,"menu_item_id":113} 
[2026-03-11 20:23:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5871,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5871}} 
[2026-03-11 20:23:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5871,"item_index":5,"menu_item_id":5} 
[2026-03-11 20:23:58] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5870,"new_order_id":5871,"order_number":"AZS-110326-024"} 
[2026-03-11 20:29:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5871,"item_index":0,"item_id":28209} 
[2026-03-11 20:29:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5871,"item_index":1,"item_id":28210} 
[2026-03-11 20:29:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5871,"item_index":2,"item_id":28211} 
[2026-03-11 20:29:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5871,"item_index":3,"item_id":28212} 
[2026-03-11 20:29:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5871,"item_index":4,"item_id":28213} 
[2026-03-11 20:29:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5871,"item_index":5,"item_id":28214} 
[2026-03-11 20:29:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":6,"order_id":5871,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":28209},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":28210},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28211},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28212},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":28213},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28214},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-11 20:29:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5871,"items_count":7} 
[2026-03-11 20:29:57] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":6,"items_to_remove":[28215,28216,28217,28218,28219,28220],"items":[{"id":null,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-03-11 20:29:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5871,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["50|2|","396|1|","61|1|","56|1|","113|1|","5|1|"],"new_items_map_keys":["50|2|","396|1|","61|1|","56|1|","113|1|","5|1|","13|2|"]} 
[2026-03-11 20:29:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5871,"order_number":"AZS-110326-024"} 
[2026-03-11 20:29:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-024","replaced_order_id":5871} 
[2026-03-11 20:29:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5872,"items_count":7,"items":[{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"}]} 
[2026-03-11 20:29:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5872,"item_index":0,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5872}} 
[2026-03-11 20:29:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5872,"item_index":0,"menu_item_id":50} 
[2026-03-11 20:29:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5872,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5872}} 
[2026-03-11 20:29:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5872,"item_index":1,"menu_item_id":396} 
[2026-03-11 20:29:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5872,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5872}} 
[2026-03-11 20:29:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5872,"item_index":2,"menu_item_id":61} 
[2026-03-11 20:29:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5872,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5872}} 
[2026-03-11 20:29:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5872,"item_index":3,"menu_item_id":56} 
[2026-03-11 20:29:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5872,"item_index":4,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5872}} 
[2026-03-11 20:29:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5872,"item_index":4,"menu_item_id":113} 
[2026-03-11 20:29:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5872,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5872}} 
[2026-03-11 20:29:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5872,"item_index":5,"menu_item_id":5} 
[2026-03-11 20:29:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5872,"item_index":6,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5872}} 
[2026-03-11 20:29:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5872,"item_index":6,"menu_item_id":13} 
[2026-03-11 20:29:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5871,"new_order_id":5872,"order_number":"AZS-110326-024"} 
[2026-03-11 20:44:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5872,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":28221},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28222},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28223},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28224},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28225},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28226},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":28227}],"validated_items":[{"id":28221,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":28222,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28223,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28224,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28225,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28226,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28227,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-11 20:44:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5872,"items_count":7} 
[2026-03-11 20:44:20] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28221,"menu_item_id":50,"quantity":2},{"id":28222,"menu_item_id":396,"quantity":1},{"id":28223,"menu_item_id":61,"quantity":1},{"id":28224,"menu_item_id":56,"quantity":1},{"id":28225,"menu_item_id":113,"quantity":1},{"id":28226,"menu_item_id":5,"quantity":1},{"id":28227,"menu_item_id":13,"quantity":2}]} 
[2026-03-11 20:44:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5872,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["50|2|","396|1|","61|1|","56|1|","113|1|","5|1|","13|2|"],"new_items_map_keys":["50|2|","396|1|","61|1|","56|1|","113|1|","5|1|","13|2|"]} 
[2026-03-11 20:44:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5872,"order_number":"AZS-110326-024"} 
[2026-03-11 20:44:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5872,"order_number":"AZS-110326-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 20:44:20"} 
[2026-03-11 20:55:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T08:55:41.864Z","date_to":"2026-03-11T20:55:41.864Z","per_page":"100"} 
[2026-03-11 20:55:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-025","AZS-110326-024","AZS-110326-023","AZS-110326-022","AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":21,"unpaid_count":4,"unique_order_numbers":25} 
[2026-03-11 20:55:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T08:55:41.850Z","date_to":"2026-03-11T20:55:41.850Z","per_page":"100"} 
[2026-03-11 20:55:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-025","AZS-110326-024","AZS-110326-023","AZS-110326-022","AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":21,"unpaid_count":4,"unique_order_numbers":25} 
[2026-03-11 20:55:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T08:55:41.850Z","date_to":"2026-03-11T20:55:41.850Z","per_page":"100"} 
[2026-03-11 20:55:45] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-025","AZS-110326-024","AZS-110326-023","AZS-110326-022","AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":21,"unpaid_count":4,"unique_order_numbers":25} 
[2026-03-11 21:08:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5872,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":28221},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28222},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28223},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28224},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28225},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28226},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":28227}],"validated_items":[{"id":28221,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":28222,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28223,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28224,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28225,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28226,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28227,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-11 21:08:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5872,"items_count":7} 
[2026-03-11 21:08:34] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28221,"menu_item_id":50,"quantity":2},{"id":28222,"menu_item_id":396,"quantity":1},{"id":28223,"menu_item_id":61,"quantity":1},{"id":28224,"menu_item_id":56,"quantity":1},{"id":28225,"menu_item_id":113,"quantity":1},{"id":28226,"menu_item_id":5,"quantity":1},{"id":28227,"menu_item_id":13,"quantity":2}]} 
[2026-03-11 21:08:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5872,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["50|2|","396|1|","61|1|","56|1|","113|1|","5|1|","13|2|"],"new_items_map_keys":["50|2|","396|1|","61|1|","56|1|","113|1|","5|1|","13|2|"]} 
[2026-03-11 21:08:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5872,"order_number":"AZS-110326-024"} 
[2026-03-11 21:08:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5872,"order_number":"AZS-110326-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 21:08:34"} 
[2026-03-11 21:09:12] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5872,"order_number":"AZS-110326-024","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2700,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 21:09:12"} 
[2026-03-11 21:09:12] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5872,"order_number":"AZS-110326-024","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2700,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 21:09:12"} 
[2026-03-11 21:09:12] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5872,"order_number":"AZS-110326-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2700,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 21:09:12"} 
[2026-03-11 21:09:12] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5872,"order_number":"AZS-110326-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2700,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 21:09:12"} 
[2026-03-11 21:09:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5872,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":28221},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28222},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28223},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28224},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28225},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28226},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":28227}],"validated_items":[{"id":28221,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":28222,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28223,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28224,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28225,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28226,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28227,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-11 21:09:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5872,"items_count":7} 
[2026-03-11 21:09:12] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28221,"menu_item_id":50,"quantity":2},{"id":28222,"menu_item_id":396,"quantity":1},{"id":28223,"menu_item_id":61,"quantity":1},{"id":28224,"menu_item_id":56,"quantity":1},{"id":28225,"menu_item_id":113,"quantity":1},{"id":28226,"menu_item_id":5,"quantity":1},{"id":28227,"menu_item_id":13,"quantity":2}]} 
[2026-03-11 21:09:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5872,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["50|2|","396|1|","61|1|","56|1|","113|1|","5|1|","13|2|"],"new_items_map_keys":["50|2|","396|1|","61|1|","56|1|","113|1|","5|1|","13|2|"]} 
[2026-03-11 21:09:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5872,"order_number":"AZS-110326-024"} 
[2026-03-11 21:09:12] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5872,"order_number":"AZS-110326-024","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2700,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-11 21:09:12","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 21:09:12"} 
[2026-03-11 21:09:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5872,"order_number":"AZS-110326-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 21:09:12"} 
[2026-03-11 21:09:12] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5872,"order_number":"AZS-110326-024","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2700.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-11 21:09:12","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2700,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2700.00","database_verification_match":true,"timestamp":"2026-03-11 21:09:12"} 
[2026-03-11 21:25:11] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5852,"order_number":"AZS-110326-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 21:25:11"} 
[2026-03-11 21:25:11] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5852,"order_number":"AZS-110326-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 21:25:11"} 
[2026-03-11 21:25:11] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5852,"order_number":"AZS-110326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 21:25:11"} 
[2026-03-11 21:25:11] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5852,"order_number":"AZS-110326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 21:25:11"} 
[2026-03-11 21:25:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5852,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28097}],"validated_items":[{"id":28097,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-11 21:25:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5852,"items_count":1} 
[2026-03-11 21:25:11] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28097,"menu_item_id":6,"quantity":1}]} 
[2026-03-11 21:25:11] local.INFO: PosOrderController::update - Item changes check {"order_id":5852,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-03-11 21:25:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5852,"order_number":"AZS-110326-019"} 
[2026-03-11 21:25:11] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5852,"order_number":"AZS-110326-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-11 21:25:11","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 21:25:11"} 
[2026-03-11 21:25:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5852,"order_number":"AZS-110326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 21:25:11"} 
[2026-03-11 21:25:11] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5852,"order_number":"AZS-110326-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-11 21:25:11","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"200.00","database_verification_match":true,"timestamp":"2026-03-11 21:25:11"} 
[2026-03-11 21:25:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5873,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":28228},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":28229},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28230},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28231},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28232},{"menu_item_id":2,"quantity":4,"discount_percent":0,"notes":null}],"validated_items":[{"id":28228,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":28229,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":28230,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28231,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28232,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-03-11 21:25:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5873,"items_count":6} 
[2026-03-11 21:25:23] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28228,"menu_item_id":106,"quantity":1},{"id":28229,"menu_item_id":396,"quantity":3},{"id":28230,"menu_item_id":61,"quantity":1},{"id":28231,"menu_item_id":56,"quantity":1},{"id":28232,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":4}]} 
[2026-03-11 21:25:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5873,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["106|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["106|1|","396|3|","61|1|","56|1|","5|1|","2|4|"]} 
[2026-03-11 21:25:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5873,"order_number":"AZS-110326-025"} 
[2026-03-11 21:25:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-025","replaced_order_id":5873} 
[2026-03-11 21:25:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5874,"items_count":6,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":4,"price":"130.00"}]} 
[2026-03-11 21:25:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5874,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5874}} 
[2026-03-11 21:25:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5874,"item_index":0,"menu_item_id":106} 
[2026-03-11 21:25:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5874,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5874}} 
[2026-03-11 21:25:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5874,"item_index":1,"menu_item_id":396} 
[2026-03-11 21:25:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5874,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5874}} 
[2026-03-11 21:25:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5874,"item_index":2,"menu_item_id":61} 
[2026-03-11 21:25:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5874,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5874}} 
[2026-03-11 21:25:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5874,"item_index":3,"menu_item_id":56} 
[2026-03-11 21:25:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5874,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5874}} 
[2026-03-11 21:25:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5874,"item_index":4,"menu_item_id":5} 
[2026-03-11 21:25:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5874,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":4,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":520.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5874}} 
[2026-03-11 21:25:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5874,"item_index":5,"menu_item_id":2} 
[2026-03-11 21:25:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5873,"new_order_id":5874,"order_number":"AZS-110326-025"} 
[2026-03-11 21:40:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5874,"item_index":0,"item_id":28228} 
[2026-03-11 21:40:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5874,"item_index":1,"item_id":28229} 
[2026-03-11 21:40:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5874,"item_index":2,"item_id":28230} 
[2026-03-11 21:40:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5874,"item_index":3,"item_id":28231} 
[2026-03-11 21:40:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5874,"item_index":4,"item_id":28232} 
[2026-03-11 21:40:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5874,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":28228},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28229},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28230},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28231},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28232},{"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-11 21:40:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5874,"items_count":6} 
[2026-03-11 21:40:25] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[28233,28234,28235,28236,28237,28238],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":4}]} 
[2026-03-11 21:40:25] local.INFO: PosOrderController::update - Item changes check {"order_id":5874,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["106|1|","396|3|","61|1|","56|1|","5|1|","2|4|"],"new_items_map_keys":["106|1|","396|3|","61|1|","56|1|","5|1|","2|4|"]} 
[2026-03-11 21:40:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5874,"order_number":"AZS-110326-025"} 
[2026-03-11 21:40:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5874,"order_number":"AZS-110326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 21:40:25"} 
[2026-03-11 21:40:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T09:40:48.938Z","date_to":"2026-03-11T21:40:48.938Z","per_page":"100"} 
[2026-03-11 21:40:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-025","AZS-110326-024","AZS-110326-023","AZS-110326-022","AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-11 21:40:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T09:40:48.953Z","date_to":"2026-03-11T21:40:48.953Z","per_page":"100"} 
[2026-03-11 21:40:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-025","AZS-110326-024","AZS-110326-023","AZS-110326-022","AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-11 21:40:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T09:40:48.938Z","date_to":"2026-03-11T21:40:48.938Z","per_page":"100"} 
[2026-03-11 21:40:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-025","AZS-110326-024","AZS-110326-023","AZS-110326-022","AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-11 21:43:13] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5874,"order_number":"AZS-110326-025","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 21:43:13"} 
[2026-03-11 21:43:13] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5874,"order_number":"AZS-110326-025","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 21:43:13"} 
[2026-03-11 21:43:13] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5874,"order_number":"AZS-110326-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 21:43:13"} 
[2026-03-11 21:43:13] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5874,"order_number":"AZS-110326-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 21:43:13"} 
[2026-03-11 21:43:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5874,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":28233},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28234},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28235},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28236},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28237},{"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null,"id":28238}],"validated_items":[{"id":28233,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":28234,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":28235,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28236,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28237,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28238,"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-11 21:43:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5874,"items_count":6} 
[2026-03-11 21:43:13] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28233,"menu_item_id":106,"quantity":1},{"id":28234,"menu_item_id":396,"quantity":3},{"id":28235,"menu_item_id":61,"quantity":1},{"id":28236,"menu_item_id":56,"quantity":1},{"id":28237,"menu_item_id":5,"quantity":1},{"id":28238,"menu_item_id":2,"quantity":4}]} 
[2026-03-11 21:43:13] local.INFO: PosOrderController::update - Item changes check {"order_id":5874,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["106|1|","396|3|","61|1|","56|1|","5|1|","2|4|"],"new_items_map_keys":["106|1|","396|3|","61|1|","56|1|","5|1|","2|4|"]} 
[2026-03-11 21:43:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5874,"order_number":"AZS-110326-025"} 
[2026-03-11 21:43:13] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5874,"order_number":"AZS-110326-025","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":6000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-11 21:43:13","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 21:43:13"} 
[2026-03-11 21:43:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5874,"order_number":"AZS-110326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 21:43:13"} 
[2026-03-11 21:43:13] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5874,"order_number":"AZS-110326-025","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"6000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-11 21:43:13","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"6000.00","database_verification_match":true,"timestamp":"2026-03-11 21:43:13"} 
[2026-03-11 23:32:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5854,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":28106},{"menu_item_id":400,"quantity":300,"discount_percent":0,"notes":null,"id":28107},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":28108},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":28109},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null,"id":28110},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28111},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28112},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":28113},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null,"id":28114}],"validated_items":[{"id":28106,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"id":28107,"menu_item_id":400,"quantity":300,"discount_percent":0,"notes":null},{"id":28108,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":28109,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":28110,"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"id":28111,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28112,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28113,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":28114,"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-11 23:32:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5854,"items_count":9} 
[2026-03-11 23:32:00] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28106,"menu_item_id":3,"quantity":1},{"id":28107,"menu_item_id":400,"quantity":300},{"id":28108,"menu_item_id":62,"quantity":1},{"id":28109,"menu_item_id":65,"quantity":1},{"id":28110,"menu_item_id":51,"quantity":2},{"id":28111,"menu_item_id":61,"quantity":1},{"id":28112,"menu_item_id":56,"quantity":1},{"id":28113,"menu_item_id":5,"quantity":2},{"id":28114,"menu_item_id":13,"quantity":3}]} 
[2026-03-11 23:32:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5854,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["3|1|","400|300|","62|1|","65|1|","51|2|","61|1|","56|1|","5|2|","13|3|"],"new_items_map_keys":["3|1|","400|300|","62|1|","65|1|","51|2|","61|1|","56|1|","5|2|","13|3|"]} 
[2026-03-11 23:32:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5854,"order_number":"AZS-110326-001"} 
[2026-03-11 23:32:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5854,"order_number":"AZS-110326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-11 23:32:00"} 
[2026-03-11 23:32:13] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5854,"order_number":"AZS-110326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5251,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 23:32:13"} 
[2026-03-11 23:32:13] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5854,"order_number":"AZS-110326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5251,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 23:32:13"} 
[2026-03-11 23:32:13] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5854,"order_number":"AZS-110326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5251,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 23:32:13"} 
[2026-03-11 23:32:13] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5854,"order_number":"AZS-110326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5251,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 23:32:13"} 
[2026-03-11 23:32:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5854,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28106},{"menu_item_id":400,"quantity":300,"price":1,"discount_percent":0,"notes":null,"id":28107},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":28108},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":28109},{"menu_item_id":51,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28110},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28111},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28112},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":28113},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":28114}],"validated_items":[{"id":28106,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":28107,"menu_item_id":400,"quantity":300,"price":1,"discount_percent":0,"notes":null},{"id":28108,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":28109,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":28110,"menu_item_id":51,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28111,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28112,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28113,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":28114,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-11 23:32:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5854,"items_count":9} 
[2026-03-11 23:32:13] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28106,"menu_item_id":3,"quantity":1},{"id":28107,"menu_item_id":400,"quantity":300},{"id":28108,"menu_item_id":62,"quantity":1},{"id":28109,"menu_item_id":65,"quantity":1},{"id":28110,"menu_item_id":51,"quantity":2},{"id":28111,"menu_item_id":61,"quantity":1},{"id":28112,"menu_item_id":56,"quantity":1},{"id":28113,"menu_item_id":5,"quantity":2},{"id":28114,"menu_item_id":13,"quantity":3}]} 
[2026-03-11 23:32:13] local.INFO: PosOrderController::update - Item changes check {"order_id":5854,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["3|1|","400|300|","62|1|","65|1|","51|2|","61|1|","56|1|","5|2|","13|3|"],"new_items_map_keys":["3|1|","400|300|","62|1|","65|1|","51|2|","61|1|","56|1|","5|2|","13|3|"]} 
[2026-03-11 23:32:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5854,"order_number":"AZS-110326-001"} 
[2026-03-11 23:32:13] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5854,"order_number":"AZS-110326-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5251,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-11 23:32:13","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 23:32:13"} 
[2026-03-11 23:32:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5854,"order_number":"AZS-110326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 23:32:13"} 
[2026-03-11 23:32:13] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5854,"order_number":"AZS-110326-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5251.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-11 23:32:13","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5251,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5251.00","database_verification_match":true,"timestamp":"2026-03-11 23:32:13"} 
[2026-03-11 23:32:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T11:32:18.254Z","date_to":"2026-03-11T23:32:18.254Z","per_page":"100"} 
[2026-03-11 23:32:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T11:32:18.239Z","date_to":"2026-03-11T23:32:18.239Z","per_page":"100"} 
[2026-03-11 23:32:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024","AZS-110326-023","AZS-110326-022","AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":2,"unique_order_numbers":27} 
[2026-03-11 23:32:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024","AZS-110326-023","AZS-110326-022","AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":2,"unique_order_numbers":27} 
[2026-03-11 23:32:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T11:32:18.239Z","date_to":"2026-03-11T23:32:18.239Z","per_page":"100"} 
[2026-03-11 23:32:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024","AZS-110326-023","AZS-110326-022","AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":2,"unique_order_numbers":27} 
[2026-03-11 23:32:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T11:32:27.872Z","date_to":"2026-03-11T23:32:27.872Z","per_page":"100"} 
[2026-03-11 23:32:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024","AZS-110326-023","AZS-110326-022","AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":2,"unique_order_numbers":27} 
[2026-03-11 23:32:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T11:32:27.861Z","date_to":"2026-03-11T23:32:27.861Z","per_page":"100"} 
[2026-03-11 23:32:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024","AZS-110326-023","AZS-110326-022","AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":2,"unique_order_numbers":27} 
[2026-03-11 23:32:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T11:32:27.861Z","date_to":"2026-03-11T23:32:27.861Z","per_page":"100"} 
[2026-03-11 23:32:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024","AZS-110326-023","AZS-110326-022","AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":2,"unique_order_numbers":27} 
[2026-03-11 23:52:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":5876,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":28242},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":28243},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28244},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28245},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28246},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28242,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":28243,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":28244,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28245,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28246,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-11 23:52:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5876,"items_count":6} 
[2026-03-11 23:52:49] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[28241],"items":[{"id":28242,"menu_item_id":62,"quantity":1},{"id":28243,"menu_item_id":396,"quantity":3},{"id":28244,"menu_item_id":61,"quantity":1},{"id":28245,"menu_item_id":56,"quantity":1},{"id":28246,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1}]} 
[2026-03-11 23:52:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5876,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["106|1|","62|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["62|1|","396|3|","61|1|","56|1|","5|1|","105|1|"]} 
[2026-03-11 23:52:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5876,"order_number":"AZS-110326-027"} 
[2026-03-11 23:52:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-027","replaced_order_id":5876} 
[2026-03-11 23:52:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5877,"items_count":6,"items":[{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"}]} 
[2026-03-11 23:52:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5877,"item_index":0,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5877}} 
[2026-03-11 23:52:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5877,"item_index":0,"menu_item_id":62} 
[2026-03-11 23:52:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5877,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5877}} 
[2026-03-11 23:52:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5877,"item_index":1,"menu_item_id":396} 
[2026-03-11 23:52:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5877,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5877}} 
[2026-03-11 23:52:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5877,"item_index":2,"menu_item_id":61} 
[2026-03-11 23:52:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5877,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5877}} 
[2026-03-11 23:52:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5877,"item_index":3,"menu_item_id":56} 
[2026-03-11 23:52:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5877,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5877}} 
[2026-03-11 23:52:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5877,"item_index":4,"menu_item_id":5} 
[2026-03-11 23:52:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5877,"item_index":5,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5877}} 
[2026-03-11 23:52:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5877,"item_index":5,"menu_item_id":105} 
[2026-03-11 23:52:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5876,"new_order_id":5877,"order_number":"AZS-110326-027"} 
[2026-03-11 23:53:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5877,"item_index":0,"item_id":28242} 
[2026-03-11 23:53:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5877,"item_index":1,"item_id":28243} 
[2026-03-11 23:53:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5877,"item_index":2,"item_id":28244} 
[2026-03-11 23:53:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5877,"item_index":3,"item_id":28245} 
[2026-03-11 23:53:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5877,"item_index":4,"item_id":28246} 
[2026-03-11 23:53:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":6,"order_id":5877,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":28242},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":28243},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28244},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28245},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28246},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-11 23:53:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5877,"items_count":7} 
[2026-03-11 23:53:36] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":6,"items_to_remove":[28247,28248,28249,28250,28251,28252],"items":[{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-11 23:53:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5877,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["62|1|","396|3|","61|1|","56|1|","5|1|","105|1|"],"new_items_map_keys":["62|1|","396|3|","61|1|","56|1|","5|1|","105|1|","2|2|"]} 
[2026-03-11 23:53:36] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5877,"order_number":"AZS-110326-027"} 
[2026-03-11 23:53:36] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-027","replaced_order_id":5877} 
[2026-03-11 23:53:36] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5878,"items_count":7,"items":[{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-11 23:53:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5878,"item_index":0,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5878}} 
[2026-03-11 23:53:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5878,"item_index":0,"menu_item_id":62} 
[2026-03-11 23:53:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5878,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5878}} 
[2026-03-11 23:53:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5878,"item_index":1,"menu_item_id":396} 
[2026-03-11 23:53:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5878,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5878}} 
[2026-03-11 23:53:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5878,"item_index":2,"menu_item_id":61} 
[2026-03-11 23:53:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5878,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5878}} 
[2026-03-11 23:53:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5878,"item_index":3,"menu_item_id":56} 
[2026-03-11 23:53:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5878,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5878}} 
[2026-03-11 23:53:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5878,"item_index":4,"menu_item_id":5} 
[2026-03-11 23:53:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5878,"item_index":5,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5878}} 
[2026-03-11 23:53:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5878,"item_index":5,"menu_item_id":105} 
[2026-03-11 23:53:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5878,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5878}} 
[2026-03-11 23:53:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5878,"item_index":6,"menu_item_id":2} 
[2026-03-11 23:53:36] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5877,"new_order_id":5878,"order_number":"AZS-110326-027"} 
[2026-03-11 23:54:02] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5875,"order_number":"AZS-110326-026","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":820,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 23:54:02"} 
[2026-03-11 23:54:02] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5875,"order_number":"AZS-110326-026","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":820,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-11 23:54:02"} 
[2026-03-11 23:54:02] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5875,"order_number":"AZS-110326-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":820,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 23:54:02"} 
[2026-03-11 23:54:02] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5875,"order_number":"AZS-110326-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":820,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-11 23:54:02"} 
[2026-03-11 23:54:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5875,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":28239},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null,"id":28240}],"validated_items":[{"id":28239,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":28240,"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-11 23:54:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5875,"items_count":2} 
[2026-03-11 23:54:02] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28239,"menu_item_id":411,"quantity":1},{"id":28240,"menu_item_id":412,"quantity":1}]} 
[2026-03-11 23:54:02] local.INFO: PosOrderController::update - Item changes check {"order_id":5875,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","412|1|"],"new_items_map_keys":["411|1|","412|1|"]} 
[2026-03-11 23:54:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5875,"order_number":"AZS-110326-026"} 
[2026-03-11 23:54:02] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5875,"order_number":"AZS-110326-026","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":820,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-11 23:54:02","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-11 23:54:02"} 
[2026-03-11 23:54:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5875,"order_number":"AZS-110326-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-11 23:54:02"} 
[2026-03-11 23:54:02] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5875,"order_number":"AZS-110326-026","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"820.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-11 23:54:02","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":820,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"820.00","database_verification_match":true,"timestamp":"2026-03-11 23:54:02"} 
[2026-03-11 23:57:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5878,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":28253},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28254},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28255},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28256},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28257},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28258},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":28259}],"validated_items":[{"id":28253,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":28254,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":28255,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28256,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28257,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28258,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":28259,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-11 23:57:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5878,"items_count":7} 
[2026-03-11 23:57:36] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28253,"menu_item_id":62,"quantity":1},{"id":28254,"menu_item_id":396,"quantity":3},{"id":28255,"menu_item_id":61,"quantity":1},{"id":28256,"menu_item_id":56,"quantity":1},{"id":28257,"menu_item_id":5,"quantity":1},{"id":28258,"menu_item_id":105,"quantity":1},{"id":28259,"menu_item_id":2,"quantity":2}]} 
[2026-03-11 23:57:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5878,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["62|1|","396|3|","61|1|","56|1|","5|1|","105|1|","2|2|"],"new_items_map_keys":["62|1|","396|3|","61|1|","56|1|","5|1|","105|1|","2|2|"]} 
[2026-03-11 23:57:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5878,"order_number":"AZS-110326-027"} 
[2026-03-11 23:57:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5878,"order_number":"AZS-110326-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-11 23:57:36"} 
[2026-03-12 00:00:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":5878,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":28253},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":28254},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28255},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28257},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":28258},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":28259}],"validated_items":[{"id":28253,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":28254,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":28255,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28257,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":28258,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":28259,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 00:00:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5878,"items_count":6} 
[2026-03-12 00:00:26] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[28256],"items":[{"id":28253,"menu_item_id":62,"quantity":1},{"id":28254,"menu_item_id":396,"quantity":3},{"id":28255,"menu_item_id":61,"quantity":1},{"id":28257,"menu_item_id":5,"quantity":1},{"id":28258,"menu_item_id":105,"quantity":1},{"id":28259,"menu_item_id":2,"quantity":1}]} 
[2026-03-12 00:00:26] local.INFO: PosOrderController::update - Item changes check {"order_id":5878,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["62|1|","396|3|","61|1|","56|1|","5|1|","105|1|","2|2|"],"new_items_map_keys":["62|1|","396|3|","61|1|","5|1|","105|1|","2|1|"]} 
[2026-03-12 00:00:26] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5878,"order_number":"AZS-110326-027"} 
[2026-03-12 00:00:26] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-110326-027","replaced_order_id":5878} 
[2026-03-12 00:00:26] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5879,"items_count":6,"items":[{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-12 00:00:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5879,"item_index":0,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5879}} 
[2026-03-12 00:00:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5879,"item_index":0,"menu_item_id":62} 
[2026-03-12 00:00:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5879,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5879}} 
[2026-03-12 00:00:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5879,"item_index":1,"menu_item_id":396} 
[2026-03-12 00:00:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5879,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5879}} 
[2026-03-12 00:00:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5879,"item_index":2,"menu_item_id":61} 
[2026-03-12 00:00:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5879,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5879}} 
[2026-03-12 00:00:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5879,"item_index":3,"menu_item_id":5} 
[2026-03-12 00:00:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5879,"item_index":4,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5879}} 
[2026-03-12 00:00:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5879,"item_index":4,"menu_item_id":105} 
[2026-03-12 00:00:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5879,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5879}} 
[2026-03-12 00:00:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5879,"item_index":5,"menu_item_id":2} 
[2026-03-12 00:00:26] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5878,"new_order_id":5879,"order_number":"AZS-110326-027"} 
[2026-03-12 00:00:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5879,"item_index":0,"item_id":28253} 
[2026-03-12 00:00:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5879,"item_index":1,"item_id":28254} 
[2026-03-12 00:00:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5879,"item_index":2,"item_id":28255} 
[2026-03-12 00:00:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5879,"item_index":3,"item_id":28257} 
[2026-03-12 00:00:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5879,"item_index":4,"item_id":28258} 
[2026-03-12 00:00:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5879,"item_index":5,"item_id":28259} 
[2026-03-12 00:00:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":28253},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28254},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28255},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28257},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28258},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28259}],"validated_items":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-12 00:00:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5879,"items_count":6} 
[2026-03-12 00:00:32] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[28260,28261,28262,28263,28264,28265],"items":[{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-12 00:00:32] local.INFO: PosOrderController::update - Item changes check {"order_id":5879,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["62|1|","396|3|","61|1|","5|1|","105|1|","2|1|"],"new_items_map_keys":["62|1|","396|3|","61|1|","5|1|","105|1|","2|1|"]} 
[2026-03-12 00:00:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5879,"order_number":"AZS-110326-027"} 
[2026-03-12 00:00:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5879,"order_number":"AZS-110326-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 00:00:32"} 
[2026-03-12 00:01:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5879,"item_index":0,"item_id":28253} 
[2026-03-12 00:01:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5879,"item_index":1,"item_id":28254} 
[2026-03-12 00:01:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5879,"item_index":2,"item_id":28255} 
[2026-03-12 00:01:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5879,"item_index":3,"item_id":28257} 
[2026-03-12 00:01:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5879,"item_index":4,"item_id":28258} 
[2026-03-12 00:01:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5879,"item_index":5,"item_id":28259} 
[2026-03-12 00:01:14] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5879,"order_number":"AZS-110326-027","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4719,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 00:01:14"} 
[2026-03-12 00:01:14] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5879,"order_number":"AZS-110326-027","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4719,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 00:01:14"} 
[2026-03-12 00:01:14] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5879,"order_number":"AZS-110326-027","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4719,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 00:01:14"} 
[2026-03-12 00:01:14] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5879,"order_number":"AZS-110326-027","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4719,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 00:01:14"} 
[2026-03-12 00:01:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":28253},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28254},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28255},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28257},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28258},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28259}],"validated_items":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-12 00:01:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5879,"items_count":6} 
[2026-03-12 00:01:14] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[28260,28261,28262,28263,28264,28265],"items":[{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-12 00:01:14] local.INFO: PosOrderController::update - Item changes check {"order_id":5879,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["62|1|","396|3|","61|1|","5|1|","105|1|","2|1|"],"new_items_map_keys":["62|1|","396|3|","61|1|","5|1|","105|1|","2|1|"]} 
[2026-03-12 00:01:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5879,"order_number":"AZS-110326-027"} 
[2026-03-12 00:01:14] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5879,"order_number":"AZS-110326-027","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4719,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-12 00:01:14","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 00:01:14"} 
[2026-03-12 00:01:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5879,"order_number":"AZS-110326-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 00:01:14"} 
[2026-03-12 00:01:14] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5879,"order_number":"AZS-110326-027","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4719.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-12 00:01:14","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4719,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4719.00","database_verification_match":true,"timestamp":"2026-03-12 00:01:14"} 
[2026-03-12 00:01:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T12:01:36.990Z","date_to":"2026-03-12T00:01:36.990Z","per_page":"100"} 
[2026-03-12 00:01:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024","AZS-110326-023","AZS-110326-022","AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":27,"unpaid_count":0,"unique_order_numbers":27} 
[2026-03-12 00:01:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T12:01:36.976Z","date_to":"2026-03-12T00:01:36.976Z","per_page":"100"} 
[2026-03-12 00:01:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024","AZS-110326-023","AZS-110326-022","AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":27,"unpaid_count":0,"unique_order_numbers":27} 
[2026-03-12 00:01:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T12:01:36.976Z","date_to":"2026-03-12T00:01:36.976Z","per_page":"100"} 
[2026-03-12 00:01:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024","AZS-110326-023","AZS-110326-022","AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":27,"unpaid_count":0,"unique_order_numbers":27} 
[2026-03-12 05:48:28] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T17:48:41.595Z","date_to":"2026-03-12T05:48:41.595Z","per_page":"100"} 
[2026-03-12 05:48:28] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T17:48:41.574Z","date_to":"2026-03-12T05:48:41.574Z","per_page":"100"} 
[2026-03-12 05:48:28] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024","AZS-110326-023","AZS-110326-022"],"order_statuses":["paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-12 05:48:28] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024","AZS-110326-023","AZS-110326-022"],"order_statuses":["paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-12 05:48:29] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T05:48:43.886Z","date_to":"2026-03-12T05:48:43.886Z","per_page":"100"} 
[2026-03-12 05:48:29] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024","AZS-110326-023","AZS-110326-022","AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":27,"unpaid_count":0,"unique_order_numbers":27} 
[2026-03-12 05:48:29] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T17:48:41.574Z","date_to":"2026-03-12T05:48:41.574Z","per_page":"100"} 
[2026-03-12 05:48:29] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024","AZS-110326-023","AZS-110326-022"],"order_statuses":["paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-12 06:14:11] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T18:14:25.191Z","date_to":"2026-03-12T06:14:25.191Z","per_page":"100"} 
[2026-03-12 06:14:11] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T18:14:25.181Z","date_to":"2026-03-12T06:14:25.181Z","per_page":"100"} 
[2026-03-12 06:14:11] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024","AZS-110326-023"],"order_statuses":["paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":0,"unique_order_numbers":5} 
[2026-03-12 06:14:11] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024","AZS-110326-023"],"order_statuses":["paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":0,"unique_order_numbers":5} 
[2026-03-12 06:14:12] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T18:14:25.181Z","date_to":"2026-03-12T06:14:25.181Z","per_page":"100"} 
[2026-03-12 06:14:12] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024","AZS-110326-023"],"order_statuses":["paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":0,"unique_order_numbers":5} 
[2026-03-12 06:14:16] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T06:14:30.827Z","date_to":"2026-03-12T06:14:30.827Z","per_page":"100"} 
[2026-03-12 06:14:16] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024","AZS-110326-023","AZS-110326-022","AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":27,"unpaid_count":0,"unique_order_numbers":27} 
[2026-03-12 06:14:20] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T18:14:35.467Z","date_to":"2026-03-12T06:14:35.467Z","per_page":"100"} 
[2026-03-12 06:14:20] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024","AZS-110326-023"],"order_statuses":["paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":0,"unique_order_numbers":5} 
[2026-03-12 06:14:23] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T18:14:38.091Z","date_to":"2026-03-12T06:14:38.091Z","per_page":"100"} 
[2026-03-12 06:14:23] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024","AZS-110326-023"],"order_statuses":["paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":0,"unique_order_numbers":5} 
[2026-03-12 06:14:24] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T18:14:39.098Z","date_to":"2026-03-12T06:14:39.098Z","per_page":"100"} 
[2026-03-12 06:14:24] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024","AZS-110326-023"],"order_statuses":["paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":0,"unique_order_numbers":5} 
[2026-03-12 06:14:37] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T06:14:50.498Z","date_to":"2026-03-12T06:14:50.498Z","per_page":"100"} 
[2026-03-12 06:14:37] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024","AZS-110326-023","AZS-110326-022","AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":27,"unpaid_count":0,"unique_order_numbers":27} 
[2026-03-12 06:28:01] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T18:27:59.422Z","date_to":"2026-03-12T06:27:59.422Z","per_page":"100"} 
[2026-03-12 06:28:01] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":4,"count":4,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024"],"order_statuses":["paid","paid","paid","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":0,"unique_order_numbers":4} 
[2026-03-12 06:28:01] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T18:27:59.345Z","date_to":"2026-03-12T06:27:59.345Z","per_page":"100"} 
[2026-03-12 06:28:01] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":4,"count":4,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024"],"order_statuses":["paid","paid","paid","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":0,"unique_order_numbers":4} 
[2026-03-12 06:28:02] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T18:27:59.345Z","date_to":"2026-03-12T06:27:59.345Z","per_page":"100"} 
[2026-03-12 06:28:02] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":4,"count":4,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024"],"order_statuses":["paid","paid","paid","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":0,"unique_order_numbers":4} 
[2026-03-12 06:28:07] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T06:28:06.407Z","date_to":"2026-03-12T06:28:06.407Z","per_page":"100"} 
[2026-03-12 06:28:07] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024","AZS-110326-023","AZS-110326-022","AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":27,"unpaid_count":0,"unique_order_numbers":27} 
[2026-03-12 06:28:26] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-11T06:28:06.407Z","date_to":"2026-03-12T06:28:06.407Z","per_page":"100"} 
[2026-03-12 06:28:26] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-110326-027","AZS-110326-026","AZS-110326-025","AZS-110326-024","AZS-110326-023","AZS-110326-022","AZS-110326-021","AZS-110326-020","AZS-110326-019","AZS-110326-018","AZS-110326-017","AZS-110326-016","AZS-110326-015","AZS-110326-014","AZS-110326-013","AZS-110326-012","AZS-110326-011","AZS-110326-010","AZS-110326-009","AZS-110326-008","AZS-110326-007","AZS-110326-006","AZS-110326-005","AZS-110326-004","AZS-110326-003","AZS-110326-002","AZS-110326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":27,"unpaid_count":0,"unique_order_numbers":27} 
[2026-03-12 07:16:28] local.INFO: Login attempt {"email":"mr@pos.com","ip":"182.176.113.26"} 
[2026-03-12 09:30:13] local.INFO: Login attempt {"email":"mr@pos.com","ip":"182.176.113.26"} 
[2026-03-12 09:31:53] local.INFO: Login attempt {"email":"inventory@pos.com","ip":"182.176.113.26"} 
[2026-03-12 09:32:06] local.INFO: Login attempt {"email":"inventory@pos.com","ip":"182.176.113.26"} 
[2026-03-12 09:33:51] local.INFO: Login attempt {"email":"inventory@pos.com","ip":"182.176.113.26"} 
[2026-03-12 12:52:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T00:52:26.474Z","date_to":"2026-03-12T12:52:26.474Z","per_page":"100"} 
[2026-03-12 12:52:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T00:52:26.459Z","date_to":"2026-03-12T12:52:26.459Z","per_page":"100"} 
[2026-03-12 12:52:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":3,"unique_order_numbers":3} 
[2026-03-12 12:52:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":3,"unique_order_numbers":3} 
[2026-03-12 12:52:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T00:52:26.459Z","date_to":"2026-03-12T12:52:26.459Z","per_page":"100"} 
[2026-03-12 12:52:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":3,"unique_order_numbers":3} 
[2026-03-12 12:55:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5880,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":28266},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28266,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 12:55:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5880,"items_count":8} 
[2026-03-12 12:55:16] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28266,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-12 12:55:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5880,"has_item_changes":true,"old_items_count":1,"new_items_count":8,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","105|1|","62|1|","65|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-12 12:55:16] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5880,"order_number":"AZS-120326-001"} 
[2026-03-12 12:55:16] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-001","replaced_order_id":5880} 
[2026-03-12 12:55:16] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5883,"items_count":8,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-12 12:55:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5883,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5883}} 
[2026-03-12 12:55:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5883,"item_index":0,"menu_item_id":417} 
[2026-03-12 12:55:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5883,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5883}} 
[2026-03-12 12:55:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5883,"item_index":1,"menu_item_id":105} 
[2026-03-12 12:55:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5883,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5883}} 
[2026-03-12 12:55:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5883,"item_index":2,"menu_item_id":62} 
[2026-03-12 12:55:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5883,"item_index":3,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5883}} 
[2026-03-12 12:55:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5883,"item_index":3,"menu_item_id":65} 
[2026-03-12 12:55:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5883,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5883}} 
[2026-03-12 12:55:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5883,"item_index":4,"menu_item_id":396} 
[2026-03-12 12:55:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5883,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5883}} 
[2026-03-12 12:55:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5883,"item_index":5,"menu_item_id":61} 
[2026-03-12 12:55:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5883,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5883}} 
[2026-03-12 12:55:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5883,"item_index":6,"menu_item_id":56} 
[2026-03-12 12:55:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5883,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5883}} 
[2026-03-12 12:55:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5883,"item_index":7,"menu_item_id":5} 
[2026-03-12 12:55:16] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5880,"new_order_id":5883,"order_number":"AZS-120326-001"} 
[2026-03-12 12:55:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T00:55:31.379Z","date_to":"2026-03-12T12:55:31.379Z","per_page":"100"} 
[2026-03-12 12:55:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":3,"unique_order_numbers":3} 
[2026-03-12 12:55:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T00:55:31.352Z","date_to":"2026-03-12T12:55:31.352Z","per_page":"100"} 
[2026-03-12 12:55:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":3,"unique_order_numbers":3} 
[2026-03-12 12:55:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T00:55:31.352Z","date_to":"2026-03-12T12:55:31.352Z","per_page":"100"} 
[2026-03-12 12:55:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":3,"unique_order_numbers":3} 
[2026-03-12 13:00:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5881,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":28267},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":28267,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-12 13:00:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5881,"items_count":3} 
[2026-03-12 13:00:10] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28267,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":55,"quantity":2}]} 
[2026-03-12 13:00:10] local.INFO: PosOrderController::update - Item changes check {"order_id":5881,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","64|1|","55|2|"]} 
[2026-03-12 13:00:10] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5881,"order_number":"AZS-120326-002"} 
[2026-03-12 13:00:10] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-002","replaced_order_id":5881} 
[2026-03-12 13:00:10] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5884,"items_count":3,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":55,"quantity":2,"price":"159.00"}]} 
[2026-03-12 13:00:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5884,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5884}} 
[2026-03-12 13:00:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5884,"item_index":0,"menu_item_id":417} 
[2026-03-12 13:00:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5884,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5884}} 
[2026-03-12 13:00:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5884,"item_index":1,"menu_item_id":64} 
[2026-03-12 13:00:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5884,"item_index":2,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5884}} 
[2026-03-12 13:00:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5884,"item_index":2,"menu_item_id":55} 
[2026-03-12 13:00:10] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5881,"new_order_id":5884,"order_number":"AZS-120326-002"} 
[2026-03-12 13:00:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5884,"item_index":0,"item_id":28267} 
[2026-03-12 13:00:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":5884,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":28267},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-12 13:00:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5884,"items_count":3} 
[2026-03-12 13:00:22] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[28278,28279,28280],"items":[{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":55,"quantity":2}]} 
[2026-03-12 13:00:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5884,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["417|1|","64|1|","55|2|"],"new_items_map_keys":["417|1|","64|1|","55|2|"]} 
[2026-03-12 13:00:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5884,"order_number":"AZS-120326-002"} 
[2026-03-12 13:00:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5884,"order_number":"AZS-120326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-12 13:00:22"} 
[2026-03-12 13:16:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5882,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":28268},{"menu_item_id":52,"quantity":5,"discount_percent":0,"notes":null,"id":28269},{"menu_item_id":418,"quantity":150,"discount_percent":0,"notes":null}],"validated_items":[{"id":28268,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":28269,"menu_item_id":52,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":418,"quantity":150,"discount_percent":0,"notes":null}]} 
[2026-03-12 13:16:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5882,"items_count":3} 
[2026-03-12 13:16:51] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28268,"menu_item_id":98,"quantity":1},{"id":28269,"menu_item_id":52,"quantity":5},{"id":null,"menu_item_id":418,"quantity":150}]} 
[2026-03-12 13:16:51] local.INFO: PosOrderController::update - Item changes check {"order_id":5882,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["98|1|","52|5|"],"new_items_map_keys":["98|1|","52|5|","418|150|"]} 
[2026-03-12 13:16:51] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5882,"order_number":"AZS-120326-003"} 
[2026-03-12 13:16:51] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-003","replaced_order_id":5882} 
[2026-03-12 13:16:51] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5887,"items_count":3,"items":[{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":52,"quantity":5,"price":"70.00"},{"menu_item_id":418,"quantity":150,"price":"1.00"}]} 
[2026-03-12 13:16:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5887,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5887}} 
[2026-03-12 13:16:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5887,"item_index":0,"menu_item_id":98} 
[2026-03-12 13:16:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5887,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":5,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":350.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5887}} 
[2026-03-12 13:16:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5887,"item_index":1,"menu_item_id":52} 
[2026-03-12 13:16:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5887,"item_index":2,"item_data":{"menu_item_id":418,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Pakoray","quantity":150,"price":"1.00","discount_percent":0.0,"discount_amount":0.0,"total":150.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5887}} 
[2026-03-12 13:16:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5887,"item_index":2,"menu_item_id":418} 
[2026-03-12 13:16:51] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5882,"new_order_id":5887,"order_number":"AZS-120326-003"} 
[2026-03-12 13:31:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5887,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":28283},{"menu_item_id":52,"quantity":5,"discount_percent":0,"notes":null,"id":28284},{"menu_item_id":418,"quantity":150,"discount_percent":0,"notes":null,"id":28285},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":28283,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":28284,"menu_item_id":52,"quantity":5,"discount_percent":0,"notes":null},{"id":28285,"menu_item_id":418,"quantity":150,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-12 13:31:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5887,"items_count":4} 
[2026-03-12 13:31:50] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28283,"menu_item_id":98,"quantity":1},{"id":28284,"menu_item_id":52,"quantity":5},{"id":28285,"menu_item_id":418,"quantity":150},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-03-12 13:31:50] local.INFO: PosOrderController::update - Item changes check {"order_id":5887,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["98|1|","52|5|","418|150|"],"new_items_map_keys":["98|1|","52|5|","418|150|","2|3|"]} 
[2026-03-12 13:31:50] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5887,"order_number":"AZS-120326-003"} 
[2026-03-12 13:31:50] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-003","replaced_order_id":5887} 
[2026-03-12 13:31:50] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5889,"items_count":4,"items":[{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":52,"quantity":5,"price":"70.00"},{"menu_item_id":418,"quantity":150,"price":"1.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"}]} 
[2026-03-12 13:31:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5889,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5889}} 
[2026-03-12 13:31:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5889,"item_index":0,"menu_item_id":98} 
[2026-03-12 13:31:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5889,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":5,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":350.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5889}} 
[2026-03-12 13:31:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5889,"item_index":1,"menu_item_id":52} 
[2026-03-12 13:31:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5889,"item_index":2,"item_data":{"menu_item_id":418,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Pakoray","quantity":150,"price":"1.00","discount_percent":0.0,"discount_amount":0.0,"total":150.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5889}} 
[2026-03-12 13:31:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5889,"item_index":2,"menu_item_id":418} 
[2026-03-12 13:31:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5889,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5889}} 
[2026-03-12 13:31:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5889,"item_index":3,"menu_item_id":2} 
[2026-03-12 13:31:50] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5887,"new_order_id":5889,"order_number":"AZS-120326-003"} 
[2026-03-12 13:43:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5889,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":28290},{"menu_item_id":52,"quantity":5,"discount_percent":0,"notes":null,"id":28291},{"menu_item_id":418,"quantity":150,"discount_percent":0,"notes":null,"id":28292},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":28293}],"validated_items":[{"id":28290,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":28291,"menu_item_id":52,"quantity":5,"discount_percent":0,"notes":null},{"id":28292,"menu_item_id":418,"quantity":150,"discount_percent":0,"notes":null},{"id":28293,"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-12 13:43:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5889,"items_count":4} 
[2026-03-12 13:43:04] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28290,"menu_item_id":98,"quantity":1},{"id":28291,"menu_item_id":52,"quantity":5},{"id":28292,"menu_item_id":418,"quantity":150},{"id":28293,"menu_item_id":2,"quantity":3}]} 
[2026-03-12 13:43:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5889,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["98|1|","52|5|","418|150|","2|3|"],"new_items_map_keys":["98|1|","52|5|","418|150|","2|3|"]} 
[2026-03-12 13:43:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5889,"order_number":"AZS-120326-003"} 
[2026-03-12 13:43:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5889,"order_number":"AZS-120326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-12 13:43:04"} 
[2026-03-12 13:43:19] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5890,"order_number":"AZS-120326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 13:43:19"} 
[2026-03-12 13:43:19] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5890,"order_number":"AZS-120326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 13:43:19"} 
[2026-03-12 13:43:19] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5890,"order_number":"AZS-120326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 13:43:19"} 
[2026-03-12 13:43:19] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5890,"order_number":"AZS-120326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 13:43:19"} 
[2026-03-12 13:43:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5890,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":418,"quantity":100,"price":1,"discount_percent":0,"notes":null,"id":28294}],"validated_items":[{"id":28294,"menu_item_id":418,"quantity":100,"price":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 13:43:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5890,"items_count":1} 
[2026-03-12 13:43:19] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28294,"menu_item_id":418,"quantity":100}]} 
[2026-03-12 13:43:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5890,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["418|100|"],"new_items_map_keys":["418|100|"]} 
[2026-03-12 13:43:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5890,"order_number":"AZS-120326-007"} 
[2026-03-12 13:43:19] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5890,"order_number":"AZS-120326-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-12 13:43:19","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 13:43:19"} 
[2026-03-12 13:43:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5890,"order_number":"AZS-120326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 13:43:19"} 
[2026-03-12 13:43:19] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5890,"order_number":"AZS-120326-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-12 13:43:19","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"100.00","database_verification_match":true,"timestamp":"2026-03-12 13:43:19"} 
[2026-03-12 13:43:30] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5891,"order_number":"AZS-120326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 13:43:30"} 
[2026-03-12 13:43:30] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5891,"order_number":"AZS-120326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 13:43:30"} 
[2026-03-12 13:43:30] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5891,"order_number":"AZS-120326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 13:43:30"} 
[2026-03-12 13:43:30] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5891,"order_number":"AZS-120326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 13:43:30"} 
[2026-03-12 13:43:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5891,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":419,"quantity":1,"price":60,"discount_percent":0,"notes":null,"id":28295},{"menu_item_id":418,"quantity":40,"price":1,"discount_percent":0,"notes":null,"id":28296}],"validated_items":[{"id":28295,"menu_item_id":419,"quantity":1,"price":60,"discount_percent":0,"notes":null},{"id":28296,"menu_item_id":418,"quantity":40,"price":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 13:43:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5891,"items_count":2} 
[2026-03-12 13:43:30] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28295,"menu_item_id":419,"quantity":1},{"id":28296,"menu_item_id":418,"quantity":40}]} 
[2026-03-12 13:43:30] local.INFO: PosOrderController::update - Item changes check {"order_id":5891,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["419|1|","418|40|"],"new_items_map_keys":["419|1|","418|40|"]} 
[2026-03-12 13:43:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5891,"order_number":"AZS-120326-008"} 
[2026-03-12 13:43:30] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5891,"order_number":"AZS-120326-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-12 13:43:30","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 13:43:30"} 
[2026-03-12 13:43:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5891,"order_number":"AZS-120326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 13:43:30"} 
[2026-03-12 13:43:30] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5891,"order_number":"AZS-120326-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-12 13:43:30","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"100.00","database_verification_match":true,"timestamp":"2026-03-12 13:43:30"} 
[2026-03-12 13:43:41] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5892,"order_number":"AZS-120326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":50,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 13:43:41"} 
[2026-03-12 13:43:41] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5892,"order_number":"AZS-120326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":50,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 13:43:41"} 
[2026-03-12 13:43:41] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5892,"order_number":"AZS-120326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":50,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 13:43:41"} 
[2026-03-12 13:43:41] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5892,"order_number":"AZS-120326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":50,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 13:43:41"} 
[2026-03-12 13:43:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5892,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null,"id":28297}],"validated_items":[{"id":28297,"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-12 13:43:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5892,"items_count":1} 
[2026-03-12 13:43:41] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28297,"menu_item_id":286,"quantity":3}]} 
[2026-03-12 13:43:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5892,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["286|3|"],"new_items_map_keys":["286|3|"]} 
[2026-03-12 13:43:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5892,"order_number":"AZS-120326-009"} 
[2026-03-12 13:43:41] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5892,"order_number":"AZS-120326-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":50,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-12 13:43:41","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 13:43:41"} 
[2026-03-12 13:43:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5892,"order_number":"AZS-120326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 13:43:41"} 
[2026-03-12 13:43:41] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5892,"order_number":"AZS-120326-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"50.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-12 13:43:41","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":50,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"50.00","database_verification_match":true,"timestamp":"2026-03-12 13:43:41"} 
[2026-03-12 13:45:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5884,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":28278},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":28279},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null,"id":28280},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28278,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":28279,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":28280,"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 13:45:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5884,"items_count":4} 
[2026-03-12 13:45:05] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28278,"menu_item_id":417,"quantity":1},{"id":28279,"menu_item_id":64,"quantity":1},{"id":28280,"menu_item_id":55,"quantity":2},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-12 13:45:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5884,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["417|1|","64|1|","55|2|"],"new_items_map_keys":["417|1|","64|1|","55|2|","2|1|"]} 
[2026-03-12 13:45:05] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5884,"order_number":"AZS-120326-002"} 
[2026-03-12 13:45:05] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-002","replaced_order_id":5884} 
[2026-03-12 13:45:05] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5893,"items_count":4,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-12 13:45:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5893,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5893}} 
[2026-03-12 13:45:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5893,"item_index":0,"menu_item_id":417} 
[2026-03-12 13:45:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5893,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5893}} 
[2026-03-12 13:45:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5893,"item_index":1,"menu_item_id":64} 
[2026-03-12 13:45:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5893,"item_index":2,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5893}} 
[2026-03-12 13:45:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5893,"item_index":2,"menu_item_id":55} 
[2026-03-12 13:45:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5893,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5893}} 
[2026-03-12 13:45:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5893,"item_index":3,"menu_item_id":2} 
[2026-03-12 13:45:05] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5884,"new_order_id":5893,"order_number":"AZS-120326-002"} 
[2026-03-12 13:49:19] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5885,"order_number":"AZS-120326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 13:49:19"} 
[2026-03-12 13:49:19] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5885,"order_number":"AZS-120326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 13:49:19"} 
[2026-03-12 13:49:19] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5885,"order_number":"AZS-120326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 13:49:19"} 
[2026-03-12 13:49:19] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5885,"order_number":"AZS-120326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 13:49:19"} 
[2026-03-12 13:49:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5885,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28281}],"validated_items":[{"id":28281,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-12 13:49:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5885,"items_count":1} 
[2026-03-12 13:49:19] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28281,"menu_item_id":417,"quantity":1}]} 
[2026-03-12 13:49:19] local.INFO: PosOrderController::update - Item changes check {"order_id":5885,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-12 13:49:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5885,"order_number":"AZS-120326-004"} 
[2026-03-12 13:49:19] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5885,"order_number":"AZS-120326-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-12 13:49:19","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 13:49:19"} 
[2026-03-12 13:49:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5885,"order_number":"AZS-120326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 13:49:19"} 
[2026-03-12 13:49:19] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5885,"order_number":"AZS-120326-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-12 13:49:19","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-12 13:49:19"} 
[2026-03-12 13:49:36] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5886,"order_number":"AZS-120326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 13:49:36"} 
[2026-03-12 13:49:36] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5886,"order_number":"AZS-120326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 13:49:36"} 
[2026-03-12 13:49:36] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5886,"order_number":"AZS-120326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 13:49:36"} 
[2026-03-12 13:49:36] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5886,"order_number":"AZS-120326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 13:49:36"} 
[2026-03-12 13:49:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5886,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28282}],"validated_items":[{"id":28282,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-12 13:49:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5886,"items_count":1} 
[2026-03-12 13:49:36] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28282,"menu_item_id":417,"quantity":1}]} 
[2026-03-12 13:49:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5886,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-12 13:49:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5886,"order_number":"AZS-120326-005"} 
[2026-03-12 13:49:36] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5886,"order_number":"AZS-120326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-12 13:49:36","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 13:49:36"} 
[2026-03-12 13:49:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5886,"order_number":"AZS-120326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 13:49:36"} 
[2026-03-12 13:49:36] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5886,"order_number":"AZS-120326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-12 13:49:36","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-12 13:49:36"} 
[2026-03-12 13:52:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":5888,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":28286},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":28287},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28288},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28286,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":28287,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":28288,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 13:52:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5888,"items_count":4} 
[2026-03-12 13:52:22] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[28289],"items":[{"id":28286,"menu_item_id":97,"quantity":1},{"id":28287,"menu_item_id":396,"quantity":3},{"id":28288,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-12 13:52:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5888,"has_item_changes":true,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["97|1|","396|3|","61|1|","5|1|"],"new_items_map_keys":["97|1|","396|3|","61|1|","3|1|"]} 
[2026-03-12 13:52:22] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5888,"order_number":"AZS-120326-006"} 
[2026-03-12 13:52:22] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-006","replaced_order_id":5888} 
[2026-03-12 13:52:22] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5894,"items_count":4,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-12 13:52:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5894,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5894}} 
[2026-03-12 13:52:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5894,"item_index":0,"menu_item_id":97} 
[2026-03-12 13:52:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5894,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5894}} 
[2026-03-12 13:52:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5894,"item_index":1,"menu_item_id":396} 
[2026-03-12 13:52:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5894,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5894}} 
[2026-03-12 13:52:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5894,"item_index":2,"menu_item_id":61} 
[2026-03-12 13:52:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5894,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5894}} 
[2026-03-12 13:52:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5894,"item_index":3,"menu_item_id":3} 
[2026-03-12 13:52:22] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5888,"new_order_id":5894,"order_number":"AZS-120326-006"} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5883,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":28270},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":28271},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":28272},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":28273},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":28274},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28275},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28276},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28277},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28270,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":28271,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":28272,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":28273,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":28274,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":28275,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28276,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28277,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5883,"items_count":9} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28270,"menu_item_id":417,"quantity":1},{"id":28271,"menu_item_id":105,"quantity":1},{"id":28272,"menu_item_id":62,"quantity":1},{"id":28273,"menu_item_id":65,"quantity":1},{"id":28274,"menu_item_id":396,"quantity":2},{"id":28275,"menu_item_id":61,"quantity":1},{"id":28276,"menu_item_id":56,"quantity":1},{"id":28277,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":29,"quantity":1}]} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5883,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["417|1|","105|1|","62|1|","65|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["417|1|","105|1|","62|1|","65|1|","396|2|","61|1|","56|1|","5|1|","29|1|"]} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5883,"order_number":"AZS-120326-001"} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-001","replaced_order_id":5883} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5895,"items_count":9,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"}]} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5895,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5895}} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5895,"item_index":0,"menu_item_id":417} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5895,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5895}} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5895,"item_index":1,"menu_item_id":105} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5895,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5895}} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5895,"item_index":2,"menu_item_id":62} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5895,"item_index":3,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5895}} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5895,"item_index":3,"menu_item_id":65} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5895,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5895}} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5895,"item_index":4,"menu_item_id":396} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5895,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5895}} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5895,"item_index":5,"menu_item_id":61} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5895,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5895}} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5895,"item_index":6,"menu_item_id":56} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5895,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5895}} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5895,"item_index":7,"menu_item_id":5} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5895,"item_index":8,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5895}} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5895,"item_index":8,"menu_item_id":29} 
[2026-03-12 13:53:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5883,"new_order_id":5895,"order_number":"AZS-120326-001"} 
[2026-03-12 13:54:08] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5895,"item_index":0,"item_id":28270} 
[2026-03-12 13:54:08] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5895,"item_index":1,"item_id":28271} 
[2026-03-12 13:54:08] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5895,"item_index":2,"item_id":28272} 
[2026-03-12 13:54:08] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5895,"item_index":3,"item_id":28273} 
[2026-03-12 13:54:08] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5895,"item_index":4,"item_id":28274} 
[2026-03-12 13:54:08] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5895,"item_index":5,"item_id":28275} 
[2026-03-12 13:54:08] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5895,"item_index":6,"item_id":28276} 
[2026-03-12 13:54:08] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5895,"item_index":7,"item_id":28277} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":9,"order_id":5895,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":28270},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":28271},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":28272},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":28273},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":28274},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28275},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28276},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28277},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5895,"items_count":10} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":9,"items_to_remove":[28306,28307,28308,28309,28310,28311,28312,28313,28314],"items":[{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":29,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Item changes check {"order_id":5895,"has_item_changes":true,"old_items_count":9,"new_items_count":10,"old_items_map_keys":["417|1|","105|1|","62|1|","65|1|","396|2|","61|1|","56|1|","5|1|","29|1|"],"new_items_map_keys":["417|1|","105|1|","62|1|","65|1|","396|2|","61|1|","56|1|","5|1|","29|1|","2|1|"]} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5895,"order_number":"AZS-120326-001"} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-001","replaced_order_id":5895} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5896,"items_count":10,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5896,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5896}} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5896,"item_index":0,"menu_item_id":417} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5896,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5896}} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5896,"item_index":1,"menu_item_id":105} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5896,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5896}} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5896,"item_index":2,"menu_item_id":62} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5896,"item_index":3,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5896}} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5896,"item_index":3,"menu_item_id":65} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5896,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5896}} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5896,"item_index":4,"menu_item_id":396} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5896,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5896}} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5896,"item_index":5,"menu_item_id":61} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5896,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5896}} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5896,"item_index":6,"menu_item_id":56} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5896,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5896}} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5896,"item_index":7,"menu_item_id":5} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5896,"item_index":8,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5896}} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5896,"item_index":8,"menu_item_id":29} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5896,"item_index":9,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5896}} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5896,"item_index":9,"menu_item_id":2} 
[2026-03-12 13:54:08] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5895,"new_order_id":5896,"order_number":"AZS-120326-001"} 
[2026-03-12 13:54:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T01:54:15.810Z","date_to":"2026-03-12T13:54:15.810Z","per_page":"100"} 
[2026-03-12 13:54:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["paid","paid","paid","pending","paid","paid","pending","pending","pending"],"deleted_count":0,"paid_count":5,"unpaid_count":4,"unique_order_numbers":9} 
[2026-03-12 13:54:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T01:54:15.792Z","date_to":"2026-03-12T13:54:15.792Z","per_page":"100"} 
[2026-03-12 13:54:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["paid","paid","paid","pending","paid","paid","pending","pending","pending"],"deleted_count":0,"paid_count":5,"unpaid_count":4,"unique_order_numbers":9} 
[2026-03-12 13:54:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T01:54:15.792Z","date_to":"2026-03-12T13:54:15.792Z","per_page":"100"} 
[2026-03-12 13:54:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["paid","paid","paid","pending","paid","paid","pending","pending","pending"],"deleted_count":0,"paid_count":5,"unpaid_count":4,"unique_order_numbers":9} 
[2026-03-12 13:54:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5889,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28290},{"menu_item_id":52,"quantity":5,"price":70,"discount_percent":0,"notes":null,"id":28291},{"menu_item_id":418,"quantity":150,"price":1,"discount_percent":0,"notes":null,"id":28292},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":28293}],"validated_items":[{"id":28290,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28291,"menu_item_id":52,"quantity":5,"price":70,"discount_percent":0,"notes":null},{"id":28292,"menu_item_id":418,"quantity":150,"price":1,"discount_percent":0,"notes":null},{"id":28293,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-12 13:54:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5889,"items_count":4} 
[2026-03-12 13:54:49] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28290,"menu_item_id":98,"quantity":1},{"id":28291,"menu_item_id":52,"quantity":5},{"id":28292,"menu_item_id":418,"quantity":150},{"id":28293,"menu_item_id":2,"quantity":3}]} 
[2026-03-12 13:54:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5889,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["98|1|","52|5|","418|150|","2|3|"],"new_items_map_keys":["98|1|","52|5|","418|150|","2|3|"]} 
[2026-03-12 13:54:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5889,"order_number":"AZS-120326-003"} 
[2026-03-12 13:54:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5889,"order_number":"AZS-120326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 13:54:49"} 
[2026-03-12 13:55:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5893,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28298},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":28299},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":28300},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28301}],"validated_items":[{"id":28298,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":28299,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":28300,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":28301,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-12 13:55:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5893,"items_count":4} 
[2026-03-12 13:55:44] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28298,"menu_item_id":417,"quantity":1},{"id":28299,"menu_item_id":64,"quantity":1},{"id":28300,"menu_item_id":55,"quantity":2},{"id":28301,"menu_item_id":2,"quantity":1}]} 
[2026-03-12 13:55:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5893,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["417|1|","64|1|","55|2|","2|1|"],"new_items_map_keys":["417|1|","64|1|","55|2|","2|1|"]} 
[2026-03-12 13:55:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5893,"order_number":"AZS-120326-002"} 
[2026-03-12 13:55:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5893,"order_number":"AZS-120326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 13:55:44"} 
[2026-03-12 13:57:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T01:57:20.492Z","date_to":"2026-03-12T13:57:20.492Z","per_page":"100"} 
[2026-03-12 13:57:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["paid","paid","paid","pending","paid","paid","pending","pending","pending"],"deleted_count":0,"paid_count":5,"unpaid_count":4,"unique_order_numbers":9} 
[2026-03-12 13:58:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T01:57:45.174Z","date_to":"2026-03-12T13:57:45.174Z","per_page":"100"} 
[2026-03-12 13:58:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["paid","paid","paid","pending","paid","paid","pending","pending","pending"],"deleted_count":0,"paid_count":5,"unpaid_count":4,"unique_order_numbers":9} 
[2026-03-12 13:58:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T01:57:45.184Z","date_to":"2026-03-12T13:57:45.184Z","per_page":"100"} 
[2026-03-12 13:58:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["paid","paid","paid","pending","paid","paid","pending","pending","pending"],"deleted_count":0,"paid_count":5,"unpaid_count":4,"unique_order_numbers":9} 
[2026-03-12 13:58:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T01:57:45.174Z","date_to":"2026-03-12T13:57:45.174Z","per_page":"100"} 
[2026-03-12 13:58:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["paid","paid","paid","pending","paid","paid","pending","pending","pending"],"deleted_count":0,"paid_count":5,"unpaid_count":4,"unique_order_numbers":9} 
[2026-03-12 14:05:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T02:05:02.067Z","date_to":"2026-03-12T14:05:02.067Z","per_page":"100"} 
[2026-03-12 14:05:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T02:05:02.047Z","date_to":"2026-03-12T14:05:02.047Z","per_page":"100"} 
[2026-03-12 14:05:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","paid","paid","paid","pending","paid","paid","pending","pending","pending"],"deleted_count":0,"paid_count":5,"unpaid_count":5,"unique_order_numbers":10} 
[2026-03-12 14:05:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","paid","paid","paid","pending","paid","paid","pending","pending","pending"],"deleted_count":0,"paid_count":5,"unpaid_count":5,"unique_order_numbers":10} 
[2026-03-12 14:05:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T02:05:02.047Z","date_to":"2026-03-12T14:05:02.047Z","per_page":"100"} 
[2026-03-12 14:05:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","paid","paid","paid","pending","paid","paid","pending","pending","pending"],"deleted_count":0,"paid_count":5,"unpaid_count":5,"unique_order_numbers":10} 
[2026-03-12 14:05:37] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5889,"order_number":"AZS-120326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2193,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 14:05:37"} 
[2026-03-12 14:05:37] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5889,"order_number":"AZS-120326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2193,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 14:05:37"} 
[2026-03-12 14:05:37] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5889,"order_number":"AZS-120326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2193,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 14:05:37"} 
[2026-03-12 14:05:37] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5889,"order_number":"AZS-120326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2193,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 14:05:37"} 
[2026-03-12 14:05:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5889,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28290},{"menu_item_id":52,"quantity":5,"price":70,"discount_percent":0,"notes":null,"id":28291},{"menu_item_id":418,"quantity":150,"price":1,"discount_percent":0,"notes":null,"id":28292},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":28293}],"validated_items":[{"id":28290,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28291,"menu_item_id":52,"quantity":5,"price":70,"discount_percent":0,"notes":null},{"id":28292,"menu_item_id":418,"quantity":150,"price":1,"discount_percent":0,"notes":null},{"id":28293,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-12 14:05:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5889,"items_count":4} 
[2026-03-12 14:05:37] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28290,"menu_item_id":98,"quantity":1},{"id":28291,"menu_item_id":52,"quantity":5},{"id":28292,"menu_item_id":418,"quantity":150},{"id":28293,"menu_item_id":2,"quantity":3}]} 
[2026-03-12 14:05:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5889,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["98|1|","52|5|","418|150|","2|3|"],"new_items_map_keys":["98|1|","52|5|","418|150|","2|3|"]} 
[2026-03-12 14:05:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5889,"order_number":"AZS-120326-003"} 
[2026-03-12 14:05:37] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5889,"order_number":"AZS-120326-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2193,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-12 14:05:37","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 14:05:37"} 
[2026-03-12 14:05:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5889,"order_number":"AZS-120326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 14:05:37"} 
[2026-03-12 14:05:37] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5889,"order_number":"AZS-120326-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2193.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-12 14:05:37","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2193,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2193.00","database_verification_match":true,"timestamp":"2026-03-12 14:05:37"} 
[2026-03-12 14:06:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5896,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28315},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28316},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":28317},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":28318},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28319},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28320},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28321},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28322},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":28323},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28324}],"validated_items":[{"id":28315,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":28316,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":28317,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":28318,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":28319,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":28320,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28321,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28322,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28323,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":28324,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-12 14:06:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5896,"items_count":10} 
[2026-03-12 14:06:14] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28315,"menu_item_id":417,"quantity":1},{"id":28316,"menu_item_id":105,"quantity":1},{"id":28317,"menu_item_id":62,"quantity":1},{"id":28318,"menu_item_id":65,"quantity":1},{"id":28319,"menu_item_id":396,"quantity":2},{"id":28320,"menu_item_id":61,"quantity":1},{"id":28321,"menu_item_id":56,"quantity":1},{"id":28322,"menu_item_id":5,"quantity":1},{"id":28323,"menu_item_id":29,"quantity":1},{"id":28324,"menu_item_id":2,"quantity":1}]} 
[2026-03-12 14:06:14] local.INFO: PosOrderController::update - Item changes check {"order_id":5896,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["417|1|","105|1|","62|1|","65|1|","396|2|","61|1|","56|1|","5|1|","29|1|","2|1|"],"new_items_map_keys":["417|1|","105|1|","62|1|","65|1|","396|2|","61|1|","56|1|","5|1|","29|1|","2|1|"]} 
[2026-03-12 14:06:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5896,"order_number":"AZS-120326-001"} 
[2026-03-12 14:06:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5896,"order_number":"AZS-120326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 14:06:14"} 
[2026-03-12 14:07:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5893,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28298},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":28299},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":28300},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28301}],"validated_items":[{"id":28298,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":28299,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":28300,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":28301,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-12 14:07:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5893,"items_count":4} 
[2026-03-12 14:07:20] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28298,"menu_item_id":417,"quantity":1},{"id":28299,"menu_item_id":64,"quantity":1},{"id":28300,"menu_item_id":55,"quantity":2},{"id":28301,"menu_item_id":2,"quantity":1}]} 
[2026-03-12 14:07:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5893,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["417|1|","64|1|","55|2|","2|1|"],"new_items_map_keys":["417|1|","64|1|","55|2|","2|1|"]} 
[2026-03-12 14:07:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5893,"order_number":"AZS-120326-002"} 
[2026-03-12 14:07:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5893,"order_number":"AZS-120326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 14:07:20"} 
[2026-03-12 14:07:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5894,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28302},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28303},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28304},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28305}],"validated_items":[{"id":28302,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":28303,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":28304,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28305,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-12 14:07:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5894,"items_count":4} 
[2026-03-12 14:07:53] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28302,"menu_item_id":97,"quantity":1},{"id":28303,"menu_item_id":396,"quantity":3},{"id":28304,"menu_item_id":61,"quantity":1},{"id":28305,"menu_item_id":3,"quantity":1}]} 
[2026-03-12 14:07:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5894,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["97|1|","396|3|","61|1|","3|1|"],"new_items_map_keys":["97|1|","396|3|","61|1|","3|1|"]} 
[2026-03-12 14:07:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5894,"order_number":"AZS-120326-006"} 
[2026-03-12 14:07:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5894,"order_number":"AZS-120326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 14:07:53"} 
[2026-03-12 14:43:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5897,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":158,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":28325},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28326}],"validated_items":[{"id":28325,"menu_item_id":158,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":28326,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-12 14:43:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5897,"items_count":2} 
[2026-03-12 14:43:10] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28325,"menu_item_id":158,"quantity":1},{"id":28326,"menu_item_id":3,"quantity":1}]} 
[2026-03-12 14:43:10] local.INFO: PosOrderController::update - Item changes check {"order_id":5897,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["158|1|","3|1|"],"new_items_map_keys":["158|1|","3|1|"]} 
[2026-03-12 14:43:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5897,"order_number":"AZS-120326-010"} 
[2026-03-12 14:43:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5897,"order_number":"AZS-120326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 14:43:10"} 
[2026-03-12 14:45:31] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5897,"order_number":"AZS-120326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 14:45:31"} 
[2026-03-12 14:45:31] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5897,"order_number":"AZS-120326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 14:45:31"} 
[2026-03-12 14:45:31] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5897,"order_number":"AZS-120326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 14:45:31"} 
[2026-03-12 14:45:31] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5897,"order_number":"AZS-120326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 14:45:31"} 
[2026-03-12 14:45:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5897,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":158,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":28325},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28326}],"validated_items":[{"id":28325,"menu_item_id":158,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":28326,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-12 14:45:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5897,"items_count":2} 
[2026-03-12 14:45:31] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28325,"menu_item_id":158,"quantity":1},{"id":28326,"menu_item_id":3,"quantity":1}]} 
[2026-03-12 14:45:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5897,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["158|1|","3|1|"],"new_items_map_keys":["158|1|","3|1|"]} 
[2026-03-12 14:45:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5897,"order_number":"AZS-120326-010"} 
[2026-03-12 14:45:31] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5897,"order_number":"AZS-120326-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-12 14:45:31","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 14:45:31"} 
[2026-03-12 14:45:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5897,"order_number":"AZS-120326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 14:45:31"} 
[2026-03-12 14:45:31] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5897,"order_number":"AZS-120326-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-12 14:45:31","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-12 14:45:31"} 
[2026-03-12 14:45:43] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5896,"order_number":"AZS-120326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":7000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 14:45:43"} 
[2026-03-12 14:45:43] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5896,"order_number":"AZS-120326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":7000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 14:45:43"} 
[2026-03-12 14:45:43] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5896,"order_number":"AZS-120326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 14:45:43"} 
[2026-03-12 14:45:43] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5896,"order_number":"AZS-120326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 14:45:43"} 
[2026-03-12 14:45:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5896,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28315},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28316},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":28317},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":28318},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28319},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28320},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28321},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28322},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":28323},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28324}],"validated_items":[{"id":28315,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":28316,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":28317,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":28318,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":28319,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":28320,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28321,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28322,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28323,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":28324,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-12 14:45:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5896,"items_count":10} 
[2026-03-12 14:45:43] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28315,"menu_item_id":417,"quantity":1},{"id":28316,"menu_item_id":105,"quantity":1},{"id":28317,"menu_item_id":62,"quantity":1},{"id":28318,"menu_item_id":65,"quantity":1},{"id":28319,"menu_item_id":396,"quantity":2},{"id":28320,"menu_item_id":61,"quantity":1},{"id":28321,"menu_item_id":56,"quantity":1},{"id":28322,"menu_item_id":5,"quantity":1},{"id":28323,"menu_item_id":29,"quantity":1},{"id":28324,"menu_item_id":2,"quantity":1}]} 
[2026-03-12 14:45:43] local.INFO: PosOrderController::update - Item changes check {"order_id":5896,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["417|1|","105|1|","62|1|","65|1|","396|2|","61|1|","56|1|","5|1|","29|1|","2|1|"],"new_items_map_keys":["417|1|","105|1|","62|1|","65|1|","396|2|","61|1|","56|1|","5|1|","29|1|","2|1|"]} 
[2026-03-12 14:45:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5896,"order_number":"AZS-120326-001"} 
[2026-03-12 14:45:43] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5896,"order_number":"AZS-120326-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":7000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-12 14:45:43","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 14:45:43"} 
[2026-03-12 14:45:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5896,"order_number":"AZS-120326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 14:45:43"} 
[2026-03-12 14:45:43] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5896,"order_number":"AZS-120326-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"7000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-12 14:45:43","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":7000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"7000.00","database_verification_match":true,"timestamp":"2026-03-12 14:45:43"} 
[2026-03-12 14:46:06] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5893,"order_number":"AZS-120326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2043,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 14:46:06"} 
[2026-03-12 14:46:06] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5893,"order_number":"AZS-120326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2043,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 14:46:06"} 
[2026-03-12 14:46:06] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5893,"order_number":"AZS-120326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2043,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 14:46:06"} 
[2026-03-12 14:46:06] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5893,"order_number":"AZS-120326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2043,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 14:46:06"} 
[2026-03-12 14:46:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5893,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28298},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":28299},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":28300},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28301}],"validated_items":[{"id":28298,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":28299,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":28300,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":28301,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-12 14:46:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5893,"items_count":4} 
[2026-03-12 14:46:06] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28298,"menu_item_id":417,"quantity":1},{"id":28299,"menu_item_id":64,"quantity":1},{"id":28300,"menu_item_id":55,"quantity":2},{"id":28301,"menu_item_id":2,"quantity":1}]} 
[2026-03-12 14:46:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5893,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["417|1|","64|1|","55|2|","2|1|"],"new_items_map_keys":["417|1|","64|1|","55|2|","2|1|"]} 
[2026-03-12 14:46:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5893,"order_number":"AZS-120326-002"} 
[2026-03-12 14:46:06] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5893,"order_number":"AZS-120326-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2043,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-12 14:46:06","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 14:46:06"} 
[2026-03-12 14:46:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5893,"order_number":"AZS-120326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 14:46:06"} 
[2026-03-12 14:46:06] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5893,"order_number":"AZS-120326-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2043.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-12 14:46:06","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2043,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2043.00","database_verification_match":true,"timestamp":"2026-03-12 14:46:06"} 
[2026-03-12 14:46:25] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5894,"order_number":"AZS-120326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3218,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 14:46:25"} 
[2026-03-12 14:46:25] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5894,"order_number":"AZS-120326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3218,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 14:46:25"} 
[2026-03-12 14:46:25] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5894,"order_number":"AZS-120326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3218,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 14:46:25"} 
[2026-03-12 14:46:25] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5894,"order_number":"AZS-120326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3218,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 14:46:25"} 
[2026-03-12 14:46:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5894,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28302},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28303},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28304},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28305}],"validated_items":[{"id":28302,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":28303,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":28304,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28305,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-12 14:46:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5894,"items_count":4} 
[2026-03-12 14:46:25] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28302,"menu_item_id":97,"quantity":1},{"id":28303,"menu_item_id":396,"quantity":3},{"id":28304,"menu_item_id":61,"quantity":1},{"id":28305,"menu_item_id":3,"quantity":1}]} 
[2026-03-12 14:46:25] local.INFO: PosOrderController::update - Item changes check {"order_id":5894,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["97|1|","396|3|","61|1|","3|1|"],"new_items_map_keys":["97|1|","396|3|","61|1|","3|1|"]} 
[2026-03-12 14:46:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5894,"order_number":"AZS-120326-006"} 
[2026-03-12 14:46:25] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5894,"order_number":"AZS-120326-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3218,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-12 14:46:25","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 14:46:25"} 
[2026-03-12 14:46:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5894,"order_number":"AZS-120326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 14:46:25"} 
[2026-03-12 14:46:25] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5894,"order_number":"AZS-120326-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3218.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-12 14:46:25","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3218,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3218.00","database_verification_match":true,"timestamp":"2026-03-12 14:46:25"} 
[2026-03-12 14:46:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T02:46:36.265Z","date_to":"2026-03-12T14:46:36.265Z","per_page":"100"} 
[2026-03-12 14:46:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":0,"unique_order_numbers":10} 
[2026-03-12 14:46:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T02:46:36.280Z","date_to":"2026-03-12T14:46:36.280Z","per_page":"100"} 
[2026-03-12 14:46:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":0,"unique_order_numbers":10} 
[2026-03-12 14:46:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T02:46:36.265Z","date_to":"2026-03-12T14:46:36.265Z","per_page":"100"} 
[2026-03-12 14:46:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":0,"unique_order_numbers":10} 
[2026-03-12 15:20:04] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-12 15:31:09] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-12 15:52:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5898,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":28327},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":28328},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":28329},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":28330},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28331}],"validated_items":[{"id":28327,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":28328,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":28329,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":28330,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":28331,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 15:52:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5898,"items_count":5} 
[2026-03-12 15:52:57] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28327,"menu_item_id":114,"quantity":1},{"id":28328,"menu_item_id":113,"quantity":1},{"id":28329,"menu_item_id":396,"quantity":5},{"id":28330,"menu_item_id":61,"quantity":3},{"id":28331,"menu_item_id":5,"quantity":1}]} 
[2026-03-12 15:52:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5898,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|1|","113|1|","396|5|","61|3|","5|1|"],"new_items_map_keys":["114|1|","113|1|","396|5|","61|3|","5|1|"]} 
[2026-03-12 15:52:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5898,"order_number":"AZS-120326-011"} 
[2026-03-12 15:52:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5898,"order_number":"AZS-120326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-12 15:52:57"} 
[2026-03-12 15:53:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5898,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":28327},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":28328},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":28329},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":28330},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28331}],"validated_items":[{"id":28327,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":28328,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":28329,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":28330,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":28331,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 15:53:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5898,"items_count":5} 
[2026-03-12 15:53:08] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28327,"menu_item_id":114,"quantity":1},{"id":28328,"menu_item_id":113,"quantity":1},{"id":28329,"menu_item_id":396,"quantity":5},{"id":28330,"menu_item_id":61,"quantity":3},{"id":28331,"menu_item_id":5,"quantity":1}]} 
[2026-03-12 15:53:08] local.INFO: PosOrderController::update - Item changes check {"order_id":5898,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|1|","113|1|","396|5|","61|3|","5|1|"],"new_items_map_keys":["114|1|","113|1|","396|5|","61|3|","5|1|"]} 
[2026-03-12 15:53:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5898,"order_number":"AZS-120326-011"} 
[2026-03-12 15:53:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5898,"order_number":"AZS-120326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-12 15:53:08"} 
[2026-03-12 15:56:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5898,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28327},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28328},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":28329},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":28330},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28331}],"validated_items":[{"id":28327,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":28328,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28329,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":28330,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":28331,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-12 15:56:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5898,"items_count":5} 
[2026-03-12 15:56:16] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28327,"menu_item_id":114,"quantity":1},{"id":28328,"menu_item_id":113,"quantity":1},{"id":28329,"menu_item_id":396,"quantity":5},{"id":28330,"menu_item_id":61,"quantity":3},{"id":28331,"menu_item_id":5,"quantity":1}]} 
[2026-03-12 15:56:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5898,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|1|","113|1|","396|5|","61|3|","5|1|"],"new_items_map_keys":["114|1|","113|1|","396|5|","61|3|","5|1|"]} 
[2026-03-12 15:56:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5898,"order_number":"AZS-120326-011"} 
[2026-03-12 15:56:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5898,"order_number":"AZS-120326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 15:56:16"} 
[2026-03-12 15:58:02] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-12 16:02:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5903,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":28345},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28345,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 16:02:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5903,"items_count":2} 
[2026-03-12 16:02:12] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28345,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-12 16:02:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5903,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|","4|1|"]} 
[2026-03-12 16:02:12] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5903,"order_number":"AZS-120326-016"} 
[2026-03-12 16:02:12] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-016","replaced_order_id":5903} 
[2026-03-12 16:02:12] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5904,"items_count":2,"items":[{"menu_item_id":6,"quantity":2,"price":"199.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-03-12 16:02:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5904,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5904}} 
[2026-03-12 16:02:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5904,"item_index":0,"menu_item_id":6} 
[2026-03-12 16:02:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5904,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5904}} 
[2026-03-12 16:02:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5904,"item_index":1,"menu_item_id":4} 
[2026-03-12 16:02:12] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5903,"new_order_id":5904,"order_number":"AZS-120326-016"} 
[2026-03-12 16:05:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5899,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":28332},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28333},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":28334}],"validated_items":[{"id":28332,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":28333,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28334,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-12 16:05:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5899,"items_count":3} 
[2026-03-12 16:05:04] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28332,"menu_item_id":85,"quantity":1},{"id":28333,"menu_item_id":6,"quantity":1},{"id":28334,"menu_item_id":13,"quantity":1}]} 
[2026-03-12 16:05:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5899,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["85|1|","6|1|","13|1|"],"new_items_map_keys":["85|1|","6|1|","13|1|"]} 
[2026-03-12 16:05:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5899,"order_number":"AZS-120326-012"} 
[2026-03-12 16:05:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5899,"order_number":"AZS-120326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 16:05:04"} 
[2026-03-12 16:05:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5902,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":24,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":28344}],"validated_items":[{"id":28344,"menu_item_id":24,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-12 16:05:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5902,"items_count":1} 
[2026-03-12 16:05:37] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28344,"menu_item_id":24,"quantity":2}]} 
[2026-03-12 16:05:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5902,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["24|2|"],"new_items_map_keys":["24|2|"]} 
[2026-03-12 16:05:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5902,"order_number":"AZS-120326-015"} 
[2026-03-12 16:05:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5902,"order_number":"AZS-120326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 16:05:37"} 
[2026-03-12 16:06:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5898,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28327},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28328},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":28329},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":28330},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28331}],"validated_items":[{"id":28327,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":28328,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28329,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":28330,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":28331,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-12 16:06:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5898,"items_count":5} 
[2026-03-12 16:06:06] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28327,"menu_item_id":114,"quantity":1},{"id":28328,"menu_item_id":113,"quantity":1},{"id":28329,"menu_item_id":396,"quantity":5},{"id":28330,"menu_item_id":61,"quantity":3},{"id":28331,"menu_item_id":5,"quantity":1}]} 
[2026-03-12 16:06:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5898,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|1|","113|1|","396|5|","61|3|","5|1|"],"new_items_map_keys":["114|1|","113|1|","396|5|","61|3|","5|1|"]} 
[2026-03-12 16:06:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5898,"order_number":"AZS-120326-011"} 
[2026-03-12 16:06:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5898,"order_number":"AZS-120326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 16:06:06"} 
[2026-03-12 16:06:33] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5898,"order_number":"AZS-120326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4400,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 16:06:33"} 
[2026-03-12 16:06:33] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5898,"order_number":"AZS-120326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4400,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 16:06:33"} 
[2026-03-12 16:06:33] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5898,"order_number":"AZS-120326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4400,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 16:06:33"} 
[2026-03-12 16:06:33] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5898,"order_number":"AZS-120326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4400,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 16:06:33"} 
[2026-03-12 16:06:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5898,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28327},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28328},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":28329},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28330},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28331}],"validated_items":[{"id":28327,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":28328,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28329,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":28330,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28331,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-12 16:06:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5898,"items_count":5} 
[2026-03-12 16:06:33] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28327,"menu_item_id":114,"quantity":1},{"id":28328,"menu_item_id":113,"quantity":1},{"id":28329,"menu_item_id":396,"quantity":5},{"id":28330,"menu_item_id":61,"quantity":1},{"id":28331,"menu_item_id":5,"quantity":1}]} 
[2026-03-12 16:06:33] local.INFO: PosOrderController::update - Item changes check {"order_id":5898,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|1|","113|1|","396|5|","61|3|","5|1|"],"new_items_map_keys":["114|1|","113|1|","396|5|","61|1|","5|1|"]} 
[2026-03-12 16:06:33] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5898,"order_number":"AZS-120326-011","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":4400,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-12 16:06:33","original_payment_amount":"0.00","grand_total":4362.0,"timestamp":"2026-03-12 16:06:33"} 
[2026-03-12 16:06:33] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5898,"order_number":"AZS-120326-011"} 
[2026-03-12 16:06:33] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-011","replaced_order_id":5898} 
[2026-03-12 16:06:33] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5898,"new_order_id":5905,"order_number":"AZS-120326-011","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"4400.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-12 16:06:33","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4400,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-12 16:06:33"} 
[2026-03-12 16:06:33] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5905,"items_count":5,"items":[{"menu_item_id":114,"quantity":1,"price":2299.0},{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":5,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-03-12 16:06:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5905,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5905}} 
[2026-03-12 16:06:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5905,"item_index":0,"menu_item_id":114} 
[2026-03-12 16:06:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5905,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5905}} 
[2026-03-12 16:06:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5905,"item_index":1,"menu_item_id":113} 
[2026-03-12 16:06:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5905,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5905}} 
[2026-03-12 16:06:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5905,"item_index":2,"menu_item_id":396} 
[2026-03-12 16:06:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5905,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5905}} 
[2026-03-12 16:06:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5905,"item_index":3,"menu_item_id":61} 
[2026-03-12 16:06:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5905,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5905}} 
[2026-03-12 16:06:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5905,"item_index":4,"menu_item_id":5} 
[2026-03-12 16:06:33] local.ERROR: Error tracking recipe usage for order 5905: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5905, 114, 77, 1, 100, 0.00, Order #AZS-120326-011 - 1x Chicken Shinwari - Full, 2026-03-12 16:06:33, 2026-03-12 16:06:33))  
[2026-03-12 16:06:33] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5898,"new_order_id":5905,"order_number":"AZS-120326-011"} 
[2026-03-12 16:06:34] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5898,"new_order_id":5905,"order_number":"AZS-120326-011","route":"api/orders/5898"} 
[2026-03-12 16:06:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T04:06:36.851Z","date_to":"2026-03-12T16:06:36.851Z","per_page":"100"} 
[2026-03-12 16:06:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":5,"unique_order_numbers":16} 
[2026-03-12 16:06:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T04:06:36.867Z","date_to":"2026-03-12T16:06:36.867Z","per_page":"100"} 
[2026-03-12 16:06:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":5,"unique_order_numbers":16} 
[2026-03-12 16:06:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T04:06:36.851Z","date_to":"2026-03-12T16:06:36.851Z","per_page":"100"} 
[2026-03-12 16:06:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":5,"unique_order_numbers":16} 
[2026-03-12 16:07:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5899,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null,"id":28332},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null,"id":28333},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null,"id":28334},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28332,"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null},{"id":28333,"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null},{"id":28334,"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 16:07:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5899,"items_count":4} 
[2026-03-12 16:07:34] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28332,"menu_item_id":85,"quantity":1},{"id":28333,"menu_item_id":6,"quantity":1},{"id":28334,"menu_item_id":13,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-12 16:07:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5899,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["85|1|","6|1|","13|1|"],"new_items_map_keys":["85|1|","6|1|","13|1|","4|1|"]} 
[2026-03-12 16:07:34] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5899,"order_number":"AZS-120326-012"} 
[2026-03-12 16:07:34] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-012","replaced_order_id":5899} 
[2026-03-12 16:07:34] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5906,"items_count":4,"items":[{"menu_item_id":85,"quantity":1,"price":"699.00"},{"menu_item_id":6,"quantity":1,"price":"199.00"},{"menu_item_id":13,"quantity":1,"price":"249.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-03-12 16:07:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5906,"item_index":0,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":1,"price":"699.00","discount_percent":0.0,"discount_amount":0.0,"total":699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5906}} 
[2026-03-12 16:07:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5906,"item_index":0,"menu_item_id":85} 
[2026-03-12 16:07:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5906,"item_index":1,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5906}} 
[2026-03-12 16:07:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5906,"item_index":1,"menu_item_id":6} 
[2026-03-12 16:07:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5906,"item_index":2,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5906}} 
[2026-03-12 16:07:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5906,"item_index":2,"menu_item_id":13} 
[2026-03-12 16:07:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5906,"item_index":3,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5906}} 
[2026-03-12 16:07:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5906,"item_index":3,"menu_item_id":4} 
[2026-03-12 16:07:34] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5899,"new_order_id":5906,"order_number":"AZS-120326-012"} 
[2026-03-12 16:08:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5906,"item_index":0,"item_id":28332} 
[2026-03-12 16:08:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5906,"item_index":1,"item_id":28333} 
[2026-03-12 16:08:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5906,"item_index":2,"item_id":28334} 
[2026-03-12 16:08:18] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5906,"order_number":"AZS-120326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 16:08:18"} 
[2026-03-12 16:08:18] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5906,"order_number":"AZS-120326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 16:08:18"} 
[2026-03-12 16:08:18] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5906,"order_number":"AZS-120326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 16:08:18"} 
[2026-03-12 16:08:18] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5906,"order_number":"AZS-120326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 16:08:18"} 
[2026-03-12 16:08:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5906,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":28332},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28333},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":28334},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-12 16:08:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5906,"items_count":4} 
[2026-03-12 16:08:18] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[28353,28354,28355,28356],"items":[{"id":null,"menu_item_id":85,"quantity":1},{"id":null,"menu_item_id":6,"quantity":1},{"id":null,"menu_item_id":13,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-12 16:08:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5906,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["85|1|","6|1|","13|1|","4|1|"],"new_items_map_keys":["85|1|","6|1|","13|1|","4|1|"]} 
[2026-03-12 16:08:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5906,"order_number":"AZS-120326-012"} 
[2026-03-12 16:08:18] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5906,"order_number":"AZS-120326-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-12 16:08:18","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 16:08:18"} 
[2026-03-12 16:08:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5906,"order_number":"AZS-120326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 16:08:18"} 
[2026-03-12 16:08:18] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5906,"order_number":"AZS-120326-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-12 16:08:18","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-12 16:08:18"} 
[2026-03-12 16:09:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5902,"order_number":"AZS-120326-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":523,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 16:09:27"} 
[2026-03-12 16:09:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5902,"order_number":"AZS-120326-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":523,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 16:09:27"} 
[2026-03-12 16:09:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5902,"order_number":"AZS-120326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":523,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 16:09:27"} 
[2026-03-12 16:09:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5902,"order_number":"AZS-120326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":523,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 16:09:27"} 
[2026-03-12 16:09:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5902,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":24,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":28344}],"validated_items":[{"id":28344,"menu_item_id":24,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-12 16:09:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5902,"items_count":1} 
[2026-03-12 16:09:27] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28344,"menu_item_id":24,"quantity":2}]} 
[2026-03-12 16:09:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5902,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["24|2|"],"new_items_map_keys":["24|2|"]} 
[2026-03-12 16:09:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5902,"order_number":"AZS-120326-015"} 
[2026-03-12 16:09:27] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5902,"order_number":"AZS-120326-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":523,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-12 16:09:27","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 16:09:27"} 
[2026-03-12 16:09:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5902,"order_number":"AZS-120326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 16:09:27"} 
[2026-03-12 16:09:27] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5902,"order_number":"AZS-120326-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"523.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-12 16:09:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":523,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"523.00","database_verification_match":true,"timestamp":"2026-03-12 16:09:27"} 
[2026-03-12 16:16:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":5907,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 16:16:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5907,"items_count":1} 
[2026-03-12 16:16:45] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[28357],"items":[{"id":null,"menu_item_id":385,"quantity":1}]} 
[2026-03-12 16:16:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5907,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["385|1|"]} 
[2026-03-12 16:16:45] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5907,"order_number":"AZS-120326-017"} 
[2026-03-12 16:16:45] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-017","replaced_order_id":5907} 
[2026-03-12 16:16:45] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5908,"items_count":1,"items":[{"menu_item_id":385,"quantity":1,"price":"2899.00"}]} 
[2026-03-12 16:16:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5908,"item_index":0,"item_data":{"menu_item_id":385,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 02","quantity":1,"price":"2899.00","discount_percent":0.0,"discount_amount":0.0,"total":2899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5908}} 
[2026-03-12 16:16:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5908,"item_index":0,"menu_item_id":385} 
[2026-03-12 16:16:45] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5907,"new_order_id":5908,"order_number":"AZS-120326-017"} 
[2026-03-12 16:19:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T04:19:10.375Z","date_to":"2026-03-12T16:19:10.375Z","per_page":"100"} 
[2026-03-12 16:19:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T04:19:10.393Z","date_to":"2026-03-12T16:19:10.393Z","per_page":"100"} 
[2026-03-12 16:19:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":4,"unique_order_numbers":17} 
[2026-03-12 16:19:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":4,"unique_order_numbers":17} 
[2026-03-12 16:19:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T04:19:10.375Z","date_to":"2026-03-12T16:19:10.375Z","per_page":"100"} 
[2026-03-12 16:19:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":4,"unique_order_numbers":17} 
[2026-03-12 16:33:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":5904,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28346}],"validated_items":[{"id":28346,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-12 16:33:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5904,"items_count":1} 
[2026-03-12 16:33:10] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[28347],"items":[{"id":28346,"menu_item_id":6,"quantity":2}]} 
[2026-03-12 16:33:10] local.INFO: PosOrderController::update - Item changes check {"order_id":5904,"has_item_changes":true,"old_items_count":2,"new_items_count":1,"old_items_map_keys":["6|2|","4|1|"],"new_items_map_keys":["6|2|"]} 
[2026-03-12 16:33:10] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5904,"order_number":"AZS-120326-016"} 
[2026-03-12 16:33:10] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-016","replaced_order_id":5904} 
[2026-03-12 16:33:10] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5909,"items_count":1,"items":[{"menu_item_id":6,"quantity":2,"price":199.0}]} 
[2026-03-12 16:33:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5909,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5909}} 
[2026-03-12 16:33:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5909,"item_index":0,"menu_item_id":6} 
[2026-03-12 16:33:10] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5904,"new_order_id":5909,"order_number":"AZS-120326-016"} 
[2026-03-12 16:33:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5909,"item_index":0,"item_id":28346} 
[2026-03-12 16:33:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":5909,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28346}],"validated_items":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-12 16:33:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5909,"items_count":1} 
[2026-03-12 16:33:15] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[28359],"items":[{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-03-12 16:33:15] local.INFO: PosOrderController::update - Item changes check {"order_id":5909,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-12 16:33:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5909,"order_number":"AZS-120326-016"} 
[2026-03-12 16:33:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5909,"order_number":"AZS-120326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 16:33:15"} 
[2026-03-12 16:39:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5901,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":28336},{"menu_item_id":94,"quantity":1,"discount_percent":0,"notes":null,"id":28337},{"menu_item_id":55,"quantity":3,"discount_percent":0,"notes":null,"id":28338},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null,"id":28339},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":28340},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":28341},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":28342},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28343}],"validated_items":[{"id":28336,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":28337,"menu_item_id":94,"quantity":1,"discount_percent":0,"notes":null},{"id":28338,"menu_item_id":55,"quantity":3,"discount_percent":0,"notes":null},{"id":28339,"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null},{"id":28340,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":28341,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":28342,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":28343,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 16:39:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5901,"items_count":8} 
[2026-03-12 16:39:48] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28336,"menu_item_id":99,"quantity":1},{"id":28337,"menu_item_id":94,"quantity":1},{"id":28338,"menu_item_id":55,"quantity":3},{"id":28339,"menu_item_id":50,"quantity":4},{"id":28340,"menu_item_id":396,"quantity":3},{"id":28341,"menu_item_id":61,"quantity":3},{"id":28342,"menu_item_id":56,"quantity":2},{"id":28343,"menu_item_id":5,"quantity":1}]} 
[2026-03-12 16:39:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5901,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["99|1|","94|1|","55|3|","50|2|","396|3|","61|3|","56|2|","5|1|"],"new_items_map_keys":["99|1|","94|1|","55|3|","50|4|","396|3|","61|3|","56|2|","5|1|"]} 
[2026-03-12 16:39:48] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5901,"order_number":"AZS-120326-014"} 
[2026-03-12 16:39:48] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-014","replaced_order_id":5901} 
[2026-03-12 16:39:48] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5910,"items_count":8,"items":[{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":94,"quantity":1,"price":"1999.00"},{"menu_item_id":55,"quantity":3,"price":"159.00"},{"menu_item_id":50,"quantity":4,"price":"129.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-12 16:39:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5910,"item_index":0,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5910}} 
[2026-03-12 16:39:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5910,"item_index":0,"menu_item_id":99} 
[2026-03-12 16:39:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5910,"item_index":1,"item_data":{"menu_item_id":94,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Jalfrezi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5910}} 
[2026-03-12 16:39:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5910,"item_index":1,"menu_item_id":94} 
[2026-03-12 16:39:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5910,"item_index":2,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":3,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":477.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5910}} 
[2026-03-12 16:39:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5910,"item_index":2,"menu_item_id":55} 
[2026-03-12 16:39:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5910,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5910}} 
[2026-03-12 16:39:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5910,"item_index":3,"menu_item_id":50} 
[2026-03-12 16:39:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5910,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5910}} 
[2026-03-12 16:39:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5910,"item_index":4,"menu_item_id":396} 
[2026-03-12 16:39:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5910,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5910}} 
[2026-03-12 16:39:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5910,"item_index":5,"menu_item_id":61} 
[2026-03-12 16:39:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5910,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5910}} 
[2026-03-12 16:39:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5910,"item_index":6,"menu_item_id":56} 
[2026-03-12 16:39:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5910,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5910}} 
[2026-03-12 16:39:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5910,"item_index":7,"menu_item_id":5} 
[2026-03-12 16:39:48] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5901,"new_order_id":5910,"order_number":"AZS-120326-014"} 
[2026-03-12 16:42:52] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5909,"order_number":"AZS-120326-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 16:42:52"} 
[2026-03-12 16:42:52] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5909,"order_number":"AZS-120326-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 16:42:52"} 
[2026-03-12 16:42:52] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5909,"order_number":"AZS-120326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 16:42:52"} 
[2026-03-12 16:42:52] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5909,"order_number":"AZS-120326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 16:42:52"} 
[2026-03-12 16:42:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5909,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28359}],"validated_items":[{"id":28359,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-12 16:42:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5909,"items_count":1} 
[2026-03-12 16:42:52] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28359,"menu_item_id":6,"quantity":2}]} 
[2026-03-12 16:42:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5909,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-12 16:42:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5909,"order_number":"AZS-120326-016"} 
[2026-03-12 16:42:52] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5909,"order_number":"AZS-120326-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-12 16:42:52","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 16:42:52"} 
[2026-03-12 16:42:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5909,"order_number":"AZS-120326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 16:42:52"} 
[2026-03-12 16:42:52] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5909,"order_number":"AZS-120326-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-12 16:42:52","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-12 16:42:52"} 
[2026-03-12 16:51:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5910,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28360},{"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":28361},{"menu_item_id":55,"quantity":3,"price":159,"discount_percent":0,"notes":null,"id":28362},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":28363},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28364},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":28365},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28366},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28367}],"validated_items":[{"id":28360,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":28361,"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":28362,"menu_item_id":55,"quantity":3,"price":159,"discount_percent":0,"notes":null},{"id":28363,"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"id":28364,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":28365,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":28366,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28367,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-12 16:51:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5910,"items_count":8} 
[2026-03-12 16:51:18] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28360,"menu_item_id":99,"quantity":1},{"id":28361,"menu_item_id":94,"quantity":1},{"id":28362,"menu_item_id":55,"quantity":3},{"id":28363,"menu_item_id":50,"quantity":4},{"id":28364,"menu_item_id":396,"quantity":3},{"id":28365,"menu_item_id":61,"quantity":3},{"id":28366,"menu_item_id":56,"quantity":2},{"id":28367,"menu_item_id":5,"quantity":1}]} 
[2026-03-12 16:51:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5910,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["99|1|","94|1|","55|3|","50|4|","396|3|","61|3|","56|2|","5|1|"],"new_items_map_keys":["99|1|","94|1|","55|3|","50|4|","396|3|","61|3|","56|2|","5|1|"]} 
[2026-03-12 16:51:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5910,"order_number":"AZS-120326-014"} 
[2026-03-12 16:51:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5910,"order_number":"AZS-120326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 16:51:18"} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5910,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":28360},{"menu_item_id":94,"quantity":1,"discount_percent":0,"notes":null,"id":28361},{"menu_item_id":55,"quantity":3,"discount_percent":0,"notes":null,"id":28362},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null,"id":28363},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":28364},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":28365},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":28366},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28367},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28360,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":28361,"menu_item_id":94,"quantity":1,"discount_percent":0,"notes":null},{"id":28362,"menu_item_id":55,"quantity":3,"discount_percent":0,"notes":null},{"id":28363,"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null},{"id":28364,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":28365,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":28366,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":28367,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5910,"items_count":9} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28360,"menu_item_id":99,"quantity":1},{"id":28361,"menu_item_id":94,"quantity":1},{"id":28362,"menu_item_id":55,"quantity":3},{"id":28363,"menu_item_id":50,"quantity":4},{"id":28364,"menu_item_id":396,"quantity":3},{"id":28365,"menu_item_id":61,"quantity":3},{"id":28366,"menu_item_id":56,"quantity":2},{"id":28367,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5910,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["99|1|","94|1|","55|3|","50|4|","396|3|","61|3|","56|2|","5|1|"],"new_items_map_keys":["99|1|","94|1|","55|3|","50|4|","396|3|","61|3|","56|2|","5|1|","2|1|"]} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5910,"order_number":"AZS-120326-014"} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-014","replaced_order_id":5910} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5912,"items_count":9,"items":[{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":94,"quantity":1,"price":"1999.00"},{"menu_item_id":55,"quantity":3,"price":"159.00"},{"menu_item_id":50,"quantity":4,"price":"129.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5912,"item_index":0,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5912}} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5912,"item_index":0,"menu_item_id":99} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5912,"item_index":1,"item_data":{"menu_item_id":94,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Jalfrezi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5912}} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5912,"item_index":1,"menu_item_id":94} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5912,"item_index":2,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":3,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":477.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5912}} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5912,"item_index":2,"menu_item_id":55} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5912,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5912}} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5912,"item_index":3,"menu_item_id":50} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5912,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5912}} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5912,"item_index":4,"menu_item_id":396} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5912,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5912}} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5912,"item_index":5,"menu_item_id":61} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5912,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5912}} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5912,"item_index":6,"menu_item_id":56} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5912,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5912}} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5912,"item_index":7,"menu_item_id":5} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5912,"item_index":8,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5912}} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5912,"item_index":8,"menu_item_id":2} 
[2026-03-12 16:53:04] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5910,"new_order_id":5912,"order_number":"AZS-120326-014"} 
[2026-03-12 16:53:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5912,"item_index":0,"item_id":28360} 
[2026-03-12 16:53:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5912,"item_index":1,"item_id":28361} 
[2026-03-12 16:53:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5912,"item_index":2,"item_id":28362} 
[2026-03-12 16:53:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5912,"item_index":3,"item_id":28363} 
[2026-03-12 16:53:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5912,"item_index":4,"item_id":28364} 
[2026-03-12 16:53:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5912,"item_index":5,"item_id":28365} 
[2026-03-12 16:53:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5912,"item_index":6,"item_id":28366} 
[2026-03-12 16:53:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5912,"item_index":7,"item_id":28367} 
[2026-03-12 16:53:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":9,"order_id":5912,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28360},{"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":28361},{"menu_item_id":55,"quantity":3,"price":159,"discount_percent":0,"notes":null,"id":28362},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":28363},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28364},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":28365},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28366},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28367},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":3,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-12 16:53:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5912,"items_count":9} 
[2026-03-12 16:53:12] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":9,"items_to_remove":[28373,28374,28375,28376,28377,28378,28379,28380,28381],"items":[{"id":null,"menu_item_id":99,"quantity":1},{"id":null,"menu_item_id":94,"quantity":1},{"id":null,"menu_item_id":55,"quantity":3},{"id":null,"menu_item_id":50,"quantity":4},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-12 16:53:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5912,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["99|1|","94|1|","55|3|","50|4|","396|3|","61|3|","56|2|","5|1|","2|1|"],"new_items_map_keys":["99|1|","94|1|","55|3|","50|4|","396|3|","61|3|","56|2|","5|1|","2|1|"]} 
[2026-03-12 16:53:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5912,"order_number":"AZS-120326-014"} 
[2026-03-12 16:53:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5912,"order_number":"AZS-120326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 16:53:12"} 
[2026-03-12 16:53:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5908,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null,"id":28358}],"validated_items":[{"id":28358,"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 16:53:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5908,"items_count":1} 
[2026-03-12 16:53:25] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28358,"menu_item_id":385,"quantity":1}]} 
[2026-03-12 16:53:25] local.INFO: PosOrderController::update - Item changes check {"order_id":5908,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-03-12 16:53:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5908,"order_number":"AZS-120326-017"} 
[2026-03-12 16:53:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5908,"order_number":"AZS-120326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-12 16:53:25"} 
[2026-03-12 17:03:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5908,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":28358}],"validated_items":[{"id":28358,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null}]} 
[2026-03-12 17:03:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5908,"items_count":1} 
[2026-03-12 17:03:41] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28358,"menu_item_id":385,"quantity":1}]} 
[2026-03-12 17:03:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5908,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-03-12 17:03:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5908,"order_number":"AZS-120326-017"} 
[2026-03-12 17:03:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5908,"order_number":"AZS-120326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 17:03:41"} 
[2026-03-12 17:07:26] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5908,"order_number":"AZS-120326-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 17:07:26"} 
[2026-03-12 17:07:26] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5908,"order_number":"AZS-120326-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 17:07:26"} 
[2026-03-12 17:07:26] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5908,"order_number":"AZS-120326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 17:07:26"} 
[2026-03-12 17:07:26] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5908,"order_number":"AZS-120326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 17:07:26"} 
[2026-03-12 17:07:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5908,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":28358}],"validated_items":[{"id":28358,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null}]} 
[2026-03-12 17:07:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5908,"items_count":1} 
[2026-03-12 17:07:26] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28358,"menu_item_id":385,"quantity":1}]} 
[2026-03-12 17:07:26] local.INFO: PosOrderController::update - Item changes check {"order_id":5908,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-03-12 17:07:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5908,"order_number":"AZS-120326-017"} 
[2026-03-12 17:07:26] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5908,"order_number":"AZS-120326-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-12 17:07:26","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 17:07:26"} 
[2026-03-12 17:07:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5908,"order_number":"AZS-120326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 17:07:26"} 
[2026-03-12 17:07:26] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5908,"order_number":"AZS-120326-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-12 17:07:26","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-12 17:07:26"} 
[2026-03-12 17:12:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5912,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28373},{"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":28374},{"menu_item_id":55,"quantity":3,"price":159,"discount_percent":0,"notes":null,"id":28375},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":28376},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28377},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":28378},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28379},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28380},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28381}],"validated_items":[{"id":28373,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":28374,"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":28375,"menu_item_id":55,"quantity":3,"price":159,"discount_percent":0,"notes":null},{"id":28376,"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"id":28377,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":28378,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":28379,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28380,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28381,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-12 17:12:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5912,"items_count":9} 
[2026-03-12 17:12:57] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28373,"menu_item_id":99,"quantity":1},{"id":28374,"menu_item_id":94,"quantity":1},{"id":28375,"menu_item_id":55,"quantity":3},{"id":28376,"menu_item_id":50,"quantity":4},{"id":28377,"menu_item_id":396,"quantity":3},{"id":28378,"menu_item_id":61,"quantity":3},{"id":28379,"menu_item_id":56,"quantity":2},{"id":28380,"menu_item_id":5,"quantity":1},{"id":28381,"menu_item_id":2,"quantity":1}]} 
[2026-03-12 17:12:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5912,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["99|1|","94|1|","55|3|","50|4|","396|3|","61|3|","56|2|","5|1|","2|1|"],"new_items_map_keys":["99|1|","94|1|","55|3|","50|4|","396|3|","61|3|","56|2|","5|1|","2|1|"]} 
[2026-03-12 17:12:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5912,"order_number":"AZS-120326-014"} 
[2026-03-12 17:12:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5912,"order_number":"AZS-120326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 17:12:57"} 
[2026-03-12 17:13:22] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5912,"order_number":"AZS-120326-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":7000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 17:13:22"} 
[2026-03-12 17:13:22] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5912,"order_number":"AZS-120326-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":7000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 17:13:22"} 
[2026-03-12 17:13:22] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5912,"order_number":"AZS-120326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 17:13:22"} 
[2026-03-12 17:13:22] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5912,"order_number":"AZS-120326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 17:13:22"} 
[2026-03-12 17:13:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5912,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28373},{"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":28374},{"menu_item_id":55,"quantity":3,"price":159,"discount_percent":0,"notes":null,"id":28375},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":28376},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28377},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":28378},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28379},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28380},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28381}],"validated_items":[{"id":28373,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":28374,"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":28375,"menu_item_id":55,"quantity":3,"price":159,"discount_percent":0,"notes":null},{"id":28376,"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"id":28377,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":28378,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":28379,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28380,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28381,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-12 17:13:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5912,"items_count":9} 
[2026-03-12 17:13:22] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28373,"menu_item_id":99,"quantity":1},{"id":28374,"menu_item_id":94,"quantity":1},{"id":28375,"menu_item_id":55,"quantity":3},{"id":28376,"menu_item_id":50,"quantity":4},{"id":28377,"menu_item_id":396,"quantity":3},{"id":28378,"menu_item_id":61,"quantity":3},{"id":28379,"menu_item_id":56,"quantity":2},{"id":28380,"menu_item_id":5,"quantity":1},{"id":28381,"menu_item_id":2,"quantity":1}]} 
[2026-03-12 17:13:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5912,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["99|1|","94|1|","55|3|","50|4|","396|3|","61|3|","56|2|","5|1|","2|1|"],"new_items_map_keys":["99|1|","94|1|","55|3|","50|4|","396|3|","61|3|","56|2|","5|1|","2|1|"]} 
[2026-03-12 17:13:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5912,"order_number":"AZS-120326-014"} 
[2026-03-12 17:13:23] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5912,"order_number":"AZS-120326-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":7000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-12 17:13:22","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 17:13:23"} 
[2026-03-12 17:13:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5912,"order_number":"AZS-120326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 17:13:23"} 
[2026-03-12 17:13:23] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5912,"order_number":"AZS-120326-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"7000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-12 17:13:22","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":7000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"7000.00","database_verification_match":true,"timestamp":"2026-03-12 17:13:23"} 
[2026-03-12 17:14:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5911,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":28368},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":28369},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28370},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28371},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28372},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":28368,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":28369,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":28370,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28371,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28372,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-12 17:14:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5911,"items_count":6} 
[2026-03-12 17:14:29] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28368,"menu_item_id":96,"quantity":1},{"id":28369,"menu_item_id":396,"quantity":2},{"id":28370,"menu_item_id":61,"quantity":1},{"id":28371,"menu_item_id":56,"quantity":1},{"id":28372,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-12 17:14:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5911,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["96|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["96|1|","396|2|","61|1|","56|1|","5|1|","2|2|"]} 
[2026-03-12 17:14:29] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5911,"order_number":"AZS-120326-018"} 
[2026-03-12 17:14:29] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-018","replaced_order_id":5911} 
[2026-03-12 17:14:29] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5914,"items_count":6,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-12 17:14:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5914,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5914}} 
[2026-03-12 17:14:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5914,"item_index":0,"menu_item_id":96} 
[2026-03-12 17:14:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5914,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5914}} 
[2026-03-12 17:14:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5914,"item_index":1,"menu_item_id":396} 
[2026-03-12 17:14:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5914,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5914}} 
[2026-03-12 17:14:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5914,"item_index":2,"menu_item_id":61} 
[2026-03-12 17:14:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5914,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5914}} 
[2026-03-12 17:14:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5914,"item_index":3,"menu_item_id":56} 
[2026-03-12 17:14:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5914,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5914}} 
[2026-03-12 17:14:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5914,"item_index":4,"menu_item_id":5} 
[2026-03-12 17:14:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5914,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5914}} 
[2026-03-12 17:14:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5914,"item_index":5,"menu_item_id":2} 
[2026-03-12 17:14:29] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5911,"new_order_id":5914,"order_number":"AZS-120326-018"} 
[2026-03-12 17:14:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T05:14:53.908Z","date_to":"2026-03-12T17:14:53.908Z","per_page":"100"} 
[2026-03-12 17:14:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":3,"unique_order_numbers":19} 
[2026-03-12 17:14:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T05:14:53.893Z","date_to":"2026-03-12T17:14:53.893Z","per_page":"100"} 
[2026-03-12 17:14:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":3,"unique_order_numbers":19} 
[2026-03-12 17:14:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T05:14:53.893Z","date_to":"2026-03-12T17:14:53.893Z","per_page":"100"} 
[2026-03-12 17:14:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":3,"unique_order_numbers":19} 
[2026-03-12 17:20:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":5914,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":28383},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":28384},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28385},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28386},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28387},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null,"id":28388},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":28383,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":28384,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":28385,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28386,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28387,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":28388,"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-12 17:20:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5914,"items_count":7} 
[2026-03-12 17:20:43] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28383,"menu_item_id":96,"quantity":1},{"id":28384,"menu_item_id":396,"quantity":2},{"id":28385,"menu_item_id":61,"quantity":1},{"id":28386,"menu_item_id":56,"quantity":1},{"id":28387,"menu_item_id":5,"quantity":1},{"id":28388,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-03-12 17:20:43] local.INFO: PosOrderController::update - Item changes check {"order_id":5914,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["96|1|","396|2|","61|1|","56|1|","5|1|","2|2|"],"new_items_map_keys":["96|1|","396|2|","61|1|","56|1|","5|1|","2|2|","13|2|"]} 
[2026-03-12 17:20:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5914,"order_number":"AZS-120326-018"} 
[2026-03-12 17:20:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-018","replaced_order_id":5914} 
[2026-03-12 17:20:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5915,"items_count":7,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"}]} 
[2026-03-12 17:20:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5915,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5915}} 
[2026-03-12 17:20:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5915,"item_index":0,"menu_item_id":96} 
[2026-03-12 17:20:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5915,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5915}} 
[2026-03-12 17:20:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5915,"item_index":1,"menu_item_id":396} 
[2026-03-12 17:20:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5915,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5915}} 
[2026-03-12 17:20:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5915,"item_index":2,"menu_item_id":61} 
[2026-03-12 17:20:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5915,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5915}} 
[2026-03-12 17:20:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5915,"item_index":3,"menu_item_id":56} 
[2026-03-12 17:20:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5915,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5915}} 
[2026-03-12 17:20:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5915,"item_index":4,"menu_item_id":5} 
[2026-03-12 17:20:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5915,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5915}} 
[2026-03-12 17:20:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5915,"item_index":5,"menu_item_id":2} 
[2026-03-12 17:20:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5915,"item_index":6,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5915}} 
[2026-03-12 17:20:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5915,"item_index":6,"menu_item_id":13} 
[2026-03-12 17:20:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5914,"new_order_id":5915,"order_number":"AZS-120326-018"} 
[2026-03-12 17:35:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5915,"item_index":0,"item_id":28383} 
[2026-03-12 17:35:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5915,"item_index":1,"item_id":28384} 
[2026-03-12 17:35:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5915,"item_index":2,"item_id":28385} 
[2026-03-12 17:35:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5915,"item_index":3,"item_id":28386} 
[2026-03-12 17:35:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5915,"item_index":4,"item_id":28387} 
[2026-03-12 17:35:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5915,"item_index":5,"item_id":28388} 
[2026-03-12 17:35:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5915,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28383},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28384},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28385},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28386},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28387},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":28388},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-12 17:35:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5915,"items_count":7} 
[2026-03-12 17:35:55] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[28389,28390,28391,28392,28393,28394,28395],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-03-12 17:35:55] local.INFO: PosOrderController::update - Item changes check {"order_id":5915,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["96|1|","396|2|","61|1|","56|1|","5|1|","2|2|","13|2|"],"new_items_map_keys":["96|1|","396|2|","61|1|","56|1|","5|1|","2|2|","13|2|"]} 
[2026-03-12 17:35:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5915,"order_number":"AZS-120326-018"} 
[2026-03-12 17:35:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5915,"order_number":"AZS-120326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 17:35:55"} 
[2026-03-12 17:40:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5915,"item_index":0,"item_id":28383} 
[2026-03-12 17:40:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5915,"item_index":1,"item_id":28384} 
[2026-03-12 17:40:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5915,"item_index":2,"item_id":28385} 
[2026-03-12 17:40:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5915,"item_index":3,"item_id":28386} 
[2026-03-12 17:40:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5915,"item_index":4,"item_id":28387} 
[2026-03-12 17:40:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5915,"item_index":5,"item_id":28388} 
[2026-03-12 17:40:02] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5915,"order_number":"AZS-120326-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 17:40:02"} 
[2026-03-12 17:40:02] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5915,"order_number":"AZS-120326-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 17:40:02"} 
[2026-03-12 17:40:02] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5915,"order_number":"AZS-120326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 17:40:02"} 
[2026-03-12 17:40:02] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5915,"order_number":"AZS-120326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 17:40:02"} 
[2026-03-12 17:40:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":5915,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28383},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28384},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28385},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28386},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28387},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":28388},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-12 17:40:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5915,"items_count":7} 
[2026-03-12 17:40:02] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[28389,28390,28391,28392,28393,28394,28395],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-03-12 17:40:02] local.INFO: PosOrderController::update - Item changes check {"order_id":5915,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["96|1|","396|2|","61|1|","56|1|","5|1|","2|2|","13|2|"],"new_items_map_keys":["96|1|","396|2|","61|1|","56|1|","5|1|","2|2|","13|2|"]} 
[2026-03-12 17:40:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5915,"order_number":"AZS-120326-018"} 
[2026-03-12 17:40:02] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5915,"order_number":"AZS-120326-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-12 17:40:02","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 17:40:02"} 
[2026-03-12 17:40:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5915,"order_number":"AZS-120326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 17:40:02"} 
[2026-03-12 17:40:02] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5915,"order_number":"AZS-120326-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-12 17:40:02","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-03-12 17:40:02"} 
[2026-03-12 18:18:58] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-12 18:29:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5913,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null,"id":28382},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28382,"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 18:29:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5913,"items_count":2} 
[2026-03-12 18:29:01] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28382,"menu_item_id":385,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1}]} 
[2026-03-12 18:29:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5913,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|","403|1|"]} 
[2026-03-12 18:29:01] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5913,"order_number":"AZS-120326-019"} 
[2026-03-12 18:29:01] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-019","replaced_order_id":5913} 
[2026-03-12 18:29:01] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5918,"items_count":2,"items":[{"menu_item_id":385,"quantity":1,"price":"2899.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"}]} 
[2026-03-12 18:29:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5918,"item_index":0,"item_data":{"menu_item_id":385,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 02","quantity":1,"price":"2899.00","discount_percent":0.0,"discount_amount":0.0,"total":2899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5918}} 
[2026-03-12 18:29:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5918,"item_index":0,"menu_item_id":385} 
[2026-03-12 18:29:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5918,"item_index":1,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5918}} 
[2026-03-12 18:29:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5918,"item_index":1,"menu_item_id":403} 
[2026-03-12 18:29:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5913,"new_order_id":5918,"order_number":"AZS-120326-019"} 
[2026-03-12 18:34:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5916,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28396},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28397},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null,"id":28398},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":28399},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28400},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":28396,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28397,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28398,"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"id":28399,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":28400,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-12 18:34:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5916,"items_count":6} 
[2026-03-12 18:34:44] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28396,"menu_item_id":61,"quantity":1},{"id":28397,"menu_item_id":56,"quantity":1},{"id":28398,"menu_item_id":50,"quantity":3},{"id":28399,"menu_item_id":98,"quantity":1},{"id":28400,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-12 18:34:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5916,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["61|1|","56|1|","50|3|","98|1|","5|1|"],"new_items_map_keys":["61|1|","56|1|","50|3|","98|1|","5|1|","2|2|"]} 
[2026-03-12 18:34:44] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5916,"order_number":"AZS-120326-020"} 
[2026-03-12 18:34:44] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-020","replaced_order_id":5916} 
[2026-03-12 18:34:44] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5919,"items_count":6,"items":[{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":50,"quantity":3,"price":"129.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-12 18:34:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5919,"item_index":0,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5919}} 
[2026-03-12 18:34:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5919,"item_index":0,"menu_item_id":61} 
[2026-03-12 18:34:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5919,"item_index":1,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5919}} 
[2026-03-12 18:34:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5919,"item_index":1,"menu_item_id":56} 
[2026-03-12 18:34:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5919,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5919}} 
[2026-03-12 18:34:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5919,"item_index":2,"menu_item_id":50} 
[2026-03-12 18:34:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5919,"item_index":3,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5919}} 
[2026-03-12 18:34:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5919,"item_index":3,"menu_item_id":98} 
[2026-03-12 18:34:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5919,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5919}} 
[2026-03-12 18:34:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5919,"item_index":4,"menu_item_id":5} 
[2026-03-12 18:34:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5919,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5919}} 
[2026-03-12 18:34:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5919,"item_index":5,"menu_item_id":2} 
[2026-03-12 18:34:44] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5916,"new_order_id":5919,"order_number":"AZS-120326-020"} 
[2026-03-12 18:51:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5919,"item_index":0,"item_id":28396} 
[2026-03-12 18:51:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5919,"item_index":1,"item_id":28397} 
[2026-03-12 18:51:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5919,"item_index":2,"item_id":28398} 
[2026-03-12 18:51:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5919,"item_index":3,"item_id":28399} 
[2026-03-12 18:51:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5919,"item_index":4,"item_id":28400} 
[2026-03-12 18:51:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5919,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28396},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28397},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":28398},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28399},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28400},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-12 18:51:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5919,"items_count":6} 
[2026-03-12 18:51:47] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[28404,28405,28406,28407,28408,28409],"items":[{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":50,"quantity":3},{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-12 18:51:47] local.INFO: PosOrderController::update - Item changes check {"order_id":5919,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["61|1|","56|1|","50|3|","98|1|","5|1|","2|2|"],"new_items_map_keys":["61|1|","56|1|","50|3|","98|1|","5|1|","2|2|"]} 
[2026-03-12 18:51:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5919,"order_number":"AZS-120326-020"} 
[2026-03-12 18:51:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5919,"order_number":"AZS-120326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 18:51:47"} 
[2026-03-12 19:06:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T07:06:29.136Z","date_to":"2026-03-12T19:06:29.136Z","per_page":"100"} 
[2026-03-12 19:06:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":5,"unique_order_numbers":22} 
[2026-03-12 19:06:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T07:06:29.151Z","date_to":"2026-03-12T19:06:29.151Z","per_page":"100"} 
[2026-03-12 19:06:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T07:06:29.136Z","date_to":"2026-03-12T19:06:29.136Z","per_page":"100"} 
[2026-03-12 19:06:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":5,"unique_order_numbers":22} 
[2026-03-12 19:06:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":5,"unique_order_numbers":22} 
[2026-03-12 19:07:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5919,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28404},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28405},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":28406},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28407},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28408},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":28409}],"validated_items":[{"id":28404,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28405,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28406,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"id":28407,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28408,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28409,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-12 19:07:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5919,"items_count":6} 
[2026-03-12 19:07:05] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28404,"menu_item_id":61,"quantity":1},{"id":28405,"menu_item_id":56,"quantity":1},{"id":28406,"menu_item_id":50,"quantity":3},{"id":28407,"menu_item_id":98,"quantity":1},{"id":28408,"menu_item_id":5,"quantity":1},{"id":28409,"menu_item_id":2,"quantity":2}]} 
[2026-03-12 19:07:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5919,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["61|1|","56|1|","50|3|","98|1|","5|1|","2|2|"],"new_items_map_keys":["61|1|","56|1|","50|3|","98|1|","5|1|","2|2|"]} 
[2026-03-12 19:07:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5919,"order_number":"AZS-120326-020"} 
[2026-03-12 19:07:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5919,"order_number":"AZS-120326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 19:07:05"} 
[2026-03-12 19:07:35] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5919,"order_number":"AZS-120326-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2300,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 19:07:35"} 
[2026-03-12 19:07:35] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5919,"order_number":"AZS-120326-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2300,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 19:07:35"} 
[2026-03-12 19:07:35] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5919,"order_number":"AZS-120326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 19:07:35"} 
[2026-03-12 19:07:35] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5919,"order_number":"AZS-120326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 19:07:35"} 
[2026-03-12 19:07:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":5919,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28404},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":28406},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28407},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28408},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":28409}],"validated_items":[{"id":28404,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28406,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"id":28407,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28408,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28409,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-12 19:07:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5919,"items_count":5} 
[2026-03-12 19:07:35] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[28405],"items":[{"id":28404,"menu_item_id":61,"quantity":1},{"id":28406,"menu_item_id":50,"quantity":3},{"id":28407,"menu_item_id":98,"quantity":1},{"id":28408,"menu_item_id":5,"quantity":1},{"id":28409,"menu_item_id":2,"quantity":2}]} 
[2026-03-12 19:07:35] local.INFO: PosOrderController::update - Item changes check {"order_id":5919,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["61|1|","56|1|","50|3|","98|1|","5|1|","2|2|"],"new_items_map_keys":["61|1|","50|3|","98|1|","5|1|","2|2|"]} 
[2026-03-12 19:07:35] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5919,"order_number":"AZS-120326-020","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":2300,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-12 19:07:35","original_payment_amount":"0.00","grand_total":2215.0,"timestamp":"2026-03-12 19:07:35"} 
[2026-03-12 19:07:35] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5919,"order_number":"AZS-120326-020"} 
[2026-03-12 19:07:35] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-020","replaced_order_id":5919} 
[2026-03-12 19:07:35] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5919,"new_order_id":5921,"order_number":"AZS-120326-020","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"2300.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-12 19:07:35","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2300,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-12 19:07:35"} 
[2026-03-12 19:07:35] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5921,"items_count":5,"items":[{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":50,"quantity":3,"price":129.0},{"menu_item_id":98,"quantity":1,"price":1199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":2,"quantity":2,"price":130.0}]} 
[2026-03-12 19:07:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5921,"item_index":0,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5921}} 
[2026-03-12 19:07:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5921,"item_index":0,"menu_item_id":61} 
[2026-03-12 19:07:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5921,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5921}} 
[2026-03-12 19:07:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5921,"item_index":1,"menu_item_id":50} 
[2026-03-12 19:07:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5921,"item_index":2,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5921}} 
[2026-03-12 19:07:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5921,"item_index":2,"menu_item_id":98} 
[2026-03-12 19:07:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5921,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5921}} 
[2026-03-12 19:07:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5921,"item_index":3,"menu_item_id":5} 
[2026-03-12 19:07:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5921,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5921}} 
[2026-03-12 19:07:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5921,"item_index":4,"menu_item_id":2} 
[2026-03-12 19:07:35] local.ERROR: Error tracking recipe usage for order 5921: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5921, 61, 66, 1, 250, 0.00, Order #AZS-120326-020 - 1x Mint Raita, 2026-03-12 19:07:35, 2026-03-12 19:07:35))  
[2026-03-12 19:07:35] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5919,"new_order_id":5921,"order_number":"AZS-120326-020"} 
[2026-03-12 19:07:36] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5919,"new_order_id":5921,"order_number":"AZS-120326-020","route":"api/orders/5919"} 
[2026-03-12 19:07:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T07:07:41.696Z","date_to":"2026-03-12T19:07:41.696Z","per_page":"100"} 
[2026-03-12 19:07:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T07:07:41.715Z","date_to":"2026-03-12T19:07:41.715Z","per_page":"100"} 
[2026-03-12 19:07:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":4,"unique_order_numbers":22} 
[2026-03-12 19:07:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":4,"unique_order_numbers":22} 
[2026-03-12 19:07:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T07:07:41.696Z","date_to":"2026-03-12T19:07:41.696Z","per_page":"100"} 
[2026-03-12 19:07:45] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":4,"unique_order_numbers":22} 
[2026-03-12 19:25:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T07:25:52.054Z","date_to":"2026-03-12T19:25:52.054Z","per_page":"100"} 
[2026-03-12 19:25:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":5,"unique_order_numbers":23} 
[2026-03-12 19:25:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T07:25:52.061Z","date_to":"2026-03-12T19:25:52.061Z","per_page":"100"} 
[2026-03-12 19:25:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":5,"unique_order_numbers":23} 
[2026-03-12 19:25:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T07:25:52.054Z","date_to":"2026-03-12T19:25:52.054Z","per_page":"100"} 
[2026-03-12 19:25:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":5,"unique_order_numbers":23} 
[2026-03-12 19:53:33] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-12 20:11:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5923,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":28425},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28425,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 20:11:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5923,"items_count":3} 
[2026-03-12 20:11:20] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28425,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-03-12 20:11:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5923,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|","62|1|","61|1|"]} 
[2026-03-12 20:11:21] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5923,"order_number":"AZS-120326-024"} 
[2026-03-12 20:11:21] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-024","replaced_order_id":5923} 
[2026-03-12 20:11:21] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5924,"items_count":3,"items":[{"menu_item_id":6,"quantity":2,"price":"199.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"}]} 
[2026-03-12 20:11:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5924,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5924}} 
[2026-03-12 20:11:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5924,"item_index":0,"menu_item_id":6} 
[2026-03-12 20:11:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5924,"item_index":1,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5924}} 
[2026-03-12 20:11:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5924,"item_index":1,"menu_item_id":62} 
[2026-03-12 20:11:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5924,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5924}} 
[2026-03-12 20:11:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5924,"item_index":2,"menu_item_id":61} 
[2026-03-12 20:11:21] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5923,"new_order_id":5924,"order_number":"AZS-120326-024"} 
[2026-03-12 20:12:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5920,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null,"id":28410},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":28411},{"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null,"id":28412},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28413}],"validated_items":[{"id":28410,"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null},{"id":28411,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":28412,"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null},{"id":28413,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 20:12:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5920,"items_count":4} 
[2026-03-12 20:12:18] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28410,"menu_item_id":85,"quantity":1},{"id":28411,"menu_item_id":2,"quantity":1},{"id":28412,"menu_item_id":13,"quantity":5},{"id":28413,"menu_item_id":5,"quantity":1}]} 
[2026-03-12 20:12:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5920,"has_item_changes":true,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["85|1|","2|1|","13|3|","5|1|"],"new_items_map_keys":["85|1|","2|1|","13|5|","5|1|"]} 
[2026-03-12 20:12:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5920,"order_number":"AZS-120326-022"} 
[2026-03-12 20:12:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-022","replaced_order_id":5920} 
[2026-03-12 20:12:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5925,"items_count":4,"items":[{"menu_item_id":85,"quantity":1,"price":"699.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":13,"quantity":5,"price":"249.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-12 20:12:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5925,"item_index":0,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":1,"price":"699.00","discount_percent":0.0,"discount_amount":0.0,"total":699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5925}} 
[2026-03-12 20:12:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5925,"item_index":0,"menu_item_id":85} 
[2026-03-12 20:12:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5925,"item_index":1,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5925}} 
[2026-03-12 20:12:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5925,"item_index":1,"menu_item_id":2} 
[2026-03-12 20:12:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5925,"item_index":2,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":5,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":1245.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5925}} 
[2026-03-12 20:12:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5925,"item_index":2,"menu_item_id":13} 
[2026-03-12 20:12:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5925,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5925}} 
[2026-03-12 20:12:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5925,"item_index":3,"menu_item_id":5} 
[2026-03-12 20:12:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5920,"new_order_id":5925,"order_number":"AZS-120326-022"} 
[2026-03-12 20:21:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5925,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":28429},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28430},{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":28431},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28432}],"validated_items":[{"id":28429,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":28430,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":28431,"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null},{"id":28432,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-12 20:21:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5925,"items_count":4} 
[2026-03-12 20:21:52] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28429,"menu_item_id":85,"quantity":1},{"id":28430,"menu_item_id":2,"quantity":1},{"id":28431,"menu_item_id":13,"quantity":5},{"id":28432,"menu_item_id":5,"quantity":1}]} 
[2026-03-12 20:21:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5925,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["85|1|","2|1|","13|5|","5|1|"],"new_items_map_keys":["85|1|","2|1|","13|5|","5|1|"]} 
[2026-03-12 20:21:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5925,"order_number":"AZS-120326-022"} 
[2026-03-12 20:21:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5925,"order_number":"AZS-120326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 20:21:52"} 
[2026-03-12 20:43:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5922,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28419},{"menu_item_id":67,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":28420},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28421},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28422},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28423},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28424}],"validated_items":[{"id":28419,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":28420,"menu_item_id":67,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":28421,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":28422,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28423,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28424,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-12 20:43:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5922,"items_count":6} 
[2026-03-12 20:43:17] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28419,"menu_item_id":105,"quantity":1},{"id":28420,"menu_item_id":67,"quantity":2},{"id":28421,"menu_item_id":396,"quantity":3},{"id":28422,"menu_item_id":61,"quantity":1},{"id":28423,"menu_item_id":56,"quantity":1},{"id":28424,"menu_item_id":5,"quantity":1}]} 
[2026-03-12 20:43:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5922,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["105|1|","67|2|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","67|2|","396|3|","61|1|","56|1|","5|1|"]} 
[2026-03-12 20:43:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5922,"order_number":"AZS-120326-023"} 
[2026-03-12 20:43:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5922,"order_number":"AZS-120326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 20:43:17"} 
[2026-03-12 20:43:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":5922,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28419},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28421},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28422},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28423},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28424},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null}],"validated_items":[{"id":28419,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":28421,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":28422,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28423,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28424,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null}]} 
[2026-03-12 20:43:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5922,"items_count":6} 
[2026-03-12 20:43:42] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[28420],"items":[{"id":28419,"menu_item_id":105,"quantity":1},{"id":28421,"menu_item_id":396,"quantity":3},{"id":28422,"menu_item_id":61,"quantity":1},{"id":28423,"menu_item_id":56,"quantity":1},{"id":28424,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1}]} 
[2026-03-12 20:43:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5922,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["105|1|","67|2|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","396|3|","61|1|","56|1|","5|1|","62|1|"]} 
[2026-03-12 20:43:42] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5922,"order_number":"AZS-120326-023"} 
[2026-03-12 20:43:42] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-023","replaced_order_id":5922} 
[2026-03-12 20:43:42] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5926,"items_count":6,"items":[{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":62,"quantity":1,"price":1499.0}]} 
[2026-03-12 20:43:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5926,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5926}} 
[2026-03-12 20:43:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5926,"item_index":0,"menu_item_id":105} 
[2026-03-12 20:43:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5926,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5926}} 
[2026-03-12 20:43:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5926,"item_index":1,"menu_item_id":396} 
[2026-03-12 20:43:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5926,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5926}} 
[2026-03-12 20:43:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5926,"item_index":2,"menu_item_id":61} 
[2026-03-12 20:43:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5926,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5926}} 
[2026-03-12 20:43:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5926,"item_index":3,"menu_item_id":56} 
[2026-03-12 20:43:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5926,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5926}} 
[2026-03-12 20:43:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5926,"item_index":4,"menu_item_id":5} 
[2026-03-12 20:43:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5926,"item_index":5,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":1499.0,"discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5926}} 
[2026-03-12 20:43:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5926,"item_index":5,"menu_item_id":62} 
[2026-03-12 20:43:42] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5922,"new_order_id":5926,"order_number":"AZS-120326-023"} 
[2026-03-12 20:43:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5926,"item_index":0,"item_id":28419} 
[2026-03-12 20:43:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5926,"item_index":1,"item_id":28421} 
[2026-03-12 20:43:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5926,"item_index":2,"item_id":28422} 
[2026-03-12 20:43:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5926,"item_index":3,"item_id":28423} 
[2026-03-12 20:43:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5926,"item_index":4,"item_id":28424} 
[2026-03-12 20:43:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5926,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28419},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28421},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28422},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28423},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28424},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null}]} 
[2026-03-12 20:43:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5926,"items_count":6} 
[2026-03-12 20:43:48] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[28433,28434,28435,28436,28437,28438],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1}]} 
[2026-03-12 20:43:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5926,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["105|1|","396|3|","61|1|","56|1|","5|1|","62|1|"],"new_items_map_keys":["105|1|","396|3|","61|1|","56|1|","5|1|","62|1|"]} 
[2026-03-12 20:43:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5926,"order_number":"AZS-120326-023"} 
[2026-03-12 20:43:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5926,"order_number":"AZS-120326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 20:43:48"} 
[2026-03-12 20:44:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5926,"item_index":0,"item_id":28419} 
[2026-03-12 20:44:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5926,"item_index":1,"item_id":28421} 
[2026-03-12 20:44:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5926,"item_index":2,"item_id":28422} 
[2026-03-12 20:44:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5926,"item_index":3,"item_id":28423} 
[2026-03-12 20:44:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5926,"item_index":4,"item_id":28424} 
[2026-03-12 20:44:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5926,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28419},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28421},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28422},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28423},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28424},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null}]} 
[2026-03-12 20:44:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5926,"items_count":6} 
[2026-03-12 20:44:29] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[28433,28434,28435,28436,28437,28438],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1}]} 
[2026-03-12 20:44:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5926,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["105|1|","396|3|","61|1|","56|1|","5|1|","62|1|"],"new_items_map_keys":["105|1|","396|3|","61|1|","56|1|","5|1|","62|1|"]} 
[2026-03-12 20:44:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5926,"order_number":"AZS-120326-023"} 
[2026-03-12 20:44:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5926,"order_number":"AZS-120326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 20:44:29"} 
[2026-03-12 20:46:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5926,"item_index":0,"item_id":28419} 
[2026-03-12 20:46:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5926,"item_index":1,"item_id":28421} 
[2026-03-12 20:46:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5926,"item_index":2,"item_id":28422} 
[2026-03-12 20:46:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5926,"item_index":3,"item_id":28423} 
[2026-03-12 20:46:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5926,"item_index":4,"item_id":28424} 
[2026-03-12 20:46:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5926,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28419},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28421},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28422},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28423},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28424},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null}]} 
[2026-03-12 20:46:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5926,"items_count":6} 
[2026-03-12 20:46:18] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[28433,28434,28435,28436,28437,28438],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1}]} 
[2026-03-12 20:46:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5926,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["105|1|","396|3|","61|1|","56|1|","5|1|","62|1|"],"new_items_map_keys":["105|1|","396|3|","61|1|","56|1|","5|1|","62|1|"]} 
[2026-03-12 20:46:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5926,"order_number":"AZS-120326-023"} 
[2026-03-12 20:46:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5926,"order_number":"AZS-120326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 20:46:18"} 
[2026-03-12 20:48:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5926,"item_index":0,"item_id":28419} 
[2026-03-12 20:48:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5926,"item_index":1,"item_id":28421} 
[2026-03-12 20:48:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5926,"item_index":2,"item_id":28423} 
[2026-03-12 20:48:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5926,"item_index":3,"item_id":28424} 
[2026-03-12 20:48:09] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5926,"order_number":"AZS-120326-023","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 20:48:09"} 
[2026-03-12 20:48:09] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5926,"order_number":"AZS-120326-023","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 20:48:09"} 
[2026-03-12 20:48:09] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5926,"order_number":"AZS-120326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 20:48:09"} 
[2026-03-12 20:48:09] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5926,"order_number":"AZS-120326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 20:48:09"} 
[2026-03-12 20:48:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":6,"order_id":5926,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28419},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28421},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28423},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28424},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null}]} 
[2026-03-12 20:48:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5926,"items_count":5} 
[2026-03-12 20:48:09] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":6,"items_to_remove":[28433,28434,28435,28436,28437,28438],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1}]} 
[2026-03-12 20:48:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5926,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["105|1|","396|3|","61|1|","56|1|","5|1|","62|1|"],"new_items_map_keys":["105|1|","396|3|","56|1|","5|1|","62|1|"]} 
[2026-03-12 20:48:09] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5926,"order_number":"AZS-120326-023","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-12 20:48:09","original_payment_amount":"0.00","grand_total":4364.0,"timestamp":"2026-03-12 20:48:09"} 
[2026-03-12 20:48:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5926,"order_number":"AZS-120326-023"} 
[2026-03-12 20:48:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-023","replaced_order_id":5926} 
[2026-03-12 20:48:09] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5926,"new_order_id":5927,"order_number":"AZS-120326-023","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-12 20:48:09","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-12 20:48:09"} 
[2026-03-12 20:48:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5927,"items_count":5,"items":[{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":62,"quantity":1,"price":1499.0}]} 
[2026-03-12 20:48:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5927,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5927}} 
[2026-03-12 20:48:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5927,"item_index":0,"menu_item_id":105} 
[2026-03-12 20:48:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5927,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5927}} 
[2026-03-12 20:48:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5927,"item_index":1,"menu_item_id":396} 
[2026-03-12 20:48:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5927,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5927}} 
[2026-03-12 20:48:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5927,"item_index":2,"menu_item_id":56} 
[2026-03-12 20:48:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5927,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5927}} 
[2026-03-12 20:48:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5927,"item_index":3,"menu_item_id":5} 
[2026-03-12 20:48:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5927,"item_index":4,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":1499.0,"discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5927}} 
[2026-03-12 20:48:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5927,"item_index":4,"menu_item_id":62} 
[2026-03-12 20:48:09] local.ERROR: Error tracking recipe usage for order 5927: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5927, 105, 196, 1, 500, 0.00, Order #AZS-120326-023 - 1x Mutton Shinwari - Half, 2026-03-12 20:48:09, 2026-03-12 20:48:09))  
[2026-03-12 20:48:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5926,"new_order_id":5927,"order_number":"AZS-120326-023"} 
[2026-03-12 20:48:10] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5926,"new_order_id":5927,"order_number":"AZS-120326-023","route":"api/orders/5926"} 
[2026-03-12 20:48:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T08:48:14.130Z","date_to":"2026-03-12T20:48:14.130Z","per_page":"100"} 
[2026-03-12 20:48:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":5,"unique_order_numbers":24} 
[2026-03-12 20:48:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T08:48:14.112Z","date_to":"2026-03-12T20:48:14.112Z","per_page":"100"} 
[2026-03-12 20:48:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":5,"unique_order_numbers":24} 
[2026-03-12 20:48:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T08:48:14.112Z","date_to":"2026-03-12T20:48:14.112Z","per_page":"100"} 
[2026-03-12 20:48:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":5,"unique_order_numbers":24} 
[2026-03-12 20:48:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5925,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":28429},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28430},{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":28431},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28432}],"validated_items":[{"id":28429,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":28430,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":28431,"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null},{"id":28432,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-12 20:48:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5925,"items_count":4} 
[2026-03-12 20:48:32] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28429,"menu_item_id":85,"quantity":1},{"id":28430,"menu_item_id":2,"quantity":1},{"id":28431,"menu_item_id":13,"quantity":5},{"id":28432,"menu_item_id":5,"quantity":1}]} 
[2026-03-12 20:48:32] local.INFO: PosOrderController::update - Item changes check {"order_id":5925,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["85|1|","2|1|","13|5|","5|1|"],"new_items_map_keys":["85|1|","2|1|","13|5|","5|1|"]} 
[2026-03-12 20:48:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5925,"order_number":"AZS-120326-022"} 
[2026-03-12 20:48:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5925,"order_number":"AZS-120326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 20:48:32"} 
[2026-03-12 20:48:57] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5925,"order_number":"AZS-120326-022","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2400,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 20:48:57"} 
[2026-03-12 20:48:57] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5925,"order_number":"AZS-120326-022","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2400,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 20:48:57"} 
[2026-03-12 20:48:57] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5925,"order_number":"AZS-120326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2400,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 20:48:57"} 
[2026-03-12 20:48:57] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5925,"order_number":"AZS-120326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2400,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 20:48:57"} 
[2026-03-12 20:48:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5925,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":28429},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28430},{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":28431},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28432}],"validated_items":[{"id":28429,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":28430,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":28431,"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null},{"id":28432,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-12 20:48:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5925,"items_count":4} 
[2026-03-12 20:48:57] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28429,"menu_item_id":85,"quantity":1},{"id":28430,"menu_item_id":2,"quantity":1},{"id":28431,"menu_item_id":13,"quantity":5},{"id":28432,"menu_item_id":5,"quantity":1}]} 
[2026-03-12 20:48:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5925,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["85|1|","2|1|","13|5|","5|1|"],"new_items_map_keys":["85|1|","2|1|","13|5|","5|1|"]} 
[2026-03-12 20:48:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5925,"order_number":"AZS-120326-022"} 
[2026-03-12 20:48:57] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5925,"order_number":"AZS-120326-022","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2400,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-12 20:48:57","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 20:48:57"} 
[2026-03-12 20:48:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5925,"order_number":"AZS-120326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 20:48:57"} 
[2026-03-12 20:48:57] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5925,"order_number":"AZS-120326-022","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2400.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-12 20:48:57","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2400,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2400.00","database_verification_match":true,"timestamp":"2026-03-12 20:48:57"} 
[2026-03-12 20:49:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T08:49:02.813Z","date_to":"2026-03-12T20:49:02.813Z","per_page":"100"} 
[2026-03-12 20:49:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":4,"unique_order_numbers":24} 
[2026-03-12 20:49:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T08:49:02.828Z","date_to":"2026-03-12T20:49:02.828Z","per_page":"100"} 
[2026-03-12 20:49:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":4,"unique_order_numbers":24} 
[2026-03-12 20:49:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T08:49:02.813Z","date_to":"2026-03-12T20:49:02.813Z","per_page":"100"} 
[2026-03-12 20:49:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":4,"unique_order_numbers":24} 
[2026-03-12 20:49:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T08:49:18.142Z","date_to":"2026-03-12T20:49:18.142Z","per_page":"100"} 
[2026-03-12 20:49:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":4,"unique_order_numbers":24} 
[2026-03-12 20:49:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T08:49:18.124Z","date_to":"2026-03-12T20:49:18.124Z","per_page":"100"} 
[2026-03-12 20:49:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":4,"unique_order_numbers":24} 
[2026-03-12 20:49:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T08:49:18.124Z","date_to":"2026-03-12T20:49:18.124Z","per_page":"100"} 
[2026-03-12 20:49:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":4,"unique_order_numbers":24} 
[2026-03-12 20:56:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5924,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28426},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":28427},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28428}],"validated_items":[{"id":28426,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28427,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":28428,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-12 20:56:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5924,"items_count":3} 
[2026-03-12 20:56:56] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28426,"menu_item_id":6,"quantity":2},{"id":28427,"menu_item_id":62,"quantity":1},{"id":28428,"menu_item_id":61,"quantity":1}]} 
[2026-03-12 20:56:56] local.INFO: PosOrderController::update - Item changes check {"order_id":5924,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["6|2|","62|1|","61|1|"],"new_items_map_keys":["6|2|","62|1|","61|1|"]} 
[2026-03-12 20:56:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5924,"order_number":"AZS-120326-024"} 
[2026-03-12 20:56:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5924,"order_number":"AZS-120326-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 20:56:56"} 
[2026-03-12 21:01:43] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5924,"order_number":"AZS-120326-024","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2201,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 21:01:43"} 
[2026-03-12 21:01:43] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5924,"order_number":"AZS-120326-024","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2201,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 21:01:43"} 
[2026-03-12 21:01:43] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5924,"order_number":"AZS-120326-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2201,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 21:01:43"} 
[2026-03-12 21:01:43] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5924,"order_number":"AZS-120326-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2201,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 21:01:43"} 
[2026-03-12 21:01:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5924,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28426},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":28427},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28428}],"validated_items":[{"id":28426,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28427,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":28428,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-12 21:01:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5924,"items_count":3} 
[2026-03-12 21:01:43] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28426,"menu_item_id":6,"quantity":2},{"id":28427,"menu_item_id":62,"quantity":1},{"id":28428,"menu_item_id":61,"quantity":1}]} 
[2026-03-12 21:01:43] local.INFO: PosOrderController::update - Item changes check {"order_id":5924,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["6|2|","62|1|","61|1|"],"new_items_map_keys":["6|2|","62|1|","61|1|"]} 
[2026-03-12 21:01:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5924,"order_number":"AZS-120326-024"} 
[2026-03-12 21:01:43] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5924,"order_number":"AZS-120326-024","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2201,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-12 21:01:43","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 21:01:43"} 
[2026-03-12 21:01:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5924,"order_number":"AZS-120326-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 21:01:43"} 
[2026-03-12 21:01:43] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5924,"order_number":"AZS-120326-024","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2201.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-12 21:01:43","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2201,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2201.00","database_verification_match":true,"timestamp":"2026-03-12 21:01:43"} 
[2026-03-12 21:33:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T09:33:40.079Z","date_to":"2026-03-12T21:33:40.079Z","per_page":"100"} 
[2026-03-12 21:33:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T09:33:40.065Z","date_to":"2026-03-12T21:33:40.065Z","per_page":"100"} 
[2026-03-12 21:33:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["paid","paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":3,"unique_order_numbers":24} 
[2026-03-12 21:33:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["paid","paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":3,"unique_order_numbers":24} 
[2026-03-12 21:33:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T09:33:40.065Z","date_to":"2026-03-12T21:33:40.065Z","per_page":"100"} 
[2026-03-12 21:33:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["paid","paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":3,"unique_order_numbers":24} 
[2026-03-12 22:34:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T10:34:37.052Z","date_to":"2026-03-12T22:34:37.052Z","per_page":"100"} 
[2026-03-12 22:34:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-025","AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","paid","paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":4,"unique_order_numbers":25} 
[2026-03-12 22:34:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T10:34:37.065Z","date_to":"2026-03-12T22:34:37.065Z","per_page":"100"} 
[2026-03-12 22:34:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-025","AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","paid","paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":4,"unique_order_numbers":25} 
[2026-03-12 22:34:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T10:34:37.052Z","date_to":"2026-03-12T22:34:37.052Z","per_page":"100"} 
[2026-03-12 22:34:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-025","AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","paid","paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":4,"unique_order_numbers":25} 
[2026-03-12 22:44:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5917,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":28401}],"validated_items":[{"id":28401,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-12 22:44:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5917,"items_count":1} 
[2026-03-12 22:44:24] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28401,"menu_item_id":6,"quantity":2}]} 
[2026-03-12 22:44:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5917,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-12 22:44:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5917,"order_number":"AZS-120326-021"} 
[2026-03-12 22:44:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5917,"order_number":"AZS-120326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-12 22:44:24"} 
[2026-03-12 22:45:09] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5917,"order_number":"AZS-120326-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":400,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 22:45:09"} 
[2026-03-12 22:45:09] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5917,"order_number":"AZS-120326-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":400,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 22:45:09"} 
[2026-03-12 22:45:09] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5917,"order_number":"AZS-120326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":400,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 22:45:09"} 
[2026-03-12 22:45:09] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5917,"order_number":"AZS-120326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":400,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 22:45:09"} 
[2026-03-12 22:45:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5917,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28401}],"validated_items":[{"id":28401,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-12 22:45:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5917,"items_count":1} 
[2026-03-12 22:45:09] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28401,"menu_item_id":6,"quantity":2}]} 
[2026-03-12 22:45:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5917,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-12 22:45:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5917,"order_number":"AZS-120326-021"} 
[2026-03-12 22:45:09] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5917,"order_number":"AZS-120326-021","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":400,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-12 22:45:09","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 22:45:09"} 
[2026-03-12 22:45:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5917,"order_number":"AZS-120326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 22:45:09"} 
[2026-03-12 22:45:09] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5917,"order_number":"AZS-120326-021","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"400.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-12 22:45:09","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":400,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"400.00","database_verification_match":true,"timestamp":"2026-03-12 22:45:09"} 
[2026-03-12 22:45:21] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5918,"order_number":"AZS-120326-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3250,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 22:45:21"} 
[2026-03-12 22:45:21] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5918,"order_number":"AZS-120326-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3250,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 22:45:21"} 
[2026-03-12 22:45:21] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5918,"order_number":"AZS-120326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3250,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 22:45:21"} 
[2026-03-12 22:45:21] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5918,"order_number":"AZS-120326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3250,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 22:45:21"} 
[2026-03-12 22:45:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5918,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":28402},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":28403}],"validated_items":[{"id":28402,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null},{"id":28403,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null}]} 
[2026-03-12 22:45:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5918,"items_count":2} 
[2026-03-12 22:45:21] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28402,"menu_item_id":385,"quantity":1},{"id":28403,"menu_item_id":403,"quantity":1}]} 
[2026-03-12 22:45:21] local.INFO: PosOrderController::update - Item changes check {"order_id":5918,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["385|1|","403|1|"],"new_items_map_keys":["385|1|","403|1|"]} 
[2026-03-12 22:45:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5918,"order_number":"AZS-120326-019"} 
[2026-03-12 22:45:21] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5918,"order_number":"AZS-120326-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3250,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-12 22:45:21","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 22:45:21"} 
[2026-03-12 22:45:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5918,"order_number":"AZS-120326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 22:45:21"} 
[2026-03-12 22:45:21] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5918,"order_number":"AZS-120326-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3250.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-12 22:45:21","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3250,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3250.00","database_verification_match":true,"timestamp":"2026-03-12 22:45:21"} 
[2026-03-12 22:45:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T10:45:25.436Z","date_to":"2026-03-12T22:45:25.436Z","per_page":"100"} 
[2026-03-12 22:45:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-027","AZS-120326-026","AZS-120326-025","AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":4,"unique_order_numbers":27} 
[2026-03-12 22:45:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T10:45:25.452Z","date_to":"2026-03-12T22:45:25.452Z","per_page":"100"} 
[2026-03-12 22:45:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-027","AZS-120326-026","AZS-120326-025","AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":4,"unique_order_numbers":27} 
[2026-03-12 22:45:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T10:45:25.436Z","date_to":"2026-03-12T22:45:25.436Z","per_page":"100"} 
[2026-03-12 22:45:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-027","AZS-120326-026","AZS-120326-025","AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":4,"unique_order_numbers":27} 
[2026-03-12 22:46:39] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5900,"order_number":"AZS-120326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":199,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 22:46:39"} 
[2026-03-12 22:46:39] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5900,"order_number":"AZS-120326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":199,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 22:46:39"} 
[2026-03-12 22:46:39] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5900,"order_number":"AZS-120326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":199,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 22:46:39"} 
[2026-03-12 22:46:39] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5900,"order_number":"AZS-120326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":199,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 22:46:39"} 
[2026-03-12 22:46:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5900,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28335}],"validated_items":[{"id":28335,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-12 22:46:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5900,"items_count":1} 
[2026-03-12 22:46:39] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28335,"menu_item_id":6,"quantity":1}]} 
[2026-03-12 22:46:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5900,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-03-12 22:46:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5900,"order_number":"AZS-120326-013"} 
[2026-03-12 22:46:39] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5900,"order_number":"AZS-120326-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":199,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-12 22:46:39","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 22:46:39"} 
[2026-03-12 22:46:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5900,"order_number":"AZS-120326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 22:46:39"} 
[2026-03-12 22:46:39] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5900,"order_number":"AZS-120326-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"199.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-12 22:46:39","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":199,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"199.00","database_verification_match":true,"timestamp":"2026-03-12 22:46:39"} 
[2026-03-12 22:46:53] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5928,"order_number":"AZS-120326-025","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":220,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 22:46:53"} 
[2026-03-12 22:46:53] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5928,"order_number":"AZS-120326-025","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":220,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 22:46:53"} 
[2026-03-12 22:46:53] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5928,"order_number":"AZS-120326-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":220,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 22:46:53"} 
[2026-03-12 22:46:53] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5928,"order_number":"AZS-120326-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":220,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 22:46:53"} 
[2026-03-12 22:46:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5928,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null,"id":28444}],"validated_items":[{"id":28444,"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-12 22:46:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5928,"items_count":1} 
[2026-03-12 22:46:53] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28444,"menu_item_id":412,"quantity":1}]} 
[2026-03-12 22:46:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5928,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["412|1|"],"new_items_map_keys":["412|1|"]} 
[2026-03-12 22:46:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5928,"order_number":"AZS-120326-025"} 
[2026-03-12 22:46:53] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5928,"order_number":"AZS-120326-025","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":220,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-12 22:46:53","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 22:46:53"} 
[2026-03-12 22:46:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5928,"order_number":"AZS-120326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 22:46:53"} 
[2026-03-12 22:46:53] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5928,"order_number":"AZS-120326-025","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"220.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-12 22:46:53","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":220,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"220.00","database_verification_match":true,"timestamp":"2026-03-12 22:46:53"} 
[2026-03-12 22:48:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5929,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":28445},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":28446},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":28447},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28445,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":28446,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":28447,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 22:48:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5929,"items_count":4} 
[2026-03-12 22:48:44] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28445,"menu_item_id":114,"quantity":1},{"id":28446,"menu_item_id":65,"quantity":1},{"id":28447,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-03-12 22:48:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5929,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["114|1|","65|1|","396|2|"],"new_items_map_keys":["114|1|","65|1|","396|2|","61|1|"]} 
[2026-03-12 22:48:44] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5929,"order_number":"AZS-120326-026"} 
[2026-03-12 22:48:44] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-026","replaced_order_id":5929} 
[2026-03-12 22:48:44] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5932,"items_count":4,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"}]} 
[2026-03-12 22:48:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5932,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5932}} 
[2026-03-12 22:48:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5932,"item_index":0,"menu_item_id":114} 
[2026-03-12 22:48:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5932,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5932}} 
[2026-03-12 22:48:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5932,"item_index":1,"menu_item_id":65} 
[2026-03-12 22:48:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5932,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5932}} 
[2026-03-12 22:48:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5932,"item_index":2,"menu_item_id":396} 
[2026-03-12 22:48:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5932,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5932}} 
[2026-03-12 22:48:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5932,"item_index":3,"menu_item_id":61} 
[2026-03-12 22:48:44] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5929,"new_order_id":5932,"order_number":"AZS-120326-026"} 
[2026-03-12 22:48:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5932,"item_index":0,"item_id":28445} 
[2026-03-12 22:48:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5932,"item_index":1,"item_id":28446} 
[2026-03-12 22:48:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5932,"item_index":2,"item_id":28447} 
[2026-03-12 22:48:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":4,"order_id":5932,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":28445},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":28446},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":28447},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 22:48:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5932,"items_count":5} 
[2026-03-12 22:48:53] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":4,"items_to_remove":[28450,28451,28452,28453],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-12 22:48:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5932,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["114|1|","65|1|","396|2|","61|1|"],"new_items_map_keys":["114|1|","65|1|","396|2|","61|1|","5|1|"]} 
[2026-03-12 22:48:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5932,"order_number":"AZS-120326-026"} 
[2026-03-12 22:48:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-026","replaced_order_id":5932} 
[2026-03-12 22:48:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5933,"items_count":5,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-12 22:48:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5933,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5933}} 
[2026-03-12 22:48:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5933,"item_index":0,"menu_item_id":114} 
[2026-03-12 22:48:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5933,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5933}} 
[2026-03-12 22:48:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5933,"item_index":1,"menu_item_id":65} 
[2026-03-12 22:48:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5933,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5933}} 
[2026-03-12 22:48:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5933,"item_index":2,"menu_item_id":396} 
[2026-03-12 22:48:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5933,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5933}} 
[2026-03-12 22:48:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5933,"item_index":3,"menu_item_id":61} 
[2026-03-12 22:48:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5933,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5933}} 
[2026-03-12 22:48:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5933,"item_index":4,"menu_item_id":5} 
[2026-03-12 22:48:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5932,"new_order_id":5933,"order_number":"AZS-120326-026"} 
[2026-03-12 22:50:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T10:50:32.531Z","date_to":"2026-03-12T22:50:32.531Z","per_page":"100"} 
[2026-03-12 22:50:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T10:50:32.544Z","date_to":"2026-03-12T22:50:32.544Z","per_page":"100"} 
[2026-03-12 22:50:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-028","AZS-120326-027","AZS-120326-026","AZS-120326-025","AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":3,"unique_order_numbers":28} 
[2026-03-12 22:50:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-028","AZS-120326-027","AZS-120326-026","AZS-120326-025","AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":3,"unique_order_numbers":28} 
[2026-03-12 22:50:35] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T10:50:32.531Z","date_to":"2026-03-12T22:50:32.531Z","per_page":"100"} 
[2026-03-12 22:50:35] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":28,"count":28,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-028","AZS-120326-027","AZS-120326-026","AZS-120326-025","AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":3,"unique_order_numbers":28} 
[2026-03-12 22:56:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5930,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":28448},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28448,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 22:56:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5930,"items_count":2} 
[2026-03-12 22:56:06] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28448,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-12 22:56:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5930,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|2|"],"new_items_map_keys":["411|2|","5|1|"]} 
[2026-03-12 22:56:06] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5930,"order_number":"AZS-120326-027"} 
[2026-03-12 22:56:06] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-027","replaced_order_id":5930} 
[2026-03-12 22:56:06] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5935,"items_count":2,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-12 22:56:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5935,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5935}} 
[2026-03-12 22:56:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5935,"item_index":0,"menu_item_id":411} 
[2026-03-12 22:56:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5935,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5935}} 
[2026-03-12 22:56:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5935,"item_index":1,"menu_item_id":5} 
[2026-03-12 22:56:06] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5930,"new_order_id":5935,"order_number":"AZS-120326-027"} 
[2026-03-12 22:57:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5935,"item_index":0,"item_id":28448} 
[2026-03-12 22:57:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":2,"order_id":5935,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":28448},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 22:57:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5935,"items_count":3} 
[2026-03-12 22:57:12] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":2,"items_to_remove":[28460,28461],"items":[{"id":null,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":416,"quantity":1}]} 
[2026-03-12 22:57:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5935,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["411|2|","5|1|"],"new_items_map_keys":["411|2|","5|1|","416|1|"]} 
[2026-03-12 22:57:12] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5935,"order_number":"AZS-120326-027"} 
[2026-03-12 22:57:12] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-027","replaced_order_id":5935} 
[2026-03-12 22:57:12] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5936,"items_count":3,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":416,"quantity":1,"price":"70.00"}]} 
[2026-03-12 22:57:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5936,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5936}} 
[2026-03-12 22:57:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5936,"item_index":0,"menu_item_id":411} 
[2026-03-12 22:57:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5936,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5936}} 
[2026-03-12 22:57:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5936,"item_index":1,"menu_item_id":5} 
[2026-03-12 22:57:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5936,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5936}} 
[2026-03-12 22:57:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5936,"item_index":2,"menu_item_id":416} 
[2026-03-12 22:57:12] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5935,"new_order_id":5936,"order_number":"AZS-120326-027"} 
[2026-03-12 23:11:22] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5931,"order_number":"AZS-120326-028","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 23:11:22"} 
[2026-03-12 23:11:22] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5931,"order_number":"AZS-120326-028","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 23:11:22"} 
[2026-03-12 23:11:22] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5931,"order_number":"AZS-120326-028","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 23:11:22"} 
[2026-03-12 23:11:22] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5931,"order_number":"AZS-120326-028","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 23:11:22"} 
[2026-03-12 23:11:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5931,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28449}],"validated_items":[{"id":28449,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-12 23:11:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5931,"items_count":1} 
[2026-03-12 23:11:22] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28449,"menu_item_id":425,"quantity":1}]} 
[2026-03-12 23:11:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5931,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["425|1|"],"new_items_map_keys":["425|1|"]} 
[2026-03-12 23:11:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5931,"order_number":"AZS-120326-028"} 
[2026-03-12 23:11:22] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5931,"order_number":"AZS-120326-028","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-12 23:11:22","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 23:11:22"} 
[2026-03-12 23:11:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5931,"order_number":"AZS-120326-028","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 23:11:22"} 
[2026-03-12 23:11:22] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5931,"order_number":"AZS-120326-028","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-12 23:11:22","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"100.00","database_verification_match":true,"timestamp":"2026-03-12 23:11:22"} 
[2026-03-12 23:11:32] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5934,"order_number":"AZS-120326-029","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":70,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 23:11:32"} 
[2026-03-12 23:11:32] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5934,"order_number":"AZS-120326-029","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":70,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 23:11:32"} 
[2026-03-12 23:11:32] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5934,"order_number":"AZS-120326-029","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":70,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 23:11:32"} 
[2026-03-12 23:11:32] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5934,"order_number":"AZS-120326-029","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":70,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 23:11:32"} 
[2026-03-12 23:11:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5934,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28459}],"validated_items":[{"id":28459,"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-12 23:11:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5934,"items_count":1} 
[2026-03-12 23:11:32] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28459,"menu_item_id":422,"quantity":1}]} 
[2026-03-12 23:11:32] local.INFO: PosOrderController::update - Item changes check {"order_id":5934,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["422|1|"],"new_items_map_keys":["422|1|"]} 
[2026-03-12 23:11:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5934,"order_number":"AZS-120326-029"} 
[2026-03-12 23:11:32] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5934,"order_number":"AZS-120326-029","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":70,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-12 23:11:32","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 23:11:32"} 
[2026-03-12 23:11:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5934,"order_number":"AZS-120326-029","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 23:11:32"} 
[2026-03-12 23:11:32] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5934,"order_number":"AZS-120326-029","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"70.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-12 23:11:32","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":70,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"70.00","database_verification_match":true,"timestamp":"2026-03-12 23:11:32"} 
[2026-03-12 23:13:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5936,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":28462},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28463},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28464}],"validated_items":[{"id":28462,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":28463,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28464,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-12 23:13:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5936,"items_count":3} 
[2026-03-12 23:13:03] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28462,"menu_item_id":411,"quantity":2},{"id":28463,"menu_item_id":5,"quantity":1},{"id":28464,"menu_item_id":416,"quantity":1}]} 
[2026-03-12 23:13:03] local.INFO: PosOrderController::update - Item changes check {"order_id":5936,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|2|","5|1|","416|1|"],"new_items_map_keys":["411|2|","5|1|","416|1|"]} 
[2026-03-12 23:13:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5936,"order_number":"AZS-120326-027"} 
[2026-03-12 23:13:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5936,"order_number":"AZS-120326-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 23:13:03"} 
[2026-03-12 23:15:47] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5936,"order_number":"AZS-120326-027","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 23:15:47"} 
[2026-03-12 23:15:47] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5936,"order_number":"AZS-120326-027","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 23:15:47"} 
[2026-03-12 23:15:47] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5936,"order_number":"AZS-120326-027","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 23:15:47"} 
[2026-03-12 23:15:47] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5936,"order_number":"AZS-120326-027","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 23:15:47"} 
[2026-03-12 23:15:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5936,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":28462},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28463},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28464}],"validated_items":[{"id":28462,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":28463,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28464,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-12 23:15:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5936,"items_count":3} 
[2026-03-12 23:15:47] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28462,"menu_item_id":411,"quantity":2},{"id":28463,"menu_item_id":5,"quantity":1},{"id":28464,"menu_item_id":416,"quantity":1}]} 
[2026-03-12 23:15:47] local.INFO: PosOrderController::update - Item changes check {"order_id":5936,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|2|","5|1|","416|1|"],"new_items_map_keys":["411|2|","5|1|","416|1|"]} 
[2026-03-12 23:15:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5936,"order_number":"AZS-120326-027"} 
[2026-03-12 23:15:47] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5936,"order_number":"AZS-120326-027","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-12 23:15:47","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 23:15:47"} 
[2026-03-12 23:15:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5936,"order_number":"AZS-120326-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 23:15:47"} 
[2026-03-12 23:15:47] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5936,"order_number":"AZS-120326-027","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-12 23:15:47","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1500.00","database_verification_match":true,"timestamp":"2026-03-12 23:15:47"} 
[2026-03-12 23:33:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5933,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":28454},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":28455},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":28456},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28457},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28458},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28454,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":28455,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":28456,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":28457,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28458,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 23:33:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5933,"items_count":6} 
[2026-03-12 23:33:44] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28454,"menu_item_id":114,"quantity":1},{"id":28455,"menu_item_id":65,"quantity":1},{"id":28456,"menu_item_id":396,"quantity":2},{"id":28457,"menu_item_id":61,"quantity":1},{"id":28458,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":1}]} 
[2026-03-12 23:33:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5933,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["114|1|","65|1|","396|2|","61|1|","5|1|"],"new_items_map_keys":["114|1|","65|1|","396|2|","61|1|","5|1|","13|1|"]} 
[2026-03-12 23:33:44] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5933,"order_number":"AZS-120326-026"} 
[2026-03-12 23:33:44] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-026","replaced_order_id":5933} 
[2026-03-12 23:33:44] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5938,"items_count":6,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":1,"price":"249.00"}]} 
[2026-03-12 23:33:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5938,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5938}} 
[2026-03-12 23:33:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5938,"item_index":0,"menu_item_id":114} 
[2026-03-12 23:33:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5938,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5938}} 
[2026-03-12 23:33:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5938,"item_index":1,"menu_item_id":65} 
[2026-03-12 23:33:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5938,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5938}} 
[2026-03-12 23:33:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5938,"item_index":2,"menu_item_id":396} 
[2026-03-12 23:33:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5938,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5938}} 
[2026-03-12 23:33:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5938,"item_index":3,"menu_item_id":61} 
[2026-03-12 23:33:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5938,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5938}} 
[2026-03-12 23:33:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5938,"item_index":4,"menu_item_id":5} 
[2026-03-12 23:33:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5938,"item_index":5,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5938}} 
[2026-03-12 23:33:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5938,"item_index":5,"menu_item_id":13} 
[2026-03-12 23:33:44] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5933,"new_order_id":5938,"order_number":"AZS-120326-026"} 
[2026-03-12 23:35:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5938,"item_index":0,"item_id":28454} 
[2026-03-12 23:35:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5938,"item_index":1,"item_id":28455} 
[2026-03-12 23:35:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5938,"item_index":2,"item_id":28456} 
[2026-03-12 23:35:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5938,"item_index":3,"item_id":28457} 
[2026-03-12 23:35:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5938,"item_index":4,"item_id":28458} 
[2026-03-12 23:35:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":6,"order_id":5938,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":28454},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":28455},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":28456},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28457},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28458},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-12 23:35:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5938,"items_count":7} 
[2026-03-12 23:35:52] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":6,"items_to_remove":[28468,28469,28470,28471,28472,28473],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1}]} 
[2026-03-12 23:35:52] local.INFO: PosOrderController::update - Item changes check {"order_id":5938,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["114|1|","65|1|","396|2|","61|1|","5|1|","13|1|"],"new_items_map_keys":["114|1|","65|1|","396|2|","61|1|","5|1|","13|1|","50|1|"]} 
[2026-03-12 23:35:52] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5938,"order_number":"AZS-120326-026"} 
[2026-03-12 23:35:52] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-026","replaced_order_id":5938} 
[2026-03-12 23:35:52] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5939,"items_count":7,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":1,"price":"249.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"}]} 
[2026-03-12 23:35:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5939,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5939}} 
[2026-03-12 23:35:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5939,"item_index":0,"menu_item_id":114} 
[2026-03-12 23:35:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5939,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5939}} 
[2026-03-12 23:35:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5939,"item_index":1,"menu_item_id":65} 
[2026-03-12 23:35:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5939,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5939}} 
[2026-03-12 23:35:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5939,"item_index":2,"menu_item_id":396} 
[2026-03-12 23:35:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5939,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5939}} 
[2026-03-12 23:35:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5939,"item_index":3,"menu_item_id":61} 
[2026-03-12 23:35:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5939,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5939}} 
[2026-03-12 23:35:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5939,"item_index":4,"menu_item_id":5} 
[2026-03-12 23:35:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5939,"item_index":5,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5939}} 
[2026-03-12 23:35:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5939,"item_index":5,"menu_item_id":13} 
[2026-03-12 23:35:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5939,"item_index":6,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5939}} 
[2026-03-12 23:35:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5939,"item_index":6,"menu_item_id":50} 
[2026-03-12 23:35:52] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5938,"new_order_id":5939,"order_number":"AZS-120326-026"} 
[2026-03-12 23:41:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T11:41:45.785Z","date_to":"2026-03-12T23:41:45.785Z","per_page":"100"} 
[2026-03-12 23:41:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T11:41:45.802Z","date_to":"2026-03-12T23:41:45.802Z","per_page":"100"} 
[2026-03-12 23:41:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-030","AZS-120326-029","AZS-120326-028","AZS-120326-027","AZS-120326-026","AZS-120326-025","AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":2,"unique_order_numbers":30} 
[2026-03-12 23:41:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-030","AZS-120326-029","AZS-120326-028","AZS-120326-027","AZS-120326-026","AZS-120326-025","AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":2,"unique_order_numbers":30} 
[2026-03-12 23:41:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T11:41:45.785Z","date_to":"2026-03-12T23:41:45.785Z","per_page":"100"} 
[2026-03-12 23:41:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-030","AZS-120326-029","AZS-120326-028","AZS-120326-027","AZS-120326-026","AZS-120326-025","AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":2,"unique_order_numbers":30} 
[2026-03-12 23:42:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5937,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":28465},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":28466},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28467}],"validated_items":[{"id":28465,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":28466,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":28467,"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-12 23:42:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5937,"items_count":3} 
[2026-03-12 23:42:44] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28465,"menu_item_id":411,"quantity":1},{"id":28466,"menu_item_id":416,"quantity":2},{"id":28467,"menu_item_id":422,"quantity":1}]} 
[2026-03-12 23:42:44] local.INFO: PosOrderController::update - Item changes check {"order_id":5937,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|1|","416|2|","422|1|"],"new_items_map_keys":["411|1|","416|2|","422|1|"]} 
[2026-03-12 23:42:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5937,"order_number":"AZS-120326-030"} 
[2026-03-12 23:42:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5937,"order_number":"AZS-120326-030","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 23:42:44"} 
[2026-03-12 23:42:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":5939,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28474},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":28475},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28476},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28477},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28478},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":28479}],"validated_items":[{"id":28474,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":28475,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":28476,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":28477,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28478,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28479,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-12 23:42:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5939,"items_count":6} 
[2026-03-12 23:42:59] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[28480],"items":[{"id":28474,"menu_item_id":114,"quantity":1},{"id":28475,"menu_item_id":65,"quantity":1},{"id":28476,"menu_item_id":396,"quantity":2},{"id":28477,"menu_item_id":61,"quantity":1},{"id":28478,"menu_item_id":5,"quantity":1},{"id":28479,"menu_item_id":13,"quantity":1}]} 
[2026-03-12 23:42:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5939,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["114|1|","65|1|","396|2|","61|1|","5|1|","13|1|","50|1|"],"new_items_map_keys":["114|1|","65|1|","396|2|","61|1|","5|1|","13|1|"]} 
[2026-03-12 23:42:59] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5939,"order_number":"AZS-120326-026"} 
[2026-03-12 23:42:59] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-026","replaced_order_id":5939} 
[2026-03-12 23:42:59] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5940,"items_count":6,"items":[{"menu_item_id":114,"quantity":1,"price":2299.0},{"menu_item_id":65,"quantity":1,"price":1299.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":13,"quantity":1,"price":249.0}]} 
[2026-03-12 23:42:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5940,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5940}} 
[2026-03-12 23:42:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5940,"item_index":0,"menu_item_id":114} 
[2026-03-12 23:42:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5940,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5940}} 
[2026-03-12 23:42:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5940,"item_index":1,"menu_item_id":65} 
[2026-03-12 23:42:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5940,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5940}} 
[2026-03-12 23:42:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5940,"item_index":2,"menu_item_id":396} 
[2026-03-12 23:42:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5940,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5940}} 
[2026-03-12 23:42:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5940,"item_index":3,"menu_item_id":61} 
[2026-03-12 23:42:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5940,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5940}} 
[2026-03-12 23:42:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5940,"item_index":4,"menu_item_id":5} 
[2026-03-12 23:42:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5940,"item_index":5,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5940}} 
[2026-03-12 23:42:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5940,"item_index":5,"menu_item_id":13} 
[2026-03-12 23:42:59] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5939,"new_order_id":5940,"order_number":"AZS-120326-026"} 
[2026-03-12 23:43:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5940,"item_index":0,"item_id":28474} 
[2026-03-12 23:43:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5940,"item_index":1,"item_id":28475} 
[2026-03-12 23:43:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5940,"item_index":2,"item_id":28476} 
[2026-03-12 23:43:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5940,"item_index":3,"item_id":28477} 
[2026-03-12 23:43:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5940,"item_index":4,"item_id":28478} 
[2026-03-12 23:43:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5940,"item_index":5,"item_id":28479} 
[2026-03-12 23:43:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5940,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28474},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":28475},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28476},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28477},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28478},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":28479}],"validated_items":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-12 23:43:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5940,"items_count":6} 
[2026-03-12 23:43:09] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[28481,28482,28483,28484,28485,28486],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":1}]} 
[2026-03-12 23:43:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5940,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","65|1|","396|2|","61|1|","5|1|","13|1|"],"new_items_map_keys":["114|1|","65|1|","396|2|","61|1|","5|1|","13|1|"]} 
[2026-03-12 23:43:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5940,"order_number":"AZS-120326-026"} 
[2026-03-12 23:43:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5940,"order_number":"AZS-120326-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 23:43:09"} 
[2026-03-12 23:44:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5940,"item_index":0,"item_id":28474} 
[2026-03-12 23:44:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5940,"item_index":1,"item_id":28475} 
[2026-03-12 23:44:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5940,"item_index":2,"item_id":28476} 
[2026-03-12 23:44:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5940,"item_index":3,"item_id":28477} 
[2026-03-12 23:44:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5940,"item_index":4,"item_id":28478} 
[2026-03-12 23:44:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5940,"item_index":5,"item_id":28479} 
[2026-03-12 23:44:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5940,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28474},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":28475},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28476},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28477},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28478},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":28479}],"validated_items":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-12 23:44:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5940,"items_count":6} 
[2026-03-12 23:44:31] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[28481,28482,28483,28484,28485,28486],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":1}]} 
[2026-03-12 23:44:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5940,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","65|1|","396|2|","61|1|","5|1|","13|1|"],"new_items_map_keys":["114|1|","65|1|","396|3|","61|1|","5|1|","13|1|"]} 
[2026-03-12 23:44:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5940,"order_number":"AZS-120326-026"} 
[2026-03-12 23:44:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-026","replaced_order_id":5940} 
[2026-03-12 23:44:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5941,"items_count":6,"items":[{"menu_item_id":114,"quantity":1,"price":2299.0},{"menu_item_id":65,"quantity":1,"price":1299.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":13,"quantity":1,"price":249.0}]} 
[2026-03-12 23:44:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5941,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5941}} 
[2026-03-12 23:44:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5941,"item_index":0,"menu_item_id":114} 
[2026-03-12 23:44:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5941,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5941}} 
[2026-03-12 23:44:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5941,"item_index":1,"menu_item_id":65} 
[2026-03-12 23:44:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5941,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5941}} 
[2026-03-12 23:44:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5941,"item_index":2,"menu_item_id":396} 
[2026-03-12 23:44:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5941,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5941}} 
[2026-03-12 23:44:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5941,"item_index":3,"menu_item_id":61} 
[2026-03-12 23:44:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5941,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5941}} 
[2026-03-12 23:44:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5941,"item_index":4,"menu_item_id":5} 
[2026-03-12 23:44:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5941,"item_index":5,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5941}} 
[2026-03-12 23:44:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5941,"item_index":5,"menu_item_id":13} 
[2026-03-12 23:44:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5940,"new_order_id":5941,"order_number":"AZS-120326-026"} 
[2026-03-12 23:44:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5941,"item_index":0,"item_id":28474} 
[2026-03-12 23:44:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5941,"item_index":1,"item_id":28475} 
[2026-03-12 23:44:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5941,"item_index":2,"item_id":28476} 
[2026-03-12 23:44:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5941,"item_index":3,"item_id":28477} 
[2026-03-12 23:44:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5941,"item_index":4,"item_id":28478} 
[2026-03-12 23:44:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5941,"item_index":5,"item_id":28479} 
[2026-03-12 23:44:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5941,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28474},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":28475},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28476},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28477},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28478},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":28479}],"validated_items":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-12 23:44:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5941,"items_count":6} 
[2026-03-12 23:44:37] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[28487,28488,28489,28490,28491,28492],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":1}]} 
[2026-03-12 23:44:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5941,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","65|1|","396|3|","61|1|","5|1|","13|1|"],"new_items_map_keys":["114|1|","65|1|","396|3|","61|1|","5|1|","13|1|"]} 
[2026-03-12 23:44:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5941,"order_number":"AZS-120326-026"} 
[2026-03-12 23:44:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5941,"order_number":"AZS-120326-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-12 23:44:37"} 
[2026-03-12 23:48:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5941,"item_index":0,"item_id":28474} 
[2026-03-12 23:48:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5941,"item_index":1,"item_id":28475} 
[2026-03-12 23:48:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5941,"item_index":2,"item_id":28476} 
[2026-03-12 23:48:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5941,"item_index":3,"item_id":28478} 
[2026-03-12 23:48:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5941,"item_index":4,"item_id":28479} 
[2026-03-12 23:48:33] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5941,"order_number":"AZS-120326-026","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4800,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 23:48:33"} 
[2026-03-12 23:48:33] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5941,"order_number":"AZS-120326-026","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4800,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 23:48:33"} 
[2026-03-12 23:48:33] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5941,"order_number":"AZS-120326-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4800,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 23:48:33"} 
[2026-03-12 23:48:33] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5941,"order_number":"AZS-120326-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4800,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 23:48:33"} 
[2026-03-12 23:48:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":6,"order_id":5941,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28474},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":28475},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28476},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28478},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":28479}],"validated_items":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-12 23:48:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5941,"items_count":5} 
[2026-03-12 23:48:33] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":6,"items_to_remove":[28487,28488,28489,28490,28491,28492],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":1}]} 
[2026-03-12 23:48:33] local.INFO: PosOrderController::update - Item changes check {"order_id":5941,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["114|1|","65|1|","396|3|","61|1|","5|1|","13|1|"],"new_items_map_keys":["114|1|","65|1|","396|3|","5|1|","13|1|"]} 
[2026-03-12 23:48:33] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5941,"order_number":"AZS-120326-026","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":4800,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-12 23:48:33","original_payment_amount":"0.00","grand_total":4314.0,"timestamp":"2026-03-12 23:48:33"} 
[2026-03-12 23:48:33] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5941,"order_number":"AZS-120326-026"} 
[2026-03-12 23:48:33] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-120326-026","replaced_order_id":5941} 
[2026-03-12 23:48:33] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5941,"new_order_id":5942,"order_number":"AZS-120326-026","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"4800.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-12 23:48:33","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4800,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-12 23:48:33"} 
[2026-03-12 23:48:33] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5942,"items_count":5,"items":[{"menu_item_id":114,"quantity":1,"price":2299.0},{"menu_item_id":65,"quantity":1,"price":1299.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":13,"quantity":1,"price":249.0}]} 
[2026-03-12 23:48:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5942,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5942}} 
[2026-03-12 23:48:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5942,"item_index":0,"menu_item_id":114} 
[2026-03-12 23:48:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5942,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5942}} 
[2026-03-12 23:48:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5942,"item_index":1,"menu_item_id":65} 
[2026-03-12 23:48:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5942,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5942}} 
[2026-03-12 23:48:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5942,"item_index":2,"menu_item_id":396} 
[2026-03-12 23:48:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5942,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5942}} 
[2026-03-12 23:48:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5942,"item_index":3,"menu_item_id":5} 
[2026-03-12 23:48:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5942,"item_index":4,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5942}} 
[2026-03-12 23:48:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5942,"item_index":4,"menu_item_id":13} 
[2026-03-12 23:48:33] local.ERROR: Error tracking recipe usage for order 5942: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5942, 114, 77, 1, 100, 0.00, Order #AZS-120326-026 - 1x Chicken Shinwari - Full, 2026-03-12 23:48:33, 2026-03-12 23:48:33))  
[2026-03-12 23:48:33] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5941,"new_order_id":5942,"order_number":"AZS-120326-026"} 
[2026-03-12 23:48:34] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5941,"new_order_id":5942,"order_number":"AZS-120326-026","route":"api/orders/5941"} 
[2026-03-12 23:51:49] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5937,"order_number":"AZS-120326-030","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":810,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 23:51:49"} 
[2026-03-12 23:51:49] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5937,"order_number":"AZS-120326-030","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":810,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-12 23:51:49"} 
[2026-03-12 23:51:49] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5937,"order_number":"AZS-120326-030","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":810,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 23:51:49"} 
[2026-03-12 23:51:49] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5937,"order_number":"AZS-120326-030","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":810,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-12 23:51:49"} 
[2026-03-12 23:51:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5937,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":28465},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":28466},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28467}],"validated_items":[{"id":28465,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":28466,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":28467,"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-12 23:51:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5937,"items_count":3} 
[2026-03-12 23:51:49] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28465,"menu_item_id":411,"quantity":1},{"id":28466,"menu_item_id":416,"quantity":2},{"id":28467,"menu_item_id":422,"quantity":1}]} 
[2026-03-12 23:51:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5937,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|1|","416|2|","422|1|"],"new_items_map_keys":["411|1|","416|2|","422|1|"]} 
[2026-03-12 23:51:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5937,"order_number":"AZS-120326-030"} 
[2026-03-12 23:51:49] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5937,"order_number":"AZS-120326-030","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":810,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-12 23:51:49","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-12 23:51:49"} 
[2026-03-12 23:51:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5937,"order_number":"AZS-120326-030","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-12 23:51:49"} 
[2026-03-12 23:51:49] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5937,"order_number":"AZS-120326-030","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"810.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-12 23:51:49","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":810,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"810.00","database_verification_match":true,"timestamp":"2026-03-12 23:51:49"} 
[2026-03-12 23:51:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T11:51:54.664Z","date_to":"2026-03-12T23:51:54.664Z","per_page":"100"} 
[2026-03-12 23:51:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-030","AZS-120326-029","AZS-120326-028","AZS-120326-027","AZS-120326-026","AZS-120326-025","AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":0,"unique_order_numbers":30} 
[2026-03-12 23:52:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T11:52:04.437Z","date_to":"2026-03-12T23:52:04.437Z","per_page":"100"} 
[2026-03-12 23:52:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-030","AZS-120326-029","AZS-120326-028","AZS-120326-027","AZS-120326-026","AZS-120326-025","AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":0,"unique_order_numbers":30} 
[2026-03-12 23:52:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T11:52:04.429Z","date_to":"2026-03-12T23:52:04.429Z","per_page":"100"} 
[2026-03-12 23:52:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-030","AZS-120326-029","AZS-120326-028","AZS-120326-027","AZS-120326-026","AZS-120326-025","AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":0,"unique_order_numbers":30} 
[2026-03-12 23:52:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T11:52:04.429Z","date_to":"2026-03-12T23:52:04.429Z","per_page":"100"} 
[2026-03-12 23:52:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-030","AZS-120326-029","AZS-120326-028","AZS-120326-027","AZS-120326-026","AZS-120326-025","AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":0,"unique_order_numbers":30} 
[2026-03-12 23:56:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T11:56:05.045Z","date_to":"2026-03-12T23:56:05.045Z","per_page":"100"} 
[2026-03-12 23:56:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-030","AZS-120326-029","AZS-120326-028","AZS-120326-027","AZS-120326-026","AZS-120326-025","AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":0,"unique_order_numbers":30} 
[2026-03-13 08:14:01] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T20:14:01.051Z","date_to":"2026-03-13T08:14:01.051Z","per_page":"100"} 
[2026-03-13 08:14:01] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T20:14:01.014Z","date_to":"2026-03-13T08:14:01.014Z","per_page":"100"} 
[2026-03-13 08:14:01] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-030","AZS-120326-029","AZS-120326-028","AZS-120326-027","AZS-120326-026","AZS-120326-025"],"order_statuses":["paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-13 08:14:01] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-030","AZS-120326-029","AZS-120326-028","AZS-120326-027","AZS-120326-026","AZS-120326-025"],"order_statuses":["paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-13 08:14:01] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T20:14:01.014Z","date_to":"2026-03-13T08:14:01.014Z","per_page":"100"} 
[2026-03-13 08:14:01] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-030","AZS-120326-029","AZS-120326-028","AZS-120326-027","AZS-120326-026","AZS-120326-025"],"order_statuses":["paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-13 08:14:02] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-12T08:14:02.789Z","date_to":"2026-03-13T08:14:02.789Z","per_page":"100"} 
[2026-03-13 08:14:02] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-120326-030","AZS-120326-029","AZS-120326-028","AZS-120326-027","AZS-120326-026","AZS-120326-025","AZS-120326-024","AZS-120326-023","AZS-120326-022","AZS-120326-021","AZS-120326-020","AZS-120326-019","AZS-120326-018","AZS-120326-017","AZS-120326-016","AZS-120326-015","AZS-120326-014","AZS-120326-013","AZS-120326-012","AZS-120326-011","AZS-120326-010","AZS-120326-009","AZS-120326-008","AZS-120326-007","AZS-120326-006","AZS-120326-005","AZS-120326-004","AZS-120326-003","AZS-120326-002","AZS-120326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":0,"unique_order_numbers":30} 
[2026-03-13 13:19:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5945,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":28500},{"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":28500,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-13 13:19:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5945,"items_count":3} 
[2026-03-13 13:19:32] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28500,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":87,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2}]} 
[2026-03-13 13:19:32] local.INFO: PosOrderController::update - Item changes check {"order_id":5945,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","87|1|","396|2|"]} 
[2026-03-13 13:19:32] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5945,"order_number":"AZS-130326-003"} 
[2026-03-13 13:19:32] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-003","replaced_order_id":5945} 
[2026-03-13 13:19:32] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5947,"items_count":3,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":87,"quantity":1,"price":"1999.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"}]} 
[2026-03-13 13:19:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5947,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5947}} 
[2026-03-13 13:19:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5947,"item_index":0,"menu_item_id":417} 
[2026-03-13 13:19:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5947,"item_index":1,"item_data":{"menu_item_id":87,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5947}} 
[2026-03-13 13:19:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5947,"item_index":1,"menu_item_id":87} 
[2026-03-13 13:19:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5947,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5947}} 
[2026-03-13 13:19:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5947,"item_index":2,"menu_item_id":396} 
[2026-03-13 13:19:32] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5945,"new_order_id":5947,"order_number":"AZS-130326-003"} 
[2026-03-13 13:22:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5943,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null,"id":28498},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28498,"menu_item_id":417,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-13 13:22:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5943,"items_count":2} 
[2026-03-13 13:22:45] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28498,"menu_item_id":417,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-13 13:22:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5943,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["417|2|"],"new_items_map_keys":["417|2|","5|1|"]} 
[2026-03-13 13:22:45] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5943,"order_number":"AZS-130326-001"} 
[2026-03-13 13:22:45] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-001","replaced_order_id":5943} 
[2026-03-13 13:22:45] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5949,"items_count":2,"items":[{"menu_item_id":417,"quantity":2,"price":"499.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-13 13:22:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5949,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":2,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":998.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5949}} 
[2026-03-13 13:22:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5949,"item_index":0,"menu_item_id":417} 
[2026-03-13 13:22:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5949,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5949}} 
[2026-03-13 13:22:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5949,"item_index":1,"menu_item_id":5} 
[2026-03-13 13:22:45] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5943,"new_order_id":5949,"order_number":"AZS-130326-001"} 
[2026-03-13 13:28:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5949,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":28507},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28508}],"validated_items":[{"id":28507,"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null},{"id":28508,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-13 13:28:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5949,"items_count":2} 
[2026-03-13 13:28:00] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28507,"menu_item_id":417,"quantity":2},{"id":28508,"menu_item_id":5,"quantity":1}]} 
[2026-03-13 13:28:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5949,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["417|2|","5|1|"],"new_items_map_keys":["417|2|","5|1|"]} 
[2026-03-13 13:28:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5949,"order_number":"AZS-130326-001"} 
[2026-03-13 13:28:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5949,"order_number":"AZS-130326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 13:28:00"} 
[2026-03-13 13:31:43] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5949,"order_number":"AZS-130326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 13:31:43"} 
[2026-03-13 13:31:43] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5949,"order_number":"AZS-130326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 13:31:43"} 
[2026-03-13 13:31:43] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5949,"order_number":"AZS-130326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 13:31:43"} 
[2026-03-13 13:31:43] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5949,"order_number":"AZS-130326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 13:31:43"} 
[2026-03-13 13:31:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5949,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":28507},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28508}],"validated_items":[{"id":28507,"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null},{"id":28508,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-13 13:31:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5949,"items_count":2} 
[2026-03-13 13:31:43] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28507,"menu_item_id":417,"quantity":2},{"id":28508,"menu_item_id":5,"quantity":1}]} 
[2026-03-13 13:31:43] local.INFO: PosOrderController::update - Item changes check {"order_id":5949,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["417|2|","5|1|"],"new_items_map_keys":["417|2|","5|1|"]} 
[2026-03-13 13:31:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5949,"order_number":"AZS-130326-001"} 
[2026-03-13 13:31:43] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5949,"order_number":"AZS-130326-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-13 13:31:43","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 13:31:43"} 
[2026-03-13 13:31:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5949,"order_number":"AZS-130326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 13:31:43"} 
[2026-03-13 13:31:43] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5949,"order_number":"AZS-130326-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-13 13:31:43","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1200.00","database_verification_match":true,"timestamp":"2026-03-13 13:31:43"} 
[2026-03-13 13:34:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5946,"order_number":"AZS-130326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 13:34:27"} 
[2026-03-13 13:34:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5946,"order_number":"AZS-130326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 13:34:27"} 
[2026-03-13 13:34:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5946,"order_number":"AZS-130326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 13:34:27"} 
[2026-03-13 13:34:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5946,"order_number":"AZS-130326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 13:34:27"} 
[2026-03-13 13:34:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5946,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":28501}],"validated_items":[{"id":28501,"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-13 13:34:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5946,"items_count":1} 
[2026-03-13 13:34:27] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28501,"menu_item_id":417,"quantity":2}]} 
[2026-03-13 13:34:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5946,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|2|"],"new_items_map_keys":["417|2|"]} 
[2026-03-13 13:34:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5946,"order_number":"AZS-130326-004"} 
[2026-03-13 13:34:27] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5946,"order_number":"AZS-130326-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-13 13:34:27","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 13:34:27"} 
[2026-03-13 13:34:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5946,"order_number":"AZS-130326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 13:34:27"} 
[2026-03-13 13:34:27] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5946,"order_number":"AZS-130326-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-13 13:34:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-13 13:34:27"} 
[2026-03-13 13:34:38] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5950,"order_number":"AZS-130326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 13:34:38"} 
[2026-03-13 13:34:38] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5950,"order_number":"AZS-130326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 13:34:38"} 
[2026-03-13 13:34:38] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5950,"order_number":"AZS-130326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 13:34:38"} 
[2026-03-13 13:34:38] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5950,"order_number":"AZS-130326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 13:34:38"} 
[2026-03-13 13:34:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5950,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":418,"quantity":100,"price":1,"discount_percent":0,"notes":null,"id":28509}],"validated_items":[{"id":28509,"menu_item_id":418,"quantity":100,"price":1,"discount_percent":0,"notes":null}]} 
[2026-03-13 13:34:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5950,"items_count":1} 
[2026-03-13 13:34:38] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28509,"menu_item_id":418,"quantity":100}]} 
[2026-03-13 13:34:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5950,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["418|100|"],"new_items_map_keys":["418|100|"]} 
[2026-03-13 13:34:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5950,"order_number":"AZS-130326-006"} 
[2026-03-13 13:34:38] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5950,"order_number":"AZS-130326-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-13 13:34:38","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 13:34:38"} 
[2026-03-13 13:34:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5950,"order_number":"AZS-130326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 13:34:38"} 
[2026-03-13 13:34:38] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5950,"order_number":"AZS-130326-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-13 13:34:38","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"100.00","database_verification_match":true,"timestamp":"2026-03-13 13:34:38"} 
[2026-03-13 13:34:49] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5951,"order_number":"AZS-130326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 13:34:49"} 
[2026-03-13 13:34:49] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5951,"order_number":"AZS-130326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 13:34:49"} 
[2026-03-13 13:34:49] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5951,"order_number":"AZS-130326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 13:34:49"} 
[2026-03-13 13:34:49] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5951,"order_number":"AZS-130326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 13:34:49"} 
[2026-03-13 13:34:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5951,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":419,"quantity":1,"price":60,"discount_percent":0,"notes":null,"id":28510},{"menu_item_id":418,"quantity":40,"price":1,"discount_percent":0,"notes":null,"id":28511}],"validated_items":[{"id":28510,"menu_item_id":419,"quantity":1,"price":60,"discount_percent":0,"notes":null},{"id":28511,"menu_item_id":418,"quantity":40,"price":1,"discount_percent":0,"notes":null}]} 
[2026-03-13 13:34:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5951,"items_count":2} 
[2026-03-13 13:34:49] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28510,"menu_item_id":419,"quantity":1},{"id":28511,"menu_item_id":418,"quantity":40}]} 
[2026-03-13 13:34:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5951,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["419|1|","418|40|"],"new_items_map_keys":["419|1|","418|40|"]} 
[2026-03-13 13:34:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5951,"order_number":"AZS-130326-007"} 
[2026-03-13 13:34:49] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5951,"order_number":"AZS-130326-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-13 13:34:49","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 13:34:49"} 
[2026-03-13 13:34:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5951,"order_number":"AZS-130326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 13:34:49"} 
[2026-03-13 13:34:49] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5951,"order_number":"AZS-130326-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-13 13:34:49","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"100.00","database_verification_match":true,"timestamp":"2026-03-13 13:34:49"} 
[2026-03-13 13:46:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5948,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":28505},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null,"id":28506},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":28505,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":28506,"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-13 13:46:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5948,"items_count":4} 
[2026-03-13 13:46:13] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28505,"menu_item_id":98,"quantity":1},{"id":28506,"menu_item_id":50,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-13 13:46:13] local.INFO: PosOrderController::update - Item changes check {"order_id":5948,"has_item_changes":true,"old_items_count":2,"new_items_count":4,"old_items_map_keys":["98|1|","50|3|"],"new_items_map_keys":["98|1|","50|3|","61|1|","2|2|"]} 
[2026-03-13 13:46:13] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5948,"order_number":"AZS-130326-005"} 
[2026-03-13 13:46:13] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-005","replaced_order_id":5948} 
[2026-03-13 13:46:13] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5953,"items_count":4,"items":[{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":50,"quantity":3,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-13 13:46:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5953,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5953}} 
[2026-03-13 13:46:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5953,"item_index":0,"menu_item_id":98} 
[2026-03-13 13:46:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5953,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5953}} 
[2026-03-13 13:46:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5953,"item_index":1,"menu_item_id":50} 
[2026-03-13 13:46:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5953,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5953}} 
[2026-03-13 13:46:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5953,"item_index":2,"menu_item_id":61} 
[2026-03-13 13:46:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5953,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5953}} 
[2026-03-13 13:46:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5953,"item_index":3,"menu_item_id":2} 
[2026-03-13 13:46:13] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5948,"new_order_id":5953,"order_number":"AZS-130326-005"} 
[2026-03-13 13:58:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5944,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28499}],"validated_items":[{"id":28499,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-13 13:58:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5944,"items_count":1} 
[2026-03-13 13:58:37] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28499,"menu_item_id":417,"quantity":1}]} 
[2026-03-13 13:58:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5944,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-13 13:58:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5944,"order_number":"AZS-130326-002"} 
[2026-03-13 13:58:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5944,"order_number":"AZS-130326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 13:58:37"} 
[2026-03-13 14:02:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5947,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28502},{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":28503},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28504}],"validated_items":[{"id":28502,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":28503,"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":28504,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-13 14:02:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5947,"items_count":3} 
[2026-03-13 14:02:24] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28502,"menu_item_id":417,"quantity":1},{"id":28503,"menu_item_id":87,"quantity":1},{"id":28504,"menu_item_id":396,"quantity":2}]} 
[2026-03-13 14:02:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5947,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["417|1|","87|1|","396|2|"],"new_items_map_keys":["417|1|","87|1|","396|2|"]} 
[2026-03-13 14:02:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5947,"order_number":"AZS-130326-003"} 
[2026-03-13 14:02:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5947,"order_number":"AZS-130326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 14:02:24"} 
[2026-03-13 14:02:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5953,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28520},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":28521},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28522},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":28523}],"validated_items":[{"id":28520,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28521,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"id":28522,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28523,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-13 14:02:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5953,"items_count":4} 
[2026-03-13 14:02:36] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28520,"menu_item_id":98,"quantity":1},{"id":28521,"menu_item_id":50,"quantity":3},{"id":28522,"menu_item_id":61,"quantity":1},{"id":28523,"menu_item_id":2,"quantity":2}]} 
[2026-03-13 14:02:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5953,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["98|1|","50|3|","61|1|","2|2|"],"new_items_map_keys":["98|1|","50|3|","61|1|","2|2|"]} 
[2026-03-13 14:02:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5953,"order_number":"AZS-130326-005"} 
[2026-03-13 14:02:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5953,"order_number":"AZS-130326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 14:02:36"} 
[2026-03-13 14:04:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5944,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":28499},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":28499,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-13 14:04:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5944,"items_count":3} 
[2026-03-13 14:04:17] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28499,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2}]} 
[2026-03-13 14:04:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5944,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","113|1|","396|2|"]} 
[2026-03-13 14:04:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5944,"order_number":"AZS-130326-002"} 
[2026-03-13 14:04:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-002","replaced_order_id":5944} 
[2026-03-13 14:04:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5954,"items_count":3,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"}]} 
[2026-03-13 14:04:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5954,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5954}} 
[2026-03-13 14:04:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5954,"item_index":0,"menu_item_id":417} 
[2026-03-13 14:04:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5954,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5954}} 
[2026-03-13 14:04:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5954,"item_index":1,"menu_item_id":113} 
[2026-03-13 14:04:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5954,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5954}} 
[2026-03-13 14:04:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5954,"item_index":2,"menu_item_id":396} 
[2026-03-13 14:04:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5944,"new_order_id":5954,"order_number":"AZS-130326-002"} 
[2026-03-13 14:04:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5954,"item_index":0,"item_id":28499} 
[2026-03-13 14:04:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":5954,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":28499},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-13 14:04:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5954,"items_count":3} 
[2026-03-13 14:04:23] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[28524,28525,28526],"items":[{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2}]} 
[2026-03-13 14:04:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5954,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["417|1|","113|1|","396|2|"],"new_items_map_keys":["417|1|","113|1|","396|2|"]} 
[2026-03-13 14:04:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5954,"order_number":"AZS-130326-002"} 
[2026-03-13 14:04:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5954,"order_number":"AZS-130326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-13 14:04:23"} 
[2026-03-13 14:14:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5955,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":9,"discount_percent":0,"notes":null,"id":28527}],"validated_items":[{"id":28527,"menu_item_id":286,"quantity":9,"discount_percent":0,"notes":null}]} 
[2026-03-13 14:14:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5955,"items_count":1} 
[2026-03-13 14:14:10] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28527,"menu_item_id":286,"quantity":9}]} 
[2026-03-13 14:14:10] local.INFO: PosOrderController::update - Item changes check {"order_id":5955,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["286|9|"],"new_items_map_keys":["286|9|"]} 
[2026-03-13 14:14:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5955,"order_number":"AZS-130326-009"} 
[2026-03-13 14:14:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5955,"order_number":"AZS-130326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-13 14:14:10"} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5952,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":28512},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":28513},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":28514},{"menu_item_id":52,"quantity":1,"discount_percent":0,"notes":null,"id":28515},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28516},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28517},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28518},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":28519},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28512,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":28513,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"id":28514,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":28515,"menu_item_id":52,"quantity":1,"discount_percent":0,"notes":null},{"id":28516,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28517,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28518,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":28519,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5952,"items_count":9} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28512,"menu_item_id":113,"quantity":1},{"id":28513,"menu_item_id":63,"quantity":1},{"id":28514,"menu_item_id":50,"quantity":2},{"id":28515,"menu_item_id":52,"quantity":1},{"id":28516,"menu_item_id":61,"quantity":1},{"id":28517,"menu_item_id":56,"quantity":1},{"id":28518,"menu_item_id":5,"quantity":1},{"id":28519,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5952,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["113|1|","63|1|","50|2|","52|1|","61|1|","56|1|","5|1|","396|1|"],"new_items_map_keys":["113|1|","63|1|","50|2|","52|1|","61|1|","56|1|","5|1|","396|1|","3|1|"]} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5952,"order_number":"AZS-130326-008"} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-008","replaced_order_id":5952} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5956,"items_count":9,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":63,"quantity":1,"price":"1099.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":52,"quantity":1,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5956,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5956}} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5956,"item_index":0,"menu_item_id":113} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5956,"item_index":1,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5956}} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5956,"item_index":1,"menu_item_id":63} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5956,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5956}} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5956,"item_index":2,"menu_item_id":50} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5956,"item_index":3,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5956}} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5956,"item_index":3,"menu_item_id":52} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5956,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5956}} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5956,"item_index":4,"menu_item_id":61} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5956,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5956}} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5956,"item_index":5,"menu_item_id":56} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5956,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5956}} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5956,"item_index":6,"menu_item_id":5} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5956,"item_index":7,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5956}} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5956,"item_index":7,"menu_item_id":396} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5956,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5956}} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5956,"item_index":8,"menu_item_id":3} 
[2026-03-13 14:14:22] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5952,"new_order_id":5956,"order_number":"AZS-130326-008"} 
[2026-03-13 14:17:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T02:16:59.793Z","date_to":"2026-03-13T14:16:59.793Z","per_page":"100"} 
[2026-03-13 14:17:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T02:16:59.777Z","date_to":"2026-03-13T14:16:59.777Z","per_page":"100"} 
[2026-03-13 14:17:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","paid","pending","paid","pending","pending","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":5,"unique_order_numbers":9} 
[2026-03-13 14:17:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","paid","pending","paid","pending","pending","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":5,"unique_order_numbers":9} 
[2026-03-13 14:17:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T02:16:59.777Z","date_to":"2026-03-13T14:16:59.777Z","per_page":"100"} 
[2026-03-13 14:17:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","paid","pending","paid","pending","pending","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":5,"unique_order_numbers":9} 
[2026-03-13 14:17:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5947,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28502},{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":28503},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28504}],"validated_items":[{"id":28502,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":28503,"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":28504,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-13 14:17:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5947,"items_count":3} 
[2026-03-13 14:17:58] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28502,"menu_item_id":417,"quantity":1},{"id":28503,"menu_item_id":87,"quantity":1},{"id":28504,"menu_item_id":396,"quantity":2}]} 
[2026-03-13 14:17:58] local.INFO: PosOrderController::update - Item changes check {"order_id":5947,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["417|1|","87|1|","396|2|"],"new_items_map_keys":["417|1|","87|1|","396|2|"]} 
[2026-03-13 14:17:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5947,"order_number":"AZS-130326-003"} 
[2026-03-13 14:17:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5947,"order_number":"AZS-130326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 14:17:58"} 
[2026-03-13 14:18:15] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5947,"order_number":"AZS-130326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 14:18:15"} 
[2026-03-13 14:18:15] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5947,"order_number":"AZS-130326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 14:18:15"} 
[2026-03-13 14:18:15] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5947,"order_number":"AZS-130326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 14:18:15"} 
[2026-03-13 14:18:15] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5947,"order_number":"AZS-130326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 14:18:15"} 
[2026-03-13 14:18:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5947,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28502},{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":28503},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28504}],"validated_items":[{"id":28502,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":28503,"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":28504,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-13 14:18:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5947,"items_count":3} 
[2026-03-13 14:18:15] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28502,"menu_item_id":417,"quantity":1},{"id":28503,"menu_item_id":87,"quantity":1},{"id":28504,"menu_item_id":396,"quantity":2}]} 
[2026-03-13 14:18:15] local.INFO: PosOrderController::update - Item changes check {"order_id":5947,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["417|1|","87|1|","396|2|"],"new_items_map_keys":["417|1|","87|1|","396|2|"]} 
[2026-03-13 14:18:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5947,"order_number":"AZS-130326-003"} 
[2026-03-13 14:18:15] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5947,"order_number":"AZS-130326-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-13 14:18:15","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 14:18:15"} 
[2026-03-13 14:18:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5947,"order_number":"AZS-130326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 14:18:15"} 
[2026-03-13 14:18:15] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5947,"order_number":"AZS-130326-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-13 14:18:15","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-03-13 14:18:15"} 
[2026-03-13 14:18:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5953,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28520},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":28521},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28522},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":28523}],"validated_items":[{"id":28520,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28521,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"id":28522,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28523,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-13 14:18:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5953,"items_count":4} 
[2026-03-13 14:18:26] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28520,"menu_item_id":98,"quantity":1},{"id":28521,"menu_item_id":50,"quantity":3},{"id":28522,"menu_item_id":61,"quantity":1},{"id":28523,"menu_item_id":2,"quantity":2}]} 
[2026-03-13 14:18:26] local.INFO: PosOrderController::update - Item changes check {"order_id":5953,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["98|1|","50|3|","61|1|","2|2|"],"new_items_map_keys":["98|1|","50|3|","61|1|","2|2|"]} 
[2026-03-13 14:18:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5953,"order_number":"AZS-130326-005"} 
[2026-03-13 14:18:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5953,"order_number":"AZS-130326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 14:18:26"} 
[2026-03-13 14:18:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":1,"order_id":5953,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":28520},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null,"id":28521},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null,"id":28523}],"validated_items":[{"id":28520,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":28521,"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"id":28523,"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-13 14:18:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5953,"items_count":3} 
[2026-03-13 14:18:48] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":1,"items_to_remove":[28522],"items":[{"id":28520,"menu_item_id":98,"quantity":1},{"id":28521,"menu_item_id":50,"quantity":3},{"id":28523,"menu_item_id":2,"quantity":2}]} 
[2026-03-13 14:18:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5953,"has_item_changes":true,"old_items_count":4,"new_items_count":3,"old_items_map_keys":["98|1|","50|3|","61|1|","2|2|"],"new_items_map_keys":["98|1|","50|3|","2|2|"]} 
[2026-03-13 14:18:48] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5953,"order_number":"AZS-130326-005"} 
[2026-03-13 14:18:48] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-005","replaced_order_id":5953} 
[2026-03-13 14:18:48] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5957,"items_count":3,"items":[{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":50,"quantity":3,"price":"129.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-13 14:18:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5957,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5957}} 
[2026-03-13 14:18:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5957,"item_index":0,"menu_item_id":98} 
[2026-03-13 14:18:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5957,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5957}} 
[2026-03-13 14:18:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5957,"item_index":1,"menu_item_id":50} 
[2026-03-13 14:18:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5957,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5957}} 
[2026-03-13 14:18:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5957,"item_index":2,"menu_item_id":2} 
[2026-03-13 14:18:48] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5953,"new_order_id":5957,"order_number":"AZS-130326-005"} 
[2026-03-13 14:19:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5957,"item_index":0,"item_id":28520} 
[2026-03-13 14:19:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5957,"item_index":1,"item_id":28521} 
[2026-03-13 14:19:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5957,"item_index":2,"item_id":28523} 
[2026-03-13 14:19:01] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5957,"order_number":"AZS-130326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 14:19:01"} 
[2026-03-13 14:19:01] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5957,"order_number":"AZS-130326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 14:19:01"} 
[2026-03-13 14:19:01] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5957,"order_number":"AZS-130326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 14:19:01"} 
[2026-03-13 14:19:01] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5957,"order_number":"AZS-130326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 14:19:01"} 
[2026-03-13 14:19:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":5957,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28520},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":28521},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":28523}],"validated_items":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-13 14:19:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5957,"items_count":3} 
[2026-03-13 14:19:01] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[28537,28538,28539],"items":[{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":50,"quantity":3},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-13 14:19:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5957,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["98|1|","50|3|","2|2|"],"new_items_map_keys":["98|1|","50|3|","2|2|"]} 
[2026-03-13 14:19:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5957,"order_number":"AZS-130326-005"} 
[2026-03-13 14:19:01] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5957,"order_number":"AZS-130326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-13 14:19:01","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 14:19:01"} 
[2026-03-13 14:19:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5957,"order_number":"AZS-130326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 14:19:01"} 
[2026-03-13 14:19:01] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5957,"order_number":"AZS-130326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-13 14:19:01","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-13 14:19:01"} 
[2026-03-13 14:19:35] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T02:19:34.994Z","date_to":"2026-03-13T14:19:34.994Z","per_page":"100"} 
[2026-03-13 14:19:35] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","pending","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":3,"unique_order_numbers":9} 
[2026-03-13 14:19:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T02:19:35.010Z","date_to":"2026-03-13T14:19:35.010Z","per_page":"100"} 
[2026-03-13 14:19:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","pending","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":3,"unique_order_numbers":9} 
[2026-03-13 14:19:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T02:19:34.994Z","date_to":"2026-03-13T14:19:34.994Z","per_page":"100"} 
[2026-03-13 14:19:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","pending","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":3,"unique_order_numbers":9} 
[2026-03-13 14:42:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5956,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28528},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":28529},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":28530},{"menu_item_id":52,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28531},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28532},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28533},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28534},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28535},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28536}],"validated_items":[{"id":28528,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28529,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":28530,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":28531,"menu_item_id":52,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":28532,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28533,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28534,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28535,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28536,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-13 14:42:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5956,"items_count":9} 
[2026-03-13 14:42:59] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28528,"menu_item_id":113,"quantity":1},{"id":28529,"menu_item_id":63,"quantity":1},{"id":28530,"menu_item_id":50,"quantity":2},{"id":28531,"menu_item_id":52,"quantity":1},{"id":28532,"menu_item_id":61,"quantity":1},{"id":28533,"menu_item_id":56,"quantity":1},{"id":28534,"menu_item_id":5,"quantity":1},{"id":28535,"menu_item_id":396,"quantity":1},{"id":28536,"menu_item_id":3,"quantity":1}]} 
[2026-03-13 14:42:59] local.INFO: PosOrderController::update - Item changes check {"order_id":5956,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["113|1|","63|1|","50|2|","52|1|","61|1|","56|1|","5|1|","396|1|","3|1|"],"new_items_map_keys":["113|1|","63|1|","50|2|","52|1|","61|1|","56|1|","5|1|","396|1|","3|1|"]} 
[2026-03-13 14:42:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5956,"order_number":"AZS-130326-008"} 
[2026-03-13 14:42:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5956,"order_number":"AZS-130326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 14:42:59"} 
[2026-03-13 14:48:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":1,"order_id":5956,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":28528},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":28529},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":28530},{"menu_item_id":52,"quantity":1,"discount_percent":0,"notes":null,"id":28531},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28532},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28533},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":28535},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":28536}],"validated_items":[{"id":28528,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":28529,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"id":28530,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":28531,"menu_item_id":52,"quantity":1,"discount_percent":0,"notes":null},{"id":28532,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28533,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28535,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":28536,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-13 14:48:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5956,"items_count":8} 
[2026-03-13 14:48:29] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":1,"items_to_remove":[28534],"items":[{"id":28528,"menu_item_id":113,"quantity":1},{"id":28529,"menu_item_id":63,"quantity":1},{"id":28530,"menu_item_id":50,"quantity":2},{"id":28531,"menu_item_id":52,"quantity":1},{"id":28532,"menu_item_id":61,"quantity":1},{"id":28533,"menu_item_id":56,"quantity":1},{"id":28535,"menu_item_id":396,"quantity":1},{"id":28536,"menu_item_id":3,"quantity":1}]} 
[2026-03-13 14:48:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5956,"has_item_changes":true,"old_items_count":9,"new_items_count":8,"old_items_map_keys":["113|1|","63|1|","50|2|","52|1|","61|1|","56|1|","5|1|","396|1|","3|1|"],"new_items_map_keys":["113|1|","63|1|","50|2|","52|1|","61|1|","56|1|","396|1|","3|1|"]} 
[2026-03-13 14:48:29] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5956,"order_number":"AZS-130326-008"} 
[2026-03-13 14:48:29] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-008","replaced_order_id":5956} 
[2026-03-13 14:48:29] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5959,"items_count":8,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":63,"quantity":1,"price":"1099.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":52,"quantity":1,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-13 14:48:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5959,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5959}} 
[2026-03-13 14:48:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5959,"item_index":0,"menu_item_id":113} 
[2026-03-13 14:48:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5959,"item_index":1,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5959}} 
[2026-03-13 14:48:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5959,"item_index":1,"menu_item_id":63} 
[2026-03-13 14:48:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5959,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5959}} 
[2026-03-13 14:48:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5959,"item_index":2,"menu_item_id":50} 
[2026-03-13 14:48:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5959,"item_index":3,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5959}} 
[2026-03-13 14:48:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5959,"item_index":3,"menu_item_id":52} 
[2026-03-13 14:48:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5959,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5959}} 
[2026-03-13 14:48:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5959,"item_index":4,"menu_item_id":61} 
[2026-03-13 14:48:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5959,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5959}} 
[2026-03-13 14:48:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5959,"item_index":5,"menu_item_id":56} 
[2026-03-13 14:48:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5959,"item_index":6,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5959}} 
[2026-03-13 14:48:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5959,"item_index":6,"menu_item_id":396} 
[2026-03-13 14:48:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5959,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5959}} 
[2026-03-13 14:48:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5959,"item_index":7,"menu_item_id":3} 
[2026-03-13 14:48:29] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5956,"new_order_id":5959,"order_number":"AZS-130326-008"} 
[2026-03-13 14:48:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5959,"item_index":0,"item_id":28528} 
[2026-03-13 14:48:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5959,"item_index":1,"item_id":28529} 
[2026-03-13 14:48:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5959,"item_index":2,"item_id":28530} 
[2026-03-13 14:48:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5959,"item_index":3,"item_id":28531} 
[2026-03-13 14:48:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5959,"item_index":4,"item_id":28532} 
[2026-03-13 14:48:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5959,"item_index":5,"item_id":28533} 
[2026-03-13 14:48:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5959,"item_index":6,"item_id":28535} 
[2026-03-13 14:48:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5959,"item_index":7,"item_id":28536} 
[2026-03-13 14:48:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":8,"order_id":5959,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28528},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":28529},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":28530},{"menu_item_id":52,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28531},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28532},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28533},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28535},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28536}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-13 14:48:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5959,"items_count":8} 
[2026-03-13 14:48:33] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":8,"items_to_remove":[28551,28552,28553,28554,28555,28556,28557,28558],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":63,"quantity":1},{"id":null,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":52,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-13 14:48:33] local.INFO: PosOrderController::update - Item changes check {"order_id":5959,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["113|1|","63|1|","50|2|","52|1|","61|1|","56|1|","396|1|","3|1|"],"new_items_map_keys":["113|1|","63|1|","50|2|","52|1|","61|1|","56|1|","396|1|","3|1|"]} 
[2026-03-13 14:48:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5959,"order_number":"AZS-130326-008"} 
[2026-03-13 14:48:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5959,"order_number":"AZS-130326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 14:48:33"} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":1,"order_id":5958,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":28540},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":28541},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28543},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28544},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":28545},{"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null,"id":28546},{"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null,"id":28547},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":28548},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":28549},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28550},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28540,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":28541,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":28543,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28544,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28545,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":28546,"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null},{"id":28547,"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null},{"id":28548,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"id":28549,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":28550,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5958,"items_count":11} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":1,"items_to_remove":[28542],"items":[{"id":28540,"menu_item_id":113,"quantity":1},{"id":28541,"menu_item_id":96,"quantity":1},{"id":28543,"menu_item_id":61,"quantity":1},{"id":28544,"menu_item_id":56,"quantity":1},{"id":28545,"menu_item_id":50,"quantity":1},{"id":28546,"menu_item_id":54,"quantity":1},{"id":28547,"menu_item_id":55,"quantity":1},{"id":28548,"menu_item_id":48,"quantity":1},{"id":28549,"menu_item_id":396,"quantity":1},{"id":28550,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":65,"quantity":1}]} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Item changes check {"order_id":5958,"has_item_changes":true,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["113|1|","96|1|","66|1|","61|1|","56|1|","50|1|","54|1|","55|1|","48|1|","396|1|","5|1|"],"new_items_map_keys":["113|1|","96|1|","61|1|","56|1|","50|1|","54|1|","55|1|","48|1|","396|1|","5|1|","65|1|"]} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5958,"order_number":"AZS-130326-010"} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-010","replaced_order_id":5958} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5960,"items_count":11,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":54,"quantity":1,"price":"159.00"},{"menu_item_id":55,"quantity":1,"price":"159.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"}]} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5960,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5960}} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5960,"item_index":0,"menu_item_id":113} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5960,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5960}} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5960,"item_index":1,"menu_item_id":96} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5960,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5960}} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5960,"item_index":2,"menu_item_id":61} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5960,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5960}} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5960,"item_index":3,"menu_item_id":56} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5960,"item_index":4,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5960}} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5960,"item_index":4,"menu_item_id":50} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5960,"item_index":5,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5960}} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5960,"item_index":5,"menu_item_id":54} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5960,"item_index":6,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5960}} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5960,"item_index":6,"menu_item_id":55} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5960,"item_index":7,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5960}} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5960,"item_index":7,"menu_item_id":48} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5960,"item_index":8,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5960}} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5960,"item_index":8,"menu_item_id":396} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5960,"item_index":9,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5960}} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5960,"item_index":9,"menu_item_id":5} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5960,"item_index":10,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5960}} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5960,"item_index":10,"menu_item_id":65} 
[2026-03-13 14:51:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5958,"new_order_id":5960,"order_number":"AZS-130326-010"} 
[2026-03-13 14:54:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5954,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":28524},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":28525},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":28526},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28524,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":28525,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":28526,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-13 14:54:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5954,"items_count":4} 
[2026-03-13 14:54:05] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28524,"menu_item_id":417,"quantity":1},{"id":28525,"menu_item_id":113,"quantity":1},{"id":28526,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-13 14:54:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5954,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["417|1|","113|1|","396|2|"],"new_items_map_keys":["417|1|","113|1|","396|2|","5|1|"]} 
[2026-03-13 14:54:05] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5954,"order_number":"AZS-130326-002"} 
[2026-03-13 14:54:05] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-002","replaced_order_id":5954} 
[2026-03-13 14:54:05] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5961,"items_count":4,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-13 14:54:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5961,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5961}} 
[2026-03-13 14:54:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5961,"item_index":0,"menu_item_id":417} 
[2026-03-13 14:54:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5961,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5961}} 
[2026-03-13 14:54:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5961,"item_index":1,"menu_item_id":113} 
[2026-03-13 14:54:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5961,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5961}} 
[2026-03-13 14:54:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5961,"item_index":2,"menu_item_id":396} 
[2026-03-13 14:54:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5961,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5961}} 
[2026-03-13 14:54:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5961,"item_index":3,"menu_item_id":5} 
[2026-03-13 14:54:05] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5954,"new_order_id":5961,"order_number":"AZS-130326-002"} 
[2026-03-13 14:54:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5961,"item_index":0,"item_id":28524} 
[2026-03-13 14:54:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5961,"item_index":1,"item_id":28525} 
[2026-03-13 14:54:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5961,"item_index":2,"item_id":28526} 
[2026-03-13 14:54:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5961,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28524},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28525},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28526},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-13 14:54:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5961,"items_count":4} 
[2026-03-13 14:54:14] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[28570,28571,28572,28573],"items":[{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-13 14:54:14] local.INFO: PosOrderController::update - Item changes check {"order_id":5961,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["417|1|","113|1|","396|2|","5|1|"],"new_items_map_keys":["417|1|","113|1|","396|2|","5|1|"]} 
[2026-03-13 14:54:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5961,"order_number":"AZS-130326-002"} 
[2026-03-13 14:54:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5961,"order_number":"AZS-130326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 14:54:14"} 
[2026-03-13 14:56:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5959,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28551},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":28552},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":28553},{"menu_item_id":52,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28554},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28555},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28556},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28557},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28558}],"validated_items":[{"id":28551,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28552,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":28553,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":28554,"menu_item_id":52,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":28555,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28556,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28557,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28558,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-13 14:56:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5959,"items_count":8} 
[2026-03-13 14:56:18] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28551,"menu_item_id":113,"quantity":1},{"id":28552,"menu_item_id":63,"quantity":1},{"id":28553,"menu_item_id":50,"quantity":2},{"id":28554,"menu_item_id":52,"quantity":1},{"id":28555,"menu_item_id":61,"quantity":1},{"id":28556,"menu_item_id":56,"quantity":1},{"id":28557,"menu_item_id":396,"quantity":1},{"id":28558,"menu_item_id":3,"quantity":1}]} 
[2026-03-13 14:56:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5959,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["113|1|","63|1|","50|2|","52|1|","61|1|","56|1|","396|1|","3|1|"],"new_items_map_keys":["113|1|","63|1|","50|2|","52|1|","61|1|","56|1|","396|1|","3|1|"]} 
[2026-03-13 14:56:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5959,"order_number":"AZS-130326-008"} 
[2026-03-13 14:56:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5959,"order_number":"AZS-130326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 14:56:18"} 
[2026-03-13 14:56:49] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5959,"order_number":"AZS-130326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 14:56:49"} 
[2026-03-13 14:56:49] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5959,"order_number":"AZS-130326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 14:56:49"} 
[2026-03-13 14:56:49] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5959,"order_number":"AZS-130326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 14:56:49"} 
[2026-03-13 14:56:49] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5959,"order_number":"AZS-130326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 14:56:49"} 
[2026-03-13 14:56:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":5959,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28551},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":28552},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":28553},{"menu_item_id":52,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28554},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28555},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28556},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28557},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28558}],"validated_items":[{"id":28551,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28552,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":28553,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":28554,"menu_item_id":52,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":28555,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28556,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28557,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28558,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-13 14:56:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5959,"items_count":8} 
[2026-03-13 14:56:50] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28551,"menu_item_id":113,"quantity":1},{"id":28552,"menu_item_id":63,"quantity":1},{"id":28553,"menu_item_id":50,"quantity":2},{"id":28554,"menu_item_id":52,"quantity":1},{"id":28555,"menu_item_id":61,"quantity":1},{"id":28556,"menu_item_id":56,"quantity":1},{"id":28557,"menu_item_id":396,"quantity":1},{"id":28558,"menu_item_id":3,"quantity":1}]} 
[2026-03-13 14:56:50] local.INFO: PosOrderController::update - Item changes check {"order_id":5959,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["113|1|","63|1|","50|2|","52|1|","61|1|","56|1|","396|1|","3|1|"],"new_items_map_keys":["113|1|","63|1|","50|2|","52|1|","61|1|","56|1|","396|1|","3|1|"]} 
[2026-03-13 14:56:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5959,"order_number":"AZS-130326-008"} 
[2026-03-13 14:56:50] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5959,"order_number":"AZS-130326-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-13 14:56:49","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 14:56:50"} 
[2026-03-13 14:56:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5959,"order_number":"AZS-130326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 14:56:50"} 
[2026-03-13 14:56:50] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5959,"order_number":"AZS-130326-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-13 14:56:49","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3500.00","database_verification_match":true,"timestamp":"2026-03-13 14:56:50"} 
[2026-03-13 14:58:10] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5961,"order_number":"AZS-130326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 14:58:10"} 
[2026-03-13 14:58:10] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5961,"order_number":"AZS-130326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 14:58:10"} 
[2026-03-13 14:58:10] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5961,"order_number":"AZS-130326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 14:58:10"} 
[2026-03-13 14:58:10] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5961,"order_number":"AZS-130326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 14:58:10"} 
[2026-03-13 14:58:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5961,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28570},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28571},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28572},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28573}],"validated_items":[{"id":28570,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":28571,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28572,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":28573,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-13 14:58:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5961,"items_count":4} 
[2026-03-13 14:58:10] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28570,"menu_item_id":417,"quantity":1},{"id":28571,"menu_item_id":113,"quantity":1},{"id":28572,"menu_item_id":396,"quantity":2},{"id":28573,"menu_item_id":5,"quantity":1}]} 
[2026-03-13 14:58:10] local.INFO: PosOrderController::update - Item changes check {"order_id":5961,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["417|1|","113|1|","396|2|","5|1|"],"new_items_map_keys":["417|1|","113|1|","396|2|","5|1|"]} 
[2026-03-13 14:58:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5961,"order_number":"AZS-130326-002"} 
[2026-03-13 14:58:10] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5961,"order_number":"AZS-130326-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-13 14:58:10","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 14:58:10"} 
[2026-03-13 14:58:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5961,"order_number":"AZS-130326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 14:58:10"} 
[2026-03-13 14:58:10] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5961,"order_number":"AZS-130326-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-13 14:58:10","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-03-13 14:58:10"} 
[2026-03-13 15:09:20] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5955,"order_number":"AZS-130326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":140,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 15:09:20"} 
[2026-03-13 15:09:20] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5955,"order_number":"AZS-130326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":140,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 15:09:20"} 
[2026-03-13 15:09:20] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5955,"order_number":"AZS-130326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":140,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 15:09:20"} 
[2026-03-13 15:09:20] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5955,"order_number":"AZS-130326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":140,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 15:09:20"} 
[2026-03-13 15:09:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5955,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":9,"price":15,"discount_percent":0,"notes":null,"id":28527}],"validated_items":[{"id":28527,"menu_item_id":286,"quantity":9,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-13 15:09:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5955,"items_count":1} 
[2026-03-13 15:09:20] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28527,"menu_item_id":286,"quantity":9}]} 
[2026-03-13 15:09:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5955,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["286|9|"],"new_items_map_keys":["286|9|"]} 
[2026-03-13 15:09:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5955,"order_number":"AZS-130326-009"} 
[2026-03-13 15:09:20] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5955,"order_number":"AZS-130326-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":140,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-13 15:09:20","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 15:09:20"} 
[2026-03-13 15:09:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5955,"order_number":"AZS-130326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 15:09:20"} 
[2026-03-13 15:09:20] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5955,"order_number":"AZS-130326-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"140.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-13 15:09:20","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":140,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"140.00","database_verification_match":true,"timestamp":"2026-03-13 15:09:20"} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":1,"order_id":5960,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":28560},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28561},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":28562},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":28563},{"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null,"id":28564},{"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null,"id":28565},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":28566},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":28567},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28568},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":28569},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28560,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":28561,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28562,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":28563,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":28564,"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null},{"id":28565,"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null},{"id":28566,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"id":28567,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":28568,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":28569,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5960,"items_count":12} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":1,"items_to_remove":[28559],"items":[{"id":28560,"menu_item_id":96,"quantity":1},{"id":28561,"menu_item_id":61,"quantity":1},{"id":28562,"menu_item_id":56,"quantity":2},{"id":28563,"menu_item_id":50,"quantity":1},{"id":28564,"menu_item_id":54,"quantity":1},{"id":28565,"menu_item_id":55,"quantity":1},{"id":28566,"menu_item_id":48,"quantity":1},{"id":28567,"menu_item_id":396,"quantity":1},{"id":28568,"menu_item_id":5,"quantity":1},{"id":28569,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5960,"has_item_changes":true,"old_items_count":11,"new_items_count":12,"old_items_map_keys":["113|1|","96|1|","61|1|","56|1|","50|1|","54|1|","55|1|","48|1|","396|1|","5|1|","65|1|"],"new_items_map_keys":["96|1|","61|1|","56|2|","50|1|","54|1|","55|1|","48|1|","396|1|","5|1|","65|1|","105|1|","3|1|"]} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5960,"order_number":"AZS-130326-010"} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-010","replaced_order_id":5960} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5963,"items_count":12,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":54,"quantity":1,"price":"159.00"},{"menu_item_id":55,"quantity":1,"price":"159.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5963,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5963}} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5963,"item_index":0,"menu_item_id":96} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5963,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5963}} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5963,"item_index":1,"menu_item_id":61} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5963,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5963}} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5963,"item_index":2,"menu_item_id":56} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5963,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5963}} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5963,"item_index":3,"menu_item_id":50} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5963,"item_index":4,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5963}} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5963,"item_index":4,"menu_item_id":54} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5963,"item_index":5,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5963}} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5963,"item_index":5,"menu_item_id":55} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5963,"item_index":6,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5963}} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5963,"item_index":6,"menu_item_id":48} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5963,"item_index":7,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5963}} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5963,"item_index":7,"menu_item_id":396} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5963,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5963}} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5963,"item_index":8,"menu_item_id":5} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5963,"item_index":9,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5963}} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5963,"item_index":9,"menu_item_id":65} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5963,"item_index":10,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5963}} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5963,"item_index":10,"menu_item_id":105} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5963,"item_index":11,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5963}} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5963,"item_index":11,"menu_item_id":3} 
[2026-03-13 15:30:00] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5960,"new_order_id":5963,"order_number":"AZS-130326-010"} 
[2026-03-13 15:30:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5962,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null,"id":28574},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":28575},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28574,"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null},{"id":28575,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-13 15:30:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5962,"items_count":3} 
[2026-03-13 15:30:27] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28574,"menu_item_id":29,"quantity":2},{"id":28575,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-13 15:30:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5962,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["29|2|","2|1|"],"new_items_map_keys":["29|2|","2|1|","4|1|"]} 
[2026-03-13 15:30:27] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5962,"order_number":"AZS-130326-011"} 
[2026-03-13 15:30:27] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-011","replaced_order_id":5962} 
[2026-03-13 15:30:27] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5964,"items_count":3,"items":[{"menu_item_id":29,"quantity":2,"price":"250.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-03-13 15:30:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5964,"item_index":0,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5964}} 
[2026-03-13 15:30:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5964,"item_index":0,"menu_item_id":29} 
[2026-03-13 15:30:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5964,"item_index":1,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5964}} 
[2026-03-13 15:30:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5964,"item_index":1,"menu_item_id":2} 
[2026-03-13 15:30:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5964,"item_index":2,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5964}} 
[2026-03-13 15:30:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5964,"item_index":2,"menu_item_id":4} 
[2026-03-13 15:30:27] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5962,"new_order_id":5964,"order_number":"AZS-130326-011"} 
[2026-03-13 15:36:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5964,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":28588},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28589},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":28590}],"validated_items":[{"id":28588,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":28589,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":28590,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-13 15:36:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5964,"items_count":3} 
[2026-03-13 15:36:07] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28588,"menu_item_id":29,"quantity":2},{"id":28589,"menu_item_id":2,"quantity":1},{"id":28590,"menu_item_id":4,"quantity":1}]} 
[2026-03-13 15:36:07] local.INFO: PosOrderController::update - Item changes check {"order_id":5964,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["29|2|","2|1|","4|1|"],"new_items_map_keys":["29|2|","2|1|","4|1|"]} 
[2026-03-13 15:36:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5964,"order_number":"AZS-130326-011"} 
[2026-03-13 15:36:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5964,"order_number":"AZS-130326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 15:36:07"} 
[2026-03-13 15:47:01] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5964,"order_number":"AZS-130326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 15:47:01"} 
[2026-03-13 15:47:01] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5964,"order_number":"AZS-130326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 15:47:01"} 
[2026-03-13 15:47:01] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5964,"order_number":"AZS-130326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 15:47:01"} 
[2026-03-13 15:47:01] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5964,"order_number":"AZS-130326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 15:47:01"} 
[2026-03-13 15:47:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5964,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":28588},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28589},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":28590}],"validated_items":[{"id":28588,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":28589,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":28590,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-13 15:47:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5964,"items_count":3} 
[2026-03-13 15:47:01] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28588,"menu_item_id":29,"quantity":2},{"id":28589,"menu_item_id":2,"quantity":1},{"id":28590,"menu_item_id":4,"quantity":1}]} 
[2026-03-13 15:47:01] local.INFO: PosOrderController::update - Item changes check {"order_id":5964,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["29|2|","2|1|","4|1|"],"new_items_map_keys":["29|2|","2|1|","4|1|"]} 
[2026-03-13 15:47:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5964,"order_number":"AZS-130326-011"} 
[2026-03-13 15:47:01] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5964,"order_number":"AZS-130326-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-13 15:47:01","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 15:47:01"} 
[2026-03-13 15:47:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5964,"order_number":"AZS-130326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 15:47:01"} 
[2026-03-13 15:47:01] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5964,"order_number":"AZS-130326-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-13 15:47:01","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-13 15:47:01"} 
[2026-03-13 15:53:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":5966,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-13 15:53:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5966,"items_count":4} 
[2026-03-13 15:53:27] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[28595],"items":[{"id":null,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":13,"quantity":3}]} 
[2026-03-13 15:53:27] local.INFO: PosOrderController::update - Item changes check {"order_id":5966,"has_item_changes":true,"old_items_count":1,"new_items_count":4,"old_items_map_keys":["384|1|"],"new_items_map_keys":["64|1|","396|1|","403|1|","13|3|"]} 
[2026-03-13 15:53:27] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5966,"order_number":"AZS-130326-013"} 
[2026-03-13 15:53:27] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-013","replaced_order_id":5966} 
[2026-03-13 15:53:27] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5968,"items_count":4,"items":[{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":13,"quantity":3,"price":"249.00"}]} 
[2026-03-13 15:53:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5968,"item_index":0,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5968}} 
[2026-03-13 15:53:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5968,"item_index":0,"menu_item_id":64} 
[2026-03-13 15:53:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5968,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5968}} 
[2026-03-13 15:53:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5968,"item_index":1,"menu_item_id":396} 
[2026-03-13 15:53:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5968,"item_index":2,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5968}} 
[2026-03-13 15:53:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5968,"item_index":2,"menu_item_id":403} 
[2026-03-13 15:53:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5968,"item_index":3,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5968}} 
[2026-03-13 15:53:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5968,"item_index":3,"menu_item_id":13} 
[2026-03-13 15:53:27] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5966,"new_order_id":5968,"order_number":"AZS-130326-013"} 
[2026-03-13 15:53:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":5968,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-13 15:53:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5968,"items_count":4} 
[2026-03-13 15:53:50] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[28598,28599,28600,28601],"items":[{"id":null,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":13,"quantity":3}]} 
[2026-03-13 15:53:50] local.INFO: PosOrderController::update - Item changes check {"order_id":5968,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["64|1|","396|1|","403|1|","13|3|"],"new_items_map_keys":["64|1|","396|1|","403|1|","13|3|"]} 
[2026-03-13 15:53:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5968,"order_number":"AZS-130326-013"} 
[2026-03-13 15:53:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5968,"order_number":"AZS-130326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-13 15:53:50"} 
[2026-03-13 15:58:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5967,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":28596},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":28597},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28596,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":28597,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-13 15:58:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5967,"items_count":3} 
[2026-03-13 15:58:25] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28596,"menu_item_id":98,"quantity":1},{"id":28597,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-03-13 15:58:25] local.INFO: PosOrderController::update - Item changes check {"order_id":5967,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["98|1|","396|2|"],"new_items_map_keys":["98|1|","396|2|","56|1|"]} 
[2026-03-13 15:58:25] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5967,"order_number":"AZS-130326-014"} 
[2026-03-13 15:58:25] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-014","replaced_order_id":5967} 
[2026-03-13 15:58:25] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5969,"items_count":3,"items":[{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"}]} 
[2026-03-13 15:58:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5969,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5969}} 
[2026-03-13 15:58:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5969,"item_index":0,"menu_item_id":98} 
[2026-03-13 15:58:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5969,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5969}} 
[2026-03-13 15:58:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5969,"item_index":1,"menu_item_id":396} 
[2026-03-13 15:58:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5969,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5969}} 
[2026-03-13 15:58:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5969,"item_index":2,"menu_item_id":56} 
[2026-03-13 15:58:25] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5967,"new_order_id":5969,"order_number":"AZS-130326-014"} 
[2026-03-13 16:01:32] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-13 16:01:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T04:01:54.711Z","date_to":"2026-03-13T16:01:54.711Z","per_page":"100"} 
[2026-03-13 16:01:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T04:01:54.726Z","date_to":"2026-03-13T16:01:54.726Z","per_page":"100"} 
[2026-03-13 16:01:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":5,"unique_order_numbers":15} 
[2026-03-13 16:01:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":5,"unique_order_numbers":15} 
[2026-03-13 16:01:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T04:01:54.711Z","date_to":"2026-03-13T16:01:54.711Z","per_page":"100"} 
[2026-03-13 16:01:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":5,"unique_order_numbers":15} 
[2026-03-13 16:03:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5965,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":28591},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":28592},{"menu_item_id":49,"quantity":1,"discount_percent":0,"notes":null,"id":28593},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null,"id":28594},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28591,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":28592,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":28593,"menu_item_id":49,"quantity":1,"discount_percent":0,"notes":null},{"id":28594,"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-13 16:03:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5965,"items_count":5} 
[2026-03-13 16:03:15] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28591,"menu_item_id":113,"quantity":1},{"id":28592,"menu_item_id":50,"quantity":2},{"id":28593,"menu_item_id":49,"quantity":1},{"id":28594,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-13 16:03:15] local.INFO: PosOrderController::update - Item changes check {"order_id":5965,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["113|1|","50|2|","49|1|","2|2|"],"new_items_map_keys":["113|1|","50|2|","49|1|","2|2|","5|1|"]} 
[2026-03-13 16:03:15] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5965,"order_number":"AZS-130326-012"} 
[2026-03-13 16:03:15] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-012","replaced_order_id":5965} 
[2026-03-13 16:03:15] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5971,"items_count":5,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":49,"quantity":1,"price":"70.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-13 16:03:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5971,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5971}} 
[2026-03-13 16:03:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5971,"item_index":0,"menu_item_id":113} 
[2026-03-13 16:03:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5971,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5971}} 
[2026-03-13 16:03:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5971,"item_index":1,"menu_item_id":50} 
[2026-03-13 16:03:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5971,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5971}} 
[2026-03-13 16:03:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5971,"item_index":2,"menu_item_id":49} 
[2026-03-13 16:03:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5971,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5971}} 
[2026-03-13 16:03:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5971,"item_index":3,"menu_item_id":2} 
[2026-03-13 16:03:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5971,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5971}} 
[2026-03-13 16:03:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5971,"item_index":4,"menu_item_id":5} 
[2026-03-13 16:03:15] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5965,"new_order_id":5971,"order_number":"AZS-130326-012"} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":1,"order_id":5963,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28576},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28577},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28578},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":28579},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":28580},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":28581},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":28582},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28583},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":28585},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28586},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28587}],"validated_items":[{"id":28576,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28577,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28578,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28579,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":28580,"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":28581,"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":28582,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":28583,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28585,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":28586,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":28587,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5963,"items_count":11} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":1,"items_to_remove":[28584],"items":[{"id":28576,"menu_item_id":96,"quantity":1},{"id":28577,"menu_item_id":61,"quantity":1},{"id":28578,"menu_item_id":56,"quantity":2},{"id":28579,"menu_item_id":50,"quantity":1},{"id":28580,"menu_item_id":54,"quantity":1},{"id":28581,"menu_item_id":55,"quantity":1},{"id":28582,"menu_item_id":48,"quantity":1},{"id":28583,"menu_item_id":396,"quantity":1},{"id":28585,"menu_item_id":65,"quantity":1},{"id":28586,"menu_item_id":105,"quantity":1},{"id":28587,"menu_item_id":3,"quantity":1}]} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5963,"has_item_changes":true,"old_items_count":12,"new_items_count":11,"old_items_map_keys":["96|1|","61|1|","56|2|","50|1|","54|1|","55|1|","48|1|","396|1|","5|1|","65|1|","105|1|","3|1|"],"new_items_map_keys":["96|1|","61|1|","56|2|","50|1|","54|1|","55|1|","48|1|","396|1|","65|1|","105|1|","3|1|"]} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5963,"order_number":"AZS-130326-010"} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-010","replaced_order_id":5963} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5972,"items_count":11,"items":[{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":2,"price":199.0},{"menu_item_id":50,"quantity":1,"price":129.0},{"menu_item_id":54,"quantity":1,"price":159.0},{"menu_item_id":55,"quantity":1,"price":159.0},{"menu_item_id":48,"quantity":1,"price":250.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":65,"quantity":1,"price":1299.0},{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5972,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5972}} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5972,"item_index":0,"menu_item_id":96} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5972,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5972}} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5972,"item_index":1,"menu_item_id":61} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5972,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5972}} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5972,"item_index":2,"menu_item_id":56} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5972,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5972}} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5972,"item_index":3,"menu_item_id":50} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5972,"item_index":4,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":1,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5972}} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5972,"item_index":4,"menu_item_id":54} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5972,"item_index":5,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":1,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5972}} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5972,"item_index":5,"menu_item_id":55} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5972,"item_index":6,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":250.0,"discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5972}} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5972,"item_index":6,"menu_item_id":48} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5972,"item_index":7,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5972}} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5972,"item_index":7,"menu_item_id":396} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5972,"item_index":8,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5972}} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5972,"item_index":8,"menu_item_id":65} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5972,"item_index":9,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5972}} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5972,"item_index":9,"menu_item_id":105} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5972,"item_index":10,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5972}} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5972,"item_index":10,"menu_item_id":3} 
[2026-03-13 16:11:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5963,"new_order_id":5972,"order_number":"AZS-130326-010"} 
[2026-03-13 16:11:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5972,"item_index":0,"item_id":28576} 
[2026-03-13 16:11:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5972,"item_index":1,"item_id":28577} 
[2026-03-13 16:11:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5972,"item_index":2,"item_id":28578} 
[2026-03-13 16:11:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5972,"item_index":3,"item_id":28579} 
[2026-03-13 16:11:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5972,"item_index":4,"item_id":28580} 
[2026-03-13 16:11:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5972,"item_index":5,"item_id":28581} 
[2026-03-13 16:11:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5972,"item_index":6,"item_id":28582} 
[2026-03-13 16:11:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5972,"item_index":7,"item_id":28583} 
[2026-03-13 16:11:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5972,"item_index":8,"item_id":28585} 
[2026-03-13 16:11:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5972,"item_index":9,"item_id":28586} 
[2026-03-13 16:11:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5972,"item_index":10,"item_id":28587} 
[2026-03-13 16:11:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":11,"order_id":5972,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28576},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28577},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28578},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":28579},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":28580},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":28581},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":28582},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28583},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":28585},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28586},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28587}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-13 16:11:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5972,"items_count":11} 
[2026-03-13 16:11:22] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":11,"items_to_remove":[28611,28612,28613,28614,28615,28616,28617,28618,28619,28620,28621],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":54,"quantity":1},{"id":null,"menu_item_id":55,"quantity":1},{"id":null,"menu_item_id":48,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-13 16:11:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5972,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["96|1|","61|1|","56|2|","50|1|","54|1|","55|1|","48|1|","396|1|","65|1|","105|1|","3|1|"],"new_items_map_keys":["96|1|","61|1|","56|2|","50|1|","54|1|","55|1|","48|1|","396|1|","65|1|","105|1|","3|1|"]} 
[2026-03-13 16:11:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5972,"order_number":"AZS-130326-010"} 
[2026-03-13 16:11:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5972,"order_number":"AZS-130326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 16:11:22"} 
[2026-03-13 16:14:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5971,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28606},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":28607},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28608},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":28609},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28610}],"validated_items":[{"id":28606,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28607,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":28608,"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":28609,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":28610,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-13 16:14:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5971,"items_count":5} 
[2026-03-13 16:14:48] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28606,"menu_item_id":113,"quantity":1},{"id":28607,"menu_item_id":50,"quantity":2},{"id":28608,"menu_item_id":49,"quantity":1},{"id":28609,"menu_item_id":2,"quantity":2},{"id":28610,"menu_item_id":5,"quantity":1}]} 
[2026-03-13 16:14:48] local.INFO: PosOrderController::update - Item changes check {"order_id":5971,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["113|1|","50|2|","49|1|","2|2|","5|1|"],"new_items_map_keys":["113|1|","50|2|","49|1|","2|2|","5|1|"]} 
[2026-03-13 16:14:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5971,"order_number":"AZS-130326-012"} 
[2026-03-13 16:14:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5971,"order_number":"AZS-130326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 16:14:48"} 
[2026-03-13 16:15:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5971,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28606},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":28607},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28608},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":28609},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28610},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}],"validated_items":[{"id":28606,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28607,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":28608,"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":28609,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":28610,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-13 16:15:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5971,"items_count":6} 
[2026-03-13 16:15:23] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28606,"menu_item_id":113,"quantity":1},{"id":28607,"menu_item_id":50,"quantity":2},{"id":28608,"menu_item_id":49,"quantity":1},{"id":28609,"menu_item_id":2,"quantity":2},{"id":28610,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-03-13 16:15:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5971,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["113|1|","50|2|","49|1|","2|2|","5|1|"],"new_items_map_keys":["113|1|","50|2|","49|1|","2|2|","5|1|","61|1|"]} 
[2026-03-13 16:15:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5971,"order_number":"AZS-130326-012"} 
[2026-03-13 16:15:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-012","replaced_order_id":5971} 
[2026-03-13 16:15:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5973,"items_count":6,"items":[{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":50,"quantity":2,"price":129.0},{"menu_item_id":49,"quantity":1,"price":70.0},{"menu_item_id":2,"quantity":2,"price":130.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":61,"quantity":1,"price":199.0}]} 
[2026-03-13 16:15:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5973,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5973}} 
[2026-03-13 16:15:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5973,"item_index":0,"menu_item_id":113} 
[2026-03-13 16:15:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5973,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5973}} 
[2026-03-13 16:15:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5973,"item_index":1,"menu_item_id":50} 
[2026-03-13 16:15:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5973,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":1,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5973}} 
[2026-03-13 16:15:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5973,"item_index":2,"menu_item_id":49} 
[2026-03-13 16:15:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5973,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5973}} 
[2026-03-13 16:15:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5973,"item_index":3,"menu_item_id":2} 
[2026-03-13 16:15:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5973,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5973}} 
[2026-03-13 16:15:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5973,"item_index":4,"menu_item_id":5} 
[2026-03-13 16:15:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5973,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5973}} 
[2026-03-13 16:15:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5973,"item_index":5,"menu_item_id":61} 
[2026-03-13 16:15:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5971,"new_order_id":5973,"order_number":"AZS-130326-012"} 
[2026-03-13 16:15:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5973,"item_index":0,"item_id":28606} 
[2026-03-13 16:15:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5973,"item_index":1,"item_id":28607} 
[2026-03-13 16:15:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5973,"item_index":2,"item_id":28608} 
[2026-03-13 16:15:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5973,"item_index":3,"item_id":28609} 
[2026-03-13 16:15:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5973,"item_index":4,"item_id":28610} 
[2026-03-13 16:15:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":5973,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28606},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":28607},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28608},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":28609},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28610},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-13 16:15:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5973,"items_count":6} 
[2026-03-13 16:15:31] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[28622,28623,28624,28625,28626,28627],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":49,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-03-13 16:15:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5973,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","50|2|","49|1|","2|2|","5|1|","61|1|"],"new_items_map_keys":["113|1|","50|2|","49|1|","2|2|","5|1|","61|1|"]} 
[2026-03-13 16:15:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5973,"order_number":"AZS-130326-012"} 
[2026-03-13 16:15:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5973,"order_number":"AZS-130326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 16:15:31"} 
[2026-03-13 16:25:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":5972,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28611},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28612},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28613},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":28614},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":28615},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":28616},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":28617},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28618},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":28619},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28620},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28621}],"validated_items":[{"id":28611,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28612,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28613,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28614,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":28615,"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":28616,"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":28617,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":28618,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28619,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":28620,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":28621,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-13 16:25:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5972,"items_count":11} 
[2026-03-13 16:25:43] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28611,"menu_item_id":96,"quantity":1},{"id":28612,"menu_item_id":61,"quantity":1},{"id":28613,"menu_item_id":56,"quantity":2},{"id":28614,"menu_item_id":50,"quantity":1},{"id":28615,"menu_item_id":54,"quantity":1},{"id":28616,"menu_item_id":55,"quantity":1},{"id":28617,"menu_item_id":48,"quantity":1},{"id":28618,"menu_item_id":396,"quantity":1},{"id":28619,"menu_item_id":65,"quantity":1},{"id":28620,"menu_item_id":105,"quantity":1},{"id":28621,"menu_item_id":3,"quantity":1}]} 
[2026-03-13 16:25:43] local.INFO: PosOrderController::update - Item changes check {"order_id":5972,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["96|1|","61|1|","56|2|","50|1|","54|1|","55|1|","48|1|","396|1|","65|1|","105|1|","3|1|"],"new_items_map_keys":["96|1|","61|1|","56|2|","50|1|","54|1|","55|1|","48|1|","396|1|","65|1|","105|1|","3|1|"]} 
[2026-03-13 16:25:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5972,"order_number":"AZS-130326-010"} 
[2026-03-13 16:25:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5972,"order_number":"AZS-130326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 16:25:43"} 
[2026-03-13 16:30:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5969,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28602},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28603},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28604}],"validated_items":[{"id":28602,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28603,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":28604,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-13 16:30:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5969,"items_count":3} 
[2026-03-13 16:30:34] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28602,"menu_item_id":98,"quantity":1},{"id":28603,"menu_item_id":396,"quantity":2},{"id":28604,"menu_item_id":56,"quantity":1}]} 
[2026-03-13 16:30:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5969,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["98|1|","396|2|","56|1|"],"new_items_map_keys":["98|1|","396|2|","56|1|"]} 
[2026-03-13 16:30:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5969,"order_number":"AZS-130326-014"} 
[2026-03-13 16:30:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5969,"order_number":"AZS-130326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 16:30:34"} 
[2026-03-13 16:30:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5974,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":172,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":28628},{"menu_item_id":163,"quantity":1,"price":1050,"discount_percent":0,"notes":null,"id":28629},{"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":28630},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":28631},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":28632}],"validated_items":[{"id":28628,"menu_item_id":172,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":28629,"menu_item_id":163,"quantity":1,"price":1050,"discount_percent":0,"notes":null},{"id":28630,"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":28631,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":28632,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-13 16:30:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5974,"items_count":5} 
[2026-03-13 16:30:57] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28628,"menu_item_id":172,"quantity":1},{"id":28629,"menu_item_id":163,"quantity":1},{"id":28630,"menu_item_id":165,"quantity":1},{"id":28631,"menu_item_id":2,"quantity":2},{"id":28632,"menu_item_id":4,"quantity":1}]} 
[2026-03-13 16:30:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5974,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["172|1|","163|1|","165|1|","2|2|","4|1|"],"new_items_map_keys":["172|1|","163|1|","165|1|","2|2|","4|1|"]} 
[2026-03-13 16:30:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5974,"order_number":"AZS-130326-016"} 
[2026-03-13 16:30:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5974,"order_number":"AZS-130326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 16:30:57"} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":5972,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":28611},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28612},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28613},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":28614},{"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null,"id":28615},{"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null,"id":28616},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":28617},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":28618},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":28619},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":28620},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":28621}],"validated_items":[{"id":28611,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":28612,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28613,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28614,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":28615,"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null},{"id":28616,"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null},{"id":28617,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"id":28618,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":28619,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":28620,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":28621,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5972,"items_count":11} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28611,"menu_item_id":96,"quantity":1},{"id":28612,"menu_item_id":61,"quantity":1},{"id":28613,"menu_item_id":56,"quantity":1},{"id":28614,"menu_item_id":50,"quantity":1},{"id":28615,"menu_item_id":54,"quantity":1},{"id":28616,"menu_item_id":55,"quantity":1},{"id":28617,"menu_item_id":48,"quantity":1},{"id":28618,"menu_item_id":396,"quantity":1},{"id":28619,"menu_item_id":65,"quantity":1},{"id":28620,"menu_item_id":105,"quantity":1},{"id":28621,"menu_item_id":3,"quantity":1}]} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5972,"has_item_changes":true,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["96|1|","61|1|","56|2|","50|1|","54|1|","55|1|","48|1|","396|1|","65|1|","105|1|","3|1|"],"new_items_map_keys":["96|1|","61|1|","56|1|","50|1|","54|1|","55|1|","48|1|","396|1|","65|1|","105|1|","3|1|"]} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5972,"order_number":"AZS-130326-010"} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-010","replaced_order_id":5972} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5975,"items_count":11,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":54,"quantity":1,"price":"159.00"},{"menu_item_id":55,"quantity":1,"price":"159.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5975,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5975}} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5975,"item_index":0,"menu_item_id":96} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5975,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5975}} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5975,"item_index":1,"menu_item_id":61} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5975,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5975}} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5975,"item_index":2,"menu_item_id":56} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5975,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5975}} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5975,"item_index":3,"menu_item_id":50} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5975,"item_index":4,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5975}} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5975,"item_index":4,"menu_item_id":54} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5975,"item_index":5,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5975}} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5975,"item_index":5,"menu_item_id":55} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5975,"item_index":6,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5975}} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5975,"item_index":6,"menu_item_id":48} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5975,"item_index":7,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5975}} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5975,"item_index":7,"menu_item_id":396} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5975,"item_index":8,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5975}} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5975,"item_index":8,"menu_item_id":65} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5975,"item_index":9,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5975}} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5975,"item_index":9,"menu_item_id":105} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5975,"item_index":10,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5975}} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5975,"item_index":10,"menu_item_id":3} 
[2026-03-13 16:32:00] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5972,"new_order_id":5975,"order_number":"AZS-130326-010"} 
[2026-03-13 16:32:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5975,"item_index":0,"item_id":28611} 
[2026-03-13 16:32:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5975,"item_index":1,"item_id":28612} 
[2026-03-13 16:32:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5975,"item_index":2,"item_id":28613} 
[2026-03-13 16:32:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5975,"item_index":3,"item_id":28614} 
[2026-03-13 16:32:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5975,"item_index":4,"item_id":28615} 
[2026-03-13 16:32:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5975,"item_index":5,"item_id":28616} 
[2026-03-13 16:32:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5975,"item_index":6,"item_id":28617} 
[2026-03-13 16:32:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5975,"item_index":7,"item_id":28618} 
[2026-03-13 16:32:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5975,"item_index":8,"item_id":28619} 
[2026-03-13 16:32:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5975,"item_index":9,"item_id":28620} 
[2026-03-13 16:32:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5975,"item_index":10,"item_id":28621} 
[2026-03-13 16:32:22] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5975,"order_number":"AZS-130326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":7000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 16:32:22"} 
[2026-03-13 16:32:22] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5975,"order_number":"AZS-130326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":7000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 16:32:22"} 
[2026-03-13 16:32:22] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5975,"order_number":"AZS-130326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 16:32:22"} 
[2026-03-13 16:32:22] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5975,"order_number":"AZS-130326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 16:32:22"} 
[2026-03-13 16:32:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":11,"order_id":5975,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28611},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28612},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28613},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":28614},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":28615},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":28616},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":28617},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28618},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":28619},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28620},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28621}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-13 16:32:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5975,"items_count":11} 
[2026-03-13 16:32:22] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":11,"items_to_remove":[28633,28634,28635,28636,28637,28638,28639,28640,28641,28642,28643],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":54,"quantity":1},{"id":null,"menu_item_id":55,"quantity":1},{"id":null,"menu_item_id":48,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-13 16:32:22] local.INFO: PosOrderController::update - Item changes check {"order_id":5975,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["96|1|","61|1|","56|1|","50|1|","54|1|","55|1|","48|1|","396|1|","65|1|","105|1|","3|1|"],"new_items_map_keys":["96|1|","61|1|","56|1|","50|1|","54|1|","55|1|","48|1|","396|1|","65|1|","105|1|","3|1|"]} 
[2026-03-13 16:32:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5975,"order_number":"AZS-130326-010"} 
[2026-03-13 16:32:22] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5975,"order_number":"AZS-130326-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":7000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-13 16:32:22","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 16:32:22"} 
[2026-03-13 16:32:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5975,"order_number":"AZS-130326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 16:32:22"} 
[2026-03-13 16:32:22] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5975,"order_number":"AZS-130326-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"7000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-13 16:32:22","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":7000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"7000.00","database_verification_match":true,"timestamp":"2026-03-13 16:32:22"} 
[2026-03-13 16:35:25] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5969,"order_number":"AZS-130326-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 16:35:25"} 
[2026-03-13 16:35:25] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5969,"order_number":"AZS-130326-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 16:35:25"} 
[2026-03-13 16:35:25] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5969,"order_number":"AZS-130326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 16:35:25"} 
[2026-03-13 16:35:25] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5969,"order_number":"AZS-130326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 16:35:25"} 
[2026-03-13 16:35:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5969,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28602},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28603},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28604}],"validated_items":[{"id":28602,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28603,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":28604,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-13 16:35:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5969,"items_count":3} 
[2026-03-13 16:35:25] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28602,"menu_item_id":98,"quantity":1},{"id":28603,"menu_item_id":396,"quantity":2},{"id":28604,"menu_item_id":56,"quantity":1}]} 
[2026-03-13 16:35:25] local.INFO: PosOrderController::update - Item changes check {"order_id":5969,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["98|1|","396|2|","56|1|"],"new_items_map_keys":["98|1|","396|2|","56|1|"]} 
[2026-03-13 16:35:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5969,"order_number":"AZS-130326-014"} 
[2026-03-13 16:35:25] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5969,"order_number":"AZS-130326-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-13 16:35:25","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 16:35:25"} 
[2026-03-13 16:35:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5969,"order_number":"AZS-130326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 16:35:25"} 
[2026-03-13 16:35:25] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5969,"order_number":"AZS-130326-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-13 16:35:25","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-13 16:35:25"} 
[2026-03-13 16:35:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T04:35:38.610Z","date_to":"2026-03-13T16:35:38.610Z","per_page":"100"} 
[2026-03-13 16:35:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":4,"unique_order_numbers":16} 
[2026-03-13 16:35:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T04:35:38.627Z","date_to":"2026-03-13T16:35:38.627Z","per_page":"100"} 
[2026-03-13 16:35:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":4,"unique_order_numbers":16} 
[2026-03-13 16:35:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T04:35:38.610Z","date_to":"2026-03-13T16:35:38.610Z","per_page":"100"} 
[2026-03-13 16:35:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":4,"unique_order_numbers":16} 
[2026-03-13 16:53:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5968,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":28598},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28599},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":28600},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":28601}],"validated_items":[{"id":28598,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":28599,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28600,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":28601,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-13 16:53:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5968,"items_count":4} 
[2026-03-13 16:53:31] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28598,"menu_item_id":64,"quantity":1},{"id":28599,"menu_item_id":396,"quantity":1},{"id":28600,"menu_item_id":403,"quantity":1},{"id":28601,"menu_item_id":13,"quantity":3}]} 
[2026-03-13 16:53:31] local.INFO: PosOrderController::update - Item changes check {"order_id":5968,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["64|1|","396|1|","403|1|","13|3|"],"new_items_map_keys":["64|1|","396|1|","403|1|","13|3|"]} 
[2026-03-13 16:53:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5968,"order_number":"AZS-130326-013"} 
[2026-03-13 16:53:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5968,"order_number":"AZS-130326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 16:53:31"} 
[2026-03-13 17:02:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":5973,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28622},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":28623},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28624},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":28625},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28626},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28627}],"validated_items":[{"id":28622,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28623,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":28624,"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":28625,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":28626,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28627,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-13 17:02:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5973,"items_count":6} 
[2026-03-13 17:02:16] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28622,"menu_item_id":113,"quantity":1},{"id":28623,"menu_item_id":50,"quantity":2},{"id":28624,"menu_item_id":49,"quantity":1},{"id":28625,"menu_item_id":2,"quantity":2},{"id":28626,"menu_item_id":5,"quantity":1},{"id":28627,"menu_item_id":61,"quantity":1}]} 
[2026-03-13 17:02:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5973,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","50|2|","49|1|","2|2|","5|1|","61|1|"],"new_items_map_keys":["113|1|","50|2|","49|1|","2|2|","5|1|","61|1|"]} 
[2026-03-13 17:02:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5973,"order_number":"AZS-130326-012"} 
[2026-03-13 17:02:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5973,"order_number":"AZS-130326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 17:02:16"} 
[2026-03-13 17:02:41] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5973,"order_number":"AZS-130326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 17:02:41"} 
[2026-03-13 17:02:41] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5973,"order_number":"AZS-130326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 17:02:41"} 
[2026-03-13 17:02:41] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5973,"order_number":"AZS-130326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 17:02:41"} 
[2026-03-13 17:02:41] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5973,"order_number":"AZS-130326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 17:02:41"} 
[2026-03-13 17:02:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":5973,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28622},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":28623},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28624},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":28625},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28626}],"validated_items":[{"id":28622,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28623,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":28624,"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":28625,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":28626,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-13 17:02:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5973,"items_count":5} 
[2026-03-13 17:02:41] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[28627],"items":[{"id":28622,"menu_item_id":113,"quantity":1},{"id":28623,"menu_item_id":50,"quantity":2},{"id":28624,"menu_item_id":49,"quantity":1},{"id":28625,"menu_item_id":2,"quantity":2},{"id":28626,"menu_item_id":5,"quantity":1}]} 
[2026-03-13 17:02:41] local.INFO: PosOrderController::update - Item changes check {"order_id":5973,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["113|1|","50|2|","49|1|","2|2|","5|1|","61|1|"],"new_items_map_keys":["113|1|","50|2|","49|1|","2|2|","5|1|"]} 
[2026-03-13 17:02:41] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5973,"order_number":"AZS-130326-012","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":2000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-13 17:02:41","original_payment_amount":"0.00","grand_total":1957.0,"timestamp":"2026-03-13 17:02:41"} 
[2026-03-13 17:02:41] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5973,"order_number":"AZS-130326-012"} 
[2026-03-13 17:02:41] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-012","replaced_order_id":5973} 
[2026-03-13 17:02:41] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5973,"new_order_id":5978,"order_number":"AZS-130326-012","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"2000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-13 17:02:41","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-13 17:02:41"} 
[2026-03-13 17:02:41] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5978,"items_count":5,"items":[{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":50,"quantity":2,"price":129.0},{"menu_item_id":49,"quantity":1,"price":70.0},{"menu_item_id":2,"quantity":2,"price":130.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-03-13 17:02:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5978,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5978}} 
[2026-03-13 17:02:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5978,"item_index":0,"menu_item_id":113} 
[2026-03-13 17:02:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5978,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5978}} 
[2026-03-13 17:02:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5978,"item_index":1,"menu_item_id":50} 
[2026-03-13 17:02:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5978,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":1,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5978}} 
[2026-03-13 17:02:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5978,"item_index":2,"menu_item_id":49} 
[2026-03-13 17:02:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5978,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5978}} 
[2026-03-13 17:02:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5978,"item_index":3,"menu_item_id":2} 
[2026-03-13 17:02:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5978,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5978}} 
[2026-03-13 17:02:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5978,"item_index":4,"menu_item_id":5} 
[2026-03-13 17:02:41] local.ERROR: Error tracking recipe usage for order 5978: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5978, 50, 102, 1, 20, 30.00, Order #AZS-130326-012 - 2x Roghni Naan, 2026-03-13 17:02:41, 2026-03-13 17:02:41))  
[2026-03-13 17:02:41] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5973,"new_order_id":5978,"order_number":"AZS-130326-012"} 
[2026-03-13 17:02:42] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5973,"new_order_id":5978,"order_number":"AZS-130326-012","route":"api/orders/5973"} 
[2026-03-13 17:08:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T05:08:20.171Z","date_to":"2026-03-13T17:08:20.171Z","per_page":"100"} 
[2026-03-13 17:08:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T05:08:20.185Z","date_to":"2026-03-13T17:08:20.185Z","per_page":"100"} 
[2026-03-13 17:08:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":5,"unique_order_numbers":18} 
[2026-03-13 17:08:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":5,"unique_order_numbers":18} 
[2026-03-13 17:08:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T05:08:20.171Z","date_to":"2026-03-13T17:08:20.171Z","per_page":"100"} 
[2026-03-13 17:08:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":5,"unique_order_numbers":18} 
[2026-03-13 17:08:45] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5968,"order_number":"AZS-130326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 17:08:45"} 
[2026-03-13 17:08:45] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5968,"order_number":"AZS-130326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 17:08:45"} 
[2026-03-13 17:08:45] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5968,"order_number":"AZS-130326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 17:08:45"} 
[2026-03-13 17:08:45] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5968,"order_number":"AZS-130326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 17:08:45"} 
[2026-03-13 17:08:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5968,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":28598},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28599},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":28600},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":28601}],"validated_items":[{"id":28598,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":28599,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28600,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":28601,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-13 17:08:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5968,"items_count":4} 
[2026-03-13 17:08:45] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28598,"menu_item_id":64,"quantity":1},{"id":28599,"menu_item_id":396,"quantity":1},{"id":28600,"menu_item_id":403,"quantity":1},{"id":28601,"menu_item_id":13,"quantity":3}]} 
[2026-03-13 17:08:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5968,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["64|1|","396|1|","403|1|","13|3|"],"new_items_map_keys":["64|1|","396|1|","403|1|","13|3|"]} 
[2026-03-13 17:08:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5968,"order_number":"AZS-130326-013"} 
[2026-03-13 17:08:45] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5968,"order_number":"AZS-130326-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-13 17:08:45","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 17:08:45"} 
[2026-03-13 17:08:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5968,"order_number":"AZS-130326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 17:08:45"} 
[2026-03-13 17:08:45] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5968,"order_number":"AZS-130326-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-13 17:08:45","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2500.00","database_verification_match":true,"timestamp":"2026-03-13 17:08:45"} 
[2026-03-13 17:09:06] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5974,"order_number":"AZS-130326-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 17:09:06"} 
[2026-03-13 17:09:06] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5974,"order_number":"AZS-130326-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 17:09:06"} 
[2026-03-13 17:09:06] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5974,"order_number":"AZS-130326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 17:09:06"} 
[2026-03-13 17:09:06] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5974,"order_number":"AZS-130326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 17:09:06"} 
[2026-03-13 17:09:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5974,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":172,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":28628},{"menu_item_id":163,"quantity":1,"price":1050,"discount_percent":0,"notes":null,"id":28629},{"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":28630},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":28631},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":28632}],"validated_items":[{"id":28628,"menu_item_id":172,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":28629,"menu_item_id":163,"quantity":1,"price":1050,"discount_percent":0,"notes":null},{"id":28630,"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":28631,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":28632,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-13 17:09:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5974,"items_count":5} 
[2026-03-13 17:09:06] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28628,"menu_item_id":172,"quantity":1},{"id":28629,"menu_item_id":163,"quantity":1},{"id":28630,"menu_item_id":165,"quantity":1},{"id":28631,"menu_item_id":2,"quantity":2},{"id":28632,"menu_item_id":4,"quantity":1}]} 
[2026-03-13 17:09:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5974,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["172|1|","163|1|","165|1|","2|2|","4|1|"],"new_items_map_keys":["172|1|","163|1|","165|1|","2|2|","4|1|"]} 
[2026-03-13 17:09:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5974,"order_number":"AZS-130326-016"} 
[2026-03-13 17:09:06] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5974,"order_number":"AZS-130326-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-13 17:09:06","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 17:09:06"} 
[2026-03-13 17:09:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5974,"order_number":"AZS-130326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 17:09:06"} 
[2026-03-13 17:09:06] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5974,"order_number":"AZS-130326-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-13 17:09:06","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4000.00","database_verification_match":true,"timestamp":"2026-03-13 17:09:06"} 
[2026-03-13 17:11:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T05:11:24.600Z","date_to":"2026-03-13T17:11:24.600Z","per_page":"100"} 
[2026-03-13 17:11:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T05:11:24.611Z","date_to":"2026-03-13T17:11:24.611Z","per_page":"100"} 
[2026-03-13 17:11:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-03-13 17:11:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-03-13 17:11:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T05:11:24.600Z","date_to":"2026-03-13T17:11:24.600Z","per_page":"100"} 
[2026-03-13 17:11:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-03-13 17:13:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T05:13:35.409Z","date_to":"2026-03-13T17:13:35.409Z","per_page":"100"} 
[2026-03-13 17:13:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-03-13 17:13:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T05:13:35.392Z","date_to":"2026-03-13T17:13:35.392Z","per_page":"100"} 
[2026-03-13 17:13:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-03-13 17:13:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T05:13:35.392Z","date_to":"2026-03-13T17:13:35.392Z","per_page":"100"} 
[2026-03-13 17:13:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-03-13 17:14:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":5976,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":28644},{"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null,"id":28645},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28646},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28647},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":28648},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null,"id":28649},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":28650},{"menu_item_id":26,"quantity":1,"discount_percent":0,"notes":null,"id":28651},{"menu_item_id":24,"quantity":1,"discount_percent":0,"notes":null,"id":28652}],"validated_items":[{"id":28644,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":28645,"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null},{"id":28646,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28647,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28648,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":28649,"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"id":28650,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"id":28651,"menu_item_id":26,"quantity":1,"discount_percent":0,"notes":null},{"id":28652,"menu_item_id":24,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-13 17:14:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5976,"items_count":9} 
[2026-03-13 17:14:57] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28644,"menu_item_id":96,"quantity":1},{"id":28645,"menu_item_id":67,"quantity":1},{"id":28646,"menu_item_id":61,"quantity":1},{"id":28647,"menu_item_id":56,"quantity":1},{"id":28648,"menu_item_id":396,"quantity":2},{"id":28649,"menu_item_id":83,"quantity":1},{"id":28650,"menu_item_id":3,"quantity":1},{"id":28651,"menu_item_id":26,"quantity":1},{"id":28652,"menu_item_id":24,"quantity":1}]} 
[2026-03-13 17:14:57] local.INFO: PosOrderController::update - Item changes check {"order_id":5976,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["96|1|","67|1|","61|1|","56|1|","396|2|","83|1|","3|1|","26|1|","24|1|"],"new_items_map_keys":["96|1|","67|1|","61|1|","56|1|","396|2|","83|1|","3|1|","26|1|","24|1|"]} 
[2026-03-13 17:14:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5976,"order_number":"AZS-130326-017"} 
[2026-03-13 17:14:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5976,"order_number":"AZS-130326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-13 17:14:57"} 
[2026-03-13 17:26:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5977,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":28653},{"menu_item_id":397,"quantity":200,"discount_percent":0,"notes":null,"id":28654}],"validated_items":[{"id":28653,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":28654,"menu_item_id":397,"quantity":200,"discount_percent":0,"notes":null}]} 
[2026-03-13 17:26:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5977,"items_count":2} 
[2026-03-13 17:26:37] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28653,"menu_item_id":105,"quantity":1},{"id":28654,"menu_item_id":397,"quantity":200}]} 
[2026-03-13 17:26:37] local.INFO: PosOrderController::update - Item changes check {"order_id":5977,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["105|1|","397|200|"],"new_items_map_keys":["105|1|","397|200|"]} 
[2026-03-13 17:26:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5977,"order_number":"AZS-130326-018"} 
[2026-03-13 17:26:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5977,"order_number":"AZS-130326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-13 17:26:37"} 
[2026-03-13 17:34:04] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5979,"order_number":"AZS-130326-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":130,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 17:34:04"} 
[2026-03-13 17:34:04] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5979,"order_number":"AZS-130326-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":130,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 17:34:04"} 
[2026-03-13 17:34:04] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5979,"order_number":"AZS-130326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":130,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 17:34:04"} 
[2026-03-13 17:34:04] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5979,"order_number":"AZS-130326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":130,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 17:34:04"} 
[2026-03-13 17:34:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5979,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28660}],"validated_items":[{"id":28660,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-13 17:34:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5979,"items_count":1} 
[2026-03-13 17:34:04] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28660,"menu_item_id":2,"quantity":1}]} 
[2026-03-13 17:34:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5979,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["2|1|"],"new_items_map_keys":["2|1|"]} 
[2026-03-13 17:34:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5979,"order_number":"AZS-130326-019"} 
[2026-03-13 17:34:04] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5979,"order_number":"AZS-130326-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":130,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-13 17:34:04","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 17:34:04"} 
[2026-03-13 17:34:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5979,"order_number":"AZS-130326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 17:34:04"} 
[2026-03-13 17:34:04] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5979,"order_number":"AZS-130326-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"130.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-13 17:34:04","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":130,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"130.00","database_verification_match":true,"timestamp":"2026-03-13 17:34:04"} 
[2026-03-13 17:40:36] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5970,"order_number":"AZS-130326-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":400,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 17:40:36"} 
[2026-03-13 17:40:36] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5970,"order_number":"AZS-130326-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":400,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 17:40:36"} 
[2026-03-13 17:40:36] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5970,"order_number":"AZS-130326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":400,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 17:40:36"} 
[2026-03-13 17:40:36] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5970,"order_number":"AZS-130326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":400,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 17:40:36"} 
[2026-03-13 17:40:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5970,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28605}],"validated_items":[{"id":28605,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-13 17:40:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5970,"items_count":1} 
[2026-03-13 17:40:36] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28605,"menu_item_id":6,"quantity":2}]} 
[2026-03-13 17:40:36] local.INFO: PosOrderController::update - Item changes check {"order_id":5970,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-13 17:40:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5970,"order_number":"AZS-130326-015"} 
[2026-03-13 17:40:36] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5970,"order_number":"AZS-130326-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":400,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-13 17:40:36","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 17:40:36"} 
[2026-03-13 17:40:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5970,"order_number":"AZS-130326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 17:40:36"} 
[2026-03-13 17:40:36] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5970,"order_number":"AZS-130326-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"400.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-13 17:40:36","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":400,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"400.00","database_verification_match":true,"timestamp":"2026-03-13 17:40:36"} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":5976,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":28644},{"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null,"id":28645},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28646},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28647},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":28648},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null,"id":28649},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":28650},{"menu_item_id":26,"quantity":1,"discount_percent":0,"notes":null,"id":28651},{"menu_item_id":24,"quantity":1,"discount_percent":0,"notes":null,"id":28652},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":28644,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":28645,"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null},{"id":28646,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28647,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28648,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":28649,"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"id":28650,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"id":28651,"menu_item_id":26,"quantity":1,"discount_percent":0,"notes":null},{"id":28652,"menu_item_id":24,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5976,"items_count":10} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28644,"menu_item_id":96,"quantity":1},{"id":28645,"menu_item_id":67,"quantity":1},{"id":28646,"menu_item_id":61,"quantity":1},{"id":28647,"menu_item_id":56,"quantity":1},{"id":28648,"menu_item_id":396,"quantity":2},{"id":28649,"menu_item_id":83,"quantity":1},{"id":28650,"menu_item_id":3,"quantity":1},{"id":28651,"menu_item_id":26,"quantity":1},{"id":28652,"menu_item_id":24,"quantity":1},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Item changes check {"order_id":5976,"has_item_changes":true,"old_items_count":9,"new_items_count":10,"old_items_map_keys":["96|1|","67|1|","61|1|","56|1|","396|2|","83|1|","3|1|","26|1|","24|1|"],"new_items_map_keys":["96|1|","67|1|","61|1|","56|1|","396|2|","83|1|","3|1|","26|1|","24|1|","13|2|"]} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5976,"order_number":"AZS-130326-017"} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-017","replaced_order_id":5976} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5980,"items_count":10,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":67,"quantity":1,"price":"599.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":83,"quantity":1,"price":"649.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":26,"quantity":1,"price":"249.00"},{"menu_item_id":24,"quantity":1,"price":"249.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"}]} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5980,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5980}} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5980,"item_index":0,"menu_item_id":96} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5980,"item_index":1,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5980}} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5980,"item_index":1,"menu_item_id":67} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5980,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5980}} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5980,"item_index":2,"menu_item_id":61} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5980,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5980}} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5980,"item_index":3,"menu_item_id":56} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5980,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5980}} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5980,"item_index":4,"menu_item_id":396} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5980,"item_index":5,"item_data":{"menu_item_id":83,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Chicken Nuggets","quantity":1,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":649.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5980}} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5980,"item_index":5,"menu_item_id":83} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5980,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5980}} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5980,"item_index":6,"menu_item_id":3} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5980,"item_index":7,"item_data":{"menu_item_id":26,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Chocolate","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5980}} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5980,"item_index":7,"menu_item_id":26} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5980,"item_index":8,"item_data":{"menu_item_id":24,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Mango","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5980}} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5980,"item_index":8,"menu_item_id":24} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5980,"item_index":9,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5980}} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5980,"item_index":9,"menu_item_id":13} 
[2026-03-13 17:46:21] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5976,"new_order_id":5980,"order_number":"AZS-130326-017"} 
[2026-03-13 17:46:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5980,"item_index":0,"item_id":28644} 
[2026-03-13 17:46:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5980,"item_index":1,"item_id":28645} 
[2026-03-13 17:46:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5980,"item_index":2,"item_id":28646} 
[2026-03-13 17:46:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5980,"item_index":3,"item_id":28647} 
[2026-03-13 17:46:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5980,"item_index":4,"item_id":28648} 
[2026-03-13 17:46:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5980,"item_index":5,"item_id":28649} 
[2026-03-13 17:46:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5980,"item_index":6,"item_id":28650} 
[2026-03-13 17:46:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5980,"item_index":7,"item_id":28651} 
[2026-03-13 17:46:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5980,"item_index":8,"item_id":28652} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":10,"order_id":5980,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":28644},{"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null,"id":28645},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28646},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28647},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":28648},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null,"id":28649},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":28650},{"menu_item_id":26,"quantity":1,"discount_percent":0,"notes":null,"id":28651},{"menu_item_id":24,"quantity":1,"discount_percent":0,"notes":null,"id":28652},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":26,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":24,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5980,"items_count":10} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":10,"items_to_remove":[28661,28662,28663,28664,28665,28666,28667,28668,28669,28670],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":67,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":83,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":26,"quantity":1},{"id":null,"menu_item_id":24,"quantity":1},{"id":null,"menu_item_id":13,"quantity":3}]} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Item changes check {"order_id":5980,"has_item_changes":true,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["96|1|","67|1|","61|1|","56|1|","396|2|","83|1|","3|1|","26|1|","24|1|","13|2|"],"new_items_map_keys":["96|1|","67|1|","61|1|","56|1|","396|2|","83|1|","3|1|","26|1|","24|1|","13|3|"]} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5980,"order_number":"AZS-130326-017"} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-017","replaced_order_id":5980} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5981,"items_count":10,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":67,"quantity":1,"price":"599.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":83,"quantity":1,"price":"649.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":26,"quantity":1,"price":"249.00"},{"menu_item_id":24,"quantity":1,"price":"249.00"},{"menu_item_id":13,"quantity":3,"price":"249.00"}]} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5981,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5981}} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5981,"item_index":0,"menu_item_id":96} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5981,"item_index":1,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5981}} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5981,"item_index":1,"menu_item_id":67} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5981,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5981}} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5981,"item_index":2,"menu_item_id":61} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5981,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5981}} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5981,"item_index":3,"menu_item_id":56} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5981,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5981}} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5981,"item_index":4,"menu_item_id":396} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5981,"item_index":5,"item_data":{"menu_item_id":83,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Chicken Nuggets","quantity":1,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":649.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5981}} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5981,"item_index":5,"menu_item_id":83} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5981,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5981}} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5981,"item_index":6,"menu_item_id":3} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5981,"item_index":7,"item_data":{"menu_item_id":26,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Chocolate","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5981}} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5981,"item_index":7,"menu_item_id":26} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5981,"item_index":8,"item_data":{"menu_item_id":24,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Mango","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5981}} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5981,"item_index":8,"menu_item_id":24} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5981,"item_index":9,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5981}} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5981,"item_index":9,"menu_item_id":13} 
[2026-03-13 17:46:38] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5980,"new_order_id":5981,"order_number":"AZS-130326-017"} 
[2026-03-13 17:46:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":0,"item_id":28644} 
[2026-03-13 17:46:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":1,"item_id":28645} 
[2026-03-13 17:46:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":2,"item_id":28646} 
[2026-03-13 17:46:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":3,"item_id":28647} 
[2026-03-13 17:46:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":4,"item_id":28648} 
[2026-03-13 17:46:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":5,"item_id":28649} 
[2026-03-13 17:46:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":6,"item_id":28650} 
[2026-03-13 17:46:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":7,"item_id":28651} 
[2026-03-13 17:46:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":8,"item_id":28652} 
[2026-03-13 17:46:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":10,"order_id":5981,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":28644},{"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null,"id":28645},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28646},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28647},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":28648},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null,"id":28649},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":28650},{"menu_item_id":26,"quantity":1,"discount_percent":0,"notes":null,"id":28651},{"menu_item_id":24,"quantity":1,"discount_percent":0,"notes":null,"id":28652},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":26,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":24,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-13 17:46:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5981,"items_count":10} 
[2026-03-13 17:46:42] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":10,"items_to_remove":[28671,28672,28673,28674,28675,28676,28677,28678,28679,28680],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":67,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":83,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":26,"quantity":1},{"id":null,"menu_item_id":24,"quantity":1},{"id":null,"menu_item_id":13,"quantity":3}]} 
[2026-03-13 17:46:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5981,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["96|1|","67|1|","61|1|","56|1|","396|2|","83|1|","3|1|","26|1|","24|1|","13|3|"],"new_items_map_keys":["96|1|","67|1|","61|1|","56|1|","396|2|","83|1|","3|1|","26|1|","24|1|","13|3|"]} 
[2026-03-13 17:46:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5981,"order_number":"AZS-130326-017"} 
[2026-03-13 17:46:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5981,"order_number":"AZS-130326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-13 17:46:42"} 
[2026-03-13 17:48:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":0,"item_id":28644} 
[2026-03-13 17:48:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":1,"item_id":28645} 
[2026-03-13 17:48:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":2,"item_id":28646} 
[2026-03-13 17:48:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":3,"item_id":28647} 
[2026-03-13 17:48:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":4,"item_id":28648} 
[2026-03-13 17:48:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":5,"item_id":28649} 
[2026-03-13 17:48:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":6,"item_id":28650} 
[2026-03-13 17:48:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":7,"item_id":28651} 
[2026-03-13 17:48:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":8,"item_id":28652} 
[2026-03-13 17:48:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":10,"order_id":5981,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28644},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":28645},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28646},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28647},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28648},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":28649},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28650},{"menu_item_id":26,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":28651},{"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":28652},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":26,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-13 17:48:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5981,"items_count":10} 
[2026-03-13 17:48:04] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":10,"items_to_remove":[28671,28672,28673,28674,28675,28676,28677,28678,28679,28680],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":67,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":83,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":26,"quantity":1},{"id":null,"menu_item_id":24,"quantity":1},{"id":null,"menu_item_id":13,"quantity":3}]} 
[2026-03-13 17:48:04] local.INFO: PosOrderController::update - Item changes check {"order_id":5981,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["96|1|","67|1|","61|1|","56|1|","396|2|","83|1|","3|1|","26|1|","24|1|","13|3|"],"new_items_map_keys":["96|1|","67|1|","61|1|","56|1|","396|2|","83|1|","3|1|","26|1|","24|1|","13|3|"]} 
[2026-03-13 17:48:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5981,"order_number":"AZS-130326-017"} 
[2026-03-13 17:48:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5981,"order_number":"AZS-130326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 17:48:04"} 
[2026-03-13 17:58:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":0,"item_id":28644} 
[2026-03-13 17:58:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":1,"item_id":28645} 
[2026-03-13 17:58:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":2,"item_id":28646} 
[2026-03-13 17:58:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":3,"item_id":28647} 
[2026-03-13 17:58:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":4,"item_id":28648} 
[2026-03-13 17:58:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":5,"item_id":28649} 
[2026-03-13 17:58:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":6,"item_id":28650} 
[2026-03-13 17:58:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":7,"item_id":28651} 
[2026-03-13 17:58:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":8,"item_id":28652} 
[2026-03-13 17:58:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":10,"order_id":5981,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28644},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":28645},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28646},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28647},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28648},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":28649},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28650},{"menu_item_id":26,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":28651},{"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":28652},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":26,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-13 17:58:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5981,"items_count":10} 
[2026-03-13 17:58:53] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":10,"items_to_remove":[28671,28672,28673,28674,28675,28676,28677,28678,28679,28680],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":67,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":83,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":26,"quantity":1},{"id":null,"menu_item_id":24,"quantity":1},{"id":null,"menu_item_id":13,"quantity":3}]} 
[2026-03-13 17:58:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5981,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["96|1|","67|1|","61|1|","56|1|","396|2|","83|1|","3|1|","26|1|","24|1|","13|3|"],"new_items_map_keys":["96|1|","67|1|","61|1|","56|1|","396|2|","83|1|","3|1|","26|1|","24|1|","13|3|"]} 
[2026-03-13 17:58:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5981,"order_number":"AZS-130326-017"} 
[2026-03-13 17:58:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5981,"order_number":"AZS-130326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 17:58:53"} 
[2026-03-13 17:59:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":0,"item_id":28644} 
[2026-03-13 17:59:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":1,"item_id":28645} 
[2026-03-13 17:59:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":2,"item_id":28647} 
[2026-03-13 17:59:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":3,"item_id":28648} 
[2026-03-13 17:59:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":4,"item_id":28649} 
[2026-03-13 17:59:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":5,"item_id":28650} 
[2026-03-13 17:59:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":6,"item_id":28651} 
[2026-03-13 17:59:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":5981,"item_index":7,"item_id":28652} 
[2026-03-13 17:59:18] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5981,"order_number":"AZS-130326-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 17:59:18"} 
[2026-03-13 17:59:18] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5981,"order_number":"AZS-130326-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 17:59:18"} 
[2026-03-13 17:59:18] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5981,"order_number":"AZS-130326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 17:59:18"} 
[2026-03-13 17:59:18] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5981,"order_number":"AZS-130326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 17:59:18"} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":10,"order_id":5981,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28644},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":28645},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28647},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28648},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":28649},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28650},{"menu_item_id":26,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":28651},{"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":28652},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":26,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5981,"items_count":9} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":10,"items_to_remove":[28671,28672,28673,28674,28675,28676,28677,28678,28679,28680],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":67,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":83,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":26,"quantity":1},{"id":null,"menu_item_id":24,"quantity":1},{"id":null,"menu_item_id":13,"quantity":3}]} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Item changes check {"order_id":5981,"has_item_changes":true,"old_items_count":10,"new_items_count":9,"old_items_map_keys":["96|1|","67|1|","61|1|","56|1|","396|2|","83|1|","3|1|","26|1|","24|1|","13|3|"],"new_items_map_keys":["96|1|","67|1|","56|1|","396|2|","83|1|","3|1|","26|1|","24|1|","13|3|"]} 
[2026-03-13 17:59:18] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":5981,"order_number":"AZS-130326-017","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-13 17:59:18","original_payment_amount":"0.00","grand_total":4359.0,"timestamp":"2026-03-13 17:59:18"} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5981,"order_number":"AZS-130326-017"} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-017","replaced_order_id":5981} 
[2026-03-13 17:59:18] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":5981,"new_order_id":5982,"order_number":"AZS-130326-017","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-13 17:59:18","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-13 17:59:18"} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5982,"items_count":9,"items":[{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":67,"quantity":1,"price":599.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":83,"quantity":1,"price":649.0},{"menu_item_id":3,"quantity":1,"price":270.0},{"menu_item_id":26,"quantity":1,"price":249.0},{"menu_item_id":24,"quantity":1,"price":249.0},{"menu_item_id":13,"quantity":3,"price":249.0}]} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5982,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5982}} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5982,"item_index":0,"menu_item_id":96} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5982,"item_index":1,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":1,"price":599.0,"discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5982}} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5982,"item_index":1,"menu_item_id":67} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5982,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5982}} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5982,"item_index":2,"menu_item_id":56} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5982,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5982}} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5982,"item_index":3,"menu_item_id":396} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5982,"item_index":4,"item_data":{"menu_item_id":83,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Chicken Nuggets","quantity":1,"price":649.0,"discount_percent":0.0,"discount_amount":0.0,"total":649.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5982}} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5982,"item_index":4,"menu_item_id":83} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5982,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5982}} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5982,"item_index":5,"menu_item_id":3} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5982,"item_index":6,"item_data":{"menu_item_id":26,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Chocolate","quantity":1,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5982}} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5982,"item_index":6,"menu_item_id":26} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5982,"item_index":7,"item_data":{"menu_item_id":24,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Mango","quantity":1,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5982}} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5982,"item_index":7,"menu_item_id":24} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5982,"item_index":8,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5982}} 
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5982,"item_index":8,"menu_item_id":13} 
[2026-03-13 17:59:18] local.ERROR: Error tracking recipe usage for order 5982: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (5982, 96, 77, 1, 1, 0.00, Order #AZS-130326-017 - 1x Chicken Karahi - Half, 2026-03-13 17:59:18, 2026-03-13 17:59:18))  
[2026-03-13 17:59:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5981,"new_order_id":5982,"order_number":"AZS-130326-017"} 
[2026-03-13 17:59:19] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":5981,"new_order_id":5982,"order_number":"AZS-130326-017","route":"api/orders/5981"} 
[2026-03-13 18:00:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T06:00:53.510Z","date_to":"2026-03-13T18:00:53.510Z","per_page":"100"} 
[2026-03-13 18:00:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":1,"unique_order_numbers":19} 
[2026-03-13 18:00:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T06:00:53.497Z","date_to":"2026-03-13T18:00:53.497Z","per_page":"100"} 
[2026-03-13 18:00:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":1,"unique_order_numbers":19} 
[2026-03-13 18:00:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T06:00:53.497Z","date_to":"2026-03-13T18:00:53.497Z","per_page":"100"} 
[2026-03-13 18:00:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":1,"unique_order_numbers":19} 
[2026-03-13 18:46:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5977,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28653},{"menu_item_id":397,"quantity":200,"price":4,"discount_percent":0,"notes":null,"id":28654}],"validated_items":[{"id":28653,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":28654,"menu_item_id":397,"quantity":200,"price":4,"discount_percent":0,"notes":null}]} 
[2026-03-13 18:46:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5977,"items_count":2} 
[2026-03-13 18:46:43] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28653,"menu_item_id":105,"quantity":1},{"id":28654,"menu_item_id":397,"quantity":200}]} 
[2026-03-13 18:46:43] local.INFO: PosOrderController::update - Item changes check {"order_id":5977,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["105|1|","397|200|"],"new_items_map_keys":["105|1|","397|200|"]} 
[2026-03-13 18:46:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5977,"order_number":"AZS-130326-018"} 
[2026-03-13 18:46:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5977,"order_number":"AZS-130326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 18:46:43"} 
[2026-03-13 18:56:16] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5977,"order_number":"AZS-130326-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 18:56:16"} 
[2026-03-13 18:56:16] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5977,"order_number":"AZS-130326-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 18:56:16"} 
[2026-03-13 18:56:16] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5977,"order_number":"AZS-130326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 18:56:16"} 
[2026-03-13 18:56:16] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5977,"order_number":"AZS-130326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 18:56:16"} 
[2026-03-13 18:56:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5977,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28653},{"menu_item_id":397,"quantity":200,"price":4,"discount_percent":0,"notes":null,"id":28654}],"validated_items":[{"id":28653,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":28654,"menu_item_id":397,"quantity":200,"price":4,"discount_percent":0,"notes":null}]} 
[2026-03-13 18:56:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5977,"items_count":2} 
[2026-03-13 18:56:16] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28653,"menu_item_id":105,"quantity":1},{"id":28654,"menu_item_id":397,"quantity":200}]} 
[2026-03-13 18:56:16] local.INFO: PosOrderController::update - Item changes check {"order_id":5977,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["105|1|","397|200|"],"new_items_map_keys":["105|1|","397|200|"]} 
[2026-03-13 18:56:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5977,"order_number":"AZS-130326-018"} 
[2026-03-13 18:56:16] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5977,"order_number":"AZS-130326-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-13 18:56:16","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 18:56:16"} 
[2026-03-13 18:56:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5977,"order_number":"AZS-130326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 18:56:16"} 
[2026-03-13 18:56:16] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5977,"order_number":"AZS-130326-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-13 18:56:16","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-03-13 18:56:16"} 
[2026-03-13 19:36:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":5984,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-13 19:36:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5984,"items_count":1} 
[2026-03-13 19:36:02] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[28692],"items":[{"id":null,"menu_item_id":67,"quantity":1}]} 
[2026-03-13 19:36:02] local.INFO: PosOrderController::update - Item changes check {"order_id":5984,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["392|1|"],"new_items_map_keys":["67|1|"]} 
[2026-03-13 19:36:02] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5984,"order_number":"AZS-130326-021"} 
[2026-03-13 19:36:02] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-021","replaced_order_id":5984} 
[2026-03-13 19:36:02] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5985,"items_count":1,"items":[{"menu_item_id":67,"quantity":1,"price":"599.00"}]} 
[2026-03-13 19:36:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5985,"item_index":0,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5985}} 
[2026-03-13 19:36:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5985,"item_index":0,"menu_item_id":67} 
[2026-03-13 19:36:02] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5984,"new_order_id":5985,"order_number":"AZS-130326-021"} 
[2026-03-13 19:36:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":5985,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-13 19:36:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5985,"items_count":1} 
[2026-03-13 19:36:26] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[28693],"items":[{"id":null,"menu_item_id":67,"quantity":1}]} 
[2026-03-13 19:36:26] local.INFO: PosOrderController::update - Item changes check {"order_id":5985,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["67|1|"],"new_items_map_keys":["67|1|"]} 
[2026-03-13 19:36:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5985,"order_number":"AZS-130326-021"} 
[2026-03-13 19:36:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5985,"order_number":"AZS-130326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-13 19:36:26"} 
[2026-03-13 19:43:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5983,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null,"id":28690},{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null,"id":28691},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28690,"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null},{"id":28691,"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-13 19:43:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5983,"items_count":4} 
[2026-03-13 19:43:17] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28690,"menu_item_id":13,"quantity":4},{"id":28691,"menu_item_id":85,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-13 19:43:17] local.INFO: PosOrderController::update - Item changes check {"order_id":5983,"has_item_changes":true,"old_items_count":2,"new_items_count":4,"old_items_map_keys":["13|4|","85|1|"],"new_items_map_keys":["13|4|","85|1|","5|1|","2|1|"]} 
[2026-03-13 19:43:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5983,"order_number":"AZS-130326-020"} 
[2026-03-13 19:43:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-020","replaced_order_id":5983} 
[2026-03-13 19:43:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5986,"items_count":4,"items":[{"menu_item_id":13,"quantity":4,"price":"249.00"},{"menu_item_id":85,"quantity":1,"price":"699.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-13 19:43:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5986,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":4,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5986}} 
[2026-03-13 19:43:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5986,"item_index":0,"menu_item_id":13} 
[2026-03-13 19:43:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5986,"item_index":1,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":1,"price":"699.00","discount_percent":0.0,"discount_amount":0.0,"total":699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5986}} 
[2026-03-13 19:43:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5986,"item_index":1,"menu_item_id":85} 
[2026-03-13 19:43:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5986,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5986}} 
[2026-03-13 19:43:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5986,"item_index":2,"menu_item_id":5} 
[2026-03-13 19:43:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5986,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5986}} 
[2026-03-13 19:43:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5986,"item_index":3,"menu_item_id":2} 
[2026-03-13 19:43:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5983,"new_order_id":5986,"order_number":"AZS-130326-020"} 
[2026-03-13 19:47:52] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-13 19:57:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5986,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":28694},{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":28695},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28696},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28697}],"validated_items":[{"id":28694,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null},{"id":28695,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":28696,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28697,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-13 19:57:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5986,"items_count":4} 
[2026-03-13 19:57:00] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28694,"menu_item_id":13,"quantity":4},{"id":28695,"menu_item_id":85,"quantity":1},{"id":28696,"menu_item_id":5,"quantity":1},{"id":28697,"menu_item_id":2,"quantity":1}]} 
[2026-03-13 19:57:00] local.INFO: PosOrderController::update - Item changes check {"order_id":5986,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["13|4|","85|1|","5|1|","2|1|"],"new_items_map_keys":["13|4|","85|1|","5|1|","2|1|"]} 
[2026-03-13 19:57:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5986,"order_number":"AZS-130326-020"} 
[2026-03-13 19:57:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5986,"order_number":"AZS-130326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 19:57:00"} 
[2026-03-13 20:19:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5987,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28698}],"validated_items":[{"id":28698,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-13 20:19:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5987,"items_count":1} 
[2026-03-13 20:19:23] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28698,"menu_item_id":6,"quantity":2}]} 
[2026-03-13 20:19:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5987,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-13 20:19:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5987,"order_number":"AZS-130326-022"} 
[2026-03-13 20:19:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5987,"order_number":"AZS-130326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 20:19:23"} 
[2026-03-13 20:28:50] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5987,"order_number":"AZS-130326-022","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 20:28:50"} 
[2026-03-13 20:28:50] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5987,"order_number":"AZS-130326-022","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 20:28:50"} 
[2026-03-13 20:28:50] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5987,"order_number":"AZS-130326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 20:28:50"} 
[2026-03-13 20:28:50] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5987,"order_number":"AZS-130326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 20:28:50"} 
[2026-03-13 20:28:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5987,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28698}],"validated_items":[{"id":28698,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-13 20:28:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5987,"items_count":1} 
[2026-03-13 20:28:50] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28698,"menu_item_id":6,"quantity":2}]} 
[2026-03-13 20:28:50] local.INFO: PosOrderController::update - Item changes check {"order_id":5987,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-13 20:28:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5987,"order_number":"AZS-130326-022"} 
[2026-03-13 20:28:50] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5987,"order_number":"AZS-130326-022","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-13 20:28:50","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 20:28:50"} 
[2026-03-13 20:28:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5987,"order_number":"AZS-130326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 20:28:50"} 
[2026-03-13 20:28:50] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5987,"order_number":"AZS-130326-022","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-13 20:28:50","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-13 20:28:50"} 
[2026-03-13 20:28:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T08:28:53.118Z","date_to":"2026-03-13T20:28:53.118Z","per_page":"100"} 
[2026-03-13 20:28:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":2,"unique_order_numbers":22} 
[2026-03-13 20:28:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T08:28:53.134Z","date_to":"2026-03-13T20:28:53.134Z","per_page":"100"} 
[2026-03-13 20:28:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":2,"unique_order_numbers":22} 
[2026-03-13 20:28:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T08:28:53.118Z","date_to":"2026-03-13T20:28:53.118Z","per_page":"100"} 
[2026-03-13 20:28:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":2,"unique_order_numbers":22} 
[2026-03-13 20:35:45] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-13 20:39:29] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5988,"order_number":"AZS-130326-023","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 20:39:29"} 
[2026-03-13 20:39:29] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5988,"order_number":"AZS-130326-023","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 20:39:29"} 
[2026-03-13 20:39:29] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5988,"order_number":"AZS-130326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 20:39:29"} 
[2026-03-13 20:39:29] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5988,"order_number":"AZS-130326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 20:39:29"} 
[2026-03-13 20:39:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5988,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28699}],"validated_items":[{"id":28699,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-13 20:39:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5988,"items_count":1} 
[2026-03-13 20:39:29] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28699,"menu_item_id":6,"quantity":1}]} 
[2026-03-13 20:39:29] local.INFO: PosOrderController::update - Item changes check {"order_id":5988,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-03-13 20:39:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5988,"order_number":"AZS-130326-023"} 
[2026-03-13 20:39:29] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5988,"order_number":"AZS-130326-023","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-13 20:39:29","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 20:39:29"} 
[2026-03-13 20:39:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5988,"order_number":"AZS-130326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 20:39:29"} 
[2026-03-13 20:39:29] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5988,"order_number":"AZS-130326-023","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-13 20:39:29","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"200.00","database_verification_match":true,"timestamp":"2026-03-13 20:39:29"} 
[2026-03-13 20:39:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5986,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":28694},{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":28695},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28696},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28697}],"validated_items":[{"id":28694,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null},{"id":28695,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":28696,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28697,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-13 20:39:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5986,"items_count":4} 
[2026-03-13 20:39:42] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28694,"menu_item_id":13,"quantity":4},{"id":28695,"menu_item_id":85,"quantity":1},{"id":28696,"menu_item_id":5,"quantity":1},{"id":28697,"menu_item_id":2,"quantity":1}]} 
[2026-03-13 20:39:42] local.INFO: PosOrderController::update - Item changes check {"order_id":5986,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["13|4|","85|1|","5|1|","2|1|"],"new_items_map_keys":["13|4|","85|1|","5|1|","2|1|"]} 
[2026-03-13 20:39:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5986,"order_number":"AZS-130326-020"} 
[2026-03-13 20:39:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5986,"order_number":"AZS-130326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 20:39:42"} 
[2026-03-13 20:40:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T08:40:30.649Z","date_to":"2026-03-13T20:40:30.649Z","per_page":"100"} 
[2026-03-13 20:40:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["paid","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":2,"unique_order_numbers":23} 
[2026-03-13 20:40:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T08:40:30.636Z","date_to":"2026-03-13T20:40:30.636Z","per_page":"100"} 
[2026-03-13 20:40:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["paid","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":2,"unique_order_numbers":23} 
[2026-03-13 20:40:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T08:40:30.636Z","date_to":"2026-03-13T20:40:30.636Z","per_page":"100"} 
[2026-03-13 20:40:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["paid","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":2,"unique_order_numbers":23} 
[2026-03-13 21:46:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5985,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null,"id":28693}],"validated_items":[{"id":28693,"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-13 21:46:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5985,"items_count":1} 
[2026-03-13 21:46:49] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28693,"menu_item_id":67,"quantity":1}]} 
[2026-03-13 21:46:49] local.INFO: PosOrderController::update - Item changes check {"order_id":5985,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["67|1|"],"new_items_map_keys":["67|1|"]} 
[2026-03-13 21:46:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5985,"order_number":"AZS-130326-021"} 
[2026-03-13 21:46:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5985,"order_number":"AZS-130326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-13 21:46:49"} 
[2026-03-13 21:47:03] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5985,"order_number":"AZS-130326-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":600,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 21:47:03"} 
[2026-03-13 21:47:03] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5985,"order_number":"AZS-130326-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 21:47:03"} 
[2026-03-13 21:47:03] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5985,"order_number":"AZS-130326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 21:47:03"} 
[2026-03-13 21:47:03] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5985,"order_number":"AZS-130326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 21:47:03"} 
[2026-03-13 21:47:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5985,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":28693}],"validated_items":[{"id":28693,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null}]} 
[2026-03-13 21:47:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5985,"items_count":1} 
[2026-03-13 21:47:03] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28693,"menu_item_id":67,"quantity":1}]} 
[2026-03-13 21:47:03] local.INFO: PosOrderController::update - Item changes check {"order_id":5985,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["67|1|"],"new_items_map_keys":["67|1|"]} 
[2026-03-13 21:47:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5985,"order_number":"AZS-130326-021"} 
[2026-03-13 21:47:03] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5985,"order_number":"AZS-130326-021","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":600,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-13 21:47:03","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 21:47:03"} 
[2026-03-13 21:47:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5985,"order_number":"AZS-130326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 21:47:03"} 
[2026-03-13 21:47:03] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5985,"order_number":"AZS-130326-021","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"600.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-13 21:47:03","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"600.00","database_verification_match":true,"timestamp":"2026-03-13 21:47:03"} 
[2026-03-13 21:47:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T09:47:09.625Z","date_to":"2026-03-13T21:47:09.625Z","per_page":"100"} 
[2026-03-13 21:47:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T09:47:09.639Z","date_to":"2026-03-13T21:47:09.639Z","per_page":"100"} 
[2026-03-13 21:47:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":22,"unpaid_count":1,"unique_order_numbers":23} 
[2026-03-13 21:47:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":22,"unpaid_count":1,"unique_order_numbers":23} 
[2026-03-13 21:47:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T09:47:09.625Z","date_to":"2026-03-13T21:47:09.625Z","per_page":"100"} 
[2026-03-13 21:47:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":22,"unpaid_count":1,"unique_order_numbers":23} 
[2026-03-13 22:15:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5989,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":28700},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28700,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-13 22:15:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5989,"items_count":2} 
[2026-03-13 22:15:45] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28700,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1}]} 
[2026-03-13 22:15:45] local.INFO: PosOrderController::update - Item changes check {"order_id":5989,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["98|1|"],"new_items_map_keys":["98|1|","50|1|"]} 
[2026-03-13 22:15:45] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5989,"order_number":"AZS-130326-024"} 
[2026-03-13 22:15:45] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-024","replaced_order_id":5989} 
[2026-03-13 22:15:45] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5990,"items_count":2,"items":[{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"}]} 
[2026-03-13 22:15:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5990,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5990}} 
[2026-03-13 22:15:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5990,"item_index":0,"menu_item_id":98} 
[2026-03-13 22:15:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5990,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5990}} 
[2026-03-13 22:15:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5990,"item_index":1,"menu_item_id":50} 
[2026-03-13 22:15:45] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5989,"new_order_id":5990,"order_number":"AZS-130326-024"} 
[2026-03-13 22:17:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T10:17:05.419Z","date_to":"2026-03-13T22:17:05.419Z","per_page":"100"} 
[2026-03-13 22:17:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":22,"unpaid_count":2,"unique_order_numbers":24} 
[2026-03-13 22:17:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T10:17:05.432Z","date_to":"2026-03-13T22:17:05.432Z","per_page":"100"} 
[2026-03-13 22:17:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":22,"unpaid_count":2,"unique_order_numbers":24} 
[2026-03-13 22:17:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T10:17:05.419Z","date_to":"2026-03-13T22:17:05.419Z","per_page":"100"} 
[2026-03-13 22:17:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":22,"unpaid_count":2,"unique_order_numbers":24} 
[2026-03-13 22:39:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T10:39:31.830Z","date_to":"2026-03-13T22:39:31.830Z","per_page":"100"} 
[2026-03-13 22:39:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":22,"unpaid_count":3,"unique_order_numbers":25} 
[2026-03-13 22:39:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T10:39:31.838Z","date_to":"2026-03-13T22:39:31.838Z","per_page":"100"} 
[2026-03-13 22:39:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":22,"unpaid_count":3,"unique_order_numbers":25} 
[2026-03-13 22:39:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T10:39:31.830Z","date_to":"2026-03-13T22:39:31.830Z","per_page":"100"} 
[2026-03-13 22:39:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":22,"unpaid_count":3,"unique_order_numbers":25} 
[2026-03-13 22:40:32] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5986,"order_number":"AZS-130326-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2100,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 22:40:32"} 
[2026-03-13 22:40:32] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5986,"order_number":"AZS-130326-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 22:40:32"} 
[2026-03-13 22:40:32] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5986,"order_number":"AZS-130326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 22:40:32"} 
[2026-03-13 22:40:32] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5986,"order_number":"AZS-130326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 22:40:32"} 
[2026-03-13 22:40:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5986,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":28694},{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":28695},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28696},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28697}],"validated_items":[{"id":28694,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null},{"id":28695,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":28696,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28697,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-13 22:40:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5986,"items_count":4} 
[2026-03-13 22:40:32] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28694,"menu_item_id":13,"quantity":4},{"id":28695,"menu_item_id":85,"quantity":1},{"id":28696,"menu_item_id":5,"quantity":1},{"id":28697,"menu_item_id":2,"quantity":1}]} 
[2026-03-13 22:40:32] local.INFO: PosOrderController::update - Item changes check {"order_id":5986,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["13|4|","85|1|","5|1|","2|1|"],"new_items_map_keys":["13|4|","85|1|","5|1|","2|1|"]} 
[2026-03-13 22:40:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5986,"order_number":"AZS-130326-020"} 
[2026-03-13 22:40:32] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5986,"order_number":"AZS-130326-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2100,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-13 22:40:32","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 22:40:32"} 
[2026-03-13 22:40:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5986,"order_number":"AZS-130326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 22:40:32"} 
[2026-03-13 22:40:32] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5986,"order_number":"AZS-130326-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2100.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-13 22:40:32","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2100.00","database_verification_match":true,"timestamp":"2026-03-13 22:40:32"} 
[2026-03-13 22:41:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T10:41:08.527Z","date_to":"2026-03-13T22:41:08.527Z","per_page":"100"} 
[2026-03-13 22:41:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-13 22:41:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T10:41:08.516Z","date_to":"2026-03-13T22:41:08.516Z","per_page":"100"} 
[2026-03-13 22:41:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-13 22:41:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T10:41:08.516Z","date_to":"2026-03-13T22:41:08.516Z","per_page":"100"} 
[2026-03-13 22:41:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-13 23:05:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T11:05:48.082Z","date_to":"2026-03-13T23:05:48.082Z","per_page":"100"} 
[2026-03-13 23:05:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-13 23:05:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T11:05:48.102Z","date_to":"2026-03-13T23:05:48.102Z","per_page":"100"} 
[2026-03-13 23:05:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-13 23:05:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T11:05:48.082Z","date_to":"2026-03-13T23:05:48.082Z","per_page":"100"} 
[2026-03-13 23:05:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-03-13 23:10:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T11:10:38.303Z","date_to":"2026-03-13T23:10:38.303Z","per_page":"100"} 
[2026-03-13 23:10:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T11:10:38.317Z","date_to":"2026-03-13T23:10:38.317Z","per_page":"100"} 
[2026-03-13 23:10:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-027","AZS-130326-026","AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":4,"unique_order_numbers":27} 
[2026-03-13 23:10:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-027","AZS-130326-026","AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":4,"unique_order_numbers":27} 
[2026-03-13 23:10:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T11:10:38.303Z","date_to":"2026-03-13T23:10:38.303Z","per_page":"100"} 
[2026-03-13 23:10:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-027","AZS-130326-026","AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":4,"unique_order_numbers":27} 
[2026-03-13 23:11:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":5993,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":28706}],"validated_items":[{"id":28706,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-13 23:11:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5993,"items_count":1} 
[2026-03-13 23:11:23] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28706,"menu_item_id":411,"quantity":2}]} 
[2026-03-13 23:11:23] local.INFO: PosOrderController::update - Item changes check {"order_id":5993,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|2|"]} 
[2026-03-13 23:11:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5993,"order_number":"AZS-130326-027"} 
[2026-03-13 23:11:24] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-027","replaced_order_id":5993} 
[2026-03-13 23:11:24] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5994,"items_count":1,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"}]} 
[2026-03-13 23:11:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5994,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5994}} 
[2026-03-13 23:11:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5994,"item_index":0,"menu_item_id":411} 
[2026-03-13 23:11:24] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5993,"new_order_id":5994,"order_number":"AZS-130326-027"} 
[2026-03-13 23:11:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T11:11:39.369Z","date_to":"2026-03-13T23:11:39.369Z","per_page":"100"} 
[2026-03-13 23:11:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-027","AZS-130326-026","AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":4,"unique_order_numbers":27} 
[2026-03-13 23:11:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T11:11:39.382Z","date_to":"2026-03-13T23:11:39.382Z","per_page":"100"} 
[2026-03-13 23:11:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-027","AZS-130326-026","AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":4,"unique_order_numbers":27} 
[2026-03-13 23:11:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T11:11:39.369Z","date_to":"2026-03-13T23:11:39.369Z","per_page":"100"} 
[2026-03-13 23:11:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-027","AZS-130326-026","AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":4,"unique_order_numbers":27} 
[2026-03-13 23:19:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5992,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":28705},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28705,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-13 23:19:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5992,"items_count":2} 
[2026-03-13 23:19:53] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28705,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":416,"quantity":1}]} 
[2026-03-13 23:19:53] local.INFO: PosOrderController::update - Item changes check {"order_id":5992,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|","416|1|"]} 
[2026-03-13 23:19:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5992,"order_number":"AZS-130326-026"} 
[2026-03-13 23:19:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-026","replaced_order_id":5992} 
[2026-03-13 23:19:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5996,"items_count":2,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":416,"quantity":1,"price":"70.00"}]} 
[2026-03-13 23:19:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5996,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5996}} 
[2026-03-13 23:19:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5996,"item_index":0,"menu_item_id":411} 
[2026-03-13 23:19:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5996,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5996}} 
[2026-03-13 23:19:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5996,"item_index":1,"menu_item_id":416} 
[2026-03-13 23:19:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5992,"new_order_id":5996,"order_number":"AZS-130326-026"} 
[2026-03-13 23:22:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5994,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":28707},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":28707,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-13 23:22:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5994,"items_count":3} 
[2026-03-13 23:22:39] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28707,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":413,"quantity":1},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-03-13 23:22:39] local.INFO: PosOrderController::update - Item changes check {"order_id":5994,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["411|2|"],"new_items_map_keys":["411|2|","413|1|","6|2|"]} 
[2026-03-13 23:22:39] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5994,"order_number":"AZS-130326-027"} 
[2026-03-13 23:22:39] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-027","replaced_order_id":5994} 
[2026-03-13 23:22:39] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5997,"items_count":3,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":413,"quantity":1,"price":"200.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-03-13 23:22:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5997,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5997}} 
[2026-03-13 23:22:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5997,"item_index":0,"menu_item_id":411} 
[2026-03-13 23:22:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5997,"item_index":1,"item_data":{"menu_item_id":413,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Namkeen Lassi","quantity":1,"price":"200.00","discount_percent":0.0,"discount_amount":0.0,"total":200.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5997}} 
[2026-03-13 23:22:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5997,"item_index":1,"menu_item_id":413} 
[2026-03-13 23:22:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5997,"item_index":2,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5997}} 
[2026-03-13 23:22:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5997,"item_index":2,"menu_item_id":6} 
[2026-03-13 23:22:39] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5994,"new_order_id":5997,"order_number":"AZS-130326-027"} 
[2026-03-13 23:28:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5997,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":28711},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null,"id":28712},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":28713},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":28711,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":28712,"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null},{"id":28713,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-13 23:28:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5997,"items_count":4} 
[2026-03-13 23:28:34] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28711,"menu_item_id":411,"quantity":2},{"id":28712,"menu_item_id":413,"quantity":1},{"id":28713,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":5,"quantity":2}]} 
[2026-03-13 23:28:34] local.INFO: PosOrderController::update - Item changes check {"order_id":5997,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["411|2|","413|1|","6|2|"],"new_items_map_keys":["411|2|","413|1|","6|2|","5|2|"]} 
[2026-03-13 23:28:34] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5997,"order_number":"AZS-130326-027"} 
[2026-03-13 23:28:34] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-027","replaced_order_id":5997} 
[2026-03-13 23:28:34] local.INFO: PosOrderController::update - Creating order items {"new_order_id":5999,"items_count":4,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":413,"quantity":1,"price":"200.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"}]} 
[2026-03-13 23:28:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5999,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5999}} 
[2026-03-13 23:28:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5999,"item_index":0,"menu_item_id":411} 
[2026-03-13 23:28:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5999,"item_index":1,"item_data":{"menu_item_id":413,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Namkeen Lassi","quantity":1,"price":"200.00","discount_percent":0.0,"discount_amount":0.0,"total":200.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5999}} 
[2026-03-13 23:28:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5999,"item_index":1,"menu_item_id":413} 
[2026-03-13 23:28:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5999,"item_index":2,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5999}} 
[2026-03-13 23:28:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5999,"item_index":2,"menu_item_id":6} 
[2026-03-13 23:28:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":5999,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":5999}} 
[2026-03-13 23:28:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":5999,"item_index":3,"menu_item_id":5} 
[2026-03-13 23:28:34] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5997,"new_order_id":5999,"order_number":"AZS-130326-027"} 
[2026-03-13 23:29:24] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5990,"order_number":"AZS-130326-024","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1328,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 23:29:24"} 
[2026-03-13 23:29:24] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5990,"order_number":"AZS-130326-024","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1328,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 23:29:24"} 
[2026-03-13 23:29:24] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5990,"order_number":"AZS-130326-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1328,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 23:29:24"} 
[2026-03-13 23:29:24] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5990,"order_number":"AZS-130326-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1328,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 23:29:24"} 
[2026-03-13 23:29:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5990,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28701},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":28702}],"validated_items":[{"id":28701,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28702,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-13 23:29:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5990,"items_count":2} 
[2026-03-13 23:29:24] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28701,"menu_item_id":98,"quantity":1},{"id":28702,"menu_item_id":50,"quantity":1}]} 
[2026-03-13 23:29:24] local.INFO: PosOrderController::update - Item changes check {"order_id":5990,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["98|1|","50|1|"],"new_items_map_keys":["98|1|","50|1|"]} 
[2026-03-13 23:29:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5990,"order_number":"AZS-130326-024"} 
[2026-03-13 23:29:24] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5990,"order_number":"AZS-130326-024","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1328,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-13 23:29:24","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 23:29:24"} 
[2026-03-13 23:29:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5990,"order_number":"AZS-130326-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 23:29:24"} 
[2026-03-13 23:29:24] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5990,"order_number":"AZS-130326-024","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1328.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-13 23:29:24","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1328,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1328.00","database_verification_match":true,"timestamp":"2026-03-13 23:29:24"} 
[2026-03-13 23:30:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":5999,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":28715},{"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null,"id":28716},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":28717},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":28718},{"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28715,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":28716,"menu_item_id":413,"quantity":1,"discount_percent":0,"notes":null},{"id":28717,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"id":28718,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-13 23:30:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5999,"items_count":5} 
[2026-03-13 23:30:15] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28715,"menu_item_id":411,"quantity":2},{"id":28716,"menu_item_id":413,"quantity":1},{"id":28717,"menu_item_id":6,"quantity":2},{"id":28718,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":412,"quantity":1}]} 
[2026-03-13 23:30:15] local.INFO: PosOrderController::update - Item changes check {"order_id":5999,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["411|2|","413|1|","6|2|","5|2|"],"new_items_map_keys":["411|2|","413|1|","6|2|","5|2|","412|1|"]} 
[2026-03-13 23:30:15] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5999,"order_number":"AZS-130326-027"} 
[2026-03-13 23:30:15] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-027","replaced_order_id":5999} 
[2026-03-13 23:30:15] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6000,"items_count":5,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":413,"quantity":1,"price":"200.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":412,"quantity":1,"price":"220.00"}]} 
[2026-03-13 23:30:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6000,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6000}} 
[2026-03-13 23:30:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6000,"item_index":0,"menu_item_id":411} 
[2026-03-13 23:30:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6000,"item_index":1,"item_data":{"menu_item_id":413,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Namkeen Lassi","quantity":1,"price":"200.00","discount_percent":0.0,"discount_amount":0.0,"total":200.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6000}} 
[2026-03-13 23:30:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6000,"item_index":1,"menu_item_id":413} 
[2026-03-13 23:30:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6000,"item_index":2,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6000}} 
[2026-03-13 23:30:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6000,"item_index":2,"menu_item_id":6} 
[2026-03-13 23:30:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6000,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6000}} 
[2026-03-13 23:30:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6000,"item_index":3,"menu_item_id":5} 
[2026-03-13 23:30:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6000,"item_index":4,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":1,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":220.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6000}} 
[2026-03-13 23:30:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6000,"item_index":4,"menu_item_id":412} 
[2026-03-13 23:30:15] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5999,"new_order_id":6000,"order_number":"AZS-130326-027"} 
[2026-03-13 23:34:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":5991,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":71,"quantity":1,"discount_percent":0,"notes":null,"id":28703},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":28704},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28703,"menu_item_id":71,"quantity":1,"discount_percent":0,"notes":null},{"id":28704,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-13 23:34:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5991,"items_count":4} 
[2026-03-13 23:34:05] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28703,"menu_item_id":71,"quantity":1},{"id":28704,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-13 23:34:05] local.INFO: PosOrderController::update - Item changes check {"order_id":5991,"has_item_changes":true,"old_items_count":2,"new_items_count":4,"old_items_map_keys":["71|1|","396|1|"],"new_items_map_keys":["71|1|","396|1|","61|1|","2|1|"]} 
[2026-03-13 23:34:05] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5991,"order_number":"AZS-130326-025"} 
[2026-03-13 23:34:05] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-025","replaced_order_id":5991} 
[2026-03-13 23:34:05] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6001,"items_count":4,"items":[{"menu_item_id":71,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-13 23:34:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6001,"item_index":0,"item_data":{"menu_item_id":71,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Special Afghani Boti (10 pcs)","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6001}} 
[2026-03-13 23:34:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6001,"item_index":0,"menu_item_id":71} 
[2026-03-13 23:34:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6001,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6001}} 
[2026-03-13 23:34:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6001,"item_index":1,"menu_item_id":396} 
[2026-03-13 23:34:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6001,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6001}} 
[2026-03-13 23:34:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6001,"item_index":2,"menu_item_id":61} 
[2026-03-13 23:34:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6001,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6001}} 
[2026-03-13 23:34:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6001,"item_index":3,"menu_item_id":2} 
[2026-03-13 23:34:05] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5991,"new_order_id":6001,"order_number":"AZS-130326-025"} 
[2026-03-13 23:37:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5996,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":28709},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28710}],"validated_items":[{"id":28709,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":28710,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-13 23:37:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5996,"items_count":2} 
[2026-03-13 23:37:28] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28709,"menu_item_id":411,"quantity":1},{"id":28710,"menu_item_id":416,"quantity":1}]} 
[2026-03-13 23:37:28] local.INFO: PosOrderController::update - Item changes check {"order_id":5996,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","416|1|"],"new_items_map_keys":["411|1|","416|1|"]} 
[2026-03-13 23:37:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5996,"order_number":"AZS-130326-026"} 
[2026-03-13 23:37:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5996,"order_number":"AZS-130326-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 23:37:28"} 
[2026-03-13 23:37:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6000,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":28719},{"menu_item_id":413,"quantity":1,"price":200,"discount_percent":0,"notes":null,"id":28720},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28721},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":28722},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null,"id":28723}],"validated_items":[{"id":28719,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":28720,"menu_item_id":413,"quantity":1,"price":200,"discount_percent":0,"notes":null},{"id":28721,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28722,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":28723,"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-13 23:37:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6000,"items_count":5} 
[2026-03-13 23:37:39] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28719,"menu_item_id":411,"quantity":2},{"id":28720,"menu_item_id":413,"quantity":1},{"id":28721,"menu_item_id":6,"quantity":2},{"id":28722,"menu_item_id":5,"quantity":2},{"id":28723,"menu_item_id":412,"quantity":1}]} 
[2026-03-13 23:37:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6000,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|2|","413|1|","6|2|","5|2|","412|1|"],"new_items_map_keys":["411|2|","413|1|","6|2|","5|2|","412|1|"]} 
[2026-03-13 23:37:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6000,"order_number":"AZS-130326-027"} 
[2026-03-13 23:37:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6000,"order_number":"AZS-130326-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 23:37:39"} 
[2026-03-13 23:45:12] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":5996,"order_number":"AZS-130326-026","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":700,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 23:45:12"} 
[2026-03-13 23:45:12] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":5996,"order_number":"AZS-130326-026","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":700,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 23:45:12"} 
[2026-03-13 23:45:12] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":5996,"order_number":"AZS-130326-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":700,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 23:45:12"} 
[2026-03-13 23:45:12] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":5996,"order_number":"AZS-130326-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":700,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 23:45:12"} 
[2026-03-13 23:45:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5996,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":28709},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28710}],"validated_items":[{"id":28709,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":28710,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-13 23:45:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5996,"items_count":2} 
[2026-03-13 23:45:12] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28709,"menu_item_id":411,"quantity":1},{"id":28710,"menu_item_id":416,"quantity":1}]} 
[2026-03-13 23:45:12] local.INFO: PosOrderController::update - Item changes check {"order_id":5996,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","416|1|"],"new_items_map_keys":["411|1|","416|1|"]} 
[2026-03-13 23:45:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":5996,"order_number":"AZS-130326-026"} 
[2026-03-13 23:45:12] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":5996,"order_number":"AZS-130326-026","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":700,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-13 23:45:12","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 23:45:12"} 
[2026-03-13 23:45:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":5996,"order_number":"AZS-130326-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 23:45:12"} 
[2026-03-13 23:45:12] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":5996,"order_number":"AZS-130326-026","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"700.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-13 23:45:12","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":700,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"700.00","database_verification_match":true,"timestamp":"2026-03-13 23:45:12"} 
[2026-03-13 23:45:28] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6000,"order_number":"AZS-130326-027","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2356,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 23:45:28"} 
[2026-03-13 23:45:28] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6000,"order_number":"AZS-130326-027","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2356,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 23:45:28"} 
[2026-03-13 23:45:28] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6000,"order_number":"AZS-130326-027","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2356,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 23:45:28"} 
[2026-03-13 23:45:28] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6000,"order_number":"AZS-130326-027","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2356,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 23:45:28"} 
[2026-03-13 23:45:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6000,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":28719},{"menu_item_id":413,"quantity":1,"price":200,"discount_percent":0,"notes":null,"id":28720},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28721},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":28722},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null,"id":28723}],"validated_items":[{"id":28719,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":28720,"menu_item_id":413,"quantity":1,"price":200,"discount_percent":0,"notes":null},{"id":28721,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":28722,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":28723,"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-13 23:45:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6000,"items_count":5} 
[2026-03-13 23:45:28] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28719,"menu_item_id":411,"quantity":2},{"id":28720,"menu_item_id":413,"quantity":1},{"id":28721,"menu_item_id":6,"quantity":2},{"id":28722,"menu_item_id":5,"quantity":2},{"id":28723,"menu_item_id":412,"quantity":1}]} 
[2026-03-13 23:45:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6000,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|2|","413|1|","6|2|","5|2|","412|1|"],"new_items_map_keys":["411|2|","413|1|","6|2|","5|2|","412|1|"]} 
[2026-03-13 23:45:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6000,"order_number":"AZS-130326-027"} 
[2026-03-13 23:45:28] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6000,"order_number":"AZS-130326-027","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2356,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-13 23:45:28","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 23:45:28"} 
[2026-03-13 23:45:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6000,"order_number":"AZS-130326-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 23:45:28"} 
[2026-03-13 23:45:28] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6000,"order_number":"AZS-130326-027","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2356.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-13 23:45:28","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2356,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2356.00","database_verification_match":true,"timestamp":"2026-03-13 23:45:28"} 
[2026-03-13 23:45:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T11:45:32.289Z","date_to":"2026-03-13T23:45:32.289Z","per_page":"100"} 
[2026-03-13 23:45:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-029","AZS-130326-028","AZS-130326-027","AZS-130326-026","AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":26,"unpaid_count":3,"unique_order_numbers":29} 
[2026-03-13 23:45:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T11:45:32.305Z","date_to":"2026-03-13T23:45:32.305Z","per_page":"100"} 
[2026-03-13 23:45:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-029","AZS-130326-028","AZS-130326-027","AZS-130326-026","AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":26,"unpaid_count":3,"unique_order_numbers":29} 
[2026-03-13 23:45:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T11:45:32.289Z","date_to":"2026-03-13T23:45:32.289Z","per_page":"100"} 
[2026-03-13 23:45:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-029","AZS-130326-028","AZS-130326-027","AZS-130326-026","AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":26,"unpaid_count":3,"unique_order_numbers":29} 
[2026-03-13 23:50:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":5995,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null,"id":28708},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28708,"menu_item_id":411,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-13 23:50:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5995,"items_count":2} 
[2026-03-13 23:50:06] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28708,"menu_item_id":411,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-13 23:50:06] local.INFO: PosOrderController::update - Item changes check {"order_id":5995,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|3|"],"new_items_map_keys":["411|3|","5|1|"]} 
[2026-03-13 23:50:06] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5995,"order_number":"AZS-130326-028"} 
[2026-03-13 23:50:06] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-028","replaced_order_id":5995} 
[2026-03-13 23:50:06] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6002,"items_count":2,"items":[{"menu_item_id":411,"quantity":3,"price":"599.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-13 23:50:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6002,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":3,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1797.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6002}} 
[2026-03-13 23:50:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6002,"item_index":0,"menu_item_id":411} 
[2026-03-13 23:50:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6002,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6002}} 
[2026-03-13 23:50:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6002,"item_index":1,"menu_item_id":5} 
[2026-03-13 23:50:06] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5995,"new_order_id":6002,"order_number":"AZS-130326-028"} 
[2026-03-13 23:50:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6002,"item_index":0,"item_id":28708} 
[2026-03-13 23:50:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":6002,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"price":599,"discount_percent":0,"notes":null,"id":28708},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":3,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-13 23:50:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6002,"items_count":2} 
[2026-03-13 23:50:12] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[28728,28729],"items":[{"id":null,"menu_item_id":411,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-13 23:50:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6002,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|3|","5|1|"],"new_items_map_keys":["411|3|","5|1|"]} 
[2026-03-13 23:50:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6002,"order_number":"AZS-130326-028"} 
[2026-03-13 23:50:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6002,"order_number":"AZS-130326-028","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 23:50:12"} 
[2026-03-13 23:51:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6001,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":71,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28724},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28725},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28726},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28727}],"validated_items":[{"id":28724,"menu_item_id":71,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28725,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28726,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28727,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-13 23:51:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6001,"items_count":4} 
[2026-03-13 23:51:32] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28724,"menu_item_id":71,"quantity":1},{"id":28725,"menu_item_id":396,"quantity":1},{"id":28726,"menu_item_id":61,"quantity":1},{"id":28727,"menu_item_id":2,"quantity":1}]} 
[2026-03-13 23:51:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6001,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["71|1|","396|1|","61|1|","2|1|"],"new_items_map_keys":["71|1|","396|1|","61|1|","2|1|"]} 
[2026-03-13 23:51:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6001,"order_number":"AZS-130326-025"} 
[2026-03-13 23:51:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6001,"order_number":"AZS-130326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 23:51:32"} 
[2026-03-13 23:51:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6001,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":71,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28724},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28725},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28726},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28727},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}],"validated_items":[{"id":28724,"menu_item_id":71,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28725,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28726,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28727,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-13 23:51:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6001,"items_count":5} 
[2026-03-13 23:51:55] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28724,"menu_item_id":71,"quantity":1},{"id":28725,"menu_item_id":396,"quantity":1},{"id":28726,"menu_item_id":61,"quantity":1},{"id":28727,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-13 23:51:55] local.INFO: PosOrderController::update - Item changes check {"order_id":6001,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["71|1|","396|1|","61|1|","2|1|"],"new_items_map_keys":["71|1|","396|1|","61|1|","2|1|","4|1|"]} 
[2026-03-13 23:51:55] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6001,"order_number":"AZS-130326-025"} 
[2026-03-13 23:51:55] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-025","replaced_order_id":6001} 
[2026-03-13 23:51:55] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6003,"items_count":5,"items":[{"menu_item_id":71,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":2,"quantity":1,"price":130.0},{"menu_item_id":4,"quantity":1,"price":90.0}]} 
[2026-03-13 23:51:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6003,"item_index":0,"item_data":{"menu_item_id":71,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Special Afghani Boti (10 pcs)","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6003}} 
[2026-03-13 23:51:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6003,"item_index":0,"menu_item_id":71} 
[2026-03-13 23:51:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6003,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6003}} 
[2026-03-13 23:51:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6003,"item_index":1,"menu_item_id":396} 
[2026-03-13 23:51:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6003,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6003}} 
[2026-03-13 23:51:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6003,"item_index":2,"menu_item_id":61} 
[2026-03-13 23:51:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6003,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6003}} 
[2026-03-13 23:51:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6003,"item_index":3,"menu_item_id":2} 
[2026-03-13 23:51:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6003,"item_index":4,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":90.0,"discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6003}} 
[2026-03-13 23:51:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6003,"item_index":4,"menu_item_id":4} 
[2026-03-13 23:51:55] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6001,"new_order_id":6003,"order_number":"AZS-130326-025"} 
[2026-03-13 23:52:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6003,"item_index":0,"item_id":28724} 
[2026-03-13 23:52:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6003,"item_index":1,"item_id":28725} 
[2026-03-13 23:52:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6003,"item_index":2,"item_id":28726} 
[2026-03-13 23:52:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6003,"item_index":3,"item_id":28727} 
[2026-03-13 23:52:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6003,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":71,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28724},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28725},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28726},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28727},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":71,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-13 23:52:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6003,"items_count":5} 
[2026-03-13 23:52:01] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[28730,28731,28732,28733,28734],"items":[{"id":null,"menu_item_id":71,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-13 23:52:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6003,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["71|1|","396|1|","61|1|","2|1|","4|1|"],"new_items_map_keys":["71|1|","396|1|","61|1|","2|1|","4|1|"]} 
[2026-03-13 23:52:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6003,"order_number":"AZS-130326-025"} 
[2026-03-13 23:52:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6003,"order_number":"AZS-130326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 23:52:01"} 
[2026-03-13 23:54:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6002,"order_number":"AZS-130326-028","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 23:54:27"} 
[2026-03-13 23:54:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6002,"order_number":"AZS-130326-028","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 23:54:27"} 
[2026-03-13 23:54:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6002,"order_number":"AZS-130326-028","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 23:54:27"} 
[2026-03-13 23:54:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6002,"order_number":"AZS-130326-028","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 23:54:27"} 
[2026-03-13 23:54:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6002,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":3,"price":599,"discount_percent":0,"notes":null,"id":28728},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28729}],"validated_items":[{"id":28728,"menu_item_id":411,"quantity":3,"price":599,"discount_percent":0,"notes":null},{"id":28729,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-13 23:54:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6002,"items_count":2} 
[2026-03-13 23:54:27] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28728,"menu_item_id":411,"quantity":3},{"id":28729,"menu_item_id":5,"quantity":1}]} 
[2026-03-13 23:54:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6002,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|3|","5|1|"],"new_items_map_keys":["411|3|","5|1|"]} 
[2026-03-13 23:54:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6002,"order_number":"AZS-130326-028"} 
[2026-03-13 23:54:27] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6002,"order_number":"AZS-130326-028","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-13 23:54:27","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 23:54:27"} 
[2026-03-13 23:54:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6002,"order_number":"AZS-130326-028","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 23:54:27"} 
[2026-03-13 23:54:27] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6002,"order_number":"AZS-130326-028","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-13 23:54:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-13 23:54:27"} 
[2026-03-13 23:55:00] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6003,"order_number":"AZS-130326-025","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1803,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 23:55:00"} 
[2026-03-13 23:55:00] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6003,"order_number":"AZS-130326-025","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1803,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-13 23:55:00"} 
[2026-03-13 23:55:00] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6003,"order_number":"AZS-130326-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1803,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 23:55:00"} 
[2026-03-13 23:55:00] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6003,"order_number":"AZS-130326-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1803,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-13 23:55:00"} 
[2026-03-13 23:55:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6003,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":71,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28730},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28731},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28732},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28733},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":28734}],"validated_items":[{"id":28730,"menu_item_id":71,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28731,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28732,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28733,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":28734,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-13 23:55:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6003,"items_count":5} 
[2026-03-13 23:55:00] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28730,"menu_item_id":71,"quantity":1},{"id":28731,"menu_item_id":396,"quantity":1},{"id":28732,"menu_item_id":61,"quantity":1},{"id":28733,"menu_item_id":2,"quantity":1},{"id":28734,"menu_item_id":4,"quantity":1}]} 
[2026-03-13 23:55:00] local.INFO: PosOrderController::update - Item changes check {"order_id":6003,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["71|1|","396|1|","61|1|","2|1|","4|1|"],"new_items_map_keys":["71|1|","396|1|","61|1|","2|1|","4|1|"]} 
[2026-03-13 23:55:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6003,"order_number":"AZS-130326-025"} 
[2026-03-13 23:55:00] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6003,"order_number":"AZS-130326-025","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1803,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-13 23:55:00","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-13 23:55:00"} 
[2026-03-13 23:55:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6003,"order_number":"AZS-130326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-13 23:55:00"} 
[2026-03-13 23:55:00] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6003,"order_number":"AZS-130326-025","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1803.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-13 23:55:00","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1803,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1803.00","database_verification_match":true,"timestamp":"2026-03-13 23:55:00"} 
[2026-03-13 23:55:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":5998,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null,"id":28714},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":28714,"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-13 23:55:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":5998,"items_count":3} 
[2026-03-13 23:55:20] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28714,"menu_item_id":411,"quantity":4},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-03-13 23:55:20] local.INFO: PosOrderController::update - Item changes check {"order_id":5998,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["411|4|"],"new_items_map_keys":["411|4|","5|1|","3|2|"]} 
[2026-03-13 23:55:20] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":5998,"order_number":"AZS-130326-029"} 
[2026-03-13 23:55:20] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-029","replaced_order_id":5998} 
[2026-03-13 23:55:20] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6004,"items_count":3,"items":[{"menu_item_id":411,"quantity":4,"price":"599.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-03-13 23:55:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6004,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":4,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":2396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6004}} 
[2026-03-13 23:55:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6004,"item_index":0,"menu_item_id":411} 
[2026-03-13 23:55:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6004,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6004}} 
[2026-03-13 23:55:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6004,"item_index":1,"menu_item_id":5} 
[2026-03-13 23:55:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6004,"item_index":2,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6004}} 
[2026-03-13 23:55:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6004,"item_index":2,"menu_item_id":3} 
[2026-03-13 23:55:20] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":5998,"new_order_id":6004,"order_number":"AZS-130326-029"} 
[2026-03-13 23:55:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6004,"item_index":0,"item_id":28714} 
[2026-03-13 23:55:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":6004,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null,"id":28714},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-13 23:55:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6004,"items_count":3} 
[2026-03-13 23:55:26] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[28735,28736,28737],"items":[{"id":null,"menu_item_id":411,"quantity":4},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-03-13 23:55:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6004,"has_item_changes":true,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|4|","5|1|","3|2|"],"new_items_map_keys":["411|4|","5|2|","3|2|"]} 
[2026-03-13 23:55:26] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6004,"order_number":"AZS-130326-029"} 
[2026-03-13 23:55:26] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-130326-029","replaced_order_id":6004} 
[2026-03-13 23:55:26] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6005,"items_count":3,"items":[{"menu_item_id":411,"quantity":4,"price":"599.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-03-13 23:55:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6005,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":4,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":2396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6005}} 
[2026-03-13 23:55:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6005,"item_index":0,"menu_item_id":411} 
[2026-03-13 23:55:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6005,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6005}} 
[2026-03-13 23:55:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6005,"item_index":1,"menu_item_id":5} 
[2026-03-13 23:55:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6005,"item_index":2,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6005}} 
[2026-03-13 23:55:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6005,"item_index":2,"menu_item_id":3} 
[2026-03-13 23:55:26] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6004,"new_order_id":6005,"order_number":"AZS-130326-029"} 
[2026-03-13 23:55:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6005,"item_index":0,"item_id":28714} 
[2026-03-13 23:55:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":6005,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":4,"price":599,"discount_percent":0,"notes":null,"id":28714},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":4,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-13 23:55:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6005,"items_count":3} 
[2026-03-13 23:55:31] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[28738,28739,28740],"items":[{"id":null,"menu_item_id":411,"quantity":4},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-03-13 23:55:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6005,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|4|","5|2|","3|2|"],"new_items_map_keys":["411|4|","5|2|","3|2|"]} 
[2026-03-13 23:55:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6005,"order_number":"AZS-130326-029"} 
[2026-03-13 23:55:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6005,"order_number":"AZS-130326-029","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-13 23:55:31"} 
[2026-03-13 23:55:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T11:55:48.199Z","date_to":"2026-03-13T23:55:48.199Z","per_page":"100"} 
[2026-03-13 23:55:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T11:55:48.214Z","date_to":"2026-03-13T23:55:48.214Z","per_page":"100"} 
[2026-03-13 23:55:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-029","AZS-130326-028","AZS-130326-027","AZS-130326-026","AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":1,"unique_order_numbers":29} 
[2026-03-13 23:55:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-029","AZS-130326-028","AZS-130326-027","AZS-130326-026","AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":1,"unique_order_numbers":29} 
[2026-03-13 23:55:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T11:55:48.199Z","date_to":"2026-03-13T23:55:48.199Z","per_page":"100"} 
[2026-03-13 23:55:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-029","AZS-130326-028","AZS-130326-027","AZS-130326-026","AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":1,"unique_order_numbers":29} 
[2026-03-14 00:03:44] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6005,"order_number":"AZS-130326-029","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 00:03:44"} 
[2026-03-14 00:03:44] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6005,"order_number":"AZS-130326-029","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 00:03:44"} 
[2026-03-14 00:03:44] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6005,"order_number":"AZS-130326-029","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 00:03:44"} 
[2026-03-14 00:03:44] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6005,"order_number":"AZS-130326-029","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 00:03:44"} 
[2026-03-14 00:03:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6005,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":4,"price":599,"discount_percent":0,"notes":null,"id":28738},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":28739},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":28740}],"validated_items":[{"id":28738,"menu_item_id":411,"quantity":4,"price":599,"discount_percent":0,"notes":null},{"id":28739,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":28740,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-14 00:03:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6005,"items_count":3} 
[2026-03-14 00:03:44] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28738,"menu_item_id":411,"quantity":4},{"id":28739,"menu_item_id":5,"quantity":2},{"id":28740,"menu_item_id":3,"quantity":2}]} 
[2026-03-14 00:03:44] local.INFO: PosOrderController::update - Item changes check {"order_id":6005,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|4|","5|2|","3|2|"],"new_items_map_keys":["411|4|","5|2|","3|2|"]} 
[2026-03-14 00:03:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6005,"order_number":"AZS-130326-029"} 
[2026-03-14 00:03:44] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6005,"order_number":"AZS-130326-029","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-14 00:03:44","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-14 00:03:44"} 
[2026-03-14 00:03:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6005,"order_number":"AZS-130326-029","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-14 00:03:44"} 
[2026-03-14 00:03:44] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6005,"order_number":"AZS-130326-029","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-14 00:03:44","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3500.00","database_verification_match":true,"timestamp":"2026-03-14 00:03:44"} 
[2026-03-14 00:05:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T12:05:05.630Z","date_to":"2026-03-14T00:05:05.630Z","per_page":"100"} 
[2026-03-14 00:05:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-029","AZS-130326-028","AZS-130326-027","AZS-130326-026","AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":29,"unpaid_count":0,"unique_order_numbers":29} 
[2026-03-14 00:05:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T12:05:05.651Z","date_to":"2026-03-14T00:05:05.651Z","per_page":"100"} 
[2026-03-14 00:05:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-029","AZS-130326-028","AZS-130326-027","AZS-130326-026","AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":29,"unpaid_count":0,"unique_order_numbers":29} 
[2026-03-14 00:05:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T12:05:05.630Z","date_to":"2026-03-14T00:05:05.630Z","per_page":"100"} 
[2026-03-14 00:05:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-130326-029","AZS-130326-028","AZS-130326-027","AZS-130326-026","AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020","AZS-130326-019","AZS-130326-018","AZS-130326-017","AZS-130326-016","AZS-130326-015","AZS-130326-014","AZS-130326-013","AZS-130326-012","AZS-130326-011","AZS-130326-010","AZS-130326-009","AZS-130326-008","AZS-130326-007","AZS-130326-006","AZS-130326-005","AZS-130326-004","AZS-130326-003","AZS-130326-002","AZS-130326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":29,"unpaid_count":0,"unique_order_numbers":29} 
[2026-03-14 07:33:33] local.ERROR: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'vinegar' for key 'items.items_name_unique' (Connection: mysql, SQL: insert into `items` (`name`, `category_id`, `status`, `restaurant_id`, `updated_at`, `created_at`) values (vinegar, 2, active, 1, 2026-03-14 07:33:33, 2026-03-14 07:33:33)) {"userId":19,"exception":"[object] (Illuminate\\Database\\UniqueConstraintViolationException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'vinegar' for key 'items.items_name_unique' (Connection: mysql, SQL: insert into `items` (`name`, `category_id`, `status`, `restaurant_id`, `updated_at`, `created_at`) values (vinegar, 2, active, 1, 2026-03-14 07:33:33, 2026-03-14 07:33:33)) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:824)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('insert into `it...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\\Database\\Connection->run('insert into `it...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/MySqlProcessor.php(35): Illuminate\\Database\\MySqlConnection->insert('insert into `it...', Array, 'id')
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3549): Illuminate\\Database\\Query\\Processors\\MySqlProcessor->processInsertGetId(Object(Illuminate\\Database\\Query\\Builder), 'insert into `it...', Array, 'id')
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->insertGetId(Array, 'id')
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1334): Illuminate\\Database\\Eloquent\\Builder->__call('insertGetId', Array)
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1299): Illuminate\\Database\\Eloquent\\Model->insertAndSetId(Object(Illuminate\\Database\\Eloquent\\Builder), Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\\Database\\Eloquent\\Model->performInsert(Object(Illuminate\\Database\\Eloquent\\Builder))
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\\Database\\Eloquent\\Model->save()
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\\Database\\Eloquent\\Builder->Illuminate\\Database\\Eloquent\\{closure}(Object(App\\Models\\Item))
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\\Models\\Item), Object(Closure))
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->create(Array)
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'create', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('create', Array)
#14 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/ItemController.php(133): Illuminate\\Database\\Eloquent\\Model::__callStatic('create', Array)
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\ItemController->store(Object(Illuminate\\Http\\Request))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('store', Array)
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\ItemController), 'store')
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#56 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#57 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#58 {main}

[previous exception] [object] (PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'vinegar' for key 'items.items_name_unique' at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php:45)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(45): PDOStatement->execute()
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\MySqlConnection->Illuminate\\Database\\{closure}('insert into `it...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('insert into `it...', Array, Object(Closure))
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\\Database\\Connection->run('insert into `it...', Array, Object(Closure))
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/MySqlProcessor.php(35): Illuminate\\Database\\MySqlConnection->insert('insert into `it...', Array, 'id')
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3549): Illuminate\\Database\\Query\\Processors\\MySqlProcessor->processInsertGetId(Object(Illuminate\\Database\\Query\\Builder), 'insert into `it...', Array, 'id')
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->insertGetId(Array, 'id')
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1334): Illuminate\\Database\\Eloquent\\Builder->__call('insertGetId', Array)
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1299): Illuminate\\Database\\Eloquent\\Model->insertAndSetId(Object(Illuminate\\Database\\Eloquent\\Builder), Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\\Database\\Eloquent\\Model->performInsert(Object(Illuminate\\Database\\Eloquent\\Builder))
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\\Database\\Eloquent\\Model->save()
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\\Database\\Eloquent\\Builder->Illuminate\\Database\\Eloquent\\{closure}(Object(App\\Models\\Item))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\\Models\\Item), Object(Closure))
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->create(Array)
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'create', Array)
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('create', Array)
#16 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/ItemController.php(133): Illuminate\\Database\\Eloquent\\Model::__callStatic('create', Array)
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\ItemController->store(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('store', Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\ItemController), 'store')
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#53 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#54 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#55 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#58 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#59 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#60 {main}
"} 
[2026-03-14 08:05:02] local.ERROR: SQLSTATE[HY000] [1040] Too many connections (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 55 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 1040): SQLSTATE[HY000] [1040] Too many connections (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 55 limit 1) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('55')
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('yOj2k5ji3rUO6Ak...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), NULL)
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), NULL)
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#50 {main}

[previous exception] [object] (PDOException(code: 1040): SQLSTATE[HY000] [1040] Too many connections at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=127....', 'pandamartsco_te...', Object(SensitiveParameterValue), Array)
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=127....', 'pandamartsco_te...', 'O?TpDEuS7UUOYE;...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=127....', Array, Array)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('55')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('yOj2k5ji3rUO6Ak...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), NULL)
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), NULL)
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#53 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#54 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#55 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#58 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#59 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#60 {main}
"} 
[2026-03-14 12:59:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6011,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":28758},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28758,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-14 12:59:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6011,"items_count":7} 
[2026-03-14 12:59:41] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28758,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-14 12:59:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6011,"has_item_changes":true,"old_items_count":1,"new_items_count":7,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","105|1|","396|1|","50|1|","61|1|","56|1|","5|1|"]} 
[2026-03-14 12:59:41] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6011,"order_number":"AZS-140326-006"} 
[2026-03-14 12:59:41] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-006","replaced_order_id":6011} 
[2026-03-14 12:59:41] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6012,"items_count":7,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-14 12:59:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6012,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6012}} 
[2026-03-14 12:59:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6012,"item_index":0,"menu_item_id":417} 
[2026-03-14 12:59:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6012,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6012}} 
[2026-03-14 12:59:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6012,"item_index":1,"menu_item_id":105} 
[2026-03-14 12:59:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6012,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6012}} 
[2026-03-14 12:59:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6012,"item_index":2,"menu_item_id":396} 
[2026-03-14 12:59:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6012,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6012}} 
[2026-03-14 12:59:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6012,"item_index":3,"menu_item_id":50} 
[2026-03-14 12:59:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6012,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6012}} 
[2026-03-14 12:59:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6012,"item_index":4,"menu_item_id":61} 
[2026-03-14 12:59:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6012,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6012}} 
[2026-03-14 12:59:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6012,"item_index":5,"menu_item_id":56} 
[2026-03-14 12:59:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6012,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6012}} 
[2026-03-14 12:59:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6012,"item_index":6,"menu_item_id":5} 
[2026-03-14 12:59:41] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6011,"new_order_id":6012,"order_number":"AZS-140326-006"} 
[2026-03-14 12:59:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6012,"item_index":0,"item_id":28758} 
[2026-03-14 12:59:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":6012,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":28758},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-14 12:59:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6012,"items_count":7} 
[2026-03-14 12:59:45] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[28759,28760,28761,28762,28763,28764,28765],"items":[{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-14 12:59:45] local.INFO: PosOrderController::update - Item changes check {"order_id":6012,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["417|1|","105|1|","396|1|","50|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["417|1|","105|1|","396|1|","50|1|","61|1|","56|1|","5|1|"]} 
[2026-03-14 12:59:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6012,"order_number":"AZS-140326-006"} 
[2026-03-14 12:59:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6012,"order_number":"AZS-140326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-14 12:59:45"} 
[2026-03-14 13:08:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6010,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":28757},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28757,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-14 13:08:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6010,"items_count":6} 
[2026-03-14 13:08:26] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28757,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-14 13:08:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6010,"has_item_changes":true,"old_items_count":1,"new_items_count":6,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","96|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-14 13:08:26] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6010,"order_number":"AZS-140326-005"} 
[2026-03-14 13:08:26] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-005","replaced_order_id":6010} 
[2026-03-14 13:08:26] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6014,"items_count":6,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-14 13:08:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6014,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6014}} 
[2026-03-14 13:08:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6014,"item_index":0,"menu_item_id":417} 
[2026-03-14 13:08:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6014,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6014}} 
[2026-03-14 13:08:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6014,"item_index":1,"menu_item_id":96} 
[2026-03-14 13:08:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6014,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6014}} 
[2026-03-14 13:08:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6014,"item_index":2,"menu_item_id":396} 
[2026-03-14 13:08:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6014,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6014}} 
[2026-03-14 13:08:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6014,"item_index":3,"menu_item_id":61} 
[2026-03-14 13:08:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6014,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6014}} 
[2026-03-14 13:08:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6014,"item_index":4,"menu_item_id":56} 
[2026-03-14 13:08:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6014,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6014}} 
[2026-03-14 13:08:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6014,"item_index":5,"menu_item_id":5} 
[2026-03-14 13:08:26] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6010,"new_order_id":6014,"order_number":"AZS-140326-005"} 
[2026-03-14 13:08:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6013,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":28766},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":28767},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28768},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28769},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28770},{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28766,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":28767,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":28768,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28769,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28770,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-14 13:08:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6013,"items_count":6} 
[2026-03-14 13:08:53] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28766,"menu_item_id":62,"quantity":1},{"id":28767,"menu_item_id":50,"quantity":2},{"id":28768,"menu_item_id":61,"quantity":1},{"id":28769,"menu_item_id":56,"quantity":1},{"id":28770,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":417,"quantity":1}]} 
[2026-03-14 13:08:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6013,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["62|1|","50|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["62|1|","50|2|","61|1|","56|1|","5|1|","417|1|"]} 
[2026-03-14 13:08:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6013,"order_number":"AZS-140326-007"} 
[2026-03-14 13:08:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-007","replaced_order_id":6013} 
[2026-03-14 13:08:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6015,"items_count":6,"items":[{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":417,"quantity":1,"price":"499.00"}]} 
[2026-03-14 13:08:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6015,"item_index":0,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6015}} 
[2026-03-14 13:08:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6015,"item_index":0,"menu_item_id":62} 
[2026-03-14 13:08:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6015,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6015}} 
[2026-03-14 13:08:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6015,"item_index":1,"menu_item_id":50} 
[2026-03-14 13:08:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6015,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6015}} 
[2026-03-14 13:08:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6015,"item_index":2,"menu_item_id":61} 
[2026-03-14 13:08:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6015,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6015}} 
[2026-03-14 13:08:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6015,"item_index":3,"menu_item_id":56} 
[2026-03-14 13:08:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6015,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6015}} 
[2026-03-14 13:08:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6015,"item_index":4,"menu_item_id":5} 
[2026-03-14 13:08:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6015,"item_index":5,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6015}} 
[2026-03-14 13:08:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6015,"item_index":5,"menu_item_id":417} 
[2026-03-14 13:08:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6013,"new_order_id":6015,"order_number":"AZS-140326-007"} 
[2026-03-14 13:21:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6009,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":28756},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28756,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-14 13:21:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6009,"items_count":2} 
[2026-03-14 13:21:31] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28756,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-14 13:21:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6009,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","5|1|"]} 
[2026-03-14 13:21:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6009,"order_number":"AZS-140326-004"} 
[2026-03-14 13:21:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-004","replaced_order_id":6009} 
[2026-03-14 13:21:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6017,"items_count":2,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-14 13:21:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6017,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6017}} 
[2026-03-14 13:21:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6017,"item_index":0,"menu_item_id":417} 
[2026-03-14 13:21:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6017,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6017}} 
[2026-03-14 13:21:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6017,"item_index":1,"menu_item_id":5} 
[2026-03-14 13:21:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6009,"new_order_id":6017,"order_number":"AZS-140326-004"} 
[2026-03-14 13:27:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6017,"item_index":0,"item_id":28756} 
[2026-03-14 13:27:41] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6017,"order_number":"AZS-140326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 13:27:41"} 
[2026-03-14 13:27:41] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6017,"order_number":"AZS-140326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 13:27:41"} 
[2026-03-14 13:27:41] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6017,"order_number":"AZS-140326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 13:27:41"} 
[2026-03-14 13:27:41] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6017,"order_number":"AZS-140326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 13:27:41"} 
[2026-03-14 13:27:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":6017,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28756},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-14 13:27:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6017,"items_count":2} 
[2026-03-14 13:27:41] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[28784,28785],"items":[{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-14 13:27:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6017,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["417|1|","5|1|"],"new_items_map_keys":["417|1|","5|1|"]} 
[2026-03-14 13:27:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6017,"order_number":"AZS-140326-004"} 
[2026-03-14 13:27:41] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6017,"order_number":"AZS-140326-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-14 13:27:41","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-14 13:27:41"} 
[2026-03-14 13:27:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6017,"order_number":"AZS-140326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-14 13:27:41"} 
[2026-03-14 13:27:41] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6017,"order_number":"AZS-140326-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-14 13:27:41","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-14 13:27:41"} 
[2026-03-14 13:27:59] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6007,"order_number":"AZS-140326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 13:27:59"} 
[2026-03-14 13:27:59] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6007,"order_number":"AZS-140326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 13:27:59"} 
[2026-03-14 13:27:59] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6007,"order_number":"AZS-140326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 13:27:59"} 
[2026-03-14 13:27:59] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6007,"order_number":"AZS-140326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 13:27:59"} 
[2026-03-14 13:27:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6007,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28748}],"validated_items":[{"id":28748,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-14 13:27:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6007,"items_count":1} 
[2026-03-14 13:27:59] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28748,"menu_item_id":417,"quantity":1}]} 
[2026-03-14 13:27:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6007,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-14 13:27:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6007,"order_number":"AZS-140326-002"} 
[2026-03-14 13:27:59] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6007,"order_number":"AZS-140326-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-14 13:27:59","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-14 13:27:59"} 
[2026-03-14 13:27:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6007,"order_number":"AZS-140326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-14 13:27:59"} 
[2026-03-14 13:27:59] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6007,"order_number":"AZS-140326-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-14 13:27:59","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-14 13:27:59"} 
[2026-03-14 13:33:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":2,"order_id":6018,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":28788},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28789},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28790},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28791},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28788,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":28789,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28790,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28791,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-14 13:33:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6018,"items_count":5} 
[2026-03-14 13:33:47] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":2,"items_to_remove":[28786,28787],"items":[{"id":28788,"menu_item_id":396,"quantity":4},{"id":28789,"menu_item_id":61,"quantity":1},{"id":28790,"menu_item_id":56,"quantity":1},{"id":28791,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":97,"quantity":1}]} 
[2026-03-14 13:33:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6018,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["102|1|","96|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["396|4|","61|1|","56|1|","5|1|","97|1|"]} 
[2026-03-14 13:33:47] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6018,"order_number":"AZS-140326-009"} 
[2026-03-14 13:33:47] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-009","replaced_order_id":6018} 
[2026-03-14 13:33:47] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6019,"items_count":5,"items":[{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":97,"quantity":1,"price":"2299.00"}]} 
[2026-03-14 13:33:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6019,"item_index":0,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6019}} 
[2026-03-14 13:33:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6019,"item_index":0,"menu_item_id":396} 
[2026-03-14 13:33:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6019,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6019}} 
[2026-03-14 13:33:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6019,"item_index":1,"menu_item_id":61} 
[2026-03-14 13:33:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6019,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6019}} 
[2026-03-14 13:33:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6019,"item_index":2,"menu_item_id":56} 
[2026-03-14 13:33:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6019,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6019}} 
[2026-03-14 13:33:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6019,"item_index":3,"menu_item_id":5} 
[2026-03-14 13:33:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6019,"item_index":4,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6019}} 
[2026-03-14 13:33:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6019,"item_index":4,"menu_item_id":97} 
[2026-03-14 13:33:47] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6018,"new_order_id":6019,"order_number":"AZS-140326-009"} 
[2026-03-14 13:34:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6019,"item_index":0,"item_id":28788} 
[2026-03-14 13:34:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6019,"item_index":1,"item_id":28789} 
[2026-03-14 13:34:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6019,"item_index":2,"item_id":28790} 
[2026-03-14 13:34:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6019,"item_index":3,"item_id":28791} 
[2026-03-14 13:34:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6019,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":28788},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28789},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28790},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28791},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-14 13:34:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6019,"items_count":5} 
[2026-03-14 13:34:01] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[28792,28793,28794,28795,28796],"items":[{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":97,"quantity":1}]} 
[2026-03-14 13:34:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6019,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["396|4|","61|1|","56|1|","5|1|","97|1|"],"new_items_map_keys":["396|4|","61|1|","56|1|","5|1|","97|1|"]} 
[2026-03-14 13:34:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6019,"order_number":"AZS-140326-009"} 
[2026-03-14 13:34:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6019,"order_number":"AZS-140326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-14 13:34:01"} 
[2026-03-14 13:35:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":1,"order_id":6006,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":28741},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":28743},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":28744},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28745},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28746},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28747},{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28741,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":28743,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":28744,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":28745,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28746,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28747,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-14 13:35:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6006,"items_count":7} 
[2026-03-14 13:35:37] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":1,"items_to_remove":[28742],"items":[{"id":28741,"menu_item_id":417,"quantity":1},{"id":28743,"menu_item_id":396,"quantity":2},{"id":28744,"menu_item_id":50,"quantity":1},{"id":28745,"menu_item_id":61,"quantity":1},{"id":28746,"menu_item_id":56,"quantity":1},{"id":28747,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":102,"quantity":1}]} 
[2026-03-14 13:35:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6006,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["417|1|","103|1|","396|2|","50|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["417|1|","396|2|","50|1|","61|1|","56|1|","5|1|","102|1|"]} 
[2026-03-14 13:35:37] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6006,"order_number":"AZS-140326-001"} 
[2026-03-14 13:35:37] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-001","replaced_order_id":6006} 
[2026-03-14 13:35:37] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6020,"items_count":7,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":102,"quantity":1,"price":"1399.00"}]} 
[2026-03-14 13:35:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6020,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6020}} 
[2026-03-14 13:35:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6020,"item_index":0,"menu_item_id":417} 
[2026-03-14 13:35:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6020,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6020}} 
[2026-03-14 13:35:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6020,"item_index":1,"menu_item_id":396} 
[2026-03-14 13:35:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6020,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6020}} 
[2026-03-14 13:35:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6020,"item_index":2,"menu_item_id":50} 
[2026-03-14 13:35:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6020,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6020}} 
[2026-03-14 13:35:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6020,"item_index":3,"menu_item_id":61} 
[2026-03-14 13:35:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6020,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6020}} 
[2026-03-14 13:35:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6020,"item_index":4,"menu_item_id":56} 
[2026-03-14 13:35:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6020,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6020}} 
[2026-03-14 13:35:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6020,"item_index":5,"menu_item_id":5} 
[2026-03-14 13:35:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6020,"item_index":6,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6020}} 
[2026-03-14 13:35:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6020,"item_index":6,"menu_item_id":102} 
[2026-03-14 13:35:37] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6006,"new_order_id":6020,"order_number":"AZS-140326-001"} 
[2026-03-14 13:38:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6015,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":28777},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":28778},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28779},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28780},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28781},{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28782}],"validated_items":[{"id":28777,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":28778,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":28779,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28780,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28781,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28782,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-14 13:38:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6015,"items_count":6} 
[2026-03-14 13:38:32] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28777,"menu_item_id":62,"quantity":1},{"id":28778,"menu_item_id":50,"quantity":2},{"id":28779,"menu_item_id":61,"quantity":1},{"id":28780,"menu_item_id":56,"quantity":1},{"id":28781,"menu_item_id":5,"quantity":1},{"id":28782,"menu_item_id":417,"quantity":1}]} 
[2026-03-14 13:38:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6015,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["62|1|","50|2|","61|1|","56|1|","5|1|","417|1|"],"new_items_map_keys":["62|1|","50|2|","61|1|","56|1|","5|1|","417|1|"]} 
[2026-03-14 13:38:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6015,"order_number":"AZS-140326-007"} 
[2026-03-14 13:38:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6015,"order_number":"AZS-140326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 13:38:32"} 
[2026-03-14 13:40:02] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6015,"order_number":"AZS-140326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 13:40:02"} 
[2026-03-14 13:40:02] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6015,"order_number":"AZS-140326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 13:40:02"} 
[2026-03-14 13:40:02] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6015,"order_number":"AZS-140326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 13:40:02"} 
[2026-03-14 13:40:02] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6015,"order_number":"AZS-140326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 13:40:02"} 
[2026-03-14 13:40:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6015,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":28777},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":28778},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28779},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28780},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28781},{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28782}],"validated_items":[{"id":28777,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":28778,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":28779,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28780,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28781,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28782,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-14 13:40:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6015,"items_count":6} 
[2026-03-14 13:40:02] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28777,"menu_item_id":62,"quantity":1},{"id":28778,"menu_item_id":50,"quantity":2},{"id":28779,"menu_item_id":61,"quantity":1},{"id":28780,"menu_item_id":56,"quantity":1},{"id":28781,"menu_item_id":5,"quantity":1},{"id":28782,"menu_item_id":417,"quantity":1}]} 
[2026-03-14 13:40:02] local.INFO: PosOrderController::update - Item changes check {"order_id":6015,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["62|1|","50|2|","61|1|","56|1|","5|1|","417|1|"],"new_items_map_keys":["62|1|","50|2|","61|1|","56|1|","5|1|","417|1|"]} 
[2026-03-14 13:40:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6015,"order_number":"AZS-140326-007"} 
[2026-03-14 13:40:02] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6015,"order_number":"AZS-140326-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-14 13:40:02","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-14 13:40:02"} 
[2026-03-14 13:40:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6015,"order_number":"AZS-140326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-14 13:40:02"} 
[2026-03-14 13:40:02] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6015,"order_number":"AZS-140326-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-14 13:40:02","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-03-14 13:40:02"} 
[2026-03-14 13:41:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6012,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":28759},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":28760},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":28761},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":28762},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28763},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28764},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28765},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":28759,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":28760,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":28761,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":28762,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":28763,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28764,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28765,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-14 13:41:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6012,"items_count":8} 
[2026-03-14 13:41:52] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28759,"menu_item_id":417,"quantity":1},{"id":28760,"menu_item_id":105,"quantity":1},{"id":28761,"menu_item_id":396,"quantity":1},{"id":28762,"menu_item_id":50,"quantity":1},{"id":28763,"menu_item_id":61,"quantity":1},{"id":28764,"menu_item_id":56,"quantity":1},{"id":28765,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-14 13:41:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6012,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["417|1|","105|1|","396|1|","50|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["417|1|","105|1|","396|1|","50|1|","61|1|","56|1|","5|1|","2|2|"]} 
[2026-03-14 13:41:52] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6012,"order_number":"AZS-140326-006"} 
[2026-03-14 13:41:52] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-006","replaced_order_id":6012} 
[2026-03-14 13:41:52] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6022,"items_count":8,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-14 13:41:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6022,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6022}} 
[2026-03-14 13:41:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6022,"item_index":0,"menu_item_id":417} 
[2026-03-14 13:41:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6022,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6022}} 
[2026-03-14 13:41:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6022,"item_index":1,"menu_item_id":105} 
[2026-03-14 13:41:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6022,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6022}} 
[2026-03-14 13:41:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6022,"item_index":2,"menu_item_id":396} 
[2026-03-14 13:41:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6022,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6022}} 
[2026-03-14 13:41:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6022,"item_index":3,"menu_item_id":50} 
[2026-03-14 13:41:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6022,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6022}} 
[2026-03-14 13:41:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6022,"item_index":4,"menu_item_id":61} 
[2026-03-14 13:41:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6022,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6022}} 
[2026-03-14 13:41:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6022,"item_index":5,"menu_item_id":56} 
[2026-03-14 13:41:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6022,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6022}} 
[2026-03-14 13:41:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6022,"item_index":6,"menu_item_id":5} 
[2026-03-14 13:41:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6022,"item_index":7,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6022}} 
[2026-03-14 13:41:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6022,"item_index":7,"menu_item_id":2} 
[2026-03-14 13:41:52] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6012,"new_order_id":6022,"order_number":"AZS-140326-006"} 
[2026-03-14 13:46:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6014,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":28771},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":28772},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":28773},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28774},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28775},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28776},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":28771,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":28772,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":28773,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":28774,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28775,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28776,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-14 13:46:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6014,"items_count":7} 
[2026-03-14 13:46:09] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28771,"menu_item_id":417,"quantity":1},{"id":28772,"menu_item_id":96,"quantity":1},{"id":28773,"menu_item_id":396,"quantity":2},{"id":28774,"menu_item_id":61,"quantity":1},{"id":28775,"menu_item_id":56,"quantity":1},{"id":28776,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-03-14 13:46:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6014,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["417|1|","96|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["417|1|","96|1|","396|2|","61|1|","56|1|","5|1|","13|2|"]} 
[2026-03-14 13:46:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6014,"order_number":"AZS-140326-005"} 
[2026-03-14 13:46:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-005","replaced_order_id":6014} 
[2026-03-14 13:46:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6023,"items_count":7,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"}]} 
[2026-03-14 13:46:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6023,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6023}} 
[2026-03-14 13:46:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6023,"item_index":0,"menu_item_id":417} 
[2026-03-14 13:46:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6023,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6023}} 
[2026-03-14 13:46:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6023,"item_index":1,"menu_item_id":96} 
[2026-03-14 13:46:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6023,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6023}} 
[2026-03-14 13:46:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6023,"item_index":2,"menu_item_id":396} 
[2026-03-14 13:46:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6023,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6023}} 
[2026-03-14 13:46:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6023,"item_index":3,"menu_item_id":61} 
[2026-03-14 13:46:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6023,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6023}} 
[2026-03-14 13:46:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6023,"item_index":4,"menu_item_id":56} 
[2026-03-14 13:46:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6023,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6023}} 
[2026-03-14 13:46:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6023,"item_index":5,"menu_item_id":5} 
[2026-03-14 13:46:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6023,"item_index":6,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6023}} 
[2026-03-14 13:46:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6023,"item_index":6,"menu_item_id":13} 
[2026-03-14 13:46:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6014,"new_order_id":6023,"order_number":"AZS-140326-005"} 
[2026-03-14 13:54:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":6008,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28749},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28750},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28751},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":28752},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28753},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28754}],"validated_items":[{"id":28749,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":28750,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":28751,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28752,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":28753,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28754,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-14 13:54:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6008,"items_count":6} 
[2026-03-14 13:54:03] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[28755],"items":[{"id":28749,"menu_item_id":417,"quantity":1},{"id":28750,"menu_item_id":105,"quantity":1},{"id":28751,"menu_item_id":396,"quantity":1},{"id":28752,"menu_item_id":50,"quantity":1},{"id":28753,"menu_item_id":61,"quantity":1},{"id":28754,"menu_item_id":56,"quantity":1}]} 
[2026-03-14 13:54:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6008,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["417|1|","105|1|","396|1|","50|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["417|1|","105|1|","396|1|","50|1|","61|1|","56|1|"]} 
[2026-03-14 13:54:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6008,"order_number":"AZS-140326-003"} 
[2026-03-14 13:54:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-003","replaced_order_id":6008} 
[2026-03-14 13:54:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6024,"items_count":6,"items":[{"menu_item_id":417,"quantity":1,"price":499.0},{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":50,"quantity":1,"price":129.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0}]} 
[2026-03-14 13:54:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6024,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":499.0,"discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6024}} 
[2026-03-14 13:54:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6024,"item_index":0,"menu_item_id":417} 
[2026-03-14 13:54:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6024,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6024}} 
[2026-03-14 13:54:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6024,"item_index":1,"menu_item_id":105} 
[2026-03-14 13:54:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6024,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6024}} 
[2026-03-14 13:54:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6024,"item_index":2,"menu_item_id":396} 
[2026-03-14 13:54:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6024,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6024}} 
[2026-03-14 13:54:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6024,"item_index":3,"menu_item_id":50} 
[2026-03-14 13:54:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6024,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6024}} 
[2026-03-14 13:54:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6024,"item_index":4,"menu_item_id":61} 
[2026-03-14 13:54:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6024,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6024}} 
[2026-03-14 13:54:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6024,"item_index":5,"menu_item_id":56} 
[2026-03-14 13:54:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6008,"new_order_id":6024,"order_number":"AZS-140326-003"} 
[2026-03-14 13:54:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6024,"item_index":0,"item_id":28749} 
[2026-03-14 13:54:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6024,"item_index":1,"item_id":28750} 
[2026-03-14 13:54:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6024,"item_index":2,"item_id":28751} 
[2026-03-14 13:54:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6024,"item_index":3,"item_id":28752} 
[2026-03-14 13:54:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6024,"item_index":4,"item_id":28753} 
[2026-03-14 13:54:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6024,"item_index":5,"item_id":28754} 
[2026-03-14 13:54:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6024,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28749},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28750},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28751},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":28752},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28753},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28754}],"validated_items":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-14 13:54:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6024,"items_count":6} 
[2026-03-14 13:54:13] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[28822,28823,28824,28825,28826,28827],"items":[{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-03-14 13:54:13] local.INFO: PosOrderController::update - Item changes check {"order_id":6024,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["417|1|","105|1|","396|1|","50|1|","61|1|","56|1|"],"new_items_map_keys":["417|1|","105|1|","396|1|","50|1|","61|1|","56|1|"]} 
[2026-03-14 13:54:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6024,"order_number":"AZS-140326-003"} 
[2026-03-14 13:54:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6024,"order_number":"AZS-140326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 13:54:13"} 
[2026-03-14 13:57:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6024,"item_index":0,"item_id":28749} 
[2026-03-14 13:57:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6024,"item_index":1,"item_id":28750} 
[2026-03-14 13:57:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6024,"item_index":2,"item_id":28751} 
[2026-03-14 13:57:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6024,"item_index":3,"item_id":28752} 
[2026-03-14 13:57:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6024,"item_index":4,"item_id":28753} 
[2026-03-14 13:57:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":6,"order_id":6024,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28749},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28750},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28751},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":28752},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28753}],"validated_items":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-14 13:57:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6024,"items_count":5} 
[2026-03-14 13:57:23] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":6,"items_to_remove":[28822,28823,28824,28825,28826,28827],"items":[{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-03-14 13:57:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6024,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["417|1|","105|1|","396|1|","50|1|","61|1|","56|1|"],"new_items_map_keys":["417|1|","105|1|","396|1|","50|1|","61|1|"]} 
[2026-03-14 13:57:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6024,"order_number":"AZS-140326-003"} 
[2026-03-14 13:57:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-003","replaced_order_id":6024} 
[2026-03-14 13:57:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6025,"items_count":5,"items":[{"menu_item_id":417,"quantity":1,"price":499.0},{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":50,"quantity":1,"price":129.0},{"menu_item_id":61,"quantity":1,"price":199.0}]} 
[2026-03-14 13:57:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6025,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":499.0,"discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6025}} 
[2026-03-14 13:57:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6025,"item_index":0,"menu_item_id":417} 
[2026-03-14 13:57:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6025,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6025}} 
[2026-03-14 13:57:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6025,"item_index":1,"menu_item_id":105} 
[2026-03-14 13:57:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6025,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6025}} 
[2026-03-14 13:57:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6025,"item_index":2,"menu_item_id":396} 
[2026-03-14 13:57:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6025,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6025}} 
[2026-03-14 13:57:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6025,"item_index":3,"menu_item_id":50} 
[2026-03-14 13:57:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6025,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6025}} 
[2026-03-14 13:57:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6025,"item_index":4,"menu_item_id":61} 
[2026-03-14 13:57:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6024,"new_order_id":6025,"order_number":"AZS-140326-003"} 
[2026-03-14 13:57:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6025,"item_index":0,"item_id":28749} 
[2026-03-14 13:57:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6025,"item_index":1,"item_id":28750} 
[2026-03-14 13:57:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6025,"item_index":2,"item_id":28751} 
[2026-03-14 13:57:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6025,"item_index":3,"item_id":28752} 
[2026-03-14 13:57:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6025,"item_index":4,"item_id":28753} 
[2026-03-14 13:57:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6025,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28749},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28750},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28751},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":28752},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28753}],"validated_items":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-14 13:57:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6025,"items_count":5} 
[2026-03-14 13:57:28] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[28828,28829,28830,28831,28832],"items":[{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-03-14 13:57:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6025,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|1|","105|1|","396|1|","50|1|","61|1|"],"new_items_map_keys":["417|1|","105|1|","396|1|","50|1|","61|1|"]} 
[2026-03-14 13:57:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6025,"order_number":"AZS-140326-003"} 
[2026-03-14 13:57:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6025,"order_number":"AZS-140326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 13:57:28"} 
[2026-03-14 13:57:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6021,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":28804},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null,"id":28805},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28806},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28804,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":28805,"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"id":28806,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-14 13:57:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6021,"items_count":4} 
[2026-03-14 13:57:54] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28804,"menu_item_id":96,"quantity":1},{"id":28805,"menu_item_id":55,"quantity":2},{"id":28806,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-14 13:57:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6021,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["96|1|","55|2|","61|1|"],"new_items_map_keys":["96|1|","55|2|","61|1|","3|1|"]} 
[2026-03-14 13:57:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6021,"order_number":"AZS-140326-010"} 
[2026-03-14 13:57:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-010","replaced_order_id":6021} 
[2026-03-14 13:57:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6026,"items_count":4,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-14 13:57:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6026,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6026}} 
[2026-03-14 13:57:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6026,"item_index":0,"menu_item_id":96} 
[2026-03-14 13:57:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6026,"item_index":1,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6026}} 
[2026-03-14 13:57:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6026,"item_index":1,"menu_item_id":55} 
[2026-03-14 13:57:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6026,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6026}} 
[2026-03-14 13:57:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6026,"item_index":2,"menu_item_id":61} 
[2026-03-14 13:57:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6026,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6026}} 
[2026-03-14 13:57:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6026,"item_index":3,"menu_item_id":3} 
[2026-03-14 13:57:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6021,"new_order_id":6026,"order_number":"AZS-140326-010"} 
[2026-03-14 14:02:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6019,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":28792},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28793},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28794},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28795},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":28796},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28792,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":28793,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28794,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28795,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":28796,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-14 14:02:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6019,"items_count":6} 
[2026-03-14 14:02:01] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28792,"menu_item_id":396,"quantity":4},{"id":28793,"menu_item_id":61,"quantity":1},{"id":28794,"menu_item_id":56,"quantity":1},{"id":28795,"menu_item_id":5,"quantity":1},{"id":28796,"menu_item_id":97,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-14 14:02:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6019,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["396|4|","61|1|","56|1|","5|1|","97|1|"],"new_items_map_keys":["396|4|","61|1|","56|1|","5|1|","97|1|","3|1|"]} 
[2026-03-14 14:02:01] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6019,"order_number":"AZS-140326-009"} 
[2026-03-14 14:02:01] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-009","replaced_order_id":6019} 
[2026-03-14 14:02:01] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6027,"items_count":6,"items":[{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-14 14:02:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6027,"item_index":0,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6027}} 
[2026-03-14 14:02:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6027,"item_index":0,"menu_item_id":396} 
[2026-03-14 14:02:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6027,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6027}} 
[2026-03-14 14:02:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6027,"item_index":1,"menu_item_id":61} 
[2026-03-14 14:02:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6027,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6027}} 
[2026-03-14 14:02:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6027,"item_index":2,"menu_item_id":56} 
[2026-03-14 14:02:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6027,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6027}} 
[2026-03-14 14:02:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6027,"item_index":3,"menu_item_id":5} 
[2026-03-14 14:02:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6027,"item_index":4,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6027}} 
[2026-03-14 14:02:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6027,"item_index":4,"menu_item_id":97} 
[2026-03-14 14:02:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6027,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6027}} 
[2026-03-14 14:02:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6027,"item_index":5,"menu_item_id":3} 
[2026-03-14 14:02:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6019,"new_order_id":6027,"order_number":"AZS-140326-009"} 
[2026-03-14 14:03:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6023,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28815},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28816},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28817},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28818},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28819},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28820},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":28821}],"validated_items":[{"id":28815,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":28816,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28817,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":28818,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28819,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28820,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28821,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-14 14:03:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6023,"items_count":7} 
[2026-03-14 14:03:17] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28815,"menu_item_id":417,"quantity":1},{"id":28816,"menu_item_id":96,"quantity":1},{"id":28817,"menu_item_id":396,"quantity":2},{"id":28818,"menu_item_id":61,"quantity":1},{"id":28819,"menu_item_id":56,"quantity":1},{"id":28820,"menu_item_id":5,"quantity":1},{"id":28821,"menu_item_id":13,"quantity":2}]} 
[2026-03-14 14:03:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6023,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["417|1|","96|1|","396|2|","61|1|","56|1|","5|1|","13|2|"],"new_items_map_keys":["417|1|","96|1|","396|2|","61|1|","56|1|","5|1|","13|2|"]} 
[2026-03-14 14:03:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6023,"order_number":"AZS-140326-005"} 
[2026-03-14 14:03:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6023,"order_number":"AZS-140326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 14:03:17"} 
[2026-03-14 14:03:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6022,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28807},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28808},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28809},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":28810},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28811},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28812},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28813},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":28814}],"validated_items":[{"id":28807,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":28808,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":28809,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28810,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":28811,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28812,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28813,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28814,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-14 14:03:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6022,"items_count":8} 
[2026-03-14 14:03:33] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28807,"menu_item_id":417,"quantity":1},{"id":28808,"menu_item_id":105,"quantity":1},{"id":28809,"menu_item_id":396,"quantity":1},{"id":28810,"menu_item_id":50,"quantity":1},{"id":28811,"menu_item_id":61,"quantity":1},{"id":28812,"menu_item_id":56,"quantity":1},{"id":28813,"menu_item_id":5,"quantity":1},{"id":28814,"menu_item_id":2,"quantity":2}]} 
[2026-03-14 14:03:33] local.INFO: PosOrderController::update - Item changes check {"order_id":6022,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["417|1|","105|1|","396|1|","50|1|","61|1|","56|1|","5|1|","2|2|"],"new_items_map_keys":["417|1|","105|1|","396|1|","50|1|","61|1|","56|1|","5|1|","2|2|"]} 
[2026-03-14 14:03:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6022,"order_number":"AZS-140326-006"} 
[2026-03-14 14:03:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6022,"order_number":"AZS-140326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 14:03:33"} 
[2026-03-14 14:04:06] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6025,"order_number":"AZS-140326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3281,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 14:04:06"} 
[2026-03-14 14:04:06] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6025,"order_number":"AZS-140326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3281,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 14:04:06"} 
[2026-03-14 14:04:06] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6025,"order_number":"AZS-140326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3281,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 14:04:06"} 
[2026-03-14 14:04:06] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6025,"order_number":"AZS-140326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3281,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 14:04:06"} 
[2026-03-14 14:04:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6025,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28828},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28829},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28830},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":28831},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28832}],"validated_items":[{"id":28828,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":28829,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":28830,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28831,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":28832,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-14 14:04:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6025,"items_count":5} 
[2026-03-14 14:04:06] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28828,"menu_item_id":417,"quantity":1},{"id":28829,"menu_item_id":105,"quantity":1},{"id":28830,"menu_item_id":396,"quantity":1},{"id":28831,"menu_item_id":50,"quantity":1},{"id":28832,"menu_item_id":61,"quantity":1}]} 
[2026-03-14 14:04:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6025,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|1|","105|1|","396|1|","50|1|","61|1|"],"new_items_map_keys":["417|1|","105|1|","396|1|","50|1|","61|1|"]} 
[2026-03-14 14:04:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6025,"order_number":"AZS-140326-003"} 
[2026-03-14 14:04:06] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6025,"order_number":"AZS-140326-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3281,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-14 14:04:06","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-14 14:04:06"} 
[2026-03-14 14:04:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6025,"order_number":"AZS-140326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-14 14:04:06"} 
[2026-03-14 14:04:06] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6025,"order_number":"AZS-140326-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3281.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-14 14:04:06","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3281,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3281.00","database_verification_match":true,"timestamp":"2026-03-14 14:04:06"} 
[2026-03-14 14:15:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6020,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28797},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28798},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":28799},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28800},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28801},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28802},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":28803}],"validated_items":[{"id":28797,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":28798,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":28799,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":28800,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28801,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28802,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28803,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null}]} 
[2026-03-14 14:15:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6020,"items_count":7} 
[2026-03-14 14:15:35] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28797,"menu_item_id":417,"quantity":1},{"id":28798,"menu_item_id":396,"quantity":2},{"id":28799,"menu_item_id":50,"quantity":1},{"id":28800,"menu_item_id":61,"quantity":1},{"id":28801,"menu_item_id":56,"quantity":1},{"id":28802,"menu_item_id":5,"quantity":1},{"id":28803,"menu_item_id":102,"quantity":1}]} 
[2026-03-14 14:15:35] local.INFO: PosOrderController::update - Item changes check {"order_id":6020,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["417|1|","396|2|","50|1|","61|1|","56|1|","5|1|","102|1|"],"new_items_map_keys":["417|1|","396|2|","50|1|","61|1|","56|1|","5|1|","102|1|"]} 
[2026-03-14 14:15:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6020,"order_number":"AZS-140326-001"} 
[2026-03-14 14:15:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6020,"order_number":"AZS-140326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 14:15:35"} 
[2026-03-14 14:15:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6022,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28807},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28808},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28809},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":28810},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28811},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28812},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28813},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":28814}],"validated_items":[{"id":28807,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":28808,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":28809,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28810,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":28811,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28812,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28813,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28814,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-14 14:15:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6022,"items_count":8} 
[2026-03-14 14:15:54] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28807,"menu_item_id":417,"quantity":1},{"id":28808,"menu_item_id":105,"quantity":1},{"id":28809,"menu_item_id":396,"quantity":1},{"id":28810,"menu_item_id":50,"quantity":1},{"id":28811,"menu_item_id":61,"quantity":1},{"id":28812,"menu_item_id":56,"quantity":1},{"id":28813,"menu_item_id":5,"quantity":1},{"id":28814,"menu_item_id":2,"quantity":2}]} 
[2026-03-14 14:15:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6022,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["417|1|","105|1|","396|1|","50|1|","61|1|","56|1|","5|1|","2|2|"],"new_items_map_keys":["417|1|","105|1|","396|1|","50|1|","61|1|","56|1|","5|1|","2|2|"]} 
[2026-03-14 14:15:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6022,"order_number":"AZS-140326-006"} 
[2026-03-14 14:15:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6022,"order_number":"AZS-140326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 14:15:54"} 
[2026-03-14 14:16:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6026,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28833},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":28834},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28835},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28836}],"validated_items":[{"id":28833,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28834,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":28835,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28836,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-14 14:16:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6026,"items_count":4} 
[2026-03-14 14:16:16] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28833,"menu_item_id":96,"quantity":1},{"id":28834,"menu_item_id":55,"quantity":2},{"id":28835,"menu_item_id":61,"quantity":1},{"id":28836,"menu_item_id":3,"quantity":1}]} 
[2026-03-14 14:16:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6026,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","55|2|","61|1|","3|1|"],"new_items_map_keys":["96|1|","55|2|","61|1|","3|1|"]} 
[2026-03-14 14:16:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6026,"order_number":"AZS-140326-010"} 
[2026-03-14 14:16:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6026,"order_number":"AZS-140326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 14:16:16"} 
[2026-03-14 14:16:37] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6022,"order_number":"AZS-140326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 14:16:37"} 
[2026-03-14 14:16:37] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6022,"order_number":"AZS-140326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 14:16:37"} 
[2026-03-14 14:16:37] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6022,"order_number":"AZS-140326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 14:16:37"} 
[2026-03-14 14:16:37] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6022,"order_number":"AZS-140326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 14:16:37"} 
[2026-03-14 14:16:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":1,"order_id":6022,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28807},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":28808},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28809},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":28810},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28812},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28813},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":28814}],"validated_items":[{"id":28807,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":28808,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":28809,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28810,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":28812,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28813,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28814,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-14 14:16:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6022,"items_count":7} 
[2026-03-14 14:16:37] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":1,"items_to_remove":[28811],"items":[{"id":28807,"menu_item_id":417,"quantity":1},{"id":28808,"menu_item_id":105,"quantity":1},{"id":28809,"menu_item_id":396,"quantity":1},{"id":28810,"menu_item_id":50,"quantity":1},{"id":28812,"menu_item_id":56,"quantity":1},{"id":28813,"menu_item_id":5,"quantity":1},{"id":28814,"menu_item_id":2,"quantity":2}]} 
[2026-03-14 14:16:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6022,"has_item_changes":true,"old_items_count":8,"new_items_count":7,"old_items_map_keys":["417|1|","105|1|","396|1|","50|1|","61|1|","56|1|","5|1|","2|2|"],"new_items_map_keys":["417|1|","105|1|","396|1|","50|1|","56|1|","5|1|","2|2|"]} 
[2026-03-14 14:16:37] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6022,"order_number":"AZS-140326-006","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":4000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-14 14:16:37","original_payment_amount":"0.00","grand_total":3555.0,"timestamp":"2026-03-14 14:16:37"} 
[2026-03-14 14:16:37] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6022,"order_number":"AZS-140326-006"} 
[2026-03-14 14:16:37] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-006","replaced_order_id":6022} 
[2026-03-14 14:16:37] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6022,"new_order_id":6029,"order_number":"AZS-140326-006","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"4000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-14 14:16:37","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-14 14:16:37"} 
[2026-03-14 14:16:37] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6029,"items_count":7,"items":[{"menu_item_id":417,"quantity":1,"price":499.0},{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":50,"quantity":1,"price":129.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":2,"quantity":2,"price":130.0}]} 
[2026-03-14 14:16:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6029,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":499.0,"discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6029}} 
[2026-03-14 14:16:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6029,"item_index":0,"menu_item_id":417} 
[2026-03-14 14:16:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6029,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6029}} 
[2026-03-14 14:16:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6029,"item_index":1,"menu_item_id":105} 
[2026-03-14 14:16:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6029,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6029}} 
[2026-03-14 14:16:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6029,"item_index":2,"menu_item_id":396} 
[2026-03-14 14:16:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6029,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6029}} 
[2026-03-14 14:16:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6029,"item_index":3,"menu_item_id":50} 
[2026-03-14 14:16:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6029,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6029}} 
[2026-03-14 14:16:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6029,"item_index":4,"menu_item_id":56} 
[2026-03-14 14:16:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6029,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6029}} 
[2026-03-14 14:16:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6029,"item_index":5,"menu_item_id":5} 
[2026-03-14 14:16:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6029,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6029}} 
[2026-03-14 14:16:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6029,"item_index":6,"menu_item_id":2} 
[2026-03-14 14:16:37] local.ERROR: Error tracking recipe usage for order 6029: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6029, 105, 196, 1, 500, 0.00, Order #AZS-140326-006 - 1x Mutton Shinwari - Half, 2026-03-14 14:16:37, 2026-03-14 14:16:37))  
[2026-03-14 14:16:37] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6022,"new_order_id":6029,"order_number":"AZS-140326-006"} 
[2026-03-14 14:16:37] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6022,"new_order_id":6029,"order_number":"AZS-140326-006","route":"api/orders/6022"} 
[2026-03-14 14:16:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6027,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":28837},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28838},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28839},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28840},{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28841},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28842}],"validated_items":[{"id":28837,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":28838,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28839,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28840,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28841,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":28842,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-14 14:16:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6027,"items_count":6} 
[2026-03-14 14:16:54] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28837,"menu_item_id":396,"quantity":4},{"id":28838,"menu_item_id":61,"quantity":1},{"id":28839,"menu_item_id":56,"quantity":1},{"id":28840,"menu_item_id":5,"quantity":1},{"id":28841,"menu_item_id":97,"quantity":1},{"id":28842,"menu_item_id":3,"quantity":1}]} 
[2026-03-14 14:16:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6027,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["396|4|","61|1|","56|1|","5|1|","97|1|","3|1|"],"new_items_map_keys":["396|4|","61|1|","56|1|","5|1|","97|1|","3|1|"]} 
[2026-03-14 14:16:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6027,"order_number":"AZS-140326-009"} 
[2026-03-14 14:16:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6027,"order_number":"AZS-140326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 14:16:54"} 
[2026-03-14 14:19:35] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6026,"order_number":"AZS-140326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 14:19:35"} 
[2026-03-14 14:19:35] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6026,"order_number":"AZS-140326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 14:19:35"} 
[2026-03-14 14:19:35] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6026,"order_number":"AZS-140326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 14:19:35"} 
[2026-03-14 14:19:35] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6026,"order_number":"AZS-140326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 14:19:35"} 
[2026-03-14 14:19:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6026,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28833},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":28834},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28835},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28836}],"validated_items":[{"id":28833,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28834,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":28835,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28836,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-14 14:19:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6026,"items_count":4} 
[2026-03-14 14:19:35] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28833,"menu_item_id":96,"quantity":1},{"id":28834,"menu_item_id":55,"quantity":2},{"id":28835,"menu_item_id":61,"quantity":1},{"id":28836,"menu_item_id":3,"quantity":1}]} 
[2026-03-14 14:19:35] local.INFO: PosOrderController::update - Item changes check {"order_id":6026,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","55|2|","61|1|","3|1|"],"new_items_map_keys":["96|1|","55|2|","61|1|","3|1|"]} 
[2026-03-14 14:19:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6026,"order_number":"AZS-140326-010"} 
[2026-03-14 14:19:35] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6026,"order_number":"AZS-140326-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-14 14:19:35","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-14 14:19:35"} 
[2026-03-14 14:19:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6026,"order_number":"AZS-140326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-14 14:19:35"} 
[2026-03-14 14:19:35] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6026,"order_number":"AZS-140326-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-14 14:19:35","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2500.00","database_verification_match":true,"timestamp":"2026-03-14 14:19:35"} 
[2026-03-14 14:23:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6023,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28815},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28816},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28817},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28818},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28819},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28820},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":28821}],"validated_items":[{"id":28815,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":28816,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28817,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":28818,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28819,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28820,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28821,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-14 14:23:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6023,"items_count":7} 
[2026-03-14 14:23:56] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28815,"menu_item_id":417,"quantity":1},{"id":28816,"menu_item_id":96,"quantity":1},{"id":28817,"menu_item_id":396,"quantity":2},{"id":28818,"menu_item_id":61,"quantity":1},{"id":28819,"menu_item_id":56,"quantity":1},{"id":28820,"menu_item_id":5,"quantity":1},{"id":28821,"menu_item_id":13,"quantity":2}]} 
[2026-03-14 14:23:56] local.INFO: PosOrderController::update - Item changes check {"order_id":6023,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["417|1|","96|1|","396|2|","61|1|","56|1|","5|1|","13|2|"],"new_items_map_keys":["417|1|","96|1|","396|2|","61|1|","56|1|","5|1|","13|2|"]} 
[2026-03-14 14:23:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6023,"order_number":"AZS-140326-005"} 
[2026-03-14 14:23:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6023,"order_number":"AZS-140326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 14:23:56"} 
[2026-03-14 14:24:32] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6023,"order_number":"AZS-140326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 14:24:32"} 
[2026-03-14 14:24:32] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6023,"order_number":"AZS-140326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 14:24:32"} 
[2026-03-14 14:24:32] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6023,"order_number":"AZS-140326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 14:24:32"} 
[2026-03-14 14:24:32] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6023,"order_number":"AZS-140326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 14:24:32"} 
[2026-03-14 14:24:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":6023,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28815},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28816},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28817},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28818},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28820},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":28821}],"validated_items":[{"id":28815,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":28816,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28817,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":28818,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28820,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28821,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-14 14:24:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6023,"items_count":6} 
[2026-03-14 14:24:32] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[28819],"items":[{"id":28815,"menu_item_id":417,"quantity":1},{"id":28816,"menu_item_id":96,"quantity":1},{"id":28817,"menu_item_id":396,"quantity":2},{"id":28818,"menu_item_id":61,"quantity":1},{"id":28820,"menu_item_id":5,"quantity":1},{"id":28821,"menu_item_id":13,"quantity":2}]} 
[2026-03-14 14:24:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6023,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["417|1|","96|1|","396|2|","61|1|","56|1|","5|1|","13|2|"],"new_items_map_keys":["417|1|","96|1|","396|2|","61|1|","5|1|","13|2|"]} 
[2026-03-14 14:24:32] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6023,"order_number":"AZS-140326-005","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-14 14:24:32","original_payment_amount":"0.00","grand_total":2763.0,"timestamp":"2026-03-14 14:24:32"} 
[2026-03-14 14:24:32] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6023,"order_number":"AZS-140326-005"} 
[2026-03-14 14:24:32] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-005","replaced_order_id":6023} 
[2026-03-14 14:24:32] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6023,"new_order_id":6030,"order_number":"AZS-140326-005","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-14 14:24:32","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-14 14:24:32"} 
[2026-03-14 14:24:32] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6030,"items_count":6,"items":[{"menu_item_id":417,"quantity":1,"price":499.0},{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":13,"quantity":2,"price":249.0}]} 
[2026-03-14 14:24:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6030,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":499.0,"discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6030}} 
[2026-03-14 14:24:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6030,"item_index":0,"menu_item_id":417} 
[2026-03-14 14:24:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6030,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6030}} 
[2026-03-14 14:24:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6030,"item_index":1,"menu_item_id":96} 
[2026-03-14 14:24:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6030,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6030}} 
[2026-03-14 14:24:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6030,"item_index":2,"menu_item_id":396} 
[2026-03-14 14:24:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6030,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6030}} 
[2026-03-14 14:24:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6030,"item_index":3,"menu_item_id":61} 
[2026-03-14 14:24:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6030,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6030}} 
[2026-03-14 14:24:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6030,"item_index":4,"menu_item_id":5} 
[2026-03-14 14:24:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6030,"item_index":5,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6030}} 
[2026-03-14 14:24:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6030,"item_index":5,"menu_item_id":13} 
[2026-03-14 14:24:32] local.ERROR: Error tracking recipe usage for order 6030: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6030, 96, 77, 1, 1, 0.00, Order #AZS-140326-005 - 1x Chicken Karahi - Half, 2026-03-14 14:24:32, 2026-03-14 14:24:32))  
[2026-03-14 14:24:32] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6023,"new_order_id":6030,"order_number":"AZS-140326-005"} 
[2026-03-14 14:24:32] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6023,"new_order_id":6030,"order_number":"AZS-140326-005","route":"api/orders/6023"} 
[2026-03-14 14:25:21] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6020,"order_number":"AZS-140326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2935,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 14:25:21"} 
[2026-03-14 14:25:21] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6020,"order_number":"AZS-140326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2935,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 14:25:21"} 
[2026-03-14 14:25:21] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6020,"order_number":"AZS-140326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2935,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 14:25:21"} 
[2026-03-14 14:25:21] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6020,"order_number":"AZS-140326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2935,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 14:25:21"} 
[2026-03-14 14:25:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6020,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28797},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28798},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":28799},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28800},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28801},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28802},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":28803}],"validated_items":[{"id":28797,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":28798,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":28799,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":28800,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28801,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28802,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28803,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null}]} 
[2026-03-14 14:25:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6020,"items_count":7} 
[2026-03-14 14:25:21] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28797,"menu_item_id":417,"quantity":1},{"id":28798,"menu_item_id":396,"quantity":2},{"id":28799,"menu_item_id":50,"quantity":1},{"id":28800,"menu_item_id":61,"quantity":1},{"id":28801,"menu_item_id":56,"quantity":1},{"id":28802,"menu_item_id":5,"quantity":1},{"id":28803,"menu_item_id":102,"quantity":1}]} 
[2026-03-14 14:25:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6020,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["417|1|","396|2|","50|1|","61|1|","56|1|","5|1|","102|1|"],"new_items_map_keys":["417|1|","396|2|","50|1|","61|1|","56|1|","5|1|","102|1|"]} 
[2026-03-14 14:25:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6020,"order_number":"AZS-140326-001"} 
[2026-03-14 14:25:21] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6020,"order_number":"AZS-140326-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2935,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-14 14:25:21","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-14 14:25:21"} 
[2026-03-14 14:25:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6020,"order_number":"AZS-140326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-14 14:25:21"} 
[2026-03-14 14:25:21] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6020,"order_number":"AZS-140326-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2935.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-14 14:25:21","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2935,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2935.00","database_verification_match":true,"timestamp":"2026-03-14 14:25:21"} 
[2026-03-14 14:29:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":6027,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28837},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28838},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28839},{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28841},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28842},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}],"validated_items":[{"id":28837,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":28838,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28839,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28841,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":28842,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-14 14:29:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6027,"items_count":6} 
[2026-03-14 14:29:54] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[28840],"items":[{"id":28837,"menu_item_id":396,"quantity":3},{"id":28838,"menu_item_id":61,"quantity":1},{"id":28839,"menu_item_id":56,"quantity":1},{"id":28841,"menu_item_id":97,"quantity":1},{"id":28842,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1}]} 
[2026-03-14 14:29:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6027,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["396|4|","61|1|","56|1|","5|1|","97|1|","3|1|"],"new_items_map_keys":["396|3|","61|1|","56|1|","97|1|","3|1|","50|1|"]} 
[2026-03-14 14:29:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6027,"order_number":"AZS-140326-009"} 
[2026-03-14 14:29:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-009","replaced_order_id":6027} 
[2026-03-14 14:29:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6031,"items_count":6,"items":[{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":97,"quantity":1,"price":2299.0},{"menu_item_id":3,"quantity":1,"price":270.0},{"menu_item_id":50,"quantity":1,"price":129.0}]} 
[2026-03-14 14:29:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6031,"item_index":0,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6031}} 
[2026-03-14 14:29:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6031,"item_index":0,"menu_item_id":396} 
[2026-03-14 14:29:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6031,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6031}} 
[2026-03-14 14:29:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6031,"item_index":1,"menu_item_id":61} 
[2026-03-14 14:29:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6031,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6031}} 
[2026-03-14 14:29:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6031,"item_index":2,"menu_item_id":56} 
[2026-03-14 14:29:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6031,"item_index":3,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6031}} 
[2026-03-14 14:29:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6031,"item_index":3,"menu_item_id":97} 
[2026-03-14 14:29:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6031,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6031}} 
[2026-03-14 14:29:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6031,"item_index":4,"menu_item_id":3} 
[2026-03-14 14:29:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6031,"item_index":5,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6031}} 
[2026-03-14 14:29:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6031,"item_index":5,"menu_item_id":50} 
[2026-03-14 14:29:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6027,"new_order_id":6031,"order_number":"AZS-140326-009"} 
[2026-03-14 14:29:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6031,"item_index":0,"item_id":28837} 
[2026-03-14 14:29:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6031,"item_index":1,"item_id":28838} 
[2026-03-14 14:29:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6031,"item_index":2,"item_id":28839} 
[2026-03-14 14:29:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6031,"item_index":3,"item_id":28841} 
[2026-03-14 14:29:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6031,"item_index":4,"item_id":28842} 
[2026-03-14 14:29:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6031,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28837},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28838},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28839},{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28841},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28842},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-14 14:29:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6031,"items_count":6} 
[2026-03-14 14:29:59] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[28859,28860,28861,28862,28863,28864],"items":[{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":97,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1}]} 
[2026-03-14 14:29:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6031,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["396|3|","61|1|","56|1|","97|1|","3|1|","50|1|"],"new_items_map_keys":["396|3|","61|1|","56|1|","97|1|","3|1|","50|1|"]} 
[2026-03-14 14:29:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6031,"order_number":"AZS-140326-009"} 
[2026-03-14 14:29:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6031,"order_number":"AZS-140326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 14:29:59"} 
[2026-03-14 14:48:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T02:48:30.058Z","date_to":"2026-03-14T14:48:30.058Z","per_page":"100"} 
[2026-03-14 14:48:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T02:48:30.037Z","date_to":"2026-03-14T14:48:30.037Z","per_page":"100"} 
[2026-03-14 14:48:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":3,"unique_order_numbers":11} 
[2026-03-14 14:48:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":3,"unique_order_numbers":11} 
[2026-03-14 14:48:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T02:48:30.037Z","date_to":"2026-03-14T14:48:30.037Z","per_page":"100"} 
[2026-03-14 14:48:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":3,"unique_order_numbers":11} 
[2026-03-14 14:48:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6031,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28859},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28860},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28861},{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28862},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28863},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":28864}],"validated_items":[{"id":28859,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":28860,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28861,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28862,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":28863,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":28864,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-14 14:48:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6031,"items_count":6} 
[2026-03-14 14:48:40] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28859,"menu_item_id":396,"quantity":3},{"id":28860,"menu_item_id":61,"quantity":1},{"id":28861,"menu_item_id":56,"quantity":1},{"id":28862,"menu_item_id":97,"quantity":1},{"id":28863,"menu_item_id":3,"quantity":1},{"id":28864,"menu_item_id":50,"quantity":1}]} 
[2026-03-14 14:48:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6031,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["396|3|","61|1|","56|1|","97|1|","3|1|","50|1|"],"new_items_map_keys":["396|3|","61|1|","56|1|","97|1|","3|1|","50|1|"]} 
[2026-03-14 14:48:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6031,"order_number":"AZS-140326-009"} 
[2026-03-14 14:48:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6031,"order_number":"AZS-140326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 14:48:40"} 
[2026-03-14 14:49:08] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6031,"order_number":"AZS-140326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 14:49:08"} 
[2026-03-14 14:49:08] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6031,"order_number":"AZS-140326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 14:49:08"} 
[2026-03-14 14:49:08] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6031,"order_number":"AZS-140326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 14:49:08"} 
[2026-03-14 14:49:08] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6031,"order_number":"AZS-140326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 14:49:08"} 
[2026-03-14 14:49:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6031,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":28859},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28860},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28861},{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28862},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":28863},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":28864}],"validated_items":[{"id":28859,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":28860,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28861,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28862,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":28863,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":28864,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-14 14:49:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6031,"items_count":6} 
[2026-03-14 14:49:08] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28859,"menu_item_id":396,"quantity":3},{"id":28860,"menu_item_id":61,"quantity":1},{"id":28861,"menu_item_id":56,"quantity":1},{"id":28862,"menu_item_id":97,"quantity":1},{"id":28863,"menu_item_id":3,"quantity":1},{"id":28864,"menu_item_id":50,"quantity":1}]} 
[2026-03-14 14:49:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6031,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["396|3|","61|1|","56|1|","97|1|","3|1|","50|1|"],"new_items_map_keys":["396|3|","61|1|","56|1|","97|1|","3|1|","50|1|"]} 
[2026-03-14 14:49:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6031,"order_number":"AZS-140326-009"} 
[2026-03-14 14:49:08] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6031,"order_number":"AZS-140326-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-14 14:49:08","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-14 14:49:08"} 
[2026-03-14 14:49:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6031,"order_number":"AZS-140326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-14 14:49:08"} 
[2026-03-14 14:49:08] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6031,"order_number":"AZS-140326-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-14 14:49:08","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3500.00","database_verification_match":true,"timestamp":"2026-03-14 14:49:08"} 
[2026-03-14 14:49:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T02:49:52.156Z","date_to":"2026-03-14T14:49:52.156Z","per_page":"100"} 
[2026-03-14 14:49:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":2,"unique_order_numbers":11} 
[2026-03-14 14:49:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T02:49:52.142Z","date_to":"2026-03-14T14:49:52.142Z","per_page":"100"} 
[2026-03-14 14:49:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":2,"unique_order_numbers":11} 
[2026-03-14 14:49:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T02:49:52.142Z","date_to":"2026-03-14T14:49:52.142Z","per_page":"100"} 
[2026-03-14 14:49:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":2,"unique_order_numbers":11} 
[2026-03-14 14:56:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6028,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":28843},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28844},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28845}],"validated_items":[{"id":28843,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":28844,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28845,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-14 14:56:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6028,"items_count":3} 
[2026-03-14 14:56:36] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28843,"menu_item_id":102,"quantity":1},{"id":28844,"menu_item_id":396,"quantity":1},{"id":28845,"menu_item_id":2,"quantity":1}]} 
[2026-03-14 14:56:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6028,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["102|1|","396|1|","2|1|"],"new_items_map_keys":["102|1|","396|1|","2|1|"]} 
[2026-03-14 14:56:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6028,"order_number":"AZS-140326-011"} 
[2026-03-14 14:56:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6028,"order_number":"AZS-140326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 14:56:36"} 
[2026-03-14 14:58:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6028,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":28843},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":28844},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":28845},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":28843,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":28844,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":28845,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-14 14:58:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6028,"items_count":4} 
[2026-03-14 14:58:07] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28843,"menu_item_id":102,"quantity":1},{"id":28844,"menu_item_id":396,"quantity":1},{"id":28845,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-03-14 14:58:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6028,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["102|1|","396|1|","2|1|"],"new_items_map_keys":["102|1|","396|1|","2|1|","6|2|"]} 
[2026-03-14 14:58:07] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6028,"order_number":"AZS-140326-011"} 
[2026-03-14 14:58:07] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-011","replaced_order_id":6028} 
[2026-03-14 14:58:07] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6032,"items_count":4,"items":[{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-03-14 14:58:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6032,"item_index":0,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6032}} 
[2026-03-14 14:58:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6032,"item_index":0,"menu_item_id":102} 
[2026-03-14 14:58:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6032,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6032}} 
[2026-03-14 14:58:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6032,"item_index":1,"menu_item_id":396} 
[2026-03-14 14:58:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6032,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6032}} 
[2026-03-14 14:58:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6032,"item_index":2,"menu_item_id":2} 
[2026-03-14 14:58:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6032,"item_index":3,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6032}} 
[2026-03-14 14:58:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6032,"item_index":3,"menu_item_id":6} 
[2026-03-14 14:58:07] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6028,"new_order_id":6032,"order_number":"AZS-140326-011"} 
[2026-03-14 14:58:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6032,"item_index":0,"item_id":28843} 
[2026-03-14 14:58:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6032,"item_index":1,"item_id":28844} 
[2026-03-14 14:58:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6032,"item_index":2,"item_id":28845} 
[2026-03-14 14:58:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6032,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":28843},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28844},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28845},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-14 14:58:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6032,"items_count":4} 
[2026-03-14 14:58:25] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[28865,28866,28867,28868],"items":[{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-03-14 14:58:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6032,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["102|1|","396|1|","2|1|","6|2|"],"new_items_map_keys":["102|1|","396|1|","2|1|","6|2|"]} 
[2026-03-14 14:58:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6032,"order_number":"AZS-140326-011"} 
[2026-03-14 14:58:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6032,"order_number":"AZS-140326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 14:58:25"} 
[2026-03-14 15:01:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6032,"item_index":0,"item_id":28843} 
[2026-03-14 15:01:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6032,"item_index":1,"item_id":28844} 
[2026-03-14 15:01:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6032,"item_index":2,"item_id":28845} 
[2026-03-14 15:01:23] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6032,"order_number":"AZS-140326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 15:01:23"} 
[2026-03-14 15:01:23] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6032,"order_number":"AZS-140326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 15:01:23"} 
[2026-03-14 15:01:23] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6032,"order_number":"AZS-140326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 15:01:23"} 
[2026-03-14 15:01:23] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6032,"order_number":"AZS-140326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 15:01:23"} 
[2026-03-14 15:01:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6032,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":28843},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28844},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28845},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-14 15:01:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6032,"items_count":4} 
[2026-03-14 15:01:23] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[28865,28866,28867,28868],"items":[{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-03-14 15:01:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6032,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["102|1|","396|1|","2|1|","6|2|"],"new_items_map_keys":["102|1|","396|1|","2|1|","6|2|"]} 
[2026-03-14 15:01:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6032,"order_number":"AZS-140326-011"} 
[2026-03-14 15:01:23] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6032,"order_number":"AZS-140326-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-14 15:01:23","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-14 15:01:23"} 
[2026-03-14 15:01:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6032,"order_number":"AZS-140326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-14 15:01:23"} 
[2026-03-14 15:01:23] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6032,"order_number":"AZS-140326-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-14 15:01:23","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-14 15:01:23"} 
[2026-03-14 15:49:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6033,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":28869}],"validated_items":[{"id":28869,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-14 15:49:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6033,"items_count":1} 
[2026-03-14 15:49:20] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28869,"menu_item_id":13,"quantity":2}]} 
[2026-03-14 15:49:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6033,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|2|"]} 
[2026-03-14 15:49:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6033,"order_number":"AZS-140326-012"} 
[2026-03-14 15:49:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6033,"order_number":"AZS-140326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 15:49:20"} 
[2026-03-14 16:04:44] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6033,"order_number":"AZS-140326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":530,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 16:04:44"} 
[2026-03-14 16:04:44] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6033,"order_number":"AZS-140326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":530,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 16:04:44"} 
[2026-03-14 16:04:44] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6033,"order_number":"AZS-140326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":530,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 16:04:44"} 
[2026-03-14 16:04:44] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6033,"order_number":"AZS-140326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":530,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 16:04:44"} 
[2026-03-14 16:04:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6033,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":28869}],"validated_items":[{"id":28869,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-14 16:04:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6033,"items_count":1} 
[2026-03-14 16:04:44] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28869,"menu_item_id":13,"quantity":2}]} 
[2026-03-14 16:04:44] local.INFO: PosOrderController::update - Item changes check {"order_id":6033,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|2|"]} 
[2026-03-14 16:04:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6033,"order_number":"AZS-140326-012"} 
[2026-03-14 16:04:44] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6033,"order_number":"AZS-140326-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":530,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-14 16:04:44","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-14 16:04:44"} 
[2026-03-14 16:04:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6033,"order_number":"AZS-140326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-14 16:04:44"} 
[2026-03-14 16:04:44] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6033,"order_number":"AZS-140326-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"530.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-14 16:04:44","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":530,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"530.00","database_verification_match":true,"timestamp":"2026-03-14 16:04:44"} 
[2026-03-14 16:47:58] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6034,"order_number":"AZS-140326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":523,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 16:47:58"} 
[2026-03-14 16:47:58] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6034,"order_number":"AZS-140326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":523,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 16:47:58"} 
[2026-03-14 16:47:58] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6034,"order_number":"AZS-140326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":523,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 16:47:58"} 
[2026-03-14 16:47:58] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6034,"order_number":"AZS-140326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":523,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 16:47:58"} 
[2026-03-14 16:47:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6034,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":28870}],"validated_items":[{"id":28870,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-14 16:47:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6034,"items_count":1} 
[2026-03-14 16:47:58] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28870,"menu_item_id":13,"quantity":2}]} 
[2026-03-14 16:47:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6034,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|2|"]} 
[2026-03-14 16:47:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6034,"order_number":"AZS-140326-013"} 
[2026-03-14 16:47:58] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6034,"order_number":"AZS-140326-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":523,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-14 16:47:58","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-14 16:47:58"} 
[2026-03-14 16:47:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6034,"order_number":"AZS-140326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-14 16:47:58"} 
[2026-03-14 16:47:58] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6034,"order_number":"AZS-140326-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"523.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-14 16:47:58","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":523,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"523.00","database_verification_match":true,"timestamp":"2026-03-14 16:47:58"} 
[2026-03-14 17:41:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T05:41:14.863Z","date_to":"2026-03-14T17:41:14.863Z","per_page":"100"} 
[2026-03-14 17:41:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-14 17:41:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T05:41:14.878Z","date_to":"2026-03-14T17:41:14.878Z","per_page":"100"} 
[2026-03-14 17:41:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-14 17:41:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T05:41:14.863Z","date_to":"2026-03-14T17:41:14.863Z","per_page":"100"} 
[2026-03-14 17:41:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-14 17:41:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-13T17:41:22.099Z","date_to":"2026-03-14T17:41:22.099Z","per_page":"100"} 
[2026-03-14 17:41:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001","AZS-130326-029","AZS-130326-028","AZS-130326-027","AZS-130326-026","AZS-130326-025","AZS-130326-024","AZS-130326-023","AZS-130326-022","AZS-130326-021","AZS-130326-020"],"order_statuses":["paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":22,"unpaid_count":1,"unique_order_numbers":23} 
[2026-03-14 17:47:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T05:47:46.137Z","date_to":"2026-03-14T17:47:46.137Z","per_page":"100"} 
[2026-03-14 17:47:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-14 18:44:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T06:44:02.052Z","date_to":"2026-03-14T18:44:02.052Z","per_page":"100"} 
[2026-03-14 18:44:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-14 18:44:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T06:44:02.061Z","date_to":"2026-03-14T18:44:02.061Z","per_page":"100"} 
[2026-03-14 18:44:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-14 18:44:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T06:44:02.052Z","date_to":"2026-03-14T18:44:02.052Z","per_page":"100"} 
[2026-03-14 18:44:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-14 20:21:58] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6035,"order_number":"AZS-140326-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4600,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 20:21:58"} 
[2026-03-14 20:21:58] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6035,"order_number":"AZS-140326-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 20:21:58"} 
[2026-03-14 20:21:58] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6035,"order_number":"AZS-140326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 20:21:58"} 
[2026-03-14 20:21:58] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6035,"order_number":"AZS-140326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 20:21:58"} 
[2026-03-14 20:21:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6035,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":111,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":28871},{"menu_item_id":51,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28872}],"validated_items":[{"id":28871,"menu_item_id":111,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":28872,"menu_item_id":51,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-14 20:21:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6035,"items_count":2} 
[2026-03-14 20:21:58] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28871,"menu_item_id":111,"quantity":1},{"id":28872,"menu_item_id":51,"quantity":2}]} 
[2026-03-14 20:21:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6035,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["111|1|","51|2|"],"new_items_map_keys":["111|1|","51|2|"]} 
[2026-03-14 20:21:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6035,"order_number":"AZS-140326-014"} 
[2026-03-14 20:21:58] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6035,"order_number":"AZS-140326-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4600,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-14 20:21:58","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-14 20:21:58"} 
[2026-03-14 20:21:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6035,"order_number":"AZS-140326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-14 20:21:58"} 
[2026-03-14 20:21:58] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6035,"order_number":"AZS-140326-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4600.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-14 20:21:58","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4600.00","database_verification_match":true,"timestamp":"2026-03-14 20:21:58"} 
[2026-03-14 20:29:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6016,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":28783}],"validated_items":[{"id":28783,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-14 20:29:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6016,"items_count":1} 
[2026-03-14 20:29:23] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28783,"menu_item_id":96,"quantity":1}]} 
[2026-03-14 20:29:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6016,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["96|1|"],"new_items_map_keys":["96|1|"]} 
[2026-03-14 20:29:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6016,"order_number":"AZS-140326-008"} 
[2026-03-14 20:29:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6016,"order_number":"AZS-140326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-14 20:29:23"} 
[2026-03-14 20:29:34] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6016,"order_number":"AZS-140326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 20:29:34"} 
[2026-03-14 20:29:34] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6016,"order_number":"AZS-140326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 20:29:34"} 
[2026-03-14 20:29:34] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6016,"order_number":"AZS-140326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 20:29:34"} 
[2026-03-14 20:29:34] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6016,"order_number":"AZS-140326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 20:29:34"} 
[2026-03-14 20:29:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6016,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28783}],"validated_items":[{"id":28783,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null}]} 
[2026-03-14 20:29:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6016,"items_count":1} 
[2026-03-14 20:29:34] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28783,"menu_item_id":96,"quantity":1}]} 
[2026-03-14 20:29:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6016,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["96|1|"],"new_items_map_keys":["96|1|"]} 
[2026-03-14 20:29:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6016,"order_number":"AZS-140326-008"} 
[2026-03-14 20:29:34] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6016,"order_number":"AZS-140326-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-14 20:29:34","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-14 20:29:34"} 
[2026-03-14 20:29:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6016,"order_number":"AZS-140326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-14 20:29:34"} 
[2026-03-14 20:29:34] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6016,"order_number":"AZS-140326-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-14 20:29:34","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1200.00","database_verification_match":true,"timestamp":"2026-03-14 20:29:34"} 
[2026-03-14 20:34:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T08:34:56.182Z","date_to":"2026-03-14T20:34:56.182Z","per_page":"100"} 
[2026-03-14 20:34:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T08:34:56.201Z","date_to":"2026-03-14T20:34:56.201Z","per_page":"100"} 
[2026-03-14 20:34:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-014","AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":0,"unique_order_numbers":14} 
[2026-03-14 20:34:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-014","AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":0,"unique_order_numbers":14} 
[2026-03-14 20:34:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T08:34:56.182Z","date_to":"2026-03-14T20:34:56.182Z","per_page":"100"} 
[2026-03-14 20:34:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-014","AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":0,"unique_order_numbers":14} 
[2026-03-14 22:05:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6036,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":28873},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":28874},{"menu_item_id":412,"quantity":2,"price":220,"discount_percent":0,"notes":null,"id":28875}],"validated_items":[{"id":28873,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":28874,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":28875,"menu_item_id":412,"quantity":2,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-14 22:05:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6036,"items_count":3} 
[2026-03-14 22:05:46] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28873,"menu_item_id":411,"quantity":1},{"id":28874,"menu_item_id":416,"quantity":2},{"id":28875,"menu_item_id":412,"quantity":2}]} 
[2026-03-14 22:05:46] local.INFO: PosOrderController::update - Item changes check {"order_id":6036,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|1|","416|2|","412|2|"],"new_items_map_keys":["411|1|","416|2|","412|2|"]} 
[2026-03-14 22:05:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6036,"order_number":"AZS-140326-015"} 
[2026-03-14 22:05:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6036,"order_number":"AZS-140326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 22:05:46"} 
[2026-03-14 22:17:30] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6036,"order_number":"AZS-140326-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1200,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 22:17:30"} 
[2026-03-14 22:17:30] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6036,"order_number":"AZS-140326-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 22:17:30"} 
[2026-03-14 22:17:30] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6036,"order_number":"AZS-140326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 22:17:30"} 
[2026-03-14 22:17:30] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6036,"order_number":"AZS-140326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 22:17:30"} 
[2026-03-14 22:17:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6036,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":28873},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":28874},{"menu_item_id":412,"quantity":2,"price":220,"discount_percent":0,"notes":null,"id":28875}],"validated_items":[{"id":28873,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":28874,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":28875,"menu_item_id":412,"quantity":2,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-14 22:17:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6036,"items_count":3} 
[2026-03-14 22:17:30] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28873,"menu_item_id":411,"quantity":1},{"id":28874,"menu_item_id":416,"quantity":2},{"id":28875,"menu_item_id":412,"quantity":2}]} 
[2026-03-14 22:17:30] local.INFO: PosOrderController::update - Item changes check {"order_id":6036,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|1|","416|2|","412|2|"],"new_items_map_keys":["411|1|","416|2|","412|2|"]} 
[2026-03-14 22:17:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6036,"order_number":"AZS-140326-015"} 
[2026-03-14 22:17:30] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6036,"order_number":"AZS-140326-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1200,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-14 22:17:30","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-14 22:17:30"} 
[2026-03-14 22:17:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6036,"order_number":"AZS-140326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-14 22:17:30"} 
[2026-03-14 22:17:30] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6036,"order_number":"AZS-140326-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1200.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-14 22:17:30","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1200.00","database_verification_match":true,"timestamp":"2026-03-14 22:17:30"} 
[2026-03-14 22:17:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T10:17:42.586Z","date_to":"2026-03-14T22:17:42.586Z","per_page":"100"} 
[2026-03-14 22:17:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-019","AZS-140326-018","AZS-140326-017","AZS-140326-016","AZS-140326-015","AZS-140326-014","AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":4,"unique_order_numbers":19} 
[2026-03-14 22:17:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T10:17:42.605Z","date_to":"2026-03-14T22:17:42.605Z","per_page":"100"} 
[2026-03-14 22:17:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-019","AZS-140326-018","AZS-140326-017","AZS-140326-016","AZS-140326-015","AZS-140326-014","AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":4,"unique_order_numbers":19} 
[2026-03-14 22:17:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T10:17:42.586Z","date_to":"2026-03-14T22:17:42.586Z","per_page":"100"} 
[2026-03-14 22:17:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-019","AZS-140326-018","AZS-140326-017","AZS-140326-016","AZS-140326-015","AZS-140326-014","AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":4,"unique_order_numbers":19} 
[2026-03-14 22:31:35] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T10:31:34.758Z","date_to":"2026-03-14T22:31:34.758Z","per_page":"100"} 
[2026-03-14 22:31:35] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-019","AZS-140326-018","AZS-140326-017","AZS-140326-016","AZS-140326-015","AZS-140326-014","AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":4,"unique_order_numbers":19} 
[2026-03-14 22:31:35] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T10:31:34.742Z","date_to":"2026-03-14T22:31:34.742Z","per_page":"100"} 
[2026-03-14 22:31:35] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-019","AZS-140326-018","AZS-140326-017","AZS-140326-016","AZS-140326-015","AZS-140326-014","AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":4,"unique_order_numbers":19} 
[2026-03-14 22:31:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T10:31:34.742Z","date_to":"2026-03-14T22:31:34.742Z","per_page":"100"} 
[2026-03-14 22:31:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-019","AZS-140326-018","AZS-140326-017","AZS-140326-016","AZS-140326-015","AZS-140326-014","AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":4,"unique_order_numbers":19} 
[2026-03-14 22:32:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6039,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":28885},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28885,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-14 22:32:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6039,"items_count":3} 
[2026-03-14 22:32:49] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28885,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":416,"quantity":2},{"id":null,"menu_item_id":422,"quantity":1}]} 
[2026-03-14 22:32:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6039,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|","416|2|","422|1|"]} 
[2026-03-14 22:32:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6039,"order_number":"AZS-140326-018"} 
[2026-03-14 22:32:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-018","replaced_order_id":6039} 
[2026-03-14 22:32:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6041,"items_count":3,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"},{"menu_item_id":422,"quantity":1,"price":"70.00"}]} 
[2026-03-14 22:32:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6041,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6041}} 
[2026-03-14 22:32:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6041,"item_index":0,"menu_item_id":411} 
[2026-03-14 22:32:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6041,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6041}} 
[2026-03-14 22:32:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6041,"item_index":1,"menu_item_id":416} 
[2026-03-14 22:32:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6041,"item_index":2,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6041}} 
[2026-03-14 22:32:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6041,"item_index":2,"menu_item_id":422} 
[2026-03-14 22:32:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6039,"new_order_id":6041,"order_number":"AZS-140326-018"} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6037,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":28876},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":28877},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":28878},{"menu_item_id":416,"quantity":4,"discount_percent":0,"notes":null,"id":28879},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":28880},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28881},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28882},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28883},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28876,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":28877,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":28878,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":28879,"menu_item_id":416,"quantity":4,"discount_percent":0,"notes":null},{"id":28880,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":28881,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28882,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28883,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6037,"items_count":9} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28876,"menu_item_id":113,"quantity":1},{"id":28877,"menu_item_id":98,"quantity":1},{"id":28878,"menu_item_id":65,"quantity":1},{"id":28879,"menu_item_id":416,"quantity":4},{"id":28880,"menu_item_id":396,"quantity":2},{"id":28881,"menu_item_id":61,"quantity":1},{"id":28882,"menu_item_id":56,"quantity":1},{"id":28883,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1}]} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6037,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["113|1|","98|1|","65|1|","416|4|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["113|1|","98|1|","65|1|","416|4|","396|2|","61|1|","56|1|","5|1|","50|1|"]} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6037,"order_number":"AZS-140326-016"} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-016","replaced_order_id":6037} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6042,"items_count":9,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":416,"quantity":4,"price":"70.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"}]} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6042,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6042}} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6042,"item_index":0,"menu_item_id":113} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6042,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6042}} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6042,"item_index":1,"menu_item_id":98} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6042,"item_index":2,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6042}} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6042,"item_index":2,"menu_item_id":65} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6042,"item_index":3,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6042}} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6042,"item_index":3,"menu_item_id":416} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6042,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6042}} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6042,"item_index":4,"menu_item_id":396} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6042,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6042}} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6042,"item_index":5,"menu_item_id":61} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6042,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6042}} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6042,"item_index":6,"menu_item_id":56} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6042,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6042}} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6042,"item_index":7,"menu_item_id":5} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6042,"item_index":8,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6042}} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6042,"item_index":8,"menu_item_id":50} 
[2026-03-14 22:33:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6037,"new_order_id":6042,"order_number":"AZS-140326-016"} 
[2026-03-14 22:40:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6043,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":28902},{"menu_item_id":416,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":422,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":28902,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":422,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-14 22:40:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6043,"items_count":3} 
[2026-03-14 22:40:23] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28902,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":416,"quantity":4},{"id":null,"menu_item_id":422,"quantity":2}]} 
[2026-03-14 22:40:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6043,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["411|2|"],"new_items_map_keys":["411|2|","416|4|","422|2|"]} 
[2026-03-14 22:40:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6043,"order_number":"AZS-140326-020"} 
[2026-03-14 22:40:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-020","replaced_order_id":6043} 
[2026-03-14 22:40:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6044,"items_count":3,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":416,"quantity":4,"price":"70.00"},{"menu_item_id":422,"quantity":2,"price":"70.00"}]} 
[2026-03-14 22:40:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6044,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6044}} 
[2026-03-14 22:40:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6044,"item_index":0,"menu_item_id":411} 
[2026-03-14 22:40:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6044,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6044}} 
[2026-03-14 22:40:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6044,"item_index":1,"menu_item_id":416} 
[2026-03-14 22:40:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6044,"item_index":2,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6044}} 
[2026-03-14 22:40:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6044,"item_index":2,"menu_item_id":422} 
[2026-03-14 22:40:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6043,"new_order_id":6044,"order_number":"AZS-140326-020"} 
[2026-03-14 22:46:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6040,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":28886},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":28887},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":28888},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28889},{"menu_item_id":416,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":4,"discount_percent":0,"notes":null}],"validated_items":[{"id":28886,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":28887,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":28888,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":28889,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-03-14 22:46:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6040,"items_count":6} 
[2026-03-14 22:46:47] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28886,"menu_item_id":411,"quantity":2},{"id":28887,"menu_item_id":98,"quantity":1},{"id":28888,"menu_item_id":396,"quantity":2},{"id":28889,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":416,"quantity":3},{"id":null,"menu_item_id":6,"quantity":4}]} 
[2026-03-14 22:46:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6040,"has_item_changes":true,"old_items_count":4,"new_items_count":6,"old_items_map_keys":["411|2|","98|1|","396|2|","5|1|"],"new_items_map_keys":["411|2|","98|1|","396|2|","5|1|","416|3|","6|4|"]} 
[2026-03-14 22:46:47] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6040,"order_number":"AZS-140326-019"} 
[2026-03-14 22:46:47] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-019","replaced_order_id":6040} 
[2026-03-14 22:46:47] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6045,"items_count":6,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":416,"quantity":3,"price":"70.00"},{"menu_item_id":6,"quantity":4,"price":"199.00"}]} 
[2026-03-14 22:46:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6045,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6045}} 
[2026-03-14 22:46:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6045,"item_index":0,"menu_item_id":411} 
[2026-03-14 22:46:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6045,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6045}} 
[2026-03-14 22:46:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6045,"item_index":1,"menu_item_id":98} 
[2026-03-14 22:46:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6045,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6045}} 
[2026-03-14 22:46:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6045,"item_index":2,"menu_item_id":396} 
[2026-03-14 22:46:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6045,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6045}} 
[2026-03-14 22:46:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6045,"item_index":3,"menu_item_id":5} 
[2026-03-14 22:46:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6045,"item_index":4,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6045}} 
[2026-03-14 22:46:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6045,"item_index":4,"menu_item_id":416} 
[2026-03-14 22:46:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6045,"item_index":5,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6045}} 
[2026-03-14 22:46:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6045,"item_index":5,"menu_item_id":6} 
[2026-03-14 22:46:47] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6040,"new_order_id":6045,"order_number":"AZS-140326-019"} 
[2026-03-14 22:50:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6041,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":28890},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":28891},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28892}],"validated_items":[{"id":28890,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":28891,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":28892,"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-14 22:50:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6041,"items_count":3} 
[2026-03-14 22:50:49] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28890,"menu_item_id":411,"quantity":1},{"id":28891,"menu_item_id":416,"quantity":2},{"id":28892,"menu_item_id":422,"quantity":1}]} 
[2026-03-14 22:50:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6041,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|1|","416|2|","422|1|"],"new_items_map_keys":["411|1|","416|2|","422|1|"]} 
[2026-03-14 22:50:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6041,"order_number":"AZS-140326-018"} 
[2026-03-14 22:50:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6041,"order_number":"AZS-140326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 22:50:49"} 
[2026-03-14 22:53:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6042,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28893},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28894},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":28895},{"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":28896},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28897},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28898},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28899},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28900},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":28901}],"validated_items":[{"id":28893,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28894,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28895,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":28896,"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":28897,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":28898,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28899,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28900,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28901,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-14 22:53:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6042,"items_count":9} 
[2026-03-14 22:53:36] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28893,"menu_item_id":113,"quantity":1},{"id":28894,"menu_item_id":98,"quantity":1},{"id":28895,"menu_item_id":65,"quantity":1},{"id":28896,"menu_item_id":416,"quantity":4},{"id":28897,"menu_item_id":396,"quantity":2},{"id":28898,"menu_item_id":61,"quantity":1},{"id":28899,"menu_item_id":56,"quantity":1},{"id":28900,"menu_item_id":5,"quantity":1},{"id":28901,"menu_item_id":50,"quantity":1}]} 
[2026-03-14 22:53:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6042,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["113|1|","98|1|","65|1|","416|4|","396|2|","61|1|","56|1|","5|1|","50|1|"],"new_items_map_keys":["113|1|","98|1|","65|1|","416|4|","396|2|","61|1|","56|1|","5|1|","50|1|"]} 
[2026-03-14 22:53:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6042,"order_number":"AZS-140326-016"} 
[2026-03-14 22:53:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6042,"order_number":"AZS-140326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 22:53:36"} 
[2026-03-14 22:57:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6041,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":28890},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null,"id":28891},{"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null,"id":28892},{"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28890,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":28891,"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"id":28892,"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-14 22:57:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6041,"items_count":4} 
[2026-03-14 22:57:16] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28890,"menu_item_id":411,"quantity":1},{"id":28891,"menu_item_id":416,"quantity":2},{"id":28892,"menu_item_id":422,"quantity":1},{"id":null,"menu_item_id":412,"quantity":1}]} 
[2026-03-14 22:57:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6041,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["411|1|","416|2|","422|1|"],"new_items_map_keys":["411|1|","416|2|","422|1|","412|1|"]} 
[2026-03-14 22:57:16] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6041,"order_number":"AZS-140326-018"} 
[2026-03-14 22:57:16] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-018","replaced_order_id":6041} 
[2026-03-14 22:57:16] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6047,"items_count":4,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"},{"menu_item_id":422,"quantity":1,"price":"70.00"},{"menu_item_id":412,"quantity":1,"price":"220.00"}]} 
[2026-03-14 22:57:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6047,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6047}} 
[2026-03-14 22:57:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6047,"item_index":0,"menu_item_id":411} 
[2026-03-14 22:57:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6047,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6047}} 
[2026-03-14 22:57:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6047,"item_index":1,"menu_item_id":416} 
[2026-03-14 22:57:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6047,"item_index":2,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6047}} 
[2026-03-14 22:57:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6047,"item_index":2,"menu_item_id":422} 
[2026-03-14 22:57:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6047,"item_index":3,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":1,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":220.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6047}} 
[2026-03-14 22:57:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6047,"item_index":3,"menu_item_id":412} 
[2026-03-14 22:57:16] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6041,"new_order_id":6047,"order_number":"AZS-140326-018"} 
[2026-03-14 22:57:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6047,"item_index":0,"item_id":28890} 
[2026-03-14 22:57:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6047,"item_index":1,"item_id":28891} 
[2026-03-14 22:57:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6047,"item_index":2,"item_id":28892} 
[2026-03-14 22:57:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6047,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":28890},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":28891},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28892},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-14 22:57:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6047,"items_count":4} 
[2026-03-14 22:57:25] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[28913,28914,28915,28916],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":416,"quantity":2},{"id":null,"menu_item_id":422,"quantity":1},{"id":null,"menu_item_id":412,"quantity":1}]} 
[2026-03-14 22:57:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6047,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|1|","416|2|","422|1|","412|1|"],"new_items_map_keys":["411|1|","416|2|","422|1|","412|1|"]} 
[2026-03-14 22:57:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6047,"order_number":"AZS-140326-018"} 
[2026-03-14 22:57:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6047,"order_number":"AZS-140326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 22:57:25"} 
[2026-03-14 22:58:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6046,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":28912},{"menu_item_id":412,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":28912,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-14 22:58:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6046,"items_count":2} 
[2026-03-14 22:58:04] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28912,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":412,"quantity":2}]} 
[2026-03-14 22:58:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6046,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|2|"],"new_items_map_keys":["411|2|","412|2|"]} 
[2026-03-14 22:58:04] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6046,"order_number":"AZS-140326-021"} 
[2026-03-14 22:58:04] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-021","replaced_order_id":6046} 
[2026-03-14 22:58:04] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6048,"items_count":2,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":412,"quantity":2,"price":"220.00"}]} 
[2026-03-14 22:58:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6048,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6048}} 
[2026-03-14 22:58:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6048,"item_index":0,"menu_item_id":411} 
[2026-03-14 22:58:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6048,"item_index":1,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":2,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":440.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6048}} 
[2026-03-14 22:58:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6048,"item_index":1,"menu_item_id":412} 
[2026-03-14 22:58:04] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6046,"new_order_id":6048,"order_number":"AZS-140326-021"} 
[2026-03-14 23:05:20] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6042,"order_number":"AZS-140326-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 23:05:20"} 
[2026-03-14 23:05:20] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6042,"order_number":"AZS-140326-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 23:05:20"} 
[2026-03-14 23:05:20] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6042,"order_number":"AZS-140326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 23:05:20"} 
[2026-03-14 23:05:20] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6042,"order_number":"AZS-140326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 23:05:20"} 
[2026-03-14 23:05:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6042,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28893},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28894},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":28895},{"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":28896},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28897},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28898},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28899},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28900},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":28901}],"validated_items":[{"id":28893,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28894,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28895,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":28896,"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":28897,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":28898,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28899,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":28900,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28901,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:05:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6042,"items_count":9} 
[2026-03-14 23:05:20] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28893,"menu_item_id":113,"quantity":1},{"id":28894,"menu_item_id":98,"quantity":1},{"id":28895,"menu_item_id":65,"quantity":1},{"id":28896,"menu_item_id":416,"quantity":4},{"id":28897,"menu_item_id":396,"quantity":2},{"id":28898,"menu_item_id":61,"quantity":1},{"id":28899,"menu_item_id":56,"quantity":1},{"id":28900,"menu_item_id":5,"quantity":1},{"id":28901,"menu_item_id":50,"quantity":1}]} 
[2026-03-14 23:05:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6042,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["113|1|","98|1|","65|1|","416|4|","396|2|","61|1|","56|1|","5|1|","50|1|"],"new_items_map_keys":["113|1|","98|1|","65|1|","416|4|","396|2|","61|1|","56|1|","5|1|","50|1|"]} 
[2026-03-14 23:05:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6042,"order_number":"AZS-140326-016"} 
[2026-03-14 23:05:20] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6042,"order_number":"AZS-140326-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-14 23:05:20","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-14 23:05:20"} 
[2026-03-14 23:05:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6042,"order_number":"AZS-140326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-14 23:05:20"} 
[2026-03-14 23:05:20] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6042,"order_number":"AZS-140326-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-14 23:05:20","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5200.00","database_verification_match":true,"timestamp":"2026-03-14 23:05:20"} 
[2026-03-14 23:05:47] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6047,"order_number":"AZS-140326-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1030,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 23:05:47"} 
[2026-03-14 23:05:47] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6047,"order_number":"AZS-140326-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1030,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 23:05:47"} 
[2026-03-14 23:05:47] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6047,"order_number":"AZS-140326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1030,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 23:05:47"} 
[2026-03-14 23:05:47] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6047,"order_number":"AZS-140326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1030,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 23:05:47"} 
[2026-03-14 23:05:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6047,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":28913},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":28914},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28915},{"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null,"id":28916}],"validated_items":[{"id":28913,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":28914,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":28915,"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":28916,"menu_item_id":412,"quantity":1,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:05:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6047,"items_count":4} 
[2026-03-14 23:05:47] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28913,"menu_item_id":411,"quantity":1},{"id":28914,"menu_item_id":416,"quantity":2},{"id":28915,"menu_item_id":422,"quantity":1},{"id":28916,"menu_item_id":412,"quantity":1}]} 
[2026-03-14 23:05:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6047,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|1|","416|2|","422|1|","412|1|"],"new_items_map_keys":["411|1|","416|2|","422|1|","412|1|"]} 
[2026-03-14 23:05:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6047,"order_number":"AZS-140326-018"} 
[2026-03-14 23:05:47] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6047,"order_number":"AZS-140326-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1030,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-14 23:05:47","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-14 23:05:47"} 
[2026-03-14 23:05:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6047,"order_number":"AZS-140326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-14 23:05:47"} 
[2026-03-14 23:05:47] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6047,"order_number":"AZS-140326-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1030.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-14 23:05:47","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1030,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1030.00","database_verification_match":true,"timestamp":"2026-03-14 23:05:47"} 
[2026-03-14 23:07:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6048,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":28917},{"menu_item_id":412,"quantity":2,"discount_percent":0,"notes":null,"id":28918},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28917,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":28918,"menu_item_id":412,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:07:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6048,"items_count":3} 
[2026-03-14 23:07:14] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28917,"menu_item_id":411,"quantity":2},{"id":28918,"menu_item_id":412,"quantity":2},{"id":null,"menu_item_id":416,"quantity":1}]} 
[2026-03-14 23:07:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6048,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["411|2|","412|2|"],"new_items_map_keys":["411|2|","412|2|","416|1|"]} 
[2026-03-14 23:07:14] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6048,"order_number":"AZS-140326-021"} 
[2026-03-14 23:07:14] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-021","replaced_order_id":6048} 
[2026-03-14 23:07:14] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6049,"items_count":3,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":412,"quantity":2,"price":"220.00"},{"menu_item_id":416,"quantity":1,"price":"70.00"}]} 
[2026-03-14 23:07:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6049,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6049}} 
[2026-03-14 23:07:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6049,"item_index":0,"menu_item_id":411} 
[2026-03-14 23:07:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6049,"item_index":1,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":2,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":440.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6049}} 
[2026-03-14 23:07:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6049,"item_index":1,"menu_item_id":412} 
[2026-03-14 23:07:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6049,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6049}} 
[2026-03-14 23:07:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6049,"item_index":2,"menu_item_id":416} 
[2026-03-14 23:07:14] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6048,"new_order_id":6049,"order_number":"AZS-140326-021"} 
[2026-03-14 23:08:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6049,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":28919},{"menu_item_id":412,"quantity":2,"discount_percent":0,"notes":null,"id":28920},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null,"id":28921}],"validated_items":[{"id":28919,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":28920,"menu_item_id":412,"quantity":2,"discount_percent":0,"notes":null},{"id":28921,"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:08:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6049,"items_count":3} 
[2026-03-14 23:08:31] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28919,"menu_item_id":411,"quantity":2},{"id":28920,"menu_item_id":412,"quantity":2},{"id":28921,"menu_item_id":416,"quantity":2}]} 
[2026-03-14 23:08:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6049,"has_item_changes":true,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|2|","412|2|","416|1|"],"new_items_map_keys":["411|2|","412|2|","416|2|"]} 
[2026-03-14 23:08:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6049,"order_number":"AZS-140326-021"} 
[2026-03-14 23:08:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-021","replaced_order_id":6049} 
[2026-03-14 23:08:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6050,"items_count":3,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":412,"quantity":2,"price":"220.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"}]} 
[2026-03-14 23:08:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6050,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6050}} 
[2026-03-14 23:08:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6050,"item_index":0,"menu_item_id":411} 
[2026-03-14 23:08:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6050,"item_index":1,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":2,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":440.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6050}} 
[2026-03-14 23:08:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6050,"item_index":1,"menu_item_id":412} 
[2026-03-14 23:08:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6050,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6050}} 
[2026-03-14 23:08:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6050,"item_index":2,"menu_item_id":416} 
[2026-03-14 23:08:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6049,"new_order_id":6050,"order_number":"AZS-140326-021"} 
[2026-03-14 23:09:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T11:09:28.825Z","date_to":"2026-03-14T23:09:28.825Z","per_page":"100"} 
[2026-03-14 23:09:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T11:09:28.809Z","date_to":"2026-03-14T23:09:28.809Z","per_page":"100"} 
[2026-03-14 23:09:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-021","AZS-140326-020","AZS-140326-019","AZS-140326-018","AZS-140326-017","AZS-140326-016","AZS-140326-015","AZS-140326-014","AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-14 23:09:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-021","AZS-140326-020","AZS-140326-019","AZS-140326-018","AZS-140326-017","AZS-140326-016","AZS-140326-015","AZS-140326-014","AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-14 23:09:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T11:09:28.809Z","date_to":"2026-03-14T23:09:28.809Z","per_page":"100"} 
[2026-03-14 23:09:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-021","AZS-140326-020","AZS-140326-019","AZS-140326-018","AZS-140326-017","AZS-140326-016","AZS-140326-015","AZS-140326-014","AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-14 23:10:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6045,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":28906},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28907},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28908},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28909},{"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":28910},{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":28911}],"validated_items":[{"id":28906,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":28907,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28908,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":28909,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28910,"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":28911,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:10:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6045,"items_count":6} 
[2026-03-14 23:10:44] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28906,"menu_item_id":411,"quantity":2},{"id":28907,"menu_item_id":98,"quantity":1},{"id":28908,"menu_item_id":396,"quantity":2},{"id":28909,"menu_item_id":5,"quantity":1},{"id":28910,"menu_item_id":416,"quantity":3},{"id":28911,"menu_item_id":6,"quantity":4}]} 
[2026-03-14 23:10:44] local.INFO: PosOrderController::update - Item changes check {"order_id":6045,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["411|2|","98|1|","396|2|","5|1|","416|3|","6|4|"],"new_items_map_keys":["411|2|","98|1|","396|2|","5|1|","416|3|","6|4|"]} 
[2026-03-14 23:10:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6045,"order_number":"AZS-140326-019"} 
[2026-03-14 23:10:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6045,"order_number":"AZS-140326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 23:10:44"} 
[2026-03-14 23:12:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6045,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":28906},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28907},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28908},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28909},{"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":28910},{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":28911}],"validated_items":[{"id":28906,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":28907,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28908,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":28909,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28910,"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":28911,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:12:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6045,"items_count":6} 
[2026-03-14 23:12:07] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28906,"menu_item_id":411,"quantity":2},{"id":28907,"menu_item_id":98,"quantity":1},{"id":28908,"menu_item_id":396,"quantity":2},{"id":28909,"menu_item_id":5,"quantity":1},{"id":28910,"menu_item_id":416,"quantity":3},{"id":28911,"menu_item_id":6,"quantity":4}]} 
[2026-03-14 23:12:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6045,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["411|2|","98|1|","396|2|","5|1|","416|3|","6|4|"],"new_items_map_keys":["411|2|","98|1|","396|2|","5|1|","416|3|","6|4|"]} 
[2026-03-14 23:12:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6045,"order_number":"AZS-140326-019"} 
[2026-03-14 23:12:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6045,"order_number":"AZS-140326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 23:12:07"} 
[2026-03-14 23:12:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6050,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":28922},{"menu_item_id":412,"quantity":2,"discount_percent":0,"notes":null,"id":28923},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null,"id":28924},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28922,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":28923,"menu_item_id":412,"quantity":2,"discount_percent":0,"notes":null},{"id":28924,"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:12:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6050,"items_count":4} 
[2026-03-14 23:12:21] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28922,"menu_item_id":411,"quantity":2},{"id":28923,"menu_item_id":412,"quantity":2},{"id":28924,"menu_item_id":416,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-14 23:12:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6050,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["411|2|","412|2|","416|2|"],"new_items_map_keys":["411|2|","412|2|","416|2|","5|1|"]} 
[2026-03-14 23:12:21] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6050,"order_number":"AZS-140326-021"} 
[2026-03-14 23:12:21] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-021","replaced_order_id":6050} 
[2026-03-14 23:12:21] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6052,"items_count":4,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":412,"quantity":2,"price":"220.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-14 23:12:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6052,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6052}} 
[2026-03-14 23:12:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6052,"item_index":0,"menu_item_id":411} 
[2026-03-14 23:12:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6052,"item_index":1,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":2,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":440.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6052}} 
[2026-03-14 23:12:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6052,"item_index":1,"menu_item_id":412} 
[2026-03-14 23:12:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6052,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6052}} 
[2026-03-14 23:12:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6052,"item_index":2,"menu_item_id":416} 
[2026-03-14 23:12:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6052,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6052}} 
[2026-03-14 23:12:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6052,"item_index":3,"menu_item_id":5} 
[2026-03-14 23:12:21] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6050,"new_order_id":6052,"order_number":"AZS-140326-021"} 
[2026-03-14 23:17:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6044,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":28903},{"menu_item_id":416,"quantity":4,"discount_percent":0,"notes":null,"id":28904},{"menu_item_id":422,"quantity":2,"discount_percent":0,"notes":null,"id":28905},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":28903,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":28904,"menu_item_id":416,"quantity":4,"discount_percent":0,"notes":null},{"id":28905,"menu_item_id":422,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:17:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6044,"items_count":4} 
[2026-03-14 23:17:14] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28903,"menu_item_id":411,"quantity":2},{"id":28904,"menu_item_id":416,"quantity":4},{"id":28905,"menu_item_id":422,"quantity":2},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-03-14 23:17:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6044,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["411|2|","416|4|","422|2|"],"new_items_map_keys":["411|2|","416|4|","422|2|","6|2|"]} 
[2026-03-14 23:17:14] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6044,"order_number":"AZS-140326-020"} 
[2026-03-14 23:17:14] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-020","replaced_order_id":6044} 
[2026-03-14 23:17:14] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6053,"items_count":4,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":416,"quantity":4,"price":"70.00"},{"menu_item_id":422,"quantity":2,"price":"70.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-03-14 23:17:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6053,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6053}} 
[2026-03-14 23:17:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6053,"item_index":0,"menu_item_id":411} 
[2026-03-14 23:17:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6053,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6053}} 
[2026-03-14 23:17:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6053,"item_index":1,"menu_item_id":416} 
[2026-03-14 23:17:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6053,"item_index":2,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6053}} 
[2026-03-14 23:17:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6053,"item_index":2,"menu_item_id":422} 
[2026-03-14 23:17:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6053,"item_index":3,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6053}} 
[2026-03-14 23:17:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6053,"item_index":3,"menu_item_id":6} 
[2026-03-14 23:17:14] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6044,"new_order_id":6053,"order_number":"AZS-140326-020"} 
[2026-03-14 23:20:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6052,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":28928},{"menu_item_id":412,"quantity":2,"discount_percent":0,"notes":null,"id":28929},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null,"id":28930},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28931},{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":28928,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":28929,"menu_item_id":412,"quantity":2,"discount_percent":0,"notes":null},{"id":28930,"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"id":28931,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:20:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6052,"items_count":5} 
[2026-03-14 23:20:28] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28928,"menu_item_id":411,"quantity":2},{"id":28929,"menu_item_id":412,"quantity":2},{"id":28930,"menu_item_id":416,"quantity":2},{"id":28931,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":6,"quantity":3}]} 
[2026-03-14 23:20:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6052,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["411|2|","412|2|","416|2|","5|1|"],"new_items_map_keys":["411|2|","412|2|","416|2|","5|1|","6|3|"]} 
[2026-03-14 23:20:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6052,"order_number":"AZS-140326-021"} 
[2026-03-14 23:20:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-021","replaced_order_id":6052} 
[2026-03-14 23:20:28] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6054,"items_count":5,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":412,"quantity":2,"price":"220.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":6,"quantity":3,"price":"199.00"}]} 
[2026-03-14 23:20:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6054,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6054}} 
[2026-03-14 23:20:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6054,"item_index":0,"menu_item_id":411} 
[2026-03-14 23:20:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6054,"item_index":1,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":2,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":440.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6054}} 
[2026-03-14 23:20:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6054,"item_index":1,"menu_item_id":412} 
[2026-03-14 23:20:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6054,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6054}} 
[2026-03-14 23:20:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6054,"item_index":2,"menu_item_id":416} 
[2026-03-14 23:20:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6054,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6054}} 
[2026-03-14 23:20:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6054,"item_index":3,"menu_item_id":5} 
[2026-03-14 23:20:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6054,"item_index":4,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6054}} 
[2026-03-14 23:20:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6054,"item_index":4,"menu_item_id":6} 
[2026-03-14 23:20:28] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6052,"new_order_id":6054,"order_number":"AZS-140326-021"} 
[2026-03-14 23:20:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6051,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":28925},{"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null,"id":28926},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null,"id":28927},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28925,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":28926,"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null},{"id":28927,"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:20:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6051,"items_count":4} 
[2026-03-14 23:20:43] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28925,"menu_item_id":411,"quantity":1},{"id":28926,"menu_item_id":422,"quantity":1},{"id":28927,"menu_item_id":416,"quantity":1},{"id":null,"menu_item_id":425,"quantity":1}]} 
[2026-03-14 23:20:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6051,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["411|1|","422|1|","416|1|"],"new_items_map_keys":["411|1|","422|1|","416|1|","425|1|"]} 
[2026-03-14 23:20:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6051,"order_number":"AZS-140326-022"} 
[2026-03-14 23:20:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-022","replaced_order_id":6051} 
[2026-03-14 23:20:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6055,"items_count":4,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":422,"quantity":1,"price":"70.00"},{"menu_item_id":416,"quantity":1,"price":"70.00"},{"menu_item_id":425,"quantity":1,"price":"99.00"}]} 
[2026-03-14 23:20:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6055,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6055}} 
[2026-03-14 23:20:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6055,"item_index":0,"menu_item_id":411} 
[2026-03-14 23:20:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6055,"item_index":1,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6055}} 
[2026-03-14 23:20:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6055,"item_index":1,"menu_item_id":422} 
[2026-03-14 23:20:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6055,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6055}} 
[2026-03-14 23:20:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6055,"item_index":2,"menu_item_id":416} 
[2026-03-14 23:20:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6055,"item_index":3,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6055}} 
[2026-03-14 23:20:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6055,"item_index":3,"menu_item_id":425} 
[2026-03-14 23:20:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6051,"new_order_id":6055,"order_number":"AZS-140326-022"} 
[2026-03-14 23:21:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6055,"item_index":0,"item_id":28925} 
[2026-03-14 23:21:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6055,"item_index":1,"item_id":28926} 
[2026-03-14 23:21:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6055,"item_index":2,"item_id":28927} 
[2026-03-14 23:21:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":4,"order_id":6055,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":28925},{"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null,"id":28926},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null,"id":28927},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":421,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":421,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:21:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6055,"items_count":5} 
[2026-03-14 23:21:14] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":4,"items_to_remove":[28941,28942,28943,28944],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":422,"quantity":1},{"id":null,"menu_item_id":416,"quantity":2},{"id":null,"menu_item_id":425,"quantity":1},{"id":null,"menu_item_id":421,"quantity":1}]} 
[2026-03-14 23:21:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6055,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["411|1|","422|1|","416|1|","425|1|"],"new_items_map_keys":["411|1|","422|1|","416|2|","425|1|","421|1|"]} 
[2026-03-14 23:21:14] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6055,"order_number":"AZS-140326-022"} 
[2026-03-14 23:21:14] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-022","replaced_order_id":6055} 
[2026-03-14 23:21:14] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6056,"items_count":5,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":422,"quantity":1,"price":"70.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"},{"menu_item_id":425,"quantity":1,"price":"99.00"},{"menu_item_id":421,"quantity":1,"price":"70.00"}]} 
[2026-03-14 23:21:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6056,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6056}} 
[2026-03-14 23:21:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6056,"item_index":0,"menu_item_id":411} 
[2026-03-14 23:21:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6056,"item_index":1,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6056}} 
[2026-03-14 23:21:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6056,"item_index":1,"menu_item_id":422} 
[2026-03-14 23:21:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6056,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6056}} 
[2026-03-14 23:21:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6056,"item_index":2,"menu_item_id":416} 
[2026-03-14 23:21:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6056,"item_index":3,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6056}} 
[2026-03-14 23:21:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6056,"item_index":3,"menu_item_id":425} 
[2026-03-14 23:21:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6056,"item_index":4,"item_data":{"menu_item_id":421,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Omlate","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6056}} 
[2026-03-14 23:21:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6056,"item_index":4,"menu_item_id":421} 
[2026-03-14 23:21:14] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6055,"new_order_id":6056,"order_number":"AZS-140326-022"} 
[2026-03-14 23:23:25] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6045,"order_number":"AZS-140326-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 23:23:25"} 
[2026-03-14 23:23:25] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6045,"order_number":"AZS-140326-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 23:23:25"} 
[2026-03-14 23:23:25] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6045,"order_number":"AZS-140326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 23:23:25"} 
[2026-03-14 23:23:25] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6045,"order_number":"AZS-140326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 23:23:25"} 
[2026-03-14 23:23:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6045,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":28906},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28907},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":28908},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28909},{"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":28910},{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":28911}],"validated_items":[{"id":28906,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":28907,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28908,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":28909,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28910,"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":28911,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:23:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6045,"items_count":6} 
[2026-03-14 23:23:25] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28906,"menu_item_id":411,"quantity":2},{"id":28907,"menu_item_id":98,"quantity":1},{"id":28908,"menu_item_id":396,"quantity":2},{"id":28909,"menu_item_id":5,"quantity":1},{"id":28910,"menu_item_id":416,"quantity":3},{"id":28911,"menu_item_id":6,"quantity":4}]} 
[2026-03-14 23:23:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6045,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["411|2|","98|1|","396|2|","5|1|","416|3|","6|4|"],"new_items_map_keys":["411|2|","98|1|","396|2|","5|1|","416|3|","6|4|"]} 
[2026-03-14 23:23:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6045,"order_number":"AZS-140326-019"} 
[2026-03-14 23:23:25] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6045,"order_number":"AZS-140326-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-14 23:23:25","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-14 23:23:25"} 
[2026-03-14 23:23:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6045,"order_number":"AZS-140326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-14 23:23:25"} 
[2026-03-14 23:23:25] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6045,"order_number":"AZS-140326-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-14 23:23:25","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-14 23:23:25"} 
[2026-03-14 23:24:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6054,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":28936},{"menu_item_id":412,"quantity":2,"price":220,"discount_percent":0,"notes":null,"id":28937},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":28938},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28939},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":28940}],"validated_items":[{"id":28936,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":28937,"menu_item_id":412,"quantity":2,"price":220,"discount_percent":0,"notes":null},{"id":28938,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":28939,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28940,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:24:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6054,"items_count":5} 
[2026-03-14 23:24:14] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28936,"menu_item_id":411,"quantity":2},{"id":28937,"menu_item_id":412,"quantity":2},{"id":28938,"menu_item_id":416,"quantity":2},{"id":28939,"menu_item_id":5,"quantity":1},{"id":28940,"menu_item_id":6,"quantity":3}]} 
[2026-03-14 23:24:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6054,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|2|","412|2|","416|2|","5|1|","6|3|"],"new_items_map_keys":["411|2|","412|2|","416|2|","5|1|","6|3|"]} 
[2026-03-14 23:24:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6054,"order_number":"AZS-140326-021"} 
[2026-03-14 23:24:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6054,"order_number":"AZS-140326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 23:24:14"} 
[2026-03-14 23:27:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T11:27:01.468Z","date_to":"2026-03-14T23:27:01.468Z","per_page":"100"} 
[2026-03-14 23:27:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T11:27:01.490Z","date_to":"2026-03-14T23:27:01.490Z","per_page":"100"} 
[2026-03-14 23:27:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-022","AZS-140326-021","AZS-140326-020","AZS-140326-019","AZS-140326-018","AZS-140326-017","AZS-140326-016","AZS-140326-015","AZS-140326-014","AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":4,"unique_order_numbers":22} 
[2026-03-14 23:27:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-022","AZS-140326-021","AZS-140326-020","AZS-140326-019","AZS-140326-018","AZS-140326-017","AZS-140326-016","AZS-140326-015","AZS-140326-014","AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":4,"unique_order_numbers":22} 
[2026-03-14 23:27:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T11:27:01.468Z","date_to":"2026-03-14T23:27:01.468Z","per_page":"100"} 
[2026-03-14 23:27:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-022","AZS-140326-021","AZS-140326-020","AZS-140326-019","AZS-140326-018","AZS-140326-017","AZS-140326-016","AZS-140326-015","AZS-140326-014","AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":4,"unique_order_numbers":22} 
[2026-03-14 23:31:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6057,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":28950},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":28950,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:31:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6057,"items_count":2} 
[2026-03-14 23:31:17] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28950,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-03-14 23:31:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6057,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|2|"],"new_items_map_keys":["411|2|","13|2|"]} 
[2026-03-14 23:31:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6057,"order_number":"AZS-140326-023"} 
[2026-03-14 23:31:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-023","replaced_order_id":6057} 
[2026-03-14 23:31:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6058,"items_count":2,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"}]} 
[2026-03-14 23:31:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6058,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6058}} 
[2026-03-14 23:31:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6058,"item_index":0,"menu_item_id":411} 
[2026-03-14 23:31:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6058,"item_index":1,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6058}} 
[2026-03-14 23:31:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6058,"item_index":1,"menu_item_id":13} 
[2026-03-14 23:31:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6057,"new_order_id":6058,"order_number":"AZS-140326-023"} 
[2026-03-14 23:31:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6058,"item_index":0,"item_id":28950} 
[2026-03-14 23:31:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":6058,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":28950},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:31:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6058,"items_count":2} 
[2026-03-14 23:31:23] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[28951,28952],"items":[{"id":null,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-03-14 23:31:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6058,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|2|","13|2|"],"new_items_map_keys":["411|2|","13|2|"]} 
[2026-03-14 23:31:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6058,"order_number":"AZS-140326-023"} 
[2026-03-14 23:31:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6058,"order_number":"AZS-140326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-14 23:31:23"} 
[2026-03-14 23:31:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6054,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":28936},{"menu_item_id":412,"quantity":2,"price":220,"discount_percent":0,"notes":null,"id":28937},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":28938},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28939},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":28940}],"validated_items":[{"id":28936,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":28937,"menu_item_id":412,"quantity":2,"price":220,"discount_percent":0,"notes":null},{"id":28938,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":28939,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28940,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:31:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6054,"items_count":5} 
[2026-03-14 23:31:39] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28936,"menu_item_id":411,"quantity":2},{"id":28937,"menu_item_id":412,"quantity":2},{"id":28938,"menu_item_id":416,"quantity":2},{"id":28939,"menu_item_id":5,"quantity":1},{"id":28940,"menu_item_id":6,"quantity":3}]} 
[2026-03-14 23:31:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6054,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|2|","412|2|","416|2|","5|1|","6|3|"],"new_items_map_keys":["411|2|","412|2|","416|2|","5|1|","6|3|"]} 
[2026-03-14 23:31:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6054,"order_number":"AZS-140326-021"} 
[2026-03-14 23:31:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6054,"order_number":"AZS-140326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 23:31:39"} 
[2026-03-14 23:32:24] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6054,"order_number":"AZS-140326-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 23:32:24"} 
[2026-03-14 23:32:24] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6054,"order_number":"AZS-140326-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 23:32:24"} 
[2026-03-14 23:32:24] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6054,"order_number":"AZS-140326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 23:32:24"} 
[2026-03-14 23:32:24] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6054,"order_number":"AZS-140326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 23:32:24"} 
[2026-03-14 23:32:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6054,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":28936},{"menu_item_id":412,"quantity":2,"price":220,"discount_percent":0,"notes":null,"id":28937},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":28938},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28939},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28940}],"validated_items":[{"id":28936,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":28937,"menu_item_id":412,"quantity":2,"price":220,"discount_percent":0,"notes":null},{"id":28938,"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":28939,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":28940,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:32:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6054,"items_count":5} 
[2026-03-14 23:32:24] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28936,"menu_item_id":411,"quantity":2},{"id":28937,"menu_item_id":412,"quantity":2},{"id":28938,"menu_item_id":416,"quantity":2},{"id":28939,"menu_item_id":5,"quantity":1},{"id":28940,"menu_item_id":6,"quantity":2}]} 
[2026-03-14 23:32:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6054,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|2|","412|2|","416|2|","5|1|","6|3|"],"new_items_map_keys":["411|2|","412|2|","416|2|","5|1|","6|2|"]} 
[2026-03-14 23:32:24] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6054,"order_number":"AZS-140326-021","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-14 23:32:24","original_payment_amount":"0.00","grand_total":2346.0,"timestamp":"2026-03-14 23:32:24"} 
[2026-03-14 23:32:24] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6054,"order_number":"AZS-140326-021"} 
[2026-03-14 23:32:24] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-021","replaced_order_id":6054} 
[2026-03-14 23:32:24] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6054,"new_order_id":6059,"order_number":"AZS-140326-021","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-14 23:32:24","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-14 23:32:24"} 
[2026-03-14 23:32:24] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6059,"items_count":5,"items":[{"menu_item_id":411,"quantity":2,"price":599.0},{"menu_item_id":412,"quantity":2,"price":220.0},{"menu_item_id":416,"quantity":2,"price":70.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":6,"quantity":2,"price":199.0}]} 
[2026-03-14 23:32:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6059,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":599.0,"discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6059}} 
[2026-03-14 23:32:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6059,"item_index":0,"menu_item_id":411} 
[2026-03-14 23:32:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6059,"item_index":1,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":2,"price":220.0,"discount_percent":0.0,"discount_amount":0.0,"total":440.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6059}} 
[2026-03-14 23:32:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6059,"item_index":1,"menu_item_id":412} 
[2026-03-14 23:32:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6059,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6059}} 
[2026-03-14 23:32:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6059,"item_index":2,"menu_item_id":416} 
[2026-03-14 23:32:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6059,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6059}} 
[2026-03-14 23:32:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6059,"item_index":3,"menu_item_id":5} 
[2026-03-14 23:32:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6059,"item_index":4,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6059}} 
[2026-03-14 23:32:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6059,"item_index":4,"menu_item_id":6} 
[2026-03-14 23:32:24] local.ERROR: Error tracking recipe usage for order 6059: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6059, 6, 177, 1, 666, 0.00, Order #AZS-140326-021 - 2x Karak Tea, 2026-03-14 23:32:24, 2026-03-14 23:32:24))  
[2026-03-14 23:32:24] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6054,"new_order_id":6059,"order_number":"AZS-140326-021"} 
[2026-03-14 23:32:25] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6054,"new_order_id":6059,"order_number":"AZS-140326-021","route":"api/orders/6054"} 
[2026-03-14 23:33:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6056,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":28945},{"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null,"id":28946},{"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null,"id":28947},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null,"id":28948},{"menu_item_id":421,"quantity":1,"discount_percent":0,"notes":null,"id":28949},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28945,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":28946,"menu_item_id":422,"quantity":1,"discount_percent":0,"notes":null},{"id":28947,"menu_item_id":416,"quantity":2,"discount_percent":0,"notes":null},{"id":28948,"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"id":28949,"menu_item_id":421,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:33:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6056,"items_count":6} 
[2026-03-14 23:33:19] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28945,"menu_item_id":411,"quantity":1},{"id":28946,"menu_item_id":422,"quantity":1},{"id":28947,"menu_item_id":416,"quantity":2},{"id":28948,"menu_item_id":425,"quantity":1},{"id":28949,"menu_item_id":421,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-14 23:33:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6056,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["411|1|","422|1|","416|2|","425|1|","421|1|"],"new_items_map_keys":["411|1|","422|1|","416|2|","425|1|","421|1|","5|1|"]} 
[2026-03-14 23:33:19] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6056,"order_number":"AZS-140326-022"} 
[2026-03-14 23:33:19] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-022","replaced_order_id":6056} 
[2026-03-14 23:33:19] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6060,"items_count":6,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":422,"quantity":1,"price":"70.00"},{"menu_item_id":416,"quantity":2,"price":"70.00"},{"menu_item_id":425,"quantity":1,"price":"99.00"},{"menu_item_id":421,"quantity":1,"price":"70.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-14 23:33:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6060,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6060}} 
[2026-03-14 23:33:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6060,"item_index":0,"menu_item_id":411} 
[2026-03-14 23:33:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6060,"item_index":1,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6060}} 
[2026-03-14 23:33:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6060,"item_index":1,"menu_item_id":422} 
[2026-03-14 23:33:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6060,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6060}} 
[2026-03-14 23:33:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6060,"item_index":2,"menu_item_id":416} 
[2026-03-14 23:33:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6060,"item_index":3,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6060}} 
[2026-03-14 23:33:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6060,"item_index":3,"menu_item_id":425} 
[2026-03-14 23:33:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6060,"item_index":4,"item_data":{"menu_item_id":421,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Omlate","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6060}} 
[2026-03-14 23:33:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6060,"item_index":4,"menu_item_id":421} 
[2026-03-14 23:33:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6060,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6060}} 
[2026-03-14 23:33:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6060,"item_index":5,"menu_item_id":5} 
[2026-03-14 23:33:19] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6056,"new_order_id":6060,"order_number":"AZS-140326-022"} 
[2026-03-14 23:33:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6060,"item_index":0,"item_id":28945} 
[2026-03-14 23:33:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6060,"item_index":1,"item_id":28946} 
[2026-03-14 23:33:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6060,"item_index":2,"item_id":28947} 
[2026-03-14 23:33:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6060,"item_index":3,"item_id":28948} 
[2026-03-14 23:33:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6060,"item_index":4,"item_id":28949} 
[2026-03-14 23:33:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6060,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":28945},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28946},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":28947},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28948},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28949},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:33:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6060,"items_count":6} 
[2026-03-14 23:33:29] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[28958,28959,28960,28961,28962,28963],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":422,"quantity":1},{"id":null,"menu_item_id":416,"quantity":2},{"id":null,"menu_item_id":425,"quantity":1},{"id":null,"menu_item_id":421,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-14 23:33:30] local.INFO: PosOrderController::update - Item changes check {"order_id":6060,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["411|1|","422|1|","416|2|","425|1|","421|1|","5|1|"],"new_items_map_keys":["411|1|","422|1|","416|2|","425|1|","421|1|","5|1|"]} 
[2026-03-14 23:33:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6060,"order_number":"AZS-140326-022"} 
[2026-03-14 23:33:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6060,"order_number":"AZS-140326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 23:33:30"} 
[2026-03-14 23:35:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6060,"item_index":0,"item_id":28945} 
[2026-03-14 23:35:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6060,"item_index":1,"item_id":28946} 
[2026-03-14 23:35:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6060,"item_index":2,"item_id":28947} 
[2026-03-14 23:35:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6060,"item_index":3,"item_id":28948} 
[2026-03-14 23:35:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6060,"item_index":4,"item_id":28949} 
[2026-03-14 23:35:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6060,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":28945},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28946},{"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":28947},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28948},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28949},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:35:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6060,"items_count":6} 
[2026-03-14 23:35:39] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[28958,28959,28960,28961,28962,28963],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":422,"quantity":1},{"id":null,"menu_item_id":416,"quantity":3},{"id":null,"menu_item_id":425,"quantity":1},{"id":null,"menu_item_id":421,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-14 23:35:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6060,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["411|1|","422|1|","416|2|","425|1|","421|1|","5|1|"],"new_items_map_keys":["411|1|","422|1|","416|3|","425|1|","421|1|","5|1|"]} 
[2026-03-14 23:35:39] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6060,"order_number":"AZS-140326-022"} 
[2026-03-14 23:35:39] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-022","replaced_order_id":6060} 
[2026-03-14 23:35:39] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6061,"items_count":6,"items":[{"menu_item_id":411,"quantity":1,"price":599.0},{"menu_item_id":422,"quantity":1,"price":70.0},{"menu_item_id":416,"quantity":3,"price":70.0},{"menu_item_id":425,"quantity":1,"price":99.0},{"menu_item_id":421,"quantity":1,"price":70.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-03-14 23:35:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6061,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":599.0,"discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6061}} 
[2026-03-14 23:35:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6061,"item_index":0,"menu_item_id":411} 
[2026-03-14 23:35:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6061,"item_index":1,"item_data":{"menu_item_id":422,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Fry","quantity":1,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6061}} 
[2026-03-14 23:35:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6061,"item_index":1,"menu_item_id":422} 
[2026-03-14 23:35:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6061,"item_index":2,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":3,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6061}} 
[2026-03-14 23:35:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6061,"item_index":2,"menu_item_id":416} 
[2026-03-14 23:35:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6061,"item_index":3,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6061}} 
[2026-03-14 23:35:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6061,"item_index":3,"menu_item_id":425} 
[2026-03-14 23:35:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6061,"item_index":4,"item_data":{"menu_item_id":421,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Omlate","quantity":1,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6061}} 
[2026-03-14 23:35:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6061,"item_index":4,"menu_item_id":421} 
[2026-03-14 23:35:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6061,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6061}} 
[2026-03-14 23:35:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6061,"item_index":5,"menu_item_id":5} 
[2026-03-14 23:35:39] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6060,"new_order_id":6061,"order_number":"AZS-140326-022"} 
[2026-03-14 23:35:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6061,"item_index":0,"item_id":28945} 
[2026-03-14 23:35:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6061,"item_index":1,"item_id":28946} 
[2026-03-14 23:35:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6061,"item_index":2,"item_id":28947} 
[2026-03-14 23:35:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6061,"item_index":3,"item_id":28948} 
[2026-03-14 23:35:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6061,"item_index":4,"item_id":28949} 
[2026-03-14 23:35:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6061,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":28945},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28946},{"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":28947},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28948},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28949},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:35:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6061,"items_count":6} 
[2026-03-14 23:35:53] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[28964,28965,28966,28967,28968,28969],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":422,"quantity":1},{"id":null,"menu_item_id":416,"quantity":3},{"id":null,"menu_item_id":425,"quantity":1},{"id":null,"menu_item_id":421,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-14 23:35:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6061,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["411|1|","422|1|","416|3|","425|1|","421|1|","5|1|"],"new_items_map_keys":["411|1|","422|1|","416|3|","425|1|","421|1|","5|1|"]} 
[2026-03-14 23:35:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6061,"order_number":"AZS-140326-022"} 
[2026-03-14 23:35:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6061,"order_number":"AZS-140326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 23:35:53"} 
[2026-03-14 23:39:32] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6038,"order_number":"AZS-140326-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 23:39:32"} 
[2026-03-14 23:39:32] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6038,"order_number":"AZS-140326-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 23:39:32"} 
[2026-03-14 23:39:32] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6038,"order_number":"AZS-140326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 23:39:32"} 
[2026-03-14 23:39:32] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6038,"order_number":"AZS-140326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 23:39:32"} 
[2026-03-14 23:39:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6038,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28884}],"validated_items":[{"id":28884,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:39:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6038,"items_count":1} 
[2026-03-14 23:39:32] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28884,"menu_item_id":96,"quantity":1}]} 
[2026-03-14 23:39:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6038,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["96|1|"],"new_items_map_keys":["96|1|"]} 
[2026-03-14 23:39:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6038,"order_number":"AZS-140326-017"} 
[2026-03-14 23:39:32] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6038,"order_number":"AZS-140326-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-14 23:39:32","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-14 23:39:32"} 
[2026-03-14 23:39:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6038,"order_number":"AZS-140326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-14 23:39:32"} 
[2026-03-14 23:39:32] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6038,"order_number":"AZS-140326-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-14 23:39:32","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1200.00","database_verification_match":true,"timestamp":"2026-03-14 23:39:32"} 
[2026-03-14 23:40:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6053,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":28932},{"menu_item_id":416,"quantity":4,"discount_percent":0,"notes":null,"id":28933},{"menu_item_id":422,"quantity":2,"discount_percent":0,"notes":null,"id":28934},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":28935}],"validated_items":[{"id":28932,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":28933,"menu_item_id":416,"quantity":4,"discount_percent":0,"notes":null},{"id":28934,"menu_item_id":422,"quantity":2,"discount_percent":0,"notes":null},{"id":28935,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:40:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6053,"items_count":4} 
[2026-03-14 23:40:11] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28932,"menu_item_id":411,"quantity":2},{"id":28933,"menu_item_id":416,"quantity":4},{"id":28934,"menu_item_id":422,"quantity":2},{"id":28935,"menu_item_id":6,"quantity":2}]} 
[2026-03-14 23:40:11] local.INFO: PosOrderController::update - Item changes check {"order_id":6053,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|2|","416|4|","422|2|","6|2|"],"new_items_map_keys":["411|2|","416|4|","422|2|","6|2|"]} 
[2026-03-14 23:40:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6053,"order_number":"AZS-140326-020"} 
[2026-03-14 23:40:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6053,"order_number":"AZS-140326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-14 23:40:11"} 
[2026-03-14 23:40:25] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6053,"order_number":"AZS-140326-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2016,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 23:40:25"} 
[2026-03-14 23:40:25] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6053,"order_number":"AZS-140326-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2016,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 23:40:25"} 
[2026-03-14 23:40:25] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6053,"order_number":"AZS-140326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2016,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 23:40:25"} 
[2026-03-14 23:40:25] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6053,"order_number":"AZS-140326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2016,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 23:40:25"} 
[2026-03-14 23:40:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6053,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":28932},{"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":28933},{"menu_item_id":422,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":28934},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":28935}],"validated_items":[{"id":28932,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":28933,"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":28934,"menu_item_id":422,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":28935,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:40:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6053,"items_count":4} 
[2026-03-14 23:40:25] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28932,"menu_item_id":411,"quantity":2},{"id":28933,"menu_item_id":416,"quantity":4},{"id":28934,"menu_item_id":422,"quantity":2},{"id":28935,"menu_item_id":6,"quantity":2}]} 
[2026-03-14 23:40:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6053,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|2|","416|4|","422|2|","6|2|"],"new_items_map_keys":["411|2|","416|4|","422|2|","6|2|"]} 
[2026-03-14 23:40:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6053,"order_number":"AZS-140326-020"} 
[2026-03-14 23:40:25] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6053,"order_number":"AZS-140326-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2016,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-14 23:40:25","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-14 23:40:25"} 
[2026-03-14 23:40:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6053,"order_number":"AZS-140326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-14 23:40:25"} 
[2026-03-14 23:40:25] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6053,"order_number":"AZS-140326-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2016.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-14 23:40:25","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2016,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2016.00","database_verification_match":true,"timestamp":"2026-03-14 23:40:25"} 
[2026-03-14 23:46:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6061,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":28964},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28965},{"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":28966},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28967},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28968},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28969}],"validated_items":[{"id":28964,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":28965,"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":28966,"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":28967,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28968,"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":28969,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:46:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6061,"items_count":6} 
[2026-03-14 23:46:20] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28964,"menu_item_id":411,"quantity":1},{"id":28965,"menu_item_id":422,"quantity":1},{"id":28966,"menu_item_id":416,"quantity":3},{"id":28967,"menu_item_id":425,"quantity":1},{"id":28968,"menu_item_id":421,"quantity":1},{"id":28969,"menu_item_id":5,"quantity":1}]} 
[2026-03-14 23:46:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6061,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["411|1|","422|1|","416|3|","425|1|","421|1|","5|1|"],"new_items_map_keys":["411|1|","422|1|","416|3|","425|1|","421|1|","5|1|"]} 
[2026-03-14 23:46:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6061,"order_number":"AZS-140326-022"} 
[2026-03-14 23:46:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6061,"order_number":"AZS-140326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 23:46:20"} 
[2026-03-14 23:46:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6058,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":28951},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null,"id":28952},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28951,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":28952,"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:46:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6058,"items_count":3} 
[2026-03-14 23:46:36] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28951,"menu_item_id":411,"quantity":2},{"id":28952,"menu_item_id":13,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-14 23:46:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6058,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["411|2|","13|2|"],"new_items_map_keys":["411|2|","13|2|","5|1|"]} 
[2026-03-14 23:46:36] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6058,"order_number":"AZS-140326-023"} 
[2026-03-14 23:46:36] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-140326-023","replaced_order_id":6058} 
[2026-03-14 23:46:36] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6062,"items_count":3,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-14 23:46:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6062,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6062}} 
[2026-03-14 23:46:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6062,"item_index":0,"menu_item_id":411} 
[2026-03-14 23:46:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6062,"item_index":1,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6062}} 
[2026-03-14 23:46:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6062,"item_index":1,"menu_item_id":13} 
[2026-03-14 23:46:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6062,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6062}} 
[2026-03-14 23:46:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6062,"item_index":2,"menu_item_id":5} 
[2026-03-14 23:46:36] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6058,"new_order_id":6062,"order_number":"AZS-140326-023"} 
[2026-03-14 23:50:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6061,"order_number":"AZS-140326-022","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1218,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 23:50:27"} 
[2026-03-14 23:50:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6061,"order_number":"AZS-140326-022","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1218,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 23:50:27"} 
[2026-03-14 23:50:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6061,"order_number":"AZS-140326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1218,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 23:50:27"} 
[2026-03-14 23:50:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6061,"order_number":"AZS-140326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1218,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 23:50:27"} 
[2026-03-14 23:50:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6061,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":28964},{"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28965},{"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":28966},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":28967},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28968},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28969}],"validated_items":[{"id":28964,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":28965,"menu_item_id":422,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":28966,"menu_item_id":416,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":28967,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":28968,"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":28969,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:50:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6061,"items_count":6} 
[2026-03-14 23:50:27] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28964,"menu_item_id":411,"quantity":1},{"id":28965,"menu_item_id":422,"quantity":1},{"id":28966,"menu_item_id":416,"quantity":3},{"id":28967,"menu_item_id":425,"quantity":1},{"id":28968,"menu_item_id":421,"quantity":1},{"id":28969,"menu_item_id":5,"quantity":1}]} 
[2026-03-14 23:50:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6061,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["411|1|","422|1|","416|3|","425|1|","421|1|","5|1|"],"new_items_map_keys":["411|1|","422|1|","416|3|","425|1|","421|1|","5|1|"]} 
[2026-03-14 23:50:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6061,"order_number":"AZS-140326-022"} 
[2026-03-14 23:50:27] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6061,"order_number":"AZS-140326-022","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1218,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-14 23:50:27","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-14 23:50:27"} 
[2026-03-14 23:50:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6061,"order_number":"AZS-140326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-14 23:50:27"} 
[2026-03-14 23:50:27] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6061,"order_number":"AZS-140326-022","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1218.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-14 23:50:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1218,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1218.00","database_verification_match":true,"timestamp":"2026-03-14 23:50:27"} 
[2026-03-14 23:52:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6062,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":28970},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":28971},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28972}],"validated_items":[{"id":28970,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":28971,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":28972,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:52:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6062,"items_count":3} 
[2026-03-14 23:52:44] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28970,"menu_item_id":411,"quantity":2},{"id":28971,"menu_item_id":13,"quantity":2},{"id":28972,"menu_item_id":5,"quantity":1}]} 
[2026-03-14 23:52:44] local.INFO: PosOrderController::update - Item changes check {"order_id":6062,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|2|","13|2|","5|1|"],"new_items_map_keys":["411|2|","13|2|","5|1|"]} 
[2026-03-14 23:52:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6062,"order_number":"AZS-140326-023"} 
[2026-03-14 23:52:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6062,"order_number":"AZS-140326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 23:52:44"} 
[2026-03-14 23:54:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6062,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":28970},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":28971},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28972}],"validated_items":[{"id":28970,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":28971,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":28972,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:54:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6062,"items_count":3} 
[2026-03-14 23:54:51] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28970,"menu_item_id":411,"quantity":2},{"id":28971,"menu_item_id":13,"quantity":2},{"id":28972,"menu_item_id":5,"quantity":1}]} 
[2026-03-14 23:54:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6062,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|2|","13|2|","5|1|"],"new_items_map_keys":["411|2|","13|2|","5|1|"]} 
[2026-03-14 23:54:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6062,"order_number":"AZS-140326-023"} 
[2026-03-14 23:54:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6062,"order_number":"AZS-140326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-14 23:54:51"} 
[2026-03-14 23:55:36] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6062,"order_number":"AZS-140326-023","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 23:55:36"} 
[2026-03-14 23:55:36] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6062,"order_number":"AZS-140326-023","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-14 23:55:36"} 
[2026-03-14 23:55:36] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6062,"order_number":"AZS-140326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 23:55:36"} 
[2026-03-14 23:55:36] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6062,"order_number":"AZS-140326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-14 23:55:36"} 
[2026-03-14 23:55:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6062,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":28970},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":28971},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28972}],"validated_items":[{"id":28970,"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":28971,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":28972,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-14 23:55:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6062,"items_count":3} 
[2026-03-14 23:55:36] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28970,"menu_item_id":411,"quantity":2},{"id":28971,"menu_item_id":13,"quantity":2},{"id":28972,"menu_item_id":5,"quantity":1}]} 
[2026-03-14 23:55:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6062,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|2|","13|2|","5|1|"],"new_items_map_keys":["411|2|","13|2|","5|1|"]} 
[2026-03-14 23:55:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6062,"order_number":"AZS-140326-023"} 
[2026-03-14 23:55:36] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6062,"order_number":"AZS-140326-023","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-14 23:55:36","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-14 23:55:36"} 
[2026-03-14 23:55:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6062,"order_number":"AZS-140326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-14 23:55:36"} 
[2026-03-14 23:55:36] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6062,"order_number":"AZS-140326-023","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-14 23:55:36","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-14 23:55:36"} 
[2026-03-14 23:55:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T11:55:43.264Z","date_to":"2026-03-14T23:55:43.264Z","per_page":"100"} 
[2026-03-14 23:55:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-023","AZS-140326-022","AZS-140326-021","AZS-140326-020","AZS-140326-019","AZS-140326-018","AZS-140326-017","AZS-140326-016","AZS-140326-015","AZS-140326-014","AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":0,"unique_order_numbers":23} 
[2026-03-14 23:55:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T11:55:43.282Z","date_to":"2026-03-14T23:55:43.282Z","per_page":"100"} 
[2026-03-14 23:55:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-023","AZS-140326-022","AZS-140326-021","AZS-140326-020","AZS-140326-019","AZS-140326-018","AZS-140326-017","AZS-140326-016","AZS-140326-015","AZS-140326-014","AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":0,"unique_order_numbers":23} 
[2026-03-14 23:55:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-14T11:55:43.264Z","date_to":"2026-03-14T23:55:43.264Z","per_page":"100"} 
[2026-03-14 23:55:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-140326-023","AZS-140326-022","AZS-140326-021","AZS-140326-020","AZS-140326-019","AZS-140326-018","AZS-140326-017","AZS-140326-016","AZS-140326-015","AZS-140326-014","AZS-140326-013","AZS-140326-012","AZS-140326-011","AZS-140326-010","AZS-140326-009","AZS-140326-008","AZS-140326-007","AZS-140326-006","AZS-140326-005","AZS-140326-004","AZS-140326-003","AZS-140326-002","AZS-140326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":0,"unique_order_numbers":23} 
[2026-03-15 13:37:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6063,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":28973},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28973,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-15 13:37:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6063,"items_count":4} 
[2026-03-15 13:37:43] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28973,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":49,"quantity":1},{"id":null,"menu_item_id":55,"quantity":1}]} 
[2026-03-15 13:37:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6063,"has_item_changes":true,"old_items_count":1,"new_items_count":4,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","98|1|","49|1|","55|1|"]} 
[2026-03-15 13:37:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6063,"order_number":"AZS-150326-001"} 
[2026-03-15 13:37:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-150326-001","replaced_order_id":6063} 
[2026-03-15 13:37:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6064,"items_count":4,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":49,"quantity":1,"price":"70.00"},{"menu_item_id":55,"quantity":1,"price":"159.00"}]} 
[2026-03-15 13:37:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6064,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6064}} 
[2026-03-15 13:37:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6064,"item_index":0,"menu_item_id":417} 
[2026-03-15 13:37:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6064,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6064}} 
[2026-03-15 13:37:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6064,"item_index":1,"menu_item_id":98} 
[2026-03-15 13:37:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6064,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6064}} 
[2026-03-15 13:37:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6064,"item_index":2,"menu_item_id":49} 
[2026-03-15 13:37:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6064,"item_index":3,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6064}} 
[2026-03-15 13:37:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6064,"item_index":3,"menu_item_id":55} 
[2026-03-15 13:37:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6063,"new_order_id":6064,"order_number":"AZS-150326-001"} 
[2026-03-15 13:37:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6064,"item_index":0,"item_id":28973} 
[2026-03-15 13:37:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6064,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":28973},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-15 13:37:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6064,"items_count":4} 
[2026-03-15 13:37:49] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[28974,28975,28976,28977],"items":[{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":49,"quantity":1},{"id":null,"menu_item_id":55,"quantity":1}]} 
[2026-03-15 13:37:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6064,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["417|1|","98|1|","49|1|","55|1|"],"new_items_map_keys":["417|1|","98|1|","49|1|","55|1|"]} 
[2026-03-15 13:37:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6064,"order_number":"AZS-150326-001"} 
[2026-03-15 13:37:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6064,"order_number":"AZS-150326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-15 13:37:49"} 
[2026-03-15 14:04:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6064,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":28974},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":28975},{"menu_item_id":49,"quantity":1,"discount_percent":0,"notes":null,"id":28976},{"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null,"id":28977},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":28974,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":28975,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":28976,"menu_item_id":49,"quantity":1,"discount_percent":0,"notes":null},{"id":28977,"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-15 14:04:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6064,"items_count":5} 
[2026-03-15 14:04:40] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28974,"menu_item_id":417,"quantity":1},{"id":28975,"menu_item_id":98,"quantity":1},{"id":28976,"menu_item_id":49,"quantity":1},{"id":28977,"menu_item_id":55,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-15 14:04:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6064,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["417|1|","98|1|","49|1|","55|1|"],"new_items_map_keys":["417|1|","98|1|","49|1|","55|1|","2|1|"]} 
[2026-03-15 14:04:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6064,"order_number":"AZS-150326-001"} 
[2026-03-15 14:04:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-150326-001","replaced_order_id":6064} 
[2026-03-15 14:04:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6066,"items_count":5,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":49,"quantity":1,"price":"70.00"},{"menu_item_id":55,"quantity":1,"price":"159.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-15 14:04:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6066,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6066}} 
[2026-03-15 14:04:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6066,"item_index":0,"menu_item_id":417} 
[2026-03-15 14:04:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6066,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6066}} 
[2026-03-15 14:04:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6066,"item_index":1,"menu_item_id":98} 
[2026-03-15 14:04:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6066,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6066}} 
[2026-03-15 14:04:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6066,"item_index":2,"menu_item_id":49} 
[2026-03-15 14:04:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6066,"item_index":3,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6066}} 
[2026-03-15 14:04:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6066,"item_index":3,"menu_item_id":55} 
[2026-03-15 14:04:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6066,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6066}} 
[2026-03-15 14:04:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6066,"item_index":4,"menu_item_id":2} 
[2026-03-15 14:04:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6064,"new_order_id":6066,"order_number":"AZS-150326-001"} 
[2026-03-15 14:15:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6066,"item_index":0,"item_id":28974} 
[2026-03-15 14:15:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6066,"item_index":1,"item_id":28975} 
[2026-03-15 14:15:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6066,"item_index":2,"item_id":28976} 
[2026-03-15 14:15:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6066,"item_index":3,"item_id":28977} 
[2026-03-15 14:15:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6066,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28974},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28975},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28976},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":28977},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-15 14:15:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6066,"items_count":5} 
[2026-03-15 14:15:49] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[28984,28985,28986,28987,28988],"items":[{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":49,"quantity":1},{"id":null,"menu_item_id":55,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-15 14:15:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6066,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|1|","98|1|","49|1|","55|1|","2|1|"],"new_items_map_keys":["417|1|","98|1|","49|1|","55|1|","2|1|"]} 
[2026-03-15 14:15:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6066,"order_number":"AZS-150326-001"} 
[2026-03-15 14:15:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6066,"order_number":"AZS-150326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-15 14:15:49"} 
[2026-03-15 14:58:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":6,"order_id":6065,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-15 14:58:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6065,"items_count":5} 
[2026-03-15 14:58:52] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":6,"items_to_remove":[28978,28979,28980,28981,28982,28983],"items":[{"id":null,"menu_item_id":97,"quantity":1},{"id":null,"menu_item_id":54,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-15 14:58:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6065,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["87|1|","67|1|","52|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["97|1|","54|3|","61|1|","56|1|","5|1|"]} 
[2026-03-15 14:58:52] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6065,"order_number":"AZS-150326-002"} 
[2026-03-15 14:58:52] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-150326-002","replaced_order_id":6065} 
[2026-03-15 14:58:52] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6067,"items_count":5,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":54,"quantity":3,"price":"159.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-15 14:58:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6067,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6067}} 
[2026-03-15 14:58:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6067,"item_index":0,"menu_item_id":97} 
[2026-03-15 14:58:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6067,"item_index":1,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":3,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":477.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6067}} 
[2026-03-15 14:58:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6067,"item_index":1,"menu_item_id":54} 
[2026-03-15 14:58:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6067,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6067}} 
[2026-03-15 14:58:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6067,"item_index":2,"menu_item_id":61} 
[2026-03-15 14:58:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6067,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6067}} 
[2026-03-15 14:58:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6067,"item_index":3,"menu_item_id":56} 
[2026-03-15 14:58:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6067,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6067}} 
[2026-03-15 14:58:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6067,"item_index":4,"menu_item_id":5} 
[2026-03-15 14:58:52] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6065,"new_order_id":6067,"order_number":"AZS-150326-002"} 
[2026-03-15 14:59:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6067,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-15 14:59:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6067,"items_count":5} 
[2026-03-15 14:59:02] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[28989,28990,28991,28992,28993],"items":[{"id":null,"menu_item_id":97,"quantity":1},{"id":null,"menu_item_id":54,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-15 14:59:02] local.INFO: PosOrderController::update - Item changes check {"order_id":6067,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["97|1|","54|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["97|1|","54|3|","61|1|","56|1|","5|1|"]} 
[2026-03-15 14:59:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6067,"order_number":"AZS-150326-002"} 
[2026-03-15 14:59:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6067,"order_number":"AZS-150326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-15 14:59:02"} 
[2026-03-15 15:26:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":5,"order_id":6067,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":4,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-03-15 15:26:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6067,"items_count":6} 
[2026-03-15 15:26:59] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":5,"items_to_remove":[28989,28990,28991,28992,28993],"items":[{"id":null,"menu_item_id":97,"quantity":1},{"id":null,"menu_item_id":54,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":4}]} 
[2026-03-15 15:26:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6067,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["97|1|","54|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["97|1|","54|3|","61|1|","56|1|","5|1|","2|4|"]} 
[2026-03-15 15:26:59] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6067,"order_number":"AZS-150326-002"} 
[2026-03-15 15:26:59] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-150326-002","replaced_order_id":6067} 
[2026-03-15 15:26:59] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6068,"items_count":6,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":54,"quantity":3,"price":"159.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":4,"price":"130.00"}]} 
[2026-03-15 15:26:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6068,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6068}} 
[2026-03-15 15:26:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6068,"item_index":0,"menu_item_id":97} 
[2026-03-15 15:26:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6068,"item_index":1,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":3,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":477.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6068}} 
[2026-03-15 15:26:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6068,"item_index":1,"menu_item_id":54} 
[2026-03-15 15:26:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6068,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6068}} 
[2026-03-15 15:26:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6068,"item_index":2,"menu_item_id":61} 
[2026-03-15 15:26:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6068,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6068}} 
[2026-03-15 15:26:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6068,"item_index":3,"menu_item_id":56} 
[2026-03-15 15:26:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6068,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6068}} 
[2026-03-15 15:26:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6068,"item_index":4,"menu_item_id":5} 
[2026-03-15 15:26:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6068,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":4,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":520.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6068}} 
[2026-03-15 15:26:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6068,"item_index":5,"menu_item_id":2} 
[2026-03-15 15:26:59] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6067,"new_order_id":6068,"order_number":"AZS-150326-002"} 
[2026-03-15 15:47:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6068,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":28994},{"menu_item_id":54,"quantity":5,"discount_percent":0,"notes":null,"id":28995},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":28996},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":28997},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":28998},{"menu_item_id":2,"quantity":4,"discount_percent":0,"notes":null,"id":28999}],"validated_items":[{"id":28994,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":28995,"menu_item_id":54,"quantity":5,"discount_percent":0,"notes":null},{"id":28996,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":28997,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":28998,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":28999,"menu_item_id":2,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-03-15 15:47:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6068,"items_count":6} 
[2026-03-15 15:47:42] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28994,"menu_item_id":97,"quantity":1},{"id":28995,"menu_item_id":54,"quantity":5},{"id":28996,"menu_item_id":61,"quantity":1},{"id":28997,"menu_item_id":56,"quantity":1},{"id":28998,"menu_item_id":5,"quantity":1},{"id":28999,"menu_item_id":2,"quantity":4}]} 
[2026-03-15 15:47:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6068,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["97|1|","54|3|","61|1|","56|1|","5|1|","2|4|"],"new_items_map_keys":["97|1|","54|5|","61|1|","56|1|","5|1|","2|4|"]} 
[2026-03-15 15:47:42] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6068,"order_number":"AZS-150326-002"} 
[2026-03-15 15:47:42] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-150326-002","replaced_order_id":6068} 
[2026-03-15 15:47:42] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6070,"items_count":6,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":54,"quantity":5,"price":"159.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":4,"price":"130.00"}]} 
[2026-03-15 15:47:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6070,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6070}} 
[2026-03-15 15:47:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6070,"item_index":0,"menu_item_id":97} 
[2026-03-15 15:47:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6070,"item_index":1,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":5,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":795.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6070}} 
[2026-03-15 15:47:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6070,"item_index":1,"menu_item_id":54} 
[2026-03-15 15:47:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6070,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6070}} 
[2026-03-15 15:47:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6070,"item_index":2,"menu_item_id":61} 
[2026-03-15 15:47:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6070,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6070}} 
[2026-03-15 15:47:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6070,"item_index":3,"menu_item_id":56} 
[2026-03-15 15:47:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6070,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6070}} 
[2026-03-15 15:47:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6070,"item_index":4,"menu_item_id":5} 
[2026-03-15 15:47:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6070,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":4,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":520.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6070}} 
[2026-03-15 15:47:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6070,"item_index":5,"menu_item_id":2} 
[2026-03-15 15:47:42] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6068,"new_order_id":6070,"order_number":"AZS-150326-002"} 
[2026-03-15 15:52:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6070,"item_index":0,"item_id":28994} 
[2026-03-15 15:52:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6070,"item_index":1,"item_id":28995} 
[2026-03-15 15:52:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6070,"item_index":2,"item_id":28996} 
[2026-03-15 15:52:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6070,"item_index":3,"item_id":28997} 
[2026-03-15 15:52:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6070,"item_index":4,"item_id":28998} 
[2026-03-15 15:52:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6070,"item_index":5,"item_id":28999} 
[2026-03-15 15:52:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6070,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28994},{"menu_item_id":54,"quantity":5,"price":159,"discount_percent":0,"notes":null,"id":28995},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28996},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28997},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":28998},{"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null,"id":28999}],"validated_items":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":5,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-15 15:52:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6070,"items_count":6} 
[2026-03-15 15:52:17] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[29001,29002,29003,29004,29005,29006],"items":[{"id":null,"menu_item_id":97,"quantity":1},{"id":null,"menu_item_id":54,"quantity":5},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":4}]} 
[2026-03-15 15:52:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6070,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["97|1|","54|5|","61|1|","56|1|","5|1|","2|4|"],"new_items_map_keys":["97|1|","54|5|","61|1|","56|1|","5|1|","2|4|"]} 
[2026-03-15 15:52:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6070,"order_number":"AZS-150326-002"} 
[2026-03-15 15:52:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6070,"order_number":"AZS-150326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-15 15:52:17"} 
[2026-03-15 15:52:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6070,"item_index":0,"item_id":28994} 
[2026-03-15 15:52:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6070,"item_index":1,"item_id":28995} 
[2026-03-15 15:52:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6070,"item_index":2,"item_id":28996} 
[2026-03-15 15:52:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6070,"item_index":3,"item_id":28997} 
[2026-03-15 15:52:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6070,"item_index":4,"item_id":28999} 
[2026-03-15 15:52:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":6,"order_id":6070,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28994},{"menu_item_id":54,"quantity":5,"price":159,"discount_percent":0,"notes":null,"id":28995},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28996},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28997},{"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null,"id":28999}],"validated_items":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":5,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-15 15:52:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6070,"items_count":5} 
[2026-03-15 15:52:46] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":6,"items_to_remove":[29001,29002,29003,29004,29005,29006],"items":[{"id":null,"menu_item_id":97,"quantity":1},{"id":null,"menu_item_id":54,"quantity":5},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":4}]} 
[2026-03-15 15:52:46] local.INFO: PosOrderController::update - Item changes check {"order_id":6070,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["97|1|","54|5|","61|1|","56|1|","5|1|","2|4|"],"new_items_map_keys":["97|1|","54|5|","61|1|","56|1|","2|4|"]} 
[2026-03-15 15:52:46] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6070,"order_number":"AZS-150326-002"} 
[2026-03-15 15:52:46] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-150326-002","replaced_order_id":6070} 
[2026-03-15 15:52:46] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6071,"items_count":5,"items":[{"menu_item_id":97,"quantity":1,"price":2299.0},{"menu_item_id":54,"quantity":5,"price":159.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":2,"quantity":4,"price":130.0}]} 
[2026-03-15 15:52:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6071,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6071}} 
[2026-03-15 15:52:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6071,"item_index":0,"menu_item_id":97} 
[2026-03-15 15:52:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6071,"item_index":1,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":5,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":795.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6071}} 
[2026-03-15 15:52:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6071,"item_index":1,"menu_item_id":54} 
[2026-03-15 15:52:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6071,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6071}} 
[2026-03-15 15:52:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6071,"item_index":2,"menu_item_id":61} 
[2026-03-15 15:52:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6071,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6071}} 
[2026-03-15 15:52:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6071,"item_index":3,"menu_item_id":56} 
[2026-03-15 15:52:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6071,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":4,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":520.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6071}} 
[2026-03-15 15:52:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6071,"item_index":4,"menu_item_id":2} 
[2026-03-15 15:52:46] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6070,"new_order_id":6071,"order_number":"AZS-150326-002"} 
[2026-03-15 15:52:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6071,"item_index":0,"item_id":28994} 
[2026-03-15 15:52:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6071,"item_index":1,"item_id":28995} 
[2026-03-15 15:52:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6071,"item_index":2,"item_id":28996} 
[2026-03-15 15:52:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6071,"item_index":3,"item_id":28997} 
[2026-03-15 15:52:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6071,"item_index":4,"item_id":28999} 
[2026-03-15 15:52:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6071,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":28994},{"menu_item_id":54,"quantity":5,"price":159,"discount_percent":0,"notes":null,"id":28995},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28996},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":28997},{"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null,"id":28999}],"validated_items":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":5,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-15 15:52:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6071,"items_count":5} 
[2026-03-15 15:52:50] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[29007,29008,29009,29010,29011],"items":[{"id":null,"menu_item_id":97,"quantity":1},{"id":null,"menu_item_id":54,"quantity":5},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":4}]} 
[2026-03-15 15:52:50] local.INFO: PosOrderController::update - Item changes check {"order_id":6071,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["97|1|","54|5|","61|1|","56|1|","2|4|"],"new_items_map_keys":["97|1|","54|5|","61|1|","56|1|","2|4|"]} 
[2026-03-15 15:52:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6071,"order_number":"AZS-150326-002"} 
[2026-03-15 15:52:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6071,"order_number":"AZS-150326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-15 15:52:50"} 
[2026-03-15 15:57:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6069,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":29000}],"validated_items":[{"id":29000,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-15 15:57:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6069,"items_count":1} 
[2026-03-15 15:57:48] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29000,"menu_item_id":13,"quantity":2}]} 
[2026-03-15 15:57:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6069,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|2|"]} 
[2026-03-15 15:57:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6069,"order_number":"AZS-150326-003"} 
[2026-03-15 15:57:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6069,"order_number":"AZS-150326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-15 15:57:48"} 
[2026-03-15 15:58:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6069,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":29000}],"validated_items":[{"id":29000,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-15 15:58:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6069,"items_count":1} 
[2026-03-15 15:58:45] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29000,"menu_item_id":13,"quantity":2}]} 
[2026-03-15 15:58:45] local.INFO: PosOrderController::update - Item changes check {"order_id":6069,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|2|"]} 
[2026-03-15 15:58:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6069,"order_number":"AZS-150326-003"} 
[2026-03-15 15:58:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6069,"order_number":"AZS-150326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-15 15:58:45"} 
[2026-03-15 16:44:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6066,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28984},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28985},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28986},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":28987},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28988}],"validated_items":[{"id":28984,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":28985,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28986,"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":28987,"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":28988,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-15 16:44:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6066,"items_count":5} 
[2026-03-15 16:44:31] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28984,"menu_item_id":417,"quantity":1},{"id":28985,"menu_item_id":98,"quantity":1},{"id":28986,"menu_item_id":49,"quantity":1},{"id":28987,"menu_item_id":55,"quantity":1},{"id":28988,"menu_item_id":2,"quantity":1}]} 
[2026-03-15 16:44:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6066,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|1|","98|1|","49|1|","55|1|","2|1|"],"new_items_map_keys":["417|1|","98|1|","49|1|","55|1|","2|1|"]} 
[2026-03-15 16:44:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6066,"order_number":"AZS-150326-001"} 
[2026-03-15 16:44:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6066,"order_number":"AZS-150326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-15 16:44:31"} 
[2026-03-15 16:44:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6066,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28984},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28985},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28986},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":28987},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28988}],"validated_items":[{"id":28984,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":28985,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28986,"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":28987,"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":28988,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-15 16:44:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6066,"items_count":5} 
[2026-03-15 16:44:32] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28984,"menu_item_id":417,"quantity":1},{"id":28985,"menu_item_id":98,"quantity":1},{"id":28986,"menu_item_id":49,"quantity":1},{"id":28987,"menu_item_id":55,"quantity":1},{"id":28988,"menu_item_id":2,"quantity":1}]} 
[2026-03-15 16:44:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6066,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|1|","98|1|","49|1|","55|1|","2|1|"],"new_items_map_keys":["417|1|","98|1|","49|1|","55|1|","2|1|"]} 
[2026-03-15 16:44:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6066,"order_number":"AZS-150326-001"} 
[2026-03-15 16:44:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6066,"order_number":"AZS-150326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-15 16:44:32"} 
[2026-03-15 16:44:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6066,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28984},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28985},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28986},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":28987},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28988}],"validated_items":[{"id":28984,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":28985,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28986,"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":28987,"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":28988,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-15 16:44:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6066,"items_count":5} 
[2026-03-15 16:44:40] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28984,"menu_item_id":417,"quantity":1},{"id":28985,"menu_item_id":98,"quantity":1},{"id":28986,"menu_item_id":49,"quantity":1},{"id":28987,"menu_item_id":55,"quantity":1},{"id":28988,"menu_item_id":2,"quantity":1}]} 
[2026-03-15 16:44:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6066,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|1|","98|1|","49|1|","55|1|","2|1|"],"new_items_map_keys":["417|1|","98|1|","49|1|","55|1|","2|1|"]} 
[2026-03-15 16:44:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6066,"order_number":"AZS-150326-001"} 
[2026-03-15 16:44:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6066,"order_number":"AZS-150326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-15 16:44:40"} 
[2026-03-15 16:44:53] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6066,"order_number":"AZS-150326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-15 16:44:53"} 
[2026-03-15 16:44:53] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6066,"order_number":"AZS-150326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-15 16:44:53"} 
[2026-03-15 16:44:53] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6066,"order_number":"AZS-150326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-15 16:44:53"} 
[2026-03-15 16:44:53] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6066,"order_number":"AZS-150326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-15 16:44:53"} 
[2026-03-15 16:44:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6066,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":28984},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":28985},{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":28986},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":28987},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":28988}],"validated_items":[{"id":28984,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":28985,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":28986,"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":28987,"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":28988,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-15 16:44:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6066,"items_count":5} 
[2026-03-15 16:44:53] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":28984,"menu_item_id":417,"quantity":1},{"id":28985,"menu_item_id":98,"quantity":1},{"id":28986,"menu_item_id":49,"quantity":1},{"id":28987,"menu_item_id":55,"quantity":1},{"id":28988,"menu_item_id":2,"quantity":1}]} 
[2026-03-15 16:44:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6066,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|1|","98|1|","49|1|","55|1|","2|1|"],"new_items_map_keys":["417|1|","98|1|","49|1|","55|1|","2|1|"]} 
[2026-03-15 16:44:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6066,"order_number":"AZS-150326-001"} 
[2026-03-15 16:44:53] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6066,"order_number":"AZS-150326-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-15 16:44:53","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-15 16:44:53"} 
[2026-03-15 16:44:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6066,"order_number":"AZS-150326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-15 16:44:53"} 
[2026-03-15 16:44:53] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6066,"order_number":"AZS-150326-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-15 16:44:53","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2100.00","database_verification_match":true,"timestamp":"2026-03-15 16:44:53"} 
[2026-03-15 16:45:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6071,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29007},{"menu_item_id":54,"quantity":5,"price":159,"discount_percent":0,"notes":null,"id":29008},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29009},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29010},{"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null,"id":29011}],"validated_items":[{"id":29007,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":29008,"menu_item_id":54,"quantity":5,"price":159,"discount_percent":0,"notes":null},{"id":29009,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29010,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29011,"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-15 16:45:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6071,"items_count":5} 
[2026-03-15 16:45:03] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29007,"menu_item_id":97,"quantity":1},{"id":29008,"menu_item_id":54,"quantity":5},{"id":29009,"menu_item_id":61,"quantity":1},{"id":29010,"menu_item_id":56,"quantity":1},{"id":29011,"menu_item_id":2,"quantity":4}]} 
[2026-03-15 16:45:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6071,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["97|1|","54|5|","61|1|","56|1|","2|4|"],"new_items_map_keys":["97|1|","54|5|","61|1|","56|1|","2|4|"]} 
[2026-03-15 16:45:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6071,"order_number":"AZS-150326-002"} 
[2026-03-15 16:45:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6071,"order_number":"AZS-150326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-15 16:45:03"} 
[2026-03-15 16:45:25] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6071,"order_number":"AZS-150326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3700,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-15 16:45:25"} 
[2026-03-15 16:45:25] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6071,"order_number":"AZS-150326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3700,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-15 16:45:25"} 
[2026-03-15 16:45:25] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6071,"order_number":"AZS-150326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3700,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-15 16:45:25"} 
[2026-03-15 16:45:25] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6071,"order_number":"AZS-150326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3700,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-15 16:45:25"} 
[2026-03-15 16:45:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":2,"order_id":6071,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29007},{"menu_item_id":54,"quantity":5,"price":159,"discount_percent":0,"notes":null,"id":29008},{"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null,"id":29011}],"validated_items":[{"id":29007,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":29008,"menu_item_id":54,"quantity":5,"price":159,"discount_percent":0,"notes":null},{"id":29011,"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-15 16:45:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6071,"items_count":3} 
[2026-03-15 16:45:25] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":2,"items_to_remove":[29009,29010],"items":[{"id":29007,"menu_item_id":97,"quantity":1},{"id":29008,"menu_item_id":54,"quantity":5},{"id":29011,"menu_item_id":2,"quantity":4}]} 
[2026-03-15 16:45:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6071,"has_item_changes":true,"old_items_count":5,"new_items_count":3,"old_items_map_keys":["97|1|","54|5|","61|1|","56|1|","2|4|"],"new_items_map_keys":["97|1|","54|5|","2|4|"]} 
[2026-03-15 16:45:25] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6071,"order_number":"AZS-150326-002","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3700,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-15 16:45:25","original_payment_amount":"0.00","grand_total":3614.0,"timestamp":"2026-03-15 16:45:25"} 
[2026-03-15 16:45:25] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6071,"order_number":"AZS-150326-002"} 
[2026-03-15 16:45:25] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-150326-002","replaced_order_id":6071} 
[2026-03-15 16:45:25] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6071,"new_order_id":6072,"order_number":"AZS-150326-002","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3700.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-15 16:45:25","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3700,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-15 16:45:25"} 
[2026-03-15 16:45:25] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6072,"items_count":3,"items":[{"menu_item_id":97,"quantity":1,"price":2299.0},{"menu_item_id":54,"quantity":5,"price":159.0},{"menu_item_id":2,"quantity":4,"price":130.0}]} 
[2026-03-15 16:45:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6072,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6072}} 
[2026-03-15 16:45:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6072,"item_index":0,"menu_item_id":97} 
[2026-03-15 16:45:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6072,"item_index":1,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":5,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":795.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6072}} 
[2026-03-15 16:45:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6072,"item_index":1,"menu_item_id":54} 
[2026-03-15 16:45:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6072,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":4,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":520.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6072}} 
[2026-03-15 16:45:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6072,"item_index":2,"menu_item_id":2} 
[2026-03-15 16:45:25] local.ERROR: Error tracking recipe usage for order 6072: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6072, 54, 102, 1, 50, 0.00, Order #AZS-150326-002 - 5x Kalwanji Naan, 2026-03-15 16:45:25, 2026-03-15 16:45:25))  
[2026-03-15 16:45:25] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6071,"new_order_id":6072,"order_number":"AZS-150326-002"} 
[2026-03-15 16:45:26] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6071,"new_order_id":6072,"order_number":"AZS-150326-002","route":"api/orders/6071"} 
[2026-03-15 16:45:37] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6069,"order_number":"AZS-150326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":550,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-15 16:45:37"} 
[2026-03-15 16:45:37] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6069,"order_number":"AZS-150326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":550,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-15 16:45:37"} 
[2026-03-15 16:45:37] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6069,"order_number":"AZS-150326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":550,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-15 16:45:37"} 
[2026-03-15 16:45:37] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6069,"order_number":"AZS-150326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":550,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-15 16:45:37"} 
[2026-03-15 16:45:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6069,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":29000}],"validated_items":[{"id":29000,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-15 16:45:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6069,"items_count":1} 
[2026-03-15 16:45:37] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29000,"menu_item_id":13,"quantity":2}]} 
[2026-03-15 16:45:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6069,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|2|"]} 
[2026-03-15 16:45:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6069,"order_number":"AZS-150326-003"} 
[2026-03-15 16:45:37] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6069,"order_number":"AZS-150326-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":550,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-15 16:45:37","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-15 16:45:37"} 
[2026-03-15 16:45:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6069,"order_number":"AZS-150326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-15 16:45:37"} 
[2026-03-15 16:45:37] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6069,"order_number":"AZS-150326-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"550.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-15 16:45:37","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":550,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"550.00","database_verification_match":true,"timestamp":"2026-03-15 16:45:37"} 
[2026-03-15 16:45:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-15T04:45:40.451Z","date_to":"2026-03-15T16:45:40.451Z","per_page":"100"} 
[2026-03-15 16:45:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-150326-003","AZS-150326-002","AZS-150326-001"],"order_statuses":["paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":0,"unique_order_numbers":3} 
[2026-03-15 16:45:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-15T04:45:40.466Z","date_to":"2026-03-15T16:45:40.466Z","per_page":"100"} 
[2026-03-15 16:45:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-150326-003","AZS-150326-002","AZS-150326-001"],"order_statuses":["paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":0,"unique_order_numbers":3} 
[2026-03-15 16:45:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-15T04:45:40.451Z","date_to":"2026-03-15T16:45:40.451Z","per_page":"100"} 
[2026-03-15 16:45:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-150326-003","AZS-150326-002","AZS-150326-001"],"order_statuses":["paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":0,"unique_order_numbers":3} 
[2026-03-15 17:54:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6073,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":29015},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":29016},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29017},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29018},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":29019},{"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29015,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":29016,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":29017,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29018,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29019,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-15 17:54:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6073,"items_count":6} 
[2026-03-15 17:54:57] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29015,"menu_item_id":113,"quantity":1},{"id":29016,"menu_item_id":396,"quantity":2},{"id":29017,"menu_item_id":61,"quantity":1},{"id":29018,"menu_item_id":56,"quantity":1},{"id":29019,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":9,"quantity":1}]} 
[2026-03-15 17:54:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6073,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["113|1|","396|2|","61|1|","56|1|","65|1|"],"new_items_map_keys":["113|1|","396|2|","61|1|","56|1|","65|1|","9|1|"]} 
[2026-03-15 17:54:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6073,"order_number":"AZS-150326-004"} 
[2026-03-15 17:54:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-150326-004","replaced_order_id":6073} 
[2026-03-15 17:54:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6074,"items_count":6,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":9,"quantity":1,"price":"229.00"}]} 
[2026-03-15 17:54:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6074,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6074}} 
[2026-03-15 17:54:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6074,"item_index":0,"menu_item_id":113} 
[2026-03-15 17:54:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6074,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6074}} 
[2026-03-15 17:54:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6074,"item_index":1,"menu_item_id":396} 
[2026-03-15 17:54:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6074,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6074}} 
[2026-03-15 17:54:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6074,"item_index":2,"menu_item_id":61} 
[2026-03-15 17:54:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6074,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6074}} 
[2026-03-15 17:54:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6074,"item_index":3,"menu_item_id":56} 
[2026-03-15 17:54:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6074,"item_index":4,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6074}} 
[2026-03-15 17:54:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6074,"item_index":4,"menu_item_id":65} 
[2026-03-15 17:54:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6074,"item_index":5,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":1,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":229.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6074}} 
[2026-03-15 17:54:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6074,"item_index":5,"menu_item_id":9} 
[2026-03-15 17:54:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6073,"new_order_id":6074,"order_number":"AZS-150326-004"} 
[2026-03-15 18:08:16] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-15 18:12:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6074,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29020},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29021},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29022},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29023},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":29024},{"menu_item_id":9,"quantity":1,"price":229,"discount_percent":0,"notes":null,"id":29025}],"validated_items":[{"id":29020,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29021,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29022,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29023,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29024,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":29025,"menu_item_id":9,"quantity":1,"price":229,"discount_percent":0,"notes":null}]} 
[2026-03-15 18:12:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6074,"items_count":6} 
[2026-03-15 18:12:45] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29020,"menu_item_id":113,"quantity":1},{"id":29021,"menu_item_id":396,"quantity":2},{"id":29022,"menu_item_id":61,"quantity":1},{"id":29023,"menu_item_id":56,"quantity":1},{"id":29024,"menu_item_id":65,"quantity":1},{"id":29025,"menu_item_id":9,"quantity":1}]} 
[2026-03-15 18:12:45] local.INFO: PosOrderController::update - Item changes check {"order_id":6074,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","396|2|","61|1|","56|1|","65|1|","9|1|"],"new_items_map_keys":["113|1|","396|2|","61|1|","56|1|","65|1|","9|1|"]} 
[2026-03-15 18:12:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6074,"order_number":"AZS-150326-004"} 
[2026-03-15 18:12:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6074,"order_number":"AZS-150326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-15 18:12:45"} 
[2026-03-15 18:38:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6075,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29026}],"validated_items":[{"id":29026,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-15 18:38:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6075,"items_count":1} 
[2026-03-15 18:38:50] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29026,"menu_item_id":6,"quantity":2}]} 
[2026-03-15 18:38:50] local.INFO: PosOrderController::update - Item changes check {"order_id":6075,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-15 18:38:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6075,"order_number":"AZS-150326-005"} 
[2026-03-15 18:38:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6075,"order_number":"AZS-150326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-15 18:38:50"} 
[2026-03-15 18:54:04] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6075,"order_number":"AZS-150326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-15 18:54:04"} 
[2026-03-15 18:54:04] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6075,"order_number":"AZS-150326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-15 18:54:04"} 
[2026-03-15 18:54:04] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6075,"order_number":"AZS-150326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-15 18:54:04"} 
[2026-03-15 18:54:04] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6075,"order_number":"AZS-150326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-15 18:54:04"} 
[2026-03-15 18:54:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6075,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29026}],"validated_items":[{"id":29026,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-15 18:54:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6075,"items_count":1} 
[2026-03-15 18:54:04] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29026,"menu_item_id":6,"quantity":2}]} 
[2026-03-15 18:54:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6075,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-15 18:54:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6075,"order_number":"AZS-150326-005"} 
[2026-03-15 18:54:04] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6075,"order_number":"AZS-150326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-15 18:54:04","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-15 18:54:04"} 
[2026-03-15 18:54:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6075,"order_number":"AZS-150326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-15 18:54:04"} 
[2026-03-15 18:54:04] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6075,"order_number":"AZS-150326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-15 18:54:04","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-15 18:54:04"} 
[2026-03-15 18:55:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-15T06:55:36.789Z","date_to":"2026-03-15T18:55:36.789Z","per_page":"100"} 
[2026-03-15 18:55:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-150326-005","AZS-150326-004","AZS-150326-003","AZS-150326-002","AZS-150326-001"],"order_statuses":["paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":1,"unique_order_numbers":5} 
[2026-03-15 18:55:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-15T06:55:36.771Z","date_to":"2026-03-15T18:55:36.771Z","per_page":"100"} 
[2026-03-15 18:55:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-150326-005","AZS-150326-004","AZS-150326-003","AZS-150326-002","AZS-150326-001"],"order_statuses":["paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":1,"unique_order_numbers":5} 
[2026-03-15 18:55:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-15T06:55:36.771Z","date_to":"2026-03-15T18:55:36.771Z","per_page":"100"} 
[2026-03-15 18:55:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-150326-005","AZS-150326-004","AZS-150326-003","AZS-150326-002","AZS-150326-001"],"order_statuses":["paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":1,"unique_order_numbers":5} 
[2026-03-15 18:56:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6074,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29020},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29021},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29022},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29023},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":29024},{"menu_item_id":9,"quantity":1,"price":229,"discount_percent":0,"notes":null,"id":29025}],"validated_items":[{"id":29020,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29021,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29022,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29023,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29024,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":29025,"menu_item_id":9,"quantity":1,"price":229,"discount_percent":0,"notes":null}]} 
[2026-03-15 18:56:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6074,"items_count":6} 
[2026-03-15 18:56:19] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29020,"menu_item_id":113,"quantity":1},{"id":29021,"menu_item_id":396,"quantity":2},{"id":29022,"menu_item_id":61,"quantity":1},{"id":29023,"menu_item_id":56,"quantity":1},{"id":29024,"menu_item_id":65,"quantity":1},{"id":29025,"menu_item_id":9,"quantity":1}]} 
[2026-03-15 18:56:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6074,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","396|2|","61|1|","56|1|","65|1|","9|1|"],"new_items_map_keys":["113|1|","396|2|","61|1|","56|1|","65|1|","9|1|"]} 
[2026-03-15 18:56:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6074,"order_number":"AZS-150326-004"} 
[2026-03-15 18:56:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6074,"order_number":"AZS-150326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-15 18:56:19"} 
[2026-03-15 18:56:58] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6074,"order_number":"AZS-150326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-15 18:56:58"} 
[2026-03-15 18:56:58] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6074,"order_number":"AZS-150326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-15 18:56:58"} 
[2026-03-15 18:56:58] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6074,"order_number":"AZS-150326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-15 18:56:58"} 
[2026-03-15 18:56:58] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6074,"order_number":"AZS-150326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-15 18:56:58"} 
[2026-03-15 18:56:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6074,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29020},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29021},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29022},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":29024},{"menu_item_id":9,"quantity":1,"price":229,"discount_percent":0,"notes":null,"id":29025}],"validated_items":[{"id":29020,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29021,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29022,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29024,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":29025,"menu_item_id":9,"quantity":1,"price":229,"discount_percent":0,"notes":null}]} 
[2026-03-15 18:56:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6074,"items_count":5} 
[2026-03-15 18:56:58] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[29023],"items":[{"id":29020,"menu_item_id":113,"quantity":1},{"id":29021,"menu_item_id":396,"quantity":2},{"id":29022,"menu_item_id":61,"quantity":1},{"id":29024,"menu_item_id":65,"quantity":1},{"id":29025,"menu_item_id":9,"quantity":1}]} 
[2026-03-15 18:56:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6074,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["113|1|","396|2|","61|1|","56|1|","65|1|","9|1|"],"new_items_map_keys":["113|1|","396|2|","61|1|","65|1|","9|1|"]} 
[2026-03-15 18:56:58] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6074,"order_number":"AZS-150326-004","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3200,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-15 18:56:58","original_payment_amount":"0.00","grand_total":3124.0,"timestamp":"2026-03-15 18:56:58"} 
[2026-03-15 18:56:58] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6074,"order_number":"AZS-150326-004"} 
[2026-03-15 18:56:58] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-150326-004","replaced_order_id":6074} 
[2026-03-15 18:56:58] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6074,"new_order_id":6076,"order_number":"AZS-150326-004","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3200.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-15 18:56:58","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-15 18:56:58"} 
[2026-03-15 18:56:58] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6076,"items_count":5,"items":[{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":65,"quantity":1,"price":1299.0},{"menu_item_id":9,"quantity":1,"price":229.0}]} 
[2026-03-15 18:56:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6076,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6076}} 
[2026-03-15 18:56:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6076,"item_index":0,"menu_item_id":113} 
[2026-03-15 18:56:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6076,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6076}} 
[2026-03-15 18:56:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6076,"item_index":1,"menu_item_id":396} 
[2026-03-15 18:56:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6076,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6076}} 
[2026-03-15 18:56:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6076,"item_index":2,"menu_item_id":61} 
[2026-03-15 18:56:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6076,"item_index":3,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6076}} 
[2026-03-15 18:56:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6076,"item_index":3,"menu_item_id":65} 
[2026-03-15 18:56:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6076,"item_index":4,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":1,"price":229.0,"discount_percent":0.0,"discount_amount":0.0,"total":229.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6076}} 
[2026-03-15 18:56:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6076,"item_index":4,"menu_item_id":9} 
[2026-03-15 18:56:58] local.ERROR: Error tracking recipe usage for order 6076: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6076, 61, 66, 1, 250, 0.00, Order #AZS-150326-004 - 1x Mint Raita, 2026-03-15 18:56:58, 2026-03-15 18:56:58))  
[2026-03-15 18:56:58] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6074,"new_order_id":6076,"order_number":"AZS-150326-004"} 
[2026-03-15 18:56:59] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6074,"new_order_id":6076,"order_number":"AZS-150326-004","route":"api/orders/6074"} 
[2026-03-15 19:06:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-15T07:06:57.002Z","date_to":"2026-03-15T19:06:57.002Z","per_page":"100"} 
[2026-03-15 19:06:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-150326-005","AZS-150326-004","AZS-150326-003","AZS-150326-002","AZS-150326-001"],"order_statuses":["paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":0,"unique_order_numbers":5} 
[2026-03-15 19:06:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-15T07:06:57.021Z","date_to":"2026-03-15T19:06:57.021Z","per_page":"100"} 
[2026-03-15 19:06:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-150326-005","AZS-150326-004","AZS-150326-003","AZS-150326-002","AZS-150326-001"],"order_statuses":["paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":0,"unique_order_numbers":5} 
[2026-03-15 19:07:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-15T07:06:57.002Z","date_to":"2026-03-15T19:06:57.002Z","per_page":"100"} 
[2026-03-15 19:07:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-150326-005","AZS-150326-004","AZS-150326-003","AZS-150326-002","AZS-150326-001"],"order_statuses":["paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":0,"unique_order_numbers":5} 
[2026-03-15 19:58:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-15T07:58:12.530Z","date_to":"2026-03-15T19:58:12.530Z","per_page":"100"} 
[2026-03-15 19:58:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-150326-005","AZS-150326-004","AZS-150326-003","AZS-150326-002","AZS-150326-001"],"order_statuses":["paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":0,"unique_order_numbers":5} 
[2026-03-15 19:58:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-15T07:58:12.511Z","date_to":"2026-03-15T19:58:12.511Z","per_page":"100"} 
[2026-03-15 19:58:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-150326-005","AZS-150326-004","AZS-150326-003","AZS-150326-002","AZS-150326-001"],"order_statuses":["paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":0,"unique_order_numbers":5} 
[2026-03-15 19:58:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-15T07:58:12.511Z","date_to":"2026-03-15T19:58:12.511Z","per_page":"100"} 
[2026-03-15 19:58:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-150326-005","AZS-150326-004","AZS-150326-003","AZS-150326-002","AZS-150326-001"],"order_statuses":["paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":0,"unique_order_numbers":5} 
[2026-03-15 22:01:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-15T10:01:44.136Z","date_to":"2026-03-15T22:01:44.136Z","per_page":"100"} 
[2026-03-15 22:01:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-150326-005","AZS-150326-004","AZS-150326-003","AZS-150326-002","AZS-150326-001"],"order_statuses":["paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":0,"unique_order_numbers":5} 
[2026-03-15 22:01:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-15T10:01:44.172Z","date_to":"2026-03-15T22:01:44.172Z","per_page":"100"} 
[2026-03-15 22:01:45] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-150326-005","AZS-150326-004","AZS-150326-003","AZS-150326-002","AZS-150326-001"],"order_statuses":["paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":0,"unique_order_numbers":5} 
[2026-03-15 22:01:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-15T10:01:44.136Z","date_to":"2026-03-15T22:01:44.136Z","per_page":"100"} 
[2026-03-15 22:01:45] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-150326-005","AZS-150326-004","AZS-150326-003","AZS-150326-002","AZS-150326-001"],"order_statuses":["paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":0,"unique_order_numbers":5} 
[2026-03-15 23:08:19] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6077,"order_number":"AZS-150326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":600,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-15 23:08:19"} 
[2026-03-15 23:08:19] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6077,"order_number":"AZS-150326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-15 23:08:19"} 
[2026-03-15 23:08:19] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6077,"order_number":"AZS-150326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-15 23:08:19"} 
[2026-03-15 23:08:19] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6077,"order_number":"AZS-150326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-15 23:08:19"} 
[2026-03-15 23:08:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6077,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":29032}],"validated_items":[{"id":29032,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null}]} 
[2026-03-15 23:08:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6077,"items_count":1} 
[2026-03-15 23:08:19] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29032,"menu_item_id":411,"quantity":1}]} 
[2026-03-15 23:08:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6077,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|"]} 
[2026-03-15 23:08:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6077,"order_number":"AZS-150326-006"} 
[2026-03-15 23:08:19] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6077,"order_number":"AZS-150326-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":600,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-15 23:08:19","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-15 23:08:19"} 
[2026-03-15 23:08:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6077,"order_number":"AZS-150326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-15 23:08:19"} 
[2026-03-15 23:08:19] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6077,"order_number":"AZS-150326-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"600.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-15 23:08:19","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"600.00","database_verification_match":true,"timestamp":"2026-03-15 23:08:19"} 
[2026-03-15 23:08:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-15T11:08:22.780Z","date_to":"2026-03-15T23:08:22.780Z","per_page":"100"} 
[2026-03-15 23:08:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-150326-006","AZS-150326-005","AZS-150326-004","AZS-150326-003","AZS-150326-002","AZS-150326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-15 23:08:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-15T11:08:22.796Z","date_to":"2026-03-15T23:08:22.796Z","per_page":"100"} 
[2026-03-15 23:08:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-150326-006","AZS-150326-005","AZS-150326-004","AZS-150326-003","AZS-150326-002","AZS-150326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-15 23:08:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-15T11:08:22.780Z","date_to":"2026-03-15T23:08:22.780Z","per_page":"100"} 
[2026-03-15 23:08:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-150326-006","AZS-150326-005","AZS-150326-004","AZS-150326-003","AZS-150326-002","AZS-150326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-16 08:36:10] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) {"userId":19,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(410): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#52 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:423)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): PDO->prepare('select `id`, `n...')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select `id`, `n...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(410): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 {main}
"} 
[2026-03-16 08:51:12] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) {"userId":19,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(410): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#52 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:423)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): PDO->prepare('select `id`, `n...')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select `id`, `n...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(410): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 {main}
"} 
[2026-03-16 08:54:37] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) {"userId":19,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(410): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#52 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:423)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): PDO->prepare('select `id`, `n...')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select `id`, `n...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(410): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 {main}
"} 
[2026-03-16 08:56:26] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) {"userId":19,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(410): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#52 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:423)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): PDO->prepare('select `id`, `n...')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select `id`, `n...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(410): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 {main}
"} 
[2026-03-16 13:08:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6080,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":29040},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":29040,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-16 13:08:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6080,"items_count":3} 
[2026-03-16 13:08:18] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29040,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":99,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3}]} 
[2026-03-16 13:08:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6080,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","99|1|","396|3|"]} 
[2026-03-16 13:08:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6080,"order_number":"AZS-160326-003"} 
[2026-03-16 13:08:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-003","replaced_order_id":6080} 
[2026-03-16 13:08:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6081,"items_count":3,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"}]} 
[2026-03-16 13:08:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6081,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6081}} 
[2026-03-16 13:08:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6081,"item_index":0,"menu_item_id":417} 
[2026-03-16 13:08:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6081,"item_index":1,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6081}} 
[2026-03-16 13:08:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6081,"item_index":1,"menu_item_id":99} 
[2026-03-16 13:08:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6081,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6081}} 
[2026-03-16 13:08:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6081,"item_index":2,"menu_item_id":396} 
[2026-03-16 13:08:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6080,"new_order_id":6081,"order_number":"AZS-160326-003"} 
[2026-03-16 13:15:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6079,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":29039}],"validated_items":[{"id":29039,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-16 13:15:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6079,"items_count":1} 
[2026-03-16 13:15:41] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29039,"menu_item_id":417,"quantity":1}]} 
[2026-03-16 13:15:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6079,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-16 13:15:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6079,"order_number":"AZS-160326-002"} 
[2026-03-16 13:15:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6079,"order_number":"AZS-160326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-16 13:15:41"} 
[2026-03-16 13:16:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6081,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":29041},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":29042},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":29043},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":29041,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":29042,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":29043,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-16 13:16:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6081,"items_count":4} 
[2026-03-16 13:16:38] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29041,"menu_item_id":417,"quantity":1},{"id":29042,"menu_item_id":99,"quantity":1},{"id":29043,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-16 13:16:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6081,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["417|1|","99|1|","396|3|"],"new_items_map_keys":["417|1|","99|1|","396|3|","2|2|"]} 
[2026-03-16 13:16:38] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6081,"order_number":"AZS-160326-003"} 
[2026-03-16 13:16:39] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-003","replaced_order_id":6081} 
[2026-03-16 13:16:39] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6084,"items_count":4,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-16 13:16:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6084,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6084}} 
[2026-03-16 13:16:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6084,"item_index":0,"menu_item_id":417} 
[2026-03-16 13:16:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6084,"item_index":1,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6084}} 
[2026-03-16 13:16:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6084,"item_index":1,"menu_item_id":99} 
[2026-03-16 13:16:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6084,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6084}} 
[2026-03-16 13:16:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6084,"item_index":2,"menu_item_id":396} 
[2026-03-16 13:16:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6084,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6084}} 
[2026-03-16 13:16:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6084,"item_index":3,"menu_item_id":2} 
[2026-03-16 13:16:39] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6081,"new_order_id":6084,"order_number":"AZS-160326-003"} 
[2026-03-16 13:26:39] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6082,"order_number":"AZS-160326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 13:26:39"} 
[2026-03-16 13:26:39] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6082,"order_number":"AZS-160326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 13:26:39"} 
[2026-03-16 13:26:39] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6082,"order_number":"AZS-160326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 13:26:39"} 
[2026-03-16 13:26:39] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6082,"order_number":"AZS-160326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 13:26:39"} 
[2026-03-16 13:26:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6082,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":29044}],"validated_items":[{"id":29044,"menu_item_id":417,"quantity":2,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-16 13:26:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6082,"items_count":1} 
[2026-03-16 13:26:39] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29044,"menu_item_id":417,"quantity":2}]} 
[2026-03-16 13:26:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6082,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|2|"],"new_items_map_keys":["417|2|"]} 
[2026-03-16 13:26:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6082,"order_number":"AZS-160326-004"} 
[2026-03-16 13:26:39] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6082,"order_number":"AZS-160326-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-16 13:26:39","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-16 13:26:39"} 
[2026-03-16 13:26:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6082,"order_number":"AZS-160326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-16 13:26:39"} 
[2026-03-16 13:26:39] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6082,"order_number":"AZS-160326-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-16 13:26:39","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-16 13:26:39"} 
[2026-03-16 13:34:22] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6079,"order_number":"AZS-160326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 13:34:22"} 
[2026-03-16 13:34:22] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6079,"order_number":"AZS-160326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 13:34:22"} 
[2026-03-16 13:34:22] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6079,"order_number":"AZS-160326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 13:34:22"} 
[2026-03-16 13:34:22] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6079,"order_number":"AZS-160326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 13:34:22"} 
[2026-03-16 13:34:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6079,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":29039}],"validated_items":[{"id":29039,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-16 13:34:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6079,"items_count":1} 
[2026-03-16 13:34:22] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29039,"menu_item_id":417,"quantity":1}]} 
[2026-03-16 13:34:22] local.INFO: PosOrderController::update - Item changes check {"order_id":6079,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-16 13:34:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6079,"order_number":"AZS-160326-002"} 
[2026-03-16 13:34:22] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6079,"order_number":"AZS-160326-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-16 13:34:22","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-16 13:34:22"} 
[2026-03-16 13:34:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6079,"order_number":"AZS-160326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-16 13:34:22"} 
[2026-03-16 13:34:22] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6079,"order_number":"AZS-160326-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-16 13:34:22","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-16 13:34:22"} 
[2026-03-16 13:51:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6078,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":29033},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":29034},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29035},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29036},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29037},{"menu_item_id":417,"quantity":3,"discount_percent":0,"notes":null,"id":29038},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29033,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":29034,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":29035,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29036,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29037,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":29038,"menu_item_id":417,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-16 13:51:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6078,"items_count":7} 
[2026-03-16 13:51:32] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29033,"menu_item_id":97,"quantity":1},{"id":29034,"menu_item_id":396,"quantity":3},{"id":29035,"menu_item_id":61,"quantity":1},{"id":29036,"menu_item_id":56,"quantity":1},{"id":29037,"menu_item_id":5,"quantity":1},{"id":29038,"menu_item_id":417,"quantity":3},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-16 13:51:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6078,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["97|1|","396|3|","61|1|","56|1|","5|1|","417|3|"],"new_items_map_keys":["97|1|","396|3|","61|1|","56|1|","5|1|","417|3|","3|1|"]} 
[2026-03-16 13:51:32] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6078,"order_number":"AZS-160326-001"} 
[2026-03-16 13:51:32] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-001","replaced_order_id":6078} 
[2026-03-16 13:51:32] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6086,"items_count":7,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":417,"quantity":3,"price":"499.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-16 13:51:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6086,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6086}} 
[2026-03-16 13:51:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6086,"item_index":0,"menu_item_id":97} 
[2026-03-16 13:51:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6086,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6086}} 
[2026-03-16 13:51:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6086,"item_index":1,"menu_item_id":396} 
[2026-03-16 13:51:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6086,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6086}} 
[2026-03-16 13:51:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6086,"item_index":2,"menu_item_id":61} 
[2026-03-16 13:51:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6086,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6086}} 
[2026-03-16 13:51:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6086,"item_index":3,"menu_item_id":56} 
[2026-03-16 13:51:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6086,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6086}} 
[2026-03-16 13:51:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6086,"item_index":4,"menu_item_id":5} 
[2026-03-16 13:51:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6086,"item_index":5,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":3,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":1497.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6086}} 
[2026-03-16 13:51:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6086,"item_index":5,"menu_item_id":417} 
[2026-03-16 13:51:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6086,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6086}} 
[2026-03-16 13:51:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6086,"item_index":6,"menu_item_id":3} 
[2026-03-16 13:51:32] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6078,"new_order_id":6086,"order_number":"AZS-160326-001"} 
[2026-03-16 13:52:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6084,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":29048},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":29049},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":29050},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null,"id":29051},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":29048,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":29049,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":29050,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":29051,"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-16 13:52:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6084,"items_count":5} 
[2026-03-16 13:52:57] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29048,"menu_item_id":417,"quantity":1},{"id":29049,"menu_item_id":99,"quantity":1},{"id":29050,"menu_item_id":396,"quantity":3},{"id":29051,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":29,"quantity":2}]} 
[2026-03-16 13:52:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6084,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["417|1|","99|1|","396|3|","2|2|"],"new_items_map_keys":["417|1|","99|1|","396|3|","2|2|","29|2|"]} 
[2026-03-16 13:52:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6084,"order_number":"AZS-160326-003"} 
[2026-03-16 13:52:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-003","replaced_order_id":6084} 
[2026-03-16 13:52:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6087,"items_count":5,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"},{"menu_item_id":29,"quantity":2,"price":"250.00"}]} 
[2026-03-16 13:52:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6087,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6087}} 
[2026-03-16 13:52:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6087,"item_index":0,"menu_item_id":417} 
[2026-03-16 13:52:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6087,"item_index":1,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6087}} 
[2026-03-16 13:52:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6087,"item_index":1,"menu_item_id":99} 
[2026-03-16 13:52:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6087,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6087}} 
[2026-03-16 13:52:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6087,"item_index":2,"menu_item_id":396} 
[2026-03-16 13:52:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6087,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6087}} 
[2026-03-16 13:52:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6087,"item_index":3,"menu_item_id":2} 
[2026-03-16 13:52:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6087,"item_index":4,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6087}} 
[2026-03-16 13:52:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6087,"item_index":4,"menu_item_id":29} 
[2026-03-16 13:52:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6084,"new_order_id":6087,"order_number":"AZS-160326-003"} 
[2026-03-16 13:53:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6087,"item_index":0,"item_id":29048} 
[2026-03-16 13:53:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6087,"item_index":1,"item_id":29049} 
[2026-03-16 13:53:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6087,"item_index":2,"item_id":29050} 
[2026-03-16 13:53:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6087,"item_index":3,"item_id":29051} 
[2026-03-16 13:53:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6087,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":29048},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":29049},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":29050},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":29051},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-16 13:53:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6087,"items_count":5} 
[2026-03-16 13:53:42] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[29065,29066,29067,29068,29069],"items":[{"id":null,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":99,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":2,"quantity":3},{"id":null,"menu_item_id":29,"quantity":2}]} 
[2026-03-16 13:53:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6087,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|1|","99|1|","396|3|","2|2|","29|2|"],"new_items_map_keys":["417|1|","99|1|","396|3|","2|3|","29|2|"]} 
[2026-03-16 13:53:42] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6087,"order_number":"AZS-160326-003"} 
[2026-03-16 13:53:42] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-003","replaced_order_id":6087} 
[2026-03-16 13:53:42] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6088,"items_count":5,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"},{"menu_item_id":29,"quantity":2,"price":"250.00"}]} 
[2026-03-16 13:53:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6088,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6088}} 
[2026-03-16 13:53:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6088,"item_index":0,"menu_item_id":417} 
[2026-03-16 13:53:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6088,"item_index":1,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6088}} 
[2026-03-16 13:53:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6088,"item_index":1,"menu_item_id":99} 
[2026-03-16 13:53:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6088,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6088}} 
[2026-03-16 13:53:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6088,"item_index":2,"menu_item_id":396} 
[2026-03-16 13:53:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6088,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6088}} 
[2026-03-16 13:53:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6088,"item_index":3,"menu_item_id":2} 
[2026-03-16 13:53:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6088,"item_index":4,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6088}} 
[2026-03-16 13:53:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6088,"item_index":4,"menu_item_id":29} 
[2026-03-16 13:53:42] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6087,"new_order_id":6088,"order_number":"AZS-160326-003"} 
[2026-03-16 13:55:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6083,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":29045},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":29046},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":29047},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":29045,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":29046,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":29047,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-16 13:55:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6083,"items_count":4} 
[2026-03-16 13:55:37] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29045,"menu_item_id":417,"quantity":1},{"id":29046,"menu_item_id":96,"quantity":1},{"id":29047,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":4,"quantity":2}]} 
[2026-03-16 13:55:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6083,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["417|1|","96|1|","396|2|"],"new_items_map_keys":["417|1|","96|1|","396|2|","4|2|"]} 
[2026-03-16 13:55:37] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6083,"order_number":"AZS-160326-005"} 
[2026-03-16 13:55:37] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-005","replaced_order_id":6083} 
[2026-03-16 13:55:37] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6089,"items_count":4,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":4,"quantity":2,"price":"90.00"}]} 
[2026-03-16 13:55:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6089,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6089}} 
[2026-03-16 13:55:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6089,"item_index":0,"menu_item_id":417} 
[2026-03-16 13:55:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6089,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6089}} 
[2026-03-16 13:55:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6089,"item_index":1,"menu_item_id":96} 
[2026-03-16 13:55:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6089,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6089}} 
[2026-03-16 13:55:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6089,"item_index":2,"menu_item_id":396} 
[2026-03-16 13:55:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6089,"item_index":3,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":2,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":180.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6089}} 
[2026-03-16 13:55:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6089,"item_index":3,"menu_item_id":4} 
[2026-03-16 13:55:37] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6083,"new_order_id":6089,"order_number":"AZS-160326-005"} 
[2026-03-16 14:00:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T02:00:01.922Z","date_to":"2026-03-16T14:00:01.922Z","per_page":"100"} 
[2026-03-16 14:00:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T02:00:01.940Z","date_to":"2026-03-16T14:00:01.940Z","per_page":"100"} 
[2026-03-16 14:00:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["pending","pending","paid","pending","paid","pending"],"deleted_count":0,"paid_count":2,"unpaid_count":4,"unique_order_numbers":6} 
[2026-03-16 14:00:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["pending","pending","paid","pending","paid","pending"],"deleted_count":0,"paid_count":2,"unpaid_count":4,"unique_order_numbers":6} 
[2026-03-16 14:00:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T02:00:01.922Z","date_to":"2026-03-16T14:00:01.922Z","per_page":"100"} 
[2026-03-16 14:00:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["pending","pending","paid","pending","paid","pending"],"deleted_count":0,"paid_count":2,"unpaid_count":4,"unique_order_numbers":6} 
[2026-03-16 14:06:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6086,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29058},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":29059},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29060},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29061},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29062},{"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null,"id":29063},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29064}],"validated_items":[{"id":29058,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":29059,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":29060,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29061,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29062,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29063,"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null},{"id":29064,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-16 14:06:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6086,"items_count":7} 
[2026-03-16 14:06:39] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29058,"menu_item_id":97,"quantity":1},{"id":29059,"menu_item_id":396,"quantity":3},{"id":29060,"menu_item_id":61,"quantity":1},{"id":29061,"menu_item_id":56,"quantity":1},{"id":29062,"menu_item_id":5,"quantity":1},{"id":29063,"menu_item_id":417,"quantity":3},{"id":29064,"menu_item_id":3,"quantity":1}]} 
[2026-03-16 14:06:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6086,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["97|1|","396|3|","61|1|","56|1|","5|1|","417|3|","3|1|"],"new_items_map_keys":["97|1|","396|3|","61|1|","56|1|","5|1|","417|3|","3|1|"]} 
[2026-03-16 14:06:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6086,"order_number":"AZS-160326-001"} 
[2026-03-16 14:06:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6086,"order_number":"AZS-160326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-16 14:06:39"} 
[2026-03-16 14:07:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6088,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":29070},{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29071},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":29072},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":29073},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":29074}],"validated_items":[{"id":29070,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":29071,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":29072,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":29073,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":29074,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-16 14:07:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6088,"items_count":5} 
[2026-03-16 14:07:18] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29070,"menu_item_id":417,"quantity":1},{"id":29071,"menu_item_id":99,"quantity":1},{"id":29072,"menu_item_id":396,"quantity":3},{"id":29073,"menu_item_id":2,"quantity":3},{"id":29074,"menu_item_id":29,"quantity":2}]} 
[2026-03-16 14:07:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6088,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|1|","99|1|","396|3|","2|3|","29|2|"],"new_items_map_keys":["417|1|","99|1|","396|3|","2|3|","29|2|"]} 
[2026-03-16 14:07:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6088,"order_number":"AZS-160326-003"} 
[2026-03-16 14:07:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6088,"order_number":"AZS-160326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-16 14:07:18"} 
[2026-03-16 14:08:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6089,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":29075},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29076},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29077},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null,"id":29078}],"validated_items":[{"id":29075,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":29076,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29077,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29078,"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-16 14:08:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6089,"items_count":4} 
[2026-03-16 14:08:02] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29075,"menu_item_id":417,"quantity":1},{"id":29076,"menu_item_id":96,"quantity":1},{"id":29077,"menu_item_id":396,"quantity":2},{"id":29078,"menu_item_id":4,"quantity":2}]} 
[2026-03-16 14:08:02] local.INFO: PosOrderController::update - Item changes check {"order_id":6089,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["417|1|","96|1|","396|2|","4|2|"],"new_items_map_keys":["417|1|","96|1|","396|2|","4|2|"]} 
[2026-03-16 14:08:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6089,"order_number":"AZS-160326-005"} 
[2026-03-16 14:08:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6089,"order_number":"AZS-160326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-16 14:08:02"} 
[2026-03-16 14:12:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6086,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29058},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":29059},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29060},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29061},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29062},{"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null,"id":29063},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29064}],"validated_items":[{"id":29058,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":29059,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":29060,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29061,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29062,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29063,"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null},{"id":29064,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-16 14:12:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6086,"items_count":7} 
[2026-03-16 14:12:47] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29058,"menu_item_id":97,"quantity":1},{"id":29059,"menu_item_id":396,"quantity":3},{"id":29060,"menu_item_id":61,"quantity":1},{"id":29061,"menu_item_id":56,"quantity":1},{"id":29062,"menu_item_id":5,"quantity":1},{"id":29063,"menu_item_id":417,"quantity":3},{"id":29064,"menu_item_id":3,"quantity":1}]} 
[2026-03-16 14:12:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6086,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["97|1|","396|3|","61|1|","56|1|","5|1|","417|3|","3|1|"],"new_items_map_keys":["97|1|","396|3|","61|1|","56|1|","5|1|","417|3|","3|1|"]} 
[2026-03-16 14:12:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6086,"order_number":"AZS-160326-001"} 
[2026-03-16 14:12:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6086,"order_number":"AZS-160326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-16 14:12:47"} 
[2026-03-16 14:13:17] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6086,"order_number":"AZS-160326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 14:13:17"} 
[2026-03-16 14:13:17] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6086,"order_number":"AZS-160326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 14:13:17"} 
[2026-03-16 14:13:17] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6086,"order_number":"AZS-160326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 14:13:17"} 
[2026-03-16 14:13:17] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6086,"order_number":"AZS-160326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 14:13:17"} 
[2026-03-16 14:13:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":6086,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29058},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":29059},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29061},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29062},{"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null,"id":29063},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29064}],"validated_items":[{"id":29058,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":29059,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":29061,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29062,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29063,"menu_item_id":417,"quantity":3,"price":499,"discount_percent":0,"notes":null},{"id":29064,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-16 14:13:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6086,"items_count":6} 
[2026-03-16 14:13:17] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[29060],"items":[{"id":29058,"menu_item_id":97,"quantity":1},{"id":29059,"menu_item_id":396,"quantity":3},{"id":29061,"menu_item_id":56,"quantity":1},{"id":29062,"menu_item_id":5,"quantity":1},{"id":29063,"menu_item_id":417,"quantity":3},{"id":29064,"menu_item_id":3,"quantity":1}]} 
[2026-03-16 14:13:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6086,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["97|1|","396|3|","61|1|","56|1|","5|1|","417|3|","3|1|"],"new_items_map_keys":["97|1|","396|3|","56|1|","5|1|","417|3|","3|1|"]} 
[2026-03-16 14:13:17] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6086,"order_number":"AZS-160326-001","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-16 14:13:17","original_payment_amount":"0.00","grand_total":4732.0,"timestamp":"2026-03-16 14:13:17"} 
[2026-03-16 14:13:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6086,"order_number":"AZS-160326-001"} 
[2026-03-16 14:13:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-001","replaced_order_id":6086} 
[2026-03-16 14:13:17] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6086,"new_order_id":6090,"order_number":"AZS-160326-001","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-16 14:13:17","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-16 14:13:17"} 
[2026-03-16 14:13:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6090,"items_count":6,"items":[{"menu_item_id":97,"quantity":1,"price":2299.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":417,"quantity":3,"price":499.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-16 14:13:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6090,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6090}} 
[2026-03-16 14:13:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6090,"item_index":0,"menu_item_id":97} 
[2026-03-16 14:13:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6090,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6090}} 
[2026-03-16 14:13:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6090,"item_index":1,"menu_item_id":396} 
[2026-03-16 14:13:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6090,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6090}} 
[2026-03-16 14:13:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6090,"item_index":2,"menu_item_id":56} 
[2026-03-16 14:13:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6090,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6090}} 
[2026-03-16 14:13:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6090,"item_index":3,"menu_item_id":5} 
[2026-03-16 14:13:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6090,"item_index":4,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":3,"price":499.0,"discount_percent":0.0,"discount_amount":0.0,"total":1497.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6090}} 
[2026-03-16 14:13:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6090,"item_index":4,"menu_item_id":417} 
[2026-03-16 14:13:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6090,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6090}} 
[2026-03-16 14:13:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6090,"item_index":5,"menu_item_id":3} 
[2026-03-16 14:13:17] local.ERROR: Error tracking recipe usage for order 6090: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6090, 56, 81, 1, 100, 100.00, Order #AZS-160326-001 - 1x Fresh Salad, 2026-03-16 14:13:17, 2026-03-16 14:13:17))  
[2026-03-16 14:13:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6086,"new_order_id":6090,"order_number":"AZS-160326-001"} 
[2026-03-16 14:13:18] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6086,"new_order_id":6090,"order_number":"AZS-160326-001","route":"api/orders/6086"} 
[2026-03-16 14:13:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6088,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":29070},{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29071},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":29072},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":29073},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":29074}],"validated_items":[{"id":29070,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":29071,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":29072,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":29073,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":29074,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-16 14:13:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6088,"items_count":5} 
[2026-03-16 14:13:30] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29070,"menu_item_id":417,"quantity":1},{"id":29071,"menu_item_id":99,"quantity":1},{"id":29072,"menu_item_id":396,"quantity":3},{"id":29073,"menu_item_id":2,"quantity":3},{"id":29074,"menu_item_id":29,"quantity":2}]} 
[2026-03-16 14:13:30] local.INFO: PosOrderController::update - Item changes check {"order_id":6088,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|1|","99|1|","396|3|","2|3|","29|2|"],"new_items_map_keys":["417|1|","99|1|","396|3|","2|3|","29|2|"]} 
[2026-03-16 14:13:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6088,"order_number":"AZS-160326-003"} 
[2026-03-16 14:13:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6088,"order_number":"AZS-160326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-16 14:13:30"} 
[2026-03-16 14:13:47] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6088,"order_number":"AZS-160326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 14:13:47"} 
[2026-03-16 14:13:47] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6088,"order_number":"AZS-160326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 14:13:47"} 
[2026-03-16 14:13:47] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6088,"order_number":"AZS-160326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 14:13:47"} 
[2026-03-16 14:13:47] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6088,"order_number":"AZS-160326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 14:13:47"} 
[2026-03-16 14:13:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6088,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":29070},{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29071},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":29072},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":29073},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":29074}],"validated_items":[{"id":29070,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":29071,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":29072,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":29073,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":29074,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-16 14:13:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6088,"items_count":5} 
[2026-03-16 14:13:47] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29070,"menu_item_id":417,"quantity":1},{"id":29071,"menu_item_id":99,"quantity":1},{"id":29072,"menu_item_id":396,"quantity":3},{"id":29073,"menu_item_id":2,"quantity":3},{"id":29074,"menu_item_id":29,"quantity":2}]} 
[2026-03-16 14:13:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6088,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["417|1|","99|1|","396|3|","2|3|","29|2|"],"new_items_map_keys":["417|1|","99|1|","396|3|","2|3|","29|2|"]} 
[2026-03-16 14:13:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6088,"order_number":"AZS-160326-003"} 
[2026-03-16 14:13:47] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6088,"order_number":"AZS-160326-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-16 14:13:47","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-16 14:13:47"} 
[2026-03-16 14:13:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6088,"order_number":"AZS-160326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-16 14:13:47"} 
[2026-03-16 14:13:47] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6088,"order_number":"AZS-160326-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-16 14:13:47","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4000.00","database_verification_match":true,"timestamp":"2026-03-16 14:13:47"} 
[2026-03-16 14:13:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6089,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":29075},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29076},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29077},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null,"id":29078}],"validated_items":[{"id":29075,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":29076,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29077,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29078,"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-16 14:13:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6089,"items_count":4} 
[2026-03-16 14:13:58] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29075,"menu_item_id":417,"quantity":1},{"id":29076,"menu_item_id":96,"quantity":1},{"id":29077,"menu_item_id":396,"quantity":2},{"id":29078,"menu_item_id":4,"quantity":2}]} 
[2026-03-16 14:13:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6089,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["417|1|","96|1|","396|2|","4|2|"],"new_items_map_keys":["417|1|","96|1|","396|2|","4|2|"]} 
[2026-03-16 14:13:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6089,"order_number":"AZS-160326-005"} 
[2026-03-16 14:13:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6089,"order_number":"AZS-160326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-16 14:13:58"} 
[2026-03-16 14:14:10] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6089,"order_number":"AZS-160326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 14:14:10"} 
[2026-03-16 14:14:10] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6089,"order_number":"AZS-160326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 14:14:10"} 
[2026-03-16 14:14:10] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6089,"order_number":"AZS-160326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 14:14:10"} 
[2026-03-16 14:14:10] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6089,"order_number":"AZS-160326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 14:14:10"} 
[2026-03-16 14:14:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6089,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":29075},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29076},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29077},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null,"id":29078}],"validated_items":[{"id":29075,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":29076,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29077,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29078,"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-16 14:14:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6089,"items_count":4} 
[2026-03-16 14:14:10] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29075,"menu_item_id":417,"quantity":1},{"id":29076,"menu_item_id":96,"quantity":1},{"id":29077,"menu_item_id":396,"quantity":2},{"id":29078,"menu_item_id":4,"quantity":2}]} 
[2026-03-16 14:14:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6089,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["417|1|","96|1|","396|2|","4|2|"],"new_items_map_keys":["417|1|","96|1|","396|2|","4|2|"]} 
[2026-03-16 14:14:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6089,"order_number":"AZS-160326-005"} 
[2026-03-16 14:14:10] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6089,"order_number":"AZS-160326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-16 14:14:10","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-16 14:14:10"} 
[2026-03-16 14:14:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6089,"order_number":"AZS-160326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-16 14:14:10"} 
[2026-03-16 14:14:10] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6089,"order_number":"AZS-160326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-16 14:14:10","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-16 14:14:10"} 
[2026-03-16 14:14:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T02:14:17.221Z","date_to":"2026-03-16T14:14:17.221Z","per_page":"100"} 
[2026-03-16 14:14:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":1,"unique_order_numbers":6} 
[2026-03-16 14:14:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T02:14:17.245Z","date_to":"2026-03-16T14:14:17.245Z","per_page":"100"} 
[2026-03-16 14:14:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":1,"unique_order_numbers":6} 
[2026-03-16 14:14:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T02:14:17.221Z","date_to":"2026-03-16T14:14:17.221Z","per_page":"100"} 
[2026-03-16 14:14:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":1,"unique_order_numbers":6} 
[2026-03-16 14:46:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6085,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":29052},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":29053},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":29054},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29055},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29056},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":29057},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29052,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":29053,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":29054,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":29055,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29056,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":29057,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-16 14:46:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6085,"items_count":7} 
[2026-03-16 14:46:36] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29052,"menu_item_id":62,"quantity":1},{"id":29053,"menu_item_id":64,"quantity":1},{"id":29054,"menu_item_id":396,"quantity":2},{"id":29055,"menu_item_id":61,"quantity":1},{"id":29056,"menu_item_id":5,"quantity":1},{"id":29057,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-16 14:46:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6085,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["62|1|","64|1|","396|2|","61|1|","5|1|","403|1|"],"new_items_map_keys":["62|1|","64|1|","396|2|","61|1|","5|1|","403|1|","2|1|"]} 
[2026-03-16 14:46:36] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6085,"order_number":"AZS-160326-006"} 
[2026-03-16 14:46:36] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-006","replaced_order_id":6085} 
[2026-03-16 14:46:36] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6092,"items_count":7,"items":[{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-16 14:46:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6092,"item_index":0,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6092}} 
[2026-03-16 14:46:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6092,"item_index":0,"menu_item_id":62} 
[2026-03-16 14:46:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6092,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6092}} 
[2026-03-16 14:46:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6092,"item_index":1,"menu_item_id":64} 
[2026-03-16 14:46:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6092,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6092}} 
[2026-03-16 14:46:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6092,"item_index":2,"menu_item_id":396} 
[2026-03-16 14:46:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6092,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6092}} 
[2026-03-16 14:46:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6092,"item_index":3,"menu_item_id":61} 
[2026-03-16 14:46:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6092,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6092}} 
[2026-03-16 14:46:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6092,"item_index":4,"menu_item_id":5} 
[2026-03-16 14:46:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6092,"item_index":5,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6092}} 
[2026-03-16 14:46:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6092,"item_index":5,"menu_item_id":403} 
[2026-03-16 14:46:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6092,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6092}} 
[2026-03-16 14:46:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6092,"item_index":6,"menu_item_id":2} 
[2026-03-16 14:46:36] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6085,"new_order_id":6092,"order_number":"AZS-160326-006"} 
[2026-03-16 14:46:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6092,"item_index":0,"item_id":29052} 
[2026-03-16 14:46:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6092,"item_index":1,"item_id":29053} 
[2026-03-16 14:46:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6092,"item_index":2,"item_id":29054} 
[2026-03-16 14:46:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6092,"item_index":3,"item_id":29055} 
[2026-03-16 14:46:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6092,"item_index":4,"item_id":29056} 
[2026-03-16 14:46:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6092,"item_index":5,"item_id":29057} 
[2026-03-16 14:46:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":6092,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":29052},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":29053},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29054},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29055},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29056},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":29057},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-16 14:46:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6092,"items_count":7} 
[2026-03-16 14:46:49] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[29090,29091,29092,29093,29094,29095,29096],"items":[{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-16 14:46:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6092,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["62|1|","64|1|","396|2|","61|1|","5|1|","403|1|","2|1|"],"new_items_map_keys":["62|1|","64|1|","396|2|","61|1|","5|1|","403|1|","2|1|"]} 
[2026-03-16 14:46:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6092,"order_number":"AZS-160326-006"} 
[2026-03-16 14:46:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6092,"order_number":"AZS-160326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-16 14:46:49"} 
[2026-03-16 14:52:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":6091,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null,"id":29085},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":29086},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29088},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29089}],"validated_items":[{"id":29085,"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"id":29086,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":29088,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29089,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-16 14:52:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6091,"items_count":4} 
[2026-03-16 14:52:46] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[29087],"items":[{"id":29085,"menu_item_id":50,"quantity":3},{"id":29086,"menu_item_id":98,"quantity":1},{"id":29088,"menu_item_id":56,"quantity":1},{"id":29089,"menu_item_id":5,"quantity":1}]} 
[2026-03-16 14:52:46] local.INFO: PosOrderController::update - Item changes check {"order_id":6091,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["50|3|","98|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["50|3|","98|1|","56|1|","5|1|"]} 
[2026-03-16 14:52:46] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6091,"order_number":"AZS-160326-007"} 
[2026-03-16 14:52:46] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-007","replaced_order_id":6091} 
[2026-03-16 14:52:46] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6094,"items_count":4,"items":[{"menu_item_id":50,"quantity":3,"price":"129.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-16 14:52:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6094,"item_index":0,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6094}} 
[2026-03-16 14:52:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6094,"item_index":0,"menu_item_id":50} 
[2026-03-16 14:52:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6094,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6094}} 
[2026-03-16 14:52:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6094,"item_index":1,"menu_item_id":98} 
[2026-03-16 14:52:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6094,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6094}} 
[2026-03-16 14:52:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6094,"item_index":2,"menu_item_id":56} 
[2026-03-16 14:52:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6094,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6094}} 
[2026-03-16 14:52:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6094,"item_index":3,"menu_item_id":5} 
[2026-03-16 14:52:46] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6091,"new_order_id":6094,"order_number":"AZS-160326-007"} 
[2026-03-16 14:55:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6096,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":29113},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29114},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29115}],"validated_items":[{"id":29113,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":29114,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29115,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-16 14:55:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6096,"items_count":3} 
[2026-03-16 14:55:47] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29113,"menu_item_id":105,"quantity":1},{"id":29114,"menu_item_id":396,"quantity":2},{"id":29115,"menu_item_id":61,"quantity":1}]} 
[2026-03-16 14:55:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6096,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["105|1|","396|2|","61|1|"],"new_items_map_keys":["105|1|","396|2|","61|1|"]} 
[2026-03-16 14:55:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6096,"order_number":"AZS-160326-010"} 
[2026-03-16 14:55:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6096,"order_number":"AZS-160326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-16 14:55:47"} 
[2026-03-16 14:55:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6095,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":69,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":29106},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29107},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29108},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29109},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29110},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29111},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":29112}],"validated_items":[{"id":29106,"menu_item_id":69,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":29107,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29108,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29109,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29110,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29111,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29112,"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null}]} 
[2026-03-16 14:55:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6095,"items_count":7} 
[2026-03-16 14:55:59] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29106,"menu_item_id":69,"quantity":1},{"id":29107,"menu_item_id":113,"quantity":1},{"id":29108,"menu_item_id":396,"quantity":2},{"id":29109,"menu_item_id":61,"quantity":1},{"id":29110,"menu_item_id":56,"quantity":1},{"id":29111,"menu_item_id":5,"quantity":1},{"id":29112,"menu_item_id":83,"quantity":1}]} 
[2026-03-16 14:55:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6095,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["69|1|","113|1|","396|2|","61|1|","56|1|","5|1|","83|1|"],"new_items_map_keys":["69|1|","113|1|","396|2|","61|1|","56|1|","5|1|","83|1|"]} 
[2026-03-16 14:55:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6095,"order_number":"AZS-160326-009"} 
[2026-03-16 14:55:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6095,"order_number":"AZS-160326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-16 14:55:59"} 
[2026-03-16 14:56:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6095,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":69,"quantity":1,"discount_percent":0,"notes":null,"id":29106},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":29107},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":29108},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29109},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29110},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29111},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null,"id":29112}],"validated_items":[{"id":29106,"menu_item_id":69,"quantity":1,"discount_percent":0,"notes":null},{"id":29107,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":29108,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":29109,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29110,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29111,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":29112,"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-16 14:56:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6095,"items_count":7} 
[2026-03-16 14:56:09] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29106,"menu_item_id":69,"quantity":1},{"id":29107,"menu_item_id":113,"quantity":1},{"id":29108,"menu_item_id":396,"quantity":2},{"id":29109,"menu_item_id":61,"quantity":1},{"id":29110,"menu_item_id":56,"quantity":1},{"id":29111,"menu_item_id":5,"quantity":1},{"id":29112,"menu_item_id":83,"quantity":1}]} 
[2026-03-16 14:56:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6095,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["69|1|","113|1|","396|2|","61|1|","56|1|","5|1|","83|1|"],"new_items_map_keys":["69|1|","113|1|","396|2|","61|1|","56|1|","5|1|","83|1|"]} 
[2026-03-16 14:56:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6095,"order_number":"AZS-160326-009"} 
[2026-03-16 14:56:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6095,"order_number":"AZS-160326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-16 14:56:09"} 
[2026-03-16 15:01:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6096,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":29113},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29114},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29115}],"validated_items":[{"id":29113,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":29114,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29115,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-16 15:01:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6096,"items_count":3} 
[2026-03-16 15:01:35] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29113,"menu_item_id":105,"quantity":1},{"id":29114,"menu_item_id":396,"quantity":2},{"id":29115,"menu_item_id":61,"quantity":1}]} 
[2026-03-16 15:01:35] local.INFO: PosOrderController::update - Item changes check {"order_id":6096,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["105|1|","396|2|","61|1|"],"new_items_map_keys":["105|1|","396|2|","61|1|"]} 
[2026-03-16 15:01:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6096,"order_number":"AZS-160326-010"} 
[2026-03-16 15:01:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6096,"order_number":"AZS-160326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-16 15:01:35"} 
[2026-03-16 15:02:14] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6096,"order_number":"AZS-160326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 15:02:14"} 
[2026-03-16 15:02:14] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6096,"order_number":"AZS-160326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 15:02:14"} 
[2026-03-16 15:02:14] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6096,"order_number":"AZS-160326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 15:02:14"} 
[2026-03-16 15:02:14] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6096,"order_number":"AZS-160326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 15:02:14"} 
[2026-03-16 15:02:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6096,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":29113},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29114},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29115}],"validated_items":[{"id":29113,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":29114,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29115,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-16 15:02:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6096,"items_count":3} 
[2026-03-16 15:02:14] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29113,"menu_item_id":105,"quantity":1},{"id":29114,"menu_item_id":396,"quantity":2},{"id":29115,"menu_item_id":61,"quantity":1}]} 
[2026-03-16 15:02:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6096,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["105|1|","396|2|","61|1|"],"new_items_map_keys":["105|1|","396|2|","61|1|"]} 
[2026-03-16 15:02:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6096,"order_number":"AZS-160326-010"} 
[2026-03-16 15:02:14] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6096,"order_number":"AZS-160326-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-16 15:02:14","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-16 15:02:14"} 
[2026-03-16 15:02:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6096,"order_number":"AZS-160326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-16 15:02:14"} 
[2026-03-16 15:02:14] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6096,"order_number":"AZS-160326-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-16 15:02:14","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-03-16 15:02:14"} 
[2026-03-16 15:02:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6092,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":29090},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":29091},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29092},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29093},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29094},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":29095},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":29096}],"validated_items":[{"id":29090,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":29091,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":29092,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29093,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29094,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29095,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":29096,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-16 15:02:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6092,"items_count":7} 
[2026-03-16 15:02:37] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29090,"menu_item_id":62,"quantity":1},{"id":29091,"menu_item_id":64,"quantity":1},{"id":29092,"menu_item_id":396,"quantity":2},{"id":29093,"menu_item_id":61,"quantity":1},{"id":29094,"menu_item_id":5,"quantity":1},{"id":29095,"menu_item_id":403,"quantity":1},{"id":29096,"menu_item_id":2,"quantity":1}]} 
[2026-03-16 15:02:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6092,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["62|1|","64|1|","396|2|","61|1|","5|1|","403|1|","2|1|"],"new_items_map_keys":["62|1|","64|1|","396|2|","61|1|","5|1|","403|1|","2|1|"]} 
[2026-03-16 15:02:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6092,"order_number":"AZS-160326-006"} 
[2026-03-16 15:02:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6092,"order_number":"AZS-160326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-16 15:02:37"} 
[2026-03-16 15:03:04] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6092,"order_number":"AZS-160326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 15:03:04"} 
[2026-03-16 15:03:04] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6092,"order_number":"AZS-160326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 15:03:04"} 
[2026-03-16 15:03:04] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6092,"order_number":"AZS-160326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 15:03:04"} 
[2026-03-16 15:03:04] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6092,"order_number":"AZS-160326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 15:03:04"} 
[2026-03-16 15:03:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6092,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":29090},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":29091},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29092},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29093},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29094},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":29095},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":29096}],"validated_items":[{"id":29090,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":29091,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":29092,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29093,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29094,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29095,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":29096,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-16 15:03:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6092,"items_count":7} 
[2026-03-16 15:03:04] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29090,"menu_item_id":62,"quantity":1},{"id":29091,"menu_item_id":64,"quantity":1},{"id":29092,"menu_item_id":396,"quantity":2},{"id":29093,"menu_item_id":61,"quantity":1},{"id":29094,"menu_item_id":5,"quantity":1},{"id":29095,"menu_item_id":403,"quantity":1},{"id":29096,"menu_item_id":2,"quantity":1}]} 
[2026-03-16 15:03:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6092,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["62|1|","64|1|","396|2|","61|1|","5|1|","403|1|","2|1|"],"new_items_map_keys":["62|1|","64|1|","396|2|","61|1|","5|1|","403|1|","2|1|"]} 
[2026-03-16 15:03:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6092,"order_number":"AZS-160326-006"} 
[2026-03-16 15:03:04] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6092,"order_number":"AZS-160326-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-16 15:03:04","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-16 15:03:04"} 
[2026-03-16 15:03:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6092,"order_number":"AZS-160326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-16 15:03:04"} 
[2026-03-16 15:03:04] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6092,"order_number":"AZS-160326-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-16 15:03:04","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-16 15:03:04"} 
[2026-03-16 15:03:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T03:03:10.232Z","date_to":"2026-03-16T15:03:10.232Z","per_page":"100"} 
[2026-03-16 15:03:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","pending","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":3,"unique_order_numbers":10} 
[2026-03-16 15:03:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T03:03:10.251Z","date_to":"2026-03-16T15:03:10.251Z","per_page":"100"} 
[2026-03-16 15:03:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","pending","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":3,"unique_order_numbers":10} 
[2026-03-16 15:03:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T03:03:10.232Z","date_to":"2026-03-16T15:03:10.232Z","per_page":"100"} 
[2026-03-16 15:03:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","pending","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":3,"unique_order_numbers":10} 
[2026-03-16 15:04:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6094,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null,"id":29102},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":29103},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29104},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29105},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":29102,"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"id":29103,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":29104,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29105,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-16 15:04:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6094,"items_count":5} 
[2026-03-16 15:04:45] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29102,"menu_item_id":50,"quantity":3},{"id":29103,"menu_item_id":98,"quantity":1},{"id":29104,"menu_item_id":56,"quantity":1},{"id":29105,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-03-16 15:04:45] local.INFO: PosOrderController::update - Item changes check {"order_id":6094,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["50|3|","98|1|","56|1|","5|1|"],"new_items_map_keys":["50|3|","98|1|","56|1|","5|1|","2|3|"]} 
[2026-03-16 15:04:45] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6094,"order_number":"AZS-160326-007"} 
[2026-03-16 15:04:45] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-007","replaced_order_id":6094} 
[2026-03-16 15:04:45] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6097,"items_count":5,"items":[{"menu_item_id":50,"quantity":3,"price":"129.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"}]} 
[2026-03-16 15:04:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6097,"item_index":0,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6097}} 
[2026-03-16 15:04:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6097,"item_index":0,"menu_item_id":50} 
[2026-03-16 15:04:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6097,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6097}} 
[2026-03-16 15:04:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6097,"item_index":1,"menu_item_id":98} 
[2026-03-16 15:04:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6097,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6097}} 
[2026-03-16 15:04:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6097,"item_index":2,"menu_item_id":56} 
[2026-03-16 15:04:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6097,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6097}} 
[2026-03-16 15:04:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6097,"item_index":3,"menu_item_id":5} 
[2026-03-16 15:04:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6097,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6097}} 
[2026-03-16 15:04:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6097,"item_index":4,"menu_item_id":2} 
[2026-03-16 15:04:45] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6094,"new_order_id":6097,"order_number":"AZS-160326-007"} 
[2026-03-16 15:15:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6097,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":29116},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29117},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29118},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29119},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":29120}],"validated_items":[{"id":29116,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"id":29117,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29118,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29119,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29120,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-16 15:15:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6097,"items_count":5} 
[2026-03-16 15:15:43] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29116,"menu_item_id":50,"quantity":3},{"id":29117,"menu_item_id":98,"quantity":1},{"id":29118,"menu_item_id":56,"quantity":1},{"id":29119,"menu_item_id":5,"quantity":1},{"id":29120,"menu_item_id":2,"quantity":3}]} 
[2026-03-16 15:15:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6097,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["50|3|","98|1|","56|1|","5|1|","2|3|"],"new_items_map_keys":["50|3|","98|1|","56|1|","5|1|","2|3|"]} 
[2026-03-16 15:15:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6097,"order_number":"AZS-160326-007"} 
[2026-03-16 15:15:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6097,"order_number":"AZS-160326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-16 15:15:43"} 
[2026-03-16 15:16:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":6097,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":29116},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29117},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29118},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":29120}],"validated_items":[{"id":29116,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"id":29117,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29118,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29120,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-16 15:16:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6097,"items_count":4} 
[2026-03-16 15:16:35] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[29119],"items":[{"id":29116,"menu_item_id":50,"quantity":3},{"id":29117,"menu_item_id":98,"quantity":1},{"id":29118,"menu_item_id":56,"quantity":1},{"id":29120,"menu_item_id":2,"quantity":3}]} 
[2026-03-16 15:16:35] local.INFO: PosOrderController::update - Item changes check {"order_id":6097,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["50|3|","98|1|","56|1|","5|1|","2|3|"],"new_items_map_keys":["50|3|","98|1|","56|1|","2|3|"]} 
[2026-03-16 15:16:35] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6097,"order_number":"AZS-160326-007"} 
[2026-03-16 15:16:35] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-007","replaced_order_id":6097} 
[2026-03-16 15:16:35] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6099,"items_count":4,"items":[{"menu_item_id":50,"quantity":3,"price":129.0},{"menu_item_id":98,"quantity":1,"price":1199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":2,"quantity":3,"price":130.0}]} 
[2026-03-16 15:16:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6099,"item_index":0,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6099}} 
[2026-03-16 15:16:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6099,"item_index":0,"menu_item_id":50} 
[2026-03-16 15:16:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6099,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6099}} 
[2026-03-16 15:16:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6099,"item_index":1,"menu_item_id":98} 
[2026-03-16 15:16:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6099,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6099}} 
[2026-03-16 15:16:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6099,"item_index":2,"menu_item_id":56} 
[2026-03-16 15:16:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6099,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6099}} 
[2026-03-16 15:16:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6099,"item_index":3,"menu_item_id":2} 
[2026-03-16 15:16:35] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6097,"new_order_id":6099,"order_number":"AZS-160326-007"} 
[2026-03-16 15:16:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6099,"item_index":0,"item_id":29116} 
[2026-03-16 15:16:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6099,"item_index":1,"item_id":29117} 
[2026-03-16 15:16:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6099,"item_index":2,"item_id":29118} 
[2026-03-16 15:16:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6099,"item_index":3,"item_id":29120} 
[2026-03-16 15:16:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6099,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":29116},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29117},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29118},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":29120}],"validated_items":[{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-16 15:16:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6099,"items_count":4} 
[2026-03-16 15:16:41] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[29122,29123,29124,29125],"items":[{"id":null,"menu_item_id":50,"quantity":3},{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-03-16 15:16:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6099,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["50|3|","98|1|","56|1|","2|3|"],"new_items_map_keys":["50|3|","98|1|","56|1|","2|3|"]} 
[2026-03-16 15:16:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6099,"order_number":"AZS-160326-007"} 
[2026-03-16 15:16:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6099,"order_number":"AZS-160326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-16 15:16:41"} 
[2026-03-16 15:20:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6099,"item_index":0,"item_id":29116} 
[2026-03-16 15:20:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6099,"item_index":1,"item_id":29117} 
[2026-03-16 15:20:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6099,"item_index":2,"item_id":29118} 
[2026-03-16 15:20:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6099,"item_index":3,"item_id":29120} 
[2026-03-16 15:20:40] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6099,"order_number":"AZS-160326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2284,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 15:20:40"} 
[2026-03-16 15:20:40] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6099,"order_number":"AZS-160326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2284,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 15:20:40"} 
[2026-03-16 15:20:40] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6099,"order_number":"AZS-160326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2284,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 15:20:40"} 
[2026-03-16 15:20:40] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6099,"order_number":"AZS-160326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2284,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 15:20:40"} 
[2026-03-16 15:20:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6099,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":29116},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29117},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29118},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":29120}],"validated_items":[{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-16 15:20:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6099,"items_count":4} 
[2026-03-16 15:20:40] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[29122,29123,29124,29125],"items":[{"id":null,"menu_item_id":50,"quantity":3},{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-03-16 15:20:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6099,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["50|3|","98|1|","56|1|","2|3|"],"new_items_map_keys":["50|3|","98|1|","56|1|","2|3|"]} 
[2026-03-16 15:20:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6099,"order_number":"AZS-160326-007"} 
[2026-03-16 15:20:40] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6099,"order_number":"AZS-160326-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2284,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-16 15:20:40","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-16 15:20:40"} 
[2026-03-16 15:20:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6099,"order_number":"AZS-160326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-16 15:20:40"} 
[2026-03-16 15:20:40] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6099,"order_number":"AZS-160326-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2284.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-16 15:20:40","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2284,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2284.00","database_verification_match":true,"timestamp":"2026-03-16 15:20:40"} 
[2026-03-16 15:45:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6098,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":6,"discount_percent":0,"notes":null,"id":29121},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29121,"menu_item_id":13,"quantity":6,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-16 15:45:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6098,"items_count":2} 
[2026-03-16 15:45:25] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29121,"menu_item_id":13,"quantity":6},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-16 15:45:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6098,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["13|6|"],"new_items_map_keys":["13|6|","5|1|"]} 
[2026-03-16 15:45:25] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6098,"order_number":"AZS-160326-011"} 
[2026-03-16 15:45:25] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-011","replaced_order_id":6098} 
[2026-03-16 15:45:25] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6100,"items_count":2,"items":[{"menu_item_id":13,"quantity":6,"price":"249.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-16 15:45:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6100,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":6,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":1494.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6100}} 
[2026-03-16 15:45:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6100,"item_index":0,"menu_item_id":13} 
[2026-03-16 15:45:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6100,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6100}} 
[2026-03-16 15:45:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6100,"item_index":1,"menu_item_id":5} 
[2026-03-16 15:45:25] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6098,"new_order_id":6100,"order_number":"AZS-160326-011"} 
[2026-03-16 15:46:58] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6100,"item_index":0,"item_id":29121} 
[2026-03-16 15:46:58] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6100,"order_number":"AZS-160326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 15:46:58"} 
[2026-03-16 15:46:58] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6100,"order_number":"AZS-160326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 15:46:58"} 
[2026-03-16 15:46:58] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6100,"order_number":"AZS-160326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 15:46:58"} 
[2026-03-16 15:46:58] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6100,"order_number":"AZS-160326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 15:46:58"} 
[2026-03-16 15:46:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":6100,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":6,"price":249,"discount_percent":0,"notes":null,"id":29121},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":13,"quantity":6,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-16 15:46:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6100,"items_count":2} 
[2026-03-16 15:46:58] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[29126,29127],"items":[{"id":null,"menu_item_id":13,"quantity":6},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-16 15:46:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6100,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|6|","5|1|"],"new_items_map_keys":["13|6|","5|1|"]} 
[2026-03-16 15:46:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6100,"order_number":"AZS-160326-011"} 
[2026-03-16 15:46:58] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6100,"order_number":"AZS-160326-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-16 15:46:58","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-16 15:46:58"} 
[2026-03-16 15:46:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6100,"order_number":"AZS-160326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-16 15:46:58"} 
[2026-03-16 15:46:58] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6100,"order_number":"AZS-160326-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-16 15:46:58","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-16 15:46:58"} 
[2026-03-16 15:49:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6095,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":69,"quantity":1,"discount_percent":0,"notes":null,"id":29106},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":29107},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":29108},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29109},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29110},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29111},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null,"id":29112},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29106,"menu_item_id":69,"quantity":1,"discount_percent":0,"notes":null},{"id":29107,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":29108,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":29109,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29110,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29111,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":29112,"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-16 15:49:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6095,"items_count":8} 
[2026-03-16 15:49:50] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29106,"menu_item_id":69,"quantity":1},{"id":29107,"menu_item_id":113,"quantity":1},{"id":29108,"menu_item_id":396,"quantity":2},{"id":29109,"menu_item_id":61,"quantity":1},{"id":29110,"menu_item_id":56,"quantity":1},{"id":29111,"menu_item_id":5,"quantity":1},{"id":29112,"menu_item_id":83,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-16 15:49:50] local.INFO: PosOrderController::update - Item changes check {"order_id":6095,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["69|1|","113|1|","396|2|","61|1|","56|1|","5|1|","83|1|"],"new_items_map_keys":["69|1|","113|1|","396|2|","61|1|","56|1|","5|1|","83|1|","2|1|"]} 
[2026-03-16 15:49:50] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6095,"order_number":"AZS-160326-009"} 
[2026-03-16 15:49:50] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-009","replaced_order_id":6095} 
[2026-03-16 15:49:50] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6101,"items_count":8,"items":[{"menu_item_id":69,"quantity":1,"price":"1699.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":83,"quantity":1,"price":"649.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-16 15:49:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6101,"item_index":0,"item_data":{"menu_item_id":69,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Green boti","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6101}} 
[2026-03-16 15:49:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6101,"item_index":0,"menu_item_id":69} 
[2026-03-16 15:49:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6101,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6101}} 
[2026-03-16 15:49:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6101,"item_index":1,"menu_item_id":113} 
[2026-03-16 15:49:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6101,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6101}} 
[2026-03-16 15:49:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6101,"item_index":2,"menu_item_id":396} 
[2026-03-16 15:49:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6101,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6101}} 
[2026-03-16 15:49:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6101,"item_index":3,"menu_item_id":61} 
[2026-03-16 15:49:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6101,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6101}} 
[2026-03-16 15:49:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6101,"item_index":4,"menu_item_id":56} 
[2026-03-16 15:49:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6101,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6101}} 
[2026-03-16 15:49:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6101,"item_index":5,"menu_item_id":5} 
[2026-03-16 15:49:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6101,"item_index":6,"item_data":{"menu_item_id":83,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Chicken Nuggets","quantity":1,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":649.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6101}} 
[2026-03-16 15:49:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6101,"item_index":6,"menu_item_id":83} 
[2026-03-16 15:49:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6101,"item_index":7,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6101}} 
[2026-03-16 15:49:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6101,"item_index":7,"menu_item_id":2} 
[2026-03-16 15:49:50] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6095,"new_order_id":6101,"order_number":"AZS-160326-009"} 
[2026-03-16 15:51:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T03:51:56.726Z","date_to":"2026-03-16T15:51:56.726Z","per_page":"100"} 
[2026-03-16 15:51:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T03:51:56.738Z","date_to":"2026-03-16T15:51:56.738Z","per_page":"100"} 
[2026-03-16 15:51:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":2,"unique_order_numbers":11} 
[2026-03-16 15:51:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":2,"unique_order_numbers":11} 
[2026-03-16 15:51:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T03:51:56.726Z","date_to":"2026-03-16T15:51:56.726Z","per_page":"100"} 
[2026-03-16 15:51:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":2,"unique_order_numbers":11} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6101,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":69,"quantity":1,"discount_percent":0,"notes":null,"id":29128},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":29129},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":29130},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29131},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29132},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29133},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null,"id":29134},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":29135},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":29128,"menu_item_id":69,"quantity":1,"discount_percent":0,"notes":null},{"id":29129,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":29130,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":29131,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29132,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29133,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":29134,"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"id":29135,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6101,"items_count":9} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29128,"menu_item_id":69,"quantity":1},{"id":29129,"menu_item_id":113,"quantity":1},{"id":29130,"menu_item_id":396,"quantity":2},{"id":29131,"menu_item_id":61,"quantity":1},{"id":29132,"menu_item_id":56,"quantity":1},{"id":29133,"menu_item_id":5,"quantity":1},{"id":29134,"menu_item_id":83,"quantity":1},{"id":29135,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6101,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["69|1|","113|1|","396|2|","61|1|","56|1|","5|1|","83|1|","2|1|"],"new_items_map_keys":["69|1|","113|1|","396|2|","61|1|","56|1|","5|1|","83|1|","2|1|","13|2|"]} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6101,"order_number":"AZS-160326-009"} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-009","replaced_order_id":6101} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6102,"items_count":9,"items":[{"menu_item_id":69,"quantity":1,"price":"1699.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":83,"quantity":1,"price":"649.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"}]} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6102,"item_index":0,"item_data":{"menu_item_id":69,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Green boti","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6102}} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6102,"item_index":0,"menu_item_id":69} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6102,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6102}} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6102,"item_index":1,"menu_item_id":113} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6102,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6102}} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6102,"item_index":2,"menu_item_id":396} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6102,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6102}} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6102,"item_index":3,"menu_item_id":61} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6102,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6102}} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6102,"item_index":4,"menu_item_id":56} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6102,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6102}} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6102,"item_index":5,"menu_item_id":5} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6102,"item_index":6,"item_data":{"menu_item_id":83,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Chicken Nuggets","quantity":1,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":649.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6102}} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6102,"item_index":6,"menu_item_id":83} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6102,"item_index":7,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6102}} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6102,"item_index":7,"menu_item_id":2} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6102,"item_index":8,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6102}} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6102,"item_index":8,"menu_item_id":13} 
[2026-03-16 15:53:36] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6101,"new_order_id":6102,"order_number":"AZS-160326-009"} 
[2026-03-16 16:07:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6102,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":69,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":29136},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29137},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29138},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29139},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29140},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29141},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":29142},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":29143},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":29144}],"validated_items":[{"id":29136,"menu_item_id":69,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":29137,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29138,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29139,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29140,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29141,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29142,"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":29143,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":29144,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-16 16:07:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6102,"items_count":9} 
[2026-03-16 16:07:25] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29136,"menu_item_id":69,"quantity":1},{"id":29137,"menu_item_id":113,"quantity":1},{"id":29138,"menu_item_id":396,"quantity":2},{"id":29139,"menu_item_id":61,"quantity":1},{"id":29140,"menu_item_id":56,"quantity":1},{"id":29141,"menu_item_id":5,"quantity":1},{"id":29142,"menu_item_id":83,"quantity":1},{"id":29143,"menu_item_id":2,"quantity":1},{"id":29144,"menu_item_id":13,"quantity":2}]} 
[2026-03-16 16:07:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6102,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["69|1|","113|1|","396|2|","61|1|","56|1|","5|1|","83|1|","2|1|","13|2|"],"new_items_map_keys":["69|1|","113|1|","396|2|","61|1|","56|1|","5|1|","83|1|","2|1|","13|2|"]} 
[2026-03-16 16:07:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6102,"order_number":"AZS-160326-009"} 
[2026-03-16 16:07:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6102,"order_number":"AZS-160326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-16 16:07:25"} 
[2026-03-16 16:13:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T04:13:14.191Z","date_to":"2026-03-16T16:13:14.191Z","per_page":"100"} 
[2026-03-16 16:13:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T04:13:14.206Z","date_to":"2026-03-16T16:13:14.206Z","per_page":"100"} 
[2026-03-16 16:13:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["pending","paid","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":3,"unique_order_numbers":12} 
[2026-03-16 16:13:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["pending","paid","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":3,"unique_order_numbers":12} 
[2026-03-16 16:13:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T04:13:14.191Z","date_to":"2026-03-16T16:13:14.191Z","per_page":"100"} 
[2026-03-16 16:13:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["pending","paid","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":3,"unique_order_numbers":12} 
[2026-03-16 16:13:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6093,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":108,"quantity":1,"discount_percent":0,"notes":null,"id":29097},{"menu_item_id":397,"quantity":95,"discount_percent":0,"notes":null,"id":29098},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":29099},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29100},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29101},{"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":29097,"menu_item_id":108,"quantity":1,"discount_percent":0,"notes":null},{"id":29098,"menu_item_id":397,"quantity":95,"discount_percent":0,"notes":null},{"id":29099,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":29100,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29101,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-16 16:13:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6093,"items_count":6} 
[2026-03-16 16:13:44] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29097,"menu_item_id":108,"quantity":1},{"id":29098,"menu_item_id":397,"quantity":95},{"id":29099,"menu_item_id":396,"quantity":1},{"id":29100,"menu_item_id":61,"quantity":1},{"id":29101,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":9,"quantity":2}]} 
[2026-03-16 16:13:44] local.INFO: PosOrderController::update - Item changes check {"order_id":6093,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["108|1|","397|95|","396|1|","61|1|","56|1|"],"new_items_map_keys":["108|1|","397|95|","396|1|","61|1|","56|1|","9|2|"]} 
[2026-03-16 16:13:44] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6093,"order_number":"AZS-160326-008"} 
[2026-03-16 16:13:44] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-008","replaced_order_id":6093} 
[2026-03-16 16:13:44] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6104,"items_count":6,"items":[{"menu_item_id":108,"quantity":1,"price":"4199.00"},{"menu_item_id":397,"quantity":95,"price":"4.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":9,"quantity":2,"price":"229.00"}]} 
[2026-03-16 16:13:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6104,"item_index":0,"item_data":{"menu_item_id":108,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Sulemani - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6104}} 
[2026-03-16 16:13:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6104,"item_index":0,"menu_item_id":108} 
[2026-03-16 16:13:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6104,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":95,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":380.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6104}} 
[2026-03-16 16:13:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6104,"item_index":1,"menu_item_id":397} 
[2026-03-16 16:13:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6104,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6104}} 
[2026-03-16 16:13:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6104,"item_index":2,"menu_item_id":396} 
[2026-03-16 16:13:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6104,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6104}} 
[2026-03-16 16:13:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6104,"item_index":3,"menu_item_id":61} 
[2026-03-16 16:13:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6104,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6104}} 
[2026-03-16 16:13:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6104,"item_index":4,"menu_item_id":56} 
[2026-03-16 16:13:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6104,"item_index":5,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":2,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":458.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6104}} 
[2026-03-16 16:13:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6104,"item_index":5,"menu_item_id":9} 
[2026-03-16 16:13:44] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6093,"new_order_id":6104,"order_number":"AZS-160326-008"} 
[2026-03-16 16:19:50] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6105,"order_number":"AZS-160326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 16:19:50"} 
[2026-03-16 16:19:50] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6105,"order_number":"AZS-160326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 16:19:50"} 
[2026-03-16 16:19:50] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6105,"order_number":"AZS-160326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 16:19:50"} 
[2026-03-16 16:19:50] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6105,"order_number":"AZS-160326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 16:19:50"} 
[2026-03-16 16:19:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6105,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":6,"price":15,"discount_percent":0,"notes":null,"id":29158}],"validated_items":[{"id":29158,"menu_item_id":286,"quantity":6,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-16 16:19:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6105,"items_count":1} 
[2026-03-16 16:19:50] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29158,"menu_item_id":286,"quantity":6}]} 
[2026-03-16 16:19:50] local.INFO: PosOrderController::update - Item changes check {"order_id":6105,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["286|6|"],"new_items_map_keys":["286|6|"]} 
[2026-03-16 16:19:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6105,"order_number":"AZS-160326-013"} 
[2026-03-16 16:19:50] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6105,"order_number":"AZS-160326-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-16 16:19:50","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-16 16:19:50"} 
[2026-03-16 16:19:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6105,"order_number":"AZS-160326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-16 16:19:50"} 
[2026-03-16 16:19:50] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6105,"order_number":"AZS-160326-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-16 16:19:50","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"100.00","database_verification_match":true,"timestamp":"2026-03-16 16:19:50"} 
[2026-03-16 16:27:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6102,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":69,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":29136},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29137},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29138},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29139},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29140},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29141},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":29142},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":29143},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":29144}],"validated_items":[{"id":29136,"menu_item_id":69,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":29137,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29138,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29139,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29140,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29141,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29142,"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":29143,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":29144,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-16 16:27:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6102,"items_count":9} 
[2026-03-16 16:27:32] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29136,"menu_item_id":69,"quantity":1},{"id":29137,"menu_item_id":113,"quantity":1},{"id":29138,"menu_item_id":396,"quantity":2},{"id":29139,"menu_item_id":61,"quantity":1},{"id":29140,"menu_item_id":56,"quantity":1},{"id":29141,"menu_item_id":5,"quantity":1},{"id":29142,"menu_item_id":83,"quantity":1},{"id":29143,"menu_item_id":2,"quantity":1},{"id":29144,"menu_item_id":13,"quantity":2}]} 
[2026-03-16 16:27:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6102,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["69|1|","113|1|","396|2|","61|1|","56|1|","5|1|","83|1|","2|1|","13|2|"],"new_items_map_keys":["69|1|","113|1|","396|2|","61|1|","56|1|","5|1|","83|1|","2|1|","13|2|"]} 
[2026-03-16 16:27:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6102,"order_number":"AZS-160326-009"} 
[2026-03-16 16:27:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6102,"order_number":"AZS-160326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-16 16:27:32"} 
[2026-03-16 16:27:55] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6102,"order_number":"AZS-160326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 16:27:55"} 
[2026-03-16 16:27:55] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6102,"order_number":"AZS-160326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 16:27:55"} 
[2026-03-16 16:27:55] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6102,"order_number":"AZS-160326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 16:27:55"} 
[2026-03-16 16:27:55] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6102,"order_number":"AZS-160326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 16:27:55"} 
[2026-03-16 16:27:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6102,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":69,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":29136},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29137},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29138},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29139},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29140},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29141},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":29142},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":29143},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":29144}],"validated_items":[{"id":29136,"menu_item_id":69,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":29137,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29138,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29139,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29140,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29141,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29142,"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":29143,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":29144,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-16 16:27:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6102,"items_count":9} 
[2026-03-16 16:27:55] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29136,"menu_item_id":69,"quantity":1},{"id":29137,"menu_item_id":113,"quantity":1},{"id":29138,"menu_item_id":396,"quantity":2},{"id":29139,"menu_item_id":61,"quantity":1},{"id":29140,"menu_item_id":56,"quantity":1},{"id":29141,"menu_item_id":5,"quantity":1},{"id":29142,"menu_item_id":83,"quantity":1},{"id":29143,"menu_item_id":2,"quantity":1},{"id":29144,"menu_item_id":13,"quantity":2}]} 
[2026-03-16 16:27:55] local.INFO: PosOrderController::update - Item changes check {"order_id":6102,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["69|1|","113|1|","396|2|","61|1|","56|1|","5|1|","83|1|","2|1|","13|2|"],"new_items_map_keys":["69|1|","113|1|","396|2|","61|1|","56|1|","5|1|","83|1|","2|1|","13|2|"]} 
[2026-03-16 16:27:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6102,"order_number":"AZS-160326-009"} 
[2026-03-16 16:27:55] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6102,"order_number":"AZS-160326-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-16 16:27:55","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-16 16:27:55"} 
[2026-03-16 16:27:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6102,"order_number":"AZS-160326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-16 16:27:55"} 
[2026-03-16 16:27:55] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6102,"order_number":"AZS-160326-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-16 16:27:55","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-16 16:27:55"} 
[2026-03-16 16:31:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6104,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":108,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":29152},{"menu_item_id":397,"quantity":95,"price":4,"discount_percent":0,"notes":null,"id":29153},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":29154},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29155},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29156},{"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null,"id":29157}],"validated_items":[{"id":29152,"menu_item_id":108,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":29153,"menu_item_id":397,"quantity":95,"price":4,"discount_percent":0,"notes":null},{"id":29154,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":29155,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29156,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29157,"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null}]} 
[2026-03-16 16:31:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6104,"items_count":6} 
[2026-03-16 16:31:53] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29152,"menu_item_id":108,"quantity":1},{"id":29153,"menu_item_id":397,"quantity":95},{"id":29154,"menu_item_id":396,"quantity":1},{"id":29155,"menu_item_id":61,"quantity":1},{"id":29156,"menu_item_id":56,"quantity":1},{"id":29157,"menu_item_id":9,"quantity":2}]} 
[2026-03-16 16:31:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6104,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["108|1|","397|95|","396|1|","61|1|","56|1|","9|2|"],"new_items_map_keys":["108|1|","397|95|","396|1|","61|1|","56|1|","9|2|"]} 
[2026-03-16 16:31:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6104,"order_number":"AZS-160326-008"} 
[2026-03-16 16:31:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6104,"order_number":"AZS-160326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-16 16:31:53"} 
[2026-03-16 16:37:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6103,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null,"id":29145},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":29146},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":29147},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":29148},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":29149},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29150},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29151},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29145,"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null},{"id":29146,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":29147,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":29148,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":29149,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":29150,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29151,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-16 16:37:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6103,"items_count":8} 
[2026-03-16 16:37:30] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29145,"menu_item_id":103,"quantity":1},{"id":29146,"menu_item_id":112,"quantity":1},{"id":29147,"menu_item_id":396,"quantity":3},{"id":29148,"menu_item_id":50,"quantity":2},{"id":29149,"menu_item_id":61,"quantity":2},{"id":29150,"menu_item_id":56,"quantity":1},{"id":29151,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-16 16:37:30] local.INFO: PosOrderController::update - Item changes check {"order_id":6103,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["103|1|","112|1|","396|3|","50|2|","61|2|","56|1|","5|1|"],"new_items_map_keys":["103|1|","112|1|","396|3|","50|2|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-03-16 16:37:30] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6103,"order_number":"AZS-160326-012"} 
[2026-03-16 16:37:30] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-012","replaced_order_id":6103} 
[2026-03-16 16:37:30] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6106,"items_count":8,"items":[{"menu_item_id":103,"quantity":1,"price":"2599.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-16 16:37:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6106,"item_index":0,"item_data":{"menu_item_id":103,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Full","quantity":1,"price":"2599.00","discount_percent":0.0,"discount_amount":0.0,"total":2599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6106}} 
[2026-03-16 16:37:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6106,"item_index":0,"menu_item_id":103} 
[2026-03-16 16:37:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6106,"item_index":1,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6106}} 
[2026-03-16 16:37:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6106,"item_index":1,"menu_item_id":112} 
[2026-03-16 16:37:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6106,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6106}} 
[2026-03-16 16:37:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6106,"item_index":2,"menu_item_id":396} 
[2026-03-16 16:37:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6106,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6106}} 
[2026-03-16 16:37:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6106,"item_index":3,"menu_item_id":50} 
[2026-03-16 16:37:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6106,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6106}} 
[2026-03-16 16:37:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6106,"item_index":4,"menu_item_id":61} 
[2026-03-16 16:37:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6106,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6106}} 
[2026-03-16 16:37:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6106,"item_index":5,"menu_item_id":56} 
[2026-03-16 16:37:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6106,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6106}} 
[2026-03-16 16:37:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6106,"item_index":6,"menu_item_id":5} 
[2026-03-16 16:37:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6106,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6106}} 
[2026-03-16 16:37:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6106,"item_index":7,"menu_item_id":3} 
[2026-03-16 16:37:30] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6103,"new_order_id":6106,"order_number":"AZS-160326-012"} 
[2026-03-16 16:45:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6106,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null,"id":29159},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":29160},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":29161},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":29162},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29163},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29164},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29165},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29166}],"validated_items":[{"id":29159,"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null},{"id":29160,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":29161,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":29162,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":29163,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29164,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29165,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29166,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-16 16:45:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6106,"items_count":8} 
[2026-03-16 16:45:14] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29159,"menu_item_id":103,"quantity":1},{"id":29160,"menu_item_id":112,"quantity":1},{"id":29161,"menu_item_id":396,"quantity":3},{"id":29162,"menu_item_id":50,"quantity":2},{"id":29163,"menu_item_id":61,"quantity":2},{"id":29164,"menu_item_id":56,"quantity":1},{"id":29165,"menu_item_id":5,"quantity":1},{"id":29166,"menu_item_id":3,"quantity":1}]} 
[2026-03-16 16:45:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6106,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["103|1|","112|1|","396|3|","50|2|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["103|1|","112|1|","396|3|","50|2|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-03-16 16:45:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6106,"order_number":"AZS-160326-012"} 
[2026-03-16 16:45:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6106,"order_number":"AZS-160326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-16 16:45:14"} 
[2026-03-16 16:45:59] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6104,"order_number":"AZS-160326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 16:45:59"} 
[2026-03-16 16:45:59] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6104,"order_number":"AZS-160326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 16:45:59"} 
[2026-03-16 16:45:59] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6104,"order_number":"AZS-160326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 16:45:59"} 
[2026-03-16 16:45:59] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6104,"order_number":"AZS-160326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 16:45:59"} 
[2026-03-16 16:45:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6104,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":108,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":29152},{"menu_item_id":397,"quantity":95,"price":4,"discount_percent":0,"notes":null,"id":29153},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":29154},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29156},{"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null,"id":29157}],"validated_items":[{"id":29152,"menu_item_id":108,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":29153,"menu_item_id":397,"quantity":95,"price":4,"discount_percent":0,"notes":null},{"id":29154,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":29156,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29157,"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null}]} 
[2026-03-16 16:45:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6104,"items_count":5} 
[2026-03-16 16:45:59] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[29155],"items":[{"id":29152,"menu_item_id":108,"quantity":1},{"id":29153,"menu_item_id":397,"quantity":95},{"id":29154,"menu_item_id":396,"quantity":1},{"id":29156,"menu_item_id":56,"quantity":1},{"id":29157,"menu_item_id":9,"quantity":2}]} 
[2026-03-16 16:45:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6104,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["108|1|","397|95|","396|1|","61|1|","56|1|","9|2|"],"new_items_map_keys":["108|1|","397|95|","396|1|","56|1|","9|2|"]} 
[2026-03-16 16:46:00] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6104,"order_number":"AZS-160326-008","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":6000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-16 16:46:00","original_payment_amount":"0.00","grand_total":5335.0,"timestamp":"2026-03-16 16:46:00"} 
[2026-03-16 16:46:00] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6104,"order_number":"AZS-160326-008"} 
[2026-03-16 16:46:00] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-008","replaced_order_id":6104} 
[2026-03-16 16:46:00] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6104,"new_order_id":6107,"order_number":"AZS-160326-008","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"6000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-16 16:46:00","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-16 16:46:00"} 
[2026-03-16 16:46:00] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6107,"items_count":5,"items":[{"menu_item_id":108,"quantity":1,"price":4199.0},{"menu_item_id":397,"quantity":95,"price":4.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":9,"quantity":2,"price":229.0}]} 
[2026-03-16 16:46:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6107,"item_index":0,"item_data":{"menu_item_id":108,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Sulemani - Full","quantity":1,"price":4199.0,"discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6107}} 
[2026-03-16 16:46:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6107,"item_index":0,"menu_item_id":108} 
[2026-03-16 16:46:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6107,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":95,"price":4.0,"discount_percent":0.0,"discount_amount":0.0,"total":380.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6107}} 
[2026-03-16 16:46:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6107,"item_index":1,"menu_item_id":397} 
[2026-03-16 16:46:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6107,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6107}} 
[2026-03-16 16:46:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6107,"item_index":2,"menu_item_id":396} 
[2026-03-16 16:46:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6107,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6107}} 
[2026-03-16 16:46:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6107,"item_index":3,"menu_item_id":56} 
[2026-03-16 16:46:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6107,"item_index":4,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":2,"price":229.0,"discount_percent":0.0,"discount_amount":0.0,"total":458.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6107}} 
[2026-03-16 16:46:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6107,"item_index":4,"menu_item_id":9} 
[2026-03-16 16:46:00] local.ERROR: Error tracking recipe usage for order 6107: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6107, 108, 196, 1, 1000, 0.00, Order #AZS-160326-008 - 1x Mutton Sulemani - Full, 2026-03-16 16:46:00, 2026-03-16 16:46:00))  
[2026-03-16 16:46:00] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6104,"new_order_id":6107,"order_number":"AZS-160326-008"} 
[2026-03-16 16:46:00] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6104,"new_order_id":6107,"order_number":"AZS-160326-008","route":"api/orders/6104"} 
[2026-03-16 16:46:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T04:46:03.504Z","date_to":"2026-03-16T16:46:03.504Z","per_page":"100"} 
[2026-03-16 16:46:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T04:46:03.517Z","date_to":"2026-03-16T16:46:03.517Z","per_page":"100"} 
[2026-03-16 16:46:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-16 16:46:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-16 16:46:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T04:46:03.504Z","date_to":"2026-03-16T16:46:03.504Z","per_page":"100"} 
[2026-03-16 16:46:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-16 16:59:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T04:59:44.935Z","date_to":"2026-03-16T16:59:44.935Z","per_page":"100"} 
[2026-03-16 16:59:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-16 16:59:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T04:59:44.949Z","date_to":"2026-03-16T16:59:44.949Z","per_page":"100"} 
[2026-03-16 16:59:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-16 16:59:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T04:59:44.935Z","date_to":"2026-03-16T16:59:44.935Z","per_page":"100"} 
[2026-03-16 16:59:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-16 17:07:02] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6106,"order_number":"AZS-160326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 17:07:02"} 
[2026-03-16 17:07:02] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6106,"order_number":"AZS-160326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 17:07:02"} 
[2026-03-16 17:07:02] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6106,"order_number":"AZS-160326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 17:07:02"} 
[2026-03-16 17:07:02] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6106,"order_number":"AZS-160326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 17:07:02"} 
[2026-03-16 17:07:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6106,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null,"id":29159},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":29160},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":29161},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":29162},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29163},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29164},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29165},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29166}],"validated_items":[{"id":29159,"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null},{"id":29160,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":29161,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":29162,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":29163,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29164,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29165,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29166,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-16 17:07:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6106,"items_count":8} 
[2026-03-16 17:07:02] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29159,"menu_item_id":103,"quantity":1},{"id":29160,"menu_item_id":112,"quantity":1},{"id":29161,"menu_item_id":396,"quantity":3},{"id":29162,"menu_item_id":50,"quantity":2},{"id":29163,"menu_item_id":61,"quantity":2},{"id":29164,"menu_item_id":56,"quantity":1},{"id":29165,"menu_item_id":5,"quantity":1},{"id":29166,"menu_item_id":3,"quantity":1}]} 
[2026-03-16 17:07:02] local.INFO: PosOrderController::update - Item changes check {"order_id":6106,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["103|1|","112|1|","396|3|","50|2|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["103|1|","112|1|","396|3|","50|2|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-03-16 17:07:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6106,"order_number":"AZS-160326-012"} 
[2026-03-16 17:07:02] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6106,"order_number":"AZS-160326-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":6200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-16 17:07:02","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-16 17:07:02"} 
[2026-03-16 17:07:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6106,"order_number":"AZS-160326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-16 17:07:02"} 
[2026-03-16 17:07:02] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6106,"order_number":"AZS-160326-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"6200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-16 17:07:02","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"6200.00","database_verification_match":true,"timestamp":"2026-03-16 17:07:02"} 
[2026-03-16 17:09:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T05:09:13.951Z","date_to":"2026-03-16T17:09:13.951Z","per_page":"100"} 
[2026-03-16 17:09:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T05:09:13.970Z","date_to":"2026-03-16T17:09:13.970Z","per_page":"100"} 
[2026-03-16 17:09:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":0,"unique_order_numbers":13} 
[2026-03-16 17:09:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":0,"unique_order_numbers":13} 
[2026-03-16 17:09:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T05:09:13.951Z","date_to":"2026-03-16T17:09:13.951Z","per_page":"100"} 
[2026-03-16 17:09:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":0,"unique_order_numbers":13} 
[2026-03-16 18:22:09] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-16 18:24:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T06:24:26.177Z","date_to":"2026-03-16T18:24:26.177Z","per_page":"100"} 
[2026-03-16 18:24:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":3,"unique_order_numbers":16} 
[2026-03-16 18:24:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T06:24:26.157Z","date_to":"2026-03-16T18:24:26.157Z","per_page":"100"} 
[2026-03-16 18:24:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":3,"unique_order_numbers":16} 
[2026-03-16 18:24:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T06:24:26.157Z","date_to":"2026-03-16T18:24:26.157Z","per_page":"100"} 
[2026-03-16 18:24:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":3,"unique_order_numbers":16} 
[2026-03-16 18:33:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6108,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"discount_percent":0,"notes":null,"id":29172},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":29173},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29174},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null,"id":29175},{"menu_item_id":2,"quantity":4,"discount_percent":0,"notes":null}],"validated_items":[{"id":29172,"menu_item_id":101,"quantity":1,"discount_percent":0,"notes":null},{"id":29173,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":29174,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29175,"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-03-16 18:33:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6108,"items_count":5} 
[2026-03-16 18:33:42] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29172,"menu_item_id":101,"quantity":1},{"id":29173,"menu_item_id":61,"quantity":2},{"id":29174,"menu_item_id":56,"quantity":1},{"id":29175,"menu_item_id":50,"quantity":4},{"id":null,"menu_item_id":2,"quantity":4}]} 
[2026-03-16 18:33:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6108,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["101|1|","61|2|","56|1|","50|4|"],"new_items_map_keys":["101|1|","61|2|","56|1|","50|4|","2|4|"]} 
[2026-03-16 18:33:42] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6108,"order_number":"AZS-160326-014"} 
[2026-03-16 18:33:42] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-014","replaced_order_id":6108} 
[2026-03-16 18:33:42] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6111,"items_count":5,"items":[{"menu_item_id":101,"quantity":1,"price":"2399.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":50,"quantity":4,"price":"129.00"},{"menu_item_id":2,"quantity":4,"price":"130.00"}]} 
[2026-03-16 18:33:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6111,"item_index":0,"item_data":{"menu_item_id":101,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Full","quantity":1,"price":"2399.00","discount_percent":0.0,"discount_amount":0.0,"total":2399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6111}} 
[2026-03-16 18:33:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6111,"item_index":0,"menu_item_id":101} 
[2026-03-16 18:33:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6111,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6111}} 
[2026-03-16 18:33:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6111,"item_index":1,"menu_item_id":61} 
[2026-03-16 18:33:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6111,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6111}} 
[2026-03-16 18:33:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6111,"item_index":2,"menu_item_id":56} 
[2026-03-16 18:33:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6111,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6111}} 
[2026-03-16 18:33:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6111,"item_index":3,"menu_item_id":50} 
[2026-03-16 18:33:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6111,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":4,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":520.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6111}} 
[2026-03-16 18:33:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6111,"item_index":4,"menu_item_id":2} 
[2026-03-16 18:33:42] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6108,"new_order_id":6111,"order_number":"AZS-160326-014"} 
[2026-03-16 18:39:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6111,"item_index":0,"item_id":29172} 
[2026-03-16 18:39:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6111,"item_index":1,"item_id":29173} 
[2026-03-16 18:39:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6111,"item_index":2,"item_id":29174} 
[2026-03-16 18:39:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6111,"item_index":3,"item_id":29175} 
[2026-03-16 18:39:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6111,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null,"id":29172},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29173},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29174},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":29175},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-16 18:39:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6111,"items_count":5} 
[2026-03-16 18:39:25] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[29178,29179,29180,29181,29182],"items":[{"id":null,"menu_item_id":101,"quantity":1},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":50,"quantity":4},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-16 18:39:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6111,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["101|1|","61|2|","56|1|","50|4|","2|4|"],"new_items_map_keys":["101|1|","61|2|","56|1|","50|4|","2|2|"]} 
[2026-03-16 18:39:25] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6111,"order_number":"AZS-160326-014"} 
[2026-03-16 18:39:25] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-014","replaced_order_id":6111} 
[2026-03-16 18:39:25] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6112,"items_count":5,"items":[{"menu_item_id":101,"quantity":1,"price":2399.0},{"menu_item_id":61,"quantity":2,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":50,"quantity":4,"price":129.0},{"menu_item_id":2,"quantity":2,"price":130.0}]} 
[2026-03-16 18:39:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6112,"item_index":0,"item_data":{"menu_item_id":101,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Full","quantity":1,"price":2399.0,"discount_percent":0.0,"discount_amount":0.0,"total":2399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6112}} 
[2026-03-16 18:39:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6112,"item_index":0,"menu_item_id":101} 
[2026-03-16 18:39:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6112,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6112}} 
[2026-03-16 18:39:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6112,"item_index":1,"menu_item_id":61} 
[2026-03-16 18:39:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6112,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6112}} 
[2026-03-16 18:39:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6112,"item_index":2,"menu_item_id":56} 
[2026-03-16 18:39:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6112,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6112}} 
[2026-03-16 18:39:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6112,"item_index":3,"menu_item_id":50} 
[2026-03-16 18:39:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6112,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6112}} 
[2026-03-16 18:39:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6112,"item_index":4,"menu_item_id":2} 
[2026-03-16 18:39:25] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6111,"new_order_id":6112,"order_number":"AZS-160326-014"} 
[2026-03-16 18:39:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6112,"item_index":0,"item_id":29172} 
[2026-03-16 18:39:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6112,"item_index":1,"item_id":29173} 
[2026-03-16 18:39:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6112,"item_index":2,"item_id":29174} 
[2026-03-16 18:39:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6112,"item_index":3,"item_id":29175} 
[2026-03-16 18:39:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6112,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null,"id":29172},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29173},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29174},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":29175},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-16 18:39:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6112,"items_count":5} 
[2026-03-16 18:39:32] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[29183,29184,29185,29186,29187],"items":[{"id":null,"menu_item_id":101,"quantity":1},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":50,"quantity":4},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-16 18:39:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6112,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["101|1|","61|2|","56|1|","50|4|","2|2|"],"new_items_map_keys":["101|1|","61|2|","56|1|","50|4|","2|2|"]} 
[2026-03-16 18:39:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6112,"order_number":"AZS-160326-014"} 
[2026-03-16 18:39:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6112,"order_number":"AZS-160326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-16 18:39:32"} 
[2026-03-16 18:41:49] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-16 18:42:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T06:42:02.376Z","date_to":"2026-03-16T18:42:02.376Z","per_page":"100"} 
[2026-03-16 18:42:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T06:42:02.361Z","date_to":"2026-03-16T18:42:02.361Z","per_page":"100"} 
[2026-03-16 18:42:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":4,"unique_order_numbers":17} 
[2026-03-16 18:42:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":4,"unique_order_numbers":17} 
[2026-03-16 18:42:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T06:42:02.361Z","date_to":"2026-03-16T18:42:02.361Z","per_page":"100"} 
[2026-03-16 18:42:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":4,"unique_order_numbers":17} 
[2026-03-16 18:52:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6112,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null,"id":29183},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29184},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29185},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":29186},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":29187}],"validated_items":[{"id":29183,"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null},{"id":29184,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29185,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29186,"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"id":29187,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-16 18:52:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6112,"items_count":5} 
[2026-03-16 18:52:45] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29183,"menu_item_id":101,"quantity":1},{"id":29184,"menu_item_id":61,"quantity":2},{"id":29185,"menu_item_id":56,"quantity":1},{"id":29186,"menu_item_id":50,"quantity":4},{"id":29187,"menu_item_id":2,"quantity":2}]} 
[2026-03-16 18:52:45] local.INFO: PosOrderController::update - Item changes check {"order_id":6112,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["101|1|","61|2|","56|1|","50|4|","2|2|"],"new_items_map_keys":["101|1|","61|2|","56|1|","50|4|","2|2|"]} 
[2026-03-16 18:52:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6112,"order_number":"AZS-160326-014"} 
[2026-03-16 18:52:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6112,"order_number":"AZS-160326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-16 18:52:45"} 
[2026-03-16 18:54:52] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6112,"order_number":"AZS-160326-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 18:54:52"} 
[2026-03-16 18:54:52] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6112,"order_number":"AZS-160326-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 18:54:52"} 
[2026-03-16 18:54:52] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6112,"order_number":"AZS-160326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 18:54:52"} 
[2026-03-16 18:54:52] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6112,"order_number":"AZS-160326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 18:54:52"} 
[2026-03-16 18:54:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6112,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null,"id":29183},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29184},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29185},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":29186},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":29187}],"validated_items":[{"id":29183,"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null},{"id":29184,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29185,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29186,"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"id":29187,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-16 18:54:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6112,"items_count":5} 
[2026-03-16 18:54:52] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29183,"menu_item_id":101,"quantity":1},{"id":29184,"menu_item_id":61,"quantity":1},{"id":29185,"menu_item_id":56,"quantity":1},{"id":29186,"menu_item_id":50,"quantity":4},{"id":29187,"menu_item_id":2,"quantity":2}]} 
[2026-03-16 18:54:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6112,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["101|1|","61|2|","56|1|","50|4|","2|2|"],"new_items_map_keys":["101|1|","61|1|","56|1|","50|4|","2|2|"]} 
[2026-03-16 18:54:52] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6112,"order_number":"AZS-160326-014","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":4000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-16 18:54:52","original_payment_amount":"0.00","grand_total":3573.0,"timestamp":"2026-03-16 18:54:52"} 
[2026-03-16 18:54:52] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6112,"order_number":"AZS-160326-014"} 
[2026-03-16 18:54:52] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-014","replaced_order_id":6112} 
[2026-03-16 18:54:52] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6112,"new_order_id":6114,"order_number":"AZS-160326-014","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"4000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-16 18:54:52","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-16 18:54:52"} 
[2026-03-16 18:54:52] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6114,"items_count":5,"items":[{"menu_item_id":101,"quantity":1,"price":2399.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":50,"quantity":4,"price":129.0},{"menu_item_id":2,"quantity":2,"price":130.0}]} 
[2026-03-16 18:54:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6114,"item_index":0,"item_data":{"menu_item_id":101,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Full","quantity":1,"price":2399.0,"discount_percent":0.0,"discount_amount":0.0,"total":2399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6114}} 
[2026-03-16 18:54:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6114,"item_index":0,"menu_item_id":101} 
[2026-03-16 18:54:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6114,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6114}} 
[2026-03-16 18:54:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6114,"item_index":1,"menu_item_id":61} 
[2026-03-16 18:54:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6114,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6114}} 
[2026-03-16 18:54:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6114,"item_index":2,"menu_item_id":56} 
[2026-03-16 18:54:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6114,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6114}} 
[2026-03-16 18:54:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6114,"item_index":3,"menu_item_id":50} 
[2026-03-16 18:54:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6114,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6114}} 
[2026-03-16 18:54:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6114,"item_index":4,"menu_item_id":2} 
[2026-03-16 18:54:52] local.ERROR: Error tracking recipe usage for order 6114: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6114, 101, 77, 1, 1, 0.00, Order #AZS-160326-014 - 1x Chicken Peshawari Karahi - Full, 2026-03-16 18:54:52, 2026-03-16 18:54:52))  
[2026-03-16 18:54:52] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6112,"new_order_id":6114,"order_number":"AZS-160326-014"} 
[2026-03-16 18:54:53] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6112,"new_order_id":6114,"order_number":"AZS-160326-014","route":"api/orders/6112"} 
[2026-03-16 18:55:33] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6113,"order_number":"AZS-160326-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 18:55:33"} 
[2026-03-16 18:55:33] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6113,"order_number":"AZS-160326-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 18:55:33"} 
[2026-03-16 18:55:33] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6113,"order_number":"AZS-160326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 18:55:33"} 
[2026-03-16 18:55:33] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6113,"order_number":"AZS-160326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 18:55:33"} 
[2026-03-16 18:55:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6113,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29188}],"validated_items":[{"id":29188,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-16 18:55:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6113,"items_count":1} 
[2026-03-16 18:55:33] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29188,"menu_item_id":6,"quantity":1}]} 
[2026-03-16 18:55:33] local.INFO: PosOrderController::update - Item changes check {"order_id":6113,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-03-16 18:55:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6113,"order_number":"AZS-160326-017"} 
[2026-03-16 18:55:33] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6113,"order_number":"AZS-160326-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-16 18:55:33","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-16 18:55:33"} 
[2026-03-16 18:55:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6113,"order_number":"AZS-160326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-16 18:55:33"} 
[2026-03-16 18:55:33] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6113,"order_number":"AZS-160326-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-16 18:55:33","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"200.00","database_verification_match":true,"timestamp":"2026-03-16 18:55:33"} 
[2026-03-16 18:55:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T06:55:41.407Z","date_to":"2026-03-16T18:55:41.407Z","per_page":"100"} 
[2026-03-16 18:55:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":2,"unique_order_numbers":17} 
[2026-03-16 18:55:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T06:55:41.418Z","date_to":"2026-03-16T18:55:41.418Z","per_page":"100"} 
[2026-03-16 18:55:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":2,"unique_order_numbers":17} 
[2026-03-16 18:55:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T06:55:41.407Z","date_to":"2026-03-16T18:55:41.407Z","per_page":"100"} 
[2026-03-16 18:55:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":2,"unique_order_numbers":17} 
[2026-03-16 19:11:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6109,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":29176}],"validated_items":[{"id":29176,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-16 19:11:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6109,"items_count":1} 
[2026-03-16 19:11:06] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29176,"menu_item_id":13,"quantity":4}]} 
[2026-03-16 19:11:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6109,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|4|"],"new_items_map_keys":["13|4|"]} 
[2026-03-16 19:11:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6109,"order_number":"AZS-160326-015"} 
[2026-03-16 19:11:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6109,"order_number":"AZS-160326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-16 19:11:06"} 
[2026-03-16 19:18:51] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6109,"order_number":"AZS-160326-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1050,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 19:18:51"} 
[2026-03-16 19:18:51] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6109,"order_number":"AZS-160326-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1050,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 19:18:51"} 
[2026-03-16 19:18:51] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6109,"order_number":"AZS-160326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1050,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 19:18:51"} 
[2026-03-16 19:18:51] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6109,"order_number":"AZS-160326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1050,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 19:18:51"} 
[2026-03-16 19:18:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6109,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":29176}],"validated_items":[{"id":29176,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-16 19:18:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6109,"items_count":1} 
[2026-03-16 19:18:51] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29176,"menu_item_id":13,"quantity":4}]} 
[2026-03-16 19:18:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6109,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|4|"],"new_items_map_keys":["13|4|"]} 
[2026-03-16 19:18:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6109,"order_number":"AZS-160326-015"} 
[2026-03-16 19:18:51] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6109,"order_number":"AZS-160326-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1050,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-16 19:18:51","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-16 19:18:51"} 
[2026-03-16 19:18:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6109,"order_number":"AZS-160326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-16 19:18:51"} 
[2026-03-16 19:18:51] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6109,"order_number":"AZS-160326-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1050.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-16 19:18:51","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1050,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1050.00","database_verification_match":true,"timestamp":"2026-03-16 19:18:51"} 
[2026-03-16 19:26:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T07:26:53.346Z","date_to":"2026-03-16T19:26:53.346Z","per_page":"100"} 
[2026-03-16 19:26:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":1,"unique_order_numbers":17} 
[2026-03-16 19:26:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T07:26:53.364Z","date_to":"2026-03-16T19:26:53.364Z","per_page":"100"} 
[2026-03-16 19:26:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":1,"unique_order_numbers":17} 
[2026-03-16 19:26:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T07:26:53.346Z","date_to":"2026-03-16T19:26:53.346Z","per_page":"100"} 
[2026-03-16 19:26:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":1,"unique_order_numbers":17} 
[2026-03-16 22:15:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T10:15:47.998Z","date_to":"2026-03-16T22:15:47.998Z","per_page":"100"} 
[2026-03-16 22:15:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-019","AZS-160326-018","AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":3,"unique_order_numbers":19} 
[2026-03-16 22:15:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T10:15:47.977Z","date_to":"2026-03-16T22:15:47.977Z","per_page":"100"} 
[2026-03-16 22:15:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-019","AZS-160326-018","AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":3,"unique_order_numbers":19} 
[2026-03-16 22:15:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T10:15:47.977Z","date_to":"2026-03-16T22:15:47.977Z","per_page":"100"} 
[2026-03-16 22:15:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-019","AZS-160326-018","AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":3,"unique_order_numbers":19} 
[2026-03-16 22:33:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T10:33:31.188Z","date_to":"2026-03-16T22:33:31.188Z","per_page":"100"} 
[2026-03-16 22:33:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-020","AZS-160326-019","AZS-160326-018","AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":4,"unique_order_numbers":20} 
[2026-03-16 22:33:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T10:33:31.200Z","date_to":"2026-03-16T22:33:31.200Z","per_page":"100"} 
[2026-03-16 22:33:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-020","AZS-160326-019","AZS-160326-018","AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":4,"unique_order_numbers":20} 
[2026-03-16 22:33:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T10:33:31.188Z","date_to":"2026-03-16T22:33:31.188Z","per_page":"100"} 
[2026-03-16 22:33:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-020","AZS-160326-019","AZS-160326-018","AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":4,"unique_order_numbers":20} 
[2026-03-16 22:48:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6116,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":29195},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":29196}],"validated_items":[{"id":29195,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":29196,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-16 22:48:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6116,"items_count":2} 
[2026-03-16 22:48:12] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29195,"menu_item_id":411,"quantity":1},{"id":29196,"menu_item_id":416,"quantity":1}]} 
[2026-03-16 22:48:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6116,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","416|1|"],"new_items_map_keys":["411|1|","416|1|"]} 
[2026-03-16 22:48:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6116,"order_number":"AZS-160326-019"} 
[2026-03-16 22:48:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6116,"order_number":"AZS-160326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-16 22:48:12"} 
[2026-03-16 22:48:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6116,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":29195},{"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null,"id":29196},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29195,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":29196,"menu_item_id":416,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-16 22:48:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6116,"items_count":3} 
[2026-03-16 22:48:37] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29195,"menu_item_id":411,"quantity":1},{"id":29196,"menu_item_id":416,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-16 22:48:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6116,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["411|1|","416|1|"],"new_items_map_keys":["411|1|","416|1|","4|1|"]} 
[2026-03-16 22:48:37] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6116,"order_number":"AZS-160326-019"} 
[2026-03-16 22:48:37] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-019","replaced_order_id":6116} 
[2026-03-16 22:48:37] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6119,"items_count":3,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":416,"quantity":1,"price":"70.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-03-16 22:48:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6119,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6119}} 
[2026-03-16 22:48:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6119,"item_index":0,"menu_item_id":411} 
[2026-03-16 22:48:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6119,"item_index":1,"item_data":{"menu_item_id":416,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Pratha Simple","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6119}} 
[2026-03-16 22:48:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6119,"item_index":1,"menu_item_id":416} 
[2026-03-16 22:48:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6119,"item_index":2,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6119}} 
[2026-03-16 22:48:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6119,"item_index":2,"menu_item_id":4} 
[2026-03-16 22:48:37] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6116,"new_order_id":6119,"order_number":"AZS-160326-019"} 
[2026-03-16 22:48:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6119,"item_index":0,"item_id":29195} 
[2026-03-16 22:48:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6119,"item_index":1,"item_id":29196} 
[2026-03-16 22:48:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":6119,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":29195},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":29196},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-16 22:48:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6119,"items_count":3} 
[2026-03-16 22:48:46] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[29201,29202,29203],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":416,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-16 22:48:46] local.INFO: PosOrderController::update - Item changes check {"order_id":6119,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|1|","416|1|","4|1|"],"new_items_map_keys":["411|1|","416|1|","4|1|"]} 
[2026-03-16 22:48:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6119,"order_number":"AZS-160326-019"} 
[2026-03-16 22:48:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6119,"order_number":"AZS-160326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-16 22:48:46"} 
[2026-03-16 22:49:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6117,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":29197},{"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29197,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":412,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-16 22:49:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6117,"items_count":2} 
[2026-03-16 22:49:43] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29197,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":412,"quantity":1}]} 
[2026-03-16 22:49:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6117,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|","412|1|"]} 
[2026-03-16 22:49:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6117,"order_number":"AZS-160326-020"} 
[2026-03-16 22:49:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-020","replaced_order_id":6117} 
[2026-03-16 22:49:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6120,"items_count":2,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":412,"quantity":1,"price":"220.00"}]} 
[2026-03-16 22:49:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6120,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6120}} 
[2026-03-16 22:49:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6120,"item_index":0,"menu_item_id":411} 
[2026-03-16 22:49:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6120,"item_index":1,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":1,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":220.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6120}} 
[2026-03-16 22:49:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6120,"item_index":1,"menu_item_id":412} 
[2026-03-16 22:49:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6117,"new_order_id":6120,"order_number":"AZS-160326-020"} 
[2026-03-16 22:51:20] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6119,"order_number":"AZS-160326-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 22:51:20"} 
[2026-03-16 22:51:20] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6119,"order_number":"AZS-160326-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 22:51:20"} 
[2026-03-16 22:51:20] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6119,"order_number":"AZS-160326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 22:51:20"} 
[2026-03-16 22:51:20] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6119,"order_number":"AZS-160326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 22:51:20"} 
[2026-03-16 22:51:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6119,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":29201},{"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":29202},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":29203}],"validated_items":[{"id":29201,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":29202,"menu_item_id":416,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":29203,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-16 22:51:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6119,"items_count":3} 
[2026-03-16 22:51:20] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29201,"menu_item_id":411,"quantity":1},{"id":29202,"menu_item_id":416,"quantity":1},{"id":29203,"menu_item_id":4,"quantity":1}]} 
[2026-03-16 22:51:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6119,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["411|1|","416|1|","4|1|"],"new_items_map_keys":["411|1|","416|1|","4|1|"]} 
[2026-03-16 22:51:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6119,"order_number":"AZS-160326-019"} 
[2026-03-16 22:51:20] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6119,"order_number":"AZS-160326-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-16 22:51:20","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-16 22:51:20"} 
[2026-03-16 22:51:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6119,"order_number":"AZS-160326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-16 22:51:20"} 
[2026-03-16 22:51:20] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6119,"order_number":"AZS-160326-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-16 22:51:20","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-16 22:51:20"} 
[2026-03-16 22:56:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6121,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":29206},{"menu_item_id":421,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":29207}],"validated_items":[{"id":29206,"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":29207,"menu_item_id":421,"quantity":2,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-16 22:56:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6121,"items_count":2} 
[2026-03-16 22:56:50] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29206,"menu_item_id":416,"quantity":4},{"id":29207,"menu_item_id":421,"quantity":2}]} 
[2026-03-16 22:56:50] local.INFO: PosOrderController::update - Item changes check {"order_id":6121,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["416|4|","421|2|"],"new_items_map_keys":["416|4|","421|2|"]} 
[2026-03-16 22:56:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6121,"order_number":"AZS-160326-022"} 
[2026-03-16 22:56:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6121,"order_number":"AZS-160326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-16 22:56:50"} 
[2026-03-16 22:57:11] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6121,"order_number":"AZS-160326-022","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 22:57:11"} 
[2026-03-16 22:57:11] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6121,"order_number":"AZS-160326-022","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 22:57:11"} 
[2026-03-16 22:57:11] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6121,"order_number":"AZS-160326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 22:57:11"} 
[2026-03-16 22:57:11] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6121,"order_number":"AZS-160326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 22:57:11"} 
[2026-03-16 22:57:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6121,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":29206},{"menu_item_id":421,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":29207}],"validated_items":[{"id":29206,"menu_item_id":416,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":29207,"menu_item_id":421,"quantity":2,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-16 22:57:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6121,"items_count":2} 
[2026-03-16 22:57:11] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29206,"menu_item_id":416,"quantity":4},{"id":29207,"menu_item_id":421,"quantity":2}]} 
[2026-03-16 22:57:11] local.INFO: PosOrderController::update - Item changes check {"order_id":6121,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["416|4|","421|2|"],"new_items_map_keys":["416|4|","421|2|"]} 
[2026-03-16 22:57:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6121,"order_number":"AZS-160326-022"} 
[2026-03-16 22:57:11] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6121,"order_number":"AZS-160326-022","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-16 22:57:11","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-16 22:57:11"} 
[2026-03-16 22:57:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6121,"order_number":"AZS-160326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-16 22:57:11"} 
[2026-03-16 22:57:11] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6121,"order_number":"AZS-160326-022","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-16 22:57:11","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-16 22:57:11"} 
[2026-03-16 22:57:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6115,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null,"id":29194}],"validated_items":[{"id":29194,"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-16 22:57:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6115,"items_count":1} 
[2026-03-16 22:57:36] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29194,"menu_item_id":85,"quantity":1}]} 
[2026-03-16 22:57:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6115,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["85|1|"],"new_items_map_keys":["85|1|"]} 
[2026-03-16 22:57:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6115,"order_number":"AZS-160326-018"} 
[2026-03-16 22:57:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6115,"order_number":"AZS-160326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-16 22:57:36"} 
[2026-03-16 22:57:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6120,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":29204},{"menu_item_id":412,"quantity":2,"discount_percent":0,"notes":null,"id":29205}],"validated_items":[{"id":29204,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":29205,"menu_item_id":412,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-16 22:57:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6120,"items_count":2} 
[2026-03-16 22:57:51] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29204,"menu_item_id":411,"quantity":1},{"id":29205,"menu_item_id":412,"quantity":2}]} 
[2026-03-16 22:57:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6120,"has_item_changes":true,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","412|1|"],"new_items_map_keys":["411|1|","412|2|"]} 
[2026-03-16 22:57:51] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6120,"order_number":"AZS-160326-020"} 
[2026-03-16 22:57:51] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-020","replaced_order_id":6120} 
[2026-03-16 22:57:51] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6122,"items_count":2,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":412,"quantity":2,"price":"220.00"}]} 
[2026-03-16 22:57:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6122,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6122}} 
[2026-03-16 22:57:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6122,"item_index":0,"menu_item_id":411} 
[2026-03-16 22:57:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6122,"item_index":1,"item_data":{"menu_item_id":412,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Meethi Lassi","quantity":2,"price":"220.00","discount_percent":0.0,"discount_amount":0.0,"total":440.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6122}} 
[2026-03-16 22:57:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6122,"item_index":1,"menu_item_id":412} 
[2026-03-16 22:57:51] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6120,"new_order_id":6122,"order_number":"AZS-160326-020"} 
[2026-03-16 23:07:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6118,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":29198},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null,"id":29199},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":29200},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":29198,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":29199,"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null},{"id":29200,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-16 23:07:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6118,"items_count":4} 
[2026-03-16 23:07:57] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29198,"menu_item_id":411,"quantity":1},{"id":29199,"menu_item_id":425,"quantity":1},{"id":29200,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":4,"quantity":2}]} 
[2026-03-16 23:07:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6118,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["411|1|","425|1|","50|2|"],"new_items_map_keys":["411|1|","425|1|","50|2|","4|2|"]} 
[2026-03-16 23:07:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6118,"order_number":"AZS-160326-021"} 
[2026-03-16 23:07:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-021","replaced_order_id":6118} 
[2026-03-16 23:07:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6123,"items_count":4,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":425,"quantity":1,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":4,"quantity":2,"price":"90.00"}]} 
[2026-03-16 23:07:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6123,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6123}} 
[2026-03-16 23:07:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6123,"item_index":0,"menu_item_id":411} 
[2026-03-16 23:07:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6123,"item_index":1,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6123}} 
[2026-03-16 23:07:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6123,"item_index":1,"menu_item_id":425} 
[2026-03-16 23:07:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6123,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6123}} 
[2026-03-16 23:07:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6123,"item_index":2,"menu_item_id":50} 
[2026-03-16 23:07:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6123,"item_index":3,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":2,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":180.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6123}} 
[2026-03-16 23:07:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6123,"item_index":3,"menu_item_id":4} 
[2026-03-16 23:07:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6118,"new_order_id":6123,"order_number":"AZS-160326-021"} 
[2026-03-16 23:35:57] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6110,"order_number":"AZS-160326-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 23:35:57"} 
[2026-03-16 23:35:57] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6110,"order_number":"AZS-160326-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 23:35:57"} 
[2026-03-16 23:35:57] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6110,"order_number":"AZS-160326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 23:35:57"} 
[2026-03-16 23:35:57] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6110,"order_number":"AZS-160326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 23:35:57"} 
[2026-03-16 23:35:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6110,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29177}],"validated_items":[{"id":29177,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-16 23:35:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6110,"items_count":1} 
[2026-03-16 23:35:57] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29177,"menu_item_id":6,"quantity":1}]} 
[2026-03-16 23:35:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6110,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-03-16 23:35:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6110,"order_number":"AZS-160326-016"} 
[2026-03-16 23:35:57] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6110,"order_number":"AZS-160326-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-16 23:35:57","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-16 23:35:57"} 
[2026-03-16 23:35:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6110,"order_number":"AZS-160326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-16 23:35:57"} 
[2026-03-16 23:35:57] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6110,"order_number":"AZS-160326-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-16 23:35:57","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"200.00","database_verification_match":true,"timestamp":"2026-03-16 23:35:57"} 
[2026-03-16 23:41:44] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6122,"order_number":"AZS-160326-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1040,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 23:41:44"} 
[2026-03-16 23:41:44] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6122,"order_number":"AZS-160326-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1040,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 23:41:44"} 
[2026-03-16 23:41:44] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6122,"order_number":"AZS-160326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1040,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 23:41:44"} 
[2026-03-16 23:41:44] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6122,"order_number":"AZS-160326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1040,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 23:41:44"} 
[2026-03-16 23:41:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6122,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":29208},{"menu_item_id":412,"quantity":2,"price":220,"discount_percent":0,"notes":null,"id":29209}],"validated_items":[{"id":29208,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":29209,"menu_item_id":412,"quantity":2,"price":220,"discount_percent":0,"notes":null}]} 
[2026-03-16 23:41:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6122,"items_count":2} 
[2026-03-16 23:41:44] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29208,"menu_item_id":411,"quantity":1},{"id":29209,"menu_item_id":412,"quantity":2}]} 
[2026-03-16 23:41:44] local.INFO: PosOrderController::update - Item changes check {"order_id":6122,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["411|1|","412|2|"],"new_items_map_keys":["411|1|","412|2|"]} 
[2026-03-16 23:41:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6122,"order_number":"AZS-160326-020"} 
[2026-03-16 23:41:44] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6122,"order_number":"AZS-160326-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1040,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-16 23:41:44","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-16 23:41:44"} 
[2026-03-16 23:41:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6122,"order_number":"AZS-160326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-16 23:41:44"} 
[2026-03-16 23:41:44] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6122,"order_number":"AZS-160326-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1040.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-16 23:41:44","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1040,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1040.00","database_verification_match":true,"timestamp":"2026-03-16 23:41:44"} 
[2026-03-16 23:43:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T11:43:00.522Z","date_to":"2026-03-16T23:43:00.522Z","per_page":"100"} 
[2026-03-16 23:43:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T11:43:00.505Z","date_to":"2026-03-16T23:43:00.505Z","per_page":"100"} 
[2026-03-16 23:43:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-022","AZS-160326-021","AZS-160326-020","AZS-160326-019","AZS-160326-018","AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":2,"unique_order_numbers":22} 
[2026-03-16 23:43:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-022","AZS-160326-021","AZS-160326-020","AZS-160326-019","AZS-160326-018","AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":2,"unique_order_numbers":22} 
[2026-03-16 23:43:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T11:43:00.505Z","date_to":"2026-03-16T23:43:00.505Z","per_page":"100"} 
[2026-03-16 23:43:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-022","AZS-160326-021","AZS-160326-020","AZS-160326-019","AZS-160326-018","AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":2,"unique_order_numbers":22} 
[2026-03-16 23:43:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6123,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":29210},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":29211},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":29212},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null,"id":29213}],"validated_items":[{"id":29210,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":29211,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":29212,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":29213,"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-16 23:43:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6123,"items_count":4} 
[2026-03-16 23:43:28] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29210,"menu_item_id":411,"quantity":1},{"id":29211,"menu_item_id":425,"quantity":1},{"id":29212,"menu_item_id":50,"quantity":2},{"id":29213,"menu_item_id":4,"quantity":2}]} 
[2026-03-16 23:43:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6123,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|1|","425|1|","50|2|","4|2|"],"new_items_map_keys":["411|1|","425|1|","50|2|","4|2|"]} 
[2026-03-16 23:43:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6123,"order_number":"AZS-160326-021"} 
[2026-03-16 23:43:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6123,"order_number":"AZS-160326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-16 23:43:28"} 
[2026-03-16 23:43:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6123,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":29210},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":29211},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":29212},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null,"id":29213},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}],"validated_items":[{"id":29210,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":29211,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":29212,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":29213,"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-16 23:43:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6123,"items_count":5} 
[2026-03-16 23:43:48] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29210,"menu_item_id":411,"quantity":1},{"id":29211,"menu_item_id":425,"quantity":1},{"id":29212,"menu_item_id":50,"quantity":2},{"id":29213,"menu_item_id":4,"quantity":2},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-03-16 23:43:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6123,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["411|1|","425|1|","50|2|","4|2|"],"new_items_map_keys":["411|1|","425|1|","50|2|","4|2|","13|2|"]} 
[2026-03-16 23:43:48] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6123,"order_number":"AZS-160326-021"} 
[2026-03-16 23:43:48] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-160326-021","replaced_order_id":6123} 
[2026-03-16 23:43:48] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6124,"items_count":5,"items":[{"menu_item_id":411,"quantity":1,"price":599.0},{"menu_item_id":425,"quantity":1,"price":99.0},{"menu_item_id":50,"quantity":2,"price":129.0},{"menu_item_id":4,"quantity":2,"price":90.0},{"menu_item_id":13,"quantity":2,"price":249.0}]} 
[2026-03-16 23:43:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6124,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":599.0,"discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6124}} 
[2026-03-16 23:43:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6124,"item_index":0,"menu_item_id":411} 
[2026-03-16 23:43:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6124,"item_index":1,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6124}} 
[2026-03-16 23:43:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6124,"item_index":1,"menu_item_id":425} 
[2026-03-16 23:43:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6124,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6124}} 
[2026-03-16 23:43:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6124,"item_index":2,"menu_item_id":50} 
[2026-03-16 23:43:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6124,"item_index":3,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":2,"price":90.0,"discount_percent":0.0,"discount_amount":0.0,"total":180.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6124}} 
[2026-03-16 23:43:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6124,"item_index":3,"menu_item_id":4} 
[2026-03-16 23:43:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6124,"item_index":4,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6124}} 
[2026-03-16 23:43:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6124,"item_index":4,"menu_item_id":13} 
[2026-03-16 23:43:48] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6123,"new_order_id":6124,"order_number":"AZS-160326-021"} 
[2026-03-16 23:43:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6124,"item_index":0,"item_id":29210} 
[2026-03-16 23:43:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6124,"item_index":1,"item_id":29211} 
[2026-03-16 23:43:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6124,"item_index":2,"item_id":29212} 
[2026-03-16 23:43:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6124,"item_index":3,"item_id":29213} 
[2026-03-16 23:43:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6124,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":29210},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":29211},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":29212},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null,"id":29213},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-16 23:43:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6124,"items_count":5} 
[2026-03-16 23:43:55] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[29214,29215,29216,29217,29218],"items":[{"id":null,"menu_item_id":411,"quantity":1},{"id":null,"menu_item_id":425,"quantity":1},{"id":null,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":4,"quantity":2},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-03-16 23:43:55] local.INFO: PosOrderController::update - Item changes check {"order_id":6124,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|1|","425|1|","50|2|","4|2|","13|2|"],"new_items_map_keys":["411|1|","425|1|","50|2|","4|2|","13|2|"]} 
[2026-03-16 23:43:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6124,"order_number":"AZS-160326-021"} 
[2026-03-16 23:43:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6124,"order_number":"AZS-160326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-16 23:43:55"} 
[2026-03-16 23:46:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T11:46:44.408Z","date_to":"2026-03-16T23:46:44.408Z","per_page":"100"} 
[2026-03-16 23:46:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T11:46:44.430Z","date_to":"2026-03-16T23:46:44.430Z","per_page":"100"} 
[2026-03-16 23:46:45] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-022","AZS-160326-021","AZS-160326-020","AZS-160326-019","AZS-160326-018","AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":2,"unique_order_numbers":22} 
[2026-03-16 23:46:45] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-022","AZS-160326-021","AZS-160326-020","AZS-160326-019","AZS-160326-018","AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":2,"unique_order_numbers":22} 
[2026-03-16 23:46:46] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T11:46:44.408Z","date_to":"2026-03-16T23:46:44.408Z","per_page":"100"} 
[2026-03-16 23:46:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-022","AZS-160326-021","AZS-160326-020","AZS-160326-019","AZS-160326-018","AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":2,"unique_order_numbers":22} 
[2026-03-16 23:49:38] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6124,"order_number":"AZS-160326-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1650,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 23:49:38"} 
[2026-03-16 23:49:38] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6124,"order_number":"AZS-160326-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1650,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-16 23:49:38"} 
[2026-03-16 23:49:38] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6124,"order_number":"AZS-160326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1650,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 23:49:38"} 
[2026-03-16 23:49:38] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6124,"order_number":"AZS-160326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1650,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-16 23:49:38"} 
[2026-03-16 23:49:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6124,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":29214},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":29215},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":29216},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null,"id":29217},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":29218}],"validated_items":[{"id":29214,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":29215,"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":29216,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":29217,"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null},{"id":29218,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-16 23:49:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6124,"items_count":5} 
[2026-03-16 23:49:38] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29214,"menu_item_id":411,"quantity":1},{"id":29215,"menu_item_id":425,"quantity":1},{"id":29216,"menu_item_id":50,"quantity":2},{"id":29217,"menu_item_id":4,"quantity":2},{"id":29218,"menu_item_id":13,"quantity":2}]} 
[2026-03-16 23:49:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6124,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["411|1|","425|1|","50|2|","4|2|","13|2|"],"new_items_map_keys":["411|1|","425|1|","50|2|","4|2|","13|2|"]} 
[2026-03-16 23:49:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6124,"order_number":"AZS-160326-021"} 
[2026-03-16 23:49:38] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6124,"order_number":"AZS-160326-021","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1650,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-16 23:49:38","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-16 23:49:38"} 
[2026-03-16 23:49:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6124,"order_number":"AZS-160326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-16 23:49:38"} 
[2026-03-16 23:49:38] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6124,"order_number":"AZS-160326-021","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1650.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-16 23:49:38","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1650,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1650.00","database_verification_match":true,"timestamp":"2026-03-16 23:49:38"} 
[2026-03-16 23:49:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T11:49:46.750Z","date_to":"2026-03-16T23:49:46.750Z","per_page":"100"} 
[2026-03-16 23:49:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T11:49:46.769Z","date_to":"2026-03-16T23:49:46.769Z","per_page":"100"} 
[2026-03-16 23:49:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-022","AZS-160326-021","AZS-160326-020","AZS-160326-019","AZS-160326-018","AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":1,"unique_order_numbers":22} 
[2026-03-16 23:49:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-022","AZS-160326-021","AZS-160326-020","AZS-160326-019","AZS-160326-018","AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":1,"unique_order_numbers":22} 
[2026-03-16 23:49:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T11:49:46.750Z","date_to":"2026-03-16T23:49:46.750Z","per_page":"100"} 
[2026-03-16 23:49:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-160326-022","AZS-160326-021","AZS-160326-020","AZS-160326-019","AZS-160326-018","AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006","AZS-160326-005","AZS-160326-004","AZS-160326-003","AZS-160326-002","AZS-160326-001"],"order_statuses":["paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":1,"unique_order_numbers":22} 
[2026-03-17 05:31:22] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) {"userId":19,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(410): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#52 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:423)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): PDO->prepare('select `id`, `n...')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select `id`, `n...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(410): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 {main}
"} 
[2026-03-17 05:36:53] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) {"userId":19,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(410): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#52 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:423)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): PDO->prepare('select `id`, `n...')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select `id`, `n...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(410): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 {main}
"} 
[2026-03-17 09:00:37] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) {"userId":19,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(410): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#52 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:423)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): PDO->prepare('select `id`, `n...')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select `id`, `n...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(410): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 {main}
"} 
[2026-03-17 13:15:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6132,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":29227},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":29228},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29229},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29230}],"validated_items":[{"id":29227,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":29228,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":29229,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29230,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-17 13:15:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6132,"items_count":4} 
[2026-03-17 13:15:27] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29227,"menu_item_id":96,"quantity":1},{"id":29228,"menu_item_id":396,"quantity":2},{"id":29229,"menu_item_id":61,"quantity":1},{"id":29230,"menu_item_id":56,"quantity":1}]} 
[2026-03-17 13:15:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6132,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","396|2|","61|1|","56|1|"],"new_items_map_keys":["96|1|","396|2|","61|1|","56|1|"]} 
[2026-03-17 13:15:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6132,"order_number":"AZS-170326-008"} 
[2026-03-17 13:15:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6132,"order_number":"AZS-170326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-17 13:15:27"} 
[2026-03-17 13:24:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6130,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":29225},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29225,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-17 13:24:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6130,"items_count":7} 
[2026-03-17 13:24:46] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29225,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":112,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":54,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-03-17 13:24:46] local.INFO: PosOrderController::update - Item changes check {"order_id":6130,"has_item_changes":true,"old_items_count":1,"new_items_count":7,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","113|1|","112|1|","396|1|","54|1|","61|1|","56|1|"]} 
[2026-03-17 13:24:46] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6130,"order_number":"AZS-170326-006"} 
[2026-03-17 13:24:46] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-170326-006","replaced_order_id":6130} 
[2026-03-17 13:24:46] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6133,"items_count":7,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":54,"quantity":1,"price":"159.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"}]} 
[2026-03-17 13:24:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6133,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6133}} 
[2026-03-17 13:24:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6133,"item_index":0,"menu_item_id":417} 
[2026-03-17 13:24:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6133,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6133}} 
[2026-03-17 13:24:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6133,"item_index":1,"menu_item_id":113} 
[2026-03-17 13:24:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6133,"item_index":2,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6133}} 
[2026-03-17 13:24:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6133,"item_index":2,"menu_item_id":112} 
[2026-03-17 13:24:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6133,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6133}} 
[2026-03-17 13:24:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6133,"item_index":3,"menu_item_id":396} 
[2026-03-17 13:24:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6133,"item_index":4,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6133}} 
[2026-03-17 13:24:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6133,"item_index":4,"menu_item_id":54} 
[2026-03-17 13:24:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6133,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6133}} 
[2026-03-17 13:24:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6133,"item_index":5,"menu_item_id":61} 
[2026-03-17 13:24:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6133,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6133}} 
[2026-03-17 13:24:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6133,"item_index":6,"menu_item_id":56} 
[2026-03-17 13:24:46] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6130,"new_order_id":6133,"order_number":"AZS-170326-006"} 
[2026-03-17 13:25:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6133,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":29231},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":29232},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":29233},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":29234},{"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null,"id":29235},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29236},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29237}],"validated_items":[{"id":29231,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":29232,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":29233,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":29234,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":29235,"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null},{"id":29236,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29237,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-17 13:25:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6133,"items_count":7} 
[2026-03-17 13:25:27] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29231,"menu_item_id":417,"quantity":1},{"id":29232,"menu_item_id":113,"quantity":1},{"id":29233,"menu_item_id":112,"quantity":1},{"id":29234,"menu_item_id":396,"quantity":1},{"id":29235,"menu_item_id":54,"quantity":1},{"id":29236,"menu_item_id":61,"quantity":1},{"id":29237,"menu_item_id":56,"quantity":1}]} 
[2026-03-17 13:25:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6133,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["417|1|","113|1|","112|1|","396|1|","54|1|","61|1|","56|1|"],"new_items_map_keys":["417|1|","113|1|","112|1|","396|1|","54|1|","61|1|","56|1|"]} 
[2026-03-17 13:25:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6133,"order_number":"AZS-170326-006"} 
[2026-03-17 13:25:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6133,"order_number":"AZS-170326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-17 13:25:27"} 
[2026-03-17 13:25:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6131,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":29226}],"validated_items":[{"id":29226,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-17 13:25:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6131,"items_count":1} 
[2026-03-17 13:25:36] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29226,"menu_item_id":417,"quantity":1}]} 
[2026-03-17 13:25:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6131,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-17 13:25:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6131,"order_number":"AZS-170326-007"} 
[2026-03-17 13:25:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6131,"order_number":"AZS-170326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-17 13:25:36"} 
[2026-03-17 13:26:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":6133,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":29232},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":29233},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":29234},{"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null,"id":29235},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29236},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29237}],"validated_items":[{"id":29232,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":29233,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":29234,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":29235,"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null},{"id":29236,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29237,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-17 13:26:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6133,"items_count":6} 
[2026-03-17 13:26:22] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[29231],"items":[{"id":29232,"menu_item_id":113,"quantity":1},{"id":29233,"menu_item_id":112,"quantity":1},{"id":29234,"menu_item_id":396,"quantity":1},{"id":29235,"menu_item_id":54,"quantity":1},{"id":29236,"menu_item_id":61,"quantity":1},{"id":29237,"menu_item_id":56,"quantity":1}]} 
[2026-03-17 13:26:22] local.INFO: PosOrderController::update - Item changes check {"order_id":6133,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["417|1|","113|1|","112|1|","396|1|","54|1|","61|1|","56|1|"],"new_items_map_keys":["113|1|","112|1|","396|1|","54|1|","61|1|","56|1|"]} 
[2026-03-17 13:26:22] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6133,"order_number":"AZS-170326-006"} 
[2026-03-17 13:26:22] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-170326-006","replaced_order_id":6133} 
[2026-03-17 13:26:22] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6134,"items_count":6,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":54,"quantity":1,"price":"159.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"}]} 
[2026-03-17 13:26:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6134,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6134}} 
[2026-03-17 13:26:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6134,"item_index":0,"menu_item_id":113} 
[2026-03-17 13:26:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6134,"item_index":1,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6134}} 
[2026-03-17 13:26:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6134,"item_index":1,"menu_item_id":112} 
[2026-03-17 13:26:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6134,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6134}} 
[2026-03-17 13:26:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6134,"item_index":2,"menu_item_id":396} 
[2026-03-17 13:26:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6134,"item_index":3,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6134}} 
[2026-03-17 13:26:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6134,"item_index":3,"menu_item_id":54} 
[2026-03-17 13:26:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6134,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6134}} 
[2026-03-17 13:26:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6134,"item_index":4,"menu_item_id":61} 
[2026-03-17 13:26:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6134,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6134}} 
[2026-03-17 13:26:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6134,"item_index":5,"menu_item_id":56} 
[2026-03-17 13:26:22] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6133,"new_order_id":6134,"order_number":"AZS-170326-006"} 
[2026-03-17 13:27:09] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6126,"order_number":"AZS-170326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":50,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 13:27:09"} 
[2026-03-17 13:27:09] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6126,"order_number":"AZS-170326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":50,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 13:27:09"} 
[2026-03-17 13:27:09] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6126,"order_number":"AZS-170326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":50,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 13:27:09"} 
[2026-03-17 13:27:09] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6126,"order_number":"AZS-170326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":50,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 13:27:09"} 
[2026-03-17 13:27:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6126,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null,"id":29220}],"validated_items":[{"id":29220,"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-17 13:27:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6126,"items_count":1} 
[2026-03-17 13:27:09] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29220,"menu_item_id":286,"quantity":3}]} 
[2026-03-17 13:27:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6126,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["286|3|"],"new_items_map_keys":["286|3|"]} 
[2026-03-17 13:27:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6126,"order_number":"AZS-170326-002"} 
[2026-03-17 13:27:09] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6126,"order_number":"AZS-170326-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":50,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-17 13:27:09","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-17 13:27:09"} 
[2026-03-17 13:27:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6126,"order_number":"AZS-170326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-17 13:27:09"} 
[2026-03-17 13:27:09] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6126,"order_number":"AZS-170326-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"50.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-17 13:27:09","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":50,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"50.00","database_verification_match":true,"timestamp":"2026-03-17 13:27:09"} 
[2026-03-17 13:27:19] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6125,"order_number":"AZS-170326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":240,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 13:27:19"} 
[2026-03-17 13:27:19] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6125,"order_number":"AZS-170326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":240,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 13:27:19"} 
[2026-03-17 13:27:19] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6125,"order_number":"AZS-170326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":240,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 13:27:19"} 
[2026-03-17 13:27:19] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6125,"order_number":"AZS-170326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":240,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 13:27:19"} 
[2026-03-17 13:27:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6125,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":419,"quantity":4,"price":60,"discount_percent":0,"notes":null,"id":29219}],"validated_items":[{"id":29219,"menu_item_id":419,"quantity":4,"price":60,"discount_percent":0,"notes":null}]} 
[2026-03-17 13:27:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6125,"items_count":1} 
[2026-03-17 13:27:19] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29219,"menu_item_id":419,"quantity":4}]} 
[2026-03-17 13:27:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6125,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["419|4|"],"new_items_map_keys":["419|4|"]} 
[2026-03-17 13:27:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6125,"order_number":"AZS-170326-001"} 
[2026-03-17 13:27:19] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6125,"order_number":"AZS-170326-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":240,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-17 13:27:19","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-17 13:27:19"} 
[2026-03-17 13:27:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6125,"order_number":"AZS-170326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-17 13:27:19"} 
[2026-03-17 13:27:19] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6125,"order_number":"AZS-170326-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"240.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-17 13:27:19","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":240,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"240.00","database_verification_match":true,"timestamp":"2026-03-17 13:27:19"} 
[2026-03-17 13:27:30] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6127,"order_number":"AZS-170326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 13:27:30"} 
[2026-03-17 13:27:30] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6127,"order_number":"AZS-170326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 13:27:30"} 
[2026-03-17 13:27:30] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6127,"order_number":"AZS-170326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 13:27:30"} 
[2026-03-17 13:27:30] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6127,"order_number":"AZS-170326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 13:27:30"} 
[2026-03-17 13:27:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6127,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":418,"quantity":100,"price":1,"discount_percent":0,"notes":null,"id":29221}],"validated_items":[{"id":29221,"menu_item_id":418,"quantity":100,"price":1,"discount_percent":0,"notes":null}]} 
[2026-03-17 13:27:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6127,"items_count":1} 
[2026-03-17 13:27:30] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29221,"menu_item_id":418,"quantity":100}]} 
[2026-03-17 13:27:30] local.INFO: PosOrderController::update - Item changes check {"order_id":6127,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["418|100|"],"new_items_map_keys":["418|100|"]} 
[2026-03-17 13:27:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6127,"order_number":"AZS-170326-003"} 
[2026-03-17 13:27:30] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6127,"order_number":"AZS-170326-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-17 13:27:30","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-17 13:27:30"} 
[2026-03-17 13:27:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6127,"order_number":"AZS-170326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-17 13:27:30"} 
[2026-03-17 13:27:30] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6127,"order_number":"AZS-170326-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-17 13:27:30","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"100.00","database_verification_match":true,"timestamp":"2026-03-17 13:27:30"} 
[2026-03-17 13:27:46] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6128,"order_number":"AZS-170326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":60,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 13:27:46"} 
[2026-03-17 13:27:46] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6128,"order_number":"AZS-170326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":60,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 13:27:46"} 
[2026-03-17 13:27:46] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6128,"order_number":"AZS-170326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":60,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 13:27:46"} 
[2026-03-17 13:27:46] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6128,"order_number":"AZS-170326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":60,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 13:27:46"} 
[2026-03-17 13:27:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6128,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":418,"quantity":60,"price":1,"discount_percent":0,"notes":null,"id":29222}],"validated_items":[{"id":29222,"menu_item_id":418,"quantity":60,"price":1,"discount_percent":0,"notes":null}]} 
[2026-03-17 13:27:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6128,"items_count":1} 
[2026-03-17 13:27:46] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29222,"menu_item_id":418,"quantity":60}]} 
[2026-03-17 13:27:46] local.INFO: PosOrderController::update - Item changes check {"order_id":6128,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["418|60|"],"new_items_map_keys":["418|60|"]} 
[2026-03-17 13:27:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6128,"order_number":"AZS-170326-004"} 
[2026-03-17 13:27:46] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6128,"order_number":"AZS-170326-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":60,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-17 13:27:46","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-17 13:27:46"} 
[2026-03-17 13:27:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6128,"order_number":"AZS-170326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-17 13:27:46"} 
[2026-03-17 13:27:46] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6128,"order_number":"AZS-170326-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"60.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-17 13:27:46","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":60,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"60.00","database_verification_match":true,"timestamp":"2026-03-17 13:27:46"} 
[2026-03-17 13:28:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T01:28:00.497Z","date_to":"2026-03-17T13:28:00.497Z","per_page":"100"} 
[2026-03-17 13:28:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T01:28:00.481Z","date_to":"2026-03-17T13:28:00.481Z","per_page":"100"} 
[2026-03-17 13:28:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":5,"unique_order_numbers":9} 
[2026-03-17 13:28:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":5,"unique_order_numbers":9} 
[2026-03-17 13:28:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T01:28:00.481Z","date_to":"2026-03-17T13:28:00.481Z","per_page":"100"} 
[2026-03-17 13:28:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":5,"unique_order_numbers":9} 
[2026-03-17 13:28:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T13:28:21.491Z","date_to":"2026-03-17T13:28:21.491Z","per_page":"100"} 
[2026-03-17 13:28:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001","AZS-160326-022","AZS-160326-021","AZS-160326-020","AZS-160326-019","AZS-160326-018","AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":6,"unique_order_numbers":26} 
[2026-03-17 13:28:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-16T13:28:21.491Z","date_to":"2026-03-17T13:28:21.491Z","per_page":"1000"} 
[2026-03-17 13:28:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":1000,"order_branch_ids":[1],"order_numbers":["AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001","AZS-160326-022","AZS-160326-021","AZS-160326-020","AZS-160326-019","AZS-160326-018","AZS-160326-017","AZS-160326-016","AZS-160326-015","AZS-160326-014","AZS-160326-013","AZS-160326-012","AZS-160326-011","AZS-160326-010","AZS-160326-009","AZS-160326-008","AZS-160326-007","AZS-160326-006"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":6,"unique_order_numbers":26} 
[2026-03-17 13:36:22] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6129,"order_number":"AZS-170326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 13:36:22"} 
[2026-03-17 13:36:22] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6129,"order_number":"AZS-170326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 13:36:22"} 
[2026-03-17 13:36:22] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6129,"order_number":"AZS-170326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 13:36:22"} 
[2026-03-17 13:36:22] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6129,"order_number":"AZS-170326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 13:36:22"} 
[2026-03-17 13:36:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6129,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":419,"quantity":1,"price":60,"discount_percent":0,"notes":null,"id":29223},{"menu_item_id":418,"quantity":40,"price":1,"discount_percent":0,"notes":null,"id":29224}],"validated_items":[{"id":29223,"menu_item_id":419,"quantity":1,"price":60,"discount_percent":0,"notes":null},{"id":29224,"menu_item_id":418,"quantity":40,"price":1,"discount_percent":0,"notes":null}]} 
[2026-03-17 13:36:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6129,"items_count":2} 
[2026-03-17 13:36:22] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29223,"menu_item_id":419,"quantity":1},{"id":29224,"menu_item_id":418,"quantity":40}]} 
[2026-03-17 13:36:22] local.INFO: PosOrderController::update - Item changes check {"order_id":6129,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["419|1|","418|40|"],"new_items_map_keys":["419|1|","418|40|"]} 
[2026-03-17 13:36:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6129,"order_number":"AZS-170326-005"} 
[2026-03-17 13:36:22] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6129,"order_number":"AZS-170326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-17 13:36:22","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-17 13:36:22"} 
[2026-03-17 13:36:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6129,"order_number":"AZS-170326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-17 13:36:22"} 
[2026-03-17 13:36:22] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6129,"order_number":"AZS-170326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-17 13:36:22","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"100.00","database_verification_match":true,"timestamp":"2026-03-17 13:36:22"} 
[2026-03-17 13:36:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6136,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":29245},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29245,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-17 13:36:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6136,"items_count":3} 
[2026-03-17 13:36:37] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29245,"menu_item_id":78,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-03-17 13:36:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6136,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["78|1|"],"new_items_map_keys":["78|1|","61|1|","56|1|"]} 
[2026-03-17 13:36:37] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6136,"order_number":"AZS-170326-010"} 
[2026-03-17 13:36:37] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-170326-010","replaced_order_id":6136} 
[2026-03-17 13:36:37] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6137,"items_count":3,"items":[{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"}]} 
[2026-03-17 13:36:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6137,"item_index":0,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6137}} 
[2026-03-17 13:36:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6137,"item_index":0,"menu_item_id":78} 
[2026-03-17 13:36:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6137,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6137}} 
[2026-03-17 13:36:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6137,"item_index":1,"menu_item_id":61} 
[2026-03-17 13:36:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6137,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6137}} 
[2026-03-17 13:36:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6137,"item_index":2,"menu_item_id":56} 
[2026-03-17 13:36:37] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6136,"new_order_id":6137,"order_number":"AZS-170326-010"} 
[2026-03-17 13:42:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6131,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":29226},{"menu_item_id":111,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29226,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":111,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-17 13:42:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6131,"items_count":5} 
[2026-03-17 13:42:18] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29226,"menu_item_id":417,"quantity":1},{"id":null,"menu_item_id":111,"quantity":1},{"id":null,"menu_item_id":48,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-03-17 13:42:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6131,"has_item_changes":true,"old_items_count":1,"new_items_count":5,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|","111|1|","48|1|","61|1|","56|1|"]} 
[2026-03-17 13:42:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6131,"order_number":"AZS-170326-007"} 
[2026-03-17 13:42:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-170326-007","replaced_order_id":6131} 
[2026-03-17 13:42:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6138,"items_count":5,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":111,"quantity":1,"price":"4199.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"}]} 
[2026-03-17 13:42:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6138,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6138}} 
[2026-03-17 13:42:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6138,"item_index":0,"menu_item_id":417} 
[2026-03-17 13:42:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6138,"item_index":1,"item_data":{"menu_item_id":111,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Yakhni Rosh","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6138}} 
[2026-03-17 13:42:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6138,"item_index":1,"menu_item_id":111} 
[2026-03-17 13:42:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6138,"item_index":2,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6138}} 
[2026-03-17 13:42:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6138,"item_index":2,"menu_item_id":48} 
[2026-03-17 13:42:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6138,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6138}} 
[2026-03-17 13:42:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6138,"item_index":3,"menu_item_id":61} 
[2026-03-17 13:42:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6138,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6138}} 
[2026-03-17 13:42:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6138,"item_index":4,"menu_item_id":56} 
[2026-03-17 13:42:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6131,"new_order_id":6138,"order_number":"AZS-170326-007"} 
[2026-03-17 13:49:51] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6135,"order_number":"AZS-170326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 13:49:51"} 
[2026-03-17 13:49:51] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6135,"order_number":"AZS-170326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 13:49:51"} 
[2026-03-17 13:49:51] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6135,"order_number":"AZS-170326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 13:49:51"} 
[2026-03-17 13:49:51] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6135,"order_number":"AZS-170326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 13:49:51"} 
[2026-03-17 13:49:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6135,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":29244}],"validated_items":[{"id":29244,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-17 13:49:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6135,"items_count":1} 
[2026-03-17 13:49:51] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29244,"menu_item_id":417,"quantity":1}]} 
[2026-03-17 13:49:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6135,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["417|1|"],"new_items_map_keys":["417|1|"]} 
[2026-03-17 13:49:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6135,"order_number":"AZS-170326-009"} 
[2026-03-17 13:49:51] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6135,"order_number":"AZS-170326-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-17 13:49:51","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-17 13:49:51"} 
[2026-03-17 13:49:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6135,"order_number":"AZS-170326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-17 13:49:51"} 
[2026-03-17 13:49:51] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6135,"order_number":"AZS-170326-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-17 13:49:51","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-17 13:49:51"} 
[2026-03-17 13:58:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6132,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":29227},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":29228},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29229},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29230},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":29227,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":29228,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":29229,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29230,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-17 13:58:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6132,"items_count":5} 
[2026-03-17 13:58:55] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29227,"menu_item_id":96,"quantity":1},{"id":29228,"menu_item_id":396,"quantity":2},{"id":29229,"menu_item_id":61,"quantity":1},{"id":29230,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-17 13:58:55] local.INFO: PosOrderController::update - Item changes check {"order_id":6132,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["96|1|","396|2|","61|1|","56|1|"],"new_items_map_keys":["96|1|","396|2|","61|1|","56|1|","2|2|"]} 
[2026-03-17 13:58:55] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6132,"order_number":"AZS-170326-008"} 
[2026-03-17 13:58:55] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-170326-008","replaced_order_id":6132} 
[2026-03-17 13:58:55] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6140,"items_count":5,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-17 13:58:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6140,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6140}} 
[2026-03-17 13:58:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6140,"item_index":0,"menu_item_id":96} 
[2026-03-17 13:58:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6140,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6140}} 
[2026-03-17 13:58:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6140,"item_index":1,"menu_item_id":396} 
[2026-03-17 13:58:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6140,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6140}} 
[2026-03-17 13:58:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6140,"item_index":2,"menu_item_id":61} 
[2026-03-17 13:58:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6140,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6140}} 
[2026-03-17 13:58:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6140,"item_index":3,"menu_item_id":56} 
[2026-03-17 13:58:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6140,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6140}} 
[2026-03-17 13:58:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6140,"item_index":4,"menu_item_id":2} 
[2026-03-17 13:58:55] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6132,"new_order_id":6140,"order_number":"AZS-170326-008"} 
[2026-03-17 13:59:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6140,"item_index":0,"item_id":29227} 
[2026-03-17 13:59:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6140,"item_index":1,"item_id":29228} 
[2026-03-17 13:59:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6140,"item_index":2,"item_id":29229} 
[2026-03-17 13:59:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6140,"item_index":3,"item_id":29230} 
[2026-03-17 13:59:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6140,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29227},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29228},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29229},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29230},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-17 13:59:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6140,"items_count":5} 
[2026-03-17 13:59:07] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[29255,29256,29257,29258,29259],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-17 13:59:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6140,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","396|2|","61|1|","56|1|","2|2|"],"new_items_map_keys":["96|1|","396|2|","61|1|","56|1|","2|2|"]} 
[2026-03-17 13:59:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6140,"order_number":"AZS-170326-008"} 
[2026-03-17 13:59:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6140,"order_number":"AZS-170326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-17 13:59:07"} 
[2026-03-17 13:59:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6140,"item_index":0,"item_id":29227} 
[2026-03-17 13:59:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6140,"item_index":1,"item_id":29228} 
[2026-03-17 13:59:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6140,"item_index":2,"item_id":29229} 
[2026-03-17 13:59:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6140,"item_index":3,"item_id":29230} 
[2026-03-17 13:59:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6140,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29227},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29228},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29229},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29230},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-17 13:59:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6140,"items_count":5} 
[2026-03-17 13:59:14] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[29255,29256,29257,29258,29259],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-17 13:59:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6140,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","396|2|","61|1|","56|1|","2|2|"],"new_items_map_keys":["96|1|","396|2|","61|1|","56|1|","2|2|"]} 
[2026-03-17 13:59:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6140,"order_number":"AZS-170326-008"} 
[2026-03-17 13:59:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6140,"order_number":"AZS-170326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-17 13:59:14"} 
[2026-03-17 14:07:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6140,"item_index":0,"item_id":29227} 
[2026-03-17 14:07:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6140,"item_index":1,"item_id":29228} 
[2026-03-17 14:07:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6140,"item_index":2,"item_id":29229} 
[2026-03-17 14:07:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6140,"item_index":3,"item_id":29230} 
[2026-03-17 14:07:53] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6140,"order_number":"AZS-170326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 14:07:53"} 
[2026-03-17 14:07:53] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6140,"order_number":"AZS-170326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 14:07:53"} 
[2026-03-17 14:07:53] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6140,"order_number":"AZS-170326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 14:07:53"} 
[2026-03-17 14:07:53] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6140,"order_number":"AZS-170326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 14:07:53"} 
[2026-03-17 14:07:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6140,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29227},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29228},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29229},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29230},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-17 14:07:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6140,"items_count":5} 
[2026-03-17 14:07:53] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[29255,29256,29257,29258,29259],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-17 14:07:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6140,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","396|2|","61|1|","56|1|","2|2|"],"new_items_map_keys":["96|1|","396|2|","61|1|","56|1|","2|2|"]} 
[2026-03-17 14:07:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6140,"order_number":"AZS-170326-008"} 
[2026-03-17 14:07:53] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6140,"order_number":"AZS-170326-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-17 14:07:53","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-17 14:07:53"} 
[2026-03-17 14:07:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6140,"order_number":"AZS-170326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-17 14:07:53"} 
[2026-03-17 14:07:53] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6140,"order_number":"AZS-170326-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-17 14:07:53","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2200.00","database_verification_match":true,"timestamp":"2026-03-17 14:07:53"} 
[2026-03-17 14:08:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T02:07:59.094Z","date_to":"2026-03-17T14:07:59.094Z","per_page":"100"} 
[2026-03-17 14:08:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T02:07:59.080Z","date_to":"2026-03-17T14:07:59.080Z","per_page":"100"} 
[2026-03-17 14:08:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","pending","paid","paid","pending","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":4,"unique_order_numbers":11} 
[2026-03-17 14:08:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","pending","paid","paid","pending","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":4,"unique_order_numbers":11} 
[2026-03-17 14:08:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T02:07:59.080Z","date_to":"2026-03-17T14:07:59.080Z","per_page":"100"} 
[2026-03-17 14:08:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","pending","paid","paid","pending","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":4,"unique_order_numbers":11} 
[2026-03-17 14:10:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6139,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":29254}],"validated_items":[{"id":29254,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null}]} 
[2026-03-17 14:10:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6139,"items_count":1} 
[2026-03-17 14:10:37] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29254,"menu_item_id":112,"quantity":1}]} 
[2026-03-17 14:10:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6139,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["112|1|"],"new_items_map_keys":["112|1|"]} 
[2026-03-17 14:10:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6139,"order_number":"AZS-170326-011"} 
[2026-03-17 14:10:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6139,"order_number":"AZS-170326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-17 14:10:37"} 
[2026-03-17 14:11:16] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6139,"order_number":"AZS-170326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 14:11:16"} 
[2026-03-17 14:11:16] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6139,"order_number":"AZS-170326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 14:11:16"} 
[2026-03-17 14:11:16] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6139,"order_number":"AZS-170326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 14:11:16"} 
[2026-03-17 14:11:16] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6139,"order_number":"AZS-170326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 14:11:16"} 
[2026-03-17 14:11:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6139,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":29254}],"validated_items":[{"id":29254,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null}]} 
[2026-03-17 14:11:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6139,"items_count":1} 
[2026-03-17 14:11:16] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29254,"menu_item_id":112,"quantity":1}]} 
[2026-03-17 14:11:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6139,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["112|1|"],"new_items_map_keys":["112|1|"]} 
[2026-03-17 14:11:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6139,"order_number":"AZS-170326-011"} 
[2026-03-17 14:11:16] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6139,"order_number":"AZS-170326-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-17 14:11:16","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-17 14:11:16"} 
[2026-03-17 14:11:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6139,"order_number":"AZS-170326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-17 14:11:16"} 
[2026-03-17 14:11:16] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6139,"order_number":"AZS-170326-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-17 14:11:16","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-17 14:11:16"} 
[2026-03-17 14:15:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6134,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":29238},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":29239},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":29240},{"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null,"id":29241},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29242},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29243}],"validated_items":[{"id":29238,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":29239,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":29240,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":29241,"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null},{"id":29242,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29243,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-17 14:15:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6134,"items_count":6} 
[2026-03-17 14:15:47] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29238,"menu_item_id":113,"quantity":1},{"id":29239,"menu_item_id":112,"quantity":1},{"id":29240,"menu_item_id":396,"quantity":1},{"id":29241,"menu_item_id":54,"quantity":1},{"id":29242,"menu_item_id":61,"quantity":1},{"id":29243,"menu_item_id":56,"quantity":1}]} 
[2026-03-17 14:15:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6134,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","112|1|","396|1|","54|1|","61|1|","56|1|"],"new_items_map_keys":["113|1|","112|1|","396|1|","54|1|","61|1|","56|1|"]} 
[2026-03-17 14:15:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6134,"order_number":"AZS-170326-006"} 
[2026-03-17 14:15:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6134,"order_number":"AZS-170326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-17 14:15:47"} 
[2026-03-17 14:28:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6134,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29238},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":29239},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":29240},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":29241},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29242},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29243}],"validated_items":[{"id":29238,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29239,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":29240,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":29241,"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":29242,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29243,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-17 14:28:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6134,"items_count":6} 
[2026-03-17 14:28:44] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29238,"menu_item_id":113,"quantity":1},{"id":29239,"menu_item_id":112,"quantity":1},{"id":29240,"menu_item_id":396,"quantity":1},{"id":29241,"menu_item_id":54,"quantity":1},{"id":29242,"menu_item_id":61,"quantity":1},{"id":29243,"menu_item_id":56,"quantity":1}]} 
[2026-03-17 14:28:44] local.INFO: PosOrderController::update - Item changes check {"order_id":6134,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","112|1|","396|1|","54|1|","61|1|","56|1|"],"new_items_map_keys":["113|1|","112|1|","396|1|","54|1|","61|1|","56|1|"]} 
[2026-03-17 14:28:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6134,"order_number":"AZS-170326-006"} 
[2026-03-17 14:28:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6134,"order_number":"AZS-170326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-17 14:28:44"} 
[2026-03-17 14:28:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6134,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":29238},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":29239},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":29240},{"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null,"id":29241},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29242},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29243},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29238,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":29239,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":29240,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":29241,"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null},{"id":29242,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29243,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-17 14:28:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6134,"items_count":7} 
[2026-03-17 14:28:49] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29238,"menu_item_id":113,"quantity":1},{"id":29239,"menu_item_id":112,"quantity":1},{"id":29240,"menu_item_id":396,"quantity":1},{"id":29241,"menu_item_id":54,"quantity":1},{"id":29242,"menu_item_id":61,"quantity":1},{"id":29243,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":6,"quantity":1}]} 
[2026-03-17 14:28:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6134,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["113|1|","112|1|","396|1|","54|1|","61|1|","56|1|"],"new_items_map_keys":["113|1|","112|1|","396|1|","54|1|","61|1|","56|1|","6|1|"]} 
[2026-03-17 14:28:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6134,"order_number":"AZS-170326-006"} 
[2026-03-17 14:28:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-170326-006","replaced_order_id":6134} 
[2026-03-17 14:28:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6141,"items_count":7,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":54,"quantity":1,"price":"159.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":6,"quantity":1,"price":"199.00"}]} 
[2026-03-17 14:28:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6141,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6141}} 
[2026-03-17 14:28:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6141,"item_index":0,"menu_item_id":113} 
[2026-03-17 14:28:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6141,"item_index":1,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6141}} 
[2026-03-17 14:28:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6141,"item_index":1,"menu_item_id":112} 
[2026-03-17 14:28:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6141,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6141}} 
[2026-03-17 14:28:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6141,"item_index":2,"menu_item_id":396} 
[2026-03-17 14:28:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6141,"item_index":3,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6141}} 
[2026-03-17 14:28:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6141,"item_index":3,"menu_item_id":54} 
[2026-03-17 14:28:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6141,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6141}} 
[2026-03-17 14:28:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6141,"item_index":4,"menu_item_id":61} 
[2026-03-17 14:28:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6141,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6141}} 
[2026-03-17 14:28:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6141,"item_index":5,"menu_item_id":56} 
[2026-03-17 14:28:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6141,"item_index":6,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6141}} 
[2026-03-17 14:28:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6141,"item_index":6,"menu_item_id":6} 
[2026-03-17 14:28:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6134,"new_order_id":6141,"order_number":"AZS-170326-006"} 
[2026-03-17 14:28:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6141,"item_index":0,"item_id":29238} 
[2026-03-17 14:28:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6141,"item_index":1,"item_id":29239} 
[2026-03-17 14:28:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6141,"item_index":2,"item_id":29240} 
[2026-03-17 14:28:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6141,"item_index":3,"item_id":29241} 
[2026-03-17 14:28:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6141,"item_index":4,"item_id":29242} 
[2026-03-17 14:28:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6141,"item_index":5,"item_id":29243} 
[2026-03-17 14:28:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":6141,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29238},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":29239},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":29240},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":29241},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29242},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29243},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-17 14:28:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6141,"items_count":7} 
[2026-03-17 14:28:55] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[29260,29261,29262,29263,29264,29265,29266],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":112,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":54,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":6,"quantity":1}]} 
[2026-03-17 14:28:55] local.INFO: PosOrderController::update - Item changes check {"order_id":6141,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["113|1|","112|1|","396|1|","54|1|","61|1|","56|1|","6|1|"],"new_items_map_keys":["113|1|","112|1|","396|1|","54|1|","61|1|","56|1|","6|1|"]} 
[2026-03-17 14:28:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6141,"order_number":"AZS-170326-006"} 
[2026-03-17 14:28:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6141,"order_number":"AZS-170326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-17 14:28:55"} 
[2026-03-17 14:41:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6137,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":29246},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29247},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29248}],"validated_items":[{"id":29246,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":29247,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29248,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-17 14:41:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6137,"items_count":3} 
[2026-03-17 14:41:57] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29246,"menu_item_id":78,"quantity":1},{"id":29247,"menu_item_id":61,"quantity":1},{"id":29248,"menu_item_id":56,"quantity":1}]} 
[2026-03-17 14:41:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6137,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["78|1|","61|1|","56|1|"],"new_items_map_keys":["78|1|","61|1|","56|1|"]} 
[2026-03-17 14:41:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6137,"order_number":"AZS-170326-010"} 
[2026-03-17 14:41:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6137,"order_number":"AZS-170326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-17 14:41:57"} 
[2026-03-17 14:42:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6137,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":29246},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29247},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29248},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29246,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":29247,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29248,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-17 14:42:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6137,"items_count":5} 
[2026-03-17 14:42:16] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29246,"menu_item_id":78,"quantity":1},{"id":29247,"menu_item_id":61,"quantity":1},{"id":29248,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-17 14:42:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6137,"has_item_changes":true,"old_items_count":3,"new_items_count":5,"old_items_map_keys":["78|1|","61|1|","56|1|"],"new_items_map_keys":["78|1|","61|1|","56|1|","2|2|","5|1|"]} 
[2026-03-17 14:42:16] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6137,"order_number":"AZS-170326-010"} 
[2026-03-17 14:42:16] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-170326-010","replaced_order_id":6137} 
[2026-03-17 14:42:16] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6143,"items_count":5,"items":[{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-17 14:42:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6143,"item_index":0,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6143}} 
[2026-03-17 14:42:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6143,"item_index":0,"menu_item_id":78} 
[2026-03-17 14:42:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6143,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6143}} 
[2026-03-17 14:42:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6143,"item_index":1,"menu_item_id":61} 
[2026-03-17 14:42:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6143,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6143}} 
[2026-03-17 14:42:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6143,"item_index":2,"menu_item_id":56} 
[2026-03-17 14:42:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6143,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6143}} 
[2026-03-17 14:42:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6143,"item_index":3,"menu_item_id":2} 
[2026-03-17 14:42:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6143,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6143}} 
[2026-03-17 14:42:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6143,"item_index":4,"menu_item_id":5} 
[2026-03-17 14:42:16] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6137,"new_order_id":6143,"order_number":"AZS-170326-010"} 
[2026-03-17 14:42:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6143,"item_index":0,"item_id":29246} 
[2026-03-17 14:42:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6143,"item_index":1,"item_id":29247} 
[2026-03-17 14:42:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6143,"item_index":2,"item_id":29248} 
[2026-03-17 14:42:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6143,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":29246},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29247},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29248},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-17 14:42:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6143,"items_count":5} 
[2026-03-17 14:42:22] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[29271,29272,29273,29274,29275],"items":[{"id":null,"menu_item_id":78,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-17 14:42:22] local.INFO: PosOrderController::update - Item changes check {"order_id":6143,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["78|1|","61|1|","56|1|","2|2|","5|1|"],"new_items_map_keys":["78|1|","61|1|","56|1|","2|2|","5|1|"]} 
[2026-03-17 14:42:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6143,"order_number":"AZS-170326-010"} 
[2026-03-17 14:42:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6143,"order_number":"AZS-170326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-17 14:42:22"} 
[2026-03-17 14:43:12] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6141,"order_number":"AZS-170326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4200,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 14:43:12"} 
[2026-03-17 14:43:12] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6141,"order_number":"AZS-170326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 14:43:12"} 
[2026-03-17 14:43:12] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6141,"order_number":"AZS-170326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4200,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 14:43:12"} 
[2026-03-17 14:43:12] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6141,"order_number":"AZS-170326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4200,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 14:43:12"} 
[2026-03-17 14:43:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6141,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29260},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":29261},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":29262},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":29263},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29264},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29265},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29266}],"validated_items":[{"id":29260,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29261,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":29262,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":29263,"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":29264,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29265,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29266,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-17 14:43:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6141,"items_count":7} 
[2026-03-17 14:43:12] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29260,"menu_item_id":113,"quantity":1},{"id":29261,"menu_item_id":112,"quantity":1},{"id":29262,"menu_item_id":396,"quantity":1},{"id":29263,"menu_item_id":54,"quantity":1},{"id":29264,"menu_item_id":61,"quantity":1},{"id":29265,"menu_item_id":56,"quantity":1},{"id":29266,"menu_item_id":6,"quantity":1}]} 
[2026-03-17 14:43:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6141,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["113|1|","112|1|","396|1|","54|1|","61|1|","56|1|","6|1|"],"new_items_map_keys":["113|1|","112|1|","396|1|","54|1|","61|1|","56|1|","6|1|"]} 
[2026-03-17 14:43:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6141,"order_number":"AZS-170326-006"} 
[2026-03-17 14:43:12] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6141,"order_number":"AZS-170326-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4200,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-17 14:43:12","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-17 14:43:12"} 
[2026-03-17 14:43:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6141,"order_number":"AZS-170326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-17 14:43:12"} 
[2026-03-17 14:43:12] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6141,"order_number":"AZS-170326-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4200.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-17 14:43:12","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4200.00","database_verification_match":true,"timestamp":"2026-03-17 14:43:12"} 
[2026-03-17 14:46:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6144,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29276},{"menu_item_id":23,"quantity":8,"discount_percent":0,"notes":null}],"validated_items":[{"id":29276,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":23,"quantity":8,"discount_percent":0,"notes":null}]} 
[2026-03-17 14:46:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6144,"items_count":2} 
[2026-03-17 14:46:26] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29276,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":23,"quantity":8}]} 
[2026-03-17 14:46:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6144,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["5|1|"],"new_items_map_keys":["5|1|","23|8|"]} 
[2026-03-17 14:46:26] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6144,"order_number":"AZS-170326-013"} 
[2026-03-17 14:46:26] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-170326-013","replaced_order_id":6144} 
[2026-03-17 14:46:26] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6145,"items_count":2,"items":[{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":23,"quantity":8,"price":"249.00"}]} 
[2026-03-17 14:46:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6145,"item_index":0,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6145}} 
[2026-03-17 14:46:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6145,"item_index":0,"menu_item_id":5} 
[2026-03-17 14:46:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6145,"item_index":1,"item_data":{"menu_item_id":23,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Vanilla","quantity":8,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":1992.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6145}} 
[2026-03-17 14:46:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6145,"item_index":1,"menu_item_id":23} 
[2026-03-17 14:46:26] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6144,"new_order_id":6145,"order_number":"AZS-170326-013"} 
[2026-03-17 14:54:36] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6143,"order_number":"AZS-170326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5488,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 14:54:36"} 
[2026-03-17 14:54:36] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6143,"order_number":"AZS-170326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5488,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 14:54:36"} 
[2026-03-17 14:54:36] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6143,"order_number":"AZS-170326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5488,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 14:54:36"} 
[2026-03-17 14:54:36] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6143,"order_number":"AZS-170326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5488,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 14:54:36"} 
[2026-03-17 14:54:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6143,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":29271},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29272},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29273},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":29274},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29275}],"validated_items":[{"id":29271,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":29272,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29273,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29274,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":29275,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-17 14:54:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6143,"items_count":5} 
[2026-03-17 14:54:36] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29271,"menu_item_id":78,"quantity":1},{"id":29272,"menu_item_id":61,"quantity":1},{"id":29273,"menu_item_id":56,"quantity":1},{"id":29274,"menu_item_id":2,"quantity":2},{"id":29275,"menu_item_id":5,"quantity":1}]} 
[2026-03-17 14:54:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6143,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["78|1|","61|1|","56|1|","2|2|","5|1|"],"new_items_map_keys":["78|1|","61|1|","56|1|","2|2|","5|1|"]} 
[2026-03-17 14:54:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6143,"order_number":"AZS-170326-010"} 
[2026-03-17 14:54:36] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6143,"order_number":"AZS-170326-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5488,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-17 14:54:36","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-17 14:54:36"} 
[2026-03-17 14:54:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6143,"order_number":"AZS-170326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-17 14:54:36"} 
[2026-03-17 14:54:36] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6143,"order_number":"AZS-170326-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5488.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-17 14:54:36","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5488,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5488.00","database_verification_match":true,"timestamp":"2026-03-17 14:54:36"} 
[2026-03-17 15:06:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6145,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29277},{"menu_item_id":23,"quantity":8,"price":249,"discount_percent":0,"notes":null,"id":29278}],"validated_items":[{"id":29277,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29278,"menu_item_id":23,"quantity":8,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-17 15:06:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6145,"items_count":2} 
[2026-03-17 15:06:57] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29277,"menu_item_id":5,"quantity":1},{"id":29278,"menu_item_id":23,"quantity":8}]} 
[2026-03-17 15:06:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6145,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["5|1|","23|8|"],"new_items_map_keys":["5|1|","23|8|"]} 
[2026-03-17 15:06:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6145,"order_number":"AZS-170326-013"} 
[2026-03-17 15:06:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6145,"order_number":"AZS-170326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-17 15:06:57"} 
[2026-03-17 15:16:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6138,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":29249},{"menu_item_id":111,"quantity":1,"discount_percent":0,"notes":null,"id":29250},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":29251},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29252},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29253},{"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":29249,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":29250,"menu_item_id":111,"quantity":1,"discount_percent":0,"notes":null},{"id":29251,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"id":29252,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29253,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-17 15:16:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6138,"items_count":6} 
[2026-03-17 15:16:24] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29249,"menu_item_id":417,"quantity":1},{"id":29250,"menu_item_id":111,"quantity":1},{"id":29251,"menu_item_id":48,"quantity":1},{"id":29252,"menu_item_id":61,"quantity":1},{"id":29253,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":9,"quantity":2}]} 
[2026-03-17 15:16:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6138,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["417|1|","111|1|","48|1|","61|1|","56|1|"],"new_items_map_keys":["417|1|","111|1|","48|1|","61|1|","56|1|","9|2|"]} 
[2026-03-17 15:16:24] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6138,"order_number":"AZS-170326-007"} 
[2026-03-17 15:16:24] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-170326-007","replaced_order_id":6138} 
[2026-03-17 15:16:24] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6146,"items_count":6,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":111,"quantity":1,"price":"4199.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":9,"quantity":2,"price":"229.00"}]} 
[2026-03-17 15:16:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6146,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6146}} 
[2026-03-17 15:16:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6146,"item_index":0,"menu_item_id":417} 
[2026-03-17 15:16:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6146,"item_index":1,"item_data":{"menu_item_id":111,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Yakhni Rosh","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6146}} 
[2026-03-17 15:16:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6146,"item_index":1,"menu_item_id":111} 
[2026-03-17 15:16:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6146,"item_index":2,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6146}} 
[2026-03-17 15:16:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6146,"item_index":2,"menu_item_id":48} 
[2026-03-17 15:16:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6146,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6146}} 
[2026-03-17 15:16:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6146,"item_index":3,"menu_item_id":61} 
[2026-03-17 15:16:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6146,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6146}} 
[2026-03-17 15:16:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6146,"item_index":4,"menu_item_id":56} 
[2026-03-17 15:16:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6146,"item_index":5,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":2,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":458.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6146}} 
[2026-03-17 15:16:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6146,"item_index":5,"menu_item_id":9} 
[2026-03-17 15:16:24] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6138,"new_order_id":6146,"order_number":"AZS-170326-007"} 
[2026-03-17 15:27:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6146,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":29279},{"menu_item_id":111,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":29280},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":29281},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29282},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29283},{"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null,"id":29284}],"validated_items":[{"id":29279,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":29280,"menu_item_id":111,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":29281,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":29282,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29283,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29284,"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null}]} 
[2026-03-17 15:27:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6146,"items_count":6} 
[2026-03-17 15:27:00] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29279,"menu_item_id":417,"quantity":1},{"id":29280,"menu_item_id":111,"quantity":1},{"id":29281,"menu_item_id":48,"quantity":1},{"id":29282,"menu_item_id":61,"quantity":1},{"id":29283,"menu_item_id":56,"quantity":1},{"id":29284,"menu_item_id":9,"quantity":2}]} 
[2026-03-17 15:27:00] local.INFO: PosOrderController::update - Item changes check {"order_id":6146,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["417|1|","111|1|","48|1|","61|1|","56|1|","9|2|"],"new_items_map_keys":["417|1|","111|1|","48|1|","61|1|","56|1|","9|2|"]} 
[2026-03-17 15:27:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6146,"order_number":"AZS-170326-007"} 
[2026-03-17 15:27:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6146,"order_number":"AZS-170326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-17 15:27:00"} 
[2026-03-17 15:31:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":2,"order_id":6146,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null,"id":29279},{"menu_item_id":111,"quantity":1,"discount_percent":0,"notes":null,"id":29280},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":29281},{"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null,"id":29284}],"validated_items":[{"id":29279,"menu_item_id":417,"quantity":1,"discount_percent":0,"notes":null},{"id":29280,"menu_item_id":111,"quantity":1,"discount_percent":0,"notes":null},{"id":29281,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"id":29284,"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-17 15:31:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6146,"items_count":4} 
[2026-03-17 15:31:36] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":2,"items_to_remove":[29282,29283],"items":[{"id":29279,"menu_item_id":417,"quantity":1},{"id":29280,"menu_item_id":111,"quantity":1},{"id":29281,"menu_item_id":48,"quantity":1},{"id":29284,"menu_item_id":9,"quantity":2}]} 
[2026-03-17 15:31:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6146,"has_item_changes":true,"old_items_count":6,"new_items_count":4,"old_items_map_keys":["417|1|","111|1|","48|1|","61|1|","56|1|","9|2|"],"new_items_map_keys":["417|1|","111|1|","48|1|","9|2|"]} 
[2026-03-17 15:31:36] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6146,"order_number":"AZS-170326-007"} 
[2026-03-17 15:31:36] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-170326-007","replaced_order_id":6146} 
[2026-03-17 15:31:36] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6147,"items_count":4,"items":[{"menu_item_id":417,"quantity":1,"price":"499.00"},{"menu_item_id":111,"quantity":1,"price":"4199.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":9,"quantity":2,"price":"229.00"}]} 
[2026-03-17 15:31:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6147,"item_index":0,"item_data":{"menu_item_id":417,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Aftari Platter","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6147}} 
[2026-03-17 15:31:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6147,"item_index":0,"menu_item_id":417} 
[2026-03-17 15:31:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6147,"item_index":1,"item_data":{"menu_item_id":111,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Yakhni Rosh","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6147}} 
[2026-03-17 15:31:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6147,"item_index":1,"menu_item_id":111} 
[2026-03-17 15:31:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6147,"item_index":2,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6147}} 
[2026-03-17 15:31:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6147,"item_index":2,"menu_item_id":48} 
[2026-03-17 15:31:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6147,"item_index":3,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":2,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":458.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6147}} 
[2026-03-17 15:31:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6147,"item_index":3,"menu_item_id":9} 
[2026-03-17 15:31:36] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6146,"new_order_id":6147,"order_number":"AZS-170326-007"} 
[2026-03-17 15:35:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6145,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29277},{"menu_item_id":23,"quantity":8,"price":249,"discount_percent":0,"notes":null,"id":29278}],"validated_items":[{"id":29277,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29278,"menu_item_id":23,"quantity":8,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-17 15:35:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6145,"items_count":2} 
[2026-03-17 15:35:27] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29277,"menu_item_id":5,"quantity":1},{"id":29278,"menu_item_id":23,"quantity":8}]} 
[2026-03-17 15:35:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6145,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["5|1|","23|8|"],"new_items_map_keys":["5|1|","23|8|"]} 
[2026-03-17 15:35:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6145,"order_number":"AZS-170326-013"} 
[2026-03-17 15:35:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6145,"order_number":"AZS-170326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-17 15:35:27"} 
[2026-03-17 15:35:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T03:35:50.336Z","date_to":"2026-03-17T15:35:50.336Z","per_page":"100"} 
[2026-03-17 15:35:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T03:35:50.349Z","date_to":"2026-03-17T15:35:50.349Z","per_page":"100"} 
[2026-03-17 15:35:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-17 15:35:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-17 15:35:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T03:35:50.336Z","date_to":"2026-03-17T15:35:50.336Z","per_page":"100"} 
[2026-03-17 15:35:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-17 15:36:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6147,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":29285},{"menu_item_id":111,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":29286},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":29287},{"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null,"id":29288}],"validated_items":[{"id":29285,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":29286,"menu_item_id":111,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":29287,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":29288,"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null}]} 
[2026-03-17 15:36:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6147,"items_count":4} 
[2026-03-17 15:36:05] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29285,"menu_item_id":417,"quantity":1},{"id":29286,"menu_item_id":111,"quantity":1},{"id":29287,"menu_item_id":48,"quantity":1},{"id":29288,"menu_item_id":9,"quantity":2}]} 
[2026-03-17 15:36:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6147,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["417|1|","111|1|","48|1|","9|2|"],"new_items_map_keys":["417|1|","111|1|","48|1|","9|2|"]} 
[2026-03-17 15:36:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6147,"order_number":"AZS-170326-007"} 
[2026-03-17 15:36:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6147,"order_number":"AZS-170326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-17 15:36:05"} 
[2026-03-17 15:36:40] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6147,"order_number":"AZS-170326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 15:36:40"} 
[2026-03-17 15:36:40] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6147,"order_number":"AZS-170326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 15:36:40"} 
[2026-03-17 15:36:40] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6147,"order_number":"AZS-170326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 15:36:40"} 
[2026-03-17 15:36:40] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6147,"order_number":"AZS-170326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 15:36:40"} 
[2026-03-17 15:36:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6147,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":29285},{"menu_item_id":111,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":29286},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":29287},{"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null,"id":29288}],"validated_items":[{"id":29285,"menu_item_id":417,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":29286,"menu_item_id":111,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":29287,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":29288,"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null}]} 
[2026-03-17 15:36:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6147,"items_count":4} 
[2026-03-17 15:36:40] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29285,"menu_item_id":417,"quantity":1},{"id":29286,"menu_item_id":111,"quantity":1},{"id":29287,"menu_item_id":48,"quantity":1},{"id":29288,"menu_item_id":9,"quantity":2}]} 
[2026-03-17 15:36:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6147,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["417|1|","111|1|","48|1|","9|2|"],"new_items_map_keys":["417|1|","111|1|","48|1|","9|2|"]} 
[2026-03-17 15:36:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6147,"order_number":"AZS-170326-007"} 
[2026-03-17 15:36:40] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6147,"order_number":"AZS-170326-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":6000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-17 15:36:40","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-17 15:36:40"} 
[2026-03-17 15:36:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6147,"order_number":"AZS-170326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-17 15:36:40"} 
[2026-03-17 15:36:40] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6147,"order_number":"AZS-170326-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"6000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-17 15:36:40","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"6000.00","database_verification_match":true,"timestamp":"2026-03-17 15:36:40"} 
[2026-03-17 15:38:31] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6145,"order_number":"AZS-170326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 15:38:31"} 
[2026-03-17 15:38:31] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6145,"order_number":"AZS-170326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 15:38:31"} 
[2026-03-17 15:38:31] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6145,"order_number":"AZS-170326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 15:38:31"} 
[2026-03-17 15:38:31] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6145,"order_number":"AZS-170326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 15:38:31"} 
[2026-03-17 15:38:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6145,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29277},{"menu_item_id":23,"quantity":8,"price":249,"discount_percent":0,"notes":null,"id":29278}],"validated_items":[{"id":29277,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29278,"menu_item_id":23,"quantity":8,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-17 15:38:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6145,"items_count":2} 
[2026-03-17 15:38:31] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29277,"menu_item_id":5,"quantity":1},{"id":29278,"menu_item_id":23,"quantity":8}]} 
[2026-03-17 15:38:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6145,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["5|1|","23|8|"],"new_items_map_keys":["5|1|","23|8|"]} 
[2026-03-17 15:38:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6145,"order_number":"AZS-170326-013"} 
[2026-03-17 15:38:31] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6145,"order_number":"AZS-170326-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-17 15:38:31","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-17 15:38:31"} 
[2026-03-17 15:38:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6145,"order_number":"AZS-170326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-17 15:38:31"} 
[2026-03-17 15:38:31] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6145,"order_number":"AZS-170326-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-17 15:38:31","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-17 15:38:31"} 
[2026-03-17 15:55:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T03:55:23.469Z","date_to":"2026-03-17T15:55:23.469Z","per_page":"100"} 
[2026-03-17 15:55:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T03:55:23.482Z","date_to":"2026-03-17T15:55:23.482Z","per_page":"100"} 
[2026-03-17 15:55:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-17 15:55:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-17 15:55:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T03:55:23.469Z","date_to":"2026-03-17T15:55:23.469Z","per_page":"100"} 
[2026-03-17 15:55:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-17 17:05:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T05:05:48.784Z","date_to":"2026-03-17T17:05:48.784Z","per_page":"100"} 
[2026-03-17 17:05:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T05:05:48.799Z","date_to":"2026-03-17T17:05:48.799Z","per_page":"100"} 
[2026-03-17 17:05:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-015","AZS-170326-014","AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":3,"unique_order_numbers":15} 
[2026-03-17 17:05:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-015","AZS-170326-014","AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":3,"unique_order_numbers":15} 
[2026-03-17 17:05:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T05:05:48.784Z","date_to":"2026-03-17T17:05:48.784Z","per_page":"100"} 
[2026-03-17 17:05:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-015","AZS-170326-014","AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":3,"unique_order_numbers":15} 
[2026-03-17 17:13:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6148,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29289},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29290},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":29291},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":29292},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29293},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":29289,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29290,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29291,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":29292,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":29293,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-17 17:13:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6148,"items_count":6} 
[2026-03-17 17:13:37] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29289,"menu_item_id":61,"quantity":1},{"id":29290,"menu_item_id":56,"quantity":1},{"id":29291,"menu_item_id":50,"quantity":1},{"id":29292,"menu_item_id":62,"quantity":1},{"id":29293,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-17 17:13:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6148,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["61|1|","56|1|","50|1|","62|1|","5|1|"],"new_items_map_keys":["61|1|","56|1|","50|1|","62|1|","5|1|","2|2|"]} 
[2026-03-17 17:13:37] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6148,"order_number":"AZS-170326-014"} 
[2026-03-17 17:13:37] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-170326-014","replaced_order_id":6148} 
[2026-03-17 17:13:37] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6150,"items_count":6,"items":[{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-17 17:13:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6150,"item_index":0,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6150}} 
[2026-03-17 17:13:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6150,"item_index":0,"menu_item_id":61} 
[2026-03-17 17:13:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6150,"item_index":1,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6150}} 
[2026-03-17 17:13:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6150,"item_index":1,"menu_item_id":56} 
[2026-03-17 17:13:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6150,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6150}} 
[2026-03-17 17:13:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6150,"item_index":2,"menu_item_id":50} 
[2026-03-17 17:13:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6150,"item_index":3,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6150}} 
[2026-03-17 17:13:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6150,"item_index":3,"menu_item_id":62} 
[2026-03-17 17:13:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6150,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6150}} 
[2026-03-17 17:13:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6150,"item_index":4,"menu_item_id":5} 
[2026-03-17 17:13:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6150,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6150}} 
[2026-03-17 17:13:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6150,"item_index":5,"menu_item_id":2} 
[2026-03-17 17:13:37] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6148,"new_order_id":6150,"order_number":"AZS-170326-014"} 
[2026-03-17 17:14:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6150,"item_index":0,"item_id":29289} 
[2026-03-17 17:14:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6150,"item_index":1,"item_id":29290} 
[2026-03-17 17:14:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6150,"item_index":2,"item_id":29291} 
[2026-03-17 17:14:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6150,"item_index":3,"item_id":29292} 
[2026-03-17 17:14:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6150,"item_index":4,"item_id":29293} 
[2026-03-17 17:14:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6150,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29289},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29290},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":29291},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":29292},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29293},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-17 17:14:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6150,"items_count":6} 
[2026-03-17 17:14:05] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[29296,29297,29298,29299,29300,29301],"items":[{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-17 17:14:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6150,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["61|1|","56|1|","50|1|","62|1|","5|1|","2|2|"],"new_items_map_keys":["61|1|","56|1|","50|1|","62|1|","5|1|","2|2|"]} 
[2026-03-17 17:14:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6150,"order_number":"AZS-170326-014"} 
[2026-03-17 17:14:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6150,"order_number":"AZS-170326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-17 17:14:05"} 
[2026-03-17 17:14:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6150,"item_index":0,"item_id":29289} 
[2026-03-17 17:14:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6150,"item_index":1,"item_id":29290} 
[2026-03-17 17:14:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6150,"item_index":2,"item_id":29291} 
[2026-03-17 17:14:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6150,"item_index":3,"item_id":29292} 
[2026-03-17 17:14:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":6,"order_id":6150,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29289},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29290},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":29291},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":29292},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-17 17:14:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6150,"items_count":5} 
[2026-03-17 17:14:45] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":6,"items_to_remove":[29296,29297,29298,29299,29300,29301],"items":[{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-17 17:14:45] local.INFO: PosOrderController::update - Item changes check {"order_id":6150,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["61|1|","56|1|","50|1|","62|1|","5|1|","2|2|"],"new_items_map_keys":["61|1|","56|1|","50|1|","62|1|","2|2|"]} 
[2026-03-17 17:14:45] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6150,"order_number":"AZS-170326-014"} 
[2026-03-17 17:14:45] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-170326-014","replaced_order_id":6150} 
[2026-03-17 17:14:45] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6151,"items_count":5,"items":[{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-17 17:14:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6151,"item_index":0,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6151}} 
[2026-03-17 17:14:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6151,"item_index":0,"menu_item_id":61} 
[2026-03-17 17:14:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6151,"item_index":1,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6151}} 
[2026-03-17 17:14:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6151,"item_index":1,"menu_item_id":56} 
[2026-03-17 17:14:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6151,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6151}} 
[2026-03-17 17:14:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6151,"item_index":2,"menu_item_id":50} 
[2026-03-17 17:14:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6151,"item_index":3,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6151}} 
[2026-03-17 17:14:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6151,"item_index":3,"menu_item_id":62} 
[2026-03-17 17:14:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6151,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6151}} 
[2026-03-17 17:14:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6151,"item_index":4,"menu_item_id":2} 
[2026-03-17 17:14:45] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6150,"new_order_id":6151,"order_number":"AZS-170326-014"} 
[2026-03-17 17:14:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6151,"item_index":0,"item_id":29289} 
[2026-03-17 17:14:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6151,"item_index":1,"item_id":29290} 
[2026-03-17 17:14:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6151,"item_index":2,"item_id":29291} 
[2026-03-17 17:14:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6151,"item_index":3,"item_id":29292} 
[2026-03-17 17:14:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6151,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29289},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29290},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":29291},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":29292},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-17 17:14:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6151,"items_count":5} 
[2026-03-17 17:14:57] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[29302,29303,29304,29305,29306],"items":[{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-17 17:14:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6151,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["61|1|","56|1|","50|1|","62|1|","2|2|"],"new_items_map_keys":["61|1|","56|1|","50|1|","62|1|","2|2|"]} 
[2026-03-17 17:14:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6151,"order_number":"AZS-170326-014"} 
[2026-03-17 17:14:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6151,"order_number":"AZS-170326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-17 17:14:57"} 
[2026-03-17 17:25:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T05:25:30.117Z","date_to":"2026-03-17T17:25:30.117Z","per_page":"100"} 
[2026-03-17 17:25:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-015","AZS-170326-014","AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":3,"unique_order_numbers":15} 
[2026-03-17 17:25:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T05:25:30.131Z","date_to":"2026-03-17T17:25:30.131Z","per_page":"100"} 
[2026-03-17 17:25:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-015","AZS-170326-014","AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":3,"unique_order_numbers":15} 
[2026-03-17 17:25:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T05:25:30.117Z","date_to":"2026-03-17T17:25:30.117Z","per_page":"100"} 
[2026-03-17 17:25:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-015","AZS-170326-014","AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":3,"unique_order_numbers":15} 
[2026-03-17 17:26:38] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6151,"order_number":"AZS-170326-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2300,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 17:26:38"} 
[2026-03-17 17:26:38] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6151,"order_number":"AZS-170326-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2300,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 17:26:38"} 
[2026-03-17 17:26:38] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6151,"order_number":"AZS-170326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 17:26:38"} 
[2026-03-17 17:26:38] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6151,"order_number":"AZS-170326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 17:26:38"} 
[2026-03-17 17:26:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6151,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29302},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29303},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":29304},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":29305},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":29306}],"validated_items":[{"id":29302,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29303,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29304,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":29305,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":29306,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-17 17:26:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6151,"items_count":5} 
[2026-03-17 17:26:38] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29302,"menu_item_id":61,"quantity":1},{"id":29303,"menu_item_id":56,"quantity":1},{"id":29304,"menu_item_id":50,"quantity":1},{"id":29305,"menu_item_id":62,"quantity":1},{"id":29306,"menu_item_id":2,"quantity":2}]} 
[2026-03-17 17:26:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6151,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["61|1|","56|1|","50|1|","62|1|","2|2|"],"new_items_map_keys":["61|1|","56|1|","50|1|","62|1|","2|2|"]} 
[2026-03-17 17:26:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6151,"order_number":"AZS-170326-014"} 
[2026-03-17 17:26:38] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6151,"order_number":"AZS-170326-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2300,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-17 17:26:38","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-17 17:26:38"} 
[2026-03-17 17:26:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6151,"order_number":"AZS-170326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-17 17:26:38"} 
[2026-03-17 17:26:38] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6151,"order_number":"AZS-170326-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2300.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-17 17:26:38","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2300,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2300.00","database_verification_match":true,"timestamp":"2026-03-17 17:26:38"} 
[2026-03-17 17:33:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6149,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":172,"quantity":4,"discount_percent":0,"notes":null,"id":29294},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":29295}],"validated_items":[{"id":29294,"menu_item_id":172,"quantity":4,"discount_percent":0,"notes":null},{"id":29295,"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-17 17:33:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6149,"items_count":2} 
[2026-03-17 17:33:28] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29294,"menu_item_id":172,"quantity":4},{"id":29295,"menu_item_id":2,"quantity":3}]} 
[2026-03-17 17:33:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6149,"has_item_changes":true,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["172|3|","2|3|"],"new_items_map_keys":["172|4|","2|3|"]} 
[2026-03-17 17:33:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6149,"order_number":"AZS-170326-015"} 
[2026-03-17 17:33:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-170326-015","replaced_order_id":6149} 
[2026-03-17 17:33:28] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6152,"items_count":2,"items":[{"menu_item_id":172,"quantity":4,"price":"999.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"}]} 
[2026-03-17 17:33:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6152,"item_index":0,"item_data":{"menu_item_id":172,"restaurant_category_id":17,"restaurant_category_name":"BURGER","item_name":"Zinger Burger","quantity":4,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":3996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6152}} 
[2026-03-17 17:33:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6152,"item_index":0,"menu_item_id":172} 
[2026-03-17 17:33:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6152,"item_index":1,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6152}} 
[2026-03-17 17:33:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6152,"item_index":1,"menu_item_id":2} 
[2026-03-17 17:33:28] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6149,"new_order_id":6152,"order_number":"AZS-170326-015"} 
[2026-03-17 17:39:43] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6152,"item_index":0,"item_id":29294} 
[2026-03-17 17:39:43] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6152,"item_index":1,"item_id":29295} 
[2026-03-17 17:39:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":6152,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":172,"quantity":4,"price":999,"discount_percent":0,"notes":null,"id":29294},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":29295}],"validated_items":[{"menu_item_id":172,"quantity":4,"price":999,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-17 17:39:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6152,"items_count":2} 
[2026-03-17 17:39:43] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[29307,29308],"items":[{"id":null,"menu_item_id":172,"quantity":4},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-03-17 17:39:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6152,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["172|4|","2|3|"],"new_items_map_keys":["172|4|","2|3|"]} 
[2026-03-17 17:39:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6152,"order_number":"AZS-170326-015"} 
[2026-03-17 17:39:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6152,"order_number":"AZS-170326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-17 17:39:43"} 
[2026-03-17 18:06:58] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6152,"item_index":0,"item_id":29294} 
[2026-03-17 18:06:58] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6152,"item_index":1,"item_id":29295} 
[2026-03-17 18:06:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":6152,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":172,"quantity":4,"price":999,"discount_percent":0,"notes":null,"id":29294},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":29295}],"validated_items":[{"menu_item_id":172,"quantity":4,"price":999,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-17 18:06:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6152,"items_count":2} 
[2026-03-17 18:06:58] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[29307,29308],"items":[{"id":null,"menu_item_id":172,"quantity":4},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-03-17 18:06:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6152,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["172|4|","2|3|"],"new_items_map_keys":["172|4|","2|3|"]} 
[2026-03-17 18:06:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6152,"order_number":"AZS-170326-015"} 
[2026-03-17 18:06:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6152,"order_number":"AZS-170326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-17 18:06:58"} 
[2026-03-17 18:07:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6152,"item_index":0,"item_id":29294} 
[2026-03-17 18:07:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6152,"item_index":1,"item_id":29295} 
[2026-03-17 18:07:17] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6152,"order_number":"AZS-170326-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 18:07:17"} 
[2026-03-17 18:07:17] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6152,"order_number":"AZS-170326-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 18:07:17"} 
[2026-03-17 18:07:17] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6152,"order_number":"AZS-170326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 18:07:17"} 
[2026-03-17 18:07:17] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6152,"order_number":"AZS-170326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 18:07:17"} 
[2026-03-17 18:07:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":6152,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":172,"quantity":4,"price":999,"discount_percent":0,"notes":null,"id":29294},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":29295}],"validated_items":[{"menu_item_id":172,"quantity":4,"price":999,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-17 18:07:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6152,"items_count":2} 
[2026-03-17 18:07:17] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[29307,29308],"items":[{"id":null,"menu_item_id":172,"quantity":4},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-03-17 18:07:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6152,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["172|4|","2|3|"],"new_items_map_keys":["172|4|","2|3|"]} 
[2026-03-17 18:07:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6152,"order_number":"AZS-170326-015"} 
[2026-03-17 18:07:17] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6152,"order_number":"AZS-170326-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-17 18:07:17","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-17 18:07:17"} 
[2026-03-17 18:07:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6152,"order_number":"AZS-170326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-17 18:07:17"} 
[2026-03-17 18:07:17] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6152,"order_number":"AZS-170326-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-17 18:07:17","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-17 18:07:17"} 
[2026-03-17 18:31:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T06:31:20.857Z","date_to":"2026-03-17T18:31:20.857Z","per_page":"100"} 
[2026-03-17 18:31:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T06:31:20.871Z","date_to":"2026-03-17T18:31:20.871Z","per_page":"100"} 
[2026-03-17 18:31:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-016","AZS-170326-015","AZS-170326-014","AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":2,"unique_order_numbers":16} 
[2026-03-17 18:31:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-016","AZS-170326-015","AZS-170326-014","AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":2,"unique_order_numbers":16} 
[2026-03-17 18:31:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T06:31:20.857Z","date_to":"2026-03-17T18:31:20.857Z","per_page":"100"} 
[2026-03-17 18:31:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-016","AZS-170326-015","AZS-170326-014","AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":2,"unique_order_numbers":16} 
[2026-03-17 18:35:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6142,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29267},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29268},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null,"id":29269},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":29270},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":29267,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29268,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29269,"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null},{"id":29270,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-17 18:35:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6142,"items_count":6} 
[2026-03-17 18:35:40] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29267,"menu_item_id":61,"quantity":1},{"id":29268,"menu_item_id":56,"quantity":1},{"id":29269,"menu_item_id":4,"quantity":2},{"id":29270,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":13,"quantity":3},{"id":null,"menu_item_id":9,"quantity":2}]} 
[2026-03-17 18:35:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6142,"has_item_changes":true,"old_items_count":4,"new_items_count":6,"old_items_map_keys":["61|1|","56|1|","4|2|","2|1|"],"new_items_map_keys":["61|1|","56|1|","4|2|","2|1|","13|3|","9|2|"]} 
[2026-03-17 18:35:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6142,"order_number":"AZS-170326-012"} 
[2026-03-17 18:35:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-170326-012","replaced_order_id":6142} 
[2026-03-17 18:35:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6154,"items_count":6,"items":[{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":4,"quantity":2,"price":"90.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":13,"quantity":3,"price":"249.00"},{"menu_item_id":9,"quantity":2,"price":"229.00"}]} 
[2026-03-17 18:35:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6154,"item_index":0,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6154}} 
[2026-03-17 18:35:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6154,"item_index":0,"menu_item_id":61} 
[2026-03-17 18:35:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6154,"item_index":1,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6154}} 
[2026-03-17 18:35:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6154,"item_index":1,"menu_item_id":56} 
[2026-03-17 18:35:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6154,"item_index":2,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":2,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":180.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6154}} 
[2026-03-17 18:35:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6154,"item_index":2,"menu_item_id":4} 
[2026-03-17 18:35:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6154,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6154}} 
[2026-03-17 18:35:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6154,"item_index":3,"menu_item_id":2} 
[2026-03-17 18:35:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6154,"item_index":4,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6154}} 
[2026-03-17 18:35:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6154,"item_index":4,"menu_item_id":13} 
[2026-03-17 18:35:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6154,"item_index":5,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":2,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":458.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6154}} 
[2026-03-17 18:35:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6154,"item_index":5,"menu_item_id":9} 
[2026-03-17 18:35:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6142,"new_order_id":6154,"order_number":"AZS-170326-012"} 
[2026-03-17 18:35:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6154,"item_index":0,"item_id":29267} 
[2026-03-17 18:35:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6154,"item_index":1,"item_id":29268} 
[2026-03-17 18:35:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6154,"item_index":2,"item_id":29269} 
[2026-03-17 18:35:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6154,"item_index":3,"item_id":29270} 
[2026-03-17 18:35:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6154,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29267},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29268},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null,"id":29269},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":29270},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-17 18:35:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6154,"items_count":6} 
[2026-03-17 18:35:44] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[29313,29314,29315,29316,29317,29318],"items":[{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":4,"quantity":2},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":13,"quantity":3},{"id":null,"menu_item_id":9,"quantity":2}]} 
[2026-03-17 18:35:44] local.INFO: PosOrderController::update - Item changes check {"order_id":6154,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["61|1|","56|1|","4|2|","2|1|","13|3|","9|2|"],"new_items_map_keys":["61|1|","56|1|","4|2|","2|1|","13|3|","9|2|"]} 
[2026-03-17 18:35:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6154,"order_number":"AZS-170326-012"} 
[2026-03-17 18:35:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6154,"order_number":"AZS-170326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-17 18:35:44"} 
[2026-03-17 18:57:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6154,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29313},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29314},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null,"id":29315},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":29316},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null,"id":29317},{"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null,"id":29318},{"menu_item_id":163,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29313,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29314,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29315,"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null},{"id":29316,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":29317,"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null},{"id":29318,"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":163,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-17 18:57:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6154,"items_count":7} 
[2026-03-17 18:57:18] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29313,"menu_item_id":61,"quantity":1},{"id":29314,"menu_item_id":56,"quantity":1},{"id":29315,"menu_item_id":4,"quantity":2},{"id":29316,"menu_item_id":2,"quantity":1},{"id":29317,"menu_item_id":13,"quantity":3},{"id":29318,"menu_item_id":9,"quantity":2},{"id":null,"menu_item_id":163,"quantity":1}]} 
[2026-03-17 18:57:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6154,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["61|1|","56|1|","4|2|","2|1|","13|3|","9|2|"],"new_items_map_keys":["61|1|","56|1|","4|2|","2|1|","13|3|","9|2|","163|1|"]} 
[2026-03-17 18:57:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6154,"order_number":"AZS-170326-012"} 
[2026-03-17 18:57:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-170326-012","replaced_order_id":6154} 
[2026-03-17 18:57:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6155,"items_count":7,"items":[{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":4,"quantity":2,"price":"90.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":13,"quantity":3,"price":"249.00"},{"menu_item_id":9,"quantity":2,"price":"229.00"},{"menu_item_id":163,"quantity":1,"price":"1050.00"}]} 
[2026-03-17 18:57:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6155,"item_index":0,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6155}} 
[2026-03-17 18:57:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6155,"item_index":0,"menu_item_id":61} 
[2026-03-17 18:57:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6155,"item_index":1,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6155}} 
[2026-03-17 18:57:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6155,"item_index":1,"menu_item_id":56} 
[2026-03-17 18:57:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6155,"item_index":2,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":2,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":180.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6155}} 
[2026-03-17 18:57:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6155,"item_index":2,"menu_item_id":4} 
[2026-03-17 18:57:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6155,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6155}} 
[2026-03-17 18:57:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6155,"item_index":3,"menu_item_id":2} 
[2026-03-17 18:57:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6155,"item_index":4,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6155}} 
[2026-03-17 18:57:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6155,"item_index":4,"menu_item_id":13} 
[2026-03-17 18:57:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6155,"item_index":5,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":2,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":458.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6155}} 
[2026-03-17 18:57:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6155,"item_index":5,"menu_item_id":9} 
[2026-03-17 18:57:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6155,"item_index":6,"item_data":{"menu_item_id":163,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Azan Special Sandwich","quantity":1,"price":"1050.00","discount_percent":0.0,"discount_amount":0.0,"total":1050.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6155}} 
[2026-03-17 18:57:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6155,"item_index":6,"menu_item_id":163} 
[2026-03-17 18:57:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6154,"new_order_id":6155,"order_number":"AZS-170326-012"} 
[2026-03-17 21:36:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":1,"order_id":6155,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29319},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29320},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null,"id":29321},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":29322},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null,"id":29323},{"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null,"id":29324},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":29319,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29320,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29321,"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null},{"id":29322,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":29323,"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null},{"id":29324,"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-17 21:36:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6155,"items_count":8} 
[2026-03-17 21:36:23] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":1,"items_to_remove":[29325],"items":[{"id":29319,"menu_item_id":61,"quantity":1},{"id":29320,"menu_item_id":56,"quantity":1},{"id":29321,"menu_item_id":4,"quantity":2},{"id":29322,"menu_item_id":2,"quantity":1},{"id":29323,"menu_item_id":13,"quantity":3},{"id":29324,"menu_item_id":9,"quantity":2},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":51,"quantity":2}]} 
[2026-03-17 21:36:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6155,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["61|1|","56|1|","4|2|","2|1|","13|3|","9|2|","163|1|"],"new_items_map_keys":["61|1|","56|1|","4|2|","2|1|","13|3|","9|2|","105|1|","51|2|"]} 
[2026-03-17 21:36:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6155,"order_number":"AZS-170326-012"} 
[2026-03-17 21:36:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-170326-012","replaced_order_id":6155} 
[2026-03-17 21:36:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6156,"items_count":8,"items":[{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":4,"quantity":2,"price":"90.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":13,"quantity":3,"price":"249.00"},{"menu_item_id":9,"quantity":2,"price":"229.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":51,"quantity":2,"price":"199.00"}]} 
[2026-03-17 21:36:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6156,"item_index":0,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6156}} 
[2026-03-17 21:36:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6156,"item_index":0,"menu_item_id":61} 
[2026-03-17 21:36:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6156,"item_index":1,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6156}} 
[2026-03-17 21:36:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6156,"item_index":1,"menu_item_id":56} 
[2026-03-17 21:36:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6156,"item_index":2,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":2,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":180.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6156}} 
[2026-03-17 21:36:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6156,"item_index":2,"menu_item_id":4} 
[2026-03-17 21:36:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6156,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6156}} 
[2026-03-17 21:36:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6156,"item_index":3,"menu_item_id":2} 
[2026-03-17 21:36:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6156,"item_index":4,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6156}} 
[2026-03-17 21:36:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6156,"item_index":4,"menu_item_id":13} 
[2026-03-17 21:36:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6156,"item_index":5,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":2,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":458.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6156}} 
[2026-03-17 21:36:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6156,"item_index":5,"menu_item_id":9} 
[2026-03-17 21:36:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6156,"item_index":6,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6156}} 
[2026-03-17 21:36:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6156,"item_index":6,"menu_item_id":105} 
[2026-03-17 21:36:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6156,"item_index":7,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6156}} 
[2026-03-17 21:36:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6156,"item_index":7,"menu_item_id":51} 
[2026-03-17 21:36:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6155,"new_order_id":6156,"order_number":"AZS-170326-012"} 
[2026-03-17 21:37:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6153,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":29309},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":29311},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29312},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29309,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":29311,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":29312,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-17 21:37:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6153,"items_count":5} 
[2026-03-17 21:37:32] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[29310],"items":[{"id":29309,"menu_item_id":96,"quantity":1},{"id":29311,"menu_item_id":396,"quantity":2},{"id":29312,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-17 21:37:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6153,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["96|1|","49|1|","396|1|","61|1|"],"new_items_map_keys":["96|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-17 21:37:32] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6153,"order_number":"AZS-170326-016"} 
[2026-03-17 21:37:32] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-170326-016","replaced_order_id":6153} 
[2026-03-17 21:37:32] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6157,"items_count":5,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-17 21:37:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6157,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6157}} 
[2026-03-17 21:37:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6157,"item_index":0,"menu_item_id":96} 
[2026-03-17 21:37:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6157,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6157}} 
[2026-03-17 21:37:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6157,"item_index":1,"menu_item_id":396} 
[2026-03-17 21:37:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6157,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6157}} 
[2026-03-17 21:37:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6157,"item_index":2,"menu_item_id":61} 
[2026-03-17 21:37:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6157,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6157}} 
[2026-03-17 21:37:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6157,"item_index":3,"menu_item_id":56} 
[2026-03-17 21:37:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6157,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6157}} 
[2026-03-17 21:37:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6157,"item_index":4,"menu_item_id":5} 
[2026-03-17 21:37:32] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6153,"new_order_id":6157,"order_number":"AZS-170326-016"} 
[2026-03-17 21:37:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6157,"item_index":0,"item_id":29309} 
[2026-03-17 21:37:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6157,"item_index":1,"item_id":29311} 
[2026-03-17 21:37:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6157,"item_index":2,"item_id":29312} 
[2026-03-17 21:37:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6157,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":29309},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":29311},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29312},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-17 21:37:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6157,"items_count":5} 
[2026-03-17 21:37:36] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[29334,29335,29336,29337,29338],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-17 21:37:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6157,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["96|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-17 21:37:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6157,"order_number":"AZS-170326-016"} 
[2026-03-17 21:37:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6157,"order_number":"AZS-170326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-17 21:37:37"} 
[2026-03-17 21:48:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T09:48:54.374Z","date_to":"2026-03-17T21:48:54.374Z","per_page":"100"} 
[2026-03-17 21:48:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T09:48:54.355Z","date_to":"2026-03-17T21:48:54.355Z","per_page":"100"} 
[2026-03-17 21:48:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-016","AZS-170326-015","AZS-170326-014","AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":2,"unique_order_numbers":16} 
[2026-03-17 21:48:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-016","AZS-170326-015","AZS-170326-014","AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":2,"unique_order_numbers":16} 
[2026-03-17 21:48:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T09:48:54.355Z","date_to":"2026-03-17T21:48:54.355Z","per_page":"100"} 
[2026-03-17 21:48:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-016","AZS-170326-015","AZS-170326-014","AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":2,"unique_order_numbers":16} 
[2026-03-17 21:54:58] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-17 22:08:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6157,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":29334},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":29335},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29336},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29337},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29338},{"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":29334,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":29335,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":29336,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29337,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29338,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-17 22:08:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6157,"items_count":6} 
[2026-03-17 22:08:25] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29334,"menu_item_id":96,"quantity":1},{"id":29335,"menu_item_id":396,"quantity":2},{"id":29336,"menu_item_id":61,"quantity":1},{"id":29337,"menu_item_id":56,"quantity":1},{"id":29338,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":9,"quantity":2}]} 
[2026-03-17 22:08:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6157,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["96|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["96|1|","396|2|","61|1|","56|1|","5|1|","9|2|"]} 
[2026-03-17 22:08:25] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6157,"order_number":"AZS-170326-016"} 
[2026-03-17 22:08:25] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-170326-016","replaced_order_id":6157} 
[2026-03-17 22:08:25] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6160,"items_count":6,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":9,"quantity":2,"price":"229.00"}]} 
[2026-03-17 22:08:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6160,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6160}} 
[2026-03-17 22:08:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6160,"item_index":0,"menu_item_id":96} 
[2026-03-17 22:08:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6160,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6160}} 
[2026-03-17 22:08:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6160,"item_index":1,"menu_item_id":396} 
[2026-03-17 22:08:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6160,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6160}} 
[2026-03-17 22:08:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6160,"item_index":2,"menu_item_id":61} 
[2026-03-17 22:08:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6160,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6160}} 
[2026-03-17 22:08:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6160,"item_index":3,"menu_item_id":56} 
[2026-03-17 22:08:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6160,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6160}} 
[2026-03-17 22:08:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6160,"item_index":4,"menu_item_id":5} 
[2026-03-17 22:08:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6160,"item_index":5,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":2,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":458.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6160}} 
[2026-03-17 22:08:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6160,"item_index":5,"menu_item_id":9} 
[2026-03-17 22:08:25] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6157,"new_order_id":6160,"order_number":"AZS-170326-016"} 
[2026-03-17 22:18:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T10:18:52.077Z","date_to":"2026-03-17T22:18:52.077Z","per_page":"100"} 
[2026-03-17 22:18:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-018","AZS-170326-017","AZS-170326-016","AZS-170326-015","AZS-170326-014","AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":4,"unique_order_numbers":18} 
[2026-03-17 22:18:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T10:18:52.097Z","date_to":"2026-03-17T22:18:52.097Z","per_page":"100"} 
[2026-03-17 22:18:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-018","AZS-170326-017","AZS-170326-016","AZS-170326-015","AZS-170326-014","AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":4,"unique_order_numbers":18} 
[2026-03-17 22:18:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T10:18:52.077Z","date_to":"2026-03-17T22:18:52.077Z","per_page":"100"} 
[2026-03-17 22:18:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-018","AZS-170326-017","AZS-170326-016","AZS-170326-015","AZS-170326-014","AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":4,"unique_order_numbers":18} 
[2026-03-17 22:22:05] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6156,"order_number":"AZS-170326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4510,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 22:22:05"} 
[2026-03-17 22:22:05] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6156,"order_number":"AZS-170326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4510,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 22:22:05"} 
[2026-03-17 22:22:05] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6156,"order_number":"AZS-170326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4510,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 22:22:05"} 
[2026-03-17 22:22:05] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6156,"order_number":"AZS-170326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4510,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 22:22:05"} 
[2026-03-17 22:22:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6156,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29326},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29327},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null,"id":29328},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":29329},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":29330},{"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null,"id":29331},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":29332},{"menu_item_id":51,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29333}],"validated_items":[{"id":29326,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29327,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29328,"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null},{"id":29329,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":29330,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null},{"id":29331,"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null},{"id":29332,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":29333,"menu_item_id":51,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-17 22:22:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6156,"items_count":8} 
[2026-03-17 22:22:05] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29326,"menu_item_id":61,"quantity":1},{"id":29327,"menu_item_id":56,"quantity":1},{"id":29328,"menu_item_id":4,"quantity":2},{"id":29329,"menu_item_id":2,"quantity":1},{"id":29330,"menu_item_id":13,"quantity":3},{"id":29331,"menu_item_id":9,"quantity":2},{"id":29332,"menu_item_id":105,"quantity":1},{"id":29333,"menu_item_id":51,"quantity":2}]} 
[2026-03-17 22:22:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6156,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["61|1|","56|1|","4|2|","2|1|","13|3|","9|2|","105|1|","51|2|"],"new_items_map_keys":["61|1|","56|1|","4|2|","2|1|","13|3|","9|2|","105|1|","51|2|"]} 
[2026-03-17 22:22:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6156,"order_number":"AZS-170326-012"} 
[2026-03-17 22:22:05] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6156,"order_number":"AZS-170326-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4510,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-17 22:22:05","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-17 22:22:05"} 
[2026-03-17 22:22:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6156,"order_number":"AZS-170326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-17 22:22:05"} 
[2026-03-17 22:22:05] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6156,"order_number":"AZS-170326-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4510.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-17 22:22:05","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4510,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4510.00","database_verification_match":true,"timestamp":"2026-03-17 22:22:05"} 
[2026-03-17 22:22:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T10:22:09.083Z","date_to":"2026-03-17T22:22:09.083Z","per_page":"100"} 
[2026-03-17 22:22:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-018","AZS-170326-017","AZS-170326-016","AZS-170326-015","AZS-170326-014","AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-03-17 22:22:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T10:22:09.098Z","date_to":"2026-03-17T22:22:09.098Z","per_page":"100"} 
[2026-03-17 22:22:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-018","AZS-170326-017","AZS-170326-016","AZS-170326-015","AZS-170326-014","AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-03-17 22:22:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T10:22:09.083Z","date_to":"2026-03-17T22:22:09.083Z","per_page":"100"} 
[2026-03-17 22:22:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-018","AZS-170326-017","AZS-170326-016","AZS-170326-015","AZS-170326-014","AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-03-17 22:27:38] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6158,"order_number":"AZS-170326-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":600,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 22:27:38"} 
[2026-03-17 22:27:38] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6158,"order_number":"AZS-170326-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 22:27:38"} 
[2026-03-17 22:27:38] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6158,"order_number":"AZS-170326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 22:27:38"} 
[2026-03-17 22:27:38] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6158,"order_number":"AZS-170326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 22:27:38"} 
[2026-03-17 22:27:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6158,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":29339}],"validated_items":[{"id":29339,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null}]} 
[2026-03-17 22:27:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6158,"items_count":1} 
[2026-03-17 22:27:38] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29339,"menu_item_id":411,"quantity":1}]} 
[2026-03-17 22:27:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6158,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["411|1|"],"new_items_map_keys":["411|1|"]} 
[2026-03-17 22:27:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6158,"order_number":"AZS-170326-017"} 
[2026-03-17 22:27:38] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6158,"order_number":"AZS-170326-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":600,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-17 22:27:38","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-17 22:27:38"} 
[2026-03-17 22:27:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6158,"order_number":"AZS-170326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-17 22:27:38"} 
[2026-03-17 22:27:38] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6158,"order_number":"AZS-170326-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"600.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-17 22:27:38","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"600.00","database_verification_match":true,"timestamp":"2026-03-17 22:27:38"} 
[2026-03-17 22:32:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6159,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":29340},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":29341},{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":29342}],"validated_items":[{"id":29340,"menu_item_id":67,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":29341,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":29342,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-17 22:32:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6159,"items_count":3} 
[2026-03-17 22:32:34] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29340,"menu_item_id":67,"quantity":2},{"id":29341,"menu_item_id":396,"quantity":1},{"id":29342,"menu_item_id":6,"quantity":4}]} 
[2026-03-17 22:32:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6159,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["67|2|","396|1|","6|4|"],"new_items_map_keys":["67|2|","396|1|","6|4|"]} 
[2026-03-17 22:32:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6159,"order_number":"AZS-170326-018"} 
[2026-03-17 22:32:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6159,"order_number":"AZS-170326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-17 22:32:34"} 
[2026-03-17 22:32:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6159,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":29340},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":29341},{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":29342}],"validated_items":[{"id":29340,"menu_item_id":67,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":29341,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":29342,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-17 22:32:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6159,"items_count":3} 
[2026-03-17 22:32:48] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29340,"menu_item_id":67,"quantity":2},{"id":29341,"menu_item_id":396,"quantity":1},{"id":29342,"menu_item_id":6,"quantity":4}]} 
[2026-03-17 22:32:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6159,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["67|2|","396|1|","6|4|"],"new_items_map_keys":["67|2|","396|1|","6|4|"]} 
[2026-03-17 22:32:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6159,"order_number":"AZS-170326-018"} 
[2026-03-17 22:32:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6159,"order_number":"AZS-170326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-17 22:32:48"} 
[2026-03-17 22:40:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6160,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29343},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29344},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29345},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29346},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29347},{"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null,"id":29348}],"validated_items":[{"id":29343,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29344,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29345,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29346,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29347,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29348,"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null}]} 
[2026-03-17 22:40:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6160,"items_count":6} 
[2026-03-17 22:40:40] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29343,"menu_item_id":96,"quantity":1},{"id":29344,"menu_item_id":396,"quantity":2},{"id":29345,"menu_item_id":61,"quantity":1},{"id":29346,"menu_item_id":56,"quantity":1},{"id":29347,"menu_item_id":5,"quantity":1},{"id":29348,"menu_item_id":9,"quantity":2}]} 
[2026-03-17 22:40:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6160,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["96|1|","396|2|","61|1|","56|1|","5|1|","9|2|"],"new_items_map_keys":["96|1|","396|2|","61|1|","56|1|","5|1|","9|2|"]} 
[2026-03-17 22:40:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6160,"order_number":"AZS-170326-016"} 
[2026-03-17 22:40:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6160,"order_number":"AZS-170326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-17 22:40:40"} 
[2026-03-17 22:44:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6160,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29343},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29344},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29345},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29346},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29347},{"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null,"id":29348}],"validated_items":[{"id":29343,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29344,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29345,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29346,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29347,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29348,"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null}]} 
[2026-03-17 22:44:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6160,"items_count":6} 
[2026-03-17 22:44:00] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29343,"menu_item_id":96,"quantity":1},{"id":29344,"menu_item_id":396,"quantity":2},{"id":29345,"menu_item_id":61,"quantity":1},{"id":29346,"menu_item_id":56,"quantity":1},{"id":29347,"menu_item_id":5,"quantity":1},{"id":29348,"menu_item_id":9,"quantity":2}]} 
[2026-03-17 22:44:00] local.INFO: PosOrderController::update - Item changes check {"order_id":6160,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["96|1|","396|2|","61|1|","56|1|","5|1|","9|2|"],"new_items_map_keys":["96|1|","396|2|","61|1|","56|1|","5|1|","9|2|"]} 
[2026-03-17 22:44:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6160,"order_number":"AZS-170326-016"} 
[2026-03-17 22:44:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6160,"order_number":"AZS-170326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-17 22:44:00"} 
[2026-03-17 22:46:02] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6160,"order_number":"AZS-170326-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 22:46:02"} 
[2026-03-17 22:46:02] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6160,"order_number":"AZS-170326-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 22:46:02"} 
[2026-03-17 22:46:02] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6160,"order_number":"AZS-170326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 22:46:02"} 
[2026-03-17 22:46:02] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6160,"order_number":"AZS-170326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 22:46:02"} 
[2026-03-17 22:46:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":2,"order_id":6160,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29343},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29344},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29347},{"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null,"id":29348}],"validated_items":[{"id":29343,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29344,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29347,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29348,"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null}]} 
[2026-03-17 22:46:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6160,"items_count":4} 
[2026-03-17 22:46:02] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":2,"items_to_remove":[29345,29346],"items":[{"id":29343,"menu_item_id":96,"quantity":1},{"id":29344,"menu_item_id":396,"quantity":2},{"id":29347,"menu_item_id":5,"quantity":1},{"id":29348,"menu_item_id":9,"quantity":2}]} 
[2026-03-17 22:46:02] local.INFO: PosOrderController::update - Item changes check {"order_id":6160,"has_item_changes":true,"old_items_count":6,"new_items_count":4,"old_items_map_keys":["96|1|","396|2|","61|1|","56|1|","5|1|","9|2|"],"new_items_map_keys":["96|1|","396|2|","5|1|","9|2|"]} 
[2026-03-17 22:46:02] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6160,"order_number":"AZS-170326-016","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":2100,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-17 22:46:02","original_payment_amount":"0.00","grand_total":2025.0,"timestamp":"2026-03-17 22:46:02"} 
[2026-03-17 22:46:02] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6160,"order_number":"AZS-170326-016"} 
[2026-03-17 22:46:02] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-170326-016","replaced_order_id":6160} 
[2026-03-17 22:46:02] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6160,"new_order_id":6161,"order_number":"AZS-170326-016","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"2100.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-17 22:46:02","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-17 22:46:02"} 
[2026-03-17 22:46:02] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6161,"items_count":4,"items":[{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":9,"quantity":2,"price":229.0}]} 
[2026-03-17 22:46:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6161,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6161}} 
[2026-03-17 22:46:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6161,"item_index":0,"menu_item_id":96} 
[2026-03-17 22:46:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6161,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6161}} 
[2026-03-17 22:46:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6161,"item_index":1,"menu_item_id":396} 
[2026-03-17 22:46:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6161,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6161}} 
[2026-03-17 22:46:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6161,"item_index":2,"menu_item_id":5} 
[2026-03-17 22:46:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6161,"item_index":3,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":2,"price":229.0,"discount_percent":0.0,"discount_amount":0.0,"total":458.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6161}} 
[2026-03-17 22:46:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6161,"item_index":3,"menu_item_id":9} 
[2026-03-17 22:46:02] local.ERROR: Error tracking recipe usage for order 6161: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6161, 96, 77, 1, 1, 0.00, Order #AZS-170326-016 - 1x Chicken Karahi - Half, 2026-03-17 22:46:02, 2026-03-17 22:46:02))  
[2026-03-17 22:46:02] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6160,"new_order_id":6161,"order_number":"AZS-170326-016"} 
[2026-03-17 22:46:03] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6160,"new_order_id":6161,"order_number":"AZS-170326-016","route":"api/orders/6160"} 
[2026-03-17 22:46:47] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6159,"order_number":"AZS-170326-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 22:46:47"} 
[2026-03-17 22:46:47] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6159,"order_number":"AZS-170326-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 22:46:47"} 
[2026-03-17 22:46:47] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6159,"order_number":"AZS-170326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 22:46:47"} 
[2026-03-17 22:46:47] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6159,"order_number":"AZS-170326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 22:46:47"} 
[2026-03-17 22:46:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6159,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":29340},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":29341},{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":29342}],"validated_items":[{"id":29340,"menu_item_id":67,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":29341,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":29342,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-17 22:46:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6159,"items_count":3} 
[2026-03-17 22:46:47] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29340,"menu_item_id":67,"quantity":2},{"id":29341,"menu_item_id":396,"quantity":1},{"id":29342,"menu_item_id":6,"quantity":4}]} 
[2026-03-17 22:46:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6159,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["67|2|","396|1|","6|4|"],"new_items_map_keys":["67|2|","396|1|","6|4|"]} 
[2026-03-17 22:46:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6159,"order_number":"AZS-170326-018"} 
[2026-03-17 22:46:47] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6159,"order_number":"AZS-170326-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-17 22:46:47","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-17 22:46:47"} 
[2026-03-17 22:46:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6159,"order_number":"AZS-170326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-17 22:46:47"} 
[2026-03-17 22:46:47] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6159,"order_number":"AZS-170326-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-17 22:46:47","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2100.00","database_verification_match":true,"timestamp":"2026-03-17 22:46:47"} 
[2026-03-17 23:11:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6162,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":29353},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":29353,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-17 23:11:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6162,"items_count":2} 
[2026-03-17 23:11:20] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29353,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-17 23:11:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6162,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["411|2|"],"new_items_map_keys":["411|2|","2|2|"]} 
[2026-03-17 23:11:20] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6162,"order_number":"AZS-170326-019"} 
[2026-03-17 23:11:20] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-170326-019","replaced_order_id":6162} 
[2026-03-17 23:11:20] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6163,"items_count":2,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-17 23:11:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6163,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6163}} 
[2026-03-17 23:11:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6163,"item_index":0,"menu_item_id":411} 
[2026-03-17 23:11:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6163,"item_index":1,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6163}} 
[2026-03-17 23:11:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6163,"item_index":1,"menu_item_id":2} 
[2026-03-17 23:11:20] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6162,"new_order_id":6163,"order_number":"AZS-170326-019"} 
[2026-03-17 23:27:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T11:27:14.113Z","date_to":"2026-03-17T23:27:14.113Z","per_page":"100"} 
[2026-03-17 23:27:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-019","AZS-170326-018","AZS-170326-017","AZS-170326-016","AZS-170326-015","AZS-170326-014","AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":1,"unique_order_numbers":19} 
[2026-03-17 23:27:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T11:27:14.104Z","date_to":"2026-03-17T23:27:14.104Z","per_page":"100"} 
[2026-03-17 23:27:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-019","AZS-170326-018","AZS-170326-017","AZS-170326-016","AZS-170326-015","AZS-170326-014","AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":1,"unique_order_numbers":19} 
[2026-03-17 23:27:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T11:27:14.104Z","date_to":"2026-03-17T23:27:14.104Z","per_page":"100"} 
[2026-03-17 23:27:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-019","AZS-170326-018","AZS-170326-017","AZS-170326-016","AZS-170326-015","AZS-170326-014","AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":1,"unique_order_numbers":19} 
[2026-03-17 23:31:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6164,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null,"id":29356},{"menu_item_id":421,"quantity":1,"discount_percent":0,"notes":null,"id":29357},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":29358},{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":29356,"menu_item_id":411,"quantity":1,"discount_percent":0,"notes":null},{"id":29357,"menu_item_id":421,"quantity":1,"discount_percent":0,"notes":null},{"id":29358,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-17 23:31:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6164,"items_count":4} 
[2026-03-17 23:31:28] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29356,"menu_item_id":411,"quantity":1},{"id":29357,"menu_item_id":421,"quantity":1},{"id":29358,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":6,"quantity":3}]} 
[2026-03-17 23:31:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6164,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["411|1|","421|1|","50|1|"],"new_items_map_keys":["411|1|","421|1|","50|1|","6|3|"]} 
[2026-03-17 23:31:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6164,"order_number":"AZS-170326-020"} 
[2026-03-17 23:31:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-170326-020","replaced_order_id":6164} 
[2026-03-17 23:31:28] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6165,"items_count":4,"items":[{"menu_item_id":411,"quantity":1,"price":"599.00"},{"menu_item_id":421,"quantity":1,"price":"70.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":6,"quantity":3,"price":"199.00"}]} 
[2026-03-17 23:31:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6165,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6165}} 
[2026-03-17 23:31:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6165,"item_index":0,"menu_item_id":411} 
[2026-03-17 23:31:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6165,"item_index":1,"item_data":{"menu_item_id":421,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Egg Omlate","quantity":1,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":70.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6165}} 
[2026-03-17 23:31:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6165,"item_index":1,"menu_item_id":421} 
[2026-03-17 23:31:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6165,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6165}} 
[2026-03-17 23:31:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6165,"item_index":2,"menu_item_id":50} 
[2026-03-17 23:31:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6165,"item_index":3,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6165}} 
[2026-03-17 23:31:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6165,"item_index":3,"menu_item_id":6} 
[2026-03-17 23:31:28] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6164,"new_order_id":6165,"order_number":"AZS-170326-020"} 
[2026-03-17 23:32:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6163,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null,"id":29354},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null,"id":29355},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29354,"menu_item_id":411,"quantity":2,"discount_percent":0,"notes":null},{"id":29355,"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-17 23:32:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6163,"items_count":4} 
[2026-03-17 23:32:24] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29354,"menu_item_id":411,"quantity":2},{"id":29355,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":425,"quantity":1}]} 
[2026-03-17 23:32:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6163,"has_item_changes":true,"old_items_count":2,"new_items_count":4,"old_items_map_keys":["411|2|","2|2|"],"new_items_map_keys":["411|2|","2|2|","6|2|","425|1|"]} 
[2026-03-17 23:32:24] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6163,"order_number":"AZS-170326-019"} 
[2026-03-17 23:32:24] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-170326-019","replaced_order_id":6163} 
[2026-03-17 23:32:24] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6166,"items_count":4,"items":[{"menu_item_id":411,"quantity":2,"price":"599.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"},{"menu_item_id":425,"quantity":1,"price":"99.00"}]} 
[2026-03-17 23:32:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6166,"item_index":0,"item_data":{"menu_item_id":411,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Sahree Plater","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6166}} 
[2026-03-17 23:32:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6166,"item_index":0,"menu_item_id":411} 
[2026-03-17 23:32:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6166,"item_index":1,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6166}} 
[2026-03-17 23:32:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6166,"item_index":1,"menu_item_id":2} 
[2026-03-17 23:32:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6166,"item_index":2,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6166}} 
[2026-03-17 23:32:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6166,"item_index":2,"menu_item_id":6} 
[2026-03-17 23:32:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6166,"item_index":3,"item_data":{"menu_item_id":425,"restaurant_category_id":40,"restaurant_category_name":"Sahree Menu","item_name":"Yougurt Bowl (sweet)","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6166}} 
[2026-03-17 23:32:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6166,"item_index":3,"menu_item_id":425} 
[2026-03-17 23:32:24] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6163,"new_order_id":6166,"order_number":"AZS-170326-019"} 
[2026-03-17 23:35:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6166,"item_index":0,"item_id":29354} 
[2026-03-17 23:35:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6166,"item_index":1,"item_id":29355} 
[2026-03-17 23:35:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6166,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":29354},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":29355},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-17 23:35:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6166,"items_count":4} 
[2026-03-17 23:35:36] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[29363,29364,29365,29366],"items":[{"id":null,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":425,"quantity":1}]} 
[2026-03-17 23:35:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6166,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|2|","2|2|","6|2|","425|1|"],"new_items_map_keys":["411|2|","2|2|","6|2|","425|1|"]} 
[2026-03-17 23:35:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6166,"order_number":"AZS-170326-019"} 
[2026-03-17 23:35:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6166,"order_number":"AZS-170326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-17 23:35:36"} 
[2026-03-17 23:44:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6166,"item_index":0,"item_id":29354} 
[2026-03-17 23:44:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6166,"item_index":1,"item_id":29355} 
[2026-03-17 23:44:29] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6166,"order_number":"AZS-170326-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 23:44:29"} 
[2026-03-17 23:44:29] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6166,"order_number":"AZS-170326-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 23:44:29"} 
[2026-03-17 23:44:29] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6166,"order_number":"AZS-170326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 23:44:29"} 
[2026-03-17 23:44:29] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6166,"order_number":"AZS-170326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 23:44:29"} 
[2026-03-17 23:44:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6166,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":29354},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":29355},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":411,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":425,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-17 23:44:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6166,"items_count":4} 
[2026-03-17 23:44:29] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[29363,29364,29365,29366],"items":[{"id":null,"menu_item_id":411,"quantity":2},{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":425,"quantity":1}]} 
[2026-03-17 23:44:29] local.INFO: PosOrderController::update - Item changes check {"order_id":6166,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|2|","2|2|","6|2|","425|1|"],"new_items_map_keys":["411|2|","2|2|","6|2|","425|1|"]} 
[2026-03-17 23:44:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6166,"order_number":"AZS-170326-019"} 
[2026-03-17 23:44:29] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6166,"order_number":"AZS-170326-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-17 23:44:29","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-17 23:44:29"} 
[2026-03-17 23:44:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6166,"order_number":"AZS-170326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-17 23:44:29"} 
[2026-03-17 23:44:29] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6166,"order_number":"AZS-170326-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-17 23:44:29","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-17 23:44:29"} 
[2026-03-17 23:48:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6165,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":29359},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":29360},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":29361},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":29362}],"validated_items":[{"id":29359,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":29360,"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":29361,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":29362,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-17 23:48:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6165,"items_count":4} 
[2026-03-17 23:48:22] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29359,"menu_item_id":411,"quantity":1},{"id":29360,"menu_item_id":421,"quantity":1},{"id":29361,"menu_item_id":50,"quantity":1},{"id":29362,"menu_item_id":6,"quantity":3}]} 
[2026-03-17 23:48:22] local.INFO: PosOrderController::update - Item changes check {"order_id":6165,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|1|","421|1|","50|1|","6|3|"],"new_items_map_keys":["411|1|","421|1|","50|1|","6|3|"]} 
[2026-03-17 23:48:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6165,"order_number":"AZS-170326-020"} 
[2026-03-17 23:48:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6165,"order_number":"AZS-170326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-17 23:48:22"} 
[2026-03-17 23:49:53] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6165,"order_number":"AZS-170326-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1395,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 23:49:53"} 
[2026-03-17 23:49:53] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6165,"order_number":"AZS-170326-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1395,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-17 23:49:53"} 
[2026-03-17 23:49:53] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6165,"order_number":"AZS-170326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1395,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 23:49:53"} 
[2026-03-17 23:49:53] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6165,"order_number":"AZS-170326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1395,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-17 23:49:53"} 
[2026-03-17 23:49:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6165,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":29359},{"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":29360},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":29361},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":29362}],"validated_items":[{"id":29359,"menu_item_id":411,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":29360,"menu_item_id":421,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":29361,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":29362,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-17 23:49:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6165,"items_count":4} 
[2026-03-17 23:49:53] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29359,"menu_item_id":411,"quantity":1},{"id":29360,"menu_item_id":421,"quantity":1},{"id":29361,"menu_item_id":50,"quantity":1},{"id":29362,"menu_item_id":6,"quantity":3}]} 
[2026-03-17 23:49:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6165,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["411|1|","421|1|","50|1|","6|3|"],"new_items_map_keys":["411|1|","421|1|","50|1|","6|3|"]} 
[2026-03-17 23:49:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6165,"order_number":"AZS-170326-020"} 
[2026-03-17 23:49:53] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6165,"order_number":"AZS-170326-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1395,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-17 23:49:53","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-17 23:49:53"} 
[2026-03-17 23:49:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6165,"order_number":"AZS-170326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-17 23:49:53"} 
[2026-03-17 23:49:53] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6165,"order_number":"AZS-170326-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1395.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-17 23:49:53","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1395,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1395.00","database_verification_match":true,"timestamp":"2026-03-17 23:49:53"} 
[2026-03-17 23:49:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T11:49:57.590Z","date_to":"2026-03-17T23:49:57.590Z","per_page":"100"} 
[2026-03-17 23:49:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-020","AZS-170326-019","AZS-170326-018","AZS-170326-017","AZS-170326-016","AZS-170326-015","AZS-170326-014","AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":0,"unique_order_numbers":20} 
[2026-03-17 23:49:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T11:49:57.601Z","date_to":"2026-03-17T23:49:57.601Z","per_page":"100"} 
[2026-03-17 23:49:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-020","AZS-170326-019","AZS-170326-018","AZS-170326-017","AZS-170326-016","AZS-170326-015","AZS-170326-014","AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":0,"unique_order_numbers":20} 
[2026-03-17 23:49:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-17T11:49:57.590Z","date_to":"2026-03-17T23:49:57.590Z","per_page":"100"} 
[2026-03-17 23:49:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-170326-020","AZS-170326-019","AZS-170326-018","AZS-170326-017","AZS-170326-016","AZS-170326-015","AZS-170326-014","AZS-170326-013","AZS-170326-012","AZS-170326-011","AZS-170326-010","AZS-170326-009","AZS-170326-008","AZS-170326-007","AZS-170326-006","AZS-170326-005","AZS-170326-004","AZS-170326-003","AZS-170326-002","AZS-170326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":0,"unique_order_numbers":20} 
[2026-03-18 13:05:37] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6167,"order_number":"AZS-180326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 13:05:37"} 
[2026-03-18 13:05:37] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6167,"order_number":"AZS-180326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 13:05:37"} 
[2026-03-18 13:05:37] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6167,"order_number":"AZS-180326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 13:05:37"} 
[2026-03-18 13:05:37] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6167,"order_number":"AZS-180326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 13:05:37"} 
[2026-03-18 13:05:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6167,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":13,"price":15,"discount_percent":0,"notes":null,"id":29367}],"validated_items":[{"id":29367,"menu_item_id":286,"quantity":13,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-18 13:05:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6167,"items_count":1} 
[2026-03-18 13:05:37] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29367,"menu_item_id":286,"quantity":13}]} 
[2026-03-18 13:05:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6167,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["286|13|"],"new_items_map_keys":["286|13|"]} 
[2026-03-18 13:05:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6167,"order_number":"AZS-180326-001"} 
[2026-03-18 13:05:37] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6167,"order_number":"AZS-180326-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-18 13:05:37","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-18 13:05:37"} 
[2026-03-18 13:05:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6167,"order_number":"AZS-180326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-18 13:05:37"} 
[2026-03-18 13:05:37] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6167,"order_number":"AZS-180326-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-18 13:05:37","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"200.00","database_verification_match":true,"timestamp":"2026-03-18 13:05:37"} 
[2026-03-18 13:05:47] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6168,"order_number":"AZS-180326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":50,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 13:05:47"} 
[2026-03-18 13:05:47] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6168,"order_number":"AZS-180326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":50,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 13:05:47"} 
[2026-03-18 13:05:47] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6168,"order_number":"AZS-180326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":50,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 13:05:47"} 
[2026-03-18 13:05:47] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6168,"order_number":"AZS-180326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":50,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 13:05:47"} 
[2026-03-18 13:05:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6168,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null,"id":29368}],"validated_items":[{"id":29368,"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-18 13:05:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6168,"items_count":1} 
[2026-03-18 13:05:47] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29368,"menu_item_id":286,"quantity":3}]} 
[2026-03-18 13:05:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6168,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["286|3|"],"new_items_map_keys":["286|3|"]} 
[2026-03-18 13:05:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6168,"order_number":"AZS-180326-002"} 
[2026-03-18 13:05:47] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6168,"order_number":"AZS-180326-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":50,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-18 13:05:47","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-18 13:05:47"} 
[2026-03-18 13:05:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6168,"order_number":"AZS-180326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-18 13:05:47"} 
[2026-03-18 13:05:47] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6168,"order_number":"AZS-180326-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"50.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-18 13:05:47","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":50,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"50.00","database_verification_match":true,"timestamp":"2026-03-18 13:05:47"} 
[2026-03-18 13:12:05] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6170,"order_number":"AZS-180326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":250,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 13:12:05"} 
[2026-03-18 13:12:05] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6170,"order_number":"AZS-180326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":250,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 13:12:05"} 
[2026-03-18 13:12:05] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6170,"order_number":"AZS-180326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":250,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 13:12:05"} 
[2026-03-18 13:12:05] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6170,"order_number":"AZS-180326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":250,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 13:12:05"} 
[2026-03-18 13:12:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6170,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":418,"quantity":50,"price":1,"discount_percent":0,"notes":null,"id":29371},{"menu_item_id":286,"quantity":13,"price":15,"discount_percent":0,"notes":null,"id":29372}],"validated_items":[{"id":29371,"menu_item_id":418,"quantity":50,"price":1,"discount_percent":0,"notes":null},{"id":29372,"menu_item_id":286,"quantity":13,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-18 13:12:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6170,"items_count":2} 
[2026-03-18 13:12:05] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29371,"menu_item_id":418,"quantity":50},{"id":29372,"menu_item_id":286,"quantity":13}]} 
[2026-03-18 13:12:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6170,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["418|50|","286|13|"],"new_items_map_keys":["418|50|","286|13|"]} 
[2026-03-18 13:12:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6170,"order_number":"AZS-180326-004"} 
[2026-03-18 13:12:05] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6170,"order_number":"AZS-180326-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":250,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-18 13:12:05","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-18 13:12:05"} 
[2026-03-18 13:12:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6170,"order_number":"AZS-180326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-18 13:12:05"} 
[2026-03-18 13:12:05] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6170,"order_number":"AZS-180326-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"250.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-18 13:12:05","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":250,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"250.00","database_verification_match":true,"timestamp":"2026-03-18 13:12:05"} 
[2026-03-18 13:12:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6171,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":418,"quantity":100,"discount_percent":0,"notes":null,"id":29373},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29373,"menu_item_id":418,"quantity":100,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-18 13:12:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6171,"items_count":4} 
[2026-03-18 13:12:28] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29373,"menu_item_id":418,"quantity":100},{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":52,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-03-18 13:12:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6171,"has_item_changes":true,"old_items_count":1,"new_items_count":4,"old_items_map_keys":["418|100|"],"new_items_map_keys":["418|100|","98|1|","52|4|","61|1|"]} 
[2026-03-18 13:12:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6171,"order_number":"AZS-180326-005"} 
[2026-03-18 13:12:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-180326-005","replaced_order_id":6171} 
[2026-03-18 13:12:28] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6172,"items_count":4,"items":[{"menu_item_id":418,"quantity":100,"price":"1.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":52,"quantity":4,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"}]} 
[2026-03-18 13:12:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6172,"item_index":0,"item_data":{"menu_item_id":418,"restaurant_category_id":41,"restaurant_category_name":"Iftari Menu","item_name":"Pakoray","quantity":100,"price":"1.00","discount_percent":0.0,"discount_amount":0.0,"total":100.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6172}} 
[2026-03-18 13:12:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6172,"item_index":0,"menu_item_id":418} 
[2026-03-18 13:12:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6172,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6172}} 
[2026-03-18 13:12:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6172,"item_index":1,"menu_item_id":98} 
[2026-03-18 13:12:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6172,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6172}} 
[2026-03-18 13:12:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6172,"item_index":2,"menu_item_id":52} 
[2026-03-18 13:12:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6172,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6172}} 
[2026-03-18 13:12:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6172,"item_index":3,"menu_item_id":61} 
[2026-03-18 13:12:28] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6171,"new_order_id":6172,"order_number":"AZS-180326-005"} 
[2026-03-18 13:14:53] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6173,"order_number":"AZS-180326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":90,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 13:14:53"} 
[2026-03-18 13:14:53] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6173,"order_number":"AZS-180326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":90,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 13:14:53"} 
[2026-03-18 13:14:53] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6173,"order_number":"AZS-180326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":90,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 13:14:53"} 
[2026-03-18 13:14:53] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6173,"order_number":"AZS-180326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":90,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 13:14:53"} 
[2026-03-18 13:14:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6173,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":6,"price":15,"discount_percent":0,"notes":null,"id":29378}],"validated_items":[{"id":29378,"menu_item_id":286,"quantity":6,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-18 13:14:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6173,"items_count":1} 
[2026-03-18 13:14:53] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29378,"menu_item_id":286,"quantity":6}]} 
[2026-03-18 13:14:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6173,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["286|6|"],"new_items_map_keys":["286|6|"]} 
[2026-03-18 13:14:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6173,"order_number":"AZS-180326-006"} 
[2026-03-18 13:14:53] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6173,"order_number":"AZS-180326-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":90,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-18 13:14:53","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-18 13:14:53"} 
[2026-03-18 13:14:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6173,"order_number":"AZS-180326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-18 13:14:53"} 
[2026-03-18 13:14:53] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6173,"order_number":"AZS-180326-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"90.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-18 13:14:53","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":90,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"90.00","database_verification_match":true,"timestamp":"2026-03-18 13:14:53"} 
[2026-03-18 13:23:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6169,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":418,"quantity":100,"price":1,"discount_percent":0,"notes":null,"id":29369},{"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null,"id":29370}],"validated_items":[{"id":29369,"menu_item_id":418,"quantity":100,"price":1,"discount_percent":0,"notes":null},{"id":29370,"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null}]} 
[2026-03-18 13:23:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6169,"items_count":2} 
[2026-03-18 13:23:29] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29369,"menu_item_id":418,"quantity":100},{"id":29370,"menu_item_id":400,"quantity":150}]} 
[2026-03-18 13:23:29] local.INFO: PosOrderController::update - Item changes check {"order_id":6169,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["418|100|","400|150|"],"new_items_map_keys":["418|100|","400|150|"]} 
[2026-03-18 13:23:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6169,"order_number":"AZS-180326-003"} 
[2026-03-18 13:23:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6169,"order_number":"AZS-180326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-18 13:23:29"} 
[2026-03-18 13:26:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6174,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":29379},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":29380},{"menu_item_id":400,"quantity":250,"discount_percent":0,"notes":null}],"validated_items":[{"id":29379,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":29380,"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":400,"quantity":250,"discount_percent":0,"notes":null}]} 
[2026-03-18 13:26:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6174,"items_count":3} 
[2026-03-18 13:26:52] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29379,"menu_item_id":105,"quantity":1},{"id":29380,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":400,"quantity":250}]} 
[2026-03-18 13:26:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6174,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["105|1|","52|3|"],"new_items_map_keys":["105|1|","52|3|","400|250|"]} 
[2026-03-18 13:26:52] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6174,"order_number":"AZS-180326-007"} 
[2026-03-18 13:26:52] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-180326-007","replaced_order_id":6174} 
[2026-03-18 13:26:52] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6175,"items_count":3,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":52,"quantity":3,"price":"70.00"},{"menu_item_id":400,"quantity":250,"price":"1.00"}]} 
[2026-03-18 13:26:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6175,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6175}} 
[2026-03-18 13:26:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6175,"item_index":0,"menu_item_id":105} 
[2026-03-18 13:26:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6175,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6175}} 
[2026-03-18 13:26:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6175,"item_index":1,"menu_item_id":52} 
[2026-03-18 13:26:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6175,"item_index":2,"item_data":{"menu_item_id":400,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL ITEMS","quantity":250,"price":"1.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6175}} 
[2026-03-18 13:26:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6175,"item_index":2,"menu_item_id":400} 
[2026-03-18 13:26:52] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6174,"new_order_id":6175,"order_number":"AZS-180326-007"} 
[2026-03-18 14:03:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6172,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":418,"quantity":100,"price":1,"discount_percent":0,"notes":null,"id":29374},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29375},{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":29376},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29377}],"validated_items":[{"id":29374,"menu_item_id":418,"quantity":100,"price":1,"discount_percent":0,"notes":null},{"id":29375,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29376,"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":29377,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-18 14:03:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6172,"items_count":4} 
[2026-03-18 14:03:07] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29374,"menu_item_id":418,"quantity":100},{"id":29375,"menu_item_id":98,"quantity":1},{"id":29376,"menu_item_id":52,"quantity":4},{"id":29377,"menu_item_id":61,"quantity":1}]} 
[2026-03-18 14:03:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6172,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["418|100|","98|1|","52|4|","61|1|"],"new_items_map_keys":["418|100|","98|1|","52|4|","61|1|"]} 
[2026-03-18 14:03:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6172,"order_number":"AZS-180326-005"} 
[2026-03-18 14:03:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6172,"order_number":"AZS-180326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-18 14:03:07"} 
[2026-03-18 14:06:52] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6172,"order_number":"AZS-180326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1870,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 14:06:52"} 
[2026-03-18 14:06:52] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6172,"order_number":"AZS-180326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1870,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 14:06:52"} 
[2026-03-18 14:06:52] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6172,"order_number":"AZS-180326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1870,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 14:06:52"} 
[2026-03-18 14:06:52] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6172,"order_number":"AZS-180326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1870,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 14:06:52"} 
[2026-03-18 14:06:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6172,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":418,"quantity":100,"price":1,"discount_percent":0,"notes":null,"id":29374},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29375},{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":29376},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29377}],"validated_items":[{"id":29374,"menu_item_id":418,"quantity":100,"price":1,"discount_percent":0,"notes":null},{"id":29375,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29376,"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":29377,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-18 14:06:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6172,"items_count":4} 
[2026-03-18 14:06:52] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29374,"menu_item_id":418,"quantity":100},{"id":29375,"menu_item_id":98,"quantity":1},{"id":29376,"menu_item_id":52,"quantity":4},{"id":29377,"menu_item_id":61,"quantity":1}]} 
[2026-03-18 14:06:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6172,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["418|100|","98|1|","52|4|","61|1|"],"new_items_map_keys":["418|100|","98|1|","52|4|","61|1|"]} 
[2026-03-18 14:06:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6172,"order_number":"AZS-180326-005"} 
[2026-03-18 14:06:52] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6172,"order_number":"AZS-180326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1870,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-18 14:06:52","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-18 14:06:52"} 
[2026-03-18 14:06:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6172,"order_number":"AZS-180326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-18 14:06:52"} 
[2026-03-18 14:06:52] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6172,"order_number":"AZS-180326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1870.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-18 14:06:52","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1870,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1870.00","database_verification_match":true,"timestamp":"2026-03-18 14:06:52"} 
[2026-03-18 14:11:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6175,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":29381},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":29382},{"menu_item_id":400,"quantity":250,"discount_percent":0,"notes":null,"id":29383},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29381,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":29382,"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"id":29383,"menu_item_id":400,"quantity":250,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-18 14:11:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6175,"items_count":4} 
[2026-03-18 14:11:07] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29381,"menu_item_id":105,"quantity":1},{"id":29382,"menu_item_id":52,"quantity":3},{"id":29383,"menu_item_id":400,"quantity":250},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-18 14:11:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6175,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["105|1|","52|3|","400|250|"],"new_items_map_keys":["105|1|","52|3|","400|250|","2|1|"]} 
[2026-03-18 14:11:07] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6175,"order_number":"AZS-180326-007"} 
[2026-03-18 14:11:07] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-180326-007","replaced_order_id":6175} 
[2026-03-18 14:11:07] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6177,"items_count":4,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":52,"quantity":3,"price":"70.00"},{"menu_item_id":400,"quantity":250,"price":"1.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-18 14:11:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6177,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6177}} 
[2026-03-18 14:11:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6177,"item_index":0,"menu_item_id":105} 
[2026-03-18 14:11:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6177,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6177}} 
[2026-03-18 14:11:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6177,"item_index":1,"menu_item_id":52} 
[2026-03-18 14:11:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6177,"item_index":2,"item_data":{"menu_item_id":400,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL ITEMS","quantity":250,"price":"1.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6177}} 
[2026-03-18 14:11:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6177,"item_index":2,"menu_item_id":400} 
[2026-03-18 14:11:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6177,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6177}} 
[2026-03-18 14:11:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6177,"item_index":3,"menu_item_id":2} 
[2026-03-18 14:11:08] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6175,"new_order_id":6177,"order_number":"AZS-180326-007"} 
[2026-03-18 14:11:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6177,"item_index":0,"item_id":29381} 
[2026-03-18 14:11:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6177,"item_index":1,"item_id":29382} 
[2026-03-18 14:11:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6177,"item_index":2,"item_id":29383} 
[2026-03-18 14:11:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6177,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":29381},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":29382},{"menu_item_id":400,"quantity":250,"price":1,"discount_percent":0,"notes":null,"id":29383},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":400,"quantity":250,"price":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-18 14:11:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6177,"items_count":4} 
[2026-03-18 14:11:12] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[29386,29387,29388,29389],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":400,"quantity":250},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-18 14:11:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6177,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["105|1|","52|3|","400|250|","2|1|"],"new_items_map_keys":["105|1|","52|3|","400|250|","2|1|"]} 
[2026-03-18 14:11:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6177,"order_number":"AZS-180326-007"} 
[2026-03-18 14:11:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6177,"order_number":"AZS-180326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-18 14:11:12"} 
[2026-03-18 14:11:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6177,"item_index":0,"item_id":29381} 
[2026-03-18 14:11:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6177,"item_index":1,"item_id":29382} 
[2026-03-18 14:11:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6177,"item_index":2,"item_id":29383} 
[2026-03-18 14:11:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6177,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":29381},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":29382},{"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null,"id":29383},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-18 14:11:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6177,"items_count":4} 
[2026-03-18 14:11:38] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[29386,29387,29388,29389],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":400,"quantity":150},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-18 14:11:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6177,"has_item_changes":true,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["105|1|","52|3|","400|250|","2|1|"],"new_items_map_keys":["105|1|","52|3|","400|150|","2|1|"]} 
[2026-03-18 14:11:38] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6177,"order_number":"AZS-180326-007"} 
[2026-03-18 14:11:38] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-180326-007","replaced_order_id":6177} 
[2026-03-18 14:11:38] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6178,"items_count":4,"items":[{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":52,"quantity":3,"price":70.0},{"menu_item_id":400,"quantity":150,"price":1.0},{"menu_item_id":2,"quantity":1,"price":130.0}]} 
[2026-03-18 14:11:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6178,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6178}} 
[2026-03-18 14:11:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6178,"item_index":0,"menu_item_id":105} 
[2026-03-18 14:11:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6178,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6178}} 
[2026-03-18 14:11:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6178,"item_index":1,"menu_item_id":52} 
[2026-03-18 14:11:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6178,"item_index":2,"item_data":{"menu_item_id":400,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL ITEMS","quantity":150,"price":1.0,"discount_percent":0.0,"discount_amount":0.0,"total":150.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6178}} 
[2026-03-18 14:11:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6178,"item_index":2,"menu_item_id":400} 
[2026-03-18 14:11:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6178,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6178}} 
[2026-03-18 14:11:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6178,"item_index":3,"menu_item_id":2} 
[2026-03-18 14:11:38] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6177,"new_order_id":6178,"order_number":"AZS-180326-007"} 
[2026-03-18 14:11:43] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6178,"item_index":0,"item_id":29381} 
[2026-03-18 14:11:43] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6178,"item_index":1,"item_id":29382} 
[2026-03-18 14:11:43] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6178,"item_index":2,"item_id":29383} 
[2026-03-18 14:11:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6178,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":29381},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":29382},{"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null,"id":29383},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-18 14:11:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6178,"items_count":4} 
[2026-03-18 14:11:43] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[29390,29391,29392,29393],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":400,"quantity":150},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-18 14:11:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6178,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["105|1|","52|3|","400|150|","2|1|"],"new_items_map_keys":["105|1|","52|3|","400|150|","2|1|"]} 
[2026-03-18 14:11:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6178,"order_number":"AZS-180326-007"} 
[2026-03-18 14:11:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6178,"order_number":"AZS-180326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-18 14:11:43"} 
[2026-03-18 14:18:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6176,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":29384},{"menu_item_id":49,"quantity":3,"discount_percent":0,"notes":null,"id":29385},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29384,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":29385,"menu_item_id":49,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-18 14:18:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6176,"items_count":3} 
[2026-03-18 14:18:01] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29384,"menu_item_id":98,"quantity":1},{"id":29385,"menu_item_id":49,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-18 14:18:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6176,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["98|1|","49|3|"],"new_items_map_keys":["98|1|","49|3|","5|1|"]} 
[2026-03-18 14:18:01] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6176,"order_number":"AZS-180326-008"} 
[2026-03-18 14:18:01] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-180326-008","replaced_order_id":6176} 
[2026-03-18 14:18:01] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6179,"items_count":3,"items":[{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":49,"quantity":3,"price":"70.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-18 14:18:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6179,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6179}} 
[2026-03-18 14:18:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6179,"item_index":0,"menu_item_id":98} 
[2026-03-18 14:18:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6179,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6179}} 
[2026-03-18 14:18:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6179,"item_index":1,"menu_item_id":49} 
[2026-03-18 14:18:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6179,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6179}} 
[2026-03-18 14:18:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6179,"item_index":2,"menu_item_id":5} 
[2026-03-18 14:18:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6176,"new_order_id":6179,"order_number":"AZS-180326-008"} 
[2026-03-18 14:19:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6180,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":29397},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":29398},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":29397,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":29398,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-18 14:19:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6180,"items_count":3} 
[2026-03-18 14:19:22] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29397,"menu_item_id":96,"quantity":1},{"id":29398,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-18 14:19:22] local.INFO: PosOrderController::update - Item changes check {"order_id":6180,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["96|1|","396|1|"],"new_items_map_keys":["96|1|","396|1|","2|2|"]} 
[2026-03-18 14:19:22] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6180,"order_number":"AZS-180326-009"} 
[2026-03-18 14:19:22] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-180326-009","replaced_order_id":6180} 
[2026-03-18 14:19:22] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6181,"items_count":3,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-18 14:19:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6181,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6181}} 
[2026-03-18 14:19:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6181,"item_index":0,"menu_item_id":96} 
[2026-03-18 14:19:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6181,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6181}} 
[2026-03-18 14:19:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6181,"item_index":1,"menu_item_id":396} 
[2026-03-18 14:19:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6181,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6181}} 
[2026-03-18 14:19:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6181,"item_index":2,"menu_item_id":2} 
[2026-03-18 14:19:22] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6180,"new_order_id":6181,"order_number":"AZS-180326-009"} 
[2026-03-18 14:19:44] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6169,"order_number":"AZS-180326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":250,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 14:19:44"} 
[2026-03-18 14:19:44] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6169,"order_number":"AZS-180326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":250,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 14:19:44"} 
[2026-03-18 14:19:44] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6169,"order_number":"AZS-180326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":250,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 14:19:44"} 
[2026-03-18 14:19:44] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6169,"order_number":"AZS-180326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":250,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 14:19:44"} 
[2026-03-18 14:19:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6169,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":418,"quantity":100,"price":1,"discount_percent":0,"notes":null,"id":29369},{"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null,"id":29370}],"validated_items":[{"id":29369,"menu_item_id":418,"quantity":100,"price":1,"discount_percent":0,"notes":null},{"id":29370,"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null}]} 
[2026-03-18 14:19:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6169,"items_count":2} 
[2026-03-18 14:19:44] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29369,"menu_item_id":418,"quantity":100},{"id":29370,"menu_item_id":400,"quantity":150}]} 
[2026-03-18 14:19:44] local.INFO: PosOrderController::update - Item changes check {"order_id":6169,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["418|100|","400|150|"],"new_items_map_keys":["418|100|","400|150|"]} 
[2026-03-18 14:19:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6169,"order_number":"AZS-180326-003"} 
[2026-03-18 14:19:44] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6169,"order_number":"AZS-180326-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":250,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-18 14:19:44","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-18 14:19:44"} 
[2026-03-18 14:19:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6169,"order_number":"AZS-180326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-18 14:19:44"} 
[2026-03-18 14:19:44] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6169,"order_number":"AZS-180326-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"250.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-18 14:19:44","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":250,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"250.00","database_verification_match":true,"timestamp":"2026-03-18 14:19:44"} 
[2026-03-18 14:21:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6179,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29394},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":29395},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29396}],"validated_items":[{"id":29394,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29395,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":29396,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-18 14:21:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6179,"items_count":3} 
[2026-03-18 14:21:34] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29394,"menu_item_id":98,"quantity":1},{"id":29395,"menu_item_id":49,"quantity":3},{"id":29396,"menu_item_id":5,"quantity":1}]} 
[2026-03-18 14:21:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6179,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["98|1|","49|3|","5|1|"],"new_items_map_keys":["98|1|","49|3|","5|1|"]} 
[2026-03-18 14:21:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6179,"order_number":"AZS-180326-008"} 
[2026-03-18 14:21:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6179,"order_number":"AZS-180326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-18 14:21:34"} 
[2026-03-18 14:32:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6178,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":29390},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":29391},{"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null,"id":29392},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":29393}],"validated_items":[{"id":29390,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":29391,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":29392,"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null},{"id":29393,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-18 14:32:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6178,"items_count":4} 
[2026-03-18 14:32:51] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29390,"menu_item_id":105,"quantity":1},{"id":29391,"menu_item_id":52,"quantity":3},{"id":29392,"menu_item_id":400,"quantity":150},{"id":29393,"menu_item_id":2,"quantity":1}]} 
[2026-03-18 14:32:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6178,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["105|1|","52|3|","400|150|","2|1|"],"new_items_map_keys":["105|1|","52|3|","400|150|","2|1|"]} 
[2026-03-18 14:32:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6178,"order_number":"AZS-180326-007"} 
[2026-03-18 14:32:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6178,"order_number":"AZS-180326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-18 14:32:51"} 
[2026-03-18 14:33:14] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6178,"order_number":"AZS-180326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2700,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 14:33:14"} 
[2026-03-18 14:33:14] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6178,"order_number":"AZS-180326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2700,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 14:33:14"} 
[2026-03-18 14:33:14] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6178,"order_number":"AZS-180326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2700,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 14:33:14"} 
[2026-03-18 14:33:14] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6178,"order_number":"AZS-180326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2700,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 14:33:14"} 
[2026-03-18 14:33:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6178,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":29390},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":29391},{"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null,"id":29392},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":29393}],"validated_items":[{"id":29390,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":29391,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":29392,"menu_item_id":400,"quantity":150,"price":1,"discount_percent":0,"notes":null},{"id":29393,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-18 14:33:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6178,"items_count":4} 
[2026-03-18 14:33:14] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29390,"menu_item_id":105,"quantity":1},{"id":29391,"menu_item_id":52,"quantity":3},{"id":29392,"menu_item_id":400,"quantity":150},{"id":29393,"menu_item_id":2,"quantity":1}]} 
[2026-03-18 14:33:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6178,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["105|1|","52|3|","400|150|","2|1|"],"new_items_map_keys":["105|1|","52|3|","400|150|","2|1|"]} 
[2026-03-18 14:33:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6178,"order_number":"AZS-180326-007"} 
[2026-03-18 14:33:14] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6178,"order_number":"AZS-180326-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2700,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-18 14:33:14","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-18 14:33:14"} 
[2026-03-18 14:33:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6178,"order_number":"AZS-180326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-18 14:33:14"} 
[2026-03-18 14:33:14] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6178,"order_number":"AZS-180326-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2700.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-18 14:33:14","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2700,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2700.00","database_verification_match":true,"timestamp":"2026-03-18 14:33:14"} 
[2026-03-18 14:34:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6179,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29394},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":29395},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29396}],"validated_items":[{"id":29394,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29395,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":29396,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-18 14:34:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6179,"items_count":3} 
[2026-03-18 14:34:03] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29394,"menu_item_id":98,"quantity":1},{"id":29395,"menu_item_id":49,"quantity":3},{"id":29396,"menu_item_id":5,"quantity":1}]} 
[2026-03-18 14:34:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6179,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["98|1|","49|3|","5|1|"],"new_items_map_keys":["98|1|","49|3|","5|1|"]} 
[2026-03-18 14:34:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6179,"order_number":"AZS-180326-008"} 
[2026-03-18 14:34:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6179,"order_number":"AZS-180326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-18 14:34:03"} 
[2026-03-18 14:34:29] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6179,"order_number":"AZS-180326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1600,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 14:34:29"} 
[2026-03-18 14:34:29] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6179,"order_number":"AZS-180326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 14:34:29"} 
[2026-03-18 14:34:29] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6179,"order_number":"AZS-180326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 14:34:29"} 
[2026-03-18 14:34:29] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6179,"order_number":"AZS-180326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 14:34:29"} 
[2026-03-18 14:34:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6179,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29394},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":29395},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29396}],"validated_items":[{"id":29394,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29395,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":29396,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-18 14:34:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6179,"items_count":3} 
[2026-03-18 14:34:29] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29394,"menu_item_id":98,"quantity":1},{"id":29395,"menu_item_id":49,"quantity":3},{"id":29396,"menu_item_id":5,"quantity":1}]} 
[2026-03-18 14:34:29] local.INFO: PosOrderController::update - Item changes check {"order_id":6179,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["98|1|","49|3|","5|1|"],"new_items_map_keys":["98|1|","49|3|","5|1|"]} 
[2026-03-18 14:34:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6179,"order_number":"AZS-180326-008"} 
[2026-03-18 14:34:29] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6179,"order_number":"AZS-180326-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1600,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-18 14:34:29","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-18 14:34:29"} 
[2026-03-18 14:34:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6179,"order_number":"AZS-180326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-18 14:34:29"} 
[2026-03-18 14:34:29] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6179,"order_number":"AZS-180326-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1600.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-18 14:34:29","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1600.00","database_verification_match":true,"timestamp":"2026-03-18 14:34:29"} 
[2026-03-18 14:41:19] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6182,"order_number":"AZS-180326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":50,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 14:41:19"} 
[2026-03-18 14:41:19] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6182,"order_number":"AZS-180326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":50,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 14:41:19"} 
[2026-03-18 14:41:19] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6182,"order_number":"AZS-180326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":50,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 14:41:19"} 
[2026-03-18 14:41:19] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6182,"order_number":"AZS-180326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":50,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 14:41:19"} 
[2026-03-18 14:41:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6182,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null,"id":29402}],"validated_items":[{"id":29402,"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-18 14:41:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6182,"items_count":1} 
[2026-03-18 14:41:19] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29402,"menu_item_id":286,"quantity":3}]} 
[2026-03-18 14:41:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6182,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["286|3|"],"new_items_map_keys":["286|3|"]} 
[2026-03-18 14:41:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6182,"order_number":"AZS-180326-010"} 
[2026-03-18 14:41:19] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6182,"order_number":"AZS-180326-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":50,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-18 14:41:19","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-18 14:41:19"} 
[2026-03-18 14:41:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6182,"order_number":"AZS-180326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-18 14:41:19"} 
[2026-03-18 14:41:19] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6182,"order_number":"AZS-180326-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"50.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-18 14:41:19","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":50,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"50.00","database_verification_match":true,"timestamp":"2026-03-18 14:41:19"} 
[2026-03-18 14:43:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6181,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29399},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":29400},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":29401}],"validated_items":[{"id":29399,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29400,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":29401,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-18 14:43:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6181,"items_count":3} 
[2026-03-18 14:43:16] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29399,"menu_item_id":96,"quantity":1},{"id":29400,"menu_item_id":396,"quantity":1},{"id":29401,"menu_item_id":2,"quantity":2}]} 
[2026-03-18 14:43:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6181,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["96|1|","396|1|","2|2|"],"new_items_map_keys":["96|1|","396|1|","2|2|"]} 
[2026-03-18 14:43:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6181,"order_number":"AZS-180326-009"} 
[2026-03-18 14:43:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6181,"order_number":"AZS-180326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-18 14:43:16"} 
[2026-03-18 16:12:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T04:12:56.161Z","date_to":"2026-03-18T16:12:56.161Z","per_page":"100"} 
[2026-03-18 16:12:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T04:12:56.170Z","date_to":"2026-03-18T16:12:56.170Z","per_page":"100"} 
[2026-03-18 16:12:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":3,"unique_order_numbers":12} 
[2026-03-18 16:12:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":3,"unique_order_numbers":12} 
[2026-03-18 16:12:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T04:12:56.161Z","date_to":"2026-03-18T16:12:56.161Z","per_page":"100"} 
[2026-03-18 16:12:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":3,"unique_order_numbers":12} 
[2026-03-18 16:31:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6183,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":29403},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":29404},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":29405},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29406},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29407},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29403,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":29404,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":29405,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":29406,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29407,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-18 16:31:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6183,"items_count":6} 
[2026-03-18 16:31:38] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29403,"menu_item_id":113,"quantity":1},{"id":29404,"menu_item_id":64,"quantity":1},{"id":29405,"menu_item_id":396,"quantity":3},{"id":29406,"menu_item_id":61,"quantity":1},{"id":29407,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-18 16:31:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6183,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["113|1|","64|1|","396|2|","61|1|","56|1|"],"new_items_map_keys":["113|1|","64|1|","396|3|","61|1|","56|1|","5|1|"]} 
[2026-03-18 16:31:38] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6183,"order_number":"AZS-180326-011"} 
[2026-03-18 16:31:38] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-180326-011","replaced_order_id":6183} 
[2026-03-18 16:31:38] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6185,"items_count":6,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-18 16:31:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6185,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6185}} 
[2026-03-18 16:31:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6185,"item_index":0,"menu_item_id":113} 
[2026-03-18 16:31:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6185,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6185}} 
[2026-03-18 16:31:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6185,"item_index":1,"menu_item_id":64} 
[2026-03-18 16:31:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6185,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6185}} 
[2026-03-18 16:31:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6185,"item_index":2,"menu_item_id":396} 
[2026-03-18 16:31:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6185,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6185}} 
[2026-03-18 16:31:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6185,"item_index":3,"menu_item_id":61} 
[2026-03-18 16:31:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6185,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6185}} 
[2026-03-18 16:31:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6185,"item_index":4,"menu_item_id":56} 
[2026-03-18 16:31:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6185,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6185}} 
[2026-03-18 16:31:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6185,"item_index":5,"menu_item_id":5} 
[2026-03-18 16:31:38] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6183,"new_order_id":6185,"order_number":"AZS-180326-011"} 
[2026-03-18 16:36:39] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6181,"order_number":"AZS-180326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1636,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 16:36:39"} 
[2026-03-18 16:36:39] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6181,"order_number":"AZS-180326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1636,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 16:36:39"} 
[2026-03-18 16:36:39] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6181,"order_number":"AZS-180326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1636,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 16:36:39"} 
[2026-03-18 16:36:39] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6181,"order_number":"AZS-180326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1636,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 16:36:39"} 
[2026-03-18 16:36:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6181,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29399},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":29400},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":29401}],"validated_items":[{"id":29399,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29400,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":29401,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-18 16:36:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6181,"items_count":3} 
[2026-03-18 16:36:39] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29399,"menu_item_id":96,"quantity":1},{"id":29400,"menu_item_id":396,"quantity":1},{"id":29401,"menu_item_id":2,"quantity":2}]} 
[2026-03-18 16:36:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6181,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["96|1|","396|1|","2|2|"],"new_items_map_keys":["96|1|","396|1|","2|2|"]} 
[2026-03-18 16:36:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6181,"order_number":"AZS-180326-009"} 
[2026-03-18 16:36:39] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6181,"order_number":"AZS-180326-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1636,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-18 16:36:39","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-18 16:36:39"} 
[2026-03-18 16:36:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6181,"order_number":"AZS-180326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-18 16:36:39"} 
[2026-03-18 16:36:39] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6181,"order_number":"AZS-180326-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1636.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-18 16:36:39","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1636,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1636.00","database_verification_match":true,"timestamp":"2026-03-18 16:36:39"} 
[2026-03-18 16:36:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T04:36:42.468Z","date_to":"2026-03-18T16:36:42.468Z","per_page":"100"} 
[2026-03-18 16:36:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T04:36:42.481Z","date_to":"2026-03-18T16:36:42.481Z","per_page":"100"} 
[2026-03-18 16:36:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":2,"unique_order_numbers":12} 
[2026-03-18 16:36:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":2,"unique_order_numbers":12} 
[2026-03-18 16:36:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T04:36:42.468Z","date_to":"2026-03-18T16:36:42.468Z","per_page":"100"} 
[2026-03-18 16:36:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":2,"unique_order_numbers":12} 
[2026-03-18 16:39:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6184,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29408},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":29409},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":29410}],"validated_items":[{"id":29408,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29409,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":29410,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-18 16:39:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6184,"items_count":3} 
[2026-03-18 16:39:12] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29408,"menu_item_id":113,"quantity":1},{"id":29409,"menu_item_id":396,"quantity":1},{"id":29410,"menu_item_id":4,"quantity":1}]} 
[2026-03-18 16:39:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6184,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["113|1|","396|1|","4|1|"],"new_items_map_keys":["113|1|","396|1|","4|1|"]} 
[2026-03-18 16:39:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6184,"order_number":"AZS-180326-012"} 
[2026-03-18 16:39:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6184,"order_number":"AZS-180326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-18 16:39:12"} 
[2026-03-18 16:44:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6185,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29411},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":29412},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":29413},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29414},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29415},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29416}],"validated_items":[{"id":29411,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29412,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":29413,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":29414,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29415,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29416,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-18 16:44:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6185,"items_count":6} 
[2026-03-18 16:44:52] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29411,"menu_item_id":113,"quantity":1},{"id":29412,"menu_item_id":64,"quantity":1},{"id":29413,"menu_item_id":396,"quantity":3},{"id":29414,"menu_item_id":61,"quantity":1},{"id":29415,"menu_item_id":56,"quantity":1},{"id":29416,"menu_item_id":5,"quantity":1}]} 
[2026-03-18 16:44:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6185,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","64|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["113|1|","64|1|","396|3|","61|1|","56|1|","5|1|"]} 
[2026-03-18 16:44:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6185,"order_number":"AZS-180326-011"} 
[2026-03-18 16:44:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6185,"order_number":"AZS-180326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-18 16:44:52"} 
[2026-03-18 16:47:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6184,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29408},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":29409},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":29410}],"validated_items":[{"id":29408,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29409,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":29410,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-18 16:47:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6184,"items_count":3} 
[2026-03-18 16:47:10] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29408,"menu_item_id":113,"quantity":1},{"id":29409,"menu_item_id":396,"quantity":1},{"id":29410,"menu_item_id":4,"quantity":1}]} 
[2026-03-18 16:47:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6184,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["113|1|","396|1|","4|1|"],"new_items_map_keys":["113|1|","396|1|","4|1|"]} 
[2026-03-18 16:47:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6184,"order_number":"AZS-180326-012"} 
[2026-03-18 16:47:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6184,"order_number":"AZS-180326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-18 16:47:10"} 
[2026-03-18 16:56:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T04:56:19.707Z","date_to":"2026-03-18T16:56:19.707Z","per_page":"100"} 
[2026-03-18 16:56:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T04:56:19.729Z","date_to":"2026-03-18T16:56:19.729Z","per_page":"100"} 
[2026-03-18 16:56:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":2,"unique_order_numbers":12} 
[2026-03-18 16:56:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":2,"unique_order_numbers":12} 
[2026-03-18 16:56:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T04:56:19.707Z","date_to":"2026-03-18T16:56:19.707Z","per_page":"100"} 
[2026-03-18 16:56:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":2,"unique_order_numbers":12} 
[2026-03-18 16:57:41] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6184,"order_number":"AZS-180326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1388,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 16:57:41"} 
[2026-03-18 16:57:41] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6184,"order_number":"AZS-180326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1388,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 16:57:41"} 
[2026-03-18 16:57:41] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6184,"order_number":"AZS-180326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1388,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 16:57:41"} 
[2026-03-18 16:57:41] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6184,"order_number":"AZS-180326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1388,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 16:57:41"} 
[2026-03-18 16:57:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6184,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29408},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":29409},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":29410}],"validated_items":[{"id":29408,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29409,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":29410,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-18 16:57:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6184,"items_count":3} 
[2026-03-18 16:57:41] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29408,"menu_item_id":113,"quantity":1},{"id":29409,"menu_item_id":396,"quantity":1},{"id":29410,"menu_item_id":4,"quantity":1}]} 
[2026-03-18 16:57:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6184,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["113|1|","396|1|","4|1|"],"new_items_map_keys":["113|1|","396|1|","4|1|"]} 
[2026-03-18 16:57:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6184,"order_number":"AZS-180326-012"} 
[2026-03-18 16:57:41] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6184,"order_number":"AZS-180326-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1388,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-18 16:57:41","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-18 16:57:41"} 
[2026-03-18 16:57:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6184,"order_number":"AZS-180326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-18 16:57:41"} 
[2026-03-18 16:57:41] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6184,"order_number":"AZS-180326-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1388.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-18 16:57:41","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1388,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1388.00","database_verification_match":true,"timestamp":"2026-03-18 16:57:41"} 
[2026-03-18 18:01:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6187,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29418},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29419},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29420}],"validated_items":[{"id":29418,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29419,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29420,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-18 18:01:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6187,"items_count":3} 
[2026-03-18 18:01:28] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29418,"menu_item_id":96,"quantity":1},{"id":29419,"menu_item_id":396,"quantity":2},{"id":29420,"menu_item_id":61,"quantity":1}]} 
[2026-03-18 18:01:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6187,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["96|1|","396|2|","61|1|"],"new_items_map_keys":["96|1|","396|2|","61|1|"]} 
[2026-03-18 18:01:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6187,"order_number":"AZS-180326-014"} 
[2026-03-18 18:01:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6187,"order_number":"AZS-180326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-18 18:01:28"} 
[2026-03-18 18:02:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6187,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":29418},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":29419},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29420},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29418,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":29419,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":29420,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-18 18:02:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6187,"items_count":5} 
[2026-03-18 18:02:17] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29418,"menu_item_id":96,"quantity":1},{"id":29419,"menu_item_id":396,"quantity":2},{"id":29420,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-18 18:02:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6187,"has_item_changes":true,"old_items_count":3,"new_items_count":5,"old_items_map_keys":["96|1|","396|2|","61|1|"],"new_items_map_keys":["96|1|","396|2|","61|1|","2|1|","5|1|"]} 
[2026-03-18 18:02:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6187,"order_number":"AZS-180326-014"} 
[2026-03-18 18:02:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-180326-014","replaced_order_id":6187} 
[2026-03-18 18:02:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6189,"items_count":5,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-18 18:02:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6189,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6189}} 
[2026-03-18 18:02:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6189,"item_index":0,"menu_item_id":96} 
[2026-03-18 18:02:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6189,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6189}} 
[2026-03-18 18:02:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6189,"item_index":1,"menu_item_id":396} 
[2026-03-18 18:02:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6189,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6189}} 
[2026-03-18 18:02:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6189,"item_index":2,"menu_item_id":61} 
[2026-03-18 18:02:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6189,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6189}} 
[2026-03-18 18:02:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6189,"item_index":3,"menu_item_id":2} 
[2026-03-18 18:02:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6189,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6189}} 
[2026-03-18 18:02:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6189,"item_index":4,"menu_item_id":5} 
[2026-03-18 18:02:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6187,"new_order_id":6189,"order_number":"AZS-180326-014"} 
[2026-03-18 18:02:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6189,"item_index":0,"item_id":29418} 
[2026-03-18 18:02:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6189,"item_index":1,"item_id":29419} 
[2026-03-18 18:02:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6189,"item_index":2,"item_id":29420} 
[2026-03-18 18:02:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6189,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29418},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29419},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29420},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-18 18:02:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6189,"items_count":5} 
[2026-03-18 18:02:23] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[29422,29423,29424,29425,29426],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-18 18:02:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6189,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","396|2|","61|1|","2|1|","5|1|"],"new_items_map_keys":["96|1|","396|2|","61|1|","2|1|","5|1|"]} 
[2026-03-18 18:02:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6189,"order_number":"AZS-180326-014"} 
[2026-03-18 18:02:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6189,"order_number":"AZS-180326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-18 18:02:23"} 
[2026-03-18 18:11:06] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6186,"order_number":"AZS-180326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":30,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 18:11:06"} 
[2026-03-18 18:11:06] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6186,"order_number":"AZS-180326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":30,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 18:11:06"} 
[2026-03-18 18:11:06] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6186,"order_number":"AZS-180326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":30,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 18:11:06"} 
[2026-03-18 18:11:06] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6186,"order_number":"AZS-180326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":30,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 18:11:06"} 
[2026-03-18 18:11:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6186,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":29417}],"validated_items":[{"id":29417,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-18 18:11:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6186,"items_count":1} 
[2026-03-18 18:11:06] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29417,"menu_item_id":286,"quantity":2}]} 
[2026-03-18 18:11:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6186,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["286|2|"],"new_items_map_keys":["286|2|"]} 
[2026-03-18 18:11:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6186,"order_number":"AZS-180326-013"} 
[2026-03-18 18:11:06] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6186,"order_number":"AZS-180326-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":30,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-18 18:11:06","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-18 18:11:06"} 
[2026-03-18 18:11:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6186,"order_number":"AZS-180326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-18 18:11:06"} 
[2026-03-18 18:11:06] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6186,"order_number":"AZS-180326-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"30.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-18 18:11:06","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":30,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"30.00","database_verification_match":true,"timestamp":"2026-03-18 18:11:06"} 
[2026-03-18 18:34:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6190,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":29427},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":29428},{"menu_item_id":286,"quantity":3,"discount_percent":0,"notes":null,"id":29429}],"validated_items":[{"id":29427,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"id":29428,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":29429,"menu_item_id":286,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-18 18:34:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6190,"items_count":3} 
[2026-03-18 18:34:21] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29427,"menu_item_id":403,"quantity":1},{"id":29428,"menu_item_id":64,"quantity":1},{"id":29429,"menu_item_id":286,"quantity":3}]} 
[2026-03-18 18:34:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6190,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["403|1|","64|1|","286|3|"],"new_items_map_keys":["403|1|","64|1|","286|3|"]} 
[2026-03-18 18:34:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6190,"order_number":"AZS-180326-016"} 
[2026-03-18 18:34:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6190,"order_number":"AZS-180326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-18 18:34:21"} 
[2026-03-18 18:36:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T06:36:20.183Z","date_to":"2026-03-18T18:36:20.183Z","per_page":"100"} 
[2026-03-18 18:36:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T06:36:20.200Z","date_to":"2026-03-18T18:36:20.200Z","per_page":"100"} 
[2026-03-18 18:36:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-016","AZS-180326-015","AZS-180326-014","AZS-180326-013","AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":4,"unique_order_numbers":16} 
[2026-03-18 18:36:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-016","AZS-180326-015","AZS-180326-014","AZS-180326-013","AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":4,"unique_order_numbers":16} 
[2026-03-18 18:36:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T06:36:20.183Z","date_to":"2026-03-18T18:36:20.183Z","per_page":"100"} 
[2026-03-18 18:36:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-016","AZS-180326-015","AZS-180326-014","AZS-180326-013","AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":4,"unique_order_numbers":16} 
[2026-03-18 18:51:28] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-18 19:15:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T07:15:52.539Z","date_to":"2026-03-18T19:15:52.539Z","per_page":"100"} 
[2026-03-18 19:15:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T07:15:52.521Z","date_to":"2026-03-18T19:15:52.521Z","per_page":"100"} 
[2026-03-18 19:15:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-017","AZS-180326-016","AZS-180326-015","AZS-180326-014","AZS-180326-013","AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":5,"unique_order_numbers":17} 
[2026-03-18 19:15:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-017","AZS-180326-016","AZS-180326-015","AZS-180326-014","AZS-180326-013","AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":5,"unique_order_numbers":17} 
[2026-03-18 19:15:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T07:15:52.521Z","date_to":"2026-03-18T19:15:52.521Z","per_page":"100"} 
[2026-03-18 19:15:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-017","AZS-180326-016","AZS-180326-015","AZS-180326-014","AZS-180326-013","AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":5,"unique_order_numbers":17} 
[2026-03-18 19:16:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6191,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":29430},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29431}],"validated_items":[{"id":29430,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":29431,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-18 19:16:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6191,"items_count":2} 
[2026-03-18 19:16:30] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29430,"menu_item_id":403,"quantity":1},{"id":29431,"menu_item_id":6,"quantity":2}]} 
[2026-03-18 19:16:30] local.INFO: PosOrderController::update - Item changes check {"order_id":6191,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["403|1|","6|2|"],"new_items_map_keys":["403|1|","6|2|"]} 
[2026-03-18 19:16:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6191,"order_number":"AZS-180326-017"} 
[2026-03-18 19:16:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6191,"order_number":"AZS-180326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-18 19:16:30"} 
[2026-03-18 19:20:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6191,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":29430},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29431},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}],"validated_items":[{"id":29430,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":29431,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-18 19:20:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6191,"items_count":3} 
[2026-03-18 19:20:12] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29430,"menu_item_id":403,"quantity":1},{"id":29431,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-18 19:20:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6191,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["403|1|","6|2|"],"new_items_map_keys":["403|1|","6|2|","4|1|"]} 
[2026-03-18 19:20:12] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6191,"order_number":"AZS-180326-017"} 
[2026-03-18 19:20:12] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-180326-017","replaced_order_id":6191} 
[2026-03-18 19:20:12] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6192,"items_count":3,"items":[{"menu_item_id":403,"quantity":1,"price":349.0},{"menu_item_id":6,"quantity":2,"price":199.0},{"menu_item_id":4,"quantity":1,"price":90.0}]} 
[2026-03-18 19:20:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6192,"item_index":0,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":349.0,"discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6192}} 
[2026-03-18 19:20:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6192,"item_index":0,"menu_item_id":403} 
[2026-03-18 19:20:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6192,"item_index":1,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6192}} 
[2026-03-18 19:20:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6192,"item_index":1,"menu_item_id":6} 
[2026-03-18 19:20:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6192,"item_index":2,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":90.0,"discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6192}} 
[2026-03-18 19:20:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6192,"item_index":2,"menu_item_id":4} 
[2026-03-18 19:20:12] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6191,"new_order_id":6192,"order_number":"AZS-180326-017"} 
[2026-03-18 19:20:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6192,"item_index":0,"item_id":29430} 
[2026-03-18 19:20:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6192,"item_index":1,"item_id":29431} 
[2026-03-18 19:20:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":6192,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":29430},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29431},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-18 19:20:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6192,"items_count":3} 
[2026-03-18 19:20:16] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[29432,29433,29434],"items":[{"id":null,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-18 19:20:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6192,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["403|1|","6|2|","4|1|"],"new_items_map_keys":["403|1|","6|2|","4|1|"]} 
[2026-03-18 19:20:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6192,"order_number":"AZS-180326-017"} 
[2026-03-18 19:20:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6192,"order_number":"AZS-180326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-18 19:20:16"} 
[2026-03-18 19:20:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6188,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":110,"quantity":1,"discount_percent":0,"notes":null,"id":29421},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29421,"menu_item_id":110,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-18 19:20:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6188,"items_count":2} 
[2026-03-18 19:20:32] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29421,"menu_item_id":110,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1}]} 
[2026-03-18 19:20:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6188,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["110|1|"],"new_items_map_keys":["110|1|","403|1|"]} 
[2026-03-18 19:20:32] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6188,"order_number":"AZS-180326-015"} 
[2026-03-18 19:20:32] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-180326-015","replaced_order_id":6188} 
[2026-03-18 19:20:32] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6193,"items_count":2,"items":[{"menu_item_id":110,"quantity":1,"price":"4199.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"}]} 
[2026-03-18 19:20:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6193,"item_index":0,"item_data":{"menu_item_id":110,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Namkeen Rosh","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6193}} 
[2026-03-18 19:20:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6193,"item_index":0,"menu_item_id":110} 
[2026-03-18 19:20:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6193,"item_index":1,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6193}} 
[2026-03-18 19:20:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6193,"item_index":1,"menu_item_id":403} 
[2026-03-18 19:20:32] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6188,"new_order_id":6193,"order_number":"AZS-180326-015"} 
[2026-03-18 19:21:08] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6190,"order_number":"AZS-180326-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1393,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 19:21:08"} 
[2026-03-18 19:21:08] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6190,"order_number":"AZS-180326-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1393,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 19:21:08"} 
[2026-03-18 19:21:08] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6190,"order_number":"AZS-180326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1393,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 19:21:08"} 
[2026-03-18 19:21:08] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6190,"order_number":"AZS-180326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1393,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 19:21:08"} 
[2026-03-18 19:21:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6190,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":29427},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":29428},{"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null,"id":29429}],"validated_items":[{"id":29427,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":29428,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":29429,"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-18 19:21:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6190,"items_count":3} 
[2026-03-18 19:21:08] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29427,"menu_item_id":403,"quantity":1},{"id":29428,"menu_item_id":64,"quantity":1},{"id":29429,"menu_item_id":286,"quantity":3}]} 
[2026-03-18 19:21:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6190,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["403|1|","64|1|","286|3|"],"new_items_map_keys":["403|1|","64|1|","286|3|"]} 
[2026-03-18 19:21:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6190,"order_number":"AZS-180326-016"} 
[2026-03-18 19:21:08] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6190,"order_number":"AZS-180326-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1393,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-18 19:21:08","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-18 19:21:08"} 
[2026-03-18 19:21:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6190,"order_number":"AZS-180326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-18 19:21:08"} 
[2026-03-18 19:21:08] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6190,"order_number":"AZS-180326-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1393.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-18 19:21:08","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1393,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1393.00","database_verification_match":true,"timestamp":"2026-03-18 19:21:08"} 
[2026-03-18 19:23:48] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6192,"order_number":"AZS-180326-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 19:23:48"} 
[2026-03-18 19:23:48] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6192,"order_number":"AZS-180326-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 19:23:48"} 
[2026-03-18 19:23:48] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6192,"order_number":"AZS-180326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 19:23:48"} 
[2026-03-18 19:23:48] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6192,"order_number":"AZS-180326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 19:23:48"} 
[2026-03-18 19:23:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6192,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":29432},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29433},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":29434}],"validated_items":[{"id":29432,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":29433,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29434,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-18 19:23:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6192,"items_count":3} 
[2026-03-18 19:23:48] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29432,"menu_item_id":403,"quantity":1},{"id":29433,"menu_item_id":6,"quantity":2},{"id":29434,"menu_item_id":4,"quantity":1}]} 
[2026-03-18 19:23:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6192,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["403|1|","6|2|","4|1|"],"new_items_map_keys":["403|1|","6|2|","4|1|"]} 
[2026-03-18 19:23:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6192,"order_number":"AZS-180326-017"} 
[2026-03-18 19:23:48] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6192,"order_number":"AZS-180326-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-18 19:23:48","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-18 19:23:48"} 
[2026-03-18 19:23:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6192,"order_number":"AZS-180326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-18 19:23:48"} 
[2026-03-18 19:23:48] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6192,"order_number":"AZS-180326-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-18 19:23:48","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-18 19:23:48"} 
[2026-03-18 19:31:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6193,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":110,"quantity":1,"discount_percent":0,"notes":null,"id":29435},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":29436},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29435,"menu_item_id":110,"quantity":1,"discount_percent":0,"notes":null},{"id":29436,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-18 19:31:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6193,"items_count":5} 
[2026-03-18 19:31:18] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29435,"menu_item_id":110,"quantity":1},{"id":29436,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":1}]} 
[2026-03-18 19:31:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6193,"has_item_changes":true,"old_items_count":2,"new_items_count":5,"old_items_map_keys":["110|1|","403|1|"],"new_items_map_keys":["110|1|","403|1|","2|1|","5|1|","13|1|"]} 
[2026-03-18 19:31:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6193,"order_number":"AZS-180326-015"} 
[2026-03-18 19:31:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-180326-015","replaced_order_id":6193} 
[2026-03-18 19:31:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6194,"items_count":5,"items":[{"menu_item_id":110,"quantity":1,"price":"4199.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":1,"price":"249.00"}]} 
[2026-03-18 19:31:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6194,"item_index":0,"item_data":{"menu_item_id":110,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Namkeen Rosh","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6194}} 
[2026-03-18 19:31:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6194,"item_index":0,"menu_item_id":110} 
[2026-03-18 19:31:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6194,"item_index":1,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6194}} 
[2026-03-18 19:31:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6194,"item_index":1,"menu_item_id":403} 
[2026-03-18 19:31:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6194,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6194}} 
[2026-03-18 19:31:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6194,"item_index":2,"menu_item_id":2} 
[2026-03-18 19:31:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6194,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6194}} 
[2026-03-18 19:31:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6194,"item_index":3,"menu_item_id":5} 
[2026-03-18 19:31:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6194,"item_index":4,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6194}} 
[2026-03-18 19:31:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6194,"item_index":4,"menu_item_id":13} 
[2026-03-18 19:31:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6193,"new_order_id":6194,"order_number":"AZS-180326-015"} 
[2026-03-18 20:03:17] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6185,"order_number":"AZS-180326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3216,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 20:03:17"} 
[2026-03-18 20:03:17] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6185,"order_number":"AZS-180326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3216,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 20:03:17"} 
[2026-03-18 20:03:17] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6185,"order_number":"AZS-180326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3216,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 20:03:17"} 
[2026-03-18 20:03:17] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6185,"order_number":"AZS-180326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3216,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 20:03:17"} 
[2026-03-18 20:03:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6185,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29411},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":29412},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":29413},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29414},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29415},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29416}],"validated_items":[{"id":29411,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29412,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":29413,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":29414,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29415,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29416,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-18 20:03:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6185,"items_count":6} 
[2026-03-18 20:03:17] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29411,"menu_item_id":113,"quantity":1},{"id":29412,"menu_item_id":64,"quantity":1},{"id":29413,"menu_item_id":396,"quantity":3},{"id":29414,"menu_item_id":61,"quantity":1},{"id":29415,"menu_item_id":56,"quantity":1},{"id":29416,"menu_item_id":5,"quantity":1}]} 
[2026-03-18 20:03:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6185,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","64|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["113|1|","64|1|","396|3|","61|1|","56|1|","5|1|"]} 
[2026-03-18 20:03:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6185,"order_number":"AZS-180326-011"} 
[2026-03-18 20:03:17] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6185,"order_number":"AZS-180326-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3216,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-18 20:03:17","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-18 20:03:17"} 
[2026-03-18 20:03:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6185,"order_number":"AZS-180326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-18 20:03:17"} 
[2026-03-18 20:03:17] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6185,"order_number":"AZS-180326-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3216.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-18 20:03:17","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3216,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3216.00","database_verification_match":true,"timestamp":"2026-03-18 20:03:17"} 
[2026-03-18 20:03:29] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6189,"order_number":"AZS-180326-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 20:03:29"} 
[2026-03-18 20:03:29] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6189,"order_number":"AZS-180326-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 20:03:29"} 
[2026-03-18 20:03:29] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6189,"order_number":"AZS-180326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 20:03:29"} 
[2026-03-18 20:03:29] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6189,"order_number":"AZS-180326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 20:03:29"} 
[2026-03-18 20:03:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6189,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29422},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29423},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29424},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":29425},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29426}],"validated_items":[{"id":29422,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29423,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29424,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29425,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":29426,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-18 20:03:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6189,"items_count":5} 
[2026-03-18 20:03:29] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29422,"menu_item_id":96,"quantity":1},{"id":29423,"menu_item_id":396,"quantity":2},{"id":29424,"menu_item_id":61,"quantity":1},{"id":29425,"menu_item_id":2,"quantity":1},{"id":29426,"menu_item_id":5,"quantity":1}]} 
[2026-03-18 20:03:29] local.INFO: PosOrderController::update - Item changes check {"order_id":6189,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","396|2|","61|1|","2|1|","5|1|"],"new_items_map_keys":["96|1|","396|2|","61|1|","2|1|","5|1|"]} 
[2026-03-18 20:03:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6189,"order_number":"AZS-180326-014"} 
[2026-03-18 20:03:29] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6189,"order_number":"AZS-180326-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-18 20:03:29","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-18 20:03:29"} 
[2026-03-18 20:03:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6189,"order_number":"AZS-180326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-18 20:03:29"} 
[2026-03-18 20:03:29] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6189,"order_number":"AZS-180326-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-18 20:03:29","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-18 20:03:29"} 
[2026-03-18 20:03:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T08:03:32.593Z","date_to":"2026-03-18T20:03:32.593Z","per_page":"100"} 
[2026-03-18 20:03:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-017","AZS-180326-016","AZS-180326-015","AZS-180326-014","AZS-180326-013","AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":1,"unique_order_numbers":17} 
[2026-03-18 20:03:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T08:03:32.605Z","date_to":"2026-03-18T20:03:32.605Z","per_page":"100"} 
[2026-03-18 20:03:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-017","AZS-180326-016","AZS-180326-015","AZS-180326-014","AZS-180326-013","AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":1,"unique_order_numbers":17} 
[2026-03-18 20:03:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T08:03:32.593Z","date_to":"2026-03-18T20:03:32.593Z","per_page":"100"} 
[2026-03-18 20:03:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-017","AZS-180326-016","AZS-180326-015","AZS-180326-014","AZS-180326-013","AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":1,"unique_order_numbers":17} 
[2026-03-18 20:05:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T08:05:38.454Z","date_to":"2026-03-18T20:05:38.454Z","per_page":"100"} 
[2026-03-18 20:05:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T08:05:38.468Z","date_to":"2026-03-18T20:05:38.468Z","per_page":"100"} 
[2026-03-18 20:05:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-017","AZS-180326-016","AZS-180326-015","AZS-180326-014","AZS-180326-013","AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":1,"unique_order_numbers":17} 
[2026-03-18 20:05:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-017","AZS-180326-016","AZS-180326-015","AZS-180326-014","AZS-180326-013","AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":1,"unique_order_numbers":17} 
[2026-03-18 20:05:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T08:05:38.454Z","date_to":"2026-03-18T20:05:38.454Z","per_page":"100"} 
[2026-03-18 20:05:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-017","AZS-180326-016","AZS-180326-015","AZS-180326-014","AZS-180326-013","AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":1,"unique_order_numbers":17} 
[2026-03-18 20:15:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6195,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":29442},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":29443},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":29444}],"validated_items":[{"id":29442,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":29443,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":29444,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-18 20:15:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6195,"items_count":3} 
[2026-03-18 20:15:21] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29442,"menu_item_id":105,"quantity":1},{"id":29443,"menu_item_id":55,"quantity":2},{"id":29444,"menu_item_id":50,"quantity":3}]} 
[2026-03-18 20:15:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6195,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["105|1|","55|2|","50|3|"],"new_items_map_keys":["105|1|","55|2|","50|3|"]} 
[2026-03-18 20:15:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6195,"order_number":"AZS-180326-018"} 
[2026-03-18 20:15:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6195,"order_number":"AZS-180326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-18 20:15:21"} 
[2026-03-18 20:16:23] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6195,"order_number":"AZS-180326-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 20:16:23"} 
[2026-03-18 20:16:23] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6195,"order_number":"AZS-180326-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 20:16:23"} 
[2026-03-18 20:16:23] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6195,"order_number":"AZS-180326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 20:16:23"} 
[2026-03-18 20:16:23] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6195,"order_number":"AZS-180326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 20:16:23"} 
[2026-03-18 20:16:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6195,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":29442},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":29443},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":29444}],"validated_items":[{"id":29442,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":29443,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":29444,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-18 20:16:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6195,"items_count":3} 
[2026-03-18 20:16:23] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29442,"menu_item_id":105,"quantity":1},{"id":29443,"menu_item_id":55,"quantity":2},{"id":29444,"menu_item_id":50,"quantity":3}]} 
[2026-03-18 20:16:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6195,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["105|1|","55|2|","50|3|"],"new_items_map_keys":["105|1|","55|2|","50|3|"]} 
[2026-03-18 20:16:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6195,"order_number":"AZS-180326-018"} 
[2026-03-18 20:16:23] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6195,"order_number":"AZS-180326-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-18 20:16:23","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-18 20:16:23"} 
[2026-03-18 20:16:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6195,"order_number":"AZS-180326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-18 20:16:23"} 
[2026-03-18 20:16:23] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6195,"order_number":"AZS-180326-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-18 20:16:23","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-03-18 20:16:23"} 
[2026-03-18 20:17:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6194,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":110,"quantity":1,"discount_percent":0,"notes":null,"id":29437},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":29438},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":29439},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29440},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null,"id":29441},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":29437,"menu_item_id":110,"quantity":1,"discount_percent":0,"notes":null},{"id":29438,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"id":29439,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":29440,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":29441,"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-18 20:17:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6194,"items_count":6} 
[2026-03-18 20:17:28] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29437,"menu_item_id":110,"quantity":1},{"id":29438,"menu_item_id":403,"quantity":1},{"id":29439,"menu_item_id":2,"quantity":1},{"id":29440,"menu_item_id":5,"quantity":1},{"id":29441,"menu_item_id":13,"quantity":1},{"id":null,"menu_item_id":51,"quantity":2}]} 
[2026-03-18 20:17:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6194,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["110|1|","403|1|","2|1|","5|1|","13|1|"],"new_items_map_keys":["110|1|","403|1|","2|1|","5|1|","13|1|","51|2|"]} 
[2026-03-18 20:17:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6194,"order_number":"AZS-180326-015"} 
[2026-03-18 20:17:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-180326-015","replaced_order_id":6194} 
[2026-03-18 20:17:28] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6196,"items_count":6,"items":[{"menu_item_id":110,"quantity":1,"price":"4199.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":1,"price":"249.00"},{"menu_item_id":51,"quantity":2,"price":"199.00"}]} 
[2026-03-18 20:17:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6196,"item_index":0,"item_data":{"menu_item_id":110,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Namkeen Rosh","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6196}} 
[2026-03-18 20:17:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6196,"item_index":0,"menu_item_id":110} 
[2026-03-18 20:17:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6196,"item_index":1,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6196}} 
[2026-03-18 20:17:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6196,"item_index":1,"menu_item_id":403} 
[2026-03-18 20:17:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6196,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6196}} 
[2026-03-18 20:17:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6196,"item_index":2,"menu_item_id":2} 
[2026-03-18 20:17:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6196,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6196}} 
[2026-03-18 20:17:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6196,"item_index":3,"menu_item_id":5} 
[2026-03-18 20:17:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6196,"item_index":4,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6196}} 
[2026-03-18 20:17:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6196,"item_index":4,"menu_item_id":13} 
[2026-03-18 20:17:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6196,"item_index":5,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6196}} 
[2026-03-18 20:17:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6196,"item_index":5,"menu_item_id":51} 
[2026-03-18 20:17:28] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6194,"new_order_id":6196,"order_number":"AZS-180326-015"} 
[2026-03-18 20:17:39] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6196,"order_number":"AZS-180326-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5495,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 20:17:39"} 
[2026-03-18 20:17:39] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6196,"order_number":"AZS-180326-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5495,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-18 20:17:39"} 
[2026-03-18 20:17:39] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6196,"order_number":"AZS-180326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5495,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 20:17:39"} 
[2026-03-18 20:17:39] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6196,"order_number":"AZS-180326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5495,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-18 20:17:39"} 
[2026-03-18 20:17:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6196,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":110,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":29445},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":29446},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":29447},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29448},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":29449},{"menu_item_id":51,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29450}],"validated_items":[{"id":29445,"menu_item_id":110,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":29446,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":29447,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":29448,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29449,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":29450,"menu_item_id":51,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-18 20:17:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6196,"items_count":6} 
[2026-03-18 20:17:39] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29445,"menu_item_id":110,"quantity":1},{"id":29446,"menu_item_id":403,"quantity":1},{"id":29447,"menu_item_id":2,"quantity":1},{"id":29448,"menu_item_id":5,"quantity":1},{"id":29449,"menu_item_id":13,"quantity":1},{"id":29450,"menu_item_id":51,"quantity":2}]} 
[2026-03-18 20:17:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6196,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["110|1|","403|1|","2|1|","5|1|","13|1|","51|2|"],"new_items_map_keys":["110|1|","403|1|","2|1|","5|1|","13|1|","51|2|"]} 
[2026-03-18 20:17:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6196,"order_number":"AZS-180326-015"} 
[2026-03-18 20:17:39] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6196,"order_number":"AZS-180326-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5495,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-18 20:17:39","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-18 20:17:39"} 
[2026-03-18 20:17:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6196,"order_number":"AZS-180326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-18 20:17:39"} 
[2026-03-18 20:17:39] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6196,"order_number":"AZS-180326-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5495.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-18 20:17:39","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5495,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5495.00","database_verification_match":true,"timestamp":"2026-03-18 20:17:39"} 
[2026-03-18 20:17:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T08:17:46.766Z","date_to":"2026-03-18T20:17:46.766Z","per_page":"100"} 
[2026-03-18 20:17:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T08:17:46.781Z","date_to":"2026-03-18T20:17:46.781Z","per_page":"100"} 
[2026-03-18 20:17:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-018","AZS-180326-017","AZS-180326-016","AZS-180326-015","AZS-180326-014","AZS-180326-013","AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":0,"unique_order_numbers":18} 
[2026-03-18 20:17:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-018","AZS-180326-017","AZS-180326-016","AZS-180326-015","AZS-180326-014","AZS-180326-013","AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":0,"unique_order_numbers":18} 
[2026-03-18 20:17:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T08:17:46.766Z","date_to":"2026-03-18T20:17:46.766Z","per_page":"100"} 
[2026-03-18 20:17:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-018","AZS-180326-017","AZS-180326-016","AZS-180326-015","AZS-180326-014","AZS-180326-013","AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":0,"unique_order_numbers":18} 
[2026-03-18 20:46:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T08:46:21.132Z","date_to":"2026-03-18T20:46:21.132Z","per_page":"100"} 
[2026-03-18 20:46:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-018","AZS-180326-017","AZS-180326-016","AZS-180326-015","AZS-180326-014","AZS-180326-013","AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":0,"unique_order_numbers":18} 
[2026-03-18 20:46:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T08:46:21.142Z","date_to":"2026-03-18T20:46:21.142Z","per_page":"100"} 
[2026-03-18 20:46:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-018","AZS-180326-017","AZS-180326-016","AZS-180326-015","AZS-180326-014","AZS-180326-013","AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":0,"unique_order_numbers":18} 
[2026-03-18 20:46:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-18T08:46:21.132Z","date_to":"2026-03-18T20:46:21.132Z","per_page":"100"} 
[2026-03-18 20:46:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-180326-018","AZS-180326-017","AZS-180326-016","AZS-180326-015","AZS-180326-014","AZS-180326-013","AZS-180326-012","AZS-180326-011","AZS-180326-010","AZS-180326-009","AZS-180326-008","AZS-180326-007","AZS-180326-006","AZS-180326-005","AZS-180326-004","AZS-180326-003","AZS-180326-002","AZS-180326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":0,"unique_order_numbers":18} 
[2026-03-22 15:22:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-22T03:22:37.075Z","date_to":"2026-03-22T15:22:37.075Z","per_page":"100"} 
[2026-03-22 15:22:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-22 15:22:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-22T03:22:37.075Z","date_to":"2026-03-22T15:22:37.075Z","per_page":"100"} 
[2026-03-22 15:22:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-22 15:27:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-22T03:28:03.118Z","date_to":"2026-03-22T15:28:03.118Z","per_page":"100"} 
[2026-03-22 15:27:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-22 15:27:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-22T03:28:03.021Z","date_to":"2026-03-22T15:28:03.021Z","per_page":"100"} 
[2026-03-22 15:27:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-22 15:27:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-22T03:28:03.021Z","date_to":"2026-03-22T15:28:03.021Z","per_page":"100"} 
[2026-03-22 15:27:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-22 15:29:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-22T03:29:49.326Z","date_to":"2026-03-22T15:29:49.326Z","per_page":"100"} 
[2026-03-22 15:29:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-22 15:29:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-22T03:29:49.326Z","date_to":"2026-03-22T15:29:49.326Z","per_page":"100"} 
[2026-03-22 15:29:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-22 15:30:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-22T03:30:22.779Z","date_to":"2026-03-22T15:30:22.779Z","per_page":"100"} 
[2026-03-22 15:30:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-22 15:30:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-22T03:30:22.872Z","date_to":"2026-03-22T15:30:22.872Z","per_page":"100"} 
[2026-03-22 15:30:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-22 15:30:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-22T03:30:22.779Z","date_to":"2026-03-22T15:30:22.779Z","per_page":"100"} 
[2026-03-22 15:30:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-22 17:06:35] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-23 15:16:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6202,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":29472},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":29473},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":29474},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29475},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29476},{"menu_item_id":29,"quantity":4,"price":250,"discount_percent":0,"notes":null,"id":29477}],"validated_items":[{"id":29472,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":29473,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":29474,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":29475,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29476,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29477,"menu_item_id":29,"quantity":4,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-23 15:16:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6202,"items_count":6} 
[2026-03-23 15:16:46] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29472,"menu_item_id":95,"quantity":1},{"id":29473,"menu_item_id":65,"quantity":1},{"id":29474,"menu_item_id":396,"quantity":4},{"id":29475,"menu_item_id":61,"quantity":1},{"id":29476,"menu_item_id":56,"quantity":1},{"id":29477,"menu_item_id":29,"quantity":4}]} 
[2026-03-23 15:16:46] local.INFO: PosOrderController::update - Item changes check {"order_id":6202,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["95|1|","65|1|","396|4|","61|1|","56|1|","29|4|"],"new_items_map_keys":["95|1|","65|1|","396|4|","61|1|","56|1|","29|4|"]} 
[2026-03-23 15:16:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6202,"order_number":"AZS-230326-003"} 
[2026-03-23 15:16:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6202,"order_number":"AZS-230326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 15:16:46"} 
[2026-03-23 15:22:00] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6203,"order_number":"AZS-230326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3150,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 15:22:00"} 
[2026-03-23 15:22:00] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6203,"order_number":"AZS-230326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3150,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 15:22:00"} 
[2026-03-23 15:22:00] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6203,"order_number":"AZS-230326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3150,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 15:22:00"} 
[2026-03-23 15:22:00] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6203,"order_number":"AZS-230326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3150,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 15:22:00"} 
[2026-03-23 15:22:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6203,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29478},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":29479},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29480},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":29481},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29482}],"validated_items":[{"id":29478,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29479,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":29480,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29481,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":29482,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-23 15:22:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6203,"items_count":5} 
[2026-03-23 15:22:00] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29478,"menu_item_id":96,"quantity":1},{"id":29479,"menu_item_id":65,"quantity":1},{"id":29480,"menu_item_id":396,"quantity":2},{"id":29481,"menu_item_id":2,"quantity":2},{"id":29482,"menu_item_id":5,"quantity":1}]} 
[2026-03-23 15:22:00] local.INFO: PosOrderController::update - Item changes check {"order_id":6203,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","65|1|","396|2|","2|2|","5|1|"],"new_items_map_keys":["96|1|","65|1|","396|2|","2|2|","5|1|"]} 
[2026-03-23 15:22:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6203,"order_number":"AZS-230326-004"} 
[2026-03-23 15:22:00] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6203,"order_number":"AZS-230326-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3150,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 15:22:00","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 15:22:00"} 
[2026-03-23 15:22:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6203,"order_number":"AZS-230326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 15:22:00"} 
[2026-03-23 15:22:00] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6203,"order_number":"AZS-230326-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3150.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 15:22:00","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3150,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3150.00","database_verification_match":true,"timestamp":"2026-03-23 15:22:00"} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6204,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":2,"discount_percent":0,"notes":null,"id":29483},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":29484},{"menu_item_id":64,"quantity":3,"discount_percent":0,"notes":null,"id":29485},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":29486},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":29487},{"menu_item_id":50,"quantity":10,"discount_percent":0,"notes":null,"id":29488},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":29489},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":29490},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":29491},{"menu_item_id":2,"quantity":5,"discount_percent":0,"notes":null}],"validated_items":[{"id":29483,"menu_item_id":97,"quantity":2,"discount_percent":0,"notes":null},{"id":29484,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":29485,"menu_item_id":64,"quantity":3,"discount_percent":0,"notes":null},{"id":29486,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":29487,"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"id":29488,"menu_item_id":50,"quantity":10,"discount_percent":0,"notes":null},{"id":29489,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":29490,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":29491,"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":5,"discount_percent":0,"notes":null}]} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6204,"items_count":10} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29483,"menu_item_id":97,"quantity":2},{"id":29484,"menu_item_id":99,"quantity":1},{"id":29485,"menu_item_id":64,"quantity":3},{"id":29486,"menu_item_id":61,"quantity":2},{"id":29487,"menu_item_id":56,"quantity":3},{"id":29488,"menu_item_id":50,"quantity":10},{"id":29489,"menu_item_id":396,"quantity":5},{"id":29490,"menu_item_id":5,"quantity":2},{"id":29491,"menu_item_id":3,"quantity":2},{"id":null,"menu_item_id":2,"quantity":5}]} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6204,"has_item_changes":true,"old_items_count":9,"new_items_count":10,"old_items_map_keys":["97|2|","99|1|","64|3|","61|2|","56|3|","50|10|","396|5|","5|2|","3|2|"],"new_items_map_keys":["97|2|","99|1|","64|3|","61|2|","56|3|","50|10|","396|5|","5|2|","3|2|","2|5|"]} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6204,"order_number":"AZS-230326-005"} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-005","replaced_order_id":6204} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6205,"items_count":10,"items":[{"menu_item_id":97,"quantity":2,"price":"2299.00"},{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":64,"quantity":3,"price":"999.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":3,"price":"199.00"},{"menu_item_id":50,"quantity":10,"price":"129.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"},{"menu_item_id":2,"quantity":5,"price":"130.00"}]} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6205,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6205}} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6205,"item_index":0,"menu_item_id":97} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6205,"item_index":1,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6205}} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6205,"item_index":1,"menu_item_id":99} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6205,"item_index":2,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":3,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":2997.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6205}} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6205,"item_index":2,"menu_item_id":64} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6205,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6205}} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6205,"item_index":3,"menu_item_id":61} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6205,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6205}} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6205,"item_index":4,"menu_item_id":56} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6205,"item_index":5,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":10,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":1290.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6205}} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6205,"item_index":5,"menu_item_id":50} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6205,"item_index":6,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6205}} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6205,"item_index":6,"menu_item_id":396} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6205,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6205}} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6205,"item_index":7,"menu_item_id":5} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6205,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6205}} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6205,"item_index":8,"menu_item_id":3} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6205,"item_index":9,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":5,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":650.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6205}} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6205,"item_index":9,"menu_item_id":2} 
[2026-03-23 15:26:28] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6204,"new_order_id":6205,"order_number":"AZS-230326-005"} 
[2026-03-23 15:28:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6202,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":29472},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":29473},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":29474},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29475},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29476},{"menu_item_id":29,"quantity":4,"price":250,"discount_percent":0,"notes":null,"id":29477}],"validated_items":[{"id":29472,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":29473,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":29474,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":29475,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29476,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29477,"menu_item_id":29,"quantity":4,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-23 15:28:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6202,"items_count":6} 
[2026-03-23 15:28:59] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29472,"menu_item_id":95,"quantity":1},{"id":29473,"menu_item_id":65,"quantity":1},{"id":29474,"menu_item_id":396,"quantity":4},{"id":29475,"menu_item_id":61,"quantity":1},{"id":29476,"menu_item_id":56,"quantity":1},{"id":29477,"menu_item_id":29,"quantity":4}]} 
[2026-03-23 15:28:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6202,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["95|1|","65|1|","396|4|","61|1|","56|1|","29|4|"],"new_items_map_keys":["95|1|","65|1|","396|4|","61|1|","56|1|","29|4|"]} 
[2026-03-23 15:28:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6202,"order_number":"AZS-230326-003"} 
[2026-03-23 15:28:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6202,"order_number":"AZS-230326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 15:28:59"} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6205,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":2,"discount_percent":0,"notes":null,"id":29492},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":29493},{"menu_item_id":64,"quantity":3,"discount_percent":0,"notes":null,"id":29494},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":29495},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":29496},{"menu_item_id":50,"quantity":13,"discount_percent":0,"notes":null,"id":29497},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":29498},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":29499},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":29500},{"menu_item_id":2,"quantity":5,"discount_percent":0,"notes":null,"id":29501}],"validated_items":[{"id":29492,"menu_item_id":97,"quantity":2,"discount_percent":0,"notes":null},{"id":29493,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":29494,"menu_item_id":64,"quantity":3,"discount_percent":0,"notes":null},{"id":29495,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":29496,"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"id":29497,"menu_item_id":50,"quantity":13,"discount_percent":0,"notes":null},{"id":29498,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":29499,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":29500,"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null},{"id":29501,"menu_item_id":2,"quantity":5,"discount_percent":0,"notes":null}]} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6205,"items_count":10} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29492,"menu_item_id":97,"quantity":2},{"id":29493,"menu_item_id":99,"quantity":1},{"id":29494,"menu_item_id":64,"quantity":3},{"id":29495,"menu_item_id":61,"quantity":2},{"id":29496,"menu_item_id":56,"quantity":3},{"id":29497,"menu_item_id":50,"quantity":13},{"id":29498,"menu_item_id":396,"quantity":5},{"id":29499,"menu_item_id":5,"quantity":2},{"id":29500,"menu_item_id":3,"quantity":2},{"id":29501,"menu_item_id":2,"quantity":5}]} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6205,"has_item_changes":true,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["97|2|","99|1|","64|3|","61|2|","56|3|","50|10|","396|5|","5|2|","3|2|","2|5|"],"new_items_map_keys":["97|2|","99|1|","64|3|","61|2|","56|3|","50|13|","396|5|","5|2|","3|2|","2|5|"]} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6205,"order_number":"AZS-230326-005"} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-005","replaced_order_id":6205} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6206,"items_count":10,"items":[{"menu_item_id":97,"quantity":2,"price":"2299.00"},{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":64,"quantity":3,"price":"999.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":3,"price":"199.00"},{"menu_item_id":50,"quantity":13,"price":"129.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"},{"menu_item_id":2,"quantity":5,"price":"130.00"}]} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6206,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6206}} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6206,"item_index":0,"menu_item_id":97} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6206,"item_index":1,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6206}} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6206,"item_index":1,"menu_item_id":99} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6206,"item_index":2,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":3,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":2997.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6206}} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6206,"item_index":2,"menu_item_id":64} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6206,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6206}} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6206,"item_index":3,"menu_item_id":61} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6206,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6206}} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6206,"item_index":4,"menu_item_id":56} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6206,"item_index":5,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":13,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":1677.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6206}} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6206,"item_index":5,"menu_item_id":50} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6206,"item_index":6,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6206}} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6206,"item_index":6,"menu_item_id":396} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6206,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6206}} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6206,"item_index":7,"menu_item_id":5} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6206,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6206}} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6206,"item_index":8,"menu_item_id":3} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6206,"item_index":9,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":5,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":650.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6206}} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6206,"item_index":9,"menu_item_id":2} 
[2026-03-23 15:29:27] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6205,"new_order_id":6206,"order_number":"AZS-230326-005"} 
[2026-03-23 15:29:56] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6202,"order_number":"AZS-230326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 15:29:56"} 
[2026-03-23 15:29:56] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6202,"order_number":"AZS-230326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 15:29:56"} 
[2026-03-23 15:29:56] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6202,"order_number":"AZS-230326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 15:29:56"} 
[2026-03-23 15:29:56] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6202,"order_number":"AZS-230326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 15:29:56"} 
[2026-03-23 15:29:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6202,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":29472},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":29473},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":29474},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29475},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29476},{"menu_item_id":29,"quantity":4,"price":250,"discount_percent":0,"notes":null,"id":29477}],"validated_items":[{"id":29472,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":29473,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":29474,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":29475,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29476,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29477,"menu_item_id":29,"quantity":4,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-23 15:29:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6202,"items_count":6} 
[2026-03-23 15:29:56] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29472,"menu_item_id":95,"quantity":1},{"id":29473,"menu_item_id":65,"quantity":1},{"id":29474,"menu_item_id":396,"quantity":4},{"id":29475,"menu_item_id":61,"quantity":1},{"id":29476,"menu_item_id":56,"quantity":1},{"id":29477,"menu_item_id":29,"quantity":4}]} 
[2026-03-23 15:29:56] local.INFO: PosOrderController::update - Item changes check {"order_id":6202,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["95|1|","65|1|","396|4|","61|1|","56|1|","29|4|"],"new_items_map_keys":["95|1|","65|1|","396|4|","61|1|","56|1|","29|4|"]} 
[2026-03-23 15:29:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6202,"order_number":"AZS-230326-003"} 
[2026-03-23 15:29:56] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6202,"order_number":"AZS-230326-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 15:29:56","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 15:29:56"} 
[2026-03-23 15:29:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6202,"order_number":"AZS-230326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 15:29:56"} 
[2026-03-23 15:29:56] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6202,"order_number":"AZS-230326-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 15:29:56","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5500.00","database_verification_match":true,"timestamp":"2026-03-23 15:29:56"} 
[2026-03-23 15:30:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6206,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":29502},{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29503},{"menu_item_id":64,"quantity":3,"price":999,"discount_percent":0,"notes":null,"id":29504},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29505},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":29506},{"menu_item_id":50,"quantity":13,"price":129,"discount_percent":0,"notes":null,"id":29507},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":29508},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":29509},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":29510},{"menu_item_id":2,"quantity":5,"price":130,"discount_percent":0,"notes":null,"id":29511}],"validated_items":[{"id":29502,"menu_item_id":97,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"id":29503,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":29504,"menu_item_id":64,"quantity":3,"price":999,"discount_percent":0,"notes":null},{"id":29505,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29506,"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":29507,"menu_item_id":50,"quantity":13,"price":129,"discount_percent":0,"notes":null},{"id":29508,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":29509,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":29510,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null},{"id":29511,"menu_item_id":2,"quantity":5,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-23 15:30:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6206,"items_count":10} 
[2026-03-23 15:30:14] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29502,"menu_item_id":97,"quantity":2},{"id":29503,"menu_item_id":99,"quantity":1},{"id":29504,"menu_item_id":64,"quantity":3},{"id":29505,"menu_item_id":61,"quantity":2},{"id":29506,"menu_item_id":56,"quantity":3},{"id":29507,"menu_item_id":50,"quantity":13},{"id":29508,"menu_item_id":396,"quantity":5},{"id":29509,"menu_item_id":5,"quantity":2},{"id":29510,"menu_item_id":3,"quantity":2},{"id":29511,"menu_item_id":2,"quantity":5}]} 
[2026-03-23 15:30:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6206,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["97|2|","99|1|","64|3|","61|2|","56|3|","50|13|","396|5|","5|2|","3|2|","2|5|"],"new_items_map_keys":["97|2|","99|1|","64|3|","61|2|","56|3|","50|13|","396|5|","5|2|","3|2|","2|5|"]} 
[2026-03-23 15:30:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6206,"order_number":"AZS-230326-005"} 
[2026-03-23 15:30:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6206,"order_number":"AZS-230326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 15:30:14"} 
[2026-03-23 15:34:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T03:34:09.728Z","date_to":"2026-03-23T15:34:09.728Z","per_page":"100"} 
[2026-03-23 15:34:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T03:34:09.757Z","date_to":"2026-03-23T15:34:09.757Z","per_page":"100"} 
[2026-03-23 15:34:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","paid","paid","pending","pending"],"deleted_count":0,"paid_count":2,"unpaid_count":3,"unique_order_numbers":5} 
[2026-03-23 15:34:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","paid","paid","pending","pending"],"deleted_count":0,"paid_count":2,"unpaid_count":3,"unique_order_numbers":5} 
[2026-03-23 15:34:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T03:34:09.728Z","date_to":"2026-03-23T15:34:09.728Z","per_page":"100"} 
[2026-03-23 15:34:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","paid","paid","pending","pending"],"deleted_count":0,"paid_count":2,"unpaid_count":3,"unique_order_numbers":5} 
[2026-03-23 15:34:34] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6199,"order_number":"AZS-220326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":600,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 15:34:34"} 
[2026-03-23 15:34:34] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6199,"order_number":"AZS-220326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 15:34:34"} 
[2026-03-23 15:34:34] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6199,"order_number":"AZS-220326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 15:34:34"} 
[2026-03-23 15:34:34] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6199,"order_number":"AZS-220326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 15:34:34"} 
[2026-03-23 15:34:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6199,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null,"id":29452},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29453},{"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29454},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":29455}],"validated_items":[{"id":29452,"menu_item_id":49,"quantity":1,"price":70,"discount_percent":0,"notes":null},{"id":29453,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29454,"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29455,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-23 15:34:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6199,"items_count":4} 
[2026-03-23 15:34:34] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29452,"menu_item_id":49,"quantity":1},{"id":29453,"menu_item_id":6,"quantity":1},{"id":29454,"menu_item_id":51,"quantity":1},{"id":29455,"menu_item_id":50,"quantity":1}]} 
[2026-03-23 15:34:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6199,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["49|1|","6|1|","51|1|","50|1|"],"new_items_map_keys":["49|1|","6|1|","51|1|","50|1|"]} 
[2026-03-23 15:34:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6199,"order_number":"AZS-220326-002"} 
[2026-03-23 15:34:34] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6199,"order_number":"AZS-220326-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":600,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 15:34:34","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 15:34:34"} 
[2026-03-23 15:34:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6199,"order_number":"AZS-220326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 15:34:34"} 
[2026-03-23 15:34:34] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6199,"order_number":"AZS-220326-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"600.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 15:34:34","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"600.00","database_verification_match":true,"timestamp":"2026-03-23 15:34:34"} 
[2026-03-23 15:34:47] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6197,"order_number":"AZS-220326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":180,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 15:34:47"} 
[2026-03-23 15:34:47] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6197,"order_number":"AZS-220326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":180,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 15:34:47"} 
[2026-03-23 15:34:47] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6197,"order_number":"AZS-220326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":180,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 15:34:47"} 
[2026-03-23 15:34:47] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6197,"order_number":"AZS-220326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":180,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 15:34:47"} 
[2026-03-23 15:34:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6197,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":53,"quantity":4,"price":45,"discount_percent":0,"notes":null,"id":29451}],"validated_items":[{"id":29451,"menu_item_id":53,"quantity":4,"price":45,"discount_percent":0,"notes":null}]} 
[2026-03-23 15:34:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6197,"items_count":1} 
[2026-03-23 15:34:47] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29451,"menu_item_id":53,"quantity":4}]} 
[2026-03-23 15:34:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6197,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["53|4|"],"new_items_map_keys":["53|4|"]} 
[2026-03-23 15:34:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6197,"order_number":"AZS-220326-001"} 
[2026-03-23 15:34:47] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6197,"order_number":"AZS-220326-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":180,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 15:34:47","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 15:34:47"} 
[2026-03-23 15:34:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6197,"order_number":"AZS-220326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 15:34:47"} 
[2026-03-23 15:34:47] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6197,"order_number":"AZS-220326-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"180.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 15:34:47","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":180,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"180.00","database_verification_match":true,"timestamp":"2026-03-23 15:34:47"} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6200,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null,"id":29456},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":29457},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":29458},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":29459},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":29460},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":29461},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29462},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29463},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29464},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29456,"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null},{"id":29457,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":29458,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":29459,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"id":29460,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":29461,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":29462,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29463,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29464,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6200,"items_count":10} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29456,"menu_item_id":138,"quantity":1},{"id":29457,"menu_item_id":96,"quantity":1},{"id":29458,"menu_item_id":64,"quantity":1},{"id":29459,"menu_item_id":63,"quantity":1},{"id":29460,"menu_item_id":396,"quantity":2},{"id":29461,"menu_item_id":50,"quantity":2},{"id":29462,"menu_item_id":61,"quantity":1},{"id":29463,"menu_item_id":56,"quantity":1},{"id":29464,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":29,"quantity":1}]} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6200,"has_item_changes":true,"old_items_count":9,"new_items_count":10,"old_items_map_keys":["138|1|","96|1|","64|1|","63|1|","396|2|","50|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["138|1|","96|1|","64|1|","63|1|","396|2|","50|2|","61|1|","56|1|","5|1|","29|1|"]} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6200,"order_number":"AZS-230326-001"} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-001","replaced_order_id":6200} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6207,"items_count":10,"items":[{"menu_item_id":138,"quantity":1,"price":"2199.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":63,"quantity":1,"price":"1099.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"}]} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6207,"item_index":0,"item_data":{"menu_item_id":138,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Large","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6207}} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6207,"item_index":0,"menu_item_id":138} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6207,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6207}} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6207,"item_index":1,"menu_item_id":96} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6207,"item_index":2,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6207}} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6207,"item_index":2,"menu_item_id":64} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6207,"item_index":3,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6207}} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6207,"item_index":3,"menu_item_id":63} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6207,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6207}} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6207,"item_index":4,"menu_item_id":396} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6207,"item_index":5,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6207}} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6207,"item_index":5,"menu_item_id":50} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6207,"item_index":6,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6207}} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6207,"item_index":6,"menu_item_id":61} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6207,"item_index":7,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6207}} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6207,"item_index":7,"menu_item_id":56} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6207,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6207}} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6207,"item_index":8,"menu_item_id":5} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6207,"item_index":9,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6207}} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6207,"item_index":9,"menu_item_id":29} 
[2026-03-23 15:44:27] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6200,"new_order_id":6207,"order_number":"AZS-230326-001"} 
[2026-03-23 15:44:46] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6206,"order_number":"AZS-230326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":15000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 15:44:46"} 
[2026-03-23 15:44:46] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6206,"order_number":"AZS-230326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":15000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 15:44:46"} 
[2026-03-23 15:44:46] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6206,"order_number":"AZS-230326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":15000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 15:44:46"} 
[2026-03-23 15:44:46] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6206,"order_number":"AZS-230326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":15000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 15:44:46"} 
[2026-03-23 15:44:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6206,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":29502},{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29503},{"menu_item_id":64,"quantity":3,"price":999,"discount_percent":0,"notes":null,"id":29504},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29505},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":29506},{"menu_item_id":50,"quantity":13,"price":129,"discount_percent":0,"notes":null,"id":29507},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":29508},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":29509},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":29510},{"menu_item_id":2,"quantity":5,"price":130,"discount_percent":0,"notes":null,"id":29511}],"validated_items":[{"id":29502,"menu_item_id":97,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"id":29503,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":29504,"menu_item_id":64,"quantity":3,"price":999,"discount_percent":0,"notes":null},{"id":29505,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29506,"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":29507,"menu_item_id":50,"quantity":13,"price":129,"discount_percent":0,"notes":null},{"id":29508,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":29509,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":29510,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null},{"id":29511,"menu_item_id":2,"quantity":5,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-23 15:44:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6206,"items_count":10} 
[2026-03-23 15:44:46] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29502,"menu_item_id":97,"quantity":2},{"id":29503,"menu_item_id":99,"quantity":1},{"id":29504,"menu_item_id":64,"quantity":3},{"id":29505,"menu_item_id":61,"quantity":2},{"id":29506,"menu_item_id":56,"quantity":3},{"id":29507,"menu_item_id":50,"quantity":13},{"id":29508,"menu_item_id":396,"quantity":5},{"id":29509,"menu_item_id":5,"quantity":2},{"id":29510,"menu_item_id":3,"quantity":2},{"id":29511,"menu_item_id":2,"quantity":5}]} 
[2026-03-23 15:44:46] local.INFO: PosOrderController::update - Item changes check {"order_id":6206,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["97|2|","99|1|","64|3|","61|2|","56|3|","50|13|","396|5|","5|2|","3|2|","2|5|"],"new_items_map_keys":["97|2|","99|1|","64|3|","61|2|","56|3|","50|13|","396|5|","5|2|","3|2|","2|5|"]} 
[2026-03-23 15:44:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6206,"order_number":"AZS-230326-005"} 
[2026-03-23 15:44:46] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6206,"order_number":"AZS-230326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":15000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 15:44:46","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 15:44:46"} 
[2026-03-23 15:44:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6206,"order_number":"AZS-230326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 15:44:46"} 
[2026-03-23 15:44:46] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6206,"order_number":"AZS-230326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"15000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 15:44:46","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":15000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"15000.00","database_verification_match":true,"timestamp":"2026-03-23 15:44:46"} 
[2026-03-23 15:52:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6201,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null,"id":29465},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":29466},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null,"id":29467},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":29468},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":29469},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":29470},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29471},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":29465,"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null},{"id":29466,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":29467,"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null},{"id":29468,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":29469,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":29470,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":29471,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-23 15:52:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6201,"items_count":8} 
[2026-03-23 15:52:51] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29465,"menu_item_id":114,"quantity":2},{"id":29466,"menu_item_id":95,"quantity":1},{"id":29467,"menu_item_id":50,"quantity":4},{"id":29468,"menu_item_id":396,"quantity":4},{"id":29469,"menu_item_id":61,"quantity":2},{"id":29470,"menu_item_id":56,"quantity":2},{"id":29471,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-03-23 15:52:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6201,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["114|2|","95|1|","50|4|","396|4|","61|2|","56|2|","5|1|"],"new_items_map_keys":["114|2|","95|1|","50|4|","396|4|","61|2|","56|2|","5|1|","3|2|"]} 
[2026-03-23 15:52:51] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6201,"order_number":"AZS-230326-002"} 
[2026-03-23 15:52:51] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-002","replaced_order_id":6201} 
[2026-03-23 15:52:51] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6208,"items_count":8,"items":[{"menu_item_id":114,"quantity":2,"price":"2299.00"},{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":50,"quantity":4,"price":"129.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-03-23 15:52:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6208,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6208}} 
[2026-03-23 15:52:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6208,"item_index":0,"menu_item_id":114} 
[2026-03-23 15:52:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6208,"item_index":1,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6208}} 
[2026-03-23 15:52:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6208,"item_index":1,"menu_item_id":95} 
[2026-03-23 15:52:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6208,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6208}} 
[2026-03-23 15:52:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6208,"item_index":2,"menu_item_id":50} 
[2026-03-23 15:52:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6208,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6208}} 
[2026-03-23 15:52:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6208,"item_index":3,"menu_item_id":396} 
[2026-03-23 15:52:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6208,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6208}} 
[2026-03-23 15:52:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6208,"item_index":4,"menu_item_id":61} 
[2026-03-23 15:52:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6208,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6208}} 
[2026-03-23 15:52:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6208,"item_index":5,"menu_item_id":56} 
[2026-03-23 15:52:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6208,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6208}} 
[2026-03-23 15:52:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6208,"item_index":6,"menu_item_id":5} 
[2026-03-23 15:52:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6208,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6208}} 
[2026-03-23 15:52:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6208,"item_index":7,"menu_item_id":3} 
[2026-03-23 15:52:51] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6201,"new_order_id":6208,"order_number":"AZS-230326-002"} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":6207,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null,"id":29512},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":29513},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":29514},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":29515},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":29516},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":29517},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29518},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29519},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29520},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null,"id":29521},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29512,"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null},{"id":29513,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":29514,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":29515,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"id":29516,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":29517,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":29518,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29519,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29520,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":29521,"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6207,"items_count":11} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29512,"menu_item_id":138,"quantity":1},{"id":29513,"menu_item_id":96,"quantity":1},{"id":29514,"menu_item_id":64,"quantity":1},{"id":29515,"menu_item_id":63,"quantity":1},{"id":29516,"menu_item_id":396,"quantity":2},{"id":29517,"menu_item_id":50,"quantity":2},{"id":29518,"menu_item_id":61,"quantity":1},{"id":29519,"menu_item_id":56,"quantity":1},{"id":29520,"menu_item_id":5,"quantity":1},{"id":29521,"menu_item_id":29,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Item changes check {"order_id":6207,"has_item_changes":true,"old_items_count":10,"new_items_count":11,"old_items_map_keys":["138|1|","96|1|","64|1|","63|1|","396|2|","50|2|","61|1|","56|1|","5|1|","29|1|"],"new_items_map_keys":["138|1|","96|1|","64|1|","63|1|","396|2|","50|2|","61|1|","56|1|","5|1|","29|1|","2|1|"]} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6207,"order_number":"AZS-230326-001"} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-001","replaced_order_id":6207} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6209,"items_count":11,"items":[{"menu_item_id":138,"quantity":1,"price":"2199.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":63,"quantity":1,"price":"1099.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6209,"item_index":0,"item_data":{"menu_item_id":138,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Large","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6209}} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6209,"item_index":0,"menu_item_id":138} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6209,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6209}} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6209,"item_index":1,"menu_item_id":96} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6209,"item_index":2,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6209}} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6209,"item_index":2,"menu_item_id":64} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6209,"item_index":3,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6209}} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6209,"item_index":3,"menu_item_id":63} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6209,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6209}} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6209,"item_index":4,"menu_item_id":396} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6209,"item_index":5,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6209}} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6209,"item_index":5,"menu_item_id":50} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6209,"item_index":6,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6209}} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6209,"item_index":6,"menu_item_id":61} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6209,"item_index":7,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6209}} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6209,"item_index":7,"menu_item_id":56} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6209,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6209}} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6209,"item_index":8,"menu_item_id":5} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6209,"item_index":9,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6209}} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6209,"item_index":9,"menu_item_id":29} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6209,"item_index":10,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6209}} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6209,"item_index":10,"menu_item_id":2} 
[2026-03-23 15:53:02] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6207,"new_order_id":6209,"order_number":"AZS-230326-001"} 
[2026-03-23 16:12:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6208,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":29522},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":29523},{"menu_item_id":50,"quantity":9,"price":129,"discount_percent":0,"notes":null,"id":29524},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":29525},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29526},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29527},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29528},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":29529}],"validated_items":[{"id":29522,"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"id":29523,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":29524,"menu_item_id":50,"quantity":9,"price":129,"discount_percent":0,"notes":null},{"id":29525,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":29526,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29527,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29528,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29529,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 16:12:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6208,"items_count":8} 
[2026-03-23 16:12:18] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29522,"menu_item_id":114,"quantity":2},{"id":29523,"menu_item_id":95,"quantity":1},{"id":29524,"menu_item_id":50,"quantity":9},{"id":29525,"menu_item_id":396,"quantity":4},{"id":29526,"menu_item_id":61,"quantity":2},{"id":29527,"menu_item_id":56,"quantity":2},{"id":29528,"menu_item_id":5,"quantity":1},{"id":29529,"menu_item_id":3,"quantity":2}]} 
[2026-03-23 16:12:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6208,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|2|","95|1|","50|4|","396|4|","61|2|","56|2|","5|1|","3|2|"],"new_items_map_keys":["114|2|","95|1|","50|9|","396|4|","61|2|","56|2|","5|1|","3|2|"]} 
[2026-03-23 16:12:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6208,"order_number":"AZS-230326-002"} 
[2026-03-23 16:12:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-002","replaced_order_id":6208} 
[2026-03-23 16:12:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6210,"items_count":8,"items":[{"menu_item_id":114,"quantity":2,"price":2299.0},{"menu_item_id":95,"quantity":1,"price":1999.0},{"menu_item_id":50,"quantity":9,"price":129.0},{"menu_item_id":396,"quantity":4,"price":99.0},{"menu_item_id":61,"quantity":2,"price":199.0},{"menu_item_id":56,"quantity":2,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":2,"price":270.0}]} 
[2026-03-23 16:12:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6210,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6210}} 
[2026-03-23 16:12:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6210,"item_index":0,"menu_item_id":114} 
[2026-03-23 16:12:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6210,"item_index":1,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":1999.0,"discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6210}} 
[2026-03-23 16:12:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6210,"item_index":1,"menu_item_id":95} 
[2026-03-23 16:12:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6210,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":9,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":1161.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6210}} 
[2026-03-23 16:12:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6210,"item_index":2,"menu_item_id":50} 
[2026-03-23 16:12:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6210,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6210}} 
[2026-03-23 16:12:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6210,"item_index":3,"menu_item_id":396} 
[2026-03-23 16:12:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6210,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6210}} 
[2026-03-23 16:12:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6210,"item_index":4,"menu_item_id":61} 
[2026-03-23 16:12:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6210,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6210}} 
[2026-03-23 16:12:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6210,"item_index":5,"menu_item_id":56} 
[2026-03-23 16:12:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6210,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6210}} 
[2026-03-23 16:12:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6210,"item_index":6,"menu_item_id":5} 
[2026-03-23 16:12:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6210,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6210}} 
[2026-03-23 16:12:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6210,"item_index":7,"menu_item_id":3} 
[2026-03-23 16:12:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6208,"new_order_id":6210,"order_number":"AZS-230326-002"} 
[2026-03-23 16:12:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6210,"item_index":0,"item_id":29522} 
[2026-03-23 16:12:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6210,"item_index":1,"item_id":29523} 
[2026-03-23 16:12:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6210,"item_index":2,"item_id":29524} 
[2026-03-23 16:12:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6210,"item_index":3,"item_id":29525} 
[2026-03-23 16:12:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6210,"item_index":4,"item_id":29526} 
[2026-03-23 16:12:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6210,"item_index":5,"item_id":29527} 
[2026-03-23 16:12:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6210,"item_index":6,"item_id":29528} 
[2026-03-23 16:12:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6210,"item_index":7,"item_id":29529} 
[2026-03-23 16:12:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":8,"order_id":6210,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":29522},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":29523},{"menu_item_id":50,"quantity":9,"price":129,"discount_percent":0,"notes":null,"id":29524},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":29525},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29526},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29527},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29528},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":29529}],"validated_items":[{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":9,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 16:12:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6210,"items_count":8} 
[2026-03-23 16:12:23] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":8,"items_to_remove":[29541,29542,29543,29544,29545,29546,29547,29548],"items":[{"id":null,"menu_item_id":114,"quantity":2},{"id":null,"menu_item_id":95,"quantity":1},{"id":null,"menu_item_id":50,"quantity":9},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-03-23 16:12:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6210,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|2|","95|1|","50|9|","396|4|","61|2|","56|2|","5|1|","3|2|"],"new_items_map_keys":["114|2|","95|1|","50|9|","396|4|","61|2|","56|2|","5|1|","3|2|"]} 
[2026-03-23 16:12:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6210,"order_number":"AZS-230326-002"} 
[2026-03-23 16:12:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6210,"order_number":"AZS-230326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 16:12:23"} 
[2026-03-23 16:24:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":6209,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":29530},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29531},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":29532},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":29533},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29534},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":29535},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29536},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29537},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29538},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":29539},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":29540}],"validated_items":[{"id":29530,"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":29531,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29532,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":29533,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":29534,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29535,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":29536,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29537,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29538,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29539,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":29540,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-23 16:24:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6209,"items_count":11} 
[2026-03-23 16:24:59] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29530,"menu_item_id":138,"quantity":1},{"id":29531,"menu_item_id":96,"quantity":1},{"id":29532,"menu_item_id":64,"quantity":1},{"id":29533,"menu_item_id":63,"quantity":1},{"id":29534,"menu_item_id":396,"quantity":2},{"id":29535,"menu_item_id":50,"quantity":2},{"id":29536,"menu_item_id":61,"quantity":1},{"id":29537,"menu_item_id":56,"quantity":1},{"id":29538,"menu_item_id":5,"quantity":1},{"id":29539,"menu_item_id":29,"quantity":1},{"id":29540,"menu_item_id":2,"quantity":1}]} 
[2026-03-23 16:24:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6209,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["138|1|","96|1|","64|1|","63|1|","396|2|","50|2|","61|1|","56|1|","5|1|","29|1|","2|1|"],"new_items_map_keys":["138|1|","96|1|","64|1|","63|1|","396|2|","50|2|","61|1|","56|1|","5|1|","29|1|","2|1|"]} 
[2026-03-23 16:24:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6209,"order_number":"AZS-230326-001"} 
[2026-03-23 16:24:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6209,"order_number":"AZS-230326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 16:24:59"} 
[2026-03-23 16:33:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":6209,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":29530},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29531},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":29532},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":29533},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29534},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":29535},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29536},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29537},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29538},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":29539},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":29540}],"validated_items":[{"id":29530,"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":29531,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29532,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":29533,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":29534,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29535,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":29536,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29537,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29538,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29539,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":29540,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-23 16:33:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6209,"items_count":11} 
[2026-03-23 16:33:59] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29530,"menu_item_id":138,"quantity":1},{"id":29531,"menu_item_id":96,"quantity":1},{"id":29532,"menu_item_id":64,"quantity":1},{"id":29533,"menu_item_id":63,"quantity":1},{"id":29534,"menu_item_id":396,"quantity":2},{"id":29535,"menu_item_id":50,"quantity":2},{"id":29536,"menu_item_id":61,"quantity":1},{"id":29537,"menu_item_id":56,"quantity":1},{"id":29538,"menu_item_id":5,"quantity":1},{"id":29539,"menu_item_id":29,"quantity":1},{"id":29540,"menu_item_id":2,"quantity":1}]} 
[2026-03-23 16:33:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6209,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["138|1|","96|1|","64|1|","63|1|","396|2|","50|2|","61|1|","56|1|","5|1|","29|1|","2|1|"],"new_items_map_keys":["138|1|","96|1|","64|1|","63|1|","396|2|","50|2|","61|1|","56|1|","5|1|","29|1|","2|1|"]} 
[2026-03-23 16:33:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6209,"order_number":"AZS-230326-001"} 
[2026-03-23 16:33:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6209,"order_number":"AZS-230326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 16:33:59"} 
[2026-03-23 16:34:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T04:34:41.403Z","date_to":"2026-03-23T16:34:41.403Z","per_page":"100"} 
[2026-03-23 16:34:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T04:34:41.421Z","date_to":"2026-03-23T16:34:41.421Z","per_page":"100"} 
[2026-03-23 16:34:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","paid","paid","paid","pending","pending"],"deleted_count":0,"paid_count":3,"unpaid_count":4,"unique_order_numbers":7} 
[2026-03-23 16:34:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","paid","paid","paid","pending","pending"],"deleted_count":0,"paid_count":3,"unpaid_count":4,"unique_order_numbers":7} 
[2026-03-23 16:34:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T04:34:41.403Z","date_to":"2026-03-23T16:34:41.403Z","per_page":"100"} 
[2026-03-23 16:34:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","paid","paid","paid","pending","pending"],"deleted_count":0,"paid_count":3,"unpaid_count":4,"unique_order_numbers":7} 
[2026-03-23 16:35:53] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-23 16:42:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6211,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":29549},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":29550},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null,"id":29551},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29552},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":29553}],"validated_items":[{"id":29549,"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"id":29550,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":29551,"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null},{"id":29552,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29553,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-23 16:42:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6211,"items_count":5} 
[2026-03-23 16:42:27] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29549,"menu_item_id":114,"quantity":2},{"id":29550,"menu_item_id":105,"quantity":1},{"id":29551,"menu_item_id":396,"quantity":7},{"id":29552,"menu_item_id":61,"quantity":2},{"id":29553,"menu_item_id":5,"quantity":2}]} 
[2026-03-23 16:42:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6211,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|2|","105|1|","396|7|","61|2|","5|2|"],"new_items_map_keys":["114|2|","105|1|","396|7|","61|2|","5|2|"]} 
[2026-03-23 16:42:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6211,"order_number":"AZS-230326-006"} 
[2026-03-23 16:42:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6211,"order_number":"AZS-230326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 16:42:27"} 
[2026-03-23 16:42:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6212,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29554},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29555},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29556},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":29557},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29558},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29559},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29560}],"validated_items":[{"id":29554,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29555,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29556,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29557,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":29558,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29559,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29560,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-23 16:42:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6212,"items_count":7} 
[2026-03-23 16:42:38] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29554,"menu_item_id":98,"quantity":1},{"id":29555,"menu_item_id":96,"quantity":1},{"id":29556,"menu_item_id":396,"quantity":2},{"id":29557,"menu_item_id":50,"quantity":2},{"id":29558,"menu_item_id":61,"quantity":1},{"id":29559,"menu_item_id":56,"quantity":1},{"id":29560,"menu_item_id":5,"quantity":1}]} 
[2026-03-23 16:42:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6212,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["98|1|","96|1|","396|2|","50|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["98|1|","96|1|","396|2|","50|2|","61|1|","56|1|","5|1|"]} 
[2026-03-23 16:42:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6212,"order_number":"AZS-230326-007"} 
[2026-03-23 16:42:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6212,"order_number":"AZS-230326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 16:42:38"} 
[2026-03-23 16:43:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6210,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":29541},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":29542},{"menu_item_id":50,"quantity":9,"price":129,"discount_percent":0,"notes":null,"id":29543},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":29544},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29545},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29546},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29547},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":29548}],"validated_items":[{"id":29541,"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"id":29542,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":29543,"menu_item_id":50,"quantity":9,"price":129,"discount_percent":0,"notes":null},{"id":29544,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":29545,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29546,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29547,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29548,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 16:43:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6210,"items_count":8} 
[2026-03-23 16:43:34] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29541,"menu_item_id":114,"quantity":2},{"id":29542,"menu_item_id":95,"quantity":1},{"id":29543,"menu_item_id":50,"quantity":9},{"id":29544,"menu_item_id":396,"quantity":4},{"id":29545,"menu_item_id":61,"quantity":2},{"id":29546,"menu_item_id":56,"quantity":2},{"id":29547,"menu_item_id":5,"quantity":1},{"id":29548,"menu_item_id":3,"quantity":2}]} 
[2026-03-23 16:43:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6210,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|2|","95|1|","50|9|","396|4|","61|2|","56|2|","5|1|","3|2|"],"new_items_map_keys":["114|2|","95|1|","50|9|","396|4|","61|2|","56|2|","5|1|","3|2|"]} 
[2026-03-23 16:43:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6210,"order_number":"AZS-230326-002"} 
[2026-03-23 16:43:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6210,"order_number":"AZS-230326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 16:43:34"} 
[2026-03-23 16:43:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6210,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":29541},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":29542},{"menu_item_id":50,"quantity":9,"price":129,"discount_percent":0,"notes":null,"id":29543},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":29544},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29545},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29546},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29547},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":29548}],"validated_items":[{"id":29541,"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"id":29542,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":29543,"menu_item_id":50,"quantity":9,"price":129,"discount_percent":0,"notes":null},{"id":29544,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":29545,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29546,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29547,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29548,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 16:43:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6210,"items_count":8} 
[2026-03-23 16:43:42] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29541,"menu_item_id":114,"quantity":2},{"id":29542,"menu_item_id":95,"quantity":1},{"id":29543,"menu_item_id":50,"quantity":9},{"id":29544,"menu_item_id":396,"quantity":4},{"id":29545,"menu_item_id":61,"quantity":2},{"id":29546,"menu_item_id":56,"quantity":2},{"id":29547,"menu_item_id":5,"quantity":1},{"id":29548,"menu_item_id":3,"quantity":2}]} 
[2026-03-23 16:43:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6210,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|2|","95|1|","50|9|","396|4|","61|2|","56|2|","5|1|","3|2|"],"new_items_map_keys":["114|2|","95|1|","50|9|","396|4|","61|2|","56|2|","5|1|","3|2|"]} 
[2026-03-23 16:43:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6210,"order_number":"AZS-230326-002"} 
[2026-03-23 16:43:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6210,"order_number":"AZS-230326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 16:43:42"} 
[2026-03-23 16:44:02] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6210,"order_number":"AZS-230326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 16:44:02"} 
[2026-03-23 16:44:02] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6210,"order_number":"AZS-230326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 16:44:02"} 
[2026-03-23 16:44:02] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6210,"order_number":"AZS-230326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 16:44:02"} 
[2026-03-23 16:44:02] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6210,"order_number":"AZS-230326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 16:44:02"} 
[2026-03-23 16:44:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6210,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":29541},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":29542},{"menu_item_id":50,"quantity":9,"price":129,"discount_percent":0,"notes":null,"id":29543},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":29544},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29545},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29546},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29547},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":29548}],"validated_items":[{"id":29541,"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"id":29542,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":29543,"menu_item_id":50,"quantity":9,"price":129,"discount_percent":0,"notes":null},{"id":29544,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":29545,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29546,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29547,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29548,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 16:44:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6210,"items_count":8} 
[2026-03-23 16:44:02] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29541,"menu_item_id":114,"quantity":2},{"id":29542,"menu_item_id":95,"quantity":1},{"id":29543,"menu_item_id":50,"quantity":9},{"id":29544,"menu_item_id":396,"quantity":4},{"id":29545,"menu_item_id":61,"quantity":1},{"id":29546,"menu_item_id":56,"quantity":1},{"id":29547,"menu_item_id":5,"quantity":1},{"id":29548,"menu_item_id":3,"quantity":2}]} 
[2026-03-23 16:44:02] local.INFO: PosOrderController::update - Item changes check {"order_id":6210,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|2|","95|1|","50|9|","396|4|","61|2|","56|2|","5|1|","3|2|"],"new_items_map_keys":["114|2|","95|1|","50|9|","396|4|","61|1|","56|1|","5|1|","3|2|"]} 
[2026-03-23 16:44:02] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6210,"order_number":"AZS-230326-002","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":10000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-23 16:44:02","original_payment_amount":"0.00","grand_total":9262.0,"timestamp":"2026-03-23 16:44:02"} 
[2026-03-23 16:44:02] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6210,"order_number":"AZS-230326-002"} 
[2026-03-23 16:44:02] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-002","replaced_order_id":6210} 
[2026-03-23 16:44:02] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6210,"new_order_id":6217,"order_number":"AZS-230326-002","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"10000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-23 16:44:02","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-23 16:44:02"} 
[2026-03-23 16:44:02] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6217,"items_count":8,"items":[{"menu_item_id":114,"quantity":2,"price":2299.0},{"menu_item_id":95,"quantity":1,"price":1999.0},{"menu_item_id":50,"quantity":9,"price":129.0},{"menu_item_id":396,"quantity":4,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":2,"price":270.0}]} 
[2026-03-23 16:44:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6217,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6217}} 
[2026-03-23 16:44:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6217,"item_index":0,"menu_item_id":114} 
[2026-03-23 16:44:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6217,"item_index":1,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":1999.0,"discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6217}} 
[2026-03-23 16:44:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6217,"item_index":1,"menu_item_id":95} 
[2026-03-23 16:44:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6217,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":9,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":1161.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6217}} 
[2026-03-23 16:44:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6217,"item_index":2,"menu_item_id":50} 
[2026-03-23 16:44:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6217,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6217}} 
[2026-03-23 16:44:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6217,"item_index":3,"menu_item_id":396} 
[2026-03-23 16:44:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6217,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6217}} 
[2026-03-23 16:44:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6217,"item_index":4,"menu_item_id":61} 
[2026-03-23 16:44:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6217,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6217}} 
[2026-03-23 16:44:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6217,"item_index":5,"menu_item_id":56} 
[2026-03-23 16:44:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6217,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6217}} 
[2026-03-23 16:44:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6217,"item_index":6,"menu_item_id":5} 
[2026-03-23 16:44:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6217,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6217}} 
[2026-03-23 16:44:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6217,"item_index":7,"menu_item_id":3} 
[2026-03-23 16:44:02] local.ERROR: Error tracking recipe usage for order 6217: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6217, 114, 77, 1, 200, 0.00, Order #AZS-230326-002 - 2x Chicken Shinwari - Full, 2026-03-23 16:44:02, 2026-03-23 16:44:02))  
[2026-03-23 16:44:02] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6210,"new_order_id":6217,"order_number":"AZS-230326-002"} 
[2026-03-23 16:44:03] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6210,"new_order_id":6217,"order_number":"AZS-230326-002","route":"api/orders/6210"} 
[2026-03-23 16:48:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6214,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":29562},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":29563},{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":29564},{"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null,"id":29565},{"menu_item_id":52,"quantity":9,"discount_percent":0,"notes":null,"id":29566},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":29567},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29568},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29569}],"validated_items":[{"id":29562,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":29563,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":29564,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":29565,"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null},{"id":29566,"menu_item_id":52,"quantity":9,"discount_percent":0,"notes":null},{"id":29567,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":29568,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29569,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 16:48:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6214,"items_count":8} 
[2026-03-23 16:48:22] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29562,"menu_item_id":97,"quantity":1},{"id":29563,"menu_item_id":106,"quantity":1},{"id":29564,"menu_item_id":78,"quantity":1},{"id":29565,"menu_item_id":393,"quantity":1},{"id":29566,"menu_item_id":52,"quantity":9},{"id":29567,"menu_item_id":61,"quantity":2},{"id":29568,"menu_item_id":56,"quantity":1},{"id":29569,"menu_item_id":5,"quantity":1}]} 
[2026-03-23 16:48:22] local.INFO: PosOrderController::update - Item changes check {"order_id":6214,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["97|1|","106|1|","78|1|","393|1|","52|9|","61|2|","56|1|","5|1|"],"new_items_map_keys":["97|1|","106|1|","78|1|","393|1|","52|9|","61|2|","56|1|","5|1|"]} 
[2026-03-23 16:48:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6214,"order_number":"AZS-230326-009"} 
[2026-03-23 16:48:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6214,"order_number":"AZS-230326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-23 16:48:22"} 
[2026-03-23 16:54:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6211,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null,"id":29549},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":29550},{"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null,"id":29551},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":29552},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":29553}],"validated_items":[{"id":29549,"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null},{"id":29550,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":29551,"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null},{"id":29552,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":29553,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-23 16:54:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6211,"items_count":5} 
[2026-03-23 16:54:57] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29549,"menu_item_id":114,"quantity":2},{"id":29550,"menu_item_id":105,"quantity":1},{"id":29551,"menu_item_id":396,"quantity":7},{"id":29552,"menu_item_id":61,"quantity":2},{"id":29553,"menu_item_id":5,"quantity":2}]} 
[2026-03-23 16:54:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6211,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|2|","105|1|","396|7|","61|2|","5|2|"],"new_items_map_keys":["114|2|","105|1|","396|7|","61|2|","5|2|"]} 
[2026-03-23 16:54:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6211,"order_number":"AZS-230326-006"} 
[2026-03-23 16:54:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6211,"order_number":"AZS-230326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-23 16:54:57"} 
[2026-03-23 16:55:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6212,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":29554},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":29555},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":29556},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":29557},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29558},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29559},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29560}],"validated_items":[{"id":29554,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":29555,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":29556,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":29557,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":29558,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29559,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29560,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 16:55:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6212,"items_count":7} 
[2026-03-23 16:55:04] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29554,"menu_item_id":98,"quantity":1},{"id":29555,"menu_item_id":96,"quantity":1},{"id":29556,"menu_item_id":396,"quantity":2},{"id":29557,"menu_item_id":50,"quantity":2},{"id":29558,"menu_item_id":61,"quantity":1},{"id":29559,"menu_item_id":56,"quantity":1},{"id":29560,"menu_item_id":5,"quantity":1}]} 
[2026-03-23 16:55:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6212,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["98|1|","96|1|","396|2|","50|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["98|1|","96|1|","396|2|","50|2|","61|1|","56|1|","5|1|"]} 
[2026-03-23 16:55:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6212,"order_number":"AZS-230326-007"} 
[2026-03-23 16:55:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6212,"order_number":"AZS-230326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-23 16:55:04"} 
[2026-03-23 16:55:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6218,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":29582},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":29583},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":29584},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":29585},{"menu_item_id":49,"quantity":5,"discount_percent":0,"notes":null,"id":29586},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29587}],"validated_items":[{"id":29582,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":29583,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":29584,"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"id":29585,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":29586,"menu_item_id":49,"quantity":5,"discount_percent":0,"notes":null},{"id":29587,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 16:55:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6218,"items_count":6} 
[2026-03-23 16:55:22] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29582,"menu_item_id":106,"quantity":1},{"id":29583,"menu_item_id":112,"quantity":1},{"id":29584,"menu_item_id":61,"quantity":4},{"id":29585,"menu_item_id":56,"quantity":2},{"id":29586,"menu_item_id":49,"quantity":5},{"id":29587,"menu_item_id":5,"quantity":1}]} 
[2026-03-23 16:55:22] local.INFO: PosOrderController::update - Item changes check {"order_id":6218,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["106|1|","112|1|","61|4|","56|2|","49|5|","5|1|"],"new_items_map_keys":["106|1|","112|1|","61|4|","56|2|","49|5|","5|1|"]} 
[2026-03-23 16:55:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6218,"order_number":"AZS-230326-012"} 
[2026-03-23 16:55:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6218,"order_number":"AZS-230326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-23 16:55:22"} 
[2026-03-23 17:03:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":6220,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":29590},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":29591},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":29592},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":29593},{"menu_item_id":50,"quantity":10,"price":129,"discount_percent":0,"notes":null,"id":29594},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":29595},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":29596},{"menu_item_id":173,"quantity":2,"price":649,"discount_percent":0,"notes":null,"id":29597},{"menu_item_id":172,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":29598},{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":29599},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":29600}],"validated_items":[{"id":29590,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":29591,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":29592,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":29593,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":29594,"menu_item_id":50,"quantity":10,"price":129,"discount_percent":0,"notes":null},{"id":29595,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":29596,"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":29597,"menu_item_id":173,"quantity":2,"price":649,"discount_percent":0,"notes":null},{"id":29598,"menu_item_id":172,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":29599,"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":29600,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-23 17:03:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6220,"items_count":11} 
[2026-03-23 17:03:58] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29590,"menu_item_id":106,"quantity":1},{"id":29591,"menu_item_id":105,"quantity":1},{"id":29592,"menu_item_id":65,"quantity":1},{"id":29593,"menu_item_id":112,"quantity":1},{"id":29594,"menu_item_id":50,"quantity":10},{"id":29595,"menu_item_id":61,"quantity":3},{"id":29596,"menu_item_id":56,"quantity":3},{"id":29597,"menu_item_id":173,"quantity":2},{"id":29598,"menu_item_id":172,"quantity":1},{"id":29599,"menu_item_id":393,"quantity":1},{"id":29600,"menu_item_id":5,"quantity":2}]} 
[2026-03-23 17:03:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6220,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["106|1|","105|1|","65|1|","112|1|","50|10|","61|3|","56|3|","173|2|","172|1|","393|1|","5|2|"],"new_items_map_keys":["106|1|","105|1|","65|1|","112|1|","50|10|","61|3|","56|3|","173|2|","172|1|","393|1|","5|2|"]} 
[2026-03-23 17:03:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6220,"order_number":"AZS-230326-014"} 
[2026-03-23 17:03:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6220,"order_number":"AZS-230326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 17:03:58"} 
[2026-03-23 17:04:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":6220,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":29590},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":29591},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":29592},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":29593},{"menu_item_id":50,"quantity":10,"discount_percent":0,"notes":null,"id":29594},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":29595},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":29596},{"menu_item_id":173,"quantity":2,"discount_percent":0,"notes":null,"id":29597},{"menu_item_id":172,"quantity":1,"discount_percent":0,"notes":null,"id":29598},{"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null,"id":29599},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":29600}],"validated_items":[{"id":29590,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":29591,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":29592,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":29593,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":29594,"menu_item_id":50,"quantity":10,"discount_percent":0,"notes":null},{"id":29595,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":29596,"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"id":29597,"menu_item_id":173,"quantity":2,"discount_percent":0,"notes":null},{"id":29598,"menu_item_id":172,"quantity":1,"discount_percent":0,"notes":null},{"id":29599,"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null},{"id":29600,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-23 17:04:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6220,"items_count":11} 
[2026-03-23 17:04:02] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29590,"menu_item_id":106,"quantity":1},{"id":29591,"menu_item_id":105,"quantity":1},{"id":29592,"menu_item_id":65,"quantity":1},{"id":29593,"menu_item_id":112,"quantity":1},{"id":29594,"menu_item_id":50,"quantity":10},{"id":29595,"menu_item_id":61,"quantity":3},{"id":29596,"menu_item_id":56,"quantity":3},{"id":29597,"menu_item_id":173,"quantity":2},{"id":29598,"menu_item_id":172,"quantity":1},{"id":29599,"menu_item_id":393,"quantity":1},{"id":29600,"menu_item_id":5,"quantity":2}]} 
[2026-03-23 17:04:02] local.INFO: PosOrderController::update - Item changes check {"order_id":6220,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["106|1|","105|1|","65|1|","112|1|","50|10|","61|3|","56|3|","173|2|","172|1|","393|1|","5|2|"],"new_items_map_keys":["106|1|","105|1|","65|1|","112|1|","50|10|","61|3|","56|3|","173|2|","172|1|","393|1|","5|2|"]} 
[2026-03-23 17:04:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6220,"order_number":"AZS-230326-014"} 
[2026-03-23 17:04:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6220,"order_number":"AZS-230326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-23 17:04:02"} 
[2026-03-23 17:05:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6211,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null,"id":29549},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":29550},{"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null,"id":29551},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":29552},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":29553},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29549,"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null},{"id":29550,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":29551,"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null},{"id":29552,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":29553,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 17:05:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6211,"items_count":6} 
[2026-03-23 17:05:03] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29549,"menu_item_id":114,"quantity":2},{"id":29550,"menu_item_id":105,"quantity":1},{"id":29551,"menu_item_id":396,"quantity":7},{"id":29552,"menu_item_id":61,"quantity":2},{"id":29553,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":29,"quantity":1}]} 
[2026-03-23 17:05:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6211,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["114|2|","105|1|","396|7|","61|2|","5|2|"],"new_items_map_keys":["114|2|","105|1|","396|7|","61|2|","5|2|","29|1|"]} 
[2026-03-23 17:05:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6211,"order_number":"AZS-230326-006"} 
[2026-03-23 17:05:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-006","replaced_order_id":6211} 
[2026-03-23 17:05:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6222,"items_count":6,"items":[{"menu_item_id":114,"quantity":2,"price":"2299.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":7,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"}]} 
[2026-03-23 17:05:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6222,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6222}} 
[2026-03-23 17:05:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6222,"item_index":0,"menu_item_id":114} 
[2026-03-23 17:05:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6222,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6222}} 
[2026-03-23 17:05:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6222,"item_index":1,"menu_item_id":105} 
[2026-03-23 17:05:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6222,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":7,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":693.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6222}} 
[2026-03-23 17:05:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6222,"item_index":2,"menu_item_id":396} 
[2026-03-23 17:05:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6222,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6222}} 
[2026-03-23 17:05:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6222,"item_index":3,"menu_item_id":61} 
[2026-03-23 17:05:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6222,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6222}} 
[2026-03-23 17:05:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6222,"item_index":4,"menu_item_id":5} 
[2026-03-23 17:05:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6222,"item_index":5,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6222}} 
[2026-03-23 17:05:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6222,"item_index":5,"menu_item_id":29} 
[2026-03-23 17:05:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6211,"new_order_id":6222,"order_number":"AZS-230326-006"} 
[2026-03-23 17:05:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6212,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":29554},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":29555},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":29556},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":29557},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29558},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29559},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29560},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29554,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":29555,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":29556,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":29557,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":29558,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29559,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29560,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 17:05:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6212,"items_count":8} 
[2026-03-23 17:05:17] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29554,"menu_item_id":98,"quantity":1},{"id":29555,"menu_item_id":96,"quantity":1},{"id":29556,"menu_item_id":396,"quantity":2},{"id":29557,"menu_item_id":50,"quantity":2},{"id":29558,"menu_item_id":61,"quantity":1},{"id":29559,"menu_item_id":56,"quantity":1},{"id":29560,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 17:05:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6212,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["98|1|","96|1|","396|2|","50|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["98|1|","96|1|","396|2|","50|2|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-03-23 17:05:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6212,"order_number":"AZS-230326-007"} 
[2026-03-23 17:05:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-007","replaced_order_id":6212} 
[2026-03-23 17:05:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6223,"items_count":8,"items":[{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-23 17:05:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6223,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6223}} 
[2026-03-23 17:05:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6223,"item_index":0,"menu_item_id":98} 
[2026-03-23 17:05:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6223,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6223}} 
[2026-03-23 17:05:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6223,"item_index":1,"menu_item_id":96} 
[2026-03-23 17:05:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6223,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6223}} 
[2026-03-23 17:05:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6223,"item_index":2,"menu_item_id":396} 
[2026-03-23 17:05:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6223,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6223}} 
[2026-03-23 17:05:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6223,"item_index":3,"menu_item_id":50} 
[2026-03-23 17:05:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6223,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6223}} 
[2026-03-23 17:05:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6223,"item_index":4,"menu_item_id":61} 
[2026-03-23 17:05:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6223,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6223}} 
[2026-03-23 17:05:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6223,"item_index":5,"menu_item_id":56} 
[2026-03-23 17:05:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6223,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6223}} 
[2026-03-23 17:05:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6223,"item_index":6,"menu_item_id":5} 
[2026-03-23 17:05:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6223,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6223}} 
[2026-03-23 17:05:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6223,"item_index":7,"menu_item_id":3} 
[2026-03-23 17:05:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6212,"new_order_id":6223,"order_number":"AZS-230326-007"} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6214,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":29562},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":29563},{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":29564},{"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null,"id":29565},{"menu_item_id":52,"quantity":9,"discount_percent":0,"notes":null,"id":29566},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":29567},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29568},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29569},{"menu_item_id":29,"quantity":4,"discount_percent":0,"notes":null}],"validated_items":[{"id":29562,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":29563,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":29564,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":29565,"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null},{"id":29566,"menu_item_id":52,"quantity":9,"discount_percent":0,"notes":null},{"id":29567,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":29568,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29569,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6214,"items_count":9} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29562,"menu_item_id":97,"quantity":1},{"id":29563,"menu_item_id":106,"quantity":1},{"id":29564,"menu_item_id":78,"quantity":1},{"id":29565,"menu_item_id":393,"quantity":1},{"id":29566,"menu_item_id":52,"quantity":9},{"id":29567,"menu_item_id":61,"quantity":2},{"id":29568,"menu_item_id":56,"quantity":1},{"id":29569,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":29,"quantity":4}]} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Item changes check {"order_id":6214,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["97|1|","106|1|","78|1|","393|1|","52|9|","61|2|","56|1|","5|1|"],"new_items_map_keys":["97|1|","106|1|","78|1|","393|1|","52|9|","61|2|","56|1|","5|1|","29|4|"]} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6214,"order_number":"AZS-230326-009"} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-009","replaced_order_id":6214} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6224,"items_count":9,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":393,"quantity":1,"price":"499.00"},{"menu_item_id":52,"quantity":9,"price":"70.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":29,"quantity":4,"price":"250.00"}]} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6224,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6224}} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6224,"item_index":0,"menu_item_id":97} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6224,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6224}} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6224,"item_index":1,"menu_item_id":106} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6224,"item_index":2,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6224}} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6224,"item_index":2,"menu_item_id":78} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6224,"item_index":3,"item_data":{"menu_item_id":393,"restaurant_category_id":35,"restaurant_category_name":"ROCK N ROLL","item_name":"Chicken Shawarma","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6224}} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6224,"item_index":3,"menu_item_id":393} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6224,"item_index":4,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":9,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":630.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6224}} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6224,"item_index":4,"menu_item_id":52} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6224,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6224}} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6224,"item_index":5,"menu_item_id":61} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6224,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6224}} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6224,"item_index":6,"menu_item_id":56} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6224,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6224}} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6224,"item_index":7,"menu_item_id":5} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6224,"item_index":8,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":4,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1000.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6224}} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6224,"item_index":8,"menu_item_id":29} 
[2026-03-23 17:05:33] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6214,"new_order_id":6224,"order_number":"AZS-230326-009"} 
[2026-03-23 17:10:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6222,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null,"id":29604},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":29605},{"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null,"id":29606},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":29607},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":29608},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null,"id":29609},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29604,"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null},{"id":29605,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":29606,"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null},{"id":29607,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":29608,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":29609,"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 17:10:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6222,"items_count":7} 
[2026-03-23 17:10:30] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29604,"menu_item_id":114,"quantity":2},{"id":29605,"menu_item_id":105,"quantity":1},{"id":29606,"menu_item_id":396,"quantity":7},{"id":29607,"menu_item_id":61,"quantity":2},{"id":29608,"menu_item_id":5,"quantity":2},{"id":29609,"menu_item_id":29,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1}]} 
[2026-03-23 17:10:30] local.INFO: PosOrderController::update - Item changes check {"order_id":6222,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["114|2|","105|1|","396|7|","61|2|","5|2|","29|1|"],"new_items_map_keys":["114|2|","105|1|","396|7|","61|2|","5|2|","29|1|","96|1|"]} 
[2026-03-23 17:10:30] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6222,"order_number":"AZS-230326-006"} 
[2026-03-23 17:10:30] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-006","replaced_order_id":6222} 
[2026-03-23 17:10:30] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6225,"items_count":7,"items":[{"menu_item_id":114,"quantity":2,"price":"2299.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":7,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"}]} 
[2026-03-23 17:10:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6225,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6225}} 
[2026-03-23 17:10:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6225,"item_index":0,"menu_item_id":114} 
[2026-03-23 17:10:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6225,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6225}} 
[2026-03-23 17:10:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6225,"item_index":1,"menu_item_id":105} 
[2026-03-23 17:10:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6225,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":7,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":693.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6225}} 
[2026-03-23 17:10:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6225,"item_index":2,"menu_item_id":396} 
[2026-03-23 17:10:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6225,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6225}} 
[2026-03-23 17:10:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6225,"item_index":3,"menu_item_id":61} 
[2026-03-23 17:10:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6225,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6225}} 
[2026-03-23 17:10:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6225,"item_index":4,"menu_item_id":5} 
[2026-03-23 17:10:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6225,"item_index":5,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6225}} 
[2026-03-23 17:10:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6225,"item_index":5,"menu_item_id":29} 
[2026-03-23 17:10:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6225,"item_index":6,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6225}} 
[2026-03-23 17:10:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6225,"item_index":6,"menu_item_id":96} 
[2026-03-23 17:10:30] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6222,"new_order_id":6225,"order_number":"AZS-230326-006"} 
[2026-03-23 17:12:29] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6215,"order_number":"AZS-230326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2680,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 17:12:29"} 
[2026-03-23 17:12:29] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6215,"order_number":"AZS-230326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2680,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 17:12:29"} 
[2026-03-23 17:12:29] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6215,"order_number":"AZS-230326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2680,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 17:12:29"} 
[2026-03-23 17:12:29] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6215,"order_number":"AZS-230326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2680,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 17:12:29"} 
[2026-03-23 17:12:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6215,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29570},{"menu_item_id":286,"quantity":12,"price":15,"discount_percent":0,"notes":null,"id":29571},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29572}],"validated_items":[{"id":29570,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":29571,"menu_item_id":286,"quantity":12,"price":15,"discount_percent":0,"notes":null},{"id":29572,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-23 17:12:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6215,"items_count":3} 
[2026-03-23 17:12:29] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29570,"menu_item_id":97,"quantity":1},{"id":29571,"menu_item_id":286,"quantity":12},{"id":29572,"menu_item_id":56,"quantity":1}]} 
[2026-03-23 17:12:29] local.INFO: PosOrderController::update - Item changes check {"order_id":6215,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["97|1|","286|12|","56|1|"],"new_items_map_keys":["97|1|","286|12|","56|1|"]} 
[2026-03-23 17:12:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6215,"order_number":"AZS-230326-010"} 
[2026-03-23 17:12:29] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6215,"order_number":"AZS-230326-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2680,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-23 17:12:29","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 17:12:29"} 
[2026-03-23 17:12:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6215,"order_number":"AZS-230326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 17:12:29"} 
[2026-03-23 17:12:29] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6215,"order_number":"AZS-230326-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2680.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-23 17:12:29","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2680,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2680.00","database_verification_match":true,"timestamp":"2026-03-23 17:12:29"} 
[2026-03-23 17:13:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6213,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null,"id":29561}],"validated_items":[{"id":29561,"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 17:13:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6213,"items_count":1} 
[2026-03-23 17:13:10] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29561,"menu_item_id":6,"quantity":1}]} 
[2026-03-23 17:13:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6213,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-03-23 17:13:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6213,"order_number":"AZS-230326-008"} 
[2026-03-23 17:13:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6213,"order_number":"AZS-230326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-23 17:13:10"} 
[2026-03-23 17:25:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6219,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":29588},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null,"id":29589},{"menu_item_id":24,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":26,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29588,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"id":29589,"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":24,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":26,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 17:25:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6219,"items_count":4} 
[2026-03-23 17:25:42] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29588,"menu_item_id":137,"quantity":1},{"id":29589,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":24,"quantity":1},{"id":null,"menu_item_id":26,"quantity":1}]} 
[2026-03-23 17:25:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6219,"has_item_changes":true,"old_items_count":2,"new_items_count":4,"old_items_map_keys":["137|1|","2|2|"],"new_items_map_keys":["137|1|","2|2|","24|1|","26|1|"]} 
[2026-03-23 17:25:42] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6219,"order_number":"AZS-230326-013"} 
[2026-03-23 17:25:42] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-013","replaced_order_id":6219} 
[2026-03-23 17:25:42] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6228,"items_count":4,"items":[{"menu_item_id":137,"quantity":1,"price":"1299.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"},{"menu_item_id":24,"quantity":1,"price":"249.00"},{"menu_item_id":26,"quantity":1,"price":"249.00"}]} 
[2026-03-23 17:25:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6228,"item_index":0,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6228}} 
[2026-03-23 17:25:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6228,"item_index":0,"menu_item_id":137} 
[2026-03-23 17:25:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6228,"item_index":1,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6228}} 
[2026-03-23 17:25:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6228,"item_index":1,"menu_item_id":2} 
[2026-03-23 17:25:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6228,"item_index":2,"item_data":{"menu_item_id":24,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Mango","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6228}} 
[2026-03-23 17:25:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6228,"item_index":2,"menu_item_id":24} 
[2026-03-23 17:25:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6228,"item_index":3,"item_data":{"menu_item_id":26,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Chocolate","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6228}} 
[2026-03-23 17:25:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6228,"item_index":3,"menu_item_id":26} 
[2026-03-23 17:25:42] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6219,"new_order_id":6228,"order_number":"AZS-230326-013"} 
[2026-03-23 17:35:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6228,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":29640},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":29641},{"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":29642},{"menu_item_id":26,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":29643}],"validated_items":[{"id":29640,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":29641,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":29642,"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":29643,"menu_item_id":26,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-23 17:35:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6228,"items_count":4} 
[2026-03-23 17:35:26] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29640,"menu_item_id":137,"quantity":1},{"id":29641,"menu_item_id":2,"quantity":2},{"id":29642,"menu_item_id":24,"quantity":1},{"id":29643,"menu_item_id":26,"quantity":1}]} 
[2026-03-23 17:35:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6228,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["137|1|","2|2|","24|1|","26|1|"],"new_items_map_keys":["137|1|","2|2|","24|1|","26|1|"]} 
[2026-03-23 17:35:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6228,"order_number":"AZS-230326-013"} 
[2026-03-23 17:35:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6228,"order_number":"AZS-230326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 17:35:26"} 
[2026-03-23 17:38:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6226,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null,"id":29634},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29634,"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 17:38:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6226,"items_count":3} 
[2026-03-23 17:38:21] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29634,"menu_item_id":138,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-23 17:38:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6226,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["138|1|"],"new_items_map_keys":["138|1|","2|2|","5|1|"]} 
[2026-03-23 17:38:21] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6226,"order_number":"AZS-230326-016"} 
[2026-03-23 17:38:21] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-016","replaced_order_id":6226} 
[2026-03-23 17:38:21] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6231,"items_count":3,"items":[{"menu_item_id":138,"quantity":1,"price":"2199.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-23 17:38:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6231,"item_index":0,"item_data":{"menu_item_id":138,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Large","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6231}} 
[2026-03-23 17:38:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6231,"item_index":0,"menu_item_id":138} 
[2026-03-23 17:38:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6231,"item_index":1,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6231}} 
[2026-03-23 17:38:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6231,"item_index":1,"menu_item_id":2} 
[2026-03-23 17:38:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6231,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6231}} 
[2026-03-23 17:38:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6231,"item_index":2,"menu_item_id":5} 
[2026-03-23 17:38:21] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6226,"new_order_id":6231,"order_number":"AZS-230326-016"} 
[2026-03-23 17:39:04] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6228,"order_number":"AZS-230326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2160,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 17:39:04"} 
[2026-03-23 17:39:04] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6228,"order_number":"AZS-230326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2160,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 17:39:04"} 
[2026-03-23 17:39:04] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6228,"order_number":"AZS-230326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2160,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 17:39:04"} 
[2026-03-23 17:39:04] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6228,"order_number":"AZS-230326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2160,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 17:39:04"} 
[2026-03-23 17:39:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6228,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":29640},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":29641},{"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":29642},{"menu_item_id":26,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":29643}],"validated_items":[{"id":29640,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":29641,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":29642,"menu_item_id":24,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":29643,"menu_item_id":26,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-23 17:39:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6228,"items_count":4} 
[2026-03-23 17:39:04] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29640,"menu_item_id":137,"quantity":1},{"id":29641,"menu_item_id":2,"quantity":2},{"id":29642,"menu_item_id":24,"quantity":1},{"id":29643,"menu_item_id":26,"quantity":1}]} 
[2026-03-23 17:39:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6228,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["137|1|","2|2|","24|1|","26|1|"],"new_items_map_keys":["137|1|","2|2|","24|1|","26|1|"]} 
[2026-03-23 17:39:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6228,"order_number":"AZS-230326-013"} 
[2026-03-23 17:39:04] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6228,"order_number":"AZS-230326-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2160,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 17:39:04","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 17:39:04"} 
[2026-03-23 17:39:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6228,"order_number":"AZS-230326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 17:39:04"} 
[2026-03-23 17:39:04] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6228,"order_number":"AZS-230326-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2160.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 17:39:04","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2160,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2160.00","database_verification_match":true,"timestamp":"2026-03-23 17:39:04"} 
[2026-03-23 17:39:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T05:39:16.910Z","date_to":"2026-03-23T17:39:16.910Z","per_page":"100"} 
[2026-03-23 17:39:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T05:39:16.895Z","date_to":"2026-03-23T17:39:16.895Z","per_page":"100"} 
[2026-03-23 17:39:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","pending","paid","pending","pending","pending","pending","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":6,"unpaid_count":13,"unique_order_numbers":19} 
[2026-03-23 17:39:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","pending","paid","pending","pending","pending","pending","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":6,"unpaid_count":13,"unique_order_numbers":19} 
[2026-03-23 17:39:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T05:39:16.895Z","date_to":"2026-03-23T17:39:16.895Z","per_page":"100"} 
[2026-03-23 17:39:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","pending","paid","pending","pending","pending","pending","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":6,"unpaid_count":13,"unique_order_numbers":19} 
[2026-03-23 17:39:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6225,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null,"id":29627},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":29628},{"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null,"id":29629},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":29630},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":29631},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null,"id":29632},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":29633},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":29627,"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null},{"id":29628,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":29629,"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null},{"id":29630,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":29631,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":29632,"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null},{"id":29633,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-23 17:39:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6225,"items_count":8} 
[2026-03-23 17:39:40] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29627,"menu_item_id":114,"quantity":2},{"id":29628,"menu_item_id":105,"quantity":1},{"id":29629,"menu_item_id":396,"quantity":7},{"id":29630,"menu_item_id":61,"quantity":2},{"id":29631,"menu_item_id":5,"quantity":2},{"id":29632,"menu_item_id":29,"quantity":1},{"id":29633,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-03-23 17:39:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6225,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["114|2|","105|1|","396|7|","61|2|","5|2|","29|1|","96|1|"],"new_items_map_keys":["114|2|","105|1|","396|7|","61|2|","5|2|","29|1|","96|1|","3|2|"]} 
[2026-03-23 17:39:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6225,"order_number":"AZS-230326-006"} 
[2026-03-23 17:39:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-006","replaced_order_id":6225} 
[2026-03-23 17:39:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6232,"items_count":8,"items":[{"menu_item_id":114,"quantity":2,"price":"2299.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":7,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-03-23 17:39:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6232,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6232}} 
[2026-03-23 17:39:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6232,"item_index":0,"menu_item_id":114} 
[2026-03-23 17:39:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6232,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6232}} 
[2026-03-23 17:39:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6232,"item_index":1,"menu_item_id":105} 
[2026-03-23 17:39:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6232,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":7,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":693.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6232}} 
[2026-03-23 17:39:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6232,"item_index":2,"menu_item_id":396} 
[2026-03-23 17:39:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6232,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6232}} 
[2026-03-23 17:39:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6232,"item_index":3,"menu_item_id":61} 
[2026-03-23 17:39:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6232,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6232}} 
[2026-03-23 17:39:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6232,"item_index":4,"menu_item_id":5} 
[2026-03-23 17:39:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6232,"item_index":5,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6232}} 
[2026-03-23 17:39:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6232,"item_index":5,"menu_item_id":29} 
[2026-03-23 17:39:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6232,"item_index":6,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6232}} 
[2026-03-23 17:39:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6232,"item_index":6,"menu_item_id":96} 
[2026-03-23 17:39:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6232,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6232}} 
[2026-03-23 17:39:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6232,"item_index":7,"menu_item_id":3} 
[2026-03-23 17:39:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6225,"new_order_id":6232,"order_number":"AZS-230326-006"} 
[2026-03-23 17:39:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6223,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29610},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29611},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29612},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":29613},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29614},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29615},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29616},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29617}],"validated_items":[{"id":29610,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29611,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29612,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29613,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":29614,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29615,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29616,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29617,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 17:39:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6223,"items_count":8} 
[2026-03-23 17:39:54] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29610,"menu_item_id":98,"quantity":1},{"id":29611,"menu_item_id":96,"quantity":1},{"id":29612,"menu_item_id":396,"quantity":2},{"id":29613,"menu_item_id":50,"quantity":2},{"id":29614,"menu_item_id":61,"quantity":1},{"id":29615,"menu_item_id":56,"quantity":1},{"id":29616,"menu_item_id":5,"quantity":1},{"id":29617,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 17:39:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6223,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["98|1|","96|1|","396|2|","50|2|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["98|1|","96|1|","396|2|","50|2|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-03-23 17:39:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6223,"order_number":"AZS-230326-007"} 
[2026-03-23 17:39:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6223,"order_number":"AZS-230326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 17:39:54"} 
[2026-03-23 17:43:28] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6209,"order_number":"AZS-230326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":7000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 17:43:28"} 
[2026-03-23 17:43:28] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6209,"order_number":"AZS-230326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":7000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 17:43:28"} 
[2026-03-23 17:43:28] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6209,"order_number":"AZS-230326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 17:43:28"} 
[2026-03-23 17:43:28] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6209,"order_number":"AZS-230326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 17:43:28"} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":1,"order_id":6209,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":29530},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29531},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":29532},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":29533},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29534},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":29535},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29537},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29538},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":29539},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":29540}],"validated_items":[{"id":29530,"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":29531,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29532,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":29533,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":29534,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29535,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":29537,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29538,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29539,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":29540,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6209,"items_count":10} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":1,"items_to_remove":[29536],"items":[{"id":29530,"menu_item_id":138,"quantity":1},{"id":29531,"menu_item_id":96,"quantity":1},{"id":29532,"menu_item_id":64,"quantity":1},{"id":29533,"menu_item_id":63,"quantity":1},{"id":29534,"menu_item_id":396,"quantity":2},{"id":29535,"menu_item_id":50,"quantity":2},{"id":29537,"menu_item_id":56,"quantity":1},{"id":29538,"menu_item_id":5,"quantity":1},{"id":29539,"menu_item_id":29,"quantity":1},{"id":29540,"menu_item_id":2,"quantity":1}]} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6209,"has_item_changes":true,"old_items_count":11,"new_items_count":10,"old_items_map_keys":["138|1|","96|1|","64|1|","63|1|","396|2|","50|2|","61|1|","56|1|","5|1|","29|1|","2|1|"],"new_items_map_keys":["138|1|","96|1|","64|1|","63|1|","396|2|","50|2|","56|1|","5|1|","29|1|","2|1|"]} 
[2026-03-23 17:43:28] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6209,"order_number":"AZS-230326-001","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":7000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-23 17:43:28","original_payment_amount":"0.00","grand_total":6701.0,"timestamp":"2026-03-23 17:43:28"} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6209,"order_number":"AZS-230326-001"} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-001","replaced_order_id":6209} 
[2026-03-23 17:43:28] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6209,"new_order_id":6233,"order_number":"AZS-230326-001","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"7000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-23 17:43:28","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":7000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-23 17:43:28"} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6233,"items_count":10,"items":[{"menu_item_id":138,"quantity":1,"price":2199.0},{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":64,"quantity":1,"price":999.0},{"menu_item_id":63,"quantity":1,"price":1099.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":50,"quantity":2,"price":129.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":29,"quantity":1,"price":250.0},{"menu_item_id":2,"quantity":1,"price":130.0}]} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6233,"item_index":0,"item_data":{"menu_item_id":138,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Large","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6233}} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6233,"item_index":0,"menu_item_id":138} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6233,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6233}} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6233,"item_index":1,"menu_item_id":96} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6233,"item_index":2,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":999.0,"discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6233}} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6233,"item_index":2,"menu_item_id":64} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6233,"item_index":3,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":1099.0,"discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6233}} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6233,"item_index":3,"menu_item_id":63} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6233,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6233}} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6233,"item_index":4,"menu_item_id":396} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6233,"item_index":5,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6233}} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6233,"item_index":5,"menu_item_id":50} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6233,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6233}} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6233,"item_index":6,"menu_item_id":56} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6233,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6233}} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6233,"item_index":7,"menu_item_id":5} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6233,"item_index":8,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":250.0,"discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6233}} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6233,"item_index":8,"menu_item_id":29} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6233,"item_index":9,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6233}} 
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6233,"item_index":9,"menu_item_id":2} 
[2026-03-23 17:43:28] local.ERROR: Error tracking recipe usage for order 6233: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6233, 96, 77, 1, 1, 0.00, Order #AZS-230326-001 - 1x Chicken Karahi - Half, 2026-03-23 17:43:28, 2026-03-23 17:43:28))  
[2026-03-23 17:43:28] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6209,"new_order_id":6233,"order_number":"AZS-230326-001"} 
[2026-03-23 17:43:28] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6209,"new_order_id":6233,"order_number":"AZS-230326-001","route":"api/orders/6209"} 
[2026-03-23 17:49:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T05:49:08.114Z","date_to":"2026-03-23T17:49:08.114Z","per_page":"100"} 
[2026-03-23 17:49:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T05:49:08.095Z","date_to":"2026-03-23T17:49:08.095Z","per_page":"100"} 
[2026-03-23 17:49:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","pending","paid","pending","pending","pending","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":12,"unique_order_numbers":19} 
[2026-03-23 17:49:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","pending","paid","pending","pending","pending","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":12,"unique_order_numbers":19} 
[2026-03-23 17:49:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T05:49:08.095Z","date_to":"2026-03-23T17:49:08.095Z","per_page":"100"} 
[2026-03-23 17:49:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","pending","paid","pending","pending","pending","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":12,"unique_order_numbers":19} 
[2026-03-23 17:55:31] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6223,"order_number":"AZS-230326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 17:55:31"} 
[2026-03-23 17:55:31] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6223,"order_number":"AZS-230326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 17:55:31"} 
[2026-03-23 17:55:31] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6223,"order_number":"AZS-230326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 17:55:31"} 
[2026-03-23 17:55:31] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6223,"order_number":"AZS-230326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 17:55:31"} 
[2026-03-23 17:55:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":1,"order_id":6223,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29610},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29611},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29612},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":29613},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29615},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29616},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29617}],"validated_items":[{"id":29610,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29611,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29612,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29613,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":29615,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29616,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29617,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 17:55:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6223,"items_count":7} 
[2026-03-23 17:55:31] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":1,"items_to_remove":[29614],"items":[{"id":29610,"menu_item_id":98,"quantity":1},{"id":29611,"menu_item_id":96,"quantity":1},{"id":29612,"menu_item_id":396,"quantity":2},{"id":29613,"menu_item_id":50,"quantity":2},{"id":29615,"menu_item_id":56,"quantity":1},{"id":29616,"menu_item_id":5,"quantity":1},{"id":29617,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 17:55:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6223,"has_item_changes":true,"old_items_count":8,"new_items_count":7,"old_items_map_keys":["98|1|","96|1|","396|2|","50|2|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["98|1|","96|1|","396|2|","50|2|","56|1|","5|1|","3|1|"]} 
[2026-03-23 17:55:31] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6223,"order_number":"AZS-230326-007","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3500,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-23 17:55:31","original_payment_amount":"0.00","grand_total":3493.0,"timestamp":"2026-03-23 17:55:31"} 
[2026-03-23 17:55:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6223,"order_number":"AZS-230326-007"} 
[2026-03-23 17:55:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-007","replaced_order_id":6223} 
[2026-03-23 17:55:31] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6223,"new_order_id":6234,"order_number":"AZS-230326-007","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3500.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-23 17:55:31","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-23 17:55:31"} 
[2026-03-23 17:55:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6234,"items_count":7,"items":[{"menu_item_id":98,"quantity":1,"price":1199.0},{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":50,"quantity":2,"price":129.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-23 17:55:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6234,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6234}} 
[2026-03-23 17:55:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6234,"item_index":0,"menu_item_id":98} 
[2026-03-23 17:55:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6234,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6234}} 
[2026-03-23 17:55:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6234,"item_index":1,"menu_item_id":96} 
[2026-03-23 17:55:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6234,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6234}} 
[2026-03-23 17:55:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6234,"item_index":2,"menu_item_id":396} 
[2026-03-23 17:55:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6234,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6234}} 
[2026-03-23 17:55:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6234,"item_index":3,"menu_item_id":50} 
[2026-03-23 17:55:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6234,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6234}} 
[2026-03-23 17:55:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6234,"item_index":4,"menu_item_id":56} 
[2026-03-23 17:55:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6234,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6234}} 
[2026-03-23 17:55:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6234,"item_index":5,"menu_item_id":5} 
[2026-03-23 17:55:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6234,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6234}} 
[2026-03-23 17:55:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6234,"item_index":6,"menu_item_id":3} 
[2026-03-23 17:55:31] local.ERROR: Error tracking recipe usage for order 6234: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6234, 96, 77, 1, 1, 0.00, Order #AZS-230326-007 - 1x Chicken Karahi - Half, 2026-03-23 17:55:31, 2026-03-23 17:55:31))  
[2026-03-23 17:55:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6223,"new_order_id":6234,"order_number":"AZS-230326-007"} 
[2026-03-23 17:55:32] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6223,"new_order_id":6234,"order_number":"AZS-230326-007","route":"api/orders/6223"} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6224,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":29618},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":29619},{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":29620},{"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null,"id":29621},{"menu_item_id":52,"quantity":9,"discount_percent":0,"notes":null,"id":29622},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":29623},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29624},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29625},{"menu_item_id":29,"quantity":4,"discount_percent":0,"notes":null,"id":29626},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29618,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":29619,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":29620,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":29621,"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null},{"id":29622,"menu_item_id":52,"quantity":9,"discount_percent":0,"notes":null},{"id":29623,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":29624,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29625,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":29626,"menu_item_id":29,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6224,"items_count":10} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29618,"menu_item_id":97,"quantity":1},{"id":29619,"menu_item_id":106,"quantity":1},{"id":29620,"menu_item_id":78,"quantity":1},{"id":29621,"menu_item_id":393,"quantity":1},{"id":29622,"menu_item_id":52,"quantity":9},{"id":29623,"menu_item_id":61,"quantity":2},{"id":29624,"menu_item_id":56,"quantity":1},{"id":29625,"menu_item_id":5,"quantity":1},{"id":29626,"menu_item_id":29,"quantity":4},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6224,"has_item_changes":true,"old_items_count":9,"new_items_count":10,"old_items_map_keys":["97|1|","106|1|","78|1|","393|1|","52|9|","61|2|","56|1|","5|1|","29|4|"],"new_items_map_keys":["97|1|","106|1|","78|1|","393|1|","52|9|","61|2|","56|1|","5|1|","29|4|","3|1|"]} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6224,"order_number":"AZS-230326-009"} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-009","replaced_order_id":6224} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6235,"items_count":10,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":393,"quantity":1,"price":"499.00"},{"menu_item_id":52,"quantity":9,"price":"70.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":29,"quantity":4,"price":"250.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6235,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6235}} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6235,"item_index":0,"menu_item_id":97} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6235,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6235}} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6235,"item_index":1,"menu_item_id":106} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6235,"item_index":2,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6235}} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6235,"item_index":2,"menu_item_id":78} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6235,"item_index":3,"item_data":{"menu_item_id":393,"restaurant_category_id":35,"restaurant_category_name":"ROCK N ROLL","item_name":"Chicken Shawarma","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6235}} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6235,"item_index":3,"menu_item_id":393} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6235,"item_index":4,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":9,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":630.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6235}} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6235,"item_index":4,"menu_item_id":52} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6235,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6235}} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6235,"item_index":5,"menu_item_id":61} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6235,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6235}} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6235,"item_index":6,"menu_item_id":56} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6235,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6235}} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6235,"item_index":7,"menu_item_id":5} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6235,"item_index":8,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":4,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1000.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6235}} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6235,"item_index":8,"menu_item_id":29} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6235,"item_index":9,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6235}} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6235,"item_index":9,"menu_item_id":3} 
[2026-03-23 17:55:48] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6224,"new_order_id":6235,"order_number":"AZS-230326-009"} 
[2026-03-23 17:56:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6231,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":29650},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":29651},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29652}],"validated_items":[{"id":29650,"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":29651,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":29652,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-23 17:56:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6231,"items_count":3} 
[2026-03-23 17:56:20] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29650,"menu_item_id":138,"quantity":1},{"id":29651,"menu_item_id":2,"quantity":2},{"id":29652,"menu_item_id":5,"quantity":1}]} 
[2026-03-23 17:56:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6231,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["138|1|","2|2|","5|1|"],"new_items_map_keys":["138|1|","2|2|","5|1|"]} 
[2026-03-23 17:56:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6231,"order_number":"AZS-230326-016"} 
[2026-03-23 17:56:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6231,"order_number":"AZS-230326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 17:56:20"} 
[2026-03-23 17:59:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T05:59:25.001Z","date_to":"2026-03-23T17:59:25.001Z","per_page":"100"} 
[2026-03-23 17:59:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":11,"unique_order_numbers":19} 
[2026-03-23 17:59:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T05:59:24.981Z","date_to":"2026-03-23T17:59:24.981Z","per_page":"100"} 
[2026-03-23 17:59:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":11,"unique_order_numbers":19} 
[2026-03-23 17:59:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T05:59:24.981Z","date_to":"2026-03-23T17:59:24.981Z","per_page":"100"} 
[2026-03-23 17:59:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":11,"unique_order_numbers":19} 
[2026-03-23 17:59:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T05:59:31.020Z","date_to":"2026-03-23T17:59:31.020Z","per_page":"100"} 
[2026-03-23 17:59:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T05:59:31.038Z","date_to":"2026-03-23T17:59:31.038Z","per_page":"100"} 
[2026-03-23 17:59:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":11,"unique_order_numbers":19} 
[2026-03-23 17:59:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":11,"unique_order_numbers":19} 
[2026-03-23 17:59:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T05:59:31.020Z","date_to":"2026-03-23T17:59:31.020Z","per_page":"100"} 
[2026-03-23 17:59:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":11,"unique_order_numbers":19} 
[2026-03-23 17:59:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6218,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":29582},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":29583},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":29584},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29585},{"menu_item_id":49,"quantity":5,"price":70,"discount_percent":0,"notes":null,"id":29586},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29587}],"validated_items":[{"id":29582,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":29583,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":29584,"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":29585,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29586,"menu_item_id":49,"quantity":5,"price":70,"discount_percent":0,"notes":null},{"id":29587,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-23 17:59:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6218,"items_count":6} 
[2026-03-23 17:59:42] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29582,"menu_item_id":106,"quantity":1},{"id":29583,"menu_item_id":112,"quantity":1},{"id":29584,"menu_item_id":61,"quantity":4},{"id":29585,"menu_item_id":56,"quantity":2},{"id":29586,"menu_item_id":49,"quantity":5},{"id":29587,"menu_item_id":5,"quantity":1}]} 
[2026-03-23 17:59:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6218,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["106|1|","112|1|","61|4|","56|2|","49|5|","5|1|"],"new_items_map_keys":["106|1|","112|1|","61|4|","56|2|","49|5|","5|1|"]} 
[2026-03-23 17:59:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6218,"order_number":"AZS-230326-012"} 
[2026-03-23 17:59:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6218,"order_number":"AZS-230326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 17:59:42"} 
[2026-03-23 18:02:43] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6231,"order_number":"AZS-230326-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2760,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 18:02:43"} 
[2026-03-23 18:02:43] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6231,"order_number":"AZS-230326-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2760,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 18:02:43"} 
[2026-03-23 18:02:43] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6231,"order_number":"AZS-230326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2760,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 18:02:43"} 
[2026-03-23 18:02:43] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6231,"order_number":"AZS-230326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2760,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 18:02:43"} 
[2026-03-23 18:02:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6231,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":29650},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":29651},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29652}],"validated_items":[{"id":29650,"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":29651,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":29652,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:02:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6231,"items_count":3} 
[2026-03-23 18:02:43] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29650,"menu_item_id":138,"quantity":1},{"id":29651,"menu_item_id":2,"quantity":2},{"id":29652,"menu_item_id":5,"quantity":1}]} 
[2026-03-23 18:02:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6231,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["138|1|","2|2|","5|1|"],"new_items_map_keys":["138|1|","2|2|","5|1|"]} 
[2026-03-23 18:02:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6231,"order_number":"AZS-230326-016"} 
[2026-03-23 18:02:43] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6231,"order_number":"AZS-230326-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2760,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 18:02:43","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 18:02:43"} 
[2026-03-23 18:02:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6231,"order_number":"AZS-230326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 18:02:43"} 
[2026-03-23 18:02:43] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6231,"order_number":"AZS-230326-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2760.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 18:02:43","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2760,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2760.00","database_verification_match":true,"timestamp":"2026-03-23 18:02:43"} 
[2026-03-23 18:04:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T06:04:24.636Z","date_to":"2026-03-23T18:04:24.636Z","per_page":"100"} 
[2026-03-23 18:04:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","paid","pending","pending","paid","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":10,"unique_order_numbers":19} 
[2026-03-23 18:04:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T06:04:24.656Z","date_to":"2026-03-23T18:04:24.656Z","per_page":"100"} 
[2026-03-23 18:04:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","paid","pending","pending","paid","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":10,"unique_order_numbers":19} 
[2026-03-23 18:04:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T06:04:24.636Z","date_to":"2026-03-23T18:04:24.636Z","per_page":"100"} 
[2026-03-23 18:04:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","paid","pending","pending","paid","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":10,"unique_order_numbers":19} 
[2026-03-23 18:04:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T06:04:27.571Z","date_to":"2026-03-23T18:04:27.571Z","per_page":"100"} 
[2026-03-23 18:04:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T06:04:27.582Z","date_to":"2026-03-23T18:04:27.582Z","per_page":"100"} 
[2026-03-23 18:04:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","paid","pending","pending","paid","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":10,"unique_order_numbers":19} 
[2026-03-23 18:04:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","paid","pending","pending","paid","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":10,"unique_order_numbers":19} 
[2026-03-23 18:04:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T06:04:27.571Z","date_to":"2026-03-23T18:04:27.571Z","per_page":"100"} 
[2026-03-23 18:04:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","paid","pending","pending","paid","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":10,"unique_order_numbers":19} 
[2026-03-23 18:04:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6235,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":29678},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":29679},{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":29680},{"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null,"id":29681},{"menu_item_id":52,"quantity":9,"discount_percent":0,"notes":null,"id":29682},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":29683},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29684},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29685},{"menu_item_id":29,"quantity":6,"discount_percent":0,"notes":null,"id":29686},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":29687}],"validated_items":[{"id":29678,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":29679,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":29680,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":29681,"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null},{"id":29682,"menu_item_id":52,"quantity":9,"discount_percent":0,"notes":null},{"id":29683,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":29684,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29685,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":29686,"menu_item_id":29,"quantity":6,"discount_percent":0,"notes":null},{"id":29687,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:04:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6235,"items_count":10} 
[2026-03-23 18:04:42] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29678,"menu_item_id":97,"quantity":1},{"id":29679,"menu_item_id":106,"quantity":1},{"id":29680,"menu_item_id":78,"quantity":1},{"id":29681,"menu_item_id":393,"quantity":1},{"id":29682,"menu_item_id":52,"quantity":9},{"id":29683,"menu_item_id":61,"quantity":2},{"id":29684,"menu_item_id":56,"quantity":1},{"id":29685,"menu_item_id":5,"quantity":1},{"id":29686,"menu_item_id":29,"quantity":6},{"id":29687,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 18:04:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6235,"has_item_changes":true,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["97|1|","106|1|","78|1|","393|1|","52|9|","61|2|","56|1|","5|1|","29|4|","3|1|"],"new_items_map_keys":["97|1|","106|1|","78|1|","393|1|","52|9|","61|2|","56|1|","5|1|","29|6|","3|1|"]} 
[2026-03-23 18:04:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6235,"order_number":"AZS-230326-009"} 
[2026-03-23 18:04:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-009","replaced_order_id":6235} 
[2026-03-23 18:04:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6236,"items_count":10,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":393,"quantity":1,"price":"499.00"},{"menu_item_id":52,"quantity":9,"price":"70.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":29,"quantity":6,"price":"250.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-23 18:04:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6236,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6236}} 
[2026-03-23 18:04:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6236,"item_index":0,"menu_item_id":97} 
[2026-03-23 18:04:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6236,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6236}} 
[2026-03-23 18:04:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6236,"item_index":1,"menu_item_id":106} 
[2026-03-23 18:04:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6236,"item_index":2,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6236}} 
[2026-03-23 18:04:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6236,"item_index":2,"menu_item_id":78} 
[2026-03-23 18:04:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6236,"item_index":3,"item_data":{"menu_item_id":393,"restaurant_category_id":35,"restaurant_category_name":"ROCK N ROLL","item_name":"Chicken Shawarma","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6236}} 
[2026-03-23 18:04:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6236,"item_index":3,"menu_item_id":393} 
[2026-03-23 18:04:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6236,"item_index":4,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":9,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":630.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6236}} 
[2026-03-23 18:04:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6236,"item_index":4,"menu_item_id":52} 
[2026-03-23 18:04:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6236,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6236}} 
[2026-03-23 18:04:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6236,"item_index":5,"menu_item_id":61} 
[2026-03-23 18:04:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6236,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6236}} 
[2026-03-23 18:04:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6236,"item_index":6,"menu_item_id":56} 
[2026-03-23 18:04:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6236,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6236}} 
[2026-03-23 18:04:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6236,"item_index":7,"menu_item_id":5} 
[2026-03-23 18:04:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6236,"item_index":8,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":6,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6236}} 
[2026-03-23 18:04:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6236,"item_index":8,"menu_item_id":29} 
[2026-03-23 18:04:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6236,"item_index":9,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6236}} 
[2026-03-23 18:04:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6236,"item_index":9,"menu_item_id":3} 
[2026-03-23 18:04:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6235,"new_order_id":6236,"order_number":"AZS-230326-009"} 
[2026-03-23 18:05:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6218,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":29582},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":29583},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":29584},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":29585},{"menu_item_id":49,"quantity":5,"discount_percent":0,"notes":null,"id":29586},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29587},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29582,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":29583,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":29584,"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"id":29585,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":29586,"menu_item_id":49,"quantity":5,"discount_percent":0,"notes":null},{"id":29587,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:05:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6218,"items_count":7} 
[2026-03-23 18:05:17] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29582,"menu_item_id":106,"quantity":1},{"id":29583,"menu_item_id":112,"quantity":1},{"id":29584,"menu_item_id":61,"quantity":4},{"id":29585,"menu_item_id":56,"quantity":2},{"id":29586,"menu_item_id":49,"quantity":5},{"id":29587,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 18:05:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6218,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["106|1|","112|1|","61|4|","56|2|","49|5|","5|1|"],"new_items_map_keys":["106|1|","112|1|","61|4|","56|2|","49|5|","5|1|","3|1|"]} 
[2026-03-23 18:05:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6218,"order_number":"AZS-230326-012"} 
[2026-03-23 18:05:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-012","replaced_order_id":6218} 
[2026-03-23 18:05:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6237,"items_count":7,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":61,"quantity":4,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":49,"quantity":5,"price":"70.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-23 18:05:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6237,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6237}} 
[2026-03-23 18:05:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6237,"item_index":0,"menu_item_id":106} 
[2026-03-23 18:05:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6237,"item_index":1,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6237}} 
[2026-03-23 18:05:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6237,"item_index":1,"menu_item_id":112} 
[2026-03-23 18:05:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6237,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6237}} 
[2026-03-23 18:05:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6237,"item_index":2,"menu_item_id":61} 
[2026-03-23 18:05:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6237,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6237}} 
[2026-03-23 18:05:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6237,"item_index":3,"menu_item_id":56} 
[2026-03-23 18:05:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6237,"item_index":4,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":5,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":350.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6237}} 
[2026-03-23 18:05:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6237,"item_index":4,"menu_item_id":49} 
[2026-03-23 18:05:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6237,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6237}} 
[2026-03-23 18:05:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6237,"item_index":5,"menu_item_id":5} 
[2026-03-23 18:05:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6237,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6237}} 
[2026-03-23 18:05:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6237,"item_index":6,"menu_item_id":3} 
[2026-03-23 18:05:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6218,"new_order_id":6237,"order_number":"AZS-230326-012"} 
[2026-03-23 18:06:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":1,"order_id":6232,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null,"id":29653},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":29654},{"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null,"id":29655},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":29656},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":29657},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null,"id":29658},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":29660}],"validated_items":[{"id":29653,"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null},{"id":29654,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":29655,"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null},{"id":29656,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":29657,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":29658,"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null},{"id":29660,"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:06:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6232,"items_count":7} 
[2026-03-23 18:06:13] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":1,"items_to_remove":[29659],"items":[{"id":29653,"menu_item_id":114,"quantity":2},{"id":29654,"menu_item_id":105,"quantity":1},{"id":29655,"menu_item_id":396,"quantity":7},{"id":29656,"menu_item_id":61,"quantity":2},{"id":29657,"menu_item_id":5,"quantity":2},{"id":29658,"menu_item_id":29,"quantity":1},{"id":29660,"menu_item_id":3,"quantity":2}]} 
[2026-03-23 18:06:13] local.INFO: PosOrderController::update - Item changes check {"order_id":6232,"has_item_changes":true,"old_items_count":8,"new_items_count":7,"old_items_map_keys":["114|2|","105|1|","396|7|","61|2|","5|2|","29|1|","96|1|","3|2|"],"new_items_map_keys":["114|2|","105|1|","396|7|","61|2|","5|2|","29|1|","3|2|"]} 
[2026-03-23 18:06:13] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6232,"order_number":"AZS-230326-006"} 
[2026-03-23 18:06:13] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-006","replaced_order_id":6232} 
[2026-03-23 18:06:13] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6238,"items_count":7,"items":[{"menu_item_id":114,"quantity":2,"price":"2299.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":7,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-03-23 18:06:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6238,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6238}} 
[2026-03-23 18:06:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6238,"item_index":0,"menu_item_id":114} 
[2026-03-23 18:06:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6238,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6238}} 
[2026-03-23 18:06:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6238,"item_index":1,"menu_item_id":105} 
[2026-03-23 18:06:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6238,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":7,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":693.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6238}} 
[2026-03-23 18:06:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6238,"item_index":2,"menu_item_id":396} 
[2026-03-23 18:06:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6238,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6238}} 
[2026-03-23 18:06:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6238,"item_index":3,"menu_item_id":61} 
[2026-03-23 18:06:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6238,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6238}} 
[2026-03-23 18:06:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6238,"item_index":4,"menu_item_id":5} 
[2026-03-23 18:06:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6238,"item_index":5,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6238}} 
[2026-03-23 18:06:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6238,"item_index":5,"menu_item_id":29} 
[2026-03-23 18:06:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6238,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6238}} 
[2026-03-23 18:06:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6238,"item_index":6,"menu_item_id":3} 
[2026-03-23 18:06:13] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6232,"new_order_id":6238,"order_number":"AZS-230326-006"} 
[2026-03-23 18:06:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6238,"item_index":0,"item_id":29653} 
[2026-03-23 18:06:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6238,"item_index":1,"item_id":29654} 
[2026-03-23 18:06:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6238,"item_index":2,"item_id":29655} 
[2026-03-23 18:06:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6238,"item_index":3,"item_id":29656} 
[2026-03-23 18:06:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6238,"item_index":4,"item_id":29657} 
[2026-03-23 18:06:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6238,"item_index":5,"item_id":29658} 
[2026-03-23 18:06:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6238,"item_index":6,"item_id":29660} 
[2026-03-23 18:06:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":6238,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":29653},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":29654},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null,"id":29655},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29656},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":29657},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":29658},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":29660}],"validated_items":[{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:06:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6238,"items_count":7} 
[2026-03-23 18:06:21] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[29705,29706,29707,29708,29709,29710,29711],"items":[{"id":null,"menu_item_id":114,"quantity":2},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":396,"quantity":7},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":29,"quantity":1},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-03-23 18:06:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6238,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|2|","105|1|","396|7|","61|2|","5|2|","29|1|","3|2|"],"new_items_map_keys":["114|2|","105|1|","396|7|","61|2|","5|2|","29|1|","3|2|"]} 
[2026-03-23 18:06:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6238,"order_number":"AZS-230326-006"} 
[2026-03-23 18:06:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6238,"order_number":"AZS-230326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 18:06:21"} 
[2026-03-23 18:07:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T06:07:38.602Z","date_to":"2026-03-23T18:07:38.602Z","per_page":"100"} 
[2026-03-23 18:07:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","paid","pending","pending","paid","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":10,"unique_order_numbers":19} 
[2026-03-23 18:07:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T06:07:38.582Z","date_to":"2026-03-23T18:07:38.582Z","per_page":"100"} 
[2026-03-23 18:07:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","paid","pending","pending","paid","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":10,"unique_order_numbers":19} 
[2026-03-23 18:07:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T06:07:38.582Z","date_to":"2026-03-23T18:07:38.582Z","per_page":"100"} 
[2026-03-23 18:07:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","paid","pending","pending","paid","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":10,"unique_order_numbers":19} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6236,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":29688},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":29689},{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":29690},{"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null,"id":29691},{"menu_item_id":52,"quantity":9,"discount_percent":0,"notes":null,"id":29692},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":29693},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29694},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29695},{"menu_item_id":29,"quantity":7,"discount_percent":0,"notes":null,"id":29696},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":29697}],"validated_items":[{"id":29688,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":29689,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":29690,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":29691,"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null},{"id":29692,"menu_item_id":52,"quantity":9,"discount_percent":0,"notes":null},{"id":29693,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":29694,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29695,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":29696,"menu_item_id":29,"quantity":7,"discount_percent":0,"notes":null},{"id":29697,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6236,"items_count":10} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29688,"menu_item_id":97,"quantity":1},{"id":29689,"menu_item_id":106,"quantity":1},{"id":29690,"menu_item_id":78,"quantity":1},{"id":29691,"menu_item_id":393,"quantity":1},{"id":29692,"menu_item_id":52,"quantity":9},{"id":29693,"menu_item_id":61,"quantity":2},{"id":29694,"menu_item_id":56,"quantity":1},{"id":29695,"menu_item_id":5,"quantity":1},{"id":29696,"menu_item_id":29,"quantity":7},{"id":29697,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6236,"has_item_changes":true,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["97|1|","106|1|","78|1|","393|1|","52|9|","61|2|","56|1|","5|1|","29|6|","3|1|"],"new_items_map_keys":["97|1|","106|1|","78|1|","393|1|","52|9|","61|2|","56|1|","5|1|","29|7|","3|1|"]} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6236,"order_number":"AZS-230326-009"} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-009","replaced_order_id":6236} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6240,"items_count":10,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":393,"quantity":1,"price":"499.00"},{"menu_item_id":52,"quantity":9,"price":"70.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":29,"quantity":7,"price":"250.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6240,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6240}} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6240,"item_index":0,"menu_item_id":97} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6240,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6240}} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6240,"item_index":1,"menu_item_id":106} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6240,"item_index":2,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6240}} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6240,"item_index":2,"menu_item_id":78} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6240,"item_index":3,"item_data":{"menu_item_id":393,"restaurant_category_id":35,"restaurant_category_name":"ROCK N ROLL","item_name":"Chicken Shawarma","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6240}} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6240,"item_index":3,"menu_item_id":393} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6240,"item_index":4,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":9,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":630.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6240}} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6240,"item_index":4,"menu_item_id":52} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6240,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6240}} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6240,"item_index":5,"menu_item_id":61} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6240,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6240}} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6240,"item_index":6,"menu_item_id":56} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6240,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6240}} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6240,"item_index":7,"menu_item_id":5} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6240,"item_index":8,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":7,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1750.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6240}} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6240,"item_index":8,"menu_item_id":29} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6240,"item_index":9,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6240}} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6240,"item_index":9,"menu_item_id":3} 
[2026-03-23 18:11:12] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6236,"new_order_id":6240,"order_number":"AZS-230326-009"} 
[2026-03-23 18:15:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6221,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":29601},{"menu_item_id":7,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":29602},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null,"id":29603}],"validated_items":[{"id":29601,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":29602,"menu_item_id":7,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":29603,"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:15:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6221,"items_count":3} 
[2026-03-23 18:15:20] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29601,"menu_item_id":13,"quantity":1},{"id":29602,"menu_item_id":7,"quantity":1},{"id":29603,"menu_item_id":4,"quantity":2}]} 
[2026-03-23 18:15:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6221,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["13|1|","7|1|","4|2|"],"new_items_map_keys":["13|1|","7|1|","4|2|"]} 
[2026-03-23 18:15:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6221,"order_number":"AZS-230326-015"} 
[2026-03-23 18:15:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6221,"order_number":"AZS-230326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 18:15:20"} 
[2026-03-23 18:15:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6238,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":29705},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":29706},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null,"id":29707},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29708},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":29709},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":29710},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":29711}],"validated_items":[{"id":29705,"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"id":29706,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":29707,"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null},{"id":29708,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29709,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":29710,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":29711,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:15:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6238,"items_count":7} 
[2026-03-23 18:15:33] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29705,"menu_item_id":114,"quantity":2},{"id":29706,"menu_item_id":105,"quantity":1},{"id":29707,"menu_item_id":396,"quantity":7},{"id":29708,"menu_item_id":61,"quantity":2},{"id":29709,"menu_item_id":5,"quantity":2},{"id":29710,"menu_item_id":29,"quantity":1},{"id":29711,"menu_item_id":3,"quantity":2}]} 
[2026-03-23 18:15:33] local.INFO: PosOrderController::update - Item changes check {"order_id":6238,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|2|","105|1|","396|7|","61|2|","5|2|","29|1|","3|2|"],"new_items_map_keys":["114|2|","105|1|","396|7|","61|2|","5|2|","29|1|","3|2|"]} 
[2026-03-23 18:15:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6238,"order_number":"AZS-230326-006"} 
[2026-03-23 18:15:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6238,"order_number":"AZS-230326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 18:15:33"} 
[2026-03-23 18:18:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6238,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":29705},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":29706},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null,"id":29707},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29708},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":29709},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":29710},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":29711}],"validated_items":[{"id":29705,"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"id":29706,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":29707,"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null},{"id":29708,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29709,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":29710,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":29711,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:18:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6238,"items_count":7} 
[2026-03-23 18:18:43] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29705,"menu_item_id":114,"quantity":2},{"id":29706,"menu_item_id":105,"quantity":1},{"id":29707,"menu_item_id":396,"quantity":7},{"id":29708,"menu_item_id":61,"quantity":2},{"id":29709,"menu_item_id":5,"quantity":2},{"id":29710,"menu_item_id":29,"quantity":1},{"id":29711,"menu_item_id":3,"quantity":2}]} 
[2026-03-23 18:18:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6238,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|2|","105|1|","396|7|","61|2|","5|2|","29|1|","3|2|"],"new_items_map_keys":["114|2|","105|1|","396|7|","61|2|","5|2|","29|1|","3|2|"]} 
[2026-03-23 18:18:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6238,"order_number":"AZS-230326-006"} 
[2026-03-23 18:18:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6238,"order_number":"AZS-230326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 18:18:43"} 
[2026-03-23 18:19:13] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6238,"order_number":"AZS-230326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 18:19:13"} 
[2026-03-23 18:19:13] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6238,"order_number":"AZS-230326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 18:19:13"} 
[2026-03-23 18:19:13] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6238,"order_number":"AZS-230326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 18:19:13"} 
[2026-03-23 18:19:13] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6238,"order_number":"AZS-230326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 18:19:13"} 
[2026-03-23 18:19:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6238,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":29705},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":29706},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null,"id":29707},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29708},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":29709},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":29710},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":29711}],"validated_items":[{"id":29705,"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"id":29706,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":29707,"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null},{"id":29708,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29709,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":29710,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":29711,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:19:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6238,"items_count":7} 
[2026-03-23 18:19:13] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29705,"menu_item_id":114,"quantity":2},{"id":29706,"menu_item_id":105,"quantity":1},{"id":29707,"menu_item_id":396,"quantity":7},{"id":29708,"menu_item_id":61,"quantity":2},{"id":29709,"menu_item_id":5,"quantity":2},{"id":29710,"menu_item_id":29,"quantity":1},{"id":29711,"menu_item_id":3,"quantity":2}]} 
[2026-03-23 18:19:13] local.INFO: PosOrderController::update - Item changes check {"order_id":6238,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|2|","105|1|","396|7|","61|2|","5|2|","29|1|","3|2|"],"new_items_map_keys":["114|2|","105|1|","396|7|","61|2|","5|2|","29|1|","3|2|"]} 
[2026-03-23 18:19:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6238,"order_number":"AZS-230326-006"} 
[2026-03-23 18:19:13] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6238,"order_number":"AZS-230326-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":10000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 18:19:13","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 18:19:13"} 
[2026-03-23 18:19:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6238,"order_number":"AZS-230326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 18:19:13"} 
[2026-03-23 18:19:13] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6238,"order_number":"AZS-230326-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"10000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 18:19:13","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"10000.00","database_verification_match":true,"timestamp":"2026-03-23 18:19:13"} 
[2026-03-23 18:21:21] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6221,"order_number":"AZS-230326-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 18:21:21"} 
[2026-03-23 18:21:21] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6221,"order_number":"AZS-230326-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 18:21:21"} 
[2026-03-23 18:21:21] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6221,"order_number":"AZS-230326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 18:21:21"} 
[2026-03-23 18:21:21] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6221,"order_number":"AZS-230326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 18:21:21"} 
[2026-03-23 18:21:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6221,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":29601},{"menu_item_id":7,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":29602},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null,"id":29603}],"validated_items":[{"id":29601,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":29602,"menu_item_id":7,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":29603,"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:21:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6221,"items_count":3} 
[2026-03-23 18:21:21] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29601,"menu_item_id":13,"quantity":1},{"id":29602,"menu_item_id":7,"quantity":1},{"id":29603,"menu_item_id":4,"quantity":2}]} 
[2026-03-23 18:21:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6221,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["13|1|","7|1|","4|2|"],"new_items_map_keys":["13|1|","7|1|","4|2|"]} 
[2026-03-23 18:21:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6221,"order_number":"AZS-230326-015"} 
[2026-03-23 18:21:21] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6221,"order_number":"AZS-230326-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 18:21:21","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 18:21:21"} 
[2026-03-23 18:21:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6221,"order_number":"AZS-230326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 18:21:21"} 
[2026-03-23 18:21:21] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6221,"order_number":"AZS-230326-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 18:21:21","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-23 18:21:21"} 
[2026-03-23 18:21:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6240,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29720},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":29721},{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":29722},{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":29723},{"menu_item_id":52,"quantity":9,"price":70,"discount_percent":0,"notes":null,"id":29724},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29725},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29726},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29727},{"menu_item_id":29,"quantity":7,"price":250,"discount_percent":0,"notes":null,"id":29728},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29729}],"validated_items":[{"id":29720,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":29721,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":29722,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":29723,"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":29724,"menu_item_id":52,"quantity":9,"price":70,"discount_percent":0,"notes":null},{"id":29725,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29726,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29727,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29728,"menu_item_id":29,"quantity":7,"price":250,"discount_percent":0,"notes":null},{"id":29729,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:21:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6240,"items_count":10} 
[2026-03-23 18:21:33] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29720,"menu_item_id":97,"quantity":1},{"id":29721,"menu_item_id":106,"quantity":1},{"id":29722,"menu_item_id":78,"quantity":1},{"id":29723,"menu_item_id":393,"quantity":1},{"id":29724,"menu_item_id":52,"quantity":9},{"id":29725,"menu_item_id":61,"quantity":2},{"id":29726,"menu_item_id":56,"quantity":1},{"id":29727,"menu_item_id":5,"quantity":1},{"id":29728,"menu_item_id":29,"quantity":7},{"id":29729,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 18:21:33] local.INFO: PosOrderController::update - Item changes check {"order_id":6240,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["97|1|","106|1|","78|1|","393|1|","52|9|","61|2|","56|1|","5|1|","29|7|","3|1|"],"new_items_map_keys":["97|1|","106|1|","78|1|","393|1|","52|9|","61|2|","56|1|","5|1|","29|7|","3|1|"]} 
[2026-03-23 18:21:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6240,"order_number":"AZS-230326-009"} 
[2026-03-23 18:21:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6240,"order_number":"AZS-230326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 18:21:33"} 
[2026-03-23 18:23:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6241,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29730}],"validated_items":[{"id":29730,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:23:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6241,"items_count":1} 
[2026-03-23 18:23:09] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29730,"menu_item_id":5,"quantity":1}]} 
[2026-03-23 18:23:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6241,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["5|1|"],"new_items_map_keys":["5|1|"]} 
[2026-03-23 18:23:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6241,"order_number":"AZS-230326-021"} 
[2026-03-23 18:23:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6241,"order_number":"AZS-230326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-23 18:23:09"} 
[2026-03-23 18:23:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T06:23:35.204Z","date_to":"2026-03-23T18:23:35.204Z","per_page":"100"} 
[2026-03-23 18:23:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T06:23:35.218Z","date_to":"2026-03-23T18:23:35.218Z","per_page":"100"} 
[2026-03-23 18:23:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","paid","pending","paid","pending","pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":11,"unique_order_numbers":22} 
[2026-03-23 18:23:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","paid","pending","paid","pending","pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":11,"unique_order_numbers":22} 
[2026-03-23 18:23:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T06:23:35.204Z","date_to":"2026-03-23T18:23:35.204Z","per_page":"100"} 
[2026-03-23 18:23:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","paid","pending","paid","pending","pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":11,"unique_order_numbers":22} 
[2026-03-23 18:25:12] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6240,"order_number":"AZS-230326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":16000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 18:25:12"} 
[2026-03-23 18:25:12] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6240,"order_number":"AZS-230326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":16000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 18:25:12"} 
[2026-03-23 18:25:12] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6240,"order_number":"AZS-230326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":16000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 18:25:12"} 
[2026-03-23 18:25:12] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6240,"order_number":"AZS-230326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":16000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 18:25:12"} 
[2026-03-23 18:25:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6240,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29720},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":29721},{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":29722},{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":29723},{"menu_item_id":52,"quantity":9,"price":70,"discount_percent":0,"notes":null,"id":29724},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29725},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29726},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29727},{"menu_item_id":29,"quantity":7,"price":250,"discount_percent":0,"notes":null,"id":29728},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29729}],"validated_items":[{"id":29720,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":29721,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":29722,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":29723,"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":29724,"menu_item_id":52,"quantity":9,"price":70,"discount_percent":0,"notes":null},{"id":29725,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29726,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29727,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29728,"menu_item_id":29,"quantity":7,"price":250,"discount_percent":0,"notes":null},{"id":29729,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:25:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6240,"items_count":10} 
[2026-03-23 18:25:12] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29720,"menu_item_id":97,"quantity":1},{"id":29721,"menu_item_id":106,"quantity":1},{"id":29722,"menu_item_id":78,"quantity":1},{"id":29723,"menu_item_id":393,"quantity":1},{"id":29724,"menu_item_id":52,"quantity":9},{"id":29725,"menu_item_id":61,"quantity":2},{"id":29726,"menu_item_id":56,"quantity":1},{"id":29727,"menu_item_id":5,"quantity":1},{"id":29728,"menu_item_id":29,"quantity":7},{"id":29729,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 18:25:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6240,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["97|1|","106|1|","78|1|","393|1|","52|9|","61|2|","56|1|","5|1|","29|7|","3|1|"],"new_items_map_keys":["97|1|","106|1|","78|1|","393|1|","52|9|","61|2|","56|1|","5|1|","29|7|","3|1|"]} 
[2026-03-23 18:25:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6240,"order_number":"AZS-230326-009"} 
[2026-03-23 18:25:12] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6240,"order_number":"AZS-230326-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":16000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 18:25:12","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 18:25:12"} 
[2026-03-23 18:25:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6240,"order_number":"AZS-230326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 18:25:12"} 
[2026-03-23 18:25:12] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6240,"order_number":"AZS-230326-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"16000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 18:25:12","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":16000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"16000.00","database_verification_match":true,"timestamp":"2026-03-23 18:25:12"} 
[2026-03-23 18:32:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6237,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":29698},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":29699},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":29700},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":29701},{"menu_item_id":49,"quantity":8,"discount_percent":0,"notes":null,"id":29702},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29703},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":29704}],"validated_items":[{"id":29698,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":29699,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":29700,"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"id":29701,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":29702,"menu_item_id":49,"quantity":8,"discount_percent":0,"notes":null},{"id":29703,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":29704,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:32:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6237,"items_count":7} 
[2026-03-23 18:32:43] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29698,"menu_item_id":106,"quantity":1},{"id":29699,"menu_item_id":112,"quantity":1},{"id":29700,"menu_item_id":61,"quantity":4},{"id":29701,"menu_item_id":56,"quantity":2},{"id":29702,"menu_item_id":49,"quantity":8},{"id":29703,"menu_item_id":5,"quantity":1},{"id":29704,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 18:32:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6237,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","112|1|","61|4|","56|2|","49|5|","5|1|","3|1|"],"new_items_map_keys":["106|1|","112|1|","61|4|","56|2|","49|8|","5|1|","3|1|"]} 
[2026-03-23 18:32:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6237,"order_number":"AZS-230326-012"} 
[2026-03-23 18:32:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-012","replaced_order_id":6237} 
[2026-03-23 18:32:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6244,"items_count":7,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":61,"quantity":4,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":49,"quantity":8,"price":"70.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-23 18:32:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6244,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6244}} 
[2026-03-23 18:32:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6244,"item_index":0,"menu_item_id":106} 
[2026-03-23 18:32:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6244,"item_index":1,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6244}} 
[2026-03-23 18:32:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6244,"item_index":1,"menu_item_id":112} 
[2026-03-23 18:32:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6244,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6244}} 
[2026-03-23 18:32:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6244,"item_index":2,"menu_item_id":61} 
[2026-03-23 18:32:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6244,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6244}} 
[2026-03-23 18:32:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6244,"item_index":3,"menu_item_id":56} 
[2026-03-23 18:32:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6244,"item_index":4,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":8,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":560.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6244}} 
[2026-03-23 18:32:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6244,"item_index":4,"menu_item_id":49} 
[2026-03-23 18:32:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6244,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6244}} 
[2026-03-23 18:32:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6244,"item_index":5,"menu_item_id":5} 
[2026-03-23 18:32:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6244,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6244}} 
[2026-03-23 18:32:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6244,"item_index":6,"menu_item_id":3} 
[2026-03-23 18:32:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6237,"new_order_id":6244,"order_number":"AZS-230326-012"} 
[2026-03-23 18:32:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6244,"item_index":0,"item_id":29698} 
[2026-03-23 18:32:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6244,"item_index":1,"item_id":29699} 
[2026-03-23 18:32:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6244,"item_index":2,"item_id":29700} 
[2026-03-23 18:32:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6244,"item_index":3,"item_id":29701} 
[2026-03-23 18:32:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6244,"item_index":4,"item_id":29702} 
[2026-03-23 18:32:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6244,"item_index":5,"item_id":29703} 
[2026-03-23 18:32:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6244,"item_index":6,"item_id":29704} 
[2026-03-23 18:32:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":6244,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":29698},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":29699},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":29700},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29701},{"menu_item_id":49,"quantity":8,"price":70,"discount_percent":0,"notes":null,"id":29702},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29703},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29704}],"validated_items":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":8,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:32:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6244,"items_count":7} 
[2026-03-23 18:32:48] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[29738,29739,29740,29741,29742,29743,29744],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":112,"quantity":1},{"id":null,"menu_item_id":61,"quantity":4},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":49,"quantity":8},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 18:32:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6244,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","112|1|","61|4|","56|2|","49|8|","5|1|","3|1|"],"new_items_map_keys":["106|1|","112|1|","61|4|","56|2|","49|8|","5|1|","3|1|"]} 
[2026-03-23 18:32:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6244,"order_number":"AZS-230326-012"} 
[2026-03-23 18:32:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6244,"order_number":"AZS-230326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 18:32:48"} 
[2026-03-23 18:34:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6244,"item_index":0,"item_id":29698} 
[2026-03-23 18:34:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6244,"item_index":1,"item_id":29699} 
[2026-03-23 18:34:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6244,"item_index":2,"item_id":29700} 
[2026-03-23 18:34:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6244,"item_index":3,"item_id":29701} 
[2026-03-23 18:34:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6244,"item_index":4,"item_id":29702} 
[2026-03-23 18:34:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6244,"item_index":5,"item_id":29703} 
[2026-03-23 18:34:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6244,"item_index":6,"item_id":29704} 
[2026-03-23 18:34:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":6244,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":29698},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":29699},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":29700},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29701},{"menu_item_id":49,"quantity":8,"price":70,"discount_percent":0,"notes":null,"id":29702},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29703},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29704}],"validated_items":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":8,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:34:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6244,"items_count":7} 
[2026-03-23 18:34:06] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[29738,29739,29740,29741,29742,29743,29744],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":112,"quantity":1},{"id":null,"menu_item_id":61,"quantity":4},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":49,"quantity":8},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 18:34:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6244,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","112|1|","61|4|","56|2|","49|8|","5|1|","3|1|"],"new_items_map_keys":["106|1|","112|1|","61|4|","56|2|","49|8|","5|1|","3|1|"]} 
[2026-03-23 18:34:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6244,"order_number":"AZS-230326-012"} 
[2026-03-23 18:34:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6244,"order_number":"AZS-230326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 18:34:06"} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":6220,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":29590},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":29591},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":29592},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":29593},{"menu_item_id":50,"quantity":10,"discount_percent":0,"notes":null,"id":29594},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":29595},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":29596},{"menu_item_id":173,"quantity":2,"discount_percent":0,"notes":null,"id":29597},{"menu_item_id":172,"quantity":1,"discount_percent":0,"notes":null,"id":29598},{"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null,"id":29599},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":29600},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29590,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":29591,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":29592,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":29593,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":29594,"menu_item_id":50,"quantity":10,"discount_percent":0,"notes":null},{"id":29595,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":29596,"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"id":29597,"menu_item_id":173,"quantity":2,"discount_percent":0,"notes":null},{"id":29598,"menu_item_id":172,"quantity":1,"discount_percent":0,"notes":null},{"id":29599,"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null},{"id":29600,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6220,"items_count":12} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29590,"menu_item_id":106,"quantity":1},{"id":29591,"menu_item_id":105,"quantity":1},{"id":29592,"menu_item_id":65,"quantity":1},{"id":29593,"menu_item_id":112,"quantity":1},{"id":29594,"menu_item_id":50,"quantity":10},{"id":29595,"menu_item_id":61,"quantity":3},{"id":29596,"menu_item_id":56,"quantity":3},{"id":29597,"menu_item_id":173,"quantity":2},{"id":29598,"menu_item_id":172,"quantity":1},{"id":29599,"menu_item_id":393,"quantity":1},{"id":29600,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":137,"quantity":1}]} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6220,"has_item_changes":true,"old_items_count":11,"new_items_count":12,"old_items_map_keys":["106|1|","105|1|","65|1|","112|1|","50|10|","61|3|","56|3|","173|2|","172|1|","393|1|","5|2|"],"new_items_map_keys":["106|1|","105|1|","65|1|","112|1|","50|10|","61|3|","56|3|","173|2|","172|1|","393|1|","5|2|","137|1|"]} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6220,"order_number":"AZS-230326-014"} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-014","replaced_order_id":6220} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6245,"items_count":12,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":50,"quantity":10,"price":"129.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":3,"price":"199.00"},{"menu_item_id":173,"quantity":2,"price":"649.00"},{"menu_item_id":172,"quantity":1,"price":"999.00"},{"menu_item_id":393,"quantity":1,"price":"499.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":137,"quantity":1,"price":"1299.00"}]} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6245,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6245}} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6245,"item_index":0,"menu_item_id":106} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6245,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6245}} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6245,"item_index":1,"menu_item_id":105} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6245,"item_index":2,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6245}} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6245,"item_index":2,"menu_item_id":65} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6245,"item_index":3,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6245}} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6245,"item_index":3,"menu_item_id":112} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6245,"item_index":4,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":10,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":1290.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6245}} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6245,"item_index":4,"menu_item_id":50} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6245,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6245}} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6245,"item_index":5,"menu_item_id":61} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6245,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6245}} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6245,"item_index":6,"menu_item_id":56} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6245,"item_index":7,"item_data":{"menu_item_id":173,"restaurant_category_id":17,"restaurant_category_name":"BURGER","item_name":"Grilled Cheese Burger","quantity":2,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":1298.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6245}} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6245,"item_index":7,"menu_item_id":173} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6245,"item_index":8,"item_data":{"menu_item_id":172,"restaurant_category_id":17,"restaurant_category_name":"BURGER","item_name":"Zinger Burger","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6245}} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6245,"item_index":8,"menu_item_id":172} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6245,"item_index":9,"item_data":{"menu_item_id":393,"restaurant_category_id":35,"restaurant_category_name":"ROCK N ROLL","item_name":"Chicken Shawarma","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6245}} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6245,"item_index":9,"menu_item_id":393} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6245,"item_index":10,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6245}} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6245,"item_index":10,"menu_item_id":5} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6245,"item_index":11,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6245}} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6245,"item_index":11,"menu_item_id":137} 
[2026-03-23 18:34:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6220,"new_order_id":6245,"order_number":"AZS-230326-014"} 
[2026-03-23 18:34:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6245,"item_index":0,"item_id":29590} 
[2026-03-23 18:34:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6245,"item_index":1,"item_id":29591} 
[2026-03-23 18:34:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6245,"item_index":2,"item_id":29592} 
[2026-03-23 18:34:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6245,"item_index":3,"item_id":29593} 
[2026-03-23 18:34:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6245,"item_index":4,"item_id":29594} 
[2026-03-23 18:34:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6245,"item_index":5,"item_id":29595} 
[2026-03-23 18:34:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6245,"item_index":6,"item_id":29596} 
[2026-03-23 18:34:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6245,"item_index":7,"item_id":29597} 
[2026-03-23 18:34:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6245,"item_index":8,"item_id":29598} 
[2026-03-23 18:34:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6245,"item_index":9,"item_id":29599} 
[2026-03-23 18:34:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6245,"item_index":10,"item_id":29600} 
[2026-03-23 18:34:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":12,"order_id":6245,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":29590},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":29591},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":29592},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":29593},{"menu_item_id":50,"quantity":10,"price":129,"discount_percent":0,"notes":null,"id":29594},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":29595},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":29596},{"menu_item_id":173,"quantity":2,"price":649,"discount_percent":0,"notes":null,"id":29597},{"menu_item_id":172,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":29598},{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":29599},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":29600},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":10,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":173,"quantity":2,"price":649,"discount_percent":0,"notes":null},{"menu_item_id":172,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:34:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6245,"items_count":12} 
[2026-03-23 18:34:49] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":12,"items_to_remove":[29745,29746,29747,29748,29749,29750,29751,29752,29753,29754,29755,29756],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":112,"quantity":1},{"id":null,"menu_item_id":50,"quantity":10},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":3},{"id":null,"menu_item_id":173,"quantity":2},{"id":null,"menu_item_id":172,"quantity":1},{"id":null,"menu_item_id":393,"quantity":1},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":137,"quantity":1}]} 
[2026-03-23 18:34:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6245,"has_item_changes":false,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["106|1|","105|1|","65|1|","112|1|","50|10|","61|3|","56|3|","173|2|","172|1|","393|1|","5|2|","137|1|"],"new_items_map_keys":["106|1|","105|1|","65|1|","112|1|","50|10|","61|3|","56|3|","173|2|","172|1|","393|1|","5|2|","137|1|"]} 
[2026-03-23 18:34:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6245,"order_number":"AZS-230326-014"} 
[2026-03-23 18:34:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6245,"order_number":"AZS-230326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 18:34:49"} 
[2026-03-23 18:36:49] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6244,"order_number":"AZS-230326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":8100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 18:36:49"} 
[2026-03-23 18:36:49] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6244,"order_number":"AZS-230326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":8100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 18:36:49"} 
[2026-03-23 18:36:49] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6244,"order_number":"AZS-230326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":8100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 18:36:49"} 
[2026-03-23 18:36:49] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6244,"order_number":"AZS-230326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":8100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 18:36:49"} 
[2026-03-23 18:36:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6244,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":29738},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":29739},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":29740},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29741},{"menu_item_id":49,"quantity":8,"price":70,"discount_percent":0,"notes":null,"id":29742},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29743},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29744}],"validated_items":[{"id":29738,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":29739,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":29740,"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":29741,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29742,"menu_item_id":49,"quantity":8,"price":70,"discount_percent":0,"notes":null},{"id":29743,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29744,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:36:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6244,"items_count":7} 
[2026-03-23 18:36:49] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29738,"menu_item_id":106,"quantity":1},{"id":29739,"menu_item_id":112,"quantity":1},{"id":29740,"menu_item_id":61,"quantity":4},{"id":29741,"menu_item_id":56,"quantity":2},{"id":29742,"menu_item_id":49,"quantity":8},{"id":29743,"menu_item_id":5,"quantity":1},{"id":29744,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 18:36:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6244,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","112|1|","61|4|","56|2|","49|8|","5|1|","3|1|"],"new_items_map_keys":["106|1|","112|1|","61|4|","56|2|","49|8|","5|1|","3|1|"]} 
[2026-03-23 18:36:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6244,"order_number":"AZS-230326-012"} 
[2026-03-23 18:36:49] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6244,"order_number":"AZS-230326-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":8100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 18:36:49","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 18:36:49"} 
[2026-03-23 18:36:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6244,"order_number":"AZS-230326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 18:36:49"} 
[2026-03-23 18:36:49] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6244,"order_number":"AZS-230326-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"8100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 18:36:49","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":8100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"8100.00","database_verification_match":true,"timestamp":"2026-03-23 18:36:49"} 
[2026-03-23 18:36:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T06:37:01.806Z","date_to":"2026-03-23T18:37:01.806Z","per_page":"100"} 
[2026-03-23 18:36:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T06:37:01.793Z","date_to":"2026-03-23T18:37:01.793Z","per_page":"100"} 
[2026-03-23 18:36:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","paid","pending","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":10,"unique_order_numbers":23} 
[2026-03-23 18:36:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","paid","pending","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":10,"unique_order_numbers":23} 
[2026-03-23 18:36:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T06:37:01.793Z","date_to":"2026-03-23T18:37:01.793Z","per_page":"100"} 
[2026-03-23 18:36:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","paid","pending","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":10,"unique_order_numbers":23} 
[2026-03-23 18:38:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6230,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":29647},{"menu_item_id":173,"quantity":2,"price":649,"discount_percent":0,"notes":null,"id":29648},{"menu_item_id":42,"quantity":1,"price":299,"discount_percent":0,"notes":null,"id":29649}],"validated_items":[{"id":29647,"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":29648,"menu_item_id":173,"quantity":2,"price":649,"discount_percent":0,"notes":null},{"id":29649,"menu_item_id":42,"quantity":1,"price":299,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:38:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6230,"items_count":3} 
[2026-03-23 18:38:15] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29647,"menu_item_id":384,"quantity":1},{"id":29648,"menu_item_id":173,"quantity":2},{"id":29649,"menu_item_id":42,"quantity":1}]} 
[2026-03-23 18:38:15] local.INFO: PosOrderController::update - Item changes check {"order_id":6230,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["384|1|","173|2|","42|1|"],"new_items_map_keys":["384|1|","173|2|","42|1|"]} 
[2026-03-23 18:38:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6230,"order_number":"AZS-230326-019"} 
[2026-03-23 18:38:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6230,"order_number":"AZS-230326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 18:38:15"} 
[2026-03-23 18:38:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6229,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":382,"quantity":1,"discount_percent":0,"notes":null,"id":29644},{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":29645},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":29646},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":29644,"menu_item_id":382,"quantity":1,"discount_percent":0,"notes":null},{"id":29645,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":29646,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:38:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6229,"items_count":4} 
[2026-03-23 18:38:34] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29644,"menu_item_id":382,"quantity":1},{"id":29645,"menu_item_id":78,"quantity":1},{"id":29646,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-03-23 18:38:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6229,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["382|1|","78|1|","5|1|"],"new_items_map_keys":["382|1|","78|1|","5|2|","3|2|"]} 
[2026-03-23 18:38:34] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6229,"order_number":"AZS-230326-018"} 
[2026-03-23 18:38:34] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-018","replaced_order_id":6229} 
[2026-03-23 18:38:34] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6246,"items_count":4,"items":[{"menu_item_id":382,"quantity":1,"price":"8999.00"},{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-03-23 18:38:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6246,"item_index":0,"item_data":{"menu_item_id":382,"restaurant_category_id":37,"restaurant_category_name":"FAMILY PLATTER","item_name":"Family Platter 8 Person","quantity":1,"price":"8999.00","discount_percent":0.0,"discount_amount":0.0,"total":8999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6246}} 
[2026-03-23 18:38:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6246,"item_index":0,"menu_item_id":382} 
[2026-03-23 18:38:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6246,"item_index":1,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6246}} 
[2026-03-23 18:38:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6246,"item_index":1,"menu_item_id":78} 
[2026-03-23 18:38:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6246,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6246}} 
[2026-03-23 18:38:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6246,"item_index":2,"menu_item_id":5} 
[2026-03-23 18:38:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6246,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6246}} 
[2026-03-23 18:38:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6246,"item_index":3,"menu_item_id":3} 
[2026-03-23 18:38:34] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6229,"new_order_id":6246,"order_number":"AZS-230326-018"} 
[2026-03-23 18:40:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T06:40:17.426Z","date_to":"2026-03-23T18:40:17.426Z","per_page":"100"} 
[2026-03-23 18:40:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T06:40:17.409Z","date_to":"2026-03-23T18:40:17.409Z","per_page":"100"} 
[2026-03-23 18:40:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","paid","pending","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":10,"unique_order_numbers":23} 
[2026-03-23 18:40:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","paid","pending","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":10,"unique_order_numbers":23} 
[2026-03-23 18:40:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T06:40:17.409Z","date_to":"2026-03-23T18:40:17.409Z","per_page":"100"} 
[2026-03-23 18:40:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","paid","pending","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":10,"unique_order_numbers":23} 
[2026-03-23 18:43:08] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6245,"order_number":"AZS-230326-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":17500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 18:43:08"} 
[2026-03-23 18:43:08] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6245,"order_number":"AZS-230326-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":17500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 18:43:08"} 
[2026-03-23 18:43:08] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6245,"order_number":"AZS-230326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":17500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 18:43:08"} 
[2026-03-23 18:43:08] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6245,"order_number":"AZS-230326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":17500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 18:43:08"} 
[2026-03-23 18:43:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":6245,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":29745},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":29746},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":29747},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":29748},{"menu_item_id":50,"quantity":10,"price":129,"discount_percent":0,"notes":null,"id":29749},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":29750},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":29751},{"menu_item_id":173,"quantity":2,"price":649,"discount_percent":0,"notes":null,"id":29752},{"menu_item_id":172,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":29753},{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":29754},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":29755},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":29756}],"validated_items":[{"id":29745,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":29746,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":29747,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":29748,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":29749,"menu_item_id":50,"quantity":10,"price":129,"discount_percent":0,"notes":null},{"id":29750,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":29751,"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":29752,"menu_item_id":173,"quantity":2,"price":649,"discount_percent":0,"notes":null},{"id":29753,"menu_item_id":172,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":29754,"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":29755,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":29756,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:43:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6245,"items_count":12} 
[2026-03-23 18:43:08] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29745,"menu_item_id":106,"quantity":1},{"id":29746,"menu_item_id":105,"quantity":1},{"id":29747,"menu_item_id":65,"quantity":1},{"id":29748,"menu_item_id":112,"quantity":1},{"id":29749,"menu_item_id":50,"quantity":10},{"id":29750,"menu_item_id":61,"quantity":3},{"id":29751,"menu_item_id":56,"quantity":3},{"id":29752,"menu_item_id":173,"quantity":2},{"id":29753,"menu_item_id":172,"quantity":1},{"id":29754,"menu_item_id":393,"quantity":1},{"id":29755,"menu_item_id":5,"quantity":2},{"id":29756,"menu_item_id":137,"quantity":1}]} 
[2026-03-23 18:43:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6245,"has_item_changes":false,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["106|1|","105|1|","65|1|","112|1|","50|10|","61|3|","56|3|","173|2|","172|1|","393|1|","5|2|","137|1|"],"new_items_map_keys":["106|1|","105|1|","65|1|","112|1|","50|10|","61|3|","56|3|","173|2|","172|1|","393|1|","5|2|","137|1|"]} 
[2026-03-23 18:43:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6245,"order_number":"AZS-230326-014"} 
[2026-03-23 18:43:08] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6245,"order_number":"AZS-230326-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":17500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 18:43:08","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 18:43:08"} 
[2026-03-23 18:43:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6245,"order_number":"AZS-230326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 18:43:08"} 
[2026-03-23 18:43:08] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6245,"order_number":"AZS-230326-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"17500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 18:43:08","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":17500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"17500.00","database_verification_match":true,"timestamp":"2026-03-23 18:43:08"} 
[2026-03-23 18:44:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6227,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29635},{"menu_item_id":49,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":29636},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29637},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29638},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29639}],"validated_items":[{"id":29635,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29636,"menu_item_id":49,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":29637,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29638,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29639,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:44:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6227,"items_count":5} 
[2026-03-23 18:44:25] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29635,"menu_item_id":96,"quantity":1},{"id":29636,"menu_item_id":49,"quantity":4},{"id":29637,"menu_item_id":61,"quantity":1},{"id":29638,"menu_item_id":56,"quantity":1},{"id":29639,"menu_item_id":5,"quantity":1}]} 
[2026-03-23 18:44:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6227,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","49|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["96|1|","49|4|","61|1|","56|1|","5|1|"]} 
[2026-03-23 18:44:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6227,"order_number":"AZS-230326-017"} 
[2026-03-23 18:44:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6227,"order_number":"AZS-230326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 18:44:25"} 
[2026-03-23 18:48:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6246,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":382,"quantity":1,"price":8999,"discount_percent":0,"notes":null,"id":29757},{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":29758},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":29759},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":29760}],"validated_items":[{"id":29757,"menu_item_id":382,"quantity":1,"price":8999,"discount_percent":0,"notes":null},{"id":29758,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":29759,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":29760,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:48:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6246,"items_count":4} 
[2026-03-23 18:48:28] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29757,"menu_item_id":382,"quantity":1},{"id":29758,"menu_item_id":78,"quantity":1},{"id":29759,"menu_item_id":5,"quantity":2},{"id":29760,"menu_item_id":3,"quantity":2}]} 
[2026-03-23 18:48:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6246,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["382|1|","78|1|","5|2|","3|2|"],"new_items_map_keys":["382|1|","78|1|","5|2|","3|2|"]} 
[2026-03-23 18:48:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6246,"order_number":"AZS-230326-018"} 
[2026-03-23 18:48:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6246,"order_number":"AZS-230326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 18:48:28"} 
[2026-03-23 18:52:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":2,"order_id":6227,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":29635},{"menu_item_id":49,"quantity":4,"discount_percent":0,"notes":null,"id":29636},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29638}],"validated_items":[{"id":29635,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":29636,"menu_item_id":49,"quantity":4,"discount_percent":0,"notes":null},{"id":29638,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:52:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6227,"items_count":3} 
[2026-03-23 18:52:26] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":2,"items_to_remove":[29637,29639],"items":[{"id":29635,"menu_item_id":96,"quantity":1},{"id":29636,"menu_item_id":49,"quantity":4},{"id":29638,"menu_item_id":56,"quantity":1}]} 
[2026-03-23 18:52:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6227,"has_item_changes":true,"old_items_count":5,"new_items_count":3,"old_items_map_keys":["96|1|","49|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["96|1|","49|4|","56|1|"]} 
[2026-03-23 18:52:26] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6227,"order_number":"AZS-230326-017"} 
[2026-03-23 18:52:26] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-017","replaced_order_id":6227} 
[2026-03-23 18:52:26] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6251,"items_count":3,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":49,"quantity":4,"price":"70.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"}]} 
[2026-03-23 18:52:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6251,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6251}} 
[2026-03-23 18:52:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6251,"item_index":0,"menu_item_id":96} 
[2026-03-23 18:52:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6251,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6251}} 
[2026-03-23 18:52:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6251,"item_index":1,"menu_item_id":49} 
[2026-03-23 18:52:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6251,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6251}} 
[2026-03-23 18:52:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6251,"item_index":2,"menu_item_id":56} 
[2026-03-23 18:52:26] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6227,"new_order_id":6251,"order_number":"AZS-230326-017"} 
[2026-03-23 18:52:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6251,"item_index":0,"item_id":29635} 
[2026-03-23 18:52:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6251,"item_index":1,"item_id":29636} 
[2026-03-23 18:52:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6251,"item_index":2,"item_id":29638} 
[2026-03-23 18:52:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":6251,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29635},{"menu_item_id":49,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":29636},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29638}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:52:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6251,"items_count":3} 
[2026-03-23 18:52:34] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[29773,29774,29775],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":49,"quantity":4},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-03-23 18:52:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6251,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["96|1|","49|4|","56|1|"],"new_items_map_keys":["96|1|","49|4|","56|1|"]} 
[2026-03-23 18:52:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6251,"order_number":"AZS-230326-017"} 
[2026-03-23 18:52:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6251,"order_number":"AZS-230326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 18:52:34"} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6239,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null,"id":29712},{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":29713},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":29714},{"menu_item_id":66,"quantity":1,"discount_percent":0,"notes":null,"id":29715},{"menu_item_id":48,"quantity":5,"discount_percent":0,"notes":null,"id":29716},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":29717},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":29718},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":29719},{"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":29712,"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null},{"id":29713,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":29714,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":29715,"menu_item_id":66,"quantity":1,"discount_percent":0,"notes":null},{"id":29716,"menu_item_id":48,"quantity":5,"discount_percent":0,"notes":null},{"id":29717,"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"id":29718,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":29719,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6239,"items_count":9} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29712,"menu_item_id":113,"quantity":2},{"id":29713,"menu_item_id":102,"quantity":1},{"id":29714,"menu_item_id":98,"quantity":1},{"id":29715,"menu_item_id":66,"quantity":1},{"id":29716,"menu_item_id":48,"quantity":5},{"id":29717,"menu_item_id":61,"quantity":4},{"id":29718,"menu_item_id":56,"quantity":2},{"id":29719,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":49,"quantity":2}]} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Item changes check {"order_id":6239,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["113|2|","102|1|","98|1|","66|1|","48|5|","61|4|","56|2|","5|2|"],"new_items_map_keys":["113|2|","102|1|","98|1|","66|1|","48|5|","61|4|","56|2|","5|2|","49|2|"]} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6239,"order_number":"AZS-230326-020"} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-020","replaced_order_id":6239} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6252,"items_count":9,"items":[{"menu_item_id":113,"quantity":2,"price":"1199.00"},{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":66,"quantity":1,"price":"1399.00"},{"menu_item_id":48,"quantity":5,"price":"250.00"},{"menu_item_id":61,"quantity":4,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":49,"quantity":2,"price":"70.00"}]} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6252,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6252}} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6252,"item_index":0,"menu_item_id":113} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6252,"item_index":1,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6252}} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6252,"item_index":1,"menu_item_id":102} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6252,"item_index":2,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6252}} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6252,"item_index":2,"menu_item_id":98} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6252,"item_index":3,"item_data":{"menu_item_id":66,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Cheese Kabab (4 pcs)","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6252}} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6252,"item_index":3,"menu_item_id":66} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6252,"item_index":4,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":5,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6252}} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6252,"item_index":4,"menu_item_id":48} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6252,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6252}} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6252,"item_index":5,"menu_item_id":61} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6252,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6252}} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6252,"item_index":6,"menu_item_id":56} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6252,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6252}} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6252,"item_index":7,"menu_item_id":5} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6252,"item_index":8,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6252}} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6252,"item_index":8,"menu_item_id":49} 
[2026-03-23 18:53:30] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6239,"new_order_id":6252,"order_number":"AZS-230326-020"} 
[2026-03-23 18:59:42] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6251,"order_number":"AZS-230326-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 18:59:42"} 
[2026-03-23 18:59:42] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6251,"order_number":"AZS-230326-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 18:59:42"} 
[2026-03-23 18:59:42] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6251,"order_number":"AZS-230326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 18:59:42"} 
[2026-03-23 18:59:42] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6251,"order_number":"AZS-230326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 18:59:42"} 
[2026-03-23 18:59:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6251,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29773},{"menu_item_id":49,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":29774},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29775}],"validated_items":[{"id":29773,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29774,"menu_item_id":49,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":29775,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:59:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6251,"items_count":3} 
[2026-03-23 18:59:42] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29773,"menu_item_id":96,"quantity":1},{"id":29774,"menu_item_id":49,"quantity":4},{"id":29775,"menu_item_id":56,"quantity":1}]} 
[2026-03-23 18:59:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6251,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["96|1|","49|4|","56|1|"],"new_items_map_keys":["96|1|","49|4|","56|1|"]} 
[2026-03-23 18:59:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6251,"order_number":"AZS-230326-017"} 
[2026-03-23 18:59:42] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6251,"order_number":"AZS-230326-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 18:59:42","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 18:59:42"} 
[2026-03-23 18:59:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6251,"order_number":"AZS-230326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 18:59:42"} 
[2026-03-23 18:59:42] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6251,"order_number":"AZS-230326-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 18:59:42","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-23 18:59:42"} 
[2026-03-23 18:59:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6246,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":382,"quantity":1,"price":8999,"discount_percent":0,"notes":null,"id":29757},{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":29758},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":29759},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":29760}],"validated_items":[{"id":29757,"menu_item_id":382,"quantity":1,"price":8999,"discount_percent":0,"notes":null},{"id":29758,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":29759,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":29760,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 18:59:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6246,"items_count":4} 
[2026-03-23 18:59:56] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29757,"menu_item_id":382,"quantity":1},{"id":29758,"menu_item_id":78,"quantity":1},{"id":29759,"menu_item_id":5,"quantity":2},{"id":29760,"menu_item_id":3,"quantity":2}]} 
[2026-03-23 18:59:56] local.INFO: PosOrderController::update - Item changes check {"order_id":6246,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["382|1|","78|1|","5|2|","3|2|"],"new_items_map_keys":["382|1|","78|1|","5|2|","3|2|"]} 
[2026-03-23 18:59:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6246,"order_number":"AZS-230326-018"} 
[2026-03-23 18:59:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6246,"order_number":"AZS-230326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 18:59:56"} 
[2026-03-23 19:00:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6243,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":29732},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":29733},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":29734},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":29735},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29736},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29737},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29732,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":29733,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":29734,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":29735,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":29736,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29737,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:00:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6243,"items_count":8} 
[2026-03-23 19:00:31] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29732,"menu_item_id":97,"quantity":1},{"id":29733,"menu_item_id":396,"quantity":3},{"id":29734,"menu_item_id":50,"quantity":1},{"id":29735,"menu_item_id":61,"quantity":2},{"id":29736,"menu_item_id":56,"quantity":1},{"id":29737,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":29,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 19:00:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6243,"has_item_changes":true,"old_items_count":6,"new_items_count":8,"old_items_map_keys":["97|1|","396|3|","50|1|","61|2|","56|1|","5|1|"],"new_items_map_keys":["97|1|","396|3|","50|1|","61|2|","56|1|","5|1|","29|1|","3|1|"]} 
[2026-03-23 19:00:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6243,"order_number":"AZS-230326-023"} 
[2026-03-23 19:00:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-023","replaced_order_id":6243} 
[2026-03-23 19:00:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6253,"items_count":8,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-23 19:00:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6253,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6253}} 
[2026-03-23 19:00:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6253,"item_index":0,"menu_item_id":97} 
[2026-03-23 19:00:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6253,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6253}} 
[2026-03-23 19:00:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6253,"item_index":1,"menu_item_id":396} 
[2026-03-23 19:00:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6253,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6253}} 
[2026-03-23 19:00:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6253,"item_index":2,"menu_item_id":50} 
[2026-03-23 19:00:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6253,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6253}} 
[2026-03-23 19:00:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6253,"item_index":3,"menu_item_id":61} 
[2026-03-23 19:00:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6253,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6253}} 
[2026-03-23 19:00:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6253,"item_index":4,"menu_item_id":56} 
[2026-03-23 19:00:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6253,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6253}} 
[2026-03-23 19:00:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6253,"item_index":5,"menu_item_id":5} 
[2026-03-23 19:00:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6253,"item_index":6,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6253}} 
[2026-03-23 19:00:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6253,"item_index":6,"menu_item_id":29} 
[2026-03-23 19:00:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6253,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6253}} 
[2026-03-23 19:00:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6253,"item_index":7,"menu_item_id":3} 
[2026-03-23 19:00:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6243,"new_order_id":6253,"order_number":"AZS-230326-023"} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6252,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null,"id":29776},{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":29777},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":29778},{"menu_item_id":66,"quantity":1,"discount_percent":0,"notes":null,"id":29779},{"menu_item_id":48,"quantity":5,"discount_percent":0,"notes":null,"id":29780},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":29781},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":29782},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":29783},{"menu_item_id":49,"quantity":3,"discount_percent":0,"notes":null,"id":29784}],"validated_items":[{"id":29776,"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null},{"id":29777,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":29778,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":29779,"menu_item_id":66,"quantity":1,"discount_percent":0,"notes":null},{"id":29780,"menu_item_id":48,"quantity":5,"discount_percent":0,"notes":null},{"id":29781,"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"id":29782,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":29783,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":29784,"menu_item_id":49,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6252,"items_count":9} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29776,"menu_item_id":113,"quantity":2},{"id":29777,"menu_item_id":102,"quantity":1},{"id":29778,"menu_item_id":98,"quantity":1},{"id":29779,"menu_item_id":66,"quantity":1},{"id":29780,"menu_item_id":48,"quantity":5},{"id":29781,"menu_item_id":61,"quantity":4},{"id":29782,"menu_item_id":56,"quantity":2},{"id":29783,"menu_item_id":5,"quantity":2},{"id":29784,"menu_item_id":49,"quantity":3}]} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Item changes check {"order_id":6252,"has_item_changes":true,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["113|2|","102|1|","98|1|","66|1|","48|5|","61|4|","56|2|","5|2|","49|2|"],"new_items_map_keys":["113|2|","102|1|","98|1|","66|1|","48|5|","61|4|","56|2|","5|2|","49|3|"]} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6252,"order_number":"AZS-230326-020"} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-020","replaced_order_id":6252} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6254,"items_count":9,"items":[{"menu_item_id":113,"quantity":2,"price":"1199.00"},{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":66,"quantity":1,"price":"1399.00"},{"menu_item_id":48,"quantity":5,"price":"250.00"},{"menu_item_id":61,"quantity":4,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":49,"quantity":3,"price":"70.00"}]} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6254,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6254}} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6254,"item_index":0,"menu_item_id":113} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6254,"item_index":1,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6254}} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6254,"item_index":1,"menu_item_id":102} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6254,"item_index":2,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6254}} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6254,"item_index":2,"menu_item_id":98} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6254,"item_index":3,"item_data":{"menu_item_id":66,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Cheese Kabab (4 pcs)","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6254}} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6254,"item_index":3,"menu_item_id":66} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6254,"item_index":4,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":5,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6254}} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6254,"item_index":4,"menu_item_id":48} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6254,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6254}} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6254,"item_index":5,"menu_item_id":61} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6254,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6254}} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6254,"item_index":6,"menu_item_id":56} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6254,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6254}} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6254,"item_index":7,"menu_item_id":5} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6254,"item_index":8,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6254}} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6254,"item_index":8,"menu_item_id":49} 
[2026-03-23 19:05:56] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6252,"new_order_id":6254,"order_number":"AZS-230326-020"} 
[2026-03-23 19:06:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6253,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":29785},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":29786},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":29787},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":29788},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29789},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29790},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null,"id":29791},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":29792}],"validated_items":[{"id":29785,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":29786,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":29787,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":29788,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":29789,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29790,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":29791,"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null},{"id":29792,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:06:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6253,"items_count":8} 
[2026-03-23 19:06:20] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29785,"menu_item_id":97,"quantity":1},{"id":29786,"menu_item_id":396,"quantity":3},{"id":29787,"menu_item_id":50,"quantity":2},{"id":29788,"menu_item_id":61,"quantity":2},{"id":29789,"menu_item_id":56,"quantity":1},{"id":29790,"menu_item_id":5,"quantity":1},{"id":29791,"menu_item_id":29,"quantity":1},{"id":29792,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 19:06:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6253,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["97|1|","396|3|","50|1|","61|2|","56|1|","5|1|","29|1|","3|1|"],"new_items_map_keys":["97|1|","396|3|","50|2|","61|2|","56|1|","5|1|","29|1|","3|1|"]} 
[2026-03-23 19:06:20] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6253,"order_number":"AZS-230326-023"} 
[2026-03-23 19:06:20] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-023","replaced_order_id":6253} 
[2026-03-23 19:06:20] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6255,"items_count":8,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-23 19:06:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6255,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6255}} 
[2026-03-23 19:06:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6255,"item_index":0,"menu_item_id":97} 
[2026-03-23 19:06:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6255,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6255}} 
[2026-03-23 19:06:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6255,"item_index":1,"menu_item_id":396} 
[2026-03-23 19:06:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6255,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6255}} 
[2026-03-23 19:06:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6255,"item_index":2,"menu_item_id":50} 
[2026-03-23 19:06:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6255,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6255}} 
[2026-03-23 19:06:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6255,"item_index":3,"menu_item_id":61} 
[2026-03-23 19:06:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6255,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6255}} 
[2026-03-23 19:06:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6255,"item_index":4,"menu_item_id":56} 
[2026-03-23 19:06:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6255,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6255}} 
[2026-03-23 19:06:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6255,"item_index":5,"menu_item_id":5} 
[2026-03-23 19:06:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6255,"item_index":6,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6255}} 
[2026-03-23 19:06:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6255,"item_index":6,"menu_item_id":29} 
[2026-03-23 19:06:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6255,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6255}} 
[2026-03-23 19:06:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6255,"item_index":7,"menu_item_id":3} 
[2026-03-23 19:06:20] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6253,"new_order_id":6255,"order_number":"AZS-230326-023"} 
[2026-03-23 19:06:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T07:06:51.436Z","date_to":"2026-03-23T19:06:51.436Z","per_page":"100"} 
[2026-03-23 19:06:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":12,"unique_order_numbers":27} 
[2026-03-23 19:06:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T07:06:51.456Z","date_to":"2026-03-23T19:06:51.456Z","per_page":"100"} 
[2026-03-23 19:06:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":12,"unique_order_numbers":27} 
[2026-03-23 19:06:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T07:06:51.436Z","date_to":"2026-03-23T19:06:51.436Z","per_page":"100"} 
[2026-03-23 19:06:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":12,"unique_order_numbers":27} 
[2026-03-23 19:08:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6247,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":29761},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":29762},{"menu_item_id":49,"quantity":6,"discount_percent":0,"notes":null,"id":29763},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":29764},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29761,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":29762,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":29763,"menu_item_id":49,"quantity":6,"discount_percent":0,"notes":null},{"id":29764,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:08:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6247,"items_count":5} 
[2026-03-23 19:08:23] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29761,"menu_item_id":96,"quantity":1},{"id":29762,"menu_item_id":98,"quantity":1},{"id":29763,"menu_item_id":49,"quantity":6},{"id":29764,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 19:08:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6247,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["96|1|","98|1|","49|6|","61|2|"],"new_items_map_keys":["96|1|","98|1|","49|6|","61|2|","3|1|"]} 
[2026-03-23 19:08:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6247,"order_number":"AZS-230326-024"} 
[2026-03-23 19:08:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-024","replaced_order_id":6247} 
[2026-03-23 19:08:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6256,"items_count":5,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":49,"quantity":6,"price":"70.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-23 19:08:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6256,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6256}} 
[2026-03-23 19:08:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6256,"item_index":0,"menu_item_id":96} 
[2026-03-23 19:08:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6256,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6256}} 
[2026-03-23 19:08:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6256,"item_index":1,"menu_item_id":98} 
[2026-03-23 19:08:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6256,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":6,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":420.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6256}} 
[2026-03-23 19:08:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6256,"item_index":2,"menu_item_id":49} 
[2026-03-23 19:08:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6256,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6256}} 
[2026-03-23 19:08:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6256,"item_index":3,"menu_item_id":61} 
[2026-03-23 19:08:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6256,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6256}} 
[2026-03-23 19:08:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6256,"item_index":4,"menu_item_id":3} 
[2026-03-23 19:08:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6247,"new_order_id":6256,"order_number":"AZS-230326-024"} 
[2026-03-23 19:09:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6250,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null,"id":29771},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":29772}],"validated_items":[{"id":29771,"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null},{"id":29772,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:09:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6250,"items_count":2} 
[2026-03-23 19:09:48] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29771,"menu_item_id":385,"quantity":1},{"id":29772,"menu_item_id":112,"quantity":1}]} 
[2026-03-23 19:09:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6250,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["385|1|","112|1|"],"new_items_map_keys":["385|1|","112|1|"]} 
[2026-03-23 19:09:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6250,"order_number":"AZS-230326-027"} 
[2026-03-23 19:09:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6250,"order_number":"AZS-230326-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-23 19:09:48"} 
[2026-03-23 19:10:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T07:10:19.043Z","date_to":"2026-03-23T19:10:19.043Z","per_page":"100"} 
[2026-03-23 19:10:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":12,"unique_order_numbers":27} 
[2026-03-23 19:10:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T07:10:19.062Z","date_to":"2026-03-23T19:10:19.062Z","per_page":"100"} 
[2026-03-23 19:10:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":12,"unique_order_numbers":27} 
[2026-03-23 19:10:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T07:10:19.043Z","date_to":"2026-03-23T19:10:19.043Z","per_page":"100"} 
[2026-03-23 19:10:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":12,"unique_order_numbers":27} 
[2026-03-23 19:10:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T07:11:04.315Z","date_to":"2026-03-23T19:11:04.315Z","per_page":"100"} 
[2026-03-23 19:10:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T07:11:04.297Z","date_to":"2026-03-23T19:11:04.297Z","per_page":"100"} 
[2026-03-23 19:10:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":12,"unique_order_numbers":27} 
[2026-03-23 19:10:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":12,"unique_order_numbers":27} 
[2026-03-23 19:10:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T07:11:04.297Z","date_to":"2026-03-23T19:11:04.297Z","per_page":"100"} 
[2026-03-23 19:10:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":27,"count":27,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":12,"unique_order_numbers":27} 
[2026-03-23 19:16:07] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6246,"order_number":"AZS-230326-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":14500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 19:16:07"} 
[2026-03-23 19:16:07] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6246,"order_number":"AZS-230326-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":14500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 19:16:07"} 
[2026-03-23 19:16:07] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6246,"order_number":"AZS-230326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":14500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 19:16:07"} 
[2026-03-23 19:16:07] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6246,"order_number":"AZS-230326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":14500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 19:16:07"} 
[2026-03-23 19:16:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6246,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":382,"quantity":1,"price":8999,"discount_percent":0,"notes":null,"id":29757},{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":29758},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":29759},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":29760}],"validated_items":[{"id":29757,"menu_item_id":382,"quantity":1,"price":8999,"discount_percent":0,"notes":null},{"id":29758,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":29759,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":29760,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:16:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6246,"items_count":4} 
[2026-03-23 19:16:07] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29757,"menu_item_id":382,"quantity":1},{"id":29758,"menu_item_id":78,"quantity":1},{"id":29759,"menu_item_id":5,"quantity":2},{"id":29760,"menu_item_id":3,"quantity":2}]} 
[2026-03-23 19:16:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6246,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["382|1|","78|1|","5|2|","3|2|"],"new_items_map_keys":["382|1|","78|1|","5|2|","3|2|"]} 
[2026-03-23 19:16:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6246,"order_number":"AZS-230326-018"} 
[2026-03-23 19:16:07] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6246,"order_number":"AZS-230326-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":14500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 19:16:07","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 19:16:07"} 
[2026-03-23 19:16:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6246,"order_number":"AZS-230326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 19:16:07"} 
[2026-03-23 19:16:07] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6246,"order_number":"AZS-230326-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"14500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 19:16:07","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":14500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"14500.00","database_verification_match":true,"timestamp":"2026-03-23 19:16:07"} 
[2026-03-23 19:16:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6255,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29802},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":29803},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":29804},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29805},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29806},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29807},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":29808},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29809}],"validated_items":[{"id":29802,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":29803,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":29804,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":29805,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29806,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29807,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29808,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":29809,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:16:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6255,"items_count":8} 
[2026-03-23 19:16:30] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29802,"menu_item_id":97,"quantity":1},{"id":29803,"menu_item_id":396,"quantity":3},{"id":29804,"menu_item_id":50,"quantity":2},{"id":29805,"menu_item_id":61,"quantity":2},{"id":29806,"menu_item_id":56,"quantity":1},{"id":29807,"menu_item_id":5,"quantity":1},{"id":29808,"menu_item_id":29,"quantity":1},{"id":29809,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 19:16:30] local.INFO: PosOrderController::update - Item changes check {"order_id":6255,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["97|1|","396|3|","50|2|","61|2|","56|1|","5|1|","29|1|","3|1|"],"new_items_map_keys":["97|1|","396|3|","50|2|","61|2|","56|1|","5|1|","29|1|","3|1|"]} 
[2026-03-23 19:16:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6255,"order_number":"AZS-230326-023"} 
[2026-03-23 19:16:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6255,"order_number":"AZS-230326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 19:16:30"} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6254,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null,"id":29793},{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":29794},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":29795},{"menu_item_id":66,"quantity":1,"discount_percent":0,"notes":null,"id":29796},{"menu_item_id":48,"quantity":5,"discount_percent":0,"notes":null,"id":29797},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":29798},{"menu_item_id":56,"quantity":4,"discount_percent":0,"notes":null,"id":29799},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":29800},{"menu_item_id":49,"quantity":3,"discount_percent":0,"notes":null,"id":29801}],"validated_items":[{"id":29793,"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null},{"id":29794,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":29795,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":29796,"menu_item_id":66,"quantity":1,"discount_percent":0,"notes":null},{"id":29797,"menu_item_id":48,"quantity":5,"discount_percent":0,"notes":null},{"id":29798,"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"id":29799,"menu_item_id":56,"quantity":4,"discount_percent":0,"notes":null},{"id":29800,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":29801,"menu_item_id":49,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6254,"items_count":9} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29793,"menu_item_id":113,"quantity":2},{"id":29794,"menu_item_id":102,"quantity":1},{"id":29795,"menu_item_id":98,"quantity":1},{"id":29796,"menu_item_id":66,"quantity":1},{"id":29797,"menu_item_id":48,"quantity":5},{"id":29798,"menu_item_id":61,"quantity":4},{"id":29799,"menu_item_id":56,"quantity":4},{"id":29800,"menu_item_id":5,"quantity":2},{"id":29801,"menu_item_id":49,"quantity":3}]} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6254,"has_item_changes":true,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["113|2|","102|1|","98|1|","66|1|","48|5|","61|4|","56|2|","5|2|","49|3|"],"new_items_map_keys":["113|2|","102|1|","98|1|","66|1|","48|5|","61|4|","56|4|","5|2|","49|3|"]} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6254,"order_number":"AZS-230326-020"} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-020","replaced_order_id":6254} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6258,"items_count":9,"items":[{"menu_item_id":113,"quantity":2,"price":"1199.00"},{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":66,"quantity":1,"price":"1399.00"},{"menu_item_id":48,"quantity":5,"price":"250.00"},{"menu_item_id":61,"quantity":4,"price":"199.00"},{"menu_item_id":56,"quantity":4,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":49,"quantity":3,"price":"70.00"}]} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6258,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6258}} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6258,"item_index":0,"menu_item_id":113} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6258,"item_index":1,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6258}} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6258,"item_index":1,"menu_item_id":102} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6258,"item_index":2,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6258}} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6258,"item_index":2,"menu_item_id":98} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6258,"item_index":3,"item_data":{"menu_item_id":66,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Cheese Kabab (4 pcs)","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6258}} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6258,"item_index":3,"menu_item_id":66} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6258,"item_index":4,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":5,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6258}} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6258,"item_index":4,"menu_item_id":48} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6258,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6258}} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6258,"item_index":5,"menu_item_id":61} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6258,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6258}} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6258,"item_index":6,"menu_item_id":56} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6258,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6258}} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6258,"item_index":7,"menu_item_id":5} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6258,"item_index":8,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6258}} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6258,"item_index":8,"menu_item_id":49} 
[2026-03-23 19:16:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6254,"new_order_id":6258,"order_number":"AZS-230326-020"} 
[2026-03-23 19:17:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6258,"item_index":0,"item_id":29793} 
[2026-03-23 19:17:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6258,"item_index":1,"item_id":29794} 
[2026-03-23 19:17:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6258,"item_index":2,"item_id":29795} 
[2026-03-23 19:17:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6258,"item_index":3,"item_id":29796} 
[2026-03-23 19:17:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6258,"item_index":4,"item_id":29797} 
[2026-03-23 19:17:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6258,"item_index":5,"item_id":29798} 
[2026-03-23 19:17:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6258,"item_index":6,"item_id":29799} 
[2026-03-23 19:17:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6258,"item_index":7,"item_id":29800} 
[2026-03-23 19:17:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6258,"item_index":8,"item_id":29801} 
[2026-03-23 19:17:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":9,"order_id":6258,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":29793},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":29794},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29795},{"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":29796},{"menu_item_id":48,"quantity":5,"price":250,"discount_percent":0,"notes":null,"id":29797},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":29798},{"menu_item_id":56,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":29799},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":29800},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":29801}],"validated_items":[{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":5,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:17:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6258,"items_count":9} 
[2026-03-23 19:17:54] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":9,"items_to_remove":[29819,29820,29821,29822,29823,29824,29825,29826,29827],"items":[{"id":null,"menu_item_id":113,"quantity":2},{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":66,"quantity":1},{"id":null,"menu_item_id":48,"quantity":5},{"id":null,"menu_item_id":61,"quantity":4},{"id":null,"menu_item_id":56,"quantity":4},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":49,"quantity":3}]} 
[2026-03-23 19:17:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6258,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["113|2|","102|1|","98|1|","66|1|","48|5|","61|4|","56|4|","5|2|","49|3|"],"new_items_map_keys":["113|2|","102|1|","98|1|","66|1|","48|5|","61|4|","56|4|","5|2|","49|3|"]} 
[2026-03-23 19:17:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6258,"order_number":"AZS-230326-020"} 
[2026-03-23 19:17:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6258,"order_number":"AZS-230326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 19:17:54"} 
[2026-03-23 19:28:50] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6255,"order_number":"AZS-230326-023","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 19:28:50"} 
[2026-03-23 19:28:50] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6255,"order_number":"AZS-230326-023","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 19:28:50"} 
[2026-03-23 19:28:50] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6255,"order_number":"AZS-230326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 19:28:50"} 
[2026-03-23 19:28:50] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6255,"order_number":"AZS-230326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 19:28:50"} 
[2026-03-23 19:28:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6255,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29802},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":29803},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":29804},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29805},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29806},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29807},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":29808},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29809}],"validated_items":[{"id":29802,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":29803,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":29804,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":29805,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29806,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29807,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29808,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":29809,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:28:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6255,"items_count":8} 
[2026-03-23 19:28:50] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29802,"menu_item_id":97,"quantity":1},{"id":29803,"menu_item_id":396,"quantity":3},{"id":29804,"menu_item_id":50,"quantity":2},{"id":29805,"menu_item_id":61,"quantity":2},{"id":29806,"menu_item_id":56,"quantity":1},{"id":29807,"menu_item_id":5,"quantity":1},{"id":29808,"menu_item_id":29,"quantity":1},{"id":29809,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 19:28:50] local.INFO: PosOrderController::update - Item changes check {"order_id":6255,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["97|1|","396|3|","50|2|","61|2|","56|1|","5|1|","29|1|","3|1|"],"new_items_map_keys":["97|1|","396|3|","50|2|","61|2|","56|1|","5|1|","29|1|","3|1|"]} 
[2026-03-23 19:28:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6255,"order_number":"AZS-230326-023"} 
[2026-03-23 19:28:50] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6255,"order_number":"AZS-230326-023","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 19:28:50","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 19:28:50"} 
[2026-03-23 19:28:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6255,"order_number":"AZS-230326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 19:28:50"} 
[2026-03-23 19:28:50] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6255,"order_number":"AZS-230326-023","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 19:28:50","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4500.00","database_verification_match":true,"timestamp":"2026-03-23 19:28:50"} 
[2026-03-23 19:31:09] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6258,"order_number":"AZS-230326-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 19:31:09"} 
[2026-03-23 19:31:09] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6258,"order_number":"AZS-230326-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 19:31:09"} 
[2026-03-23 19:31:09] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6258,"order_number":"AZS-230326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 19:31:09"} 
[2026-03-23 19:31:09] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6258,"order_number":"AZS-230326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 19:31:09"} 
[2026-03-23 19:31:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6258,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":29819},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":29820},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29821},{"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":29822},{"menu_item_id":48,"quantity":5,"price":250,"discount_percent":0,"notes":null,"id":29823},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":29824},{"menu_item_id":56,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":29825},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":29826},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":29827}],"validated_items":[{"id":29819,"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":29820,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":29821,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29822,"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":29823,"menu_item_id":48,"quantity":5,"price":250,"discount_percent":0,"notes":null},{"id":29824,"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":29825,"menu_item_id":56,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":29826,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":29827,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:31:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6258,"items_count":9} 
[2026-03-23 19:31:09] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29819,"menu_item_id":113,"quantity":2},{"id":29820,"menu_item_id":102,"quantity":1},{"id":29821,"menu_item_id":98,"quantity":1},{"id":29822,"menu_item_id":66,"quantity":1},{"id":29823,"menu_item_id":48,"quantity":5},{"id":29824,"menu_item_id":61,"quantity":4},{"id":29825,"menu_item_id":56,"quantity":4},{"id":29826,"menu_item_id":5,"quantity":2},{"id":29827,"menu_item_id":49,"quantity":3}]} 
[2026-03-23 19:31:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6258,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["113|2|","102|1|","98|1|","66|1|","48|5|","61|4|","56|4|","5|2|","49|3|"],"new_items_map_keys":["113|2|","102|1|","98|1|","66|1|","48|5|","61|4|","56|4|","5|2|","49|3|"]} 
[2026-03-23 19:31:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6258,"order_number":"AZS-230326-020"} 
[2026-03-23 19:31:09] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6258,"order_number":"AZS-230326-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":10500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 19:31:09","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 19:31:09"} 
[2026-03-23 19:31:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6258,"order_number":"AZS-230326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 19:31:09"} 
[2026-03-23 19:31:09] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6258,"order_number":"AZS-230326-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"10500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 19:31:09","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"10500.00","database_verification_match":true,"timestamp":"2026-03-23 19:31:09"} 
[2026-03-23 19:33:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T07:33:38.173Z","date_to":"2026-03-23T19:33:38.173Z","per_page":"100"} 
[2026-03-23 19:33:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T07:33:38.158Z","date_to":"2026-03-23T19:33:38.158Z","per_page":"100"} 
[2026-03-23 19:33:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":12,"unique_order_numbers":30} 
[2026-03-23 19:33:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":12,"unique_order_numbers":30} 
[2026-03-23 19:33:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T07:33:38.158Z","date_to":"2026-03-23T19:33:38.158Z","per_page":"100"} 
[2026-03-23 19:33:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":12,"unique_order_numbers":30} 
[2026-03-23 19:33:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T07:33:44.835Z","date_to":"2026-03-23T19:33:44.835Z","per_page":"100"} 
[2026-03-23 19:33:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T07:33:44.847Z","date_to":"2026-03-23T19:33:44.847Z","per_page":"100"} 
[2026-03-23 19:33:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":12,"unique_order_numbers":30} 
[2026-03-23 19:33:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":12,"unique_order_numbers":30} 
[2026-03-23 19:33:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T07:33:44.835Z","date_to":"2026-03-23T19:33:44.835Z","per_page":"100"} 
[2026-03-23 19:33:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":12,"unique_order_numbers":30} 
[2026-03-23 19:34:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T07:34:15.644Z","date_to":"2026-03-23T19:34:15.644Z","per_page":"100"} 
[2026-03-23 19:34:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T07:34:15.656Z","date_to":"2026-03-23T19:34:15.656Z","per_page":"100"} 
[2026-03-23 19:34:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":12,"unique_order_numbers":30} 
[2026-03-23 19:34:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":12,"unique_order_numbers":30} 
[2026-03-23 19:34:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T07:34:15.644Z","date_to":"2026-03-23T19:34:15.644Z","per_page":"100"} 
[2026-03-23 19:34:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":12,"unique_order_numbers":30} 
[2026-03-23 19:36:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6261,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":29838},{"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null,"id":29839},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29840},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":29841},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29838,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":29839,"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null},{"id":29840,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29841,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:36:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6261,"items_count":5} 
[2026-03-23 19:36:06] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[29842],"items":[{"id":29838,"menu_item_id":396,"quantity":3},{"id":29839,"menu_item_id":60,"quantity":2},{"id":29840,"menu_item_id":56,"quantity":1},{"id":29841,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":137,"quantity":1}]} 
[2026-03-23 19:36:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6261,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["396|3|","60|2|","56|1|","96|1|","138|1|"],"new_items_map_keys":["396|3|","60|2|","56|1|","96|1|","137|1|"]} 
[2026-03-23 19:36:06] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6261,"order_number":"AZS-230326-031"} 
[2026-03-23 19:36:06] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-031","replaced_order_id":6261} 
[2026-03-23 19:36:06] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6262,"items_count":5,"items":[{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":60,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":137,"quantity":1,"price":"1299.00"}]} 
[2026-03-23 19:36:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6262,"item_index":0,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6262}} 
[2026-03-23 19:36:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6262,"item_index":0,"menu_item_id":396} 
[2026-03-23 19:36:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6262,"item_index":1,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6262}} 
[2026-03-23 19:36:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6262,"item_index":1,"menu_item_id":60} 
[2026-03-23 19:36:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6262,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6262}} 
[2026-03-23 19:36:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6262,"item_index":2,"menu_item_id":56} 
[2026-03-23 19:36:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6262,"item_index":3,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6262}} 
[2026-03-23 19:36:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6262,"item_index":3,"menu_item_id":96} 
[2026-03-23 19:36:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6262,"item_index":4,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6262}} 
[2026-03-23 19:36:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6262,"item_index":4,"menu_item_id":137} 
[2026-03-23 19:36:06] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6261,"new_order_id":6262,"order_number":"AZS-230326-031"} 
[2026-03-23 19:36:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6262,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":29843},{"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null,"id":29844},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29845},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":29846},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":29847}],"validated_items":[{"id":29843,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":29844,"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null},{"id":29845,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29846,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":29847,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:36:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6262,"items_count":5} 
[2026-03-23 19:36:13] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29843,"menu_item_id":396,"quantity":3},{"id":29844,"menu_item_id":60,"quantity":2},{"id":29845,"menu_item_id":56,"quantity":1},{"id":29846,"menu_item_id":96,"quantity":1},{"id":29847,"menu_item_id":137,"quantity":1}]} 
[2026-03-23 19:36:13] local.INFO: PosOrderController::update - Item changes check {"order_id":6262,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["396|3|","60|2|","56|1|","96|1|","137|1|"],"new_items_map_keys":["396|3|","60|2|","56|1|","96|1|","137|1|"]} 
[2026-03-23 19:36:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6262,"order_number":"AZS-230326-031"} 
[2026-03-23 19:36:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6262,"order_number":"AZS-230326-031","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-23 19:36:13"} 
[2026-03-23 19:36:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6256,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":29810},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":29811},{"menu_item_id":49,"quantity":11,"discount_percent":0,"notes":null,"id":29812},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":29813},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":29814}],"validated_items":[{"id":29810,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":29811,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":29812,"menu_item_id":49,"quantity":11,"discount_percent":0,"notes":null},{"id":29813,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":29814,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:36:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6256,"items_count":5} 
[2026-03-23 19:36:40] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29810,"menu_item_id":96,"quantity":1},{"id":29811,"menu_item_id":98,"quantity":1},{"id":29812,"menu_item_id":49,"quantity":11},{"id":29813,"menu_item_id":61,"quantity":2},{"id":29814,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 19:36:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6256,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","98|1|","49|6|","61|2|","3|1|"],"new_items_map_keys":["96|1|","98|1|","49|11|","61|2|","3|1|"]} 
[2026-03-23 19:36:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6256,"order_number":"AZS-230326-024"} 
[2026-03-23 19:36:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-024","replaced_order_id":6256} 
[2026-03-23 19:36:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6263,"items_count":5,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":49,"quantity":11,"price":"70.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-23 19:36:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6263,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6263}} 
[2026-03-23 19:36:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6263,"item_index":0,"menu_item_id":96} 
[2026-03-23 19:36:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6263,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6263}} 
[2026-03-23 19:36:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6263,"item_index":1,"menu_item_id":98} 
[2026-03-23 19:36:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6263,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":11,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":770.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6263}} 
[2026-03-23 19:36:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6263,"item_index":2,"menu_item_id":49} 
[2026-03-23 19:36:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6263,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6263}} 
[2026-03-23 19:36:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6263,"item_index":3,"menu_item_id":61} 
[2026-03-23 19:36:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6263,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6263}} 
[2026-03-23 19:36:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6263,"item_index":4,"menu_item_id":3} 
[2026-03-23 19:36:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6256,"new_order_id":6263,"order_number":"AZS-230326-024"} 
[2026-03-23 19:37:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6263,"item_index":0,"item_id":29810} 
[2026-03-23 19:37:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6263,"item_index":1,"item_id":29811} 
[2026-03-23 19:37:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6263,"item_index":2,"item_id":29812} 
[2026-03-23 19:37:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6263,"item_index":3,"item_id":29813} 
[2026-03-23 19:37:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6263,"item_index":4,"item_id":29814} 
[2026-03-23 19:37:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6263,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29810},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29811},{"menu_item_id":49,"quantity":11,"price":70,"discount_percent":0,"notes":null,"id":29812},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29813},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29814}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":11,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:37:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6263,"items_count":5} 
[2026-03-23 19:37:29] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[29848,29849,29850,29851,29852],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":49,"quantity":11},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 19:37:29] local.INFO: PosOrderController::update - Item changes check {"order_id":6263,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","98|1|","49|11|","61|2|","3|1|"],"new_items_map_keys":["96|1|","98|1|","49|11|","61|2|","3|1|"]} 
[2026-03-23 19:37:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6263,"order_number":"AZS-230326-024"} 
[2026-03-23 19:37:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6263,"order_number":"AZS-230326-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 19:37:29"} 
[2026-03-23 19:37:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T07:37:45.391Z","date_to":"2026-03-23T19:37:45.391Z","per_page":"100"} 
[2026-03-23 19:37:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T07:37:45.410Z","date_to":"2026-03-23T19:37:45.410Z","per_page":"100"} 
[2026-03-23 19:37:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":31,"count":31,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":13,"unique_order_numbers":31} 
[2026-03-23 19:37:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":31,"count":31,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":13,"unique_order_numbers":31} 
[2026-03-23 19:37:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T07:37:45.391Z","date_to":"2026-03-23T19:37:45.391Z","per_page":"100"} 
[2026-03-23 19:37:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":31,"count":31,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":13,"unique_order_numbers":31} 
[2026-03-23 19:40:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6248,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29765},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":29766},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29767},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29768},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29769}],"validated_items":[{"id":29765,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":29766,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":29767,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29768,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29769,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:40:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6248,"items_count":5} 
[2026-03-23 19:40:32] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29765,"menu_item_id":99,"quantity":1},{"id":29766,"menu_item_id":396,"quantity":4},{"id":29767,"menu_item_id":61,"quantity":1},{"id":29768,"menu_item_id":56,"quantity":1},{"id":29769,"menu_item_id":5,"quantity":1}]} 
[2026-03-23 19:40:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6248,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["99|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["99|1|","396|4|","61|1|","56|1|","5|1|"]} 
[2026-03-23 19:40:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6248,"order_number":"AZS-230326-025"} 
[2026-03-23 19:40:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6248,"order_number":"AZS-230326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 19:40:32"} 
[2026-03-23 19:40:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6248,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":29765},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":29766},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29767},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29768},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29769},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29765,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":29766,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":29767,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29768,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29769,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:40:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6248,"items_count":6} 
[2026-03-23 19:40:58] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29765,"menu_item_id":99,"quantity":1},{"id":29766,"menu_item_id":396,"quantity":4},{"id":29767,"menu_item_id":61,"quantity":1},{"id":29768,"menu_item_id":56,"quantity":1},{"id":29769,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 19:40:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6248,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["99|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["99|1|","396|4|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-03-23 19:40:58] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6248,"order_number":"AZS-230326-025"} 
[2026-03-23 19:40:58] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-025","replaced_order_id":6248} 
[2026-03-23 19:40:58] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6264,"items_count":6,"items":[{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-23 19:40:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6264,"item_index":0,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6264}} 
[2026-03-23 19:40:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6264,"item_index":0,"menu_item_id":99} 
[2026-03-23 19:40:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6264,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6264}} 
[2026-03-23 19:40:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6264,"item_index":1,"menu_item_id":396} 
[2026-03-23 19:40:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6264,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6264}} 
[2026-03-23 19:40:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6264,"item_index":2,"menu_item_id":61} 
[2026-03-23 19:40:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6264,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6264}} 
[2026-03-23 19:40:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6264,"item_index":3,"menu_item_id":56} 
[2026-03-23 19:40:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6264,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6264}} 
[2026-03-23 19:40:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6264,"item_index":4,"menu_item_id":5} 
[2026-03-23 19:40:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6264,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6264}} 
[2026-03-23 19:40:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6264,"item_index":5,"menu_item_id":3} 
[2026-03-23 19:40:58] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6248,"new_order_id":6264,"order_number":"AZS-230326-025"} 
[2026-03-23 19:41:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6264,"item_index":0,"item_id":29765} 
[2026-03-23 19:41:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6264,"item_index":1,"item_id":29766} 
[2026-03-23 19:41:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6264,"item_index":2,"item_id":29767} 
[2026-03-23 19:41:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6264,"item_index":3,"item_id":29768} 
[2026-03-23 19:41:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6264,"item_index":4,"item_id":29769} 
[2026-03-23 19:41:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6264,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29765},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":29766},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29767},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29768},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29769},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:41:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6264,"items_count":6} 
[2026-03-23 19:41:05] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[29853,29854,29855,29856,29857,29858],"items":[{"id":null,"menu_item_id":99,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 19:41:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6264,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["99|1|","396|4|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["99|1|","396|4|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-03-23 19:41:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6264,"order_number":"AZS-230326-025"} 
[2026-03-23 19:41:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6264,"order_number":"AZS-230326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 19:41:05"} 
[2026-03-23 19:42:37] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6263,"order_number":"AZS-230326-024","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4030,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 19:42:37"} 
[2026-03-23 19:42:37] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6263,"order_number":"AZS-230326-024","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4030,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 19:42:37"} 
[2026-03-23 19:42:37] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6263,"order_number":"AZS-230326-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4030,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 19:42:37"} 
[2026-03-23 19:42:37] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6263,"order_number":"AZS-230326-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4030,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 19:42:37"} 
[2026-03-23 19:42:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6263,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29848},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29849},{"menu_item_id":49,"quantity":11,"price":70,"discount_percent":0,"notes":null,"id":29850},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29851},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29852}],"validated_items":[{"id":29848,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29849,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29850,"menu_item_id":49,"quantity":11,"price":70,"discount_percent":0,"notes":null},{"id":29851,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29852,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:42:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6263,"items_count":5} 
[2026-03-23 19:42:37] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29848,"menu_item_id":96,"quantity":1},{"id":29849,"menu_item_id":98,"quantity":1},{"id":29850,"menu_item_id":49,"quantity":11},{"id":29851,"menu_item_id":61,"quantity":2},{"id":29852,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 19:42:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6263,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","98|1|","49|11|","61|2|","3|1|"],"new_items_map_keys":["96|1|","98|1|","49|11|","61|2|","3|1|"]} 
[2026-03-23 19:42:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6263,"order_number":"AZS-230326-024"} 
[2026-03-23 19:42:37] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6263,"order_number":"AZS-230326-024","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4030,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 19:42:37","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 19:42:37"} 
[2026-03-23 19:42:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6263,"order_number":"AZS-230326-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 19:42:37"} 
[2026-03-23 19:42:37] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6263,"order_number":"AZS-230326-024","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4030.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 19:42:37","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4030,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4030.00","database_verification_match":true,"timestamp":"2026-03-23 19:42:37"} 
[2026-03-23 19:42:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6249,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":29770}],"validated_items":[{"id":29770,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:42:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6249,"items_count":1} 
[2026-03-23 19:42:48] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29770,"menu_item_id":385,"quantity":1}]} 
[2026-03-23 19:42:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6249,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-03-23 19:42:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6249,"order_number":"AZS-230326-026"} 
[2026-03-23 19:42:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6249,"order_number":"AZS-230326-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 19:42:48"} 
[2026-03-23 19:43:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6250,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":29771},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":29772}],"validated_items":[{"id":29771,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null},{"id":29772,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:43:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6250,"items_count":2} 
[2026-03-23 19:43:01] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29771,"menu_item_id":385,"quantity":1},{"id":29772,"menu_item_id":112,"quantity":1}]} 
[2026-03-23 19:43:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6250,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["385|1|","112|1|"],"new_items_map_keys":["385|1|","112|1|"]} 
[2026-03-23 19:43:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6250,"order_number":"AZS-230326-027"} 
[2026-03-23 19:43:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6250,"order_number":"AZS-230326-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 19:43:01"} 
[2026-03-23 19:43:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6250,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null,"id":29771},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":29772},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29771,"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null},{"id":29772,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:43:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6250,"items_count":3} 
[2026-03-23 19:43:23] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29771,"menu_item_id":385,"quantity":1},{"id":29772,"menu_item_id":112,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-23 19:43:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6250,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["385|1|","112|1|"],"new_items_map_keys":["385|1|","112|1|","5|1|"]} 
[2026-03-23 19:43:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6250,"order_number":"AZS-230326-027"} 
[2026-03-23 19:43:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-027","replaced_order_id":6250} 
[2026-03-23 19:43:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6265,"items_count":3,"items":[{"menu_item_id":385,"quantity":1,"price":"2899.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-23 19:43:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6265,"item_index":0,"item_data":{"menu_item_id":385,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 02","quantity":1,"price":"2899.00","discount_percent":0.0,"discount_amount":0.0,"total":2899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6265}} 
[2026-03-23 19:43:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6265,"item_index":0,"menu_item_id":385} 
[2026-03-23 19:43:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6265,"item_index":1,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6265}} 
[2026-03-23 19:43:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6265,"item_index":1,"menu_item_id":112} 
[2026-03-23 19:43:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6265,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6265}} 
[2026-03-23 19:43:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6265,"item_index":2,"menu_item_id":5} 
[2026-03-23 19:43:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6250,"new_order_id":6265,"order_number":"AZS-230326-027"} 
[2026-03-23 19:43:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6265,"item_index":0,"item_id":29771} 
[2026-03-23 19:43:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6265,"item_index":1,"item_id":29772} 
[2026-03-23 19:43:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":6265,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":29771},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":29772},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:43:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6265,"items_count":3} 
[2026-03-23 19:43:29] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[29859,29860,29861],"items":[{"id":null,"menu_item_id":385,"quantity":1},{"id":null,"menu_item_id":112,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-23 19:43:29] local.INFO: PosOrderController::update - Item changes check {"order_id":6265,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["385|1|","112|1|","5|1|"],"new_items_map_keys":["385|1|","112|1|","5|1|"]} 
[2026-03-23 19:43:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6265,"order_number":"AZS-230326-027"} 
[2026-03-23 19:43:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6265,"order_number":"AZS-230326-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 19:43:29"} 
[2026-03-23 19:44:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6264,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29853},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":29854},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29855},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29856},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29858}],"validated_items":[{"id":29853,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":29854,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":29855,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29856,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29858,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:44:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6264,"items_count":5} 
[2026-03-23 19:44:22] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[29857],"items":[{"id":29853,"menu_item_id":99,"quantity":1},{"id":29854,"menu_item_id":396,"quantity":4},{"id":29855,"menu_item_id":61,"quantity":1},{"id":29856,"menu_item_id":56,"quantity":1},{"id":29858,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 19:44:22] local.INFO: PosOrderController::update - Item changes check {"order_id":6264,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["99|1|","396|4|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["99|1|","396|4|","61|1|","56|1|","3|1|"]} 
[2026-03-23 19:44:22] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6264,"order_number":"AZS-230326-025"} 
[2026-03-23 19:44:22] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-025","replaced_order_id":6264} 
[2026-03-23 19:44:22] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6266,"items_count":5,"items":[{"menu_item_id":99,"quantity":1,"price":2299.0},{"menu_item_id":396,"quantity":4,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-23 19:44:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6266,"item_index":0,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6266}} 
[2026-03-23 19:44:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6266,"item_index":0,"menu_item_id":99} 
[2026-03-23 19:44:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6266,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6266}} 
[2026-03-23 19:44:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6266,"item_index":1,"menu_item_id":396} 
[2026-03-23 19:44:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6266,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6266}} 
[2026-03-23 19:44:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6266,"item_index":2,"menu_item_id":61} 
[2026-03-23 19:44:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6266,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6266}} 
[2026-03-23 19:44:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6266,"item_index":3,"menu_item_id":56} 
[2026-03-23 19:44:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6266,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6266}} 
[2026-03-23 19:44:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6266,"item_index":4,"menu_item_id":3} 
[2026-03-23 19:44:22] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6264,"new_order_id":6266,"order_number":"AZS-230326-025"} 
[2026-03-23 19:44:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6266,"item_index":0,"item_id":29853} 
[2026-03-23 19:44:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6266,"item_index":1,"item_id":29854} 
[2026-03-23 19:44:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6266,"item_index":2,"item_id":29855} 
[2026-03-23 19:44:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6266,"item_index":3,"item_id":29856} 
[2026-03-23 19:44:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6266,"item_index":4,"item_id":29858} 
[2026-03-23 19:44:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6266,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29853},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":29854},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29855},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29856},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29858}],"validated_items":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:44:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6266,"items_count":5} 
[2026-03-23 19:44:27] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[29862,29863,29864,29865,29866],"items":[{"id":null,"menu_item_id":99,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 19:44:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6266,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["99|1|","396|4|","61|1|","56|1|","3|1|"],"new_items_map_keys":["99|1|","396|4|","61|1|","56|1|","3|1|"]} 
[2026-03-23 19:44:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6266,"order_number":"AZS-230326-025"} 
[2026-03-23 19:44:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6266,"order_number":"AZS-230326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 19:44:27"} 
[2026-03-23 19:47:11] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6249,"order_number":"AZS-230326-026","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3050,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 19:47:11"} 
[2026-03-23 19:47:11] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6249,"order_number":"AZS-230326-026","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3050,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 19:47:11"} 
[2026-03-23 19:47:11] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6249,"order_number":"AZS-230326-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3050,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 19:47:11"} 
[2026-03-23 19:47:11] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6249,"order_number":"AZS-230326-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3050,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 19:47:11"} 
[2026-03-23 19:47:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6249,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":29770}],"validated_items":[{"id":29770,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:47:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6249,"items_count":1} 
[2026-03-23 19:47:11] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29770,"menu_item_id":385,"quantity":1}]} 
[2026-03-23 19:47:11] local.INFO: PosOrderController::update - Item changes check {"order_id":6249,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-03-23 19:47:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6249,"order_number":"AZS-230326-026"} 
[2026-03-23 19:47:11] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6249,"order_number":"AZS-230326-026","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3050,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 19:47:11","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 19:47:11"} 
[2026-03-23 19:47:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6249,"order_number":"AZS-230326-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 19:47:11"} 
[2026-03-23 19:47:11] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6249,"order_number":"AZS-230326-026","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3050.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 19:47:11","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3050,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3050.00","database_verification_match":true,"timestamp":"2026-03-23 19:47:11"} 
[2026-03-23 19:48:13] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6230,"order_number":"AZS-230326-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3146,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 19:48:13"} 
[2026-03-23 19:48:13] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6230,"order_number":"AZS-230326-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3146,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 19:48:13"} 
[2026-03-23 19:48:13] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6230,"order_number":"AZS-230326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3146,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 19:48:13"} 
[2026-03-23 19:48:13] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6230,"order_number":"AZS-230326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3146,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 19:48:13"} 
[2026-03-23 19:48:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6230,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":29647},{"menu_item_id":173,"quantity":2,"price":649,"discount_percent":0,"notes":null,"id":29648},{"menu_item_id":42,"quantity":1,"price":299,"discount_percent":0,"notes":null,"id":29649}],"validated_items":[{"id":29647,"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":29648,"menu_item_id":173,"quantity":2,"price":649,"discount_percent":0,"notes":null},{"id":29649,"menu_item_id":42,"quantity":1,"price":299,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:48:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6230,"items_count":3} 
[2026-03-23 19:48:13] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29647,"menu_item_id":384,"quantity":1},{"id":29648,"menu_item_id":173,"quantity":2},{"id":29649,"menu_item_id":42,"quantity":1}]} 
[2026-03-23 19:48:13] local.INFO: PosOrderController::update - Item changes check {"order_id":6230,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["384|1|","173|2|","42|1|"],"new_items_map_keys":["384|1|","173|2|","42|1|"]} 
[2026-03-23 19:48:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6230,"order_number":"AZS-230326-019"} 
[2026-03-23 19:48:13] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6230,"order_number":"AZS-230326-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3146,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-23 19:48:13","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 19:48:13"} 
[2026-03-23 19:48:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6230,"order_number":"AZS-230326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 19:48:13"} 
[2026-03-23 19:48:13] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6230,"order_number":"AZS-230326-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3146.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-23 19:48:13","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3146,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3146.00","database_verification_match":true,"timestamp":"2026-03-23 19:48:13"} 
[2026-03-23 19:49:04] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6265,"order_number":"AZS-230326-027","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5006,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 19:49:04"} 
[2026-03-23 19:49:04] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6265,"order_number":"AZS-230326-027","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5006,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 19:49:04"} 
[2026-03-23 19:49:04] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6265,"order_number":"AZS-230326-027","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5006,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 19:49:04"} 
[2026-03-23 19:49:04] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6265,"order_number":"AZS-230326-027","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5006,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 19:49:04"} 
[2026-03-23 19:49:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6265,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":29859},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":29860},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29861}],"validated_items":[{"id":29859,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null},{"id":29860,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":29861,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:49:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6265,"items_count":3} 
[2026-03-23 19:49:04] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29859,"menu_item_id":385,"quantity":1},{"id":29860,"menu_item_id":112,"quantity":1},{"id":29861,"menu_item_id":5,"quantity":1}]} 
[2026-03-23 19:49:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6265,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["385|1|","112|1|","5|1|"],"new_items_map_keys":["385|1|","112|1|","5|1|"]} 
[2026-03-23 19:49:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6265,"order_number":"AZS-230326-027"} 
[2026-03-23 19:49:04] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6265,"order_number":"AZS-230326-027","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5006,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 19:49:04","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 19:49:04"} 
[2026-03-23 19:49:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6265,"order_number":"AZS-230326-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 19:49:04"} 
[2026-03-23 19:49:04] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6265,"order_number":"AZS-230326-027","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5006.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 19:49:04","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5006,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5006.00","database_verification_match":true,"timestamp":"2026-03-23 19:49:04"} 
[2026-03-23 19:49:20] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6242,"order_number":"AZS-230326-022","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":30,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 19:49:20"} 
[2026-03-23 19:49:20] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6242,"order_number":"AZS-230326-022","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":30,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 19:49:20"} 
[2026-03-23 19:49:20] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6242,"order_number":"AZS-230326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":30,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 19:49:20"} 
[2026-03-23 19:49:20] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6242,"order_number":"AZS-230326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":30,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 19:49:20"} 
[2026-03-23 19:49:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6242,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":29731}],"validated_items":[{"id":29731,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:49:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6242,"items_count":1} 
[2026-03-23 19:49:20] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29731,"menu_item_id":286,"quantity":2}]} 
[2026-03-23 19:49:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6242,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["286|2|"],"new_items_map_keys":["286|2|"]} 
[2026-03-23 19:49:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6242,"order_number":"AZS-230326-022"} 
[2026-03-23 19:49:20] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6242,"order_number":"AZS-230326-022","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":30,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 19:49:20","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 19:49:20"} 
[2026-03-23 19:49:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6242,"order_number":"AZS-230326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 19:49:20"} 
[2026-03-23 19:49:20] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6242,"order_number":"AZS-230326-022","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"30.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 19:49:20","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":30,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"30.00","database_verification_match":true,"timestamp":"2026-03-23 19:49:20"} 
[2026-03-23 19:49:35] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6241,"order_number":"AZS-230326-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":170,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 19:49:35"} 
[2026-03-23 19:49:35] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6241,"order_number":"AZS-230326-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":170,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 19:49:35"} 
[2026-03-23 19:49:35] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6241,"order_number":"AZS-230326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":170,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 19:49:35"} 
[2026-03-23 19:49:35] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6241,"order_number":"AZS-230326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":170,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 19:49:35"} 
[2026-03-23 19:49:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6241,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29730}],"validated_items":[{"id":29730,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:49:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6241,"items_count":1} 
[2026-03-23 19:49:35] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29730,"menu_item_id":5,"quantity":1}]} 
[2026-03-23 19:49:35] local.INFO: PosOrderController::update - Item changes check {"order_id":6241,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["5|1|"],"new_items_map_keys":["5|1|"]} 
[2026-03-23 19:49:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6241,"order_number":"AZS-230326-021"} 
[2026-03-23 19:49:35] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6241,"order_number":"AZS-230326-021","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":170,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 19:49:35","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 19:49:35"} 
[2026-03-23 19:49:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6241,"order_number":"AZS-230326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 19:49:35"} 
[2026-03-23 19:49:35] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6241,"order_number":"AZS-230326-021","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"170.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 19:49:35","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":170,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"170.00","database_verification_match":true,"timestamp":"2026-03-23 19:49:35"} 
[2026-03-23 19:51:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6266,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29862},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":29863},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29864},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29865},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29866}],"validated_items":[{"id":29862,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":29863,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":29864,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29865,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29866,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:51:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6266,"items_count":5} 
[2026-03-23 19:51:43] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29862,"menu_item_id":99,"quantity":1},{"id":29863,"menu_item_id":396,"quantity":4},{"id":29864,"menu_item_id":61,"quantity":1},{"id":29865,"menu_item_id":56,"quantity":1},{"id":29866,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 19:51:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6266,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["99|1|","396|4|","61|1|","56|1|","3|1|"],"new_items_map_keys":["99|1|","396|4|","61|1|","56|1|","3|1|"]} 
[2026-03-23 19:51:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6266,"order_number":"AZS-230326-025"} 
[2026-03-23 19:51:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6266,"order_number":"AZS-230326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 19:51:43"} 
[2026-03-23 19:52:34] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6266,"order_number":"AZS-230326-025","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 19:52:34"} 
[2026-03-23 19:52:34] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6266,"order_number":"AZS-230326-025","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 19:52:34"} 
[2026-03-23 19:52:34] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6266,"order_number":"AZS-230326-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 19:52:34"} 
[2026-03-23 19:52:34] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6266,"order_number":"AZS-230326-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 19:52:34"} 
[2026-03-23 19:52:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":6266,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29862},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":29863},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29865},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29866}],"validated_items":[{"id":29862,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":29863,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":29865,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29866,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:52:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6266,"items_count":4} 
[2026-03-23 19:52:34] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[29864],"items":[{"id":29862,"menu_item_id":99,"quantity":1},{"id":29863,"menu_item_id":396,"quantity":4},{"id":29865,"menu_item_id":56,"quantity":1},{"id":29866,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 19:52:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6266,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["99|1|","396|4|","61|1|","56|1|","3|1|"],"new_items_map_keys":["99|1|","396|4|","56|1|","3|1|"]} 
[2026-03-23 19:52:34] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6266,"order_number":"AZS-230326-025","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3500,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-23 19:52:34","original_payment_amount":"0.00","grand_total":3164.0,"timestamp":"2026-03-23 19:52:34"} 
[2026-03-23 19:52:34] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6266,"order_number":"AZS-230326-025"} 
[2026-03-23 19:52:34] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-025","replaced_order_id":6266} 
[2026-03-23 19:52:34] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6266,"new_order_id":6267,"order_number":"AZS-230326-025","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3500.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-23 19:52:34","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-23 19:52:34"} 
[2026-03-23 19:52:34] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6267,"items_count":4,"items":[{"menu_item_id":99,"quantity":1,"price":2299.0},{"menu_item_id":396,"quantity":4,"price":99.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-23 19:52:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6267,"item_index":0,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6267}} 
[2026-03-23 19:52:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6267,"item_index":0,"menu_item_id":99} 
[2026-03-23 19:52:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6267,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6267}} 
[2026-03-23 19:52:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6267,"item_index":1,"menu_item_id":396} 
[2026-03-23 19:52:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6267,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6267}} 
[2026-03-23 19:52:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6267,"item_index":2,"menu_item_id":56} 
[2026-03-23 19:52:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6267,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6267}} 
[2026-03-23 19:52:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6267,"item_index":3,"menu_item_id":3} 
[2026-03-23 19:52:34] local.ERROR: Error tracking recipe usage for order 6267: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6267, 99, 77, 1, 1, 0.00, Order #AZS-230326-025 - 1x Chicken White - Full, 2026-03-23 19:52:34, 2026-03-23 19:52:34))  
[2026-03-23 19:52:34] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6266,"new_order_id":6267,"order_number":"AZS-230326-025"} 
[2026-03-23 19:52:34] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6266,"new_order_id":6267,"order_number":"AZS-230326-025","route":"api/orders/6266"} 
[2026-03-23 19:52:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T07:52:46.577Z","date_to":"2026-03-23T19:52:46.577Z","per_page":"100"} 
[2026-03-23 19:52:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T07:52:46.562Z","date_to":"2026-03-23T19:52:46.562Z","per_page":"100"} 
[2026-03-23 19:52:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":31,"count":31,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":6,"unique_order_numbers":31} 
[2026-03-23 19:52:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":31,"count":31,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":6,"unique_order_numbers":31} 
[2026-03-23 19:52:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T07:52:46.562Z","date_to":"2026-03-23T19:52:46.562Z","per_page":"100"} 
[2026-03-23 19:52:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":31,"count":31,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":6,"unique_order_numbers":31} 
[2026-03-23 19:53:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6257,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":3,"discount_percent":0,"notes":null,"id":29815},{"menu_item_id":49,"quantity":12,"discount_percent":0,"notes":null,"id":29816},{"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null,"id":29817},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29818},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":29815,"menu_item_id":114,"quantity":3,"discount_percent":0,"notes":null},{"id":29816,"menu_item_id":49,"quantity":12,"discount_percent":0,"notes":null},{"id":29817,"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null},{"id":29818,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:53:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6257,"items_count":5} 
[2026-03-23 19:53:05] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29815,"menu_item_id":114,"quantity":3},{"id":29816,"menu_item_id":49,"quantity":12},{"id":29817,"menu_item_id":60,"quantity":2},{"id":29818,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-03-23 19:53:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6257,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["114|3|","49|12|","60|2|","5|1|"],"new_items_map_keys":["114|3|","49|12|","60|2|","5|1|","3|2|"]} 
[2026-03-23 19:53:05] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6257,"order_number":"AZS-230326-028"} 
[2026-03-23 19:53:05] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-028","replaced_order_id":6257} 
[2026-03-23 19:53:05] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6268,"items_count":5,"items":[{"menu_item_id":114,"quantity":3,"price":"2299.00"},{"menu_item_id":49,"quantity":12,"price":"70.00"},{"menu_item_id":60,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-03-23 19:53:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6268,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":3,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":6897.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6268}} 
[2026-03-23 19:53:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6268,"item_index":0,"menu_item_id":114} 
[2026-03-23 19:53:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6268,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":12,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":840.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6268}} 
[2026-03-23 19:53:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6268,"item_index":1,"menu_item_id":49} 
[2026-03-23 19:53:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6268,"item_index":2,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6268}} 
[2026-03-23 19:53:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6268,"item_index":2,"menu_item_id":60} 
[2026-03-23 19:53:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6268,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6268}} 
[2026-03-23 19:53:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6268,"item_index":3,"menu_item_id":5} 
[2026-03-23 19:53:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6268,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6268}} 
[2026-03-23 19:53:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6268,"item_index":4,"menu_item_id":3} 
[2026-03-23 19:53:05] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6257,"new_order_id":6268,"order_number":"AZS-230326-028"} 
[2026-03-23 19:58:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6268,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":3,"discount_percent":0,"notes":null,"id":29871},{"menu_item_id":49,"quantity":12,"discount_percent":0,"notes":null,"id":29872},{"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null,"id":29873},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29874},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":29875},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null}],"validated_items":[{"id":29871,"menu_item_id":114,"quantity":3,"discount_percent":0,"notes":null},{"id":29872,"menu_item_id":49,"quantity":12,"discount_percent":0,"notes":null},{"id":29873,"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null},{"id":29874,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":29875,"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-03-23 19:58:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6268,"items_count":6} 
[2026-03-23 19:58:59] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29871,"menu_item_id":114,"quantity":3},{"id":29872,"menu_item_id":49,"quantity":12},{"id":29873,"menu_item_id":60,"quantity":2},{"id":29874,"menu_item_id":5,"quantity":1},{"id":29875,"menu_item_id":3,"quantity":2},{"id":null,"menu_item_id":396,"quantity":4}]} 
[2026-03-23 19:58:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6268,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["114|3|","49|12|","60|2|","5|1|","3|2|"],"new_items_map_keys":["114|3|","49|12|","60|2|","5|1|","3|2|","396|4|"]} 
[2026-03-23 19:58:59] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6268,"order_number":"AZS-230326-028"} 
[2026-03-23 19:58:59] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-028","replaced_order_id":6268} 
[2026-03-23 19:58:59] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6269,"items_count":6,"items":[{"menu_item_id":114,"quantity":3,"price":"2299.00"},{"menu_item_id":49,"quantity":12,"price":"70.00"},{"menu_item_id":60,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"}]} 
[2026-03-23 19:58:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6269,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":3,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":6897.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6269}} 
[2026-03-23 19:58:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6269,"item_index":0,"menu_item_id":114} 
[2026-03-23 19:58:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6269,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":12,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":840.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6269}} 
[2026-03-23 19:58:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6269,"item_index":1,"menu_item_id":49} 
[2026-03-23 19:58:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6269,"item_index":2,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6269}} 
[2026-03-23 19:58:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6269,"item_index":2,"menu_item_id":60} 
[2026-03-23 19:58:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6269,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6269}} 
[2026-03-23 19:58:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6269,"item_index":3,"menu_item_id":5} 
[2026-03-23 19:58:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6269,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6269}} 
[2026-03-23 19:58:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6269,"item_index":4,"menu_item_id":3} 
[2026-03-23 19:58:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6269,"item_index":5,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6269}} 
[2026-03-23 19:58:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6269,"item_index":5,"menu_item_id":396} 
[2026-03-23 19:58:59] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6268,"new_order_id":6269,"order_number":"AZS-230326-028"} 
[2026-03-23 20:02:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6262,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":29843},{"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null,"id":29844},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29845},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":29846},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":29847},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29843,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":29844,"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null},{"id":29845,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29846,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":29847,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-23 20:02:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6262,"items_count":6} 
[2026-03-23 20:02:34] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29843,"menu_item_id":396,"quantity":3},{"id":29844,"menu_item_id":60,"quantity":2},{"id":29845,"menu_item_id":56,"quantity":1},{"id":29846,"menu_item_id":96,"quantity":1},{"id":29847,"menu_item_id":137,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 20:02:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6262,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["396|3|","60|2|","56|1|","96|1|","137|1|"],"new_items_map_keys":["396|3|","60|2|","56|1|","96|1|","137|1|","3|1|"]} 
[2026-03-23 20:02:34] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6262,"order_number":"AZS-230326-031"} 
[2026-03-23 20:02:34] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-031","replaced_order_id":6262} 
[2026-03-23 20:02:34] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6270,"items_count":6,"items":[{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":60,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":137,"quantity":1,"price":"1299.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-23 20:02:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6270,"item_index":0,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6270}} 
[2026-03-23 20:02:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6270,"item_index":0,"menu_item_id":396} 
[2026-03-23 20:02:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6270,"item_index":1,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6270}} 
[2026-03-23 20:02:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6270,"item_index":1,"menu_item_id":60} 
[2026-03-23 20:02:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6270,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6270}} 
[2026-03-23 20:02:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6270,"item_index":2,"menu_item_id":56} 
[2026-03-23 20:02:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6270,"item_index":3,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6270}} 
[2026-03-23 20:02:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6270,"item_index":3,"menu_item_id":96} 
[2026-03-23 20:02:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6270,"item_index":4,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6270}} 
[2026-03-23 20:02:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6270,"item_index":4,"menu_item_id":137} 
[2026-03-23 20:02:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6270,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6270}} 
[2026-03-23 20:02:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6270,"item_index":5,"menu_item_id":3} 
[2026-03-23 20:02:34] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6262,"new_order_id":6270,"order_number":"AZS-230326-031"} 
[2026-03-23 20:08:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T08:08:51.125Z","date_to":"2026-03-23T20:08:51.125Z","per_page":"100"} 
[2026-03-23 20:08:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T08:08:51.104Z","date_to":"2026-03-23T20:08:51.104Z","per_page":"100"} 
[2026-03-23 20:08:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":31,"count":31,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":6,"unique_order_numbers":31} 
[2026-03-23 20:08:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":31,"count":31,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":6,"unique_order_numbers":31} 
[2026-03-23 20:08:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T08:08:51.104Z","date_to":"2026-03-23T20:08:51.104Z","per_page":"100"} 
[2026-03-23 20:08:45] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":31,"count":31,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":6,"unique_order_numbers":31} 
[2026-03-23 20:10:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6260,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null,"id":29833},{"menu_item_id":49,"quantity":10,"discount_percent":0,"notes":null,"id":29834},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":29835},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":29836},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29837},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":29833,"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null},{"id":29834,"menu_item_id":49,"quantity":10,"discount_percent":0,"notes":null},{"id":29835,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":29836,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":29837,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-23 20:10:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6260,"items_count":6} 
[2026-03-23 20:10:06] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29833,"menu_item_id":114,"quantity":2},{"id":29834,"menu_item_id":49,"quantity":10},{"id":29835,"menu_item_id":61,"quantity":2},{"id":29836,"menu_item_id":56,"quantity":2},{"id":29837,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-03-23 20:10:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6260,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["114|2|","49|10|","61|2|","56|2|","5|1|"],"new_items_map_keys":["114|2|","49|10|","61|2|","56|2|","5|1|","3|2|"]} 
[2026-03-23 20:10:06] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6260,"order_number":"AZS-230326-030"} 
[2026-03-23 20:10:06] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-030","replaced_order_id":6260} 
[2026-03-23 20:10:06] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6271,"items_count":6,"items":[{"menu_item_id":114,"quantity":2,"price":"2299.00"},{"menu_item_id":49,"quantity":10,"price":"70.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-03-23 20:10:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6271,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6271}} 
[2026-03-23 20:10:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6271,"item_index":0,"menu_item_id":114} 
[2026-03-23 20:10:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6271,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":10,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":700.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6271}} 
[2026-03-23 20:10:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6271,"item_index":1,"menu_item_id":49} 
[2026-03-23 20:10:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6271,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6271}} 
[2026-03-23 20:10:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6271,"item_index":2,"menu_item_id":61} 
[2026-03-23 20:10:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6271,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6271}} 
[2026-03-23 20:10:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6271,"item_index":3,"menu_item_id":56} 
[2026-03-23 20:10:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6271,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6271}} 
[2026-03-23 20:10:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6271,"item_index":4,"menu_item_id":5} 
[2026-03-23 20:10:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6271,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6271}} 
[2026-03-23 20:10:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6271,"item_index":5,"menu_item_id":3} 
[2026-03-23 20:10:06] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6260,"new_order_id":6271,"order_number":"AZS-230326-030"} 
[2026-03-23 20:11:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6269,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":3,"discount_percent":0,"notes":null,"id":29876},{"menu_item_id":49,"quantity":12,"discount_percent":0,"notes":null,"id":29877},{"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null,"id":29878},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":29880},{"menu_item_id":396,"quantity":6,"discount_percent":0,"notes":null,"id":29881}],"validated_items":[{"id":29876,"menu_item_id":114,"quantity":3,"discount_percent":0,"notes":null},{"id":29877,"menu_item_id":49,"quantity":12,"discount_percent":0,"notes":null},{"id":29878,"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null},{"id":29880,"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null},{"id":29881,"menu_item_id":396,"quantity":6,"discount_percent":0,"notes":null}]} 
[2026-03-23 20:11:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6269,"items_count":5} 
[2026-03-23 20:11:42] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[29879],"items":[{"id":29876,"menu_item_id":114,"quantity":3},{"id":29877,"menu_item_id":49,"quantity":12},{"id":29878,"menu_item_id":60,"quantity":2},{"id":29880,"menu_item_id":3,"quantity":2},{"id":29881,"menu_item_id":396,"quantity":6}]} 
[2026-03-23 20:11:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6269,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["114|3|","49|12|","60|2|","5|1|","3|2|","396|4|"],"new_items_map_keys":["114|3|","49|12|","60|2|","3|2|","396|6|"]} 
[2026-03-23 20:11:42] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6269,"order_number":"AZS-230326-028"} 
[2026-03-23 20:11:42] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-028","replaced_order_id":6269} 
[2026-03-23 20:11:42] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6272,"items_count":5,"items":[{"menu_item_id":114,"quantity":3,"price":"2299.00"},{"menu_item_id":49,"quantity":12,"price":"70.00"},{"menu_item_id":60,"quantity":2,"price":"199.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"},{"menu_item_id":396,"quantity":6,"price":"99.00"}]} 
[2026-03-23 20:11:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6272,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":3,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":6897.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6272}} 
[2026-03-23 20:11:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6272,"item_index":0,"menu_item_id":114} 
[2026-03-23 20:11:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6272,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":12,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":840.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6272}} 
[2026-03-23 20:11:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6272,"item_index":1,"menu_item_id":49} 
[2026-03-23 20:11:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6272,"item_index":2,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6272}} 
[2026-03-23 20:11:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6272,"item_index":2,"menu_item_id":60} 
[2026-03-23 20:11:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6272,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6272}} 
[2026-03-23 20:11:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6272,"item_index":3,"menu_item_id":3} 
[2026-03-23 20:11:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6272,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":6,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":594.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6272}} 
[2026-03-23 20:11:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6272,"item_index":4,"menu_item_id":396} 
[2026-03-23 20:11:42] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6269,"new_order_id":6272,"order_number":"AZS-230326-028"} 
[2026-03-23 20:11:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6272,"item_index":0,"item_id":29876} 
[2026-03-23 20:11:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6272,"item_index":1,"item_id":29877} 
[2026-03-23 20:11:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6272,"item_index":2,"item_id":29878} 
[2026-03-23 20:11:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6272,"item_index":3,"item_id":29880} 
[2026-03-23 20:11:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6272,"item_index":4,"item_id":29881} 
[2026-03-23 20:11:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6272,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":3,"price":2299,"discount_percent":0,"notes":null,"id":29876},{"menu_item_id":49,"quantity":12,"price":70,"discount_percent":0,"notes":null,"id":29877},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29878},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":29880},{"menu_item_id":396,"quantity":6,"price":99,"discount_percent":0,"notes":null,"id":29881}],"validated_items":[{"menu_item_id":114,"quantity":3,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":12,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":6,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-23 20:11:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6272,"items_count":5} 
[2026-03-23 20:11:52] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[29894,29895,29896,29897,29898],"items":[{"id":null,"menu_item_id":114,"quantity":3},{"id":null,"menu_item_id":49,"quantity":12},{"id":null,"menu_item_id":60,"quantity":2},{"id":null,"menu_item_id":3,"quantity":2},{"id":null,"menu_item_id":396,"quantity":6}]} 
[2026-03-23 20:11:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6272,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|3|","49|12|","60|2|","3|2|","396|6|"],"new_items_map_keys":["114|3|","49|12|","60|2|","3|2|","396|6|"]} 
[2026-03-23 20:11:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6272,"order_number":"AZS-230326-028"} 
[2026-03-23 20:11:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6272,"order_number":"AZS-230326-028","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 20:11:52"} 
[2026-03-23 20:11:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6272,"item_index":0,"item_id":29876} 
[2026-03-23 20:11:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6272,"item_index":1,"item_id":29877} 
[2026-03-23 20:11:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6272,"item_index":2,"item_id":29878} 
[2026-03-23 20:11:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6272,"item_index":3,"item_id":29880} 
[2026-03-23 20:11:59] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6272,"item_index":4,"item_id":29881} 
[2026-03-23 20:11:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6272,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":3,"price":2299,"discount_percent":0,"notes":null,"id":29876},{"menu_item_id":49,"quantity":12,"price":70,"discount_percent":0,"notes":null,"id":29877},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29878},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":29880},{"menu_item_id":396,"quantity":6,"price":99,"discount_percent":0,"notes":null,"id":29881}],"validated_items":[{"menu_item_id":114,"quantity":3,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":12,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":6,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-23 20:11:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6272,"items_count":5} 
[2026-03-23 20:11:59] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[29894,29895,29896,29897,29898],"items":[{"id":null,"menu_item_id":114,"quantity":3},{"id":null,"menu_item_id":49,"quantity":12},{"id":null,"menu_item_id":60,"quantity":2},{"id":null,"menu_item_id":3,"quantity":2},{"id":null,"menu_item_id":396,"quantity":6}]} 
[2026-03-23 20:11:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6272,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|3|","49|12|","60|2|","3|2|","396|6|"],"new_items_map_keys":["114|3|","49|12|","60|2|","3|2|","396|6|"]} 
[2026-03-23 20:11:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6272,"order_number":"AZS-230326-028"} 
[2026-03-23 20:11:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6272,"order_number":"AZS-230326-028","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 20:11:59"} 
[2026-03-23 20:12:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6272,"item_index":0,"item_id":29876} 
[2026-03-23 20:12:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6272,"item_index":1,"item_id":29877} 
[2026-03-23 20:12:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6272,"item_index":2,"item_id":29878} 
[2026-03-23 20:12:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6272,"item_index":3,"item_id":29880} 
[2026-03-23 20:12:29] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6272,"item_index":4,"item_id":29881} 
[2026-03-23 20:12:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6272,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":3,"discount_percent":0,"notes":null,"id":29876},{"menu_item_id":49,"quantity":12,"discount_percent":0,"notes":null,"id":29877},{"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null,"id":29878},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null,"id":29880},{"menu_item_id":396,"quantity":6,"discount_percent":0,"notes":null,"id":29881}],"validated_items":[{"menu_item_id":114,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":12,"discount_percent":0,"notes":null},{"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":6,"discount_percent":0,"notes":null}]} 
[2026-03-23 20:12:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6272,"items_count":5} 
[2026-03-23 20:12:29] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[29894,29895,29896,29897,29898],"items":[{"id":null,"menu_item_id":114,"quantity":3},{"id":null,"menu_item_id":49,"quantity":12},{"id":null,"menu_item_id":60,"quantity":2},{"id":null,"menu_item_id":3,"quantity":3},{"id":null,"menu_item_id":396,"quantity":6}]} 
[2026-03-23 20:12:29] local.INFO: PosOrderController::update - Item changes check {"order_id":6272,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|3|","49|12|","60|2|","3|2|","396|6|"],"new_items_map_keys":["114|3|","49|12|","60|2|","3|3|","396|6|"]} 
[2026-03-23 20:12:29] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6272,"order_number":"AZS-230326-028"} 
[2026-03-23 20:12:29] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-028","replaced_order_id":6272} 
[2026-03-23 20:12:29] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6273,"items_count":5,"items":[{"menu_item_id":114,"quantity":3,"price":"2299.00"},{"menu_item_id":49,"quantity":12,"price":"70.00"},{"menu_item_id":60,"quantity":2,"price":"199.00"},{"menu_item_id":3,"quantity":3,"price":"270.00"},{"menu_item_id":396,"quantity":6,"price":"99.00"}]} 
[2026-03-23 20:12:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6273,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":3,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":6897.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6273}} 
[2026-03-23 20:12:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6273,"item_index":0,"menu_item_id":114} 
[2026-03-23 20:12:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6273,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":12,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":840.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6273}} 
[2026-03-23 20:12:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6273,"item_index":1,"menu_item_id":49} 
[2026-03-23 20:12:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6273,"item_index":2,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6273}} 
[2026-03-23 20:12:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6273,"item_index":2,"menu_item_id":60} 
[2026-03-23 20:12:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6273,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":3,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":810.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6273}} 
[2026-03-23 20:12:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6273,"item_index":3,"menu_item_id":3} 
[2026-03-23 20:12:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6273,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":6,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":594.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6273}} 
[2026-03-23 20:12:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6273,"item_index":4,"menu_item_id":396} 
[2026-03-23 20:12:29] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6272,"new_order_id":6273,"order_number":"AZS-230326-028"} 
[2026-03-23 20:12:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6273,"item_index":0,"item_id":29876} 
[2026-03-23 20:12:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6273,"item_index":1,"item_id":29877} 
[2026-03-23 20:12:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6273,"item_index":2,"item_id":29878} 
[2026-03-23 20:12:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6273,"item_index":3,"item_id":29880} 
[2026-03-23 20:12:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6273,"item_index":4,"item_id":29881} 
[2026-03-23 20:12:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6273,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":3,"price":2299,"discount_percent":0,"notes":null,"id":29876},{"menu_item_id":49,"quantity":12,"price":70,"discount_percent":0,"notes":null,"id":29877},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29878},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null,"id":29880},{"menu_item_id":396,"quantity":6,"price":99,"discount_percent":0,"notes":null,"id":29881}],"validated_items":[{"menu_item_id":114,"quantity":3,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":12,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":6,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-23 20:12:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6273,"items_count":5} 
[2026-03-23 20:12:35] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[29899,29900,29901,29902,29903],"items":[{"id":null,"menu_item_id":114,"quantity":3},{"id":null,"menu_item_id":49,"quantity":12},{"id":null,"menu_item_id":60,"quantity":2},{"id":null,"menu_item_id":3,"quantity":3},{"id":null,"menu_item_id":396,"quantity":6}]} 
[2026-03-23 20:12:35] local.INFO: PosOrderController::update - Item changes check {"order_id":6273,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|3|","49|12|","60|2|","3|3|","396|6|"],"new_items_map_keys":["114|3|","49|12|","60|2|","3|3|","396|6|"]} 
[2026-03-23 20:12:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6273,"order_number":"AZS-230326-028"} 
[2026-03-23 20:12:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6273,"order_number":"AZS-230326-028","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 20:12:35"} 
[2026-03-23 20:12:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6273,"item_index":0,"item_id":29876} 
[2026-03-23 20:12:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6273,"item_index":1,"item_id":29877} 
[2026-03-23 20:12:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6273,"item_index":2,"item_id":29878} 
[2026-03-23 20:12:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6273,"item_index":3,"item_id":29880} 
[2026-03-23 20:12:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6273,"item_index":4,"item_id":29881} 
[2026-03-23 20:12:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6273,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":3,"price":2299,"discount_percent":0,"notes":null,"id":29876},{"menu_item_id":49,"quantity":12,"price":70,"discount_percent":0,"notes":null,"id":29877},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29878},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null,"id":29880},{"menu_item_id":396,"quantity":6,"price":99,"discount_percent":0,"notes":null,"id":29881}],"validated_items":[{"menu_item_id":114,"quantity":3,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":12,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":6,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-23 20:12:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6273,"items_count":5} 
[2026-03-23 20:12:47] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[29899,29900,29901,29902,29903],"items":[{"id":null,"menu_item_id":114,"quantity":3},{"id":null,"menu_item_id":49,"quantity":12},{"id":null,"menu_item_id":60,"quantity":2},{"id":null,"menu_item_id":3,"quantity":3},{"id":null,"menu_item_id":396,"quantity":6}]} 
[2026-03-23 20:12:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6273,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|3|","49|12|","60|2|","3|3|","396|6|"],"new_items_map_keys":["114|3|","49|12|","60|2|","3|3|","396|6|"]} 
[2026-03-23 20:12:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6273,"order_number":"AZS-230326-028"} 
[2026-03-23 20:12:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6273,"order_number":"AZS-230326-028","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 20:12:47"} 
[2026-03-23 20:14:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T08:14:25.274Z","date_to":"2026-03-23T20:14:25.274Z","per_page":"100"} 
[2026-03-23 20:14:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T08:14:25.264Z","date_to":"2026-03-23T20:14:25.264Z","per_page":"100"} 
[2026-03-23 20:14:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":31,"count":31,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":6,"unique_order_numbers":31} 
[2026-03-23 20:14:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":31,"count":31,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":6,"unique_order_numbers":31} 
[2026-03-23 20:14:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T08:14:25.264Z","date_to":"2026-03-23T20:14:25.264Z","per_page":"100"} 
[2026-03-23 20:14:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":31,"count":31,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":6,"unique_order_numbers":31} 
[2026-03-23 20:14:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6271,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null,"id":29888},{"menu_item_id":49,"quantity":10,"discount_percent":0,"notes":null,"id":29889},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":29890},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":29891},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29892},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":29893},{"menu_item_id":50,"quantity":5,"discount_percent":0,"notes":null}],"validated_items":[{"id":29888,"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null},{"id":29889,"menu_item_id":49,"quantity":10,"discount_percent":0,"notes":null},{"id":29890,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":29891,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":29892,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":29893,"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":5,"discount_percent":0,"notes":null}]} 
[2026-03-23 20:14:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6271,"items_count":7} 
[2026-03-23 20:14:43] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29888,"menu_item_id":114,"quantity":2},{"id":29889,"menu_item_id":49,"quantity":10},{"id":29890,"menu_item_id":61,"quantity":2},{"id":29891,"menu_item_id":56,"quantity":2},{"id":29892,"menu_item_id":5,"quantity":1},{"id":29893,"menu_item_id":3,"quantity":2},{"id":null,"menu_item_id":50,"quantity":5}]} 
[2026-03-23 20:14:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6271,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["114|2|","49|10|","61|2|","56|2|","5|1|","3|2|"],"new_items_map_keys":["114|2|","49|10|","61|2|","56|2|","5|1|","3|2|","50|5|"]} 
[2026-03-23 20:14:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6271,"order_number":"AZS-230326-030"} 
[2026-03-23 20:14:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-030","replaced_order_id":6271} 
[2026-03-23 20:14:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6274,"items_count":7,"items":[{"menu_item_id":114,"quantity":2,"price":"2299.00"},{"menu_item_id":49,"quantity":10,"price":"70.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"},{"menu_item_id":50,"quantity":5,"price":"129.00"}]} 
[2026-03-23 20:14:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6274,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6274}} 
[2026-03-23 20:14:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6274,"item_index":0,"menu_item_id":114} 
[2026-03-23 20:14:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6274,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":10,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":700.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6274}} 
[2026-03-23 20:14:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6274,"item_index":1,"menu_item_id":49} 
[2026-03-23 20:14:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6274,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6274}} 
[2026-03-23 20:14:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6274,"item_index":2,"menu_item_id":61} 
[2026-03-23 20:14:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6274,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6274}} 
[2026-03-23 20:14:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6274,"item_index":3,"menu_item_id":56} 
[2026-03-23 20:14:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6274,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6274}} 
[2026-03-23 20:14:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6274,"item_index":4,"menu_item_id":5} 
[2026-03-23 20:14:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6274,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6274}} 
[2026-03-23 20:14:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6274,"item_index":5,"menu_item_id":3} 
[2026-03-23 20:14:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6274,"item_index":6,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":5,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":645.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6274}} 
[2026-03-23 20:14:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6274,"item_index":6,"menu_item_id":50} 
[2026-03-23 20:14:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6271,"new_order_id":6274,"order_number":"AZS-230326-030"} 
[2026-03-23 20:21:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6274,"item_index":0,"item_id":29888} 
[2026-03-23 20:21:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6274,"item_index":1,"item_id":29889} 
[2026-03-23 20:21:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6274,"item_index":2,"item_id":29890} 
[2026-03-23 20:21:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6274,"item_index":3,"item_id":29891} 
[2026-03-23 20:21:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6274,"item_index":4,"item_id":29892} 
[2026-03-23 20:21:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6274,"item_index":5,"item_id":29893} 
[2026-03-23 20:21:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":6274,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null,"id":29888},{"menu_item_id":49,"quantity":10,"discount_percent":0,"notes":null,"id":29889},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":29890},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":29891},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29892},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":29893},{"menu_item_id":50,"quantity":5,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":10,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":5,"discount_percent":0,"notes":null}]} 
[2026-03-23 20:21:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6274,"items_count":7} 
[2026-03-23 20:21:09] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[29904,29905,29906,29907,29908,29909,29910],"items":[{"id":null,"menu_item_id":114,"quantity":2},{"id":null,"menu_item_id":49,"quantity":10},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":2},{"id":null,"menu_item_id":50,"quantity":5}]} 
[2026-03-23 20:21:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6274,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|2|","49|10|","61|2|","56|2|","5|1|","3|2|","50|5|"],"new_items_map_keys":["114|2|","49|10|","61|3|","56|2|","5|1|","3|2|","50|5|"]} 
[2026-03-23 20:21:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6274,"order_number":"AZS-230326-030"} 
[2026-03-23 20:21:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-030","replaced_order_id":6274} 
[2026-03-23 20:21:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6275,"items_count":7,"items":[{"menu_item_id":114,"quantity":2,"price":"2299.00"},{"menu_item_id":49,"quantity":10,"price":"70.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"},{"menu_item_id":50,"quantity":5,"price":"129.00"}]} 
[2026-03-23 20:21:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6275,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6275}} 
[2026-03-23 20:21:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6275,"item_index":0,"menu_item_id":114} 
[2026-03-23 20:21:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6275,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":10,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":700.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6275}} 
[2026-03-23 20:21:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6275,"item_index":1,"menu_item_id":49} 
[2026-03-23 20:21:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6275,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6275}} 
[2026-03-23 20:21:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6275,"item_index":2,"menu_item_id":61} 
[2026-03-23 20:21:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6275,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6275}} 
[2026-03-23 20:21:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6275,"item_index":3,"menu_item_id":56} 
[2026-03-23 20:21:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6275,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6275}} 
[2026-03-23 20:21:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6275,"item_index":4,"menu_item_id":5} 
[2026-03-23 20:21:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6275,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6275}} 
[2026-03-23 20:21:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6275,"item_index":5,"menu_item_id":3} 
[2026-03-23 20:21:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6275,"item_index":6,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":5,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":645.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6275}} 
[2026-03-23 20:21:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6275,"item_index":6,"menu_item_id":50} 
[2026-03-23 20:21:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6274,"new_order_id":6275,"order_number":"AZS-230326-030"} 
[2026-03-23 20:24:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6259,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":29828},{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":29829},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29830},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29831},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29832}],"validated_items":[{"id":29828,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":29829,"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":29830,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29831,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29832,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-23 20:24:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6259,"items_count":5} 
[2026-03-23 20:24:01] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29828,"menu_item_id":95,"quantity":1},{"id":29829,"menu_item_id":52,"quantity":4},{"id":29830,"menu_item_id":61,"quantity":1},{"id":29831,"menu_item_id":56,"quantity":1},{"id":29832,"menu_item_id":5,"quantity":1}]} 
[2026-03-23 20:24:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6259,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["95|1|","52|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["95|1|","52|4|","61|1|","56|1|","5|1|"]} 
[2026-03-23 20:24:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6259,"order_number":"AZS-230326-029"} 
[2026-03-23 20:24:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6259,"order_number":"AZS-230326-029","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 20:24:01"} 
[2026-03-23 20:27:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6270,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":29882},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29883},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29884},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29885},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":29886},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29887}],"validated_items":[{"id":29882,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":29883,"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29884,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29885,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29886,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":29887,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 20:27:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6270,"items_count":6} 
[2026-03-23 20:27:39] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29882,"menu_item_id":396,"quantity":3},{"id":29883,"menu_item_id":60,"quantity":2},{"id":29884,"menu_item_id":56,"quantity":1},{"id":29885,"menu_item_id":96,"quantity":1},{"id":29886,"menu_item_id":137,"quantity":1},{"id":29887,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 20:27:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6270,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["396|3|","60|2|","56|1|","96|1|","137|1|","3|1|"],"new_items_map_keys":["396|3|","60|2|","56|1|","96|1|","137|1|","3|1|"]} 
[2026-03-23 20:27:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6270,"order_number":"AZS-230326-031"} 
[2026-03-23 20:27:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6270,"order_number":"AZS-230326-031","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 20:27:39"} 
[2026-03-23 20:31:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6275,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null,"id":29911},{"menu_item_id":49,"quantity":10,"discount_percent":0,"notes":null,"id":29912},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":29913},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":29914},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29915},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":29916},{"menu_item_id":50,"quantity":8,"discount_percent":0,"notes":null,"id":29917}],"validated_items":[{"id":29911,"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null},{"id":29912,"menu_item_id":49,"quantity":10,"discount_percent":0,"notes":null},{"id":29913,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":29914,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":29915,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":29916,"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null},{"id":29917,"menu_item_id":50,"quantity":8,"discount_percent":0,"notes":null}]} 
[2026-03-23 20:31:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6275,"items_count":7} 
[2026-03-23 20:31:34] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29911,"menu_item_id":114,"quantity":2},{"id":29912,"menu_item_id":49,"quantity":10},{"id":29913,"menu_item_id":61,"quantity":3},{"id":29914,"menu_item_id":56,"quantity":2},{"id":29915,"menu_item_id":5,"quantity":1},{"id":29916,"menu_item_id":3,"quantity":2},{"id":29917,"menu_item_id":50,"quantity":8}]} 
[2026-03-23 20:31:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6275,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|2|","49|10|","61|3|","56|2|","5|1|","3|2|","50|5|"],"new_items_map_keys":["114|2|","49|10|","61|3|","56|2|","5|1|","3|2|","50|8|"]} 
[2026-03-23 20:31:34] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6275,"order_number":"AZS-230326-030"} 
[2026-03-23 20:31:34] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-030","replaced_order_id":6275} 
[2026-03-23 20:31:34] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6276,"items_count":7,"items":[{"menu_item_id":114,"quantity":2,"price":"2299.00"},{"menu_item_id":49,"quantity":10,"price":"70.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"},{"menu_item_id":50,"quantity":8,"price":"129.00"}]} 
[2026-03-23 20:31:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6276,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6276}} 
[2026-03-23 20:31:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6276,"item_index":0,"menu_item_id":114} 
[2026-03-23 20:31:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6276,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":10,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":700.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6276}} 
[2026-03-23 20:31:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6276,"item_index":1,"menu_item_id":49} 
[2026-03-23 20:31:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6276,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6276}} 
[2026-03-23 20:31:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6276,"item_index":2,"menu_item_id":61} 
[2026-03-23 20:31:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6276,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6276}} 
[2026-03-23 20:31:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6276,"item_index":3,"menu_item_id":56} 
[2026-03-23 20:31:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6276,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6276}} 
[2026-03-23 20:31:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6276,"item_index":4,"menu_item_id":5} 
[2026-03-23 20:31:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6276,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6276}} 
[2026-03-23 20:31:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6276,"item_index":5,"menu_item_id":3} 
[2026-03-23 20:31:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6276,"item_index":6,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":8,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":1032.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6276}} 
[2026-03-23 20:31:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6276,"item_index":6,"menu_item_id":50} 
[2026-03-23 20:31:34] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6275,"new_order_id":6276,"order_number":"AZS-230326-030"} 
[2026-03-23 20:33:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6273,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":3,"price":2299,"discount_percent":0,"notes":null,"id":29899},{"menu_item_id":49,"quantity":12,"price":70,"discount_percent":0,"notes":null,"id":29900},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29901},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null,"id":29902},{"menu_item_id":396,"quantity":6,"price":99,"discount_percent":0,"notes":null,"id":29903}],"validated_items":[{"id":29899,"menu_item_id":114,"quantity":3,"price":2299,"discount_percent":0,"notes":null},{"id":29900,"menu_item_id":49,"quantity":12,"price":70,"discount_percent":0,"notes":null},{"id":29901,"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29902,"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null},{"id":29903,"menu_item_id":396,"quantity":6,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-23 20:33:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6273,"items_count":5} 
[2026-03-23 20:33:40] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29899,"menu_item_id":114,"quantity":3},{"id":29900,"menu_item_id":49,"quantity":12},{"id":29901,"menu_item_id":60,"quantity":2},{"id":29902,"menu_item_id":3,"quantity":3},{"id":29903,"menu_item_id":396,"quantity":6}]} 
[2026-03-23 20:33:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6273,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|3|","49|12|","60|2|","3|3|","396|6|"],"new_items_map_keys":["114|3|","49|12|","60|2|","3|3|","396|6|"]} 
[2026-03-23 20:33:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6273,"order_number":"AZS-230326-028"} 
[2026-03-23 20:33:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6273,"order_number":"AZS-230326-028","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 20:33:40"} 
[2026-03-23 20:34:10] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6273,"order_number":"AZS-230326-028","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 20:34:10"} 
[2026-03-23 20:34:10] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6273,"order_number":"AZS-230326-028","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 20:34:10"} 
[2026-03-23 20:34:10] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6273,"order_number":"AZS-230326-028","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 20:34:10"} 
[2026-03-23 20:34:10] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6273,"order_number":"AZS-230326-028","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 20:34:10"} 
[2026-03-23 20:34:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6273,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":3,"price":2299,"discount_percent":0,"notes":null,"id":29899},{"menu_item_id":49,"quantity":12,"price":70,"discount_percent":0,"notes":null,"id":29900},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29901},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null,"id":29902},{"menu_item_id":396,"quantity":6,"price":99,"discount_percent":0,"notes":null,"id":29903}],"validated_items":[{"id":29899,"menu_item_id":114,"quantity":3,"price":2299,"discount_percent":0,"notes":null},{"id":29900,"menu_item_id":49,"quantity":12,"price":70,"discount_percent":0,"notes":null},{"id":29901,"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29902,"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null},{"id":29903,"menu_item_id":396,"quantity":6,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-23 20:34:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6273,"items_count":5} 
[2026-03-23 20:34:10] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29899,"menu_item_id":114,"quantity":3},{"id":29900,"menu_item_id":49,"quantity":12},{"id":29901,"menu_item_id":60,"quantity":2},{"id":29902,"menu_item_id":3,"quantity":3},{"id":29903,"menu_item_id":396,"quantity":6}]} 
[2026-03-23 20:34:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6273,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|3|","49|12|","60|2|","3|3|","396|6|"],"new_items_map_keys":["114|3|","49|12|","60|2|","3|3|","396|6|"]} 
[2026-03-23 20:34:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6273,"order_number":"AZS-230326-028"} 
[2026-03-23 20:34:10] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6273,"order_number":"AZS-230326-028","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":10000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 20:34:10","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 20:34:10"} 
[2026-03-23 20:34:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6273,"order_number":"AZS-230326-028","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 20:34:10"} 
[2026-03-23 20:34:10] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6273,"order_number":"AZS-230326-028","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"10000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 20:34:10","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"10000.00","database_verification_match":true,"timestamp":"2026-03-23 20:34:10"} 
[2026-03-23 20:34:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T08:34:28.727Z","date_to":"2026-03-23T20:34:28.727Z","per_page":"100"} 
[2026-03-23 20:34:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T08:34:28.715Z","date_to":"2026-03-23T20:34:28.715Z","per_page":"100"} 
[2026-03-23 20:34:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":31,"count":31,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":26,"unpaid_count":5,"unique_order_numbers":31} 
[2026-03-23 20:34:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":31,"count":31,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":26,"unpaid_count":5,"unique_order_numbers":31} 
[2026-03-23 20:34:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T08:34:28.715Z","date_to":"2026-03-23T20:34:28.715Z","per_page":"100"} 
[2026-03-23 20:34:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":31,"count":31,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":26,"unpaid_count":5,"unique_order_numbers":31} 
[2026-03-23 20:35:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6259,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":29828},{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":29829},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29830},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29831},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29832}],"validated_items":[{"id":29828,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":29829,"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":29830,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29831,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29832,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-23 20:35:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6259,"items_count":5} 
[2026-03-23 20:35:34] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29828,"menu_item_id":95,"quantity":1},{"id":29829,"menu_item_id":52,"quantity":4},{"id":29830,"menu_item_id":61,"quantity":1},{"id":29831,"menu_item_id":56,"quantity":1},{"id":29832,"menu_item_id":5,"quantity":1}]} 
[2026-03-23 20:35:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6259,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["95|1|","52|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["95|1|","52|4|","61|1|","56|1|","5|1|"]} 
[2026-03-23 20:35:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6259,"order_number":"AZS-230326-029"} 
[2026-03-23 20:35:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6259,"order_number":"AZS-230326-029","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 20:35:34"} 
[2026-03-23 20:36:01] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6259,"order_number":"AZS-230326-029","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 20:36:01"} 
[2026-03-23 20:36:01] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6259,"order_number":"AZS-230326-029","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 20:36:01"} 
[2026-03-23 20:36:01] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6259,"order_number":"AZS-230326-029","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 20:36:01"} 
[2026-03-23 20:36:01] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6259,"order_number":"AZS-230326-029","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 20:36:01"} 
[2026-03-23 20:36:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":6259,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":29828},{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":29829},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29831},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29832}],"validated_items":[{"id":29828,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":29829,"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":29831,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29832,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-23 20:36:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6259,"items_count":4} 
[2026-03-23 20:36:01] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[29830],"items":[{"id":29828,"menu_item_id":95,"quantity":1},{"id":29829,"menu_item_id":52,"quantity":4},{"id":29831,"menu_item_id":56,"quantity":1},{"id":29832,"menu_item_id":5,"quantity":1}]} 
[2026-03-23 20:36:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6259,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["95|1|","52|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["95|1|","52|4|","56|1|","5|1|"]} 
[2026-03-23 20:36:01] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6259,"order_number":"AZS-230326-029","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-23 20:36:01","original_payment_amount":"0.00","grand_total":2648.0,"timestamp":"2026-03-23 20:36:01"} 
[2026-03-23 20:36:01] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6259,"order_number":"AZS-230326-029"} 
[2026-03-23 20:36:01] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-230326-029","replaced_order_id":6259} 
[2026-03-23 20:36:01] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6259,"new_order_id":6277,"order_number":"AZS-230326-029","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-23 20:36:01","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-23 20:36:01"} 
[2026-03-23 20:36:01] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6277,"items_count":4,"items":[{"menu_item_id":95,"quantity":1,"price":1999.0},{"menu_item_id":52,"quantity":4,"price":70.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-03-23 20:36:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6277,"item_index":0,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":1999.0,"discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6277}} 
[2026-03-23 20:36:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6277,"item_index":0,"menu_item_id":95} 
[2026-03-23 20:36:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6277,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":4,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6277}} 
[2026-03-23 20:36:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6277,"item_index":1,"menu_item_id":52} 
[2026-03-23 20:36:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6277,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6277}} 
[2026-03-23 20:36:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6277,"item_index":2,"menu_item_id":56} 
[2026-03-23 20:36:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6277,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6277}} 
[2026-03-23 20:36:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6277,"item_index":3,"menu_item_id":5} 
[2026-03-23 20:36:01] local.ERROR: Error tracking recipe usage for order 6277: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6277, 95, 184, 1, 500, 0.00, Order #AZS-230326-029 - 1x Chicken Makhni Handi, 2026-03-23 20:36:01, 2026-03-23 20:36:01))  
[2026-03-23 20:36:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6259,"new_order_id":6277,"order_number":"AZS-230326-029"} 
[2026-03-23 20:36:02] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6259,"new_order_id":6277,"order_number":"AZS-230326-029","route":"api/orders/6259"} 
[2026-03-23 20:36:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6270,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":29882},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29883},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29884},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29885},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":29886},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29887}],"validated_items":[{"id":29882,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":29883,"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29884,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29885,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29886,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":29887,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 20:36:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6270,"items_count":6} 
[2026-03-23 20:36:17] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29882,"menu_item_id":396,"quantity":3},{"id":29883,"menu_item_id":60,"quantity":2},{"id":29884,"menu_item_id":56,"quantity":1},{"id":29885,"menu_item_id":96,"quantity":1},{"id":29886,"menu_item_id":137,"quantity":1},{"id":29887,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 20:36:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6270,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["396|3|","60|2|","56|1|","96|1|","137|1|","3|1|"],"new_items_map_keys":["396|3|","60|2|","56|1|","96|1|","137|1|","3|1|"]} 
[2026-03-23 20:36:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6270,"order_number":"AZS-230326-031"} 
[2026-03-23 20:36:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6270,"order_number":"AZS-230326-031","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 20:36:17"} 
[2026-03-23 20:36:41] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6270,"order_number":"AZS-230326-031","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 20:36:41"} 
[2026-03-23 20:36:41] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6270,"order_number":"AZS-230326-031","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 20:36:41"} 
[2026-03-23 20:36:41] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6270,"order_number":"AZS-230326-031","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 20:36:41"} 
[2026-03-23 20:36:41] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6270,"order_number":"AZS-230326-031","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 20:36:41"} 
[2026-03-23 20:36:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6270,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":29882},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29883},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29884},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29885},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":29886},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29887}],"validated_items":[{"id":29882,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":29883,"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29884,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29885,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29886,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":29887,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-23 20:36:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6270,"items_count":6} 
[2026-03-23 20:36:41] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29882,"menu_item_id":396,"quantity":3},{"id":29883,"menu_item_id":60,"quantity":2},{"id":29884,"menu_item_id":56,"quantity":1},{"id":29885,"menu_item_id":96,"quantity":1},{"id":29886,"menu_item_id":137,"quantity":1},{"id":29887,"menu_item_id":3,"quantity":1}]} 
[2026-03-23 20:36:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6270,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["396|3|","60|2|","56|1|","96|1|","137|1|","3|1|"],"new_items_map_keys":["396|3|","60|2|","56|1|","96|1|","137|1|","3|1|"]} 
[2026-03-23 20:36:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6270,"order_number":"AZS-230326-031"} 
[2026-03-23 20:36:41] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6270,"order_number":"AZS-230326-031","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 20:36:41","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 20:36:41"} 
[2026-03-23 20:36:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6270,"order_number":"AZS-230326-031","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 20:36:41"} 
[2026-03-23 20:36:41] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6270,"order_number":"AZS-230326-031","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 20:36:41","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4000.00","database_verification_match":true,"timestamp":"2026-03-23 20:36:41"} 
[2026-03-23 20:38:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T08:38:49.823Z","date_to":"2026-03-23T20:38:49.823Z","per_page":"100"} 
[2026-03-23 20:38:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T08:38:49.804Z","date_to":"2026-03-23T20:38:49.804Z","per_page":"100"} 
[2026-03-23 20:38:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":31,"count":31,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":3,"unique_order_numbers":31} 
[2026-03-23 20:38:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":31,"count":31,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":3,"unique_order_numbers":31} 
[2026-03-23 20:38:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T08:38:49.804Z","date_to":"2026-03-23T20:38:49.804Z","per_page":"100"} 
[2026-03-23 20:38:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":31,"count":31,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":3,"unique_order_numbers":31} 
[2026-03-23 20:39:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6278,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29929}],"validated_items":[{"id":29929,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-23 20:39:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6278,"items_count":1} 
[2026-03-23 20:39:19] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29929,"menu_item_id":5,"quantity":1}]} 
[2026-03-23 20:39:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6278,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["5|1|"],"new_items_map_keys":["5|1|"]} 
[2026-03-23 20:39:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6278,"order_number":"AZS-230326-032"} 
[2026-03-23 20:39:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6278,"order_number":"AZS-230326-032","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-23 20:39:19"} 
[2026-03-23 20:40:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6276,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":29918},{"menu_item_id":49,"quantity":10,"price":70,"discount_percent":0,"notes":null,"id":29919},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":29920},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29921},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29922},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":29923},{"menu_item_id":50,"quantity":8,"price":129,"discount_percent":0,"notes":null,"id":29924}],"validated_items":[{"id":29918,"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"id":29919,"menu_item_id":49,"quantity":10,"price":70,"discount_percent":0,"notes":null},{"id":29920,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":29921,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29922,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29923,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null},{"id":29924,"menu_item_id":50,"quantity":8,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-23 20:40:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6276,"items_count":7} 
[2026-03-23 20:40:12] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29918,"menu_item_id":114,"quantity":2},{"id":29919,"menu_item_id":49,"quantity":10},{"id":29920,"menu_item_id":61,"quantity":3},{"id":29921,"menu_item_id":56,"quantity":2},{"id":29922,"menu_item_id":5,"quantity":1},{"id":29923,"menu_item_id":3,"quantity":2},{"id":29924,"menu_item_id":50,"quantity":8}]} 
[2026-03-23 20:40:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6276,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|2|","49|10|","61|3|","56|2|","5|1|","3|2|","50|8|"],"new_items_map_keys":["114|2|","49|10|","61|3|","56|2|","5|1|","3|2|","50|8|"]} 
[2026-03-23 20:40:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6276,"order_number":"AZS-230326-030"} 
[2026-03-23 20:40:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6276,"order_number":"AZS-230326-030","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 20:40:12"} 
[2026-03-23 20:41:04] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6278,"order_number":"AZS-230326-032","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":170,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 20:41:04"} 
[2026-03-23 20:41:04] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6278,"order_number":"AZS-230326-032","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":170,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 20:41:04"} 
[2026-03-23 20:41:04] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6278,"order_number":"AZS-230326-032","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":170,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 20:41:04"} 
[2026-03-23 20:41:04] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6278,"order_number":"AZS-230326-032","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":170,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 20:41:04"} 
[2026-03-23 20:41:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6278,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29929}],"validated_items":[{"id":29929,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-23 20:41:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6278,"items_count":1} 
[2026-03-23 20:41:04] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29929,"menu_item_id":5,"quantity":1}]} 
[2026-03-23 20:41:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6278,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["5|1|"],"new_items_map_keys":["5|1|"]} 
[2026-03-23 20:41:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6278,"order_number":"AZS-230326-032"} 
[2026-03-23 20:41:04] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6278,"order_number":"AZS-230326-032","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":170,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 20:41:04","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 20:41:04"} 
[2026-03-23 20:41:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6278,"order_number":"AZS-230326-032","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 20:41:04"} 
[2026-03-23 20:41:04] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6278,"order_number":"AZS-230326-032","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"170.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 20:41:04","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":170,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"170.00","database_verification_match":true,"timestamp":"2026-03-23 20:41:04"} 
[2026-03-23 20:41:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T08:41:55.506Z","date_to":"2026-03-23T20:41:55.506Z","per_page":"100"} 
[2026-03-23 20:41:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T08:41:55.529Z","date_to":"2026-03-23T20:41:55.529Z","per_page":"100"} 
[2026-03-23 20:41:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-032","AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":29,"unpaid_count":3,"unique_order_numbers":32} 
[2026-03-23 20:41:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-032","AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":29,"unpaid_count":3,"unique_order_numbers":32} 
[2026-03-23 20:41:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T08:41:55.506Z","date_to":"2026-03-23T20:41:55.506Z","per_page":"100"} 
[2026-03-23 20:41:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-032","AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":29,"unpaid_count":3,"unique_order_numbers":32} 
[2026-03-23 20:56:24] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6276,"order_number":"AZS-230326-030","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":8440,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 20:56:24"} 
[2026-03-23 20:56:24] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6276,"order_number":"AZS-230326-030","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":8440,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 20:56:24"} 
[2026-03-23 20:56:24] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6276,"order_number":"AZS-230326-030","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":8440,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 20:56:24"} 
[2026-03-23 20:56:24] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6276,"order_number":"AZS-230326-030","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":8440,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 20:56:24"} 
[2026-03-23 20:56:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6276,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":29918},{"menu_item_id":49,"quantity":10,"price":70,"discount_percent":0,"notes":null,"id":29919},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":29920},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29921},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29922},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":29923},{"menu_item_id":50,"quantity":8,"price":129,"discount_percent":0,"notes":null,"id":29924}],"validated_items":[{"id":29918,"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"id":29919,"menu_item_id":49,"quantity":10,"price":70,"discount_percent":0,"notes":null},{"id":29920,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":29921,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29922,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29923,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null},{"id":29924,"menu_item_id":50,"quantity":8,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-23 20:56:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6276,"items_count":7} 
[2026-03-23 20:56:24] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29918,"menu_item_id":114,"quantity":2},{"id":29919,"menu_item_id":49,"quantity":10},{"id":29920,"menu_item_id":61,"quantity":3},{"id":29921,"menu_item_id":56,"quantity":2},{"id":29922,"menu_item_id":5,"quantity":1},{"id":29923,"menu_item_id":3,"quantity":2},{"id":29924,"menu_item_id":50,"quantity":8}]} 
[2026-03-23 20:56:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6276,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|2|","49|10|","61|3|","56|2|","5|1|","3|2|","50|8|"],"new_items_map_keys":["114|2|","49|10|","61|3|","56|2|","5|1|","3|2|","50|8|"]} 
[2026-03-23 20:56:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6276,"order_number":"AZS-230326-030"} 
[2026-03-23 20:56:24] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6276,"order_number":"AZS-230326-030","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":8440,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 20:56:24","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 20:56:24"} 
[2026-03-23 20:56:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6276,"order_number":"AZS-230326-030","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 20:56:24"} 
[2026-03-23 20:56:24] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6276,"order_number":"AZS-230326-030","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"8440.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 20:56:24","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":8440,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"8440.00","database_verification_match":true,"timestamp":"2026-03-23 20:56:24"} 
[2026-03-23 21:04:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T09:05:02.597Z","date_to":"2026-03-23T21:05:02.597Z","per_page":"100"} 
[2026-03-23 21:04:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-034","AZS-230326-033","AZS-230326-032","AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":4,"unique_order_numbers":34} 
[2026-03-23 21:04:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T09:05:02.611Z","date_to":"2026-03-23T21:05:02.611Z","per_page":"100"} 
[2026-03-23 21:04:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-034","AZS-230326-033","AZS-230326-032","AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":4,"unique_order_numbers":34} 
[2026-03-23 21:04:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T09:05:02.597Z","date_to":"2026-03-23T21:05:02.597Z","per_page":"100"} 
[2026-03-23 21:04:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-034","AZS-230326-033","AZS-230326-032","AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":4,"unique_order_numbers":34} 
[2026-03-23 21:12:26] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6213,"order_number":"AZS-230326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 21:12:26"} 
[2026-03-23 21:12:26] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6213,"order_number":"AZS-230326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 21:12:26"} 
[2026-03-23 21:12:26] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6213,"order_number":"AZS-230326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 21:12:26"} 
[2026-03-23 21:12:26] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6213,"order_number":"AZS-230326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 21:12:26"} 
[2026-03-23 21:12:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6213,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29561}],"validated_items":[{"id":29561,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-23 21:12:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6213,"items_count":1} 
[2026-03-23 21:12:26] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29561,"menu_item_id":6,"quantity":1}]} 
[2026-03-23 21:12:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6213,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-03-23 21:12:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6213,"order_number":"AZS-230326-008"} 
[2026-03-23 21:12:26] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6213,"order_number":"AZS-230326-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 21:12:26","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 21:12:26"} 
[2026-03-23 21:12:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6213,"order_number":"AZS-230326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 21:12:26"} 
[2026-03-23 21:12:26] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6213,"order_number":"AZS-230326-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 21:12:26","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"200.00","database_verification_match":true,"timestamp":"2026-03-23 21:12:26"} 
[2026-03-23 21:12:39] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6216,"order_number":"AZS-230326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 21:12:39"} 
[2026-03-23 21:12:39] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6216,"order_number":"AZS-230326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 21:12:39"} 
[2026-03-23 21:12:39] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6216,"order_number":"AZS-230326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 21:12:39"} 
[2026-03-23 21:12:39] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6216,"order_number":"AZS-230326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 21:12:39"} 
[2026-03-23 21:12:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6216,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":135,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":29573}],"validated_items":[{"id":29573,"menu_item_id":135,"quantity":1,"price":1999,"discount_percent":0,"notes":null}]} 
[2026-03-23 21:12:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6216,"items_count":1} 
[2026-03-23 21:12:39] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29573,"menu_item_id":135,"quantity":1}]} 
[2026-03-23 21:12:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6216,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["135|1|"],"new_items_map_keys":["135|1|"]} 
[2026-03-23 21:12:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6216,"order_number":"AZS-230326-011"} 
[2026-03-23 21:12:39] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6216,"order_number":"AZS-230326-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 21:12:39","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 21:12:39"} 
[2026-03-23 21:12:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6216,"order_number":"AZS-230326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 21:12:39"} 
[2026-03-23 21:12:39] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6216,"order_number":"AZS-230326-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 21:12:39","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-23 21:12:39"} 
[2026-03-23 21:24:46] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T09:24:54.104Z","date_to":"2026-03-23T21:24:54.104Z","per_page":"100"} 
[2026-03-23 21:24:46] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T09:24:54.120Z","date_to":"2026-03-23T21:24:54.120Z","per_page":"100"} 
[2026-03-23 21:24:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-034","AZS-230326-033","AZS-230326-032","AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":32,"unpaid_count":2,"unique_order_numbers":34} 
[2026-03-23 21:24:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-034","AZS-230326-033","AZS-230326-032","AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":32,"unpaid_count":2,"unique_order_numbers":34} 
[2026-03-23 21:24:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T09:24:54.104Z","date_to":"2026-03-23T21:24:54.104Z","per_page":"100"} 
[2026-03-23 21:24:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-034","AZS-230326-033","AZS-230326-032","AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":32,"unpaid_count":2,"unique_order_numbers":34} 
[2026-03-23 21:27:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6280,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":29931}],"validated_items":[{"id":29931,"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null}]} 
[2026-03-23 21:27:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6280,"items_count":1} 
[2026-03-23 21:27:56] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29931,"menu_item_id":384,"quantity":1}]} 
[2026-03-23 21:27:56] local.INFO: PosOrderController::update - Item changes check {"order_id":6280,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["384|1|"],"new_items_map_keys":["384|1|"]} 
[2026-03-23 21:27:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6280,"order_number":"AZS-230326-034"} 
[2026-03-23 21:27:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6280,"order_number":"AZS-230326-034","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 21:27:56"} 
[2026-03-23 21:28:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6279,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":29930}],"validated_items":[{"id":29930,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null}]} 
[2026-03-23 21:28:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6279,"items_count":1} 
[2026-03-23 21:28:10] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29930,"menu_item_id":386,"quantity":1}]} 
[2026-03-23 21:28:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6279,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|"]} 
[2026-03-23 21:28:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6279,"order_number":"AZS-230326-033"} 
[2026-03-23 21:28:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6279,"order_number":"AZS-230326-033","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-23 21:28:10"} 
[2026-03-23 21:54:19] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6280,"order_number":"AZS-230326-034","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 21:54:19"} 
[2026-03-23 21:54:19] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6280,"order_number":"AZS-230326-034","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 21:54:19"} 
[2026-03-23 21:54:19] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6280,"order_number":"AZS-230326-034","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 21:54:19"} 
[2026-03-23 21:54:19] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6280,"order_number":"AZS-230326-034","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 21:54:19"} 
[2026-03-23 21:54:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6280,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":29931}],"validated_items":[{"id":29931,"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null}]} 
[2026-03-23 21:54:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6280,"items_count":1} 
[2026-03-23 21:54:19] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29931,"menu_item_id":384,"quantity":1}]} 
[2026-03-23 21:54:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6280,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["384|1|"],"new_items_map_keys":["384|1|"]} 
[2026-03-23 21:54:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6280,"order_number":"AZS-230326-034"} 
[2026-03-23 21:54:19] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6280,"order_number":"AZS-230326-034","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 21:54:19","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 21:54:19"} 
[2026-03-23 21:54:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6280,"order_number":"AZS-230326-034","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 21:54:19"} 
[2026-03-23 21:54:19] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6280,"order_number":"AZS-230326-034","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 21:54:19","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1500.00","database_verification_match":true,"timestamp":"2026-03-23 21:54:19"} 
[2026-03-23 21:58:25] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6279,"order_number":"AZS-230326-033","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2204,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 21:58:25"} 
[2026-03-23 21:58:25] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6279,"order_number":"AZS-230326-033","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2204,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-23 21:58:25"} 
[2026-03-23 21:58:25] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6279,"order_number":"AZS-230326-033","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2204,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 21:58:25"} 
[2026-03-23 21:58:25] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6279,"order_number":"AZS-230326-033","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2204,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-23 21:58:25"} 
[2026-03-23 21:58:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6279,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":29930}],"validated_items":[{"id":29930,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null}]} 
[2026-03-23 21:58:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6279,"items_count":1} 
[2026-03-23 21:58:25] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29930,"menu_item_id":386,"quantity":1}]} 
[2026-03-23 21:58:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6279,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|"]} 
[2026-03-23 21:58:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6279,"order_number":"AZS-230326-033"} 
[2026-03-23 21:58:25] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6279,"order_number":"AZS-230326-033","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2204,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-23 21:58:25","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-23 21:58:25"} 
[2026-03-23 21:58:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6279,"order_number":"AZS-230326-033","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-23 21:58:25"} 
[2026-03-23 21:58:25] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6279,"order_number":"AZS-230326-033","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2204.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-23 21:58:25","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2204,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2204.00","database_verification_match":true,"timestamp":"2026-03-23 21:58:25"} 
[2026-03-23 21:58:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T09:58:44.752Z","date_to":"2026-03-23T21:58:44.752Z","per_page":"100"} 
[2026-03-23 21:58:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T09:58:44.732Z","date_to":"2026-03-23T21:58:44.732Z","per_page":"100"} 
[2026-03-23 21:58:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-034","AZS-230326-033","AZS-230326-032","AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":34,"unpaid_count":0,"unique_order_numbers":34} 
[2026-03-23 21:58:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-034","AZS-230326-033","AZS-230326-032","AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":34,"unpaid_count":0,"unique_order_numbers":34} 
[2026-03-23 21:58:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T09:58:44.732Z","date_to":"2026-03-23T21:58:44.732Z","per_page":"100"} 
[2026-03-23 21:58:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-230326-034","AZS-230326-033","AZS-230326-032","AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":34,"unpaid_count":0,"unique_order_numbers":34} 
[2026-03-23 21:59:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T09:58:44.752Z","date_to":"2026-03-23T21:58:44.752Z","per_page":"1000"} 
[2026-03-23 21:59:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":1000,"order_branch_ids":[1],"order_numbers":["AZS-230326-034","AZS-230326-033","AZS-230326-032","AZS-230326-031","AZS-230326-030","AZS-230326-029","AZS-230326-028","AZS-230326-027","AZS-230326-026","AZS-230326-025","AZS-230326-024","AZS-230326-023","AZS-230326-022","AZS-230326-021","AZS-230326-020","AZS-230326-019","AZS-230326-018","AZS-230326-017","AZS-230326-016","AZS-230326-015","AZS-230326-014","AZS-230326-013","AZS-230326-012","AZS-230326-011","AZS-230326-010","AZS-230326-009","AZS-230326-008","AZS-230326-007","AZS-230326-006","AZS-230326-005","AZS-230326-004","AZS-230326-003","AZS-230326-002","AZS-230326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":34,"unpaid_count":0,"unique_order_numbers":34} 
[2026-03-24 13:18:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6282,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29935},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":29936},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29937},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29938},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":29939}],"validated_items":[{"id":29935,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29936,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":29937,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29938,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29939,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-24 13:18:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6282,"items_count":5} 
[2026-03-24 13:18:33] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29935,"menu_item_id":96,"quantity":1},{"id":29936,"menu_item_id":49,"quantity":3},{"id":29937,"menu_item_id":61,"quantity":1},{"id":29938,"menu_item_id":56,"quantity":1},{"id":29939,"menu_item_id":2,"quantity":2}]} 
[2026-03-24 13:18:33] local.INFO: PosOrderController::update - Item changes check {"order_id":6282,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","49|3|","61|1|","56|1|","2|2|"],"new_items_map_keys":["96|1|","49|3|","61|1|","56|1|","2|2|"]} 
[2026-03-24 13:18:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6282,"order_number":"AZS-240326-002"} 
[2026-03-24 13:18:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6282,"order_number":"AZS-240326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 13:18:33"} 
[2026-03-24 13:22:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6283,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29940},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29941},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29942},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29943},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29944}],"validated_items":[{"id":29940,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29941,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29942,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29943,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29944,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-24 13:22:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6283,"items_count":5} 
[2026-03-24 13:22:03] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29940,"menu_item_id":113,"quantity":1},{"id":29941,"menu_item_id":396,"quantity":2},{"id":29942,"menu_item_id":61,"quantity":1},{"id":29943,"menu_item_id":56,"quantity":1},{"id":29944,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 13:22:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6283,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["113|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["113|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-24 13:22:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6283,"order_number":"AZS-240326-003"} 
[2026-03-24 13:22:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6283,"order_number":"AZS-240326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 13:22:03"} 
[2026-03-24 13:25:53] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6283,"order_number":"AZS-240326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 13:25:53"} 
[2026-03-24 13:25:53] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6283,"order_number":"AZS-240326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 13:25:53"} 
[2026-03-24 13:25:53] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6283,"order_number":"AZS-240326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 13:25:53"} 
[2026-03-24 13:25:53] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6283,"order_number":"AZS-240326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 13:25:53"} 
[2026-03-24 13:25:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6283,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29940},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29941},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29942},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29943},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29944}],"validated_items":[{"id":29940,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29941,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29942,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29943,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29944,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-24 13:25:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6283,"items_count":5} 
[2026-03-24 13:25:53] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29940,"menu_item_id":113,"quantity":1},{"id":29941,"menu_item_id":396,"quantity":2},{"id":29942,"menu_item_id":61,"quantity":1},{"id":29943,"menu_item_id":56,"quantity":1},{"id":29944,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 13:25:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6283,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["113|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["113|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-24 13:25:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6283,"order_number":"AZS-240326-003"} 
[2026-03-24 13:25:53] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6283,"order_number":"AZS-240326-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 13:25:53","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 13:25:53"} 
[2026-03-24 13:25:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6283,"order_number":"AZS-240326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 13:25:53"} 
[2026-03-24 13:25:53] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6283,"order_number":"AZS-240326-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 13:25:53","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-24 13:25:53"} 
[2026-03-24 13:29:49] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6282,"order_number":"AZS-240326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 13:29:49"} 
[2026-03-24 13:29:49] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6282,"order_number":"AZS-240326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 13:29:49"} 
[2026-03-24 13:29:49] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6282,"order_number":"AZS-240326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 13:29:49"} 
[2026-03-24 13:29:49] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6282,"order_number":"AZS-240326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 13:29:49"} 
[2026-03-24 13:29:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6282,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29935},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":29936},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29937},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29938},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":29939}],"validated_items":[{"id":29935,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29936,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":29937,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29938,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29939,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-24 13:29:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6282,"items_count":5} 
[2026-03-24 13:29:49] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29935,"menu_item_id":96,"quantity":1},{"id":29936,"menu_item_id":49,"quantity":3},{"id":29937,"menu_item_id":61,"quantity":1},{"id":29938,"menu_item_id":56,"quantity":1},{"id":29939,"menu_item_id":2,"quantity":2}]} 
[2026-03-24 13:29:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6282,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","49|3|","61|1|","56|1|","2|2|"],"new_items_map_keys":["96|1|","49|3|","61|1|","56|1|","2|2|"]} 
[2026-03-24 13:29:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6282,"order_number":"AZS-240326-002"} 
[2026-03-24 13:29:49] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6282,"order_number":"AZS-240326-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 13:29:49","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 13:29:49"} 
[2026-03-24 13:29:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6282,"order_number":"AZS-240326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 13:29:49"} 
[2026-03-24 13:29:49] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6282,"order_number":"AZS-240326-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 13:29:49","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2200.00","database_verification_match":true,"timestamp":"2026-03-24 13:29:49"} 
[2026-03-24 13:36:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6281,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":29932},{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":29933},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29934}],"validated_items":[{"id":29932,"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":29933,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":29934,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-24 13:36:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6281,"items_count":3} 
[2026-03-24 13:36:51] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29932,"menu_item_id":384,"quantity":1},{"id":29933,"menu_item_id":85,"quantity":1},{"id":29934,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 13:36:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6281,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["384|1|","85|1|","5|1|"],"new_items_map_keys":["384|1|","85|1|","5|1|"]} 
[2026-03-24 13:36:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6281,"order_number":"AZS-240326-001"} 
[2026-03-24 13:36:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6281,"order_number":"AZS-240326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 13:36:51"} 
[2026-03-24 13:42:34] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6281,"order_number":"AZS-240326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 13:42:34"} 
[2026-03-24 13:42:34] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6281,"order_number":"AZS-240326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 13:42:34"} 
[2026-03-24 13:42:34] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6281,"order_number":"AZS-240326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 13:42:34"} 
[2026-03-24 13:42:34] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6281,"order_number":"AZS-240326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 13:42:34"} 
[2026-03-24 13:42:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6281,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":29932},{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":29933},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29934}],"validated_items":[{"id":29932,"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":29933,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":29934,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-24 13:42:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6281,"items_count":3} 
[2026-03-24 13:42:34] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29932,"menu_item_id":384,"quantity":1},{"id":29933,"menu_item_id":85,"quantity":1},{"id":29934,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 13:42:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6281,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["384|1|","85|1|","5|1|"],"new_items_map_keys":["384|1|","85|1|","5|1|"]} 
[2026-03-24 13:42:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6281,"order_number":"AZS-240326-001"} 
[2026-03-24 13:42:34] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6281,"order_number":"AZS-240326-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 13:42:34","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 13:42:34"} 
[2026-03-24 13:42:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6281,"order_number":"AZS-240326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 13:42:34"} 
[2026-03-24 13:42:34] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6281,"order_number":"AZS-240326-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 13:42:34","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2500.00","database_verification_match":true,"timestamp":"2026-03-24 13:42:34"} 
[2026-03-24 14:17:35] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-24 14:20:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6284,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null,"id":29945}],"validated_items":[{"id":29945,"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null}]} 
[2026-03-24 14:20:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6284,"items_count":1} 
[2026-03-24 14:20:27] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29945,"menu_item_id":136,"quantity":1}]} 
[2026-03-24 14:20:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6284,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["136|1|"],"new_items_map_keys":["136|1|"]} 
[2026-03-24 14:20:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6284,"order_number":"AZS-240326-004"} 
[2026-03-24 14:20:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6284,"order_number":"AZS-240326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 14:20:27"} 
[2026-03-24 14:24:42] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6284,"order_number":"AZS-240326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 14:24:42"} 
[2026-03-24 14:24:42] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6284,"order_number":"AZS-240326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 14:24:42"} 
[2026-03-24 14:24:42] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6284,"order_number":"AZS-240326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 14:24:42"} 
[2026-03-24 14:24:42] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6284,"order_number":"AZS-240326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 14:24:42"} 
[2026-03-24 14:24:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6284,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null,"id":29945}],"validated_items":[{"id":29945,"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null}]} 
[2026-03-24 14:24:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6284,"items_count":1} 
[2026-03-24 14:24:42] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29945,"menu_item_id":136,"quantity":1}]} 
[2026-03-24 14:24:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6284,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["136|1|"],"new_items_map_keys":["136|1|"]} 
[2026-03-24 14:24:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6284,"order_number":"AZS-240326-004"} 
[2026-03-24 14:24:42] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6284,"order_number":"AZS-240326-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 14:24:42","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 14:24:42"} 
[2026-03-24 14:24:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6284,"order_number":"AZS-240326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 14:24:42"} 
[2026-03-24 14:24:42] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6284,"order_number":"AZS-240326-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 14:24:42","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-24 14:24:42"} 
[2026-03-24 14:25:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6286,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":29947},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":29948},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":29949},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":29950},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":29951},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29952},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29947,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":29948,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":29949,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":29950,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":29951,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":29952,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-24 14:25:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6286,"items_count":7} 
[2026-03-24 14:25:31] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29947,"menu_item_id":97,"quantity":1},{"id":29948,"menu_item_id":396,"quantity":2},{"id":29949,"menu_item_id":50,"quantity":2},{"id":29950,"menu_item_id":61,"quantity":2},{"id":29951,"menu_item_id":56,"quantity":2},{"id":29952,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-24 14:25:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6286,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["97|1|","396|2|","50|2|","61|2|","56|2|","5|1|"],"new_items_map_keys":["97|1|","396|2|","50|2|","61|2|","56|2|","5|1|","3|1|"]} 
[2026-03-24 14:25:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6286,"order_number":"AZS-240326-006"} 
[2026-03-24 14:25:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-006","replaced_order_id":6286} 
[2026-03-24 14:25:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6290,"items_count":7,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-24 14:25:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6290,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6290}} 
[2026-03-24 14:25:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6290,"item_index":0,"menu_item_id":97} 
[2026-03-24 14:25:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6290,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6290}} 
[2026-03-24 14:25:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6290,"item_index":1,"menu_item_id":396} 
[2026-03-24 14:25:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6290,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6290}} 
[2026-03-24 14:25:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6290,"item_index":2,"menu_item_id":50} 
[2026-03-24 14:25:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6290,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6290}} 
[2026-03-24 14:25:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6290,"item_index":3,"menu_item_id":61} 
[2026-03-24 14:25:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6290,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6290}} 
[2026-03-24 14:25:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6290,"item_index":4,"menu_item_id":56} 
[2026-03-24 14:25:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6290,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6290}} 
[2026-03-24 14:25:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6290,"item_index":5,"menu_item_id":5} 
[2026-03-24 14:25:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6290,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6290}} 
[2026-03-24 14:25:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6290,"item_index":6,"menu_item_id":3} 
[2026-03-24 14:25:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6286,"new_order_id":6290,"order_number":"AZS-240326-006"} 
[2026-03-24 14:36:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6290,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29959},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29960},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":29961},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29962},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29963},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29964},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29965}],"validated_items":[{"id":29959,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":29960,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29961,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":29962,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29963,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29964,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29965,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-24 14:36:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6290,"items_count":7} 
[2026-03-24 14:36:49] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29959,"menu_item_id":97,"quantity":1},{"id":29960,"menu_item_id":396,"quantity":2},{"id":29961,"menu_item_id":50,"quantity":2},{"id":29962,"menu_item_id":61,"quantity":2},{"id":29963,"menu_item_id":56,"quantity":2},{"id":29964,"menu_item_id":5,"quantity":1},{"id":29965,"menu_item_id":3,"quantity":1}]} 
[2026-03-24 14:36:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6290,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["97|1|","396|2|","50|2|","61|2|","56|2|","5|1|","3|1|"],"new_items_map_keys":["97|1|","396|2|","50|2|","61|2|","56|2|","5|1|","3|1|"]} 
[2026-03-24 14:36:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6290,"order_number":"AZS-240326-006"} 
[2026-03-24 14:36:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6290,"order_number":"AZS-240326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 14:36:49"} 
[2026-03-24 14:42:51] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6285,"order_number":"AZS-240326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":50,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 14:42:51"} 
[2026-03-24 14:42:51] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6285,"order_number":"AZS-240326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":50,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 14:42:51"} 
[2026-03-24 14:42:51] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6285,"order_number":"AZS-240326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":50,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 14:42:51"} 
[2026-03-24 14:42:51] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6285,"order_number":"AZS-240326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":50,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 14:42:51"} 
[2026-03-24 14:42:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6285,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null,"id":29946}],"validated_items":[{"id":29946,"menu_item_id":286,"quantity":3,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-24 14:42:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6285,"items_count":1} 
[2026-03-24 14:42:51] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29946,"menu_item_id":286,"quantity":3}]} 
[2026-03-24 14:42:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6285,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["286|3|"],"new_items_map_keys":["286|3|"]} 
[2026-03-24 14:42:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6285,"order_number":"AZS-240326-005"} 
[2026-03-24 14:42:51] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6285,"order_number":"AZS-240326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":50,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 14:42:51","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 14:42:51"} 
[2026-03-24 14:42:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6285,"order_number":"AZS-240326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 14:42:51"} 
[2026-03-24 14:42:51] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6285,"order_number":"AZS-240326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"50.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 14:42:51","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":50,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"50.00","database_verification_match":true,"timestamp":"2026-03-24 14:42:51"} 
[2026-03-24 14:43:14] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6290,"order_number":"AZS-240326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 14:43:14"} 
[2026-03-24 14:43:14] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6290,"order_number":"AZS-240326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 14:43:14"} 
[2026-03-24 14:43:14] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6290,"order_number":"AZS-240326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 14:43:14"} 
[2026-03-24 14:43:14] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6290,"order_number":"AZS-240326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 14:43:14"} 
[2026-03-24 14:43:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6290,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29959},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29960},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":29961},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29962},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":29963},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29964},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":29965}],"validated_items":[{"id":29959,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":29960,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29961,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":29962,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29963,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":29964,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":29965,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-24 14:43:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6290,"items_count":7} 
[2026-03-24 14:43:14] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29959,"menu_item_id":97,"quantity":1},{"id":29960,"menu_item_id":396,"quantity":2},{"id":29961,"menu_item_id":50,"quantity":2},{"id":29962,"menu_item_id":61,"quantity":2},{"id":29963,"menu_item_id":56,"quantity":2},{"id":29964,"menu_item_id":5,"quantity":1},{"id":29965,"menu_item_id":3,"quantity":1}]} 
[2026-03-24 14:43:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6290,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["97|1|","396|2|","50|2|","61|2|","56|2|","5|1|","3|1|"],"new_items_map_keys":["97|1|","396|2|","50|2|","61|2|","56|2|","5|1|","3|1|"]} 
[2026-03-24 14:43:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6290,"order_number":"AZS-240326-006"} 
[2026-03-24 14:43:14] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6290,"order_number":"AZS-240326-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 14:43:14","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 14:43:14"} 
[2026-03-24 14:43:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6290,"order_number":"AZS-240326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 14:43:14"} 
[2026-03-24 14:43:14] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6290,"order_number":"AZS-240326-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 14:43:14","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4000.00","database_verification_match":true,"timestamp":"2026-03-24 14:43:14"} 
[2026-03-24 14:43:54] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6292,"order_number":"AZS-240326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":30,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 14:43:54"} 
[2026-03-24 14:43:54] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6292,"order_number":"AZS-240326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":30,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 14:43:54"} 
[2026-03-24 14:43:54] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6292,"order_number":"AZS-240326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":30,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 14:43:54"} 
[2026-03-24 14:43:54] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6292,"order_number":"AZS-240326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":30,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 14:43:54"} 
[2026-03-24 14:43:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6292,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":29969}],"validated_items":[{"id":29969,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-24 14:43:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6292,"items_count":1} 
[2026-03-24 14:43:54] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29969,"menu_item_id":286,"quantity":2}]} 
[2026-03-24 14:43:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6292,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["286|2|"],"new_items_map_keys":["286|2|"]} 
[2026-03-24 14:43:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6292,"order_number":"AZS-240326-011"} 
[2026-03-24 14:43:54] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6292,"order_number":"AZS-240326-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":30,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 14:43:54","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 14:43:54"} 
[2026-03-24 14:43:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6292,"order_number":"AZS-240326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 14:43:54"} 
[2026-03-24 14:43:54] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6292,"order_number":"AZS-240326-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"30.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 14:43:54","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":30,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"30.00","database_verification_match":true,"timestamp":"2026-03-24 14:43:54"} 
[2026-03-24 14:57:36] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6294,"order_number":"AZS-240326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":600,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 14:57:36"} 
[2026-03-24 14:57:36] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6294,"order_number":"AZS-240326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 14:57:36"} 
[2026-03-24 14:57:36] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6294,"order_number":"AZS-240326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 14:57:36"} 
[2026-03-24 14:57:36] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6294,"order_number":"AZS-240326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 14:57:36"} 
[2026-03-24 14:57:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6294,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":29973}],"validated_items":[{"id":29973,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null}]} 
[2026-03-24 14:57:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6294,"items_count":1} 
[2026-03-24 14:57:36] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29973,"menu_item_id":67,"quantity":1}]} 
[2026-03-24 14:57:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6294,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["67|1|"],"new_items_map_keys":["67|1|"]} 
[2026-03-24 14:57:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6294,"order_number":"AZS-240326-013"} 
[2026-03-24 14:57:36] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6294,"order_number":"AZS-240326-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":600,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 14:57:36","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 14:57:36"} 
[2026-03-24 14:57:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6294,"order_number":"AZS-240326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 14:57:36"} 
[2026-03-24 14:57:36] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6294,"order_number":"AZS-240326-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"600.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 14:57:36","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"600.00","database_verification_match":true,"timestamp":"2026-03-24 14:57:36"} 
[2026-03-24 15:06:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6289,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":29958}],"validated_items":[{"id":29958,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-24 15:06:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6289,"items_count":1} 
[2026-03-24 15:06:03] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29958,"menu_item_id":6,"quantity":3}]} 
[2026-03-24 15:06:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6289,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|3|"],"new_items_map_keys":["6|3|"]} 
[2026-03-24 15:06:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6289,"order_number":"AZS-240326-009"} 
[2026-03-24 15:06:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6289,"order_number":"AZS-240326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 15:06:03"} 
[2026-03-24 15:18:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6288,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":29954},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29955},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":29956},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29957}],"validated_items":[{"id":29954,"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":29955,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29956,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":29957,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-24 15:18:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6288,"items_count":4} 
[2026-03-24 15:18:18] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29954,"menu_item_id":87,"quantity":1},{"id":29955,"menu_item_id":396,"quantity":2},{"id":29956,"menu_item_id":64,"quantity":1},{"id":29957,"menu_item_id":61,"quantity":1}]} 
[2026-03-24 15:18:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6288,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["87|1|","396|2|","64|1|","61|1|"],"new_items_map_keys":["87|1|","396|2|","64|1|","61|1|"]} 
[2026-03-24 15:18:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6288,"order_number":"AZS-240326-008"} 
[2026-03-24 15:18:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6288,"order_number":"AZS-240326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 15:18:18"} 
[2026-03-24 15:19:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6288,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null,"id":29954},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":29955},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":29956},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29957},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29954,"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null},{"id":29955,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":29956,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":29957,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-24 15:19:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6288,"items_count":5} 
[2026-03-24 15:19:00] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29954,"menu_item_id":87,"quantity":1},{"id":29955,"menu_item_id":396,"quantity":2},{"id":29956,"menu_item_id":64,"quantity":1},{"id":29957,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 15:19:00] local.INFO: PosOrderController::update - Item changes check {"order_id":6288,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["87|1|","396|2|","64|1|","61|1|"],"new_items_map_keys":["87|1|","396|2|","64|1|","61|1|","5|1|"]} 
[2026-03-24 15:19:00] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6288,"order_number":"AZS-240326-008"} 
[2026-03-24 15:19:00] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-008","replaced_order_id":6288} 
[2026-03-24 15:19:00] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6297,"items_count":5,"items":[{"menu_item_id":87,"quantity":1,"price":"1999.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-24 15:19:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6297,"item_index":0,"item_data":{"menu_item_id":87,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6297}} 
[2026-03-24 15:19:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6297,"item_index":0,"menu_item_id":87} 
[2026-03-24 15:19:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6297,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6297}} 
[2026-03-24 15:19:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6297,"item_index":1,"menu_item_id":396} 
[2026-03-24 15:19:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6297,"item_index":2,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6297}} 
[2026-03-24 15:19:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6297,"item_index":2,"menu_item_id":64} 
[2026-03-24 15:19:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6297,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6297}} 
[2026-03-24 15:19:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6297,"item_index":3,"menu_item_id":61} 
[2026-03-24 15:19:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6297,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6297}} 
[2026-03-24 15:19:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6297,"item_index":4,"menu_item_id":5} 
[2026-03-24 15:19:00] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6288,"new_order_id":6297,"order_number":"AZS-240326-008"} 
[2026-03-24 15:19:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6297,"item_index":0,"item_id":29954} 
[2026-03-24 15:19:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6297,"item_index":1,"item_id":29955} 
[2026-03-24 15:19:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6297,"item_index":2,"item_id":29956} 
[2026-03-24 15:19:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6297,"item_index":3,"item_id":29957} 
[2026-03-24 15:19:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6297,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":29954},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29955},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":29956},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29957},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-24 15:19:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6297,"items_count":5} 
[2026-03-24 15:19:06] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[29985,29986,29987,29988,29989],"items":[{"id":null,"menu_item_id":87,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 15:19:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6297,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["87|1|","396|2|","64|1|","61|1|","5|1|"],"new_items_map_keys":["87|1|","396|2|","64|1|","61|1|","5|1|"]} 
[2026-03-24 15:19:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6297,"order_number":"AZS-240326-008"} 
[2026-03-24 15:19:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6297,"order_number":"AZS-240326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 15:19:06"} 
[2026-03-24 15:19:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6297,"item_index":0,"item_id":29954} 
[2026-03-24 15:19:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6297,"item_index":1,"item_id":29955} 
[2026-03-24 15:19:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6297,"item_index":2,"item_id":29956} 
[2026-03-24 15:19:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6297,"item_index":3,"item_id":29957} 
[2026-03-24 15:19:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6297,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null,"id":29954},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":29955},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":29956},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29957},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-24 15:19:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6297,"items_count":5} 
[2026-03-24 15:19:40] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[29985,29986,29987,29988,29989],"items":[{"id":null,"menu_item_id":87,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 15:19:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6297,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["87|1|","396|2|","64|1|","61|1|","5|1|"],"new_items_map_keys":["87|1|","396|2|","64|1|","61|1|","5|1|"]} 
[2026-03-24 15:19:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6297,"order_number":"AZS-240326-008"} 
[2026-03-24 15:19:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6297,"order_number":"AZS-240326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-24 15:19:40"} 
[2026-03-24 15:20:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6291,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":29966},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":29967},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29968},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":29966,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":29967,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":29968,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-24 15:20:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6291,"items_count":4} 
[2026-03-24 15:20:24] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29966,"menu_item_id":96,"quantity":1},{"id":29967,"menu_item_id":396,"quantity":2},{"id":29968,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-24 15:20:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6291,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["96|1|","396|2|","61|1|"],"new_items_map_keys":["96|1|","396|2|","61|1|","2|2|"]} 
[2026-03-24 15:20:24] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6291,"order_number":"AZS-240326-010"} 
[2026-03-24 15:20:24] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-010","replaced_order_id":6291} 
[2026-03-24 15:20:24] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6299,"items_count":4,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-24 15:20:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6299,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6299}} 
[2026-03-24 15:20:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6299,"item_index":0,"menu_item_id":96} 
[2026-03-24 15:20:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6299,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6299}} 
[2026-03-24 15:20:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6299,"item_index":1,"menu_item_id":396} 
[2026-03-24 15:20:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6299,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6299}} 
[2026-03-24 15:20:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6299,"item_index":2,"menu_item_id":61} 
[2026-03-24 15:20:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6299,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6299}} 
[2026-03-24 15:20:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6299,"item_index":3,"menu_item_id":2} 
[2026-03-24 15:20:24] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6291,"new_order_id":6299,"order_number":"AZS-240326-010"} 
[2026-03-24 15:28:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6299,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29991},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29992},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29993},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":29994}],"validated_items":[{"id":29991,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29992,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29993,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29994,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-24 15:28:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6299,"items_count":4} 
[2026-03-24 15:28:39] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29991,"menu_item_id":96,"quantity":1},{"id":29992,"menu_item_id":396,"quantity":2},{"id":29993,"menu_item_id":61,"quantity":1},{"id":29994,"menu_item_id":2,"quantity":2}]} 
[2026-03-24 15:28:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6299,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","396|2|","61|1|","2|2|"],"new_items_map_keys":["96|1|","396|2|","61|1|","2|2|"]} 
[2026-03-24 15:28:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6299,"order_number":"AZS-240326-010"} 
[2026-03-24 15:28:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6299,"order_number":"AZS-240326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 15:28:39"} 
[2026-03-24 15:29:32] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6289,"order_number":"AZS-240326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":630,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 15:29:32"} 
[2026-03-24 15:29:32] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6289,"order_number":"AZS-240326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":630,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 15:29:32"} 
[2026-03-24 15:29:32] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6289,"order_number":"AZS-240326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":630,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 15:29:32"} 
[2026-03-24 15:29:32] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6289,"order_number":"AZS-240326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":630,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 15:29:32"} 
[2026-03-24 15:29:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6289,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":29958}],"validated_items":[{"id":29958,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-24 15:29:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6289,"items_count":1} 
[2026-03-24 15:29:32] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29958,"menu_item_id":6,"quantity":3}]} 
[2026-03-24 15:29:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6289,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|3|"],"new_items_map_keys":["6|3|"]} 
[2026-03-24 15:29:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6289,"order_number":"AZS-240326-009"} 
[2026-03-24 15:29:32] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6289,"order_number":"AZS-240326-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":630,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 15:29:32","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 15:29:32"} 
[2026-03-24 15:29:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6289,"order_number":"AZS-240326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 15:29:32"} 
[2026-03-24 15:29:32] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6289,"order_number":"AZS-240326-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"630.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 15:29:32","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":630,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"630.00","database_verification_match":true,"timestamp":"2026-03-24 15:29:32"} 
[2026-03-24 15:30:16] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6297,"order_number":"AZS-240326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 15:30:16"} 
[2026-03-24 15:30:16] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6297,"order_number":"AZS-240326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 15:30:16"} 
[2026-03-24 15:30:16] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6297,"order_number":"AZS-240326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 15:30:16"} 
[2026-03-24 15:30:16] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6297,"order_number":"AZS-240326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 15:30:16"} 
[2026-03-24 15:30:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6297,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":29985},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29986},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":29987},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29988},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29989}],"validated_items":[{"id":29985,"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":29986,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29987,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":29988,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29989,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-24 15:30:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6297,"items_count":5} 
[2026-03-24 15:30:16] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29985,"menu_item_id":87,"quantity":1},{"id":29986,"menu_item_id":396,"quantity":2},{"id":29987,"menu_item_id":64,"quantity":1},{"id":29988,"menu_item_id":61,"quantity":1},{"id":29989,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 15:30:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6297,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["87|1|","396|2|","64|1|","61|1|","5|1|"],"new_items_map_keys":["87|1|","396|2|","64|1|","61|1|","5|1|"]} 
[2026-03-24 15:30:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6297,"order_number":"AZS-240326-008"} 
[2026-03-24 15:30:16] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6297,"order_number":"AZS-240326-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 15:30:16","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 15:30:16"} 
[2026-03-24 15:30:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6297,"order_number":"AZS-240326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 15:30:16"} 
[2026-03-24 15:30:16] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6297,"order_number":"AZS-240326-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 15:30:16","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4000.00","database_verification_match":true,"timestamp":"2026-03-24 15:30:16"} 
[2026-03-24 15:31:38] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6299,"order_number":"AZS-240326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 15:31:38"} 
[2026-03-24 15:31:38] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6299,"order_number":"AZS-240326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 15:31:38"} 
[2026-03-24 15:31:38] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6299,"order_number":"AZS-240326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 15:31:38"} 
[2026-03-24 15:31:38] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6299,"order_number":"AZS-240326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 15:31:38"} 
[2026-03-24 15:31:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6299,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":29991},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":29992},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29993},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":29994}],"validated_items":[{"id":29991,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":29992,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":29993,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29994,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-24 15:31:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6299,"items_count":4} 
[2026-03-24 15:31:38] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29991,"menu_item_id":96,"quantity":1},{"id":29992,"menu_item_id":396,"quantity":2},{"id":29993,"menu_item_id":61,"quantity":1},{"id":29994,"menu_item_id":2,"quantity":2}]} 
[2026-03-24 15:31:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6299,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","396|2|","61|1|","2|2|"],"new_items_map_keys":["96|1|","396|2|","61|1|","2|2|"]} 
[2026-03-24 15:31:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6299,"order_number":"AZS-240326-010"} 
[2026-03-24 15:31:38] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6299,"order_number":"AZS-240326-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 15:31:38","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 15:31:38"} 
[2026-03-24 15:31:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6299,"order_number":"AZS-240326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 15:31:38"} 
[2026-03-24 15:31:38] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6299,"order_number":"AZS-240326-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 15:31:38","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-24 15:31:38"} 
[2026-03-24 15:47:17] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-24 15:47:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6301,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":30004},{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null,"id":30005},{"menu_item_id":165,"quantity":1,"discount_percent":0,"notes":null,"id":30006},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":30007},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null,"id":30008}],"validated_items":[{"id":30004,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"id":30005,"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null},{"id":30006,"menu_item_id":165,"quantity":1,"discount_percent":0,"notes":null},{"id":30007,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":30008,"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-24 15:47:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6301,"items_count":5} 
[2026-03-24 15:47:45] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30004,"menu_item_id":137,"quantity":1},{"id":30005,"menu_item_id":85,"quantity":1},{"id":30006,"menu_item_id":165,"quantity":1},{"id":30007,"menu_item_id":2,"quantity":1},{"id":30008,"menu_item_id":29,"quantity":2}]} 
[2026-03-24 15:47:45] local.INFO: PosOrderController::update - Item changes check {"order_id":6301,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["137|1|","85|1|","165|1|","2|1|","29|2|"],"new_items_map_keys":["137|1|","85|1|","165|1|","2|1|","29|2|"]} 
[2026-03-24 15:47:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6301,"order_number":"AZS-240326-018"} 
[2026-03-24 15:47:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6301,"order_number":"AZS-240326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-24 15:47:45"} 
[2026-03-24 15:48:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6298,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"discount_percent":0,"notes":null,"id":29990},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29990,"menu_item_id":384,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-24 15:48:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6298,"items_count":2} 
[2026-03-24 15:48:28] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29990,"menu_item_id":384,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 15:48:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6298,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["384|1|"],"new_items_map_keys":["384|1|","5|1|"]} 
[2026-03-24 15:48:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6298,"order_number":"AZS-240326-016"} 
[2026-03-24 15:48:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-016","replaced_order_id":6298} 
[2026-03-24 15:48:29] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6303,"items_count":2,"items":[{"menu_item_id":384,"quantity":1,"price":"1399.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-24 15:48:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6303,"item_index":0,"item_data":{"menu_item_id":384,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 03","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6303}} 
[2026-03-24 15:48:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6303,"item_index":0,"menu_item_id":384} 
[2026-03-24 15:48:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6303,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6303}} 
[2026-03-24 15:48:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6303,"item_index":1,"menu_item_id":5} 
[2026-03-24 15:48:29] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6298,"new_order_id":6303,"order_number":"AZS-240326-016"} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6300,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":29995},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":29996},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":29997},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":29998},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":29999},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":30000},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":30001},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":30002},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30003},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":29995,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":29996,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":29997,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":29998,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":29999,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":30000,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":30001,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":30002,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":30003,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6300,"items_count":10} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29995,"menu_item_id":95,"quantity":1},{"id":29996,"menu_item_id":105,"quantity":1},{"id":29997,"menu_item_id":112,"quantity":1},{"id":29998,"menu_item_id":65,"quantity":1},{"id":29999,"menu_item_id":396,"quantity":2},{"id":30000,"menu_item_id":50,"quantity":2},{"id":30001,"menu_item_id":61,"quantity":2},{"id":30002,"menu_item_id":56,"quantity":2},{"id":30003,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":29,"quantity":2}]} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6300,"has_item_changes":true,"old_items_count":9,"new_items_count":10,"old_items_map_keys":["95|1|","105|1|","112|1|","65|1|","396|2|","50|2|","61|2|","56|2|","5|1|"],"new_items_map_keys":["95|1|","105|1|","112|1|","65|1|","396|2|","50|2|","61|2|","56|2|","5|1|","29|2|"]} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6300,"order_number":"AZS-240326-017"} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-017","replaced_order_id":6300} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6305,"items_count":10,"items":[{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":29,"quantity":2,"price":"250.00"}]} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6305,"item_index":0,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6305}} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6305,"item_index":0,"menu_item_id":95} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6305,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6305}} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6305,"item_index":1,"menu_item_id":105} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6305,"item_index":2,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6305}} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6305,"item_index":2,"menu_item_id":112} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6305,"item_index":3,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6305}} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6305,"item_index":3,"menu_item_id":65} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6305,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6305}} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6305,"item_index":4,"menu_item_id":396} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6305,"item_index":5,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6305}} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6305,"item_index":5,"menu_item_id":50} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6305,"item_index":6,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6305}} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6305,"item_index":6,"menu_item_id":61} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6305,"item_index":7,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6305}} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6305,"item_index":7,"menu_item_id":56} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6305,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6305}} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6305,"item_index":8,"menu_item_id":5} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6305,"item_index":9,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6305}} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6305,"item_index":9,"menu_item_id":29} 
[2026-03-24 15:57:20] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6300,"new_order_id":6305,"order_number":"AZS-240326-017"} 
[2026-03-24 15:57:50] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-24 15:58:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6296,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":29980},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":29981},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":29982},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":29983},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29984},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":29980,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":29981,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":29982,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":29983,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":29984,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-24 15:58:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6296,"items_count":6} 
[2026-03-24 15:58:46] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29980,"menu_item_id":98,"quantity":1},{"id":29981,"menu_item_id":396,"quantity":2},{"id":29982,"menu_item_id":61,"quantity":1},{"id":29983,"menu_item_id":56,"quantity":1},{"id":29984,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-24 15:58:46] local.INFO: PosOrderController::update - Item changes check {"order_id":6296,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["98|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["98|1|","396|2|","61|1|","56|1|","5|1|","2|2|"]} 
[2026-03-24 15:58:46] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6296,"order_number":"AZS-240326-015"} 
[2026-03-24 15:58:46] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-015","replaced_order_id":6296} 
[2026-03-24 15:58:46] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6307,"items_count":6,"items":[{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-24 15:58:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6307,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6307}} 
[2026-03-24 15:58:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6307,"item_index":0,"menu_item_id":98} 
[2026-03-24 15:58:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6307,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6307}} 
[2026-03-24 15:58:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6307,"item_index":1,"menu_item_id":396} 
[2026-03-24 15:58:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6307,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6307}} 
[2026-03-24 15:58:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6307,"item_index":2,"menu_item_id":61} 
[2026-03-24 15:58:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6307,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6307}} 
[2026-03-24 15:58:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6307,"item_index":3,"menu_item_id":56} 
[2026-03-24 15:58:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6307,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6307}} 
[2026-03-24 15:58:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6307,"item_index":4,"menu_item_id":5} 
[2026-03-24 15:58:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6307,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6307}} 
[2026-03-24 15:58:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6307,"item_index":5,"menu_item_id":2} 
[2026-03-24 15:58:46] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6296,"new_order_id":6307,"order_number":"AZS-240326-015"} 
[2026-03-24 15:59:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6303,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30010},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30011}],"validated_items":[{"id":30010,"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30011,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-24 15:59:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6303,"items_count":2} 
[2026-03-24 15:59:01] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30010,"menu_item_id":384,"quantity":1},{"id":30011,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 15:59:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6303,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["384|1|","5|1|"],"new_items_map_keys":["384|1|","5|1|"]} 
[2026-03-24 15:59:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6303,"order_number":"AZS-240326-016"} 
[2026-03-24 15:59:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6303,"order_number":"AZS-240326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 15:59:01"} 
[2026-03-24 16:02:09] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6303,"order_number":"AZS-240326-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 16:02:09"} 
[2026-03-24 16:02:09] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6303,"order_number":"AZS-240326-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 16:02:09"} 
[2026-03-24 16:02:09] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6303,"order_number":"AZS-240326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 16:02:09"} 
[2026-03-24 16:02:09] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6303,"order_number":"AZS-240326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 16:02:09"} 
[2026-03-24 16:02:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6303,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30010},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30011}],"validated_items":[{"id":30010,"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30011,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:02:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6303,"items_count":2} 
[2026-03-24 16:02:09] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30010,"menu_item_id":384,"quantity":1},{"id":30011,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 16:02:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6303,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["384|1|","5|1|"],"new_items_map_keys":["384|1|","5|1|"]} 
[2026-03-24 16:02:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6303,"order_number":"AZS-240326-016"} 
[2026-03-24 16:02:09] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6303,"order_number":"AZS-240326-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 16:02:09","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 16:02:09"} 
[2026-03-24 16:02:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6303,"order_number":"AZS-240326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 16:02:09"} 
[2026-03-24 16:02:09] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6303,"order_number":"AZS-240326-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 16:02:09","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-24 16:02:09"} 
[2026-03-24 16:02:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":6308,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:02:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6308,"items_count":1} 
[2026-03-24 16:02:18] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[30035],"items":[{"id":null,"menu_item_id":386,"quantity":1}]} 
[2026-03-24 16:02:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6308,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["384|1|"],"new_items_map_keys":["386|1|"]} 
[2026-03-24 16:02:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6308,"order_number":"AZS-240326-022"} 
[2026-03-24 16:02:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-022","replaced_order_id":6308} 
[2026-03-24 16:02:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6309,"items_count":1,"items":[{"menu_item_id":386,"quantity":1,"price":"2099.00"}]} 
[2026-03-24 16:02:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6309,"item_index":0,"item_data":{"menu_item_id":386,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 01","quantity":1,"price":"2099.00","discount_percent":0.0,"discount_amount":0.0,"total":2099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6309}} 
[2026-03-24 16:02:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6309,"item_index":0,"menu_item_id":386} 
[2026-03-24 16:02:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6308,"new_order_id":6309,"order_number":"AZS-240326-022"} 
[2026-03-24 16:08:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6304,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":30012},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":30013},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30014},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30015},{"menu_item_id":165,"quantity":1,"discount_percent":0,"notes":null,"id":30016},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30017},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":30012,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":30013,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":30014,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30015,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30016,"menu_item_id":165,"quantity":1,"discount_percent":0,"notes":null},{"id":30017,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:08:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6304,"items_count":7} 
[2026-03-24 16:08:58] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30012,"menu_item_id":102,"quantity":1},{"id":30013,"menu_item_id":50,"quantity":2},{"id":30014,"menu_item_id":61,"quantity":1},{"id":30015,"menu_item_id":56,"quantity":1},{"id":30016,"menu_item_id":165,"quantity":1},{"id":30017,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-24 16:08:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6304,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["102|1|","50|2|","61|1|","56|1|","165|1|","5|1|"],"new_items_map_keys":["102|1|","50|2|","61|1|","56|1|","165|1|","5|1|","2|2|"]} 
[2026-03-24 16:08:58] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6304,"order_number":"AZS-240326-020"} 
[2026-03-24 16:08:58] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-020","replaced_order_id":6304} 
[2026-03-24 16:08:58] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6311,"items_count":7,"items":[{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":165,"quantity":1,"price":"999.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-24 16:08:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6311,"item_index":0,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6311}} 
[2026-03-24 16:08:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6311,"item_index":0,"menu_item_id":102} 
[2026-03-24 16:08:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6311,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6311}} 
[2026-03-24 16:08:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6311,"item_index":1,"menu_item_id":50} 
[2026-03-24 16:08:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6311,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6311}} 
[2026-03-24 16:08:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6311,"item_index":2,"menu_item_id":61} 
[2026-03-24 16:08:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6311,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6311}} 
[2026-03-24 16:08:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6311,"item_index":3,"menu_item_id":56} 
[2026-03-24 16:08:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6311,"item_index":4,"item_data":{"menu_item_id":165,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Grilled Chicken Sandwich","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6311}} 
[2026-03-24 16:08:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6311,"item_index":4,"menu_item_id":165} 
[2026-03-24 16:08:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6311,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6311}} 
[2026-03-24 16:08:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6311,"item_index":5,"menu_item_id":5} 
[2026-03-24 16:08:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6311,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6311}} 
[2026-03-24 16:08:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6311,"item_index":6,"menu_item_id":2} 
[2026-03-24 16:08:59] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6304,"new_order_id":6311,"order_number":"AZS-240326-020"} 
[2026-03-24 16:13:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6302,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30009}],"validated_items":[{"id":30009,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:13:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6302,"items_count":1} 
[2026-03-24 16:13:58] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30009,"menu_item_id":6,"quantity":2}]} 
[2026-03-24 16:13:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6302,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-24 16:13:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6302,"order_number":"AZS-240326-019"} 
[2026-03-24 16:13:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6302,"order_number":"AZS-240326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 16:13:58"} 
[2026-03-24 16:14:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6305,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":30018},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30019},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":30020},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":30021},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30022},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30023},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30024},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30025},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30026},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":30027}],"validated_items":[{"id":30018,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":30019,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":30020,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":30021,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":30022,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30023,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30024,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30025,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30026,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30027,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:14:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6305,"items_count":10} 
[2026-03-24 16:14:17] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30018,"menu_item_id":95,"quantity":1},{"id":30019,"menu_item_id":105,"quantity":1},{"id":30020,"menu_item_id":112,"quantity":1},{"id":30021,"menu_item_id":65,"quantity":1},{"id":30022,"menu_item_id":396,"quantity":2},{"id":30023,"menu_item_id":50,"quantity":2},{"id":30024,"menu_item_id":61,"quantity":2},{"id":30025,"menu_item_id":56,"quantity":2},{"id":30026,"menu_item_id":5,"quantity":1},{"id":30027,"menu_item_id":29,"quantity":2}]} 
[2026-03-24 16:14:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6305,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["95|1|","105|1|","112|1|","65|1|","396|2|","50|2|","61|2|","56|2|","5|1|","29|2|"],"new_items_map_keys":["95|1|","105|1|","112|1|","65|1|","396|2|","50|2|","61|2|","56|2|","5|1|","29|2|"]} 
[2026-03-24 16:14:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6305,"order_number":"AZS-240326-017"} 
[2026-03-24 16:14:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6305,"order_number":"AZS-240326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 16:14:17"} 
[2026-03-24 16:17:23] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6302,"order_number":"AZS-240326-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 16:17:23"} 
[2026-03-24 16:17:23] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6302,"order_number":"AZS-240326-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 16:17:23"} 
[2026-03-24 16:17:23] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6302,"order_number":"AZS-240326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 16:17:23"} 
[2026-03-24 16:17:23] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6302,"order_number":"AZS-240326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 16:17:23"} 
[2026-03-24 16:17:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6302,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30009}],"validated_items":[{"id":30009,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:17:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6302,"items_count":1} 
[2026-03-24 16:17:23] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30009,"menu_item_id":6,"quantity":2}]} 
[2026-03-24 16:17:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6302,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-24 16:17:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6302,"order_number":"AZS-240326-019"} 
[2026-03-24 16:17:23] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6302,"order_number":"AZS-240326-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 16:17:23","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 16:17:23"} 
[2026-03-24 16:17:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6302,"order_number":"AZS-240326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 16:17:23"} 
[2026-03-24 16:17:23] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6302,"order_number":"AZS-240326-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 16:17:23","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-24 16:17:23"} 
[2026-03-24 16:18:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6305,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":30018},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30019},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":30020},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":30021},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30022},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30023},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30024},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30025},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30026},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":30027}],"validated_items":[{"id":30018,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":30019,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":30020,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":30021,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":30022,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30023,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30024,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30025,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30026,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30027,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:18:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6305,"items_count":10} 
[2026-03-24 16:18:07] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30018,"menu_item_id":95,"quantity":1},{"id":30019,"menu_item_id":105,"quantity":1},{"id":30020,"menu_item_id":112,"quantity":1},{"id":30021,"menu_item_id":65,"quantity":1},{"id":30022,"menu_item_id":396,"quantity":2},{"id":30023,"menu_item_id":50,"quantity":2},{"id":30024,"menu_item_id":61,"quantity":2},{"id":30025,"menu_item_id":56,"quantity":2},{"id":30026,"menu_item_id":5,"quantity":1},{"id":30027,"menu_item_id":29,"quantity":2}]} 
[2026-03-24 16:18:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6305,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["95|1|","105|1|","112|1|","65|1|","396|2|","50|2|","61|2|","56|2|","5|1|","29|2|"],"new_items_map_keys":["95|1|","105|1|","112|1|","65|1|","396|2|","50|2|","61|2|","56|2|","5|1|","29|2|"]} 
[2026-03-24 16:18:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6305,"order_number":"AZS-240326-017"} 
[2026-03-24 16:18:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6305,"order_number":"AZS-240326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 16:18:07"} 
[2026-03-24 16:18:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6305,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":30018},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30019},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":30020},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":30021},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30022},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30023},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30024},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30025},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30026},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":30027}],"validated_items":[{"id":30018,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":30019,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":30020,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":30021,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":30022,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30023,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30024,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30025,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30026,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30027,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:18:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6305,"items_count":10} 
[2026-03-24 16:18:16] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30018,"menu_item_id":95,"quantity":1},{"id":30019,"menu_item_id":105,"quantity":1},{"id":30020,"menu_item_id":112,"quantity":1},{"id":30021,"menu_item_id":65,"quantity":1},{"id":30022,"menu_item_id":396,"quantity":2},{"id":30023,"menu_item_id":50,"quantity":2},{"id":30024,"menu_item_id":61,"quantity":2},{"id":30025,"menu_item_id":56,"quantity":2},{"id":30026,"menu_item_id":5,"quantity":1},{"id":30027,"menu_item_id":29,"quantity":2}]} 
[2026-03-24 16:18:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6305,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["95|1|","105|1|","112|1|","65|1|","396|2|","50|2|","61|2|","56|2|","5|1|","29|2|"],"new_items_map_keys":["95|1|","105|1|","112|1|","65|1|","396|2|","50|2|","61|2|","56|2|","5|1|","29|2|"]} 
[2026-03-24 16:18:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6305,"order_number":"AZS-240326-017"} 
[2026-03-24 16:18:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6305,"order_number":"AZS-240326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 16:18:16"} 
[2026-03-24 16:18:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6307,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30029},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30030},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30031},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30032},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30033},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30034}],"validated_items":[{"id":30029,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30030,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30031,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30032,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30033,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30034,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:18:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6307,"items_count":6} 
[2026-03-24 16:18:39] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30029,"menu_item_id":98,"quantity":1},{"id":30030,"menu_item_id":396,"quantity":2},{"id":30031,"menu_item_id":61,"quantity":1},{"id":30032,"menu_item_id":56,"quantity":1},{"id":30033,"menu_item_id":5,"quantity":1},{"id":30034,"menu_item_id":2,"quantity":2}]} 
[2026-03-24 16:18:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6307,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["98|1|","396|2|","61|1|","56|1|","5|1|","2|2|"],"new_items_map_keys":["98|1|","396|2|","61|1|","56|1|","5|1|","2|2|"]} 
[2026-03-24 16:18:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6307,"order_number":"AZS-240326-015"} 
[2026-03-24 16:18:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6307,"order_number":"AZS-240326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 16:18:39"} 
[2026-03-24 16:19:51] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6306,"order_number":"AZS-240326-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 16:19:51"} 
[2026-03-24 16:19:51] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6306,"order_number":"AZS-240326-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 16:19:51"} 
[2026-03-24 16:19:51] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6306,"order_number":"AZS-240326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 16:19:51"} 
[2026-03-24 16:19:51] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6306,"order_number":"AZS-240326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 16:19:51"} 
[2026-03-24 16:19:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6306,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30028}],"validated_items":[{"id":30028,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:19:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6306,"items_count":1} 
[2026-03-24 16:19:51] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30028,"menu_item_id":6,"quantity":1}]} 
[2026-03-24 16:19:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6306,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-03-24 16:19:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6306,"order_number":"AZS-240326-021"} 
[2026-03-24 16:19:51] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6306,"order_number":"AZS-240326-021","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 16:19:51","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 16:19:51"} 
[2026-03-24 16:19:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6306,"order_number":"AZS-240326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 16:19:51"} 
[2026-03-24 16:19:51] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6306,"order_number":"AZS-240326-021","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 16:19:51","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"200.00","database_verification_match":true,"timestamp":"2026-03-24 16:19:51"} 
[2026-03-24 16:21:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6295,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29974},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":29975},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":29976},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29977},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29978},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29979}],"validated_items":[{"id":29974,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":29975,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":29976,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":29977,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29978,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29979,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:21:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6295,"items_count":6} 
[2026-03-24 16:21:35] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29974,"menu_item_id":114,"quantity":1},{"id":29975,"menu_item_id":396,"quantity":1},{"id":29976,"menu_item_id":48,"quantity":1},{"id":29977,"menu_item_id":61,"quantity":1},{"id":29978,"menu_item_id":56,"quantity":1},{"id":29979,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 16:21:35] local.INFO: PosOrderController::update - Item changes check {"order_id":6295,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","396|1|","48|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["114|1|","396|1|","48|1|","61|1|","56|1|","5|1|"]} 
[2026-03-24 16:21:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6295,"order_number":"AZS-240326-014"} 
[2026-03-24 16:21:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6295,"order_number":"AZS-240326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 16:21:35"} 
[2026-03-24 16:24:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6305,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":30018},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30019},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":30020},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":30021},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30022},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30023},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30024},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30025},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30026},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":30027}],"validated_items":[{"id":30018,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":30019,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":30020,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":30021,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":30022,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30023,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30024,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30025,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30026,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30027,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:24:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6305,"items_count":10} 
[2026-03-24 16:24:53] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30018,"menu_item_id":95,"quantity":1},{"id":30019,"menu_item_id":105,"quantity":1},{"id":30020,"menu_item_id":112,"quantity":1},{"id":30021,"menu_item_id":65,"quantity":1},{"id":30022,"menu_item_id":396,"quantity":2},{"id":30023,"menu_item_id":50,"quantity":2},{"id":30024,"menu_item_id":61,"quantity":2},{"id":30025,"menu_item_id":56,"quantity":2},{"id":30026,"menu_item_id":5,"quantity":1},{"id":30027,"menu_item_id":29,"quantity":2}]} 
[2026-03-24 16:24:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6305,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["95|1|","105|1|","112|1|","65|1|","396|2|","50|2|","61|2|","56|2|","5|1|","29|2|"],"new_items_map_keys":["95|1|","105|1|","112|1|","65|1|","396|2|","50|2|","61|2|","56|2|","5|1|","29|2|"]} 
[2026-03-24 16:24:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6305,"order_number":"AZS-240326-017"} 
[2026-03-24 16:24:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6305,"order_number":"AZS-240326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 16:24:53"} 
[2026-03-24 16:25:17] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6305,"order_number":"AZS-240326-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 16:25:17"} 
[2026-03-24 16:25:17] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6305,"order_number":"AZS-240326-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 16:25:17"} 
[2026-03-24 16:25:17] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6305,"order_number":"AZS-240326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 16:25:17"} 
[2026-03-24 16:25:17] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6305,"order_number":"AZS-240326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 16:25:17"} 
[2026-03-24 16:25:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6305,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":30018},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30019},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":30020},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":30021},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30022},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30023},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30024},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30025},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30026},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":30027}],"validated_items":[{"id":30018,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":30019,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":30020,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":30021,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":30022,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30023,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30024,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30025,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30026,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30027,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:25:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6305,"items_count":10} 
[2026-03-24 16:25:17] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30018,"menu_item_id":95,"quantity":1},{"id":30019,"menu_item_id":105,"quantity":1},{"id":30020,"menu_item_id":112,"quantity":1},{"id":30021,"menu_item_id":65,"quantity":1},{"id":30022,"menu_item_id":396,"quantity":2},{"id":30023,"menu_item_id":50,"quantity":2},{"id":30024,"menu_item_id":61,"quantity":2},{"id":30025,"menu_item_id":56,"quantity":2},{"id":30026,"menu_item_id":5,"quantity":1},{"id":30027,"menu_item_id":29,"quantity":2}]} 
[2026-03-24 16:25:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6305,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["95|1|","105|1|","112|1|","65|1|","396|2|","50|2|","61|2|","56|2|","5|1|","29|2|"],"new_items_map_keys":["95|1|","105|1|","112|1|","65|1|","396|2|","50|2|","61|2|","56|2|","5|1|","29|2|"]} 
[2026-03-24 16:25:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6305,"order_number":"AZS-240326-017"} 
[2026-03-24 16:25:17] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6305,"order_number":"AZS-240326-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":10000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 16:25:17","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 16:25:17"} 
[2026-03-24 16:25:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6305,"order_number":"AZS-240326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 16:25:17"} 
[2026-03-24 16:25:17] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6305,"order_number":"AZS-240326-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"10000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 16:25:17","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"10000.00","database_verification_match":true,"timestamp":"2026-03-24 16:25:17"} 
[2026-03-24 16:25:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6310,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":23,"quantity":1,"discount_percent":0,"notes":null,"id":30037},{"menu_item_id":27,"quantity":1,"discount_percent":0,"notes":null,"id":30038}],"validated_items":[{"id":30037,"menu_item_id":23,"quantity":1,"discount_percent":0,"notes":null},{"id":30038,"menu_item_id":27,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:25:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6310,"items_count":2} 
[2026-03-24 16:25:32] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30037,"menu_item_id":23,"quantity":1},{"id":30038,"menu_item_id":27,"quantity":1}]} 
[2026-03-24 16:25:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6310,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["23|1|","27|1|"],"new_items_map_keys":["23|1|","27|1|"]} 
[2026-03-24 16:25:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6310,"order_number":"AZS-240326-023"} 
[2026-03-24 16:25:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6310,"order_number":"AZS-240326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-24 16:25:32"} 
[2026-03-24 16:27:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6307,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30029},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30030},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30031},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30032},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30033},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30034}],"validated_items":[{"id":30029,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30030,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30031,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30032,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30033,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30034,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:27:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6307,"items_count":6} 
[2026-03-24 16:27:42] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30029,"menu_item_id":98,"quantity":1},{"id":30030,"menu_item_id":396,"quantity":2},{"id":30031,"menu_item_id":61,"quantity":1},{"id":30032,"menu_item_id":56,"quantity":1},{"id":30033,"menu_item_id":5,"quantity":1},{"id":30034,"menu_item_id":2,"quantity":2}]} 
[2026-03-24 16:27:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6307,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["98|1|","396|2|","61|1|","56|1|","5|1|","2|2|"],"new_items_map_keys":["98|1|","396|2|","61|1|","56|1|","5|1|","2|2|"]} 
[2026-03-24 16:27:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6307,"order_number":"AZS-240326-015"} 
[2026-03-24 16:27:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6307,"order_number":"AZS-240326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 16:27:42"} 
[2026-03-24 16:28:26] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6307,"order_number":"AZS-240326-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2300,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 16:28:26"} 
[2026-03-24 16:28:26] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6307,"order_number":"AZS-240326-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2300,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 16:28:26"} 
[2026-03-24 16:28:26] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6307,"order_number":"AZS-240326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 16:28:26"} 
[2026-03-24 16:28:26] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6307,"order_number":"AZS-240326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 16:28:26"} 
[2026-03-24 16:28:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6307,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30029},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30030},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30031},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30032},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30033},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30034}],"validated_items":[{"id":30029,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30030,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30031,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30032,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30033,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30034,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:28:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6307,"items_count":6} 
[2026-03-24 16:28:26] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30029,"menu_item_id":98,"quantity":1},{"id":30030,"menu_item_id":396,"quantity":2},{"id":30031,"menu_item_id":61,"quantity":1},{"id":30032,"menu_item_id":56,"quantity":1},{"id":30033,"menu_item_id":5,"quantity":1},{"id":30034,"menu_item_id":2,"quantity":2}]} 
[2026-03-24 16:28:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6307,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["98|1|","396|2|","61|1|","56|1|","5|1|","2|2|"],"new_items_map_keys":["98|1|","396|2|","61|1|","56|1|","5|1|","2|2|"]} 
[2026-03-24 16:28:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6307,"order_number":"AZS-240326-015"} 
[2026-03-24 16:28:26] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6307,"order_number":"AZS-240326-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2300,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 16:28:26","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 16:28:26"} 
[2026-03-24 16:28:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6307,"order_number":"AZS-240326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 16:28:26"} 
[2026-03-24 16:28:26] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6307,"order_number":"AZS-240326-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2300.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 16:28:26","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2300,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2300.00","database_verification_match":true,"timestamp":"2026-03-24 16:28:26"} 
[2026-03-24 16:36:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6311,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30039},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30040},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30041},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30042},{"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":30043},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30044},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30045}],"validated_items":[{"id":30039,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30040,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30041,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30042,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30043,"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":30044,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30045,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:36:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6311,"items_count":7} 
[2026-03-24 16:36:03] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30039,"menu_item_id":102,"quantity":1},{"id":30040,"menu_item_id":50,"quantity":2},{"id":30041,"menu_item_id":61,"quantity":1},{"id":30042,"menu_item_id":56,"quantity":1},{"id":30043,"menu_item_id":165,"quantity":1},{"id":30044,"menu_item_id":5,"quantity":1},{"id":30045,"menu_item_id":2,"quantity":2}]} 
[2026-03-24 16:36:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6311,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["102|1|","50|2|","61|1|","56|1|","165|1|","5|1|","2|2|"],"new_items_map_keys":["102|1|","50|2|","61|1|","56|1|","165|1|","5|1|","2|2|"]} 
[2026-03-24 16:36:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6311,"order_number":"AZS-240326-020"} 
[2026-03-24 16:36:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6311,"order_number":"AZS-240326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 16:36:03"} 
[2026-03-24 16:36:22] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-24 16:42:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6295,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29974},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":29975},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":29976},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29977},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29978},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29979}],"validated_items":[{"id":29974,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":29975,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":29976,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":29977,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29978,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29979,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:42:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6295,"items_count":6} 
[2026-03-24 16:42:07] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29974,"menu_item_id":114,"quantity":1},{"id":29975,"menu_item_id":396,"quantity":1},{"id":29976,"menu_item_id":48,"quantity":1},{"id":29977,"menu_item_id":61,"quantity":1},{"id":29978,"menu_item_id":56,"quantity":1},{"id":29979,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 16:42:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6295,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","396|1|","48|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["114|1|","396|1|","48|1|","61|1|","56|1|","5|1|"]} 
[2026-03-24 16:42:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6295,"order_number":"AZS-240326-014"} 
[2026-03-24 16:42:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6295,"order_number":"AZS-240326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 16:42:07"} 
[2026-03-24 16:42:34] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6295,"order_number":"AZS-240326-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 16:42:34"} 
[2026-03-24 16:42:34] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6295,"order_number":"AZS-240326-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 16:42:34"} 
[2026-03-24 16:42:34] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6295,"order_number":"AZS-240326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 16:42:34"} 
[2026-03-24 16:42:34] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6295,"order_number":"AZS-240326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 16:42:34"} 
[2026-03-24 16:42:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6295,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":29974},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":29975},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":29976},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29977},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":29978},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":29979}],"validated_items":[{"id":29974,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":29975,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":29976,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":29977,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29978,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":29979,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:42:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6295,"items_count":6} 
[2026-03-24 16:42:34] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29974,"menu_item_id":114,"quantity":1},{"id":29975,"menu_item_id":396,"quantity":1},{"id":29976,"menu_item_id":48,"quantity":1},{"id":29977,"menu_item_id":61,"quantity":1},{"id":29978,"menu_item_id":56,"quantity":1},{"id":29979,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 16:42:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6295,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","396|1|","48|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["114|1|","396|1|","48|1|","61|1|","56|1|","5|1|"]} 
[2026-03-24 16:42:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6295,"order_number":"AZS-240326-014"} 
[2026-03-24 16:42:34] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6295,"order_number":"AZS-240326-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 16:42:34","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 16:42:34"} 
[2026-03-24 16:42:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6295,"order_number":"AZS-240326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 16:42:34"} 
[2026-03-24 16:42:34] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6295,"order_number":"AZS-240326-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 16:42:34","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-24 16:42:34"} 
[2026-03-24 16:48:17] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-24 16:48:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6311,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30039},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30040},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30041},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30042},{"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":30043},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30044},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30045}],"validated_items":[{"id":30039,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30040,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30041,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30042,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30043,"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":30044,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30045,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:48:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6311,"items_count":7} 
[2026-03-24 16:48:39] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30039,"menu_item_id":102,"quantity":1},{"id":30040,"menu_item_id":50,"quantity":2},{"id":30041,"menu_item_id":61,"quantity":1},{"id":30042,"menu_item_id":56,"quantity":1},{"id":30043,"menu_item_id":165,"quantity":1},{"id":30044,"menu_item_id":5,"quantity":1},{"id":30045,"menu_item_id":2,"quantity":2}]} 
[2026-03-24 16:48:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6311,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["102|1|","50|2|","61|1|","56|1|","165|1|","5|1|","2|2|"],"new_items_map_keys":["102|1|","50|2|","61|1|","56|1|","165|1|","5|1|","2|2|"]} 
[2026-03-24 16:48:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6311,"order_number":"AZS-240326-020"} 
[2026-03-24 16:48:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6311,"order_number":"AZS-240326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 16:48:39"} 
[2026-03-24 16:49:05] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6311,"order_number":"AZS-240326-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 16:49:05"} 
[2026-03-24 16:49:05] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6311,"order_number":"AZS-240326-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 16:49:05"} 
[2026-03-24 16:49:05] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6311,"order_number":"AZS-240326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 16:49:05"} 
[2026-03-24 16:49:05] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6311,"order_number":"AZS-240326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 16:49:05"} 
[2026-03-24 16:49:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6311,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30039},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30040},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30041},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30042},{"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":30043},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30044},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30045}],"validated_items":[{"id":30039,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30040,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30041,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30042,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30043,"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":30044,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30045,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:49:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6311,"items_count":7} 
[2026-03-24 16:49:05] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30039,"menu_item_id":102,"quantity":1},{"id":30040,"menu_item_id":50,"quantity":2},{"id":30041,"menu_item_id":61,"quantity":1},{"id":30042,"menu_item_id":56,"quantity":1},{"id":30043,"menu_item_id":165,"quantity":1},{"id":30044,"menu_item_id":5,"quantity":1},{"id":30045,"menu_item_id":2,"quantity":2}]} 
[2026-03-24 16:49:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6311,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["102|1|","50|2|","61|1|","56|1|","165|1|","5|1|","2|2|"],"new_items_map_keys":["102|1|","50|2|","61|1|","56|1|","165|1|","5|1|","2|2|"]} 
[2026-03-24 16:49:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6311,"order_number":"AZS-240326-020"} 
[2026-03-24 16:49:05] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6311,"order_number":"AZS-240326-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 16:49:05","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 16:49:05"} 
[2026-03-24 16:49:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6311,"order_number":"AZS-240326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 16:49:05"} 
[2026-03-24 16:49:05] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6311,"order_number":"AZS-240326-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 16:49:05","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4000.00","database_verification_match":true,"timestamp":"2026-03-24 16:49:05"} 
[2026-03-24 16:50:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T04:50:35.967Z","date_to":"2026-03-24T16:50:35.967Z","per_page":"100"} 
[2026-03-24 16:50:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T04:50:35.983Z","date_to":"2026-03-24T16:50:35.983Z","per_page":"100"} 
[2026-03-24 16:50:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":8,"unique_order_numbers":26} 
[2026-03-24 16:50:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":8,"unique_order_numbers":26} 
[2026-03-24 16:50:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T04:50:35.967Z","date_to":"2026-03-24T16:50:35.967Z","per_page":"100"} 
[2026-03-24 16:50:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":8,"unique_order_numbers":26} 
[2026-03-24 16:51:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6313,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":30051}],"validated_items":[{"id":30051,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:51:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6313,"items_count":1} 
[2026-03-24 16:51:44] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30051,"menu_item_id":6,"quantity":2}]} 
[2026-03-24 16:51:44] local.INFO: PosOrderController::update - Item changes check {"order_id":6313,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-24 16:51:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6313,"order_number":"AZS-240326-025"} 
[2026-03-24 16:51:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6313,"order_number":"AZS-240326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-24 16:51:44"} 
[2026-03-24 16:51:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6312,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":30046},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null,"id":30047},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30048},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30049},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30050}],"validated_items":[{"id":30046,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":30047,"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"id":30048,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30049,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30050,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:51:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6312,"items_count":5} 
[2026-03-24 16:51:52] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30046,"menu_item_id":102,"quantity":1},{"id":30047,"menu_item_id":50,"quantity":3},{"id":30048,"menu_item_id":61,"quantity":1},{"id":30049,"menu_item_id":56,"quantity":1},{"id":30050,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 16:51:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6312,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["102|1|","50|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["102|1|","50|3|","61|1|","56|1|","5|1|"]} 
[2026-03-24 16:51:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6312,"order_number":"AZS-240326-024"} 
[2026-03-24 16:51:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6312,"order_number":"AZS-240326-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-24 16:51:52"} 
[2026-03-24 16:52:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6301,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":30004},{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null,"id":30005},{"menu_item_id":165,"quantity":1,"discount_percent":0,"notes":null,"id":30006},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":30007},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null,"id":30008}],"validated_items":[{"id":30004,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"id":30005,"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null},{"id":30006,"menu_item_id":165,"quantity":1,"discount_percent":0,"notes":null},{"id":30007,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":30008,"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:52:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6301,"items_count":5} 
[2026-03-24 16:52:06] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30004,"menu_item_id":137,"quantity":1},{"id":30005,"menu_item_id":85,"quantity":1},{"id":30006,"menu_item_id":165,"quantity":1},{"id":30007,"menu_item_id":2,"quantity":1},{"id":30008,"menu_item_id":29,"quantity":2}]} 
[2026-03-24 16:52:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6301,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["137|1|","85|1|","165|1|","2|1|","29|2|"],"new_items_map_keys":["137|1|","85|1|","165|1|","2|1|","29|2|"]} 
[2026-03-24 16:52:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6301,"order_number":"AZS-240326-018"} 
[2026-03-24 16:52:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6301,"order_number":"AZS-240326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-24 16:52:06"} 
[2026-03-24 16:52:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T04:52:16.803Z","date_to":"2026-03-24T16:52:16.803Z","per_page":"100"} 
[2026-03-24 16:52:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":8,"unique_order_numbers":26} 
[2026-03-24 16:52:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T04:52:16.816Z","date_to":"2026-03-24T16:52:16.816Z","per_page":"100"} 
[2026-03-24 16:52:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":8,"unique_order_numbers":26} 
[2026-03-24 16:52:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T04:52:16.803Z","date_to":"2026-03-24T16:52:16.803Z","per_page":"100"} 
[2026-03-24 16:52:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":8,"unique_order_numbers":26} 
[2026-03-24 16:54:24] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6314,"order_number":"AZS-240326-026","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 16:54:24"} 
[2026-03-24 16:54:24] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6314,"order_number":"AZS-240326-026","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 16:54:24"} 
[2026-03-24 16:54:24] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6314,"order_number":"AZS-240326-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 16:54:24"} 
[2026-03-24 16:54:24] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6314,"order_number":"AZS-240326-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 16:54:24"} 
[2026-03-24 16:54:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6314,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30052}],"validated_items":[{"id":30052,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:54:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6314,"items_count":1} 
[2026-03-24 16:54:24] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30052,"menu_item_id":6,"quantity":1}]} 
[2026-03-24 16:54:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6314,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-03-24 16:54:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6314,"order_number":"AZS-240326-026"} 
[2026-03-24 16:54:24] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6314,"order_number":"AZS-240326-026","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 16:54:24","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 16:54:24"} 
[2026-03-24 16:54:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6314,"order_number":"AZS-240326-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 16:54:24"} 
[2026-03-24 16:54:24] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6314,"order_number":"AZS-240326-026","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 16:54:24","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"200.00","database_verification_match":true,"timestamp":"2026-03-24 16:54:24"} 
[2026-03-24 16:59:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6309,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":30036}],"validated_items":[{"id":30036,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:59:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6309,"items_count":1} 
[2026-03-24 16:59:06] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30036,"menu_item_id":386,"quantity":1}]} 
[2026-03-24 16:59:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6309,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|"]} 
[2026-03-24 16:59:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6309,"order_number":"AZS-240326-022"} 
[2026-03-24 16:59:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6309,"order_number":"AZS-240326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 16:59:06"} 
[2026-03-24 16:59:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6309,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null,"id":30036},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30036,"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:59:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6309,"items_count":2} 
[2026-03-24 16:59:28] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30036,"menu_item_id":386,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 16:59:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6309,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|","5|1|"]} 
[2026-03-24 16:59:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6309,"order_number":"AZS-240326-022"} 
[2026-03-24 16:59:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-022","replaced_order_id":6309} 
[2026-03-24 16:59:28] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6315,"items_count":2,"items":[{"menu_item_id":386,"quantity":1,"price":"2099.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-24 16:59:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6315,"item_index":0,"item_data":{"menu_item_id":386,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 01","quantity":1,"price":"2099.00","discount_percent":0.0,"discount_amount":0.0,"total":2099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6315}} 
[2026-03-24 16:59:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6315,"item_index":0,"menu_item_id":386} 
[2026-03-24 16:59:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6315,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6315}} 
[2026-03-24 16:59:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6315,"item_index":1,"menu_item_id":5} 
[2026-03-24 16:59:28] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6309,"new_order_id":6315,"order_number":"AZS-240326-022"} 
[2026-03-24 16:59:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6315,"item_index":0,"item_id":30036} 
[2026-03-24 16:59:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":6315,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":30036},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-24 16:59:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6315,"items_count":2} 
[2026-03-24 16:59:46] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[30053,30054],"items":[{"id":null,"menu_item_id":386,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 16:59:46] local.INFO: PosOrderController::update - Item changes check {"order_id":6315,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["386|1|","5|1|"],"new_items_map_keys":["386|1|","5|1|"]} 
[2026-03-24 16:59:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6315,"order_number":"AZS-240326-022"} 
[2026-03-24 16:59:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6315,"order_number":"AZS-240326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 16:59:46"} 
[2026-03-24 17:01:29] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-24 17:01:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6316,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":30055}],"validated_items":[{"id":30055,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-24 17:01:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6316,"items_count":1} 
[2026-03-24 17:01:39] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30055,"menu_item_id":6,"quantity":2}]} 
[2026-03-24 17:01:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6316,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|3|"],"new_items_map_keys":["6|2|"]} 
[2026-03-24 17:01:39] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6316,"order_number":"AZS-240326-027"} 
[2026-03-24 17:01:39] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-027","replaced_order_id":6316} 
[2026-03-24 17:01:39] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6317,"items_count":1,"items":[{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-03-24 17:01:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6317,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6317}} 
[2026-03-24 17:01:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6317,"item_index":0,"menu_item_id":6} 
[2026-03-24 17:01:39] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6316,"new_order_id":6317,"order_number":"AZS-240326-027"} 
[2026-03-24 17:01:43] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6317,"item_index":0,"item_id":30055} 
[2026-03-24 17:01:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":6317,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":30055}],"validated_items":[{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-24 17:01:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6317,"items_count":1} 
[2026-03-24 17:01:43] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[30056],"items":[{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-03-24 17:01:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6317,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-24 17:01:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6317,"order_number":"AZS-240326-027"} 
[2026-03-24 17:01:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6317,"order_number":"AZS-240326-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-24 17:01:43"} 
[2026-03-24 17:02:45] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6315,"order_number":"AZS-240326-022","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2382,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 17:02:45"} 
[2026-03-24 17:02:45] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6315,"order_number":"AZS-240326-022","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2382,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 17:02:45"} 
[2026-03-24 17:02:45] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6315,"order_number":"AZS-240326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2382,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 17:02:45"} 
[2026-03-24 17:02:45] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6315,"order_number":"AZS-240326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2382,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 17:02:45"} 
[2026-03-24 17:02:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6315,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":30053},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30054}],"validated_items":[{"id":30053,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null},{"id":30054,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-24 17:02:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6315,"items_count":2} 
[2026-03-24 17:02:45] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30053,"menu_item_id":386,"quantity":1},{"id":30054,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 17:02:45] local.INFO: PosOrderController::update - Item changes check {"order_id":6315,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["386|1|","5|1|"],"new_items_map_keys":["386|1|","5|1|"]} 
[2026-03-24 17:02:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6315,"order_number":"AZS-240326-022"} 
[2026-03-24 17:02:45] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6315,"order_number":"AZS-240326-022","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2382,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 17:02:45","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 17:02:45"} 
[2026-03-24 17:02:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6315,"order_number":"AZS-240326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 17:02:45"} 
[2026-03-24 17:02:45] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6315,"order_number":"AZS-240326-022","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2382.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 17:02:45","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2382,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2382.00","database_verification_match":true,"timestamp":"2026-03-24 17:02:45"} 
[2026-03-24 17:06:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6301,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":30004},{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null,"id":30005},{"menu_item_id":165,"quantity":1,"discount_percent":0,"notes":null,"id":30006},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":30007},{"menu_item_id":29,"quantity":3,"discount_percent":0,"notes":null,"id":30008},{"menu_item_id":6,"quantity":4,"discount_percent":0,"notes":null}],"validated_items":[{"id":30004,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"id":30005,"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null},{"id":30006,"menu_item_id":165,"quantity":1,"discount_percent":0,"notes":null},{"id":30007,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":30008,"menu_item_id":29,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-03-24 17:06:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6301,"items_count":6} 
[2026-03-24 17:06:16] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30004,"menu_item_id":137,"quantity":1},{"id":30005,"menu_item_id":85,"quantity":1},{"id":30006,"menu_item_id":165,"quantity":1},{"id":30007,"menu_item_id":2,"quantity":1},{"id":30008,"menu_item_id":29,"quantity":3},{"id":null,"menu_item_id":6,"quantity":4}]} 
[2026-03-24 17:06:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6301,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["137|1|","85|1|","165|1|","2|1|","29|2|"],"new_items_map_keys":["137|1|","85|1|","165|1|","2|1|","29|3|","6|4|"]} 
[2026-03-24 17:06:16] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6301,"order_number":"AZS-240326-018"} 
[2026-03-24 17:06:16] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-018","replaced_order_id":6301} 
[2026-03-24 17:06:16] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6318,"items_count":6,"items":[{"menu_item_id":137,"quantity":1,"price":"1299.00"},{"menu_item_id":85,"quantity":1,"price":"699.00"},{"menu_item_id":165,"quantity":1,"price":"999.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":29,"quantity":3,"price":"250.00"},{"menu_item_id":6,"quantity":4,"price":"199.00"}]} 
[2026-03-24 17:06:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6318,"item_index":0,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6318}} 
[2026-03-24 17:06:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6318,"item_index":0,"menu_item_id":137} 
[2026-03-24 17:06:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6318,"item_index":1,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":1,"price":"699.00","discount_percent":0.0,"discount_amount":0.0,"total":699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6318}} 
[2026-03-24 17:06:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6318,"item_index":1,"menu_item_id":85} 
[2026-03-24 17:06:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6318,"item_index":2,"item_data":{"menu_item_id":165,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Grilled Chicken Sandwich","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6318}} 
[2026-03-24 17:06:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6318,"item_index":2,"menu_item_id":165} 
[2026-03-24 17:06:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6318,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6318}} 
[2026-03-24 17:06:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6318,"item_index":3,"menu_item_id":2} 
[2026-03-24 17:06:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6318,"item_index":4,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":3,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":750.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6318}} 
[2026-03-24 17:06:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6318,"item_index":4,"menu_item_id":29} 
[2026-03-24 17:06:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6318,"item_index":5,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6318}} 
[2026-03-24 17:06:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6318,"item_index":5,"menu_item_id":6} 
[2026-03-24 17:06:16] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6301,"new_order_id":6318,"order_number":"AZS-240326-018"} 
[2026-03-24 17:06:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6318,"item_index":0,"item_id":30004} 
[2026-03-24 17:06:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6318,"item_index":1,"item_id":30005} 
[2026-03-24 17:06:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6318,"item_index":2,"item_id":30006} 
[2026-03-24 17:06:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6318,"item_index":3,"item_id":30007} 
[2026-03-24 17:06:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6318,"item_index":4,"item_id":30008} 
[2026-03-24 17:06:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":6,"order_id":6318,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":30004},{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null,"id":30005},{"menu_item_id":165,"quantity":1,"discount_percent":0,"notes":null,"id":30006},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":30007},{"menu_item_id":29,"quantity":3,"discount_percent":0,"notes":null,"id":30008},{"menu_item_id":6,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":165,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-24 17:06:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6318,"items_count":7} 
[2026-03-24 17:06:35] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":6,"items_to_remove":[30057,30058,30059,30060,30061,30062],"items":[{"id":null,"menu_item_id":137,"quantity":1},{"id":null,"menu_item_id":85,"quantity":1},{"id":null,"menu_item_id":165,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":29,"quantity":3},{"id":null,"menu_item_id":6,"quantity":4},{"id":null,"menu_item_id":403,"quantity":1}]} 
[2026-03-24 17:06:35] local.INFO: PosOrderController::update - Item changes check {"order_id":6318,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["137|1|","85|1|","165|1|","2|1|","29|3|","6|4|"],"new_items_map_keys":["137|1|","85|1|","165|1|","2|1|","29|3|","6|4|","403|1|"]} 
[2026-03-24 17:06:35] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6318,"order_number":"AZS-240326-018"} 
[2026-03-24 17:06:35] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-018","replaced_order_id":6318} 
[2026-03-24 17:06:35] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6319,"items_count":7,"items":[{"menu_item_id":137,"quantity":1,"price":"1299.00"},{"menu_item_id":85,"quantity":1,"price":"699.00"},{"menu_item_id":165,"quantity":1,"price":"999.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":29,"quantity":3,"price":"250.00"},{"menu_item_id":6,"quantity":4,"price":"199.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"}]} 
[2026-03-24 17:06:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6319,"item_index":0,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6319}} 
[2026-03-24 17:06:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6319,"item_index":0,"menu_item_id":137} 
[2026-03-24 17:06:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6319,"item_index":1,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":1,"price":"699.00","discount_percent":0.0,"discount_amount":0.0,"total":699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6319}} 
[2026-03-24 17:06:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6319,"item_index":1,"menu_item_id":85} 
[2026-03-24 17:06:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6319,"item_index":2,"item_data":{"menu_item_id":165,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Grilled Chicken Sandwich","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6319}} 
[2026-03-24 17:06:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6319,"item_index":2,"menu_item_id":165} 
[2026-03-24 17:06:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6319,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6319}} 
[2026-03-24 17:06:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6319,"item_index":3,"menu_item_id":2} 
[2026-03-24 17:06:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6319,"item_index":4,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":3,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":750.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6319}} 
[2026-03-24 17:06:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6319,"item_index":4,"menu_item_id":29} 
[2026-03-24 17:06:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6319,"item_index":5,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6319}} 
[2026-03-24 17:06:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6319,"item_index":5,"menu_item_id":6} 
[2026-03-24 17:06:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6319,"item_index":6,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6319}} 
[2026-03-24 17:06:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6319,"item_index":6,"menu_item_id":403} 
[2026-03-24 17:06:35] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6318,"new_order_id":6319,"order_number":"AZS-240326-018"} 
[2026-03-24 17:12:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6313,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30051}],"validated_items":[{"id":30051,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-24 17:12:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6313,"items_count":1} 
[2026-03-24 17:12:45] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30051,"menu_item_id":6,"quantity":2}]} 
[2026-03-24 17:12:45] local.INFO: PosOrderController::update - Item changes check {"order_id":6313,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-24 17:12:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6313,"order_number":"AZS-240326-025"} 
[2026-03-24 17:12:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6313,"order_number":"AZS-240326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 17:12:45"} 
[2026-03-24 17:14:36] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6313,"order_number":"AZS-240326-025","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 17:14:36"} 
[2026-03-24 17:14:36] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6313,"order_number":"AZS-240326-025","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 17:14:36"} 
[2026-03-24 17:14:36] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6313,"order_number":"AZS-240326-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 17:14:36"} 
[2026-03-24 17:14:36] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6313,"order_number":"AZS-240326-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 17:14:36"} 
[2026-03-24 17:14:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6313,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30051}],"validated_items":[{"id":30051,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-24 17:14:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6313,"items_count":1} 
[2026-03-24 17:14:36] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30051,"menu_item_id":6,"quantity":2}]} 
[2026-03-24 17:14:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6313,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-24 17:14:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6313,"order_number":"AZS-240326-025"} 
[2026-03-24 17:14:36] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6313,"order_number":"AZS-240326-025","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 17:14:36","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 17:14:36"} 
[2026-03-24 17:14:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6313,"order_number":"AZS-240326-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 17:14:36"} 
[2026-03-24 17:14:36] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6313,"order_number":"AZS-240326-025","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 17:14:36","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-24 17:14:36"} 
[2026-03-24 17:22:43] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-24 17:24:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6312,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30046},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":30047},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30048},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30049},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30050}],"validated_items":[{"id":30046,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30047,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"id":30048,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30049,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30050,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-24 17:24:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6312,"items_count":5} 
[2026-03-24 17:24:58] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30046,"menu_item_id":102,"quantity":1},{"id":30047,"menu_item_id":50,"quantity":3},{"id":30048,"menu_item_id":61,"quantity":1},{"id":30049,"menu_item_id":56,"quantity":1},{"id":30050,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 17:24:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6312,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["102|1|","50|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["102|1|","50|3|","61|1|","56|1|","5|1|"]} 
[2026-03-24 17:24:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6312,"order_number":"AZS-240326-024"} 
[2026-03-24 17:24:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6312,"order_number":"AZS-240326-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 17:24:58"} 
[2026-03-24 17:25:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":2,"order_id":6312,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30046},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":30047},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30048}],"validated_items":[{"id":30046,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30047,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"id":30048,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-24 17:25:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6312,"items_count":3} 
[2026-03-24 17:25:43] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":2,"items_to_remove":[30049,30050],"items":[{"id":30046,"menu_item_id":102,"quantity":1},{"id":30047,"menu_item_id":50,"quantity":3},{"id":30048,"menu_item_id":61,"quantity":1}]} 
[2026-03-24 17:25:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6312,"has_item_changes":true,"old_items_count":5,"new_items_count":3,"old_items_map_keys":["102|1|","50|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["102|1|","50|3|","61|1|"]} 
[2026-03-24 17:25:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6312,"order_number":"AZS-240326-024"} 
[2026-03-24 17:25:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-024","replaced_order_id":6312} 
[2026-03-24 17:25:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6323,"items_count":3,"items":[{"menu_item_id":102,"quantity":1,"price":1399.0},{"menu_item_id":50,"quantity":3,"price":129.0},{"menu_item_id":61,"quantity":1,"price":199.0}]} 
[2026-03-24 17:25:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6323,"item_index":0,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":1399.0,"discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6323}} 
[2026-03-24 17:25:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6323,"item_index":0,"menu_item_id":102} 
[2026-03-24 17:25:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6323,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6323}} 
[2026-03-24 17:25:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6323,"item_index":1,"menu_item_id":50} 
[2026-03-24 17:25:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6323,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6323}} 
[2026-03-24 17:25:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6323,"item_index":2,"menu_item_id":61} 
[2026-03-24 17:25:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6312,"new_order_id":6323,"order_number":"AZS-240326-024"} 
[2026-03-24 17:25:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6323,"item_index":0,"item_id":30046} 
[2026-03-24 17:25:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6323,"item_index":1,"item_id":30047} 
[2026-03-24 17:25:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6323,"item_index":2,"item_id":30048} 
[2026-03-24 17:25:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":6323,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30046},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":30047},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30048}],"validated_items":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-24 17:25:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6323,"items_count":3} 
[2026-03-24 17:25:49] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[30078,30079,30080],"items":[{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":50,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-03-24 17:25:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6323,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["102|1|","50|3|","61|1|"],"new_items_map_keys":["102|1|","50|3|","61|1|"]} 
[2026-03-24 17:25:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6323,"order_number":"AZS-240326-024"} 
[2026-03-24 17:25:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6323,"order_number":"AZS-240326-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 17:25:49"} 
[2026-03-24 17:26:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6323,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":30078},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null,"id":30079},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30080},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":30078,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":30079,"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"id":30080,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-24 17:26:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6323,"items_count":4} 
[2026-03-24 17:26:30] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30078,"menu_item_id":102,"quantity":1},{"id":30079,"menu_item_id":50,"quantity":3},{"id":30080,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-24 17:26:30] local.INFO: PosOrderController::update - Item changes check {"order_id":6323,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["102|1|","50|3|","61|1|"],"new_items_map_keys":["102|1|","50|3|","61|1|","2|2|"]} 
[2026-03-24 17:26:30] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6323,"order_number":"AZS-240326-024"} 
[2026-03-24 17:26:30] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-024","replaced_order_id":6323} 
[2026-03-24 17:26:30] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6324,"items_count":4,"items":[{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":50,"quantity":3,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-24 17:26:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6324,"item_index":0,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6324}} 
[2026-03-24 17:26:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6324,"item_index":0,"menu_item_id":102} 
[2026-03-24 17:26:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6324,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6324}} 
[2026-03-24 17:26:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6324,"item_index":1,"menu_item_id":50} 
[2026-03-24 17:26:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6324,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6324}} 
[2026-03-24 17:26:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6324,"item_index":2,"menu_item_id":61} 
[2026-03-24 17:26:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6324,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6324}} 
[2026-03-24 17:26:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6324,"item_index":3,"menu_item_id":2} 
[2026-03-24 17:26:30] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6323,"new_order_id":6324,"order_number":"AZS-240326-024"} 
[2026-03-24 17:26:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6324,"item_index":0,"item_id":30078} 
[2026-03-24 17:26:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6324,"item_index":1,"item_id":30079} 
[2026-03-24 17:26:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6324,"item_index":2,"item_id":30080} 
[2026-03-24 17:26:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6324,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30078},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":30079},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30080},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-24 17:26:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6324,"items_count":4} 
[2026-03-24 17:26:35] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[30081,30082,30083,30084],"items":[{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":50,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-24 17:26:35] local.INFO: PosOrderController::update - Item changes check {"order_id":6324,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["102|1|","50|3|","61|1|","2|2|"],"new_items_map_keys":["102|1|","50|3|","61|1|","2|2|"]} 
[2026-03-24 17:26:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6324,"order_number":"AZS-240326-024"} 
[2026-03-24 17:26:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6324,"order_number":"AZS-240326-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 17:26:35"} 
[2026-03-24 17:26:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6317,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30056}],"validated_items":[{"id":30056,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-24 17:26:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6317,"items_count":1} 
[2026-03-24 17:26:49] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30056,"menu_item_id":6,"quantity":2}]} 
[2026-03-24 17:26:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6317,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-24 17:26:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6317,"order_number":"AZS-240326-027"} 
[2026-03-24 17:26:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6317,"order_number":"AZS-240326-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 17:26:49"} 
[2026-03-24 17:28:08] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6317,"order_number":"AZS-240326-027","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 17:28:08"} 
[2026-03-24 17:28:08] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6317,"order_number":"AZS-240326-027","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 17:28:08"} 
[2026-03-24 17:28:08] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6317,"order_number":"AZS-240326-027","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 17:28:08"} 
[2026-03-24 17:28:08] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6317,"order_number":"AZS-240326-027","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 17:28:08"} 
[2026-03-24 17:28:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6317,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30056}],"validated_items":[{"id":30056,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-24 17:28:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6317,"items_count":1} 
[2026-03-24 17:28:08] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30056,"menu_item_id":6,"quantity":2}]} 
[2026-03-24 17:28:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6317,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-24 17:28:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6317,"order_number":"AZS-240326-027"} 
[2026-03-24 17:28:08] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6317,"order_number":"AZS-240326-027","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 17:28:08","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 17:28:08"} 
[2026-03-24 17:28:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6317,"order_number":"AZS-240326-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 17:28:08"} 
[2026-03-24 17:28:08] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6317,"order_number":"AZS-240326-027","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 17:28:08","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-24 17:28:08"} 
[2026-03-24 17:33:04] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6321,"order_number":"AZS-240326-029","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":750,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 17:33:04"} 
[2026-03-24 17:33:04] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6321,"order_number":"AZS-240326-029","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":750,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 17:33:04"} 
[2026-03-24 17:33:04] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6321,"order_number":"AZS-240326-029","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":750,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 17:33:04"} 
[2026-03-24 17:33:04] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6321,"order_number":"AZS-240326-029","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":750,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 17:33:04"} 
[2026-03-24 17:33:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6321,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":29,"quantity":3,"price":250,"discount_percent":0,"notes":null,"id":30075}],"validated_items":[{"id":30075,"menu_item_id":29,"quantity":3,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-24 17:33:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6321,"items_count":1} 
[2026-03-24 17:33:04] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30075,"menu_item_id":29,"quantity":3}]} 
[2026-03-24 17:33:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6321,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["29|3|"],"new_items_map_keys":["29|3|"]} 
[2026-03-24 17:33:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6321,"order_number":"AZS-240326-029"} 
[2026-03-24 17:33:04] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6321,"order_number":"AZS-240326-029","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":750,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 17:33:04","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 17:33:04"} 
[2026-03-24 17:33:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6321,"order_number":"AZS-240326-029","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 17:33:04"} 
[2026-03-24 17:33:04] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6321,"order_number":"AZS-240326-029","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"750.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 17:33:04","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":750,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"750.00","database_verification_match":true,"timestamp":"2026-03-24 17:33:04"} 
[2026-03-24 17:40:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6322,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":30076},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30077}],"validated_items":[{"id":30076,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":30077,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-24 17:40:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6322,"items_count":2} 
[2026-03-24 17:40:36] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30076,"menu_item_id":6,"quantity":4},{"id":30077,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 17:40:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6322,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|4|","5|1|"],"new_items_map_keys":["6|4|","5|1|"]} 
[2026-03-24 17:40:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6322,"order_number":"AZS-240326-030"} 
[2026-03-24 17:40:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6322,"order_number":"AZS-240326-030","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 17:40:36"} 
[2026-03-24 17:41:03] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6322,"order_number":"AZS-240326-030","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1020,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 17:41:03"} 
[2026-03-24 17:41:03] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6322,"order_number":"AZS-240326-030","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1020,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 17:41:03"} 
[2026-03-24 17:41:03] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6322,"order_number":"AZS-240326-030","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1020,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 17:41:03"} 
[2026-03-24 17:41:03] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6322,"order_number":"AZS-240326-030","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1020,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 17:41:03"} 
[2026-03-24 17:41:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6322,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":30076},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30077}],"validated_items":[{"id":30076,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":30077,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-24 17:41:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6322,"items_count":2} 
[2026-03-24 17:41:03] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30076,"menu_item_id":6,"quantity":4},{"id":30077,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 17:41:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6322,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|4|","5|1|"],"new_items_map_keys":["6|4|","5|1|"]} 
[2026-03-24 17:41:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6322,"order_number":"AZS-240326-030"} 
[2026-03-24 17:41:03] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6322,"order_number":"AZS-240326-030","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1020,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 17:41:03","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 17:41:03"} 
[2026-03-24 17:41:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6322,"order_number":"AZS-240326-030","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 17:41:03"} 
[2026-03-24 17:41:03] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6322,"order_number":"AZS-240326-030","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1020.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 17:41:03","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1020,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1020.00","database_verification_match":true,"timestamp":"2026-03-24 17:41:03"} 
[2026-03-24 17:59:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":6320,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30070},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":30071},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30072},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30073}],"validated_items":[{"id":30070,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30071,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":30072,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30073,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-24 17:59:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6320,"items_count":4} 
[2026-03-24 17:59:34] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[30074],"items":[{"id":30070,"menu_item_id":98,"quantity":1},{"id":30071,"menu_item_id":396,"quantity":3},{"id":30072,"menu_item_id":61,"quantity":1},{"id":30073,"menu_item_id":56,"quantity":1}]} 
[2026-03-24 17:59:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6320,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["98|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["98|1|","396|3|","61|1|","56|1|"]} 
[2026-03-24 17:59:34] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6320,"order_number":"AZS-240326-028"} 
[2026-03-24 17:59:34] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-028","replaced_order_id":6320} 
[2026-03-24 17:59:34] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6326,"items_count":4,"items":[{"menu_item_id":98,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0}]} 
[2026-03-24 17:59:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6326,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6326}} 
[2026-03-24 17:59:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6326,"item_index":0,"menu_item_id":98} 
[2026-03-24 17:59:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6326,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6326}} 
[2026-03-24 17:59:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6326,"item_index":1,"menu_item_id":396} 
[2026-03-24 17:59:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6326,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6326}} 
[2026-03-24 17:59:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6326,"item_index":2,"menu_item_id":61} 
[2026-03-24 17:59:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6326,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6326}} 
[2026-03-24 17:59:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6326,"item_index":3,"menu_item_id":56} 
[2026-03-24 17:59:34] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6320,"new_order_id":6326,"order_number":"AZS-240326-028"} 
[2026-03-24 17:59:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6326,"item_index":0,"item_id":30070} 
[2026-03-24 17:59:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6326,"item_index":1,"item_id":30071} 
[2026-03-24 17:59:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6326,"item_index":2,"item_id":30072} 
[2026-03-24 17:59:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6326,"item_index":3,"item_id":30073} 
[2026-03-24 17:59:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6326,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30070},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":30071},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30072},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30073}],"validated_items":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-24 17:59:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6326,"items_count":4} 
[2026-03-24 17:59:51] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[30087,30088,30089,30090],"items":[{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-03-24 17:59:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6326,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["98|1|","396|3|","61|1|","56|1|"],"new_items_map_keys":["98|1|","396|3|","61|1|","56|1|"]} 
[2026-03-24 17:59:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6326,"order_number":"AZS-240326-028"} 
[2026-03-24 17:59:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6326,"order_number":"AZS-240326-028","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 17:59:51"} 
[2026-03-24 18:10:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6324,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30081},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":30082},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30083},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30084}],"validated_items":[{"id":30081,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30082,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"id":30083,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30084,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-24 18:10:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6324,"items_count":4} 
[2026-03-24 18:10:27] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30081,"menu_item_id":102,"quantity":1},{"id":30082,"menu_item_id":50,"quantity":3},{"id":30083,"menu_item_id":61,"quantity":1},{"id":30084,"menu_item_id":2,"quantity":2}]} 
[2026-03-24 18:10:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6324,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["102|1|","50|3|","61|1|","2|2|"],"new_items_map_keys":["102|1|","50|3|","61|1|","2|2|"]} 
[2026-03-24 18:10:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6324,"order_number":"AZS-240326-024"} 
[2026-03-24 18:10:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6324,"order_number":"AZS-240326-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 18:10:27"} 
[2026-03-24 18:11:08] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6324,"order_number":"AZS-240326-024","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 18:11:08"} 
[2026-03-24 18:11:08] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6324,"order_number":"AZS-240326-024","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 18:11:08"} 
[2026-03-24 18:11:08] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6324,"order_number":"AZS-240326-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 18:11:08"} 
[2026-03-24 18:11:08] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6324,"order_number":"AZS-240326-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 18:11:08"} 
[2026-03-24 18:11:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":1,"order_id":6324,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30081},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":30082},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30084}],"validated_items":[{"id":30081,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30082,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"id":30084,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-24 18:11:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6324,"items_count":3} 
[2026-03-24 18:11:08] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":1,"items_to_remove":[30083],"items":[{"id":30081,"menu_item_id":102,"quantity":1},{"id":30082,"menu_item_id":50,"quantity":3},{"id":30084,"menu_item_id":2,"quantity":2}]} 
[2026-03-24 18:11:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6324,"has_item_changes":true,"old_items_count":4,"new_items_count":3,"old_items_map_keys":["102|1|","50|3|","61|1|","2|2|"],"new_items_map_keys":["102|1|","50|3|","2|2|"]} 
[2026-03-24 18:11:08] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6324,"order_number":"AZS-240326-024","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-24 18:11:08","original_payment_amount":"0.00","grand_total":2046.0,"timestamp":"2026-03-24 18:11:08"} 
[2026-03-24 18:11:08] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6324,"order_number":"AZS-240326-024"} 
[2026-03-24 18:11:08] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-024","replaced_order_id":6324} 
[2026-03-24 18:11:08] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6324,"new_order_id":6328,"order_number":"AZS-240326-024","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-24 18:11:08","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-24 18:11:08"} 
[2026-03-24 18:11:08] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6328,"items_count":3,"items":[{"menu_item_id":102,"quantity":1,"price":1399.0},{"menu_item_id":50,"quantity":3,"price":129.0},{"menu_item_id":2,"quantity":2,"price":130.0}]} 
[2026-03-24 18:11:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6328,"item_index":0,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":1399.0,"discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6328}} 
[2026-03-24 18:11:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6328,"item_index":0,"menu_item_id":102} 
[2026-03-24 18:11:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6328,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6328}} 
[2026-03-24 18:11:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6328,"item_index":1,"menu_item_id":50} 
[2026-03-24 18:11:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6328,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6328}} 
[2026-03-24 18:11:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6328,"item_index":2,"menu_item_id":2} 
[2026-03-24 18:11:08] local.ERROR: Error tracking recipe usage for order 6328: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6328, 50, 102, 1, 30, 0.00, Order #AZS-240326-024 - 3x Roghni Naan, 2026-03-24 18:11:08, 2026-03-24 18:11:08))  
[2026-03-24 18:11:08] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6324,"new_order_id":6328,"order_number":"AZS-240326-024"} 
[2026-03-24 18:11:08] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6324,"new_order_id":6328,"order_number":"AZS-240326-024","route":"api/orders/6324"} 
[2026-03-24 18:11:22] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6326,"order_number":"AZS-240326-028","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 18:11:22"} 
[2026-03-24 18:11:22] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6326,"order_number":"AZS-240326-028","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 18:11:22"} 
[2026-03-24 18:11:22] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6326,"order_number":"AZS-240326-028","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 18:11:22"} 
[2026-03-24 18:11:22] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6326,"order_number":"AZS-240326-028","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 18:11:22"} 
[2026-03-24 18:11:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6326,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30087},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":30088},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30089},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30090}],"validated_items":[{"id":30087,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30088,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":30089,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30090,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-24 18:11:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6326,"items_count":4} 
[2026-03-24 18:11:22] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30087,"menu_item_id":98,"quantity":1},{"id":30088,"menu_item_id":396,"quantity":3},{"id":30089,"menu_item_id":61,"quantity":1},{"id":30090,"menu_item_id":56,"quantity":1}]} 
[2026-03-24 18:11:22] local.INFO: PosOrderController::update - Item changes check {"order_id":6326,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["98|1|","396|3|","61|1|","56|1|"],"new_items_map_keys":["98|1|","396|3|","61|1|","56|1|"]} 
[2026-03-24 18:11:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6326,"order_number":"AZS-240326-028"} 
[2026-03-24 18:11:22] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6326,"order_number":"AZS-240326-028","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 18:11:22","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 18:11:22"} 
[2026-03-24 18:11:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6326,"order_number":"AZS-240326-028","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 18:11:22"} 
[2026-03-24 18:11:22] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6326,"order_number":"AZS-240326-028","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 18:11:22","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-24 18:11:22"} 
[2026-03-24 18:11:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T06:11:29.935Z","date_to":"2026-03-24T18:11:29.935Z","per_page":"100"} 
[2026-03-24 18:11:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":26,"unpaid_count":6,"unique_order_numbers":32} 
[2026-03-24 18:11:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T06:11:29.950Z","date_to":"2026-03-24T18:11:29.950Z","per_page":"100"} 
[2026-03-24 18:11:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":26,"unpaid_count":6,"unique_order_numbers":32} 
[2026-03-24 18:11:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T06:11:29.935Z","date_to":"2026-03-24T18:11:29.935Z","per_page":"100"} 
[2026-03-24 18:11:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":26,"unpaid_count":6,"unique_order_numbers":32} 
[2026-03-24 18:12:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6325,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":8,"price":249,"discount_percent":0,"notes":null,"id":30085},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30086}],"validated_items":[{"id":30085,"menu_item_id":13,"quantity":8,"price":249,"discount_percent":0,"notes":null},{"id":30086,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-24 18:12:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6325,"items_count":2} 
[2026-03-24 18:12:38] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30085,"menu_item_id":13,"quantity":8},{"id":30086,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 18:12:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6325,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|8|","5|1|"],"new_items_map_keys":["13|8|","5|1|"]} 
[2026-03-24 18:12:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6325,"order_number":"AZS-240326-031"} 
[2026-03-24 18:12:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6325,"order_number":"AZS-240326-031","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 18:12:38"} 
[2026-03-24 18:13:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6319,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":30063},{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null,"id":30064},{"menu_item_id":165,"quantity":1,"discount_percent":0,"notes":null,"id":30065},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":30066},{"menu_item_id":29,"quantity":3,"discount_percent":0,"notes":null,"id":30067},{"menu_item_id":6,"quantity":6,"discount_percent":0,"notes":null,"id":30068},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":30069}],"validated_items":[{"id":30063,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"id":30064,"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null},{"id":30065,"menu_item_id":165,"quantity":1,"discount_percent":0,"notes":null},{"id":30066,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":30067,"menu_item_id":29,"quantity":3,"discount_percent":0,"notes":null},{"id":30068,"menu_item_id":6,"quantity":6,"discount_percent":0,"notes":null},{"id":30069,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-24 18:13:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6319,"items_count":7} 
[2026-03-24 18:13:06] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30063,"menu_item_id":137,"quantity":1},{"id":30064,"menu_item_id":85,"quantity":1},{"id":30065,"menu_item_id":165,"quantity":1},{"id":30066,"menu_item_id":2,"quantity":1},{"id":30067,"menu_item_id":29,"quantity":3},{"id":30068,"menu_item_id":6,"quantity":6},{"id":30069,"menu_item_id":403,"quantity":1}]} 
[2026-03-24 18:13:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6319,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["137|1|","85|1|","165|1|","2|1|","29|3|","6|4|","403|1|"],"new_items_map_keys":["137|1|","85|1|","165|1|","2|1|","29|3|","6|6|","403|1|"]} 
[2026-03-24 18:13:06] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6319,"order_number":"AZS-240326-018"} 
[2026-03-24 18:13:06] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-018","replaced_order_id":6319} 
[2026-03-24 18:13:06] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6329,"items_count":7,"items":[{"menu_item_id":137,"quantity":1,"price":"1299.00"},{"menu_item_id":85,"quantity":1,"price":"699.00"},{"menu_item_id":165,"quantity":1,"price":"999.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":29,"quantity":3,"price":"250.00"},{"menu_item_id":6,"quantity":6,"price":"199.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"}]} 
[2026-03-24 18:13:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6329,"item_index":0,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6329}} 
[2026-03-24 18:13:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6329,"item_index":0,"menu_item_id":137} 
[2026-03-24 18:13:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6329,"item_index":1,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":1,"price":"699.00","discount_percent":0.0,"discount_amount":0.0,"total":699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6329}} 
[2026-03-24 18:13:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6329,"item_index":1,"menu_item_id":85} 
[2026-03-24 18:13:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6329,"item_index":2,"item_data":{"menu_item_id":165,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Grilled Chicken Sandwich","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6329}} 
[2026-03-24 18:13:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6329,"item_index":2,"menu_item_id":165} 
[2026-03-24 18:13:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6329,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6329}} 
[2026-03-24 18:13:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6329,"item_index":3,"menu_item_id":2} 
[2026-03-24 18:13:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6329,"item_index":4,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":3,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":750.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6329}} 
[2026-03-24 18:13:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6329,"item_index":4,"menu_item_id":29} 
[2026-03-24 18:13:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6329,"item_index":5,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":6,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":1194.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6329}} 
[2026-03-24 18:13:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6329,"item_index":5,"menu_item_id":6} 
[2026-03-24 18:13:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6329,"item_index":6,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6329}} 
[2026-03-24 18:13:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6329,"item_index":6,"menu_item_id":403} 
[2026-03-24 18:13:06] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6319,"new_order_id":6329,"order_number":"AZS-240326-018"} 
[2026-03-24 18:22:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6325,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":8,"price":249,"discount_percent":0,"notes":null,"id":30085},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30086}],"validated_items":[{"id":30085,"menu_item_id":13,"quantity":8,"price":249,"discount_percent":0,"notes":null},{"id":30086,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-24 18:22:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6325,"items_count":2} 
[2026-03-24 18:22:39] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30085,"menu_item_id":13,"quantity":8},{"id":30086,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 18:22:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6325,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|8|","5|1|"],"new_items_map_keys":["13|8|","5|1|"]} 
[2026-03-24 18:22:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6325,"order_number":"AZS-240326-031"} 
[2026-03-24 18:22:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6325,"order_number":"AZS-240326-031","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 18:22:39"} 
[2026-03-24 18:22:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6325,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":8,"price":249,"discount_percent":0,"notes":null,"id":30085},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30086}],"validated_items":[{"id":30085,"menu_item_id":13,"quantity":8,"price":249,"discount_percent":0,"notes":null},{"id":30086,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-24 18:22:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6325,"items_count":2} 
[2026-03-24 18:22:48] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30085,"menu_item_id":13,"quantity":8},{"id":30086,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 18:22:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6325,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|8|","5|1|"],"new_items_map_keys":["13|8|","5|1|"]} 
[2026-03-24 18:22:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6325,"order_number":"AZS-240326-031"} 
[2026-03-24 18:22:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6325,"order_number":"AZS-240326-031","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 18:22:48"} 
[2026-03-24 18:24:03] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6325,"order_number":"AZS-240326-031","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 18:24:03"} 
[2026-03-24 18:24:03] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6325,"order_number":"AZS-240326-031","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 18:24:03"} 
[2026-03-24 18:24:03] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6325,"order_number":"AZS-240326-031","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 18:24:03"} 
[2026-03-24 18:24:03] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6325,"order_number":"AZS-240326-031","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 18:24:03"} 
[2026-03-24 18:24:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6325,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":8,"price":249,"discount_percent":0,"notes":null,"id":30085},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30086}],"validated_items":[{"id":30085,"menu_item_id":13,"quantity":8,"price":249,"discount_percent":0,"notes":null},{"id":30086,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-24 18:24:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6325,"items_count":2} 
[2026-03-24 18:24:03] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30085,"menu_item_id":13,"quantity":8},{"id":30086,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 18:24:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6325,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|8|","5|1|"],"new_items_map_keys":["13|8|","5|1|"]} 
[2026-03-24 18:24:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6325,"order_number":"AZS-240326-031"} 
[2026-03-24 18:24:03] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6325,"order_number":"AZS-240326-031","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 18:24:03","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 18:24:03"} 
[2026-03-24 18:24:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6325,"order_number":"AZS-240326-031","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 18:24:03"} 
[2026-03-24 18:24:03] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6325,"order_number":"AZS-240326-031","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 18:24:03","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-24 18:24:03"} 
[2026-03-24 18:24:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6327,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":30091},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":30092},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30091,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":30092,"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-24 18:24:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6327,"items_count":3} 
[2026-03-24 18:24:34] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30091,"menu_item_id":96,"quantity":1},{"id":30092,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-03-24 18:24:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6327,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["96|1|","52|3|"],"new_items_map_keys":["96|1|","52|3|","56|1|"]} 
[2026-03-24 18:24:34] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6327,"order_number":"AZS-240326-032"} 
[2026-03-24 18:24:34] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-032","replaced_order_id":6327} 
[2026-03-24 18:24:34] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6330,"items_count":3,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":52,"quantity":3,"price":"70.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"}]} 
[2026-03-24 18:24:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6330,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6330}} 
[2026-03-24 18:24:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6330,"item_index":0,"menu_item_id":96} 
[2026-03-24 18:24:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6330,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6330}} 
[2026-03-24 18:24:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6330,"item_index":1,"menu_item_id":52} 
[2026-03-24 18:24:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6330,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6330}} 
[2026-03-24 18:24:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6330,"item_index":2,"menu_item_id":56} 
[2026-03-24 18:24:34] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6327,"new_order_id":6330,"order_number":"AZS-240326-032"} 
[2026-03-24 18:38:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6329,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":30096},{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":30097},{"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":30098},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30099},{"menu_item_id":29,"quantity":3,"price":250,"discount_percent":0,"notes":null,"id":30100},{"menu_item_id":6,"quantity":6,"price":199,"discount_percent":0,"notes":null,"id":30101},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":30102}],"validated_items":[{"id":30096,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":30097,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":30098,"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":30099,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":30100,"menu_item_id":29,"quantity":3,"price":250,"discount_percent":0,"notes":null},{"id":30101,"menu_item_id":6,"quantity":6,"price":199,"discount_percent":0,"notes":null},{"id":30102,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null}]} 
[2026-03-24 18:38:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6329,"items_count":7} 
[2026-03-24 18:38:53] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30096,"menu_item_id":137,"quantity":1},{"id":30097,"menu_item_id":85,"quantity":1},{"id":30098,"menu_item_id":165,"quantity":1},{"id":30099,"menu_item_id":2,"quantity":1},{"id":30100,"menu_item_id":29,"quantity":3},{"id":30101,"menu_item_id":6,"quantity":6},{"id":30102,"menu_item_id":403,"quantity":1}]} 
[2026-03-24 18:38:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6329,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["137|1|","85|1|","165|1|","2|1|","29|3|","6|6|","403|1|"],"new_items_map_keys":["137|1|","85|1|","165|1|","2|1|","29|3|","6|6|","403|1|"]} 
[2026-03-24 18:38:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6329,"order_number":"AZS-240326-018"} 
[2026-03-24 18:38:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6329,"order_number":"AZS-240326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 18:38:53"} 
[2026-03-24 18:40:57] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6329,"order_number":"AZS-240326-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5420,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 18:40:57"} 
[2026-03-24 18:40:57] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6329,"order_number":"AZS-240326-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5420,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 18:40:57"} 
[2026-03-24 18:40:57] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6329,"order_number":"AZS-240326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5420,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 18:40:57"} 
[2026-03-24 18:40:57] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6329,"order_number":"AZS-240326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5420,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 18:40:57"} 
[2026-03-24 18:40:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6329,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":30096},{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":30097},{"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":30098},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30099},{"menu_item_id":29,"quantity":3,"price":250,"discount_percent":0,"notes":null,"id":30100},{"menu_item_id":6,"quantity":6,"price":199,"discount_percent":0,"notes":null,"id":30101},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":30102}],"validated_items":[{"id":30096,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":30097,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":30098,"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":30099,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":30100,"menu_item_id":29,"quantity":3,"price":250,"discount_percent":0,"notes":null},{"id":30101,"menu_item_id":6,"quantity":6,"price":199,"discount_percent":0,"notes":null},{"id":30102,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null}]} 
[2026-03-24 18:40:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6329,"items_count":7} 
[2026-03-24 18:40:57] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30096,"menu_item_id":137,"quantity":1},{"id":30097,"menu_item_id":85,"quantity":1},{"id":30098,"menu_item_id":165,"quantity":1},{"id":30099,"menu_item_id":2,"quantity":1},{"id":30100,"menu_item_id":29,"quantity":3},{"id":30101,"menu_item_id":6,"quantity":6},{"id":30102,"menu_item_id":403,"quantity":1}]} 
[2026-03-24 18:40:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6329,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["137|1|","85|1|","165|1|","2|1|","29|3|","6|6|","403|1|"],"new_items_map_keys":["137|1|","85|1|","165|1|","2|1|","29|3|","6|6|","403|1|"]} 
[2026-03-24 18:40:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6329,"order_number":"AZS-240326-018"} 
[2026-03-24 18:40:57] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6329,"order_number":"AZS-240326-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5420,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 18:40:57","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 18:40:57"} 
[2026-03-24 18:40:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6329,"order_number":"AZS-240326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 18:40:57"} 
[2026-03-24 18:40:57] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6329,"order_number":"AZS-240326-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5420.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 18:40:57","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5420,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5420.00","database_verification_match":true,"timestamp":"2026-03-24 18:40:57"} 
[2026-03-24 18:41:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T06:41:38.305Z","date_to":"2026-03-24T18:41:38.305Z","per_page":"100"} 
[2026-03-24 18:41:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T06:41:38.321Z","date_to":"2026-03-24T18:41:38.321Z","per_page":"100"} 
[2026-03-24 18:41:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":33,"count":33,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":5,"unique_order_numbers":33} 
[2026-03-24 18:41:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":33,"count":33,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":5,"unique_order_numbers":33} 
[2026-03-24 18:41:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T06:41:38.305Z","date_to":"2026-03-24T18:41:38.305Z","per_page":"100"} 
[2026-03-24 18:41:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":33,"count":33,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":5,"unique_order_numbers":33} 
[2026-03-24 18:42:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6331,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":30106},{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":30107},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":30108},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30109},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":30110},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":30111},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30112},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30113}],"validated_items":[{"id":30106,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":30107,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":30108,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":30109,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":30110,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":30111,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":30112,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30113,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-24 18:42:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6331,"items_count":8} 
[2026-03-24 18:42:05] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30106,"menu_item_id":105,"quantity":1},{"id":30107,"menu_item_id":102,"quantity":1},{"id":30108,"menu_item_id":65,"quantity":1},{"id":30109,"menu_item_id":396,"quantity":2},{"id":30110,"menu_item_id":50,"quantity":2},{"id":30111,"menu_item_id":61,"quantity":2},{"id":30112,"menu_item_id":56,"quantity":1},{"id":30113,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 18:42:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6331,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["105|1|","102|1|","65|1|","396|2|","50|2|","61|2|","56|1|","5|1|"],"new_items_map_keys":["105|1|","102|1|","65|1|","396|2|","50|2|","61|2|","56|1|","5|1|"]} 
[2026-03-24 18:42:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6331,"order_number":"AZS-240326-033"} 
[2026-03-24 18:42:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6331,"order_number":"AZS-240326-033","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-24 18:42:05"} 
[2026-03-24 18:43:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T06:43:06.540Z","date_to":"2026-03-24T18:43:06.540Z","per_page":"100"} 
[2026-03-24 18:43:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T06:43:06.528Z","date_to":"2026-03-24T18:43:06.528Z","per_page":"100"} 
[2026-03-24 18:43:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":33,"count":33,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":5,"unique_order_numbers":33} 
[2026-03-24 18:43:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":33,"count":33,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":5,"unique_order_numbers":33} 
[2026-03-24 18:43:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T06:43:06.528Z","date_to":"2026-03-24T18:43:06.528Z","per_page":"100"} 
[2026-03-24 18:43:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":33,"count":33,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":5,"unique_order_numbers":33} 
[2026-03-24 18:43:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6330,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30103},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":30104},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30105},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"id":30103,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30104,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":30105,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-24 18:43:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6330,"items_count":4} 
[2026-03-24 18:43:31] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30103,"menu_item_id":96,"quantity":1},{"id":30104,"menu_item_id":52,"quantity":3},{"id":30105,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 18:43:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6330,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["96|1|","52|3|","56|1|"],"new_items_map_keys":["96|1|","52|3|","56|1|","5|1|"]} 
[2026-03-24 18:43:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6330,"order_number":"AZS-240326-032"} 
[2026-03-24 18:43:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-032","replaced_order_id":6330} 
[2026-03-24 18:43:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6332,"items_count":4,"items":[{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":52,"quantity":3,"price":70.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-03-24 18:43:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6332,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6332}} 
[2026-03-24 18:43:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6332,"item_index":0,"menu_item_id":96} 
[2026-03-24 18:43:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6332,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6332}} 
[2026-03-24 18:43:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6332,"item_index":1,"menu_item_id":52} 
[2026-03-24 18:43:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6332,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6332}} 
[2026-03-24 18:43:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6332,"item_index":2,"menu_item_id":56} 
[2026-03-24 18:43:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6332,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6332}} 
[2026-03-24 18:43:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6332,"item_index":3,"menu_item_id":5} 
[2026-03-24 18:43:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6330,"new_order_id":6332,"order_number":"AZS-240326-032"} 
[2026-03-24 18:43:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6332,"item_index":0,"item_id":30103} 
[2026-03-24 18:43:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6332,"item_index":1,"item_id":30104} 
[2026-03-24 18:43:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6332,"item_index":2,"item_id":30105} 
[2026-03-24 18:43:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6332,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30103},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":30104},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30105},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-24 18:43:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6332,"items_count":4} 
[2026-03-24 18:43:37] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[30114,30115,30116,30117],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 18:43:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6332,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","52|3|","56|1|","5|1|"],"new_items_map_keys":["96|1|","52|3|","56|1|","5|1|"]} 
[2026-03-24 18:43:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6332,"order_number":"AZS-240326-032"} 
[2026-03-24 18:43:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6332,"order_number":"AZS-240326-032","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 18:43:37"} 
[2026-03-24 18:43:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6332,"item_index":0,"item_id":30103} 
[2026-03-24 18:43:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6332,"item_index":1,"item_id":30104} 
[2026-03-24 18:43:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6332,"item_index":2,"item_id":30105} 
[2026-03-24 18:43:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":4,"order_id":6332,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":30103},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":30104},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30105},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-24 18:43:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6332,"items_count":5} 
[2026-03-24 18:43:53] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":4,"items_to_remove":[30114,30115,30116,30117],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-24 18:43:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6332,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["96|1|","52|3|","56|1|","5|1|"],"new_items_map_keys":["96|1|","52|3|","56|1|","5|1|","2|2|"]} 
[2026-03-24 18:43:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6332,"order_number":"AZS-240326-032"} 
[2026-03-24 18:43:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-032","replaced_order_id":6332} 
[2026-03-24 18:43:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6333,"items_count":5,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":52,"quantity":3,"price":"70.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-24 18:43:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6333,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6333}} 
[2026-03-24 18:43:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6333,"item_index":0,"menu_item_id":96} 
[2026-03-24 18:43:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6333,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6333}} 
[2026-03-24 18:43:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6333,"item_index":1,"menu_item_id":52} 
[2026-03-24 18:43:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6333,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6333}} 
[2026-03-24 18:43:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6333,"item_index":2,"menu_item_id":56} 
[2026-03-24 18:43:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6333,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6333}} 
[2026-03-24 18:43:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6333,"item_index":3,"menu_item_id":5} 
[2026-03-24 18:43:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6333,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6333}} 
[2026-03-24 18:43:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6333,"item_index":4,"menu_item_id":2} 
[2026-03-24 18:43:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6332,"new_order_id":6333,"order_number":"AZS-240326-032"} 
[2026-03-24 18:43:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6333,"item_index":0,"item_id":30103} 
[2026-03-24 18:43:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6333,"item_index":1,"item_id":30104} 
[2026-03-24 18:43:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6333,"item_index":2,"item_id":30105} 
[2026-03-24 18:43:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6333,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30103},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":30104},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30105},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-24 18:43:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6333,"items_count":5} 
[2026-03-24 18:43:57] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[30118,30119,30120,30121,30122],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-24 18:43:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6333,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","52|3|","56|1|","5|1|","2|2|"],"new_items_map_keys":["96|1|","52|3|","56|1|","5|1|","2|2|"]} 
[2026-03-24 18:43:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6333,"order_number":"AZS-240326-032"} 
[2026-03-24 18:43:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6333,"order_number":"AZS-240326-032","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 18:43:57"} 
[2026-03-24 18:44:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T06:44:08.935Z","date_to":"2026-03-24T18:44:08.935Z","per_page":"100"} 
[2026-03-24 18:44:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T06:44:08.948Z","date_to":"2026-03-24T18:44:08.948Z","per_page":"100"} 
[2026-03-24 18:44:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":33,"count":33,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":5,"unique_order_numbers":33} 
[2026-03-24 18:44:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":33,"count":33,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":5,"unique_order_numbers":33} 
[2026-03-24 18:44:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T06:44:08.935Z","date_to":"2026-03-24T18:44:08.935Z","per_page":"100"} 
[2026-03-24 18:44:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":33,"count":33,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":5,"unique_order_numbers":33} 
[2026-03-24 18:50:12] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6333,"order_number":"AZS-240326-032","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 18:50:12"} 
[2026-03-24 18:50:12] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6333,"order_number":"AZS-240326-032","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 18:50:12"} 
[2026-03-24 18:50:12] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6333,"order_number":"AZS-240326-032","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 18:50:12"} 
[2026-03-24 18:50:12] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6333,"order_number":"AZS-240326-032","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 18:50:12"} 
[2026-03-24 18:50:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6333,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30118},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":30119},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30120},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30121},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30122}],"validated_items":[{"id":30118,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30119,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":30120,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30121,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30122,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-24 18:50:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6333,"items_count":5} 
[2026-03-24 18:50:12] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30118,"menu_item_id":96,"quantity":1},{"id":30119,"menu_item_id":52,"quantity":3},{"id":30120,"menu_item_id":56,"quantity":1},{"id":30121,"menu_item_id":5,"quantity":1},{"id":30122,"menu_item_id":2,"quantity":2}]} 
[2026-03-24 18:50:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6333,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","52|3|","56|1|","5|1|","2|2|"],"new_items_map_keys":["96|1|","52|3|","56|1|","5|1|","2|2|"]} 
[2026-03-24 18:50:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6333,"order_number":"AZS-240326-032"} 
[2026-03-24 18:50:12] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6333,"order_number":"AZS-240326-032","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 18:50:12","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 18:50:12"} 
[2026-03-24 18:50:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6333,"order_number":"AZS-240326-032","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 18:50:12"} 
[2026-03-24 18:50:12] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6333,"order_number":"AZS-240326-032","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 18:50:12","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2200.00","database_verification_match":true,"timestamp":"2026-03-24 18:50:12"} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6331,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":30106},{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":30107},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":30108},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30109},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":30110},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":30111},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30112},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30113},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":401,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30106,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":30107,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":30108,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":30109,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":30110,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":30111,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":30112,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30113,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":401,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6331,"items_count":10} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30106,"menu_item_id":105,"quantity":1},{"id":30107,"menu_item_id":102,"quantity":1},{"id":30108,"menu_item_id":65,"quantity":1},{"id":30109,"menu_item_id":396,"quantity":2},{"id":30110,"menu_item_id":50,"quantity":2},{"id":30111,"menu_item_id":61,"quantity":2},{"id":30112,"menu_item_id":56,"quantity":1},{"id":30113,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":401,"quantity":1}]} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Item changes check {"order_id":6331,"has_item_changes":true,"old_items_count":8,"new_items_count":10,"old_items_map_keys":["105|1|","102|1|","65|1|","396|2|","50|2|","61|2|","56|1|","5|1|"],"new_items_map_keys":["105|1|","102|1|","65|1|","396|2|","50|2|","61|2|","56|1|","5|1|","2|2|","401|1|"]} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6331,"order_number":"AZS-240326-033"} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-033","replaced_order_id":6331} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6335,"items_count":10,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"},{"menu_item_id":401,"quantity":1,"price":"199.00"}]} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6335,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6335}} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6335,"item_index":0,"menu_item_id":105} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6335,"item_index":1,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6335}} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6335,"item_index":1,"menu_item_id":102} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6335,"item_index":2,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6335}} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6335,"item_index":2,"menu_item_id":65} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6335,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6335}} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6335,"item_index":3,"menu_item_id":396} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6335,"item_index":4,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6335}} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6335,"item_index":4,"menu_item_id":50} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6335,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6335}} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6335,"item_index":5,"menu_item_id":61} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6335,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6335}} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6335,"item_index":6,"menu_item_id":56} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6335,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6335}} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6335,"item_index":7,"menu_item_id":5} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6335,"item_index":8,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6335}} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6335,"item_index":8,"menu_item_id":2} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6335,"item_index":9,"item_data":{"menu_item_id":401,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"FRESH LIME","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6335}} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6335,"item_index":9,"menu_item_id":401} 
[2026-03-24 19:20:11] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6331,"new_order_id":6335,"order_number":"AZS-240326-033"} 
[2026-03-24 19:23:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6335,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30124},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30125},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":30126},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30127},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30128},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30129},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30130},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30131},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30132},{"menu_item_id":401,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30133}],"validated_items":[{"id":30124,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":30125,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30126,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":30127,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30128,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30129,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30130,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30131,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30132,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":30133,"menu_item_id":401,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-24 19:23:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6335,"items_count":10} 
[2026-03-24 19:23:57] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30124,"menu_item_id":105,"quantity":1},{"id":30125,"menu_item_id":102,"quantity":1},{"id":30126,"menu_item_id":65,"quantity":1},{"id":30127,"menu_item_id":396,"quantity":2},{"id":30128,"menu_item_id":50,"quantity":2},{"id":30129,"menu_item_id":61,"quantity":2},{"id":30130,"menu_item_id":56,"quantity":1},{"id":30131,"menu_item_id":5,"quantity":1},{"id":30132,"menu_item_id":2,"quantity":2},{"id":30133,"menu_item_id":401,"quantity":1}]} 
[2026-03-24 19:23:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6335,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["105|1|","102|1|","65|1|","396|2|","50|2|","61|2|","56|1|","5|1|","2|2|","401|1|"],"new_items_map_keys":["105|1|","102|1|","65|1|","396|2|","50|2|","61|2|","56|1|","5|1|","2|2|","401|1|"]} 
[2026-03-24 19:23:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6335,"order_number":"AZS-240326-033"} 
[2026-03-24 19:23:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6335,"order_number":"AZS-240326-033","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 19:23:57"} 
[2026-03-24 19:27:14] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6335,"order_number":"AZS-240326-033","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 19:27:14"} 
[2026-03-24 19:27:14] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6335,"order_number":"AZS-240326-033","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 19:27:14"} 
[2026-03-24 19:27:14] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6335,"order_number":"AZS-240326-033","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 19:27:14"} 
[2026-03-24 19:27:14] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6335,"order_number":"AZS-240326-033","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 19:27:14"} 
[2026-03-24 19:27:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6335,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30124},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30125},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":30126},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30127},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30128},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30129},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30130},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30131},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30132},{"menu_item_id":401,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30133}],"validated_items":[{"id":30124,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":30125,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30126,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":30127,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30128,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30129,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30130,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30131,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30132,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":30133,"menu_item_id":401,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-24 19:27:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6335,"items_count":10} 
[2026-03-24 19:27:14] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30124,"menu_item_id":105,"quantity":1},{"id":30125,"menu_item_id":102,"quantity":1},{"id":30126,"menu_item_id":65,"quantity":1},{"id":30127,"menu_item_id":396,"quantity":2},{"id":30128,"menu_item_id":50,"quantity":2},{"id":30129,"menu_item_id":61,"quantity":2},{"id":30130,"menu_item_id":56,"quantity":1},{"id":30131,"menu_item_id":5,"quantity":1},{"id":30132,"menu_item_id":2,"quantity":2},{"id":30133,"menu_item_id":401,"quantity":1}]} 
[2026-03-24 19:27:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6335,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["105|1|","102|1|","65|1|","396|2|","50|2|","61|2|","56|1|","5|1|","2|2|","401|1|"],"new_items_map_keys":["105|1|","102|1|","65|1|","396|2|","50|2|","61|2|","56|1|","5|1|","2|2|","401|1|"]} 
[2026-03-24 19:27:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6335,"order_number":"AZS-240326-033"} 
[2026-03-24 19:27:14] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6335,"order_number":"AZS-240326-033","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":10000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 19:27:14","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 19:27:14"} 
[2026-03-24 19:27:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6335,"order_number":"AZS-240326-033","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 19:27:14"} 
[2026-03-24 19:27:14] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6335,"order_number":"AZS-240326-033","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"10000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 19:27:14","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"10000.00","database_verification_match":true,"timestamp":"2026-03-24 19:27:14"} 
[2026-03-24 19:30:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T07:30:18.398Z","date_to":"2026-03-24T19:30:18.398Z","per_page":"100"} 
[2026-03-24 19:30:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T07:30:18.377Z","date_to":"2026-03-24T19:30:18.377Z","per_page":"100"} 
[2026-03-24 19:30:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":5,"unique_order_numbers":35} 
[2026-03-24 19:30:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":5,"unique_order_numbers":35} 
[2026-03-24 19:30:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T07:30:18.377Z","date_to":"2026-03-24T19:30:18.377Z","per_page":"100"} 
[2026-03-24 19:30:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":5,"unique_order_numbers":35} 
[2026-03-24 19:30:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T19:30:41.403Z","date_to":"2026-03-24T19:30:41.403Z","per_page":"100"} 
[2026-03-24 19:30:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001","AZS-230326-034","AZS-230326-033","AZS-230326-032","AZS-230326-031"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":34,"unpaid_count":5,"unique_order_numbers":39} 
[2026-03-24 19:31:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T07:31:19.459Z","date_to":"2026-03-24T19:31:19.459Z","per_page":"100"} 
[2026-03-24 19:31:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":5,"unique_order_numbers":35} 
[2026-03-24 19:31:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T07:31:19.459Z","date_to":"2026-03-24T19:31:19.459Z","per_page":"1000"} 
[2026-03-24 19:31:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":1000,"order_branch_ids":[1],"order_numbers":["AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":5,"unique_order_numbers":35} 
[2026-03-24 19:31:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T19:31:36.674Z","date_to":"2026-03-24T19:31:36.674Z","per_page":"1000"} 
[2026-03-24 19:31:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":1000,"order_branch_ids":[1],"order_numbers":["AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001","AZS-230326-034","AZS-230326-033","AZS-230326-032","AZS-230326-031"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":34,"unpaid_count":5,"unique_order_numbers":39} 
[2026-03-24 19:31:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-23T19:31:56.146Z","date_to":"2026-03-24T19:31:56.146Z","per_page":"1000"} 
[2026-03-24 19:31:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":39,"count":39,"current_page":1,"last_page":1,"per_page":1000,"order_branch_ids":[1],"order_numbers":["AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001","AZS-230326-034","AZS-230326-033","AZS-230326-032","AZS-230326-031"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":34,"unpaid_count":5,"unique_order_numbers":39} 
[2026-03-24 19:33:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T07:33:16.327Z","date_to":"2026-03-24T19:33:16.327Z","per_page":"100"} 
[2026-03-24 19:33:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T07:33:16.347Z","date_to":"2026-03-24T19:33:16.347Z","per_page":"100"} 
[2026-03-24 19:33:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":5,"unique_order_numbers":35} 
[2026-03-24 19:33:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":5,"unique_order_numbers":35} 
[2026-03-24 19:33:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T07:33:16.327Z","date_to":"2026-03-24T19:33:16.327Z","per_page":"100"} 
[2026-03-24 19:33:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":5,"unique_order_numbers":35} 
[2026-03-24 19:33:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T07:33:49.813Z","date_to":"2026-03-24T19:33:49.813Z","per_page":"100"} 
[2026-03-24 19:33:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":5,"unique_order_numbers":35} 
[2026-03-24 19:33:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T07:33:49.798Z","date_to":"2026-03-24T19:33:49.798Z","per_page":"100"} 
[2026-03-24 19:33:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":5,"unique_order_numbers":35} 
[2026-03-24 19:33:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T07:33:49.798Z","date_to":"2026-03-24T19:33:49.798Z","per_page":"100"} 
[2026-03-24 19:33:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":5,"unique_order_numbers":35} 
[2026-03-24 19:46:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T07:46:30.244Z","date_to":"2026-03-24T19:46:30.244Z","per_page":"100"} 
[2026-03-24 19:46:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T07:46:30.227Z","date_to":"2026-03-24T19:46:30.227Z","per_page":"100"} 
[2026-03-24 19:46:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":5,"unique_order_numbers":35} 
[2026-03-24 19:46:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":5,"unique_order_numbers":35} 
[2026-03-24 19:46:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T07:46:30.227Z","date_to":"2026-03-24T19:46:30.227Z","per_page":"100"} 
[2026-03-24 19:46:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":35,"count":35,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":5,"unique_order_numbers":35} 
[2026-03-24 19:53:53] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-24 19:54:40] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-24 20:02:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6336,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30134},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30135},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30136},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30137},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30138}],"validated_items":[{"id":30134,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30135,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30136,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30137,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30138,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-24 20:02:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6336,"items_count":5} 
[2026-03-24 20:02:39] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30134,"menu_item_id":96,"quantity":1},{"id":30135,"menu_item_id":396,"quantity":2},{"id":30136,"menu_item_id":61,"quantity":1},{"id":30137,"menu_item_id":56,"quantity":1},{"id":30138,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 20:02:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6336,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["96|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-24 20:02:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6336,"order_number":"AZS-240326-035"} 
[2026-03-24 20:02:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6336,"order_number":"AZS-240326-035","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 20:02:39"} 
[2026-03-24 20:04:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6339,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null,"id":30141},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30141,"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-24 20:04:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6339,"items_count":2} 
[2026-03-24 20:04:53] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30141,"menu_item_id":13,"quantity":2},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-24 20:04:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6339,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|2|","4|1|"]} 
[2026-03-24 20:04:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6339,"order_number":"AZS-240326-038"} 
[2026-03-24 20:04:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-038","replaced_order_id":6339} 
[2026-03-24 20:04:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6340,"items_count":2,"items":[{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-03-24 20:04:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6340,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6340}} 
[2026-03-24 20:04:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6340,"item_index":0,"menu_item_id":13} 
[2026-03-24 20:04:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6340,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6340}} 
[2026-03-24 20:04:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6340,"item_index":1,"menu_item_id":4} 
[2026-03-24 20:04:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6339,"new_order_id":6340,"order_number":"AZS-240326-038"} 
[2026-03-24 20:06:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6336,"order_number":"AZS-240326-035","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 20:06:27"} 
[2026-03-24 20:06:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6336,"order_number":"AZS-240326-035","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 20:06:27"} 
[2026-03-24 20:06:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6336,"order_number":"AZS-240326-035","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 20:06:27"} 
[2026-03-24 20:06:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6336,"order_number":"AZS-240326-035","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 20:06:27"} 
[2026-03-24 20:06:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6336,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30134},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30135},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30136},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30137},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30138}],"validated_items":[{"id":30134,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30135,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30136,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30137,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30138,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-24 20:06:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6336,"items_count":5} 
[2026-03-24 20:06:27] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30134,"menu_item_id":96,"quantity":1},{"id":30135,"menu_item_id":396,"quantity":2},{"id":30136,"menu_item_id":61,"quantity":1},{"id":30137,"menu_item_id":56,"quantity":1},{"id":30138,"menu_item_id":5,"quantity":1}]} 
[2026-03-24 20:06:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6336,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["96|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-24 20:06:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6336,"order_number":"AZS-240326-035"} 
[2026-03-24 20:06:27] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6336,"order_number":"AZS-240326-035","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 20:06:27","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 20:06:27"} 
[2026-03-24 20:06:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6336,"order_number":"AZS-240326-035","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 20:06:27"} 
[2026-03-24 20:06:27] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6336,"order_number":"AZS-240326-035","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 20:06:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2100.00","database_verification_match":true,"timestamp":"2026-03-24 20:06:27"} 
[2026-03-24 20:10:16] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-24 20:20:43] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6342,"order_number":"AZS-240326-040","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":250,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 20:20:43"} 
[2026-03-24 20:20:43] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6342,"order_number":"AZS-240326-040","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":250,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 20:20:43"} 
[2026-03-24 20:20:43] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6342,"order_number":"AZS-240326-040","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":250,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 20:20:43"} 
[2026-03-24 20:20:43] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6342,"order_number":"AZS-240326-040","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":250,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 20:20:43"} 
[2026-03-24 20:20:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6342,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":16,"price":15,"discount_percent":0,"notes":null,"id":30145}],"validated_items":[{"id":30145,"menu_item_id":286,"quantity":16,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-24 20:20:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6342,"items_count":1} 
[2026-03-24 20:20:43] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30145,"menu_item_id":286,"quantity":16}]} 
[2026-03-24 20:20:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6342,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["286|16|"],"new_items_map_keys":["286|16|"]} 
[2026-03-24 20:20:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6342,"order_number":"AZS-240326-040"} 
[2026-03-24 20:20:43] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6342,"order_number":"AZS-240326-040","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":250,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 20:20:43","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 20:20:43"} 
[2026-03-24 20:20:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6342,"order_number":"AZS-240326-040","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 20:20:43"} 
[2026-03-24 20:20:43] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6342,"order_number":"AZS-240326-040","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"250.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 20:20:43","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":250,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"250.00","database_verification_match":true,"timestamp":"2026-03-24 20:20:43"} 
[2026-03-24 20:24:31] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6338,"order_number":"AZS-240326-037","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 20:24:31"} 
[2026-03-24 20:24:31] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6338,"order_number":"AZS-240326-037","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 20:24:31"} 
[2026-03-24 20:24:31] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6338,"order_number":"AZS-240326-037","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 20:24:31"} 
[2026-03-24 20:24:31] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6338,"order_number":"AZS-240326-037","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 20:24:31"} 
[2026-03-24 20:24:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6338,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":30140}],"validated_items":[{"id":30140,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-24 20:24:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6338,"items_count":1} 
[2026-03-24 20:24:31] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30140,"menu_item_id":6,"quantity":3}]} 
[2026-03-24 20:24:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6338,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|3|"],"new_items_map_keys":["6|3|"]} 
[2026-03-24 20:24:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6338,"order_number":"AZS-240326-037"} 
[2026-03-24 20:24:31] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6338,"order_number":"AZS-240326-037","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 20:24:31","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 20:24:31"} 
[2026-03-24 20:24:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6338,"order_number":"AZS-240326-037","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 20:24:31"} 
[2026-03-24 20:24:31] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6338,"order_number":"AZS-240326-037","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 20:24:31","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-24 20:24:31"} 
[2026-03-24 20:25:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6293,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null,"id":29970},{"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null,"id":29971},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":29972},{"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":29970,"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null},{"id":29971,"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null},{"id":29972,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-24 20:25:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6293,"items_count":8} 
[2026-03-24 20:25:24] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29970,"menu_item_id":13,"quantity":3},{"id":29971,"menu_item_id":9,"quantity":1},{"id":29972,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":67,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-24 20:25:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6293,"has_item_changes":true,"old_items_count":3,"new_items_count":8,"old_items_map_keys":["13|3|","9|1|","5|1|"],"new_items_map_keys":["13|3|","9|1|","5|1|","67|1|","396|1|","61|1|","56|1|","4|1|"]} 
[2026-03-24 20:25:24] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6293,"order_number":"AZS-240326-012"} 
[2026-03-24 20:25:24] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-012","replaced_order_id":6293} 
[2026-03-24 20:25:24] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6344,"items_count":8,"items":[{"menu_item_id":13,"quantity":3,"price":"249.00"},{"menu_item_id":9,"quantity":1,"price":"229.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":67,"quantity":1,"price":"599.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-03-24 20:25:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6344,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6344}} 
[2026-03-24 20:25:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6344,"item_index":0,"menu_item_id":13} 
[2026-03-24 20:25:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6344,"item_index":1,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":1,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":229.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6344}} 
[2026-03-24 20:25:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6344,"item_index":1,"menu_item_id":9} 
[2026-03-24 20:25:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6344,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6344}} 
[2026-03-24 20:25:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6344,"item_index":2,"menu_item_id":5} 
[2026-03-24 20:25:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6344,"item_index":3,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6344}} 
[2026-03-24 20:25:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6344,"item_index":3,"menu_item_id":67} 
[2026-03-24 20:25:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6344,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6344}} 
[2026-03-24 20:25:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6344,"item_index":4,"menu_item_id":396} 
[2026-03-24 20:25:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6344,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6344}} 
[2026-03-24 20:25:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6344,"item_index":5,"menu_item_id":61} 
[2026-03-24 20:25:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6344,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6344}} 
[2026-03-24 20:25:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6344,"item_index":6,"menu_item_id":56} 
[2026-03-24 20:25:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6344,"item_index":7,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6344}} 
[2026-03-24 20:25:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6344,"item_index":7,"menu_item_id":4} 
[2026-03-24 20:25:24] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6293,"new_order_id":6344,"order_number":"AZS-240326-012"} 
[2026-03-24 20:26:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6341,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30144}],"validated_items":[{"id":30144,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-24 20:26:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6341,"items_count":1} 
[2026-03-24 20:26:31] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30144,"menu_item_id":6,"quantity":2}]} 
[2026-03-24 20:26:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6341,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-24 20:26:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6341,"order_number":"AZS-240326-039"} 
[2026-03-24 20:26:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6341,"order_number":"AZS-240326-039","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 20:26:31"} 
[2026-03-24 20:27:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6337,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":30139}],"validated_items":[{"id":30139,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-24 20:27:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6337,"items_count":1} 
[2026-03-24 20:27:00] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30139,"menu_item_id":6,"quantity":4}]} 
[2026-03-24 20:27:00] local.INFO: PosOrderController::update - Item changes check {"order_id":6337,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|4|"],"new_items_map_keys":["6|4|"]} 
[2026-03-24 20:27:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6337,"order_number":"AZS-240326-036"} 
[2026-03-24 20:27:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6337,"order_number":"AZS-240326-036","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 20:27:00"} 
[2026-03-24 20:30:35] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T08:30:33.989Z","date_to":"2026-03-24T20:30:33.989Z","per_page":"100"} 
[2026-03-24 20:30:35] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-042","AZS-240326-041","AZS-240326-040","AZS-240326-039","AZS-240326-038","AZS-240326-037","AZS-240326-036","AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":33,"unpaid_count":9,"unique_order_numbers":42} 
[2026-03-24 20:30:35] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T08:30:33.995Z","date_to":"2026-03-24T20:30:33.995Z","per_page":"100"} 
[2026-03-24 20:30:35] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-042","AZS-240326-041","AZS-240326-040","AZS-240326-039","AZS-240326-038","AZS-240326-037","AZS-240326-036","AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":33,"unpaid_count":9,"unique_order_numbers":42} 
[2026-03-24 20:30:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T08:30:33.989Z","date_to":"2026-03-24T20:30:33.989Z","per_page":"100"} 
[2026-03-24 20:30:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":42,"count":42,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-042","AZS-240326-041","AZS-240326-040","AZS-240326-039","AZS-240326-038","AZS-240326-037","AZS-240326-036","AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","pending","paid","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":33,"unpaid_count":9,"unique_order_numbers":42} 
[2026-03-24 20:35:19] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6287,"order_number":"AZS-240326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2900,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 20:35:19"} 
[2026-03-24 20:35:19] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6287,"order_number":"AZS-240326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2900,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 20:35:19"} 
[2026-03-24 20:35:19] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6287,"order_number":"AZS-240326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2900,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 20:35:19"} 
[2026-03-24 20:35:19] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6287,"order_number":"AZS-240326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2900,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 20:35:19"} 
[2026-03-24 20:35:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6287,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":29953}],"validated_items":[{"id":29953,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null}]} 
[2026-03-24 20:35:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6287,"items_count":1} 
[2026-03-24 20:35:19] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":29953,"menu_item_id":385,"quantity":1}]} 
[2026-03-24 20:35:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6287,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-03-24 20:35:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6287,"order_number":"AZS-240326-007"} 
[2026-03-24 20:35:19] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6287,"order_number":"AZS-240326-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2900,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 20:35:19","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 20:35:19"} 
[2026-03-24 20:35:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6287,"order_number":"AZS-240326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 20:35:19"} 
[2026-03-24 20:35:19] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6287,"order_number":"AZS-240326-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2900.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 20:35:19","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2900,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2900.00","database_verification_match":true,"timestamp":"2026-03-24 20:35:19"} 
[2026-03-24 20:36:28] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6341,"order_number":"AZS-240326-039","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 20:36:28"} 
[2026-03-24 20:36:28] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6341,"order_number":"AZS-240326-039","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 20:36:28"} 
[2026-03-24 20:36:28] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6341,"order_number":"AZS-240326-039","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 20:36:28"} 
[2026-03-24 20:36:28] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6341,"order_number":"AZS-240326-039","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 20:36:28"} 
[2026-03-24 20:36:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6341,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30144}],"validated_items":[{"id":30144,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-24 20:36:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6341,"items_count":1} 
[2026-03-24 20:36:28] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30144,"menu_item_id":6,"quantity":2}]} 
[2026-03-24 20:36:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6341,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-24 20:36:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6341,"order_number":"AZS-240326-039"} 
[2026-03-24 20:36:28] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6341,"order_number":"AZS-240326-039","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 20:36:28","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 20:36:28"} 
[2026-03-24 20:36:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6341,"order_number":"AZS-240326-039","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 20:36:28"} 
[2026-03-24 20:36:28] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6341,"order_number":"AZS-240326-039","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 20:36:28","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-24 20:36:28"} 
[2026-03-24 20:38:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6340,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":30142},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":30143}],"validated_items":[{"id":30142,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":30143,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-24 20:38:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6340,"items_count":2} 
[2026-03-24 20:38:45] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30142,"menu_item_id":13,"quantity":2},{"id":30143,"menu_item_id":4,"quantity":1}]} 
[2026-03-24 20:38:45] local.INFO: PosOrderController::update - Item changes check {"order_id":6340,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|2|","4|1|"],"new_items_map_keys":["13|2|","4|1|"]} 
[2026-03-24 20:38:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6340,"order_number":"AZS-240326-038"} 
[2026-03-24 20:38:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6340,"order_number":"AZS-240326-038","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 20:38:45"} 
[2026-03-24 20:40:39] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6310,"order_number":"AZS-240326-023","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 20:40:39"} 
[2026-03-24 20:40:39] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6310,"order_number":"AZS-240326-023","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 20:40:39"} 
[2026-03-24 20:40:39] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6310,"order_number":"AZS-240326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 20:40:39"} 
[2026-03-24 20:40:39] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6310,"order_number":"AZS-240326-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 20:40:39"} 
[2026-03-24 20:40:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6310,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":30037},{"menu_item_id":27,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":30038}],"validated_items":[{"id":30037,"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":30038,"menu_item_id":27,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-24 20:40:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6310,"items_count":2} 
[2026-03-24 20:40:39] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30037,"menu_item_id":23,"quantity":1},{"id":30038,"menu_item_id":27,"quantity":1}]} 
[2026-03-24 20:40:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6310,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["23|1|","27|1|"],"new_items_map_keys":["23|1|","27|1|"]} 
[2026-03-24 20:40:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6310,"order_number":"AZS-240326-023"} 
[2026-03-24 20:40:39] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6310,"order_number":"AZS-240326-023","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 20:40:39","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 20:40:39"} 
[2026-03-24 20:40:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6310,"order_number":"AZS-240326-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 20:40:39"} 
[2026-03-24 20:40:39] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6310,"order_number":"AZS-240326-023","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 20:40:39","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-24 20:40:39"} 
[2026-03-24 20:41:00] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6343,"order_number":"AZS-240326-041","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2899,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 20:41:00"} 
[2026-03-24 20:41:00] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6343,"order_number":"AZS-240326-041","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2899,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 20:41:00"} 
[2026-03-24 20:41:00] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6343,"order_number":"AZS-240326-041","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2899,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 20:41:00"} 
[2026-03-24 20:41:00] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6343,"order_number":"AZS-240326-041","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2899,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 20:41:00"} 
[2026-03-24 20:41:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6343,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":30146}],"validated_items":[{"id":30146,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null}]} 
[2026-03-24 20:41:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6343,"items_count":1} 
[2026-03-24 20:41:00] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30146,"menu_item_id":385,"quantity":1}]} 
[2026-03-24 20:41:00] local.INFO: PosOrderController::update - Item changes check {"order_id":6343,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-03-24 20:41:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6343,"order_number":"AZS-240326-041"} 
[2026-03-24 20:41:00] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6343,"order_number":"AZS-240326-041","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2899,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 20:41:00","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 20:41:00"} 
[2026-03-24 20:41:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6343,"order_number":"AZS-240326-041","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 20:41:00"} 
[2026-03-24 20:41:00] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6343,"order_number":"AZS-240326-041","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2899.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 20:41:00","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2899,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2899.00","database_verification_match":true,"timestamp":"2026-03-24 20:41:00"} 
[2026-03-24 20:41:57] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6344,"order_number":"AZS-240326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2332,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 20:41:57"} 
[2026-03-24 20:41:57] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6344,"order_number":"AZS-240326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2332,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 20:41:57"} 
[2026-03-24 20:41:57] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6344,"order_number":"AZS-240326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2332,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 20:41:57"} 
[2026-03-24 20:41:57] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6344,"order_number":"AZS-240326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2332,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 20:41:57"} 
[2026-03-24 20:41:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6344,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":30147},{"menu_item_id":9,"quantity":1,"price":229,"discount_percent":0,"notes":null,"id":30148},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30149},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":30150},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":30151},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30152},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30153},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":30154}],"validated_items":[{"id":30147,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null},{"id":30148,"menu_item_id":9,"quantity":1,"price":229,"discount_percent":0,"notes":null},{"id":30149,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30150,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":30151,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":30152,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30153,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30154,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-24 20:41:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6344,"items_count":8} 
[2026-03-24 20:41:57] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30147,"menu_item_id":13,"quantity":3},{"id":30148,"menu_item_id":9,"quantity":1},{"id":30149,"menu_item_id":5,"quantity":1},{"id":30150,"menu_item_id":67,"quantity":1},{"id":30151,"menu_item_id":396,"quantity":1},{"id":30152,"menu_item_id":61,"quantity":1},{"id":30153,"menu_item_id":56,"quantity":1},{"id":30154,"menu_item_id":4,"quantity":1}]} 
[2026-03-24 20:41:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6344,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["13|3|","9|1|","5|1|","67|1|","396|1|","61|1|","56|1|","4|1|"],"new_items_map_keys":["13|3|","9|1|","5|1|","67|1|","396|1|","61|1|","56|1|","4|1|"]} 
[2026-03-24 20:41:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6344,"order_number":"AZS-240326-012"} 
[2026-03-24 20:41:57] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6344,"order_number":"AZS-240326-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2332,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 20:41:57","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 20:41:57"} 
[2026-03-24 20:41:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6344,"order_number":"AZS-240326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 20:41:57"} 
[2026-03-24 20:41:57] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6344,"order_number":"AZS-240326-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2332.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 20:41:57","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2332,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2332.00","database_verification_match":true,"timestamp":"2026-03-24 20:41:57"} 
[2026-03-24 21:11:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6337,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":30139}],"validated_items":[{"id":30139,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-24 21:11:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6337,"items_count":1} 
[2026-03-24 21:11:35] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30139,"menu_item_id":6,"quantity":4}]} 
[2026-03-24 21:11:35] local.INFO: PosOrderController::update - Item changes check {"order_id":6337,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|4|"],"new_items_map_keys":["6|4|"]} 
[2026-03-24 21:11:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6337,"order_number":"AZS-240326-036"} 
[2026-03-24 21:11:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6337,"order_number":"AZS-240326-036","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 21:11:35"} 
[2026-03-24 21:12:04] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6337,"order_number":"AZS-240326-036","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 21:12:04"} 
[2026-03-24 21:12:04] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6337,"order_number":"AZS-240326-036","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 21:12:04"} 
[2026-03-24 21:12:04] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6337,"order_number":"AZS-240326-036","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 21:12:04"} 
[2026-03-24 21:12:04] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6337,"order_number":"AZS-240326-036","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 21:12:04"} 
[2026-03-24 21:12:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6337,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":30139}],"validated_items":[{"id":30139,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-24 21:12:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6337,"items_count":1} 
[2026-03-24 21:12:04] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30139,"menu_item_id":6,"quantity":3}]} 
[2026-03-24 21:12:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6337,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|4|"],"new_items_map_keys":["6|3|"]} 
[2026-03-24 21:12:04] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6337,"order_number":"AZS-240326-036","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":1000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-24 21:12:04","original_payment_amount":"0.00","grand_total":627.0,"timestamp":"2026-03-24 21:12:04"} 
[2026-03-24 21:12:04] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6337,"order_number":"AZS-240326-036"} 
[2026-03-24 21:12:04] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-036","replaced_order_id":6337} 
[2026-03-24 21:12:04] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6337,"new_order_id":6346,"order_number":"AZS-240326-036","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"1000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-24 21:12:04","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-24 21:12:04"} 
[2026-03-24 21:12:04] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6346,"items_count":1,"items":[{"menu_item_id":6,"quantity":3,"price":199.0}]} 
[2026-03-24 21:12:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6346,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":3,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6346}} 
[2026-03-24 21:12:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6346,"item_index":0,"menu_item_id":6} 
[2026-03-24 21:12:04] local.ERROR: Error tracking recipe usage for order 6346: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6346, 6, 177, 1, 999, 0.00, Order #AZS-240326-036 - 3x Karak Tea, 2026-03-24 21:12:04, 2026-03-24 21:12:04))  
[2026-03-24 21:12:04] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6337,"new_order_id":6346,"order_number":"AZS-240326-036"} 
[2026-03-24 21:12:05] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6337,"new_order_id":6346,"order_number":"AZS-240326-036","route":"api/orders/6337"} 
[2026-03-24 21:12:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6340,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":30142},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":30143}],"validated_items":[{"id":30142,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":30143,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-24 21:12:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6340,"items_count":2} 
[2026-03-24 21:12:24] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30142,"menu_item_id":13,"quantity":2},{"id":30143,"menu_item_id":4,"quantity":1}]} 
[2026-03-24 21:12:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6340,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|2|","4|1|"],"new_items_map_keys":["13|2|","4|1|"]} 
[2026-03-24 21:12:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6340,"order_number":"AZS-240326-038"} 
[2026-03-24 21:12:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6340,"order_number":"AZS-240326-038","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 21:12:24"} 
[2026-03-24 21:12:48] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6340,"order_number":"AZS-240326-038","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 21:12:48"} 
[2026-03-24 21:12:48] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6340,"order_number":"AZS-240326-038","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 21:12:48"} 
[2026-03-24 21:12:48] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6340,"order_number":"AZS-240326-038","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 21:12:48"} 
[2026-03-24 21:12:48] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6340,"order_number":"AZS-240326-038","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 21:12:48"} 
[2026-03-24 21:12:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6340,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":30142},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":30143}],"validated_items":[{"id":30142,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":30143,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-24 21:12:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6340,"items_count":2} 
[2026-03-24 21:12:48] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30142,"menu_item_id":13,"quantity":1},{"id":30143,"menu_item_id":4,"quantity":1}]} 
[2026-03-24 21:12:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6340,"has_item_changes":true,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|2|","4|1|"],"new_items_map_keys":["13|1|","4|1|"]} 
[2026-03-24 21:12:48] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6340,"order_number":"AZS-240326-038","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":500,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-24 21:12:48","original_payment_amount":"0.00","grand_total":356.0,"timestamp":"2026-03-24 21:12:48"} 
[2026-03-24 21:12:48] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6340,"order_number":"AZS-240326-038"} 
[2026-03-24 21:12:48] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-038","replaced_order_id":6340} 
[2026-03-24 21:12:48] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6340,"new_order_id":6347,"order_number":"AZS-240326-038","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"500.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-24 21:12:48","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-24 21:12:48"} 
[2026-03-24 21:12:48] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6347,"items_count":2,"items":[{"menu_item_id":13,"quantity":1,"price":249.0},{"menu_item_id":4,"quantity":1,"price":90.0}]} 
[2026-03-24 21:12:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6347,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6347}} 
[2026-03-24 21:12:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6347,"item_index":0,"menu_item_id":13} 
[2026-03-24 21:12:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6347,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":90.0,"discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6347}} 
[2026-03-24 21:12:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6347,"item_index":1,"menu_item_id":4} 
[2026-03-24 21:12:48] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6340,"new_order_id":6347,"order_number":"AZS-240326-038"} 
[2026-03-24 21:12:48] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6340,"new_order_id":6347,"order_number":"AZS-240326-038","route":"api/orders/6340"} 
[2026-03-24 21:14:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6345,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":49,"quantity":3,"discount_percent":0,"notes":null,"id":30155},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":30156},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30157},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30158},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30159},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30155,"menu_item_id":49,"quantity":3,"discount_percent":0,"notes":null},{"id":30156,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":30157,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30158,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30159,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-24 21:14:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6345,"items_count":6} 
[2026-03-24 21:14:23] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30155,"menu_item_id":49,"quantity":3},{"id":30156,"menu_item_id":105,"quantity":1},{"id":30157,"menu_item_id":61,"quantity":1},{"id":30158,"menu_item_id":56,"quantity":1},{"id":30159,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-24 21:14:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6345,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["49|3|","105|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["49|3|","105|1|","61|1|","56|1|","5|1|","2|1|"]} 
[2026-03-24 21:14:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6345,"order_number":"AZS-240326-042"} 
[2026-03-24 21:14:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-042","replaced_order_id":6345} 
[2026-03-24 21:14:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6349,"items_count":6,"items":[{"menu_item_id":49,"quantity":3,"price":"70.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-24 21:14:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6349,"item_index":0,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6349}} 
[2026-03-24 21:14:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6349,"item_index":0,"menu_item_id":49} 
[2026-03-24 21:14:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6349,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6349}} 
[2026-03-24 21:14:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6349,"item_index":1,"menu_item_id":105} 
[2026-03-24 21:14:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6349,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6349}} 
[2026-03-24 21:14:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6349,"item_index":2,"menu_item_id":61} 
[2026-03-24 21:14:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6349,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6349}} 
[2026-03-24 21:14:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6349,"item_index":3,"menu_item_id":56} 
[2026-03-24 21:14:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6349,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6349}} 
[2026-03-24 21:14:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6349,"item_index":4,"menu_item_id":5} 
[2026-03-24 21:14:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6349,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6349}} 
[2026-03-24 21:14:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6349,"item_index":5,"menu_item_id":2} 
[2026-03-24 21:14:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6345,"new_order_id":6349,"order_number":"AZS-240326-042"} 
[2026-03-24 21:21:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6334,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":24,"quantity":1,"discount_percent":0,"notes":null,"id":30123}],"validated_items":[{"id":30123,"menu_item_id":24,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-24 21:21:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6334,"items_count":1} 
[2026-03-24 21:21:32] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30123,"menu_item_id":24,"quantity":1}]} 
[2026-03-24 21:21:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6334,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["24|1|"],"new_items_map_keys":["24|1|"]} 
[2026-03-24 21:21:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6334,"order_number":"AZS-240326-034"} 
[2026-03-24 21:21:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6334,"order_number":"AZS-240326-034","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-03-24 21:21:32"} 
[2026-03-24 21:21:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6349,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":30164},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30165},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30166},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30167},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30168},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30169}],"validated_items":[{"id":30164,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":30165,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":30166,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30167,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30168,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30169,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-24 21:21:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6349,"items_count":6} 
[2026-03-24 21:21:57] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30164,"menu_item_id":49,"quantity":3},{"id":30165,"menu_item_id":105,"quantity":1},{"id":30166,"menu_item_id":61,"quantity":1},{"id":30167,"menu_item_id":56,"quantity":1},{"id":30168,"menu_item_id":5,"quantity":1},{"id":30169,"menu_item_id":2,"quantity":1}]} 
[2026-03-24 21:21:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6349,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["49|3|","105|1|","61|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["49|3|","105|1|","61|1|","56|1|","5|1|","2|1|"]} 
[2026-03-24 21:21:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6349,"order_number":"AZS-240326-042"} 
[2026-03-24 21:21:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6349,"order_number":"AZS-240326-042","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 21:21:57"} 
[2026-03-24 21:25:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6349,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":30164},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30165},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30166},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30168},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30169}],"validated_items":[{"id":30164,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":30165,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":30166,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30168,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30169,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-24 21:25:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6349,"items_count":5} 
[2026-03-24 21:25:17] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[30167],"items":[{"id":30164,"menu_item_id":49,"quantity":3},{"id":30165,"menu_item_id":105,"quantity":1},{"id":30166,"menu_item_id":61,"quantity":1},{"id":30168,"menu_item_id":5,"quantity":1},{"id":30169,"menu_item_id":2,"quantity":1}]} 
[2026-03-24 21:25:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6349,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["49|3|","105|1|","61|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["49|3|","105|1|","61|1|","5|1|","2|1|"]} 
[2026-03-24 21:25:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6349,"order_number":"AZS-240326-042"} 
[2026-03-24 21:25:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-042","replaced_order_id":6349} 
[2026-03-24 21:25:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6350,"items_count":5,"items":[{"menu_item_id":49,"quantity":3,"price":70.0},{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":2,"quantity":1,"price":130.0}]} 
[2026-03-24 21:25:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6350,"item_index":0,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":3,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6350}} 
[2026-03-24 21:25:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6350,"item_index":0,"menu_item_id":49} 
[2026-03-24 21:25:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6350,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6350}} 
[2026-03-24 21:25:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6350,"item_index":1,"menu_item_id":105} 
[2026-03-24 21:25:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6350,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6350}} 
[2026-03-24 21:25:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6350,"item_index":2,"menu_item_id":61} 
[2026-03-24 21:25:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6350,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6350}} 
[2026-03-24 21:25:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6350,"item_index":3,"menu_item_id":5} 
[2026-03-24 21:25:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6350,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6350}} 
[2026-03-24 21:25:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6350,"item_index":4,"menu_item_id":2} 
[2026-03-24 21:25:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6349,"new_order_id":6350,"order_number":"AZS-240326-042"} 
[2026-03-24 21:25:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6350,"item_index":0,"item_id":30164} 
[2026-03-24 21:25:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6350,"item_index":1,"item_id":30165} 
[2026-03-24 21:25:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6350,"item_index":2,"item_id":30166} 
[2026-03-24 21:25:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6350,"item_index":3,"item_id":30168} 
[2026-03-24 21:25:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6350,"item_index":4,"item_id":30169} 
[2026-03-24 21:25:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6350,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":30164},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30165},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30166},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30168},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30169}],"validated_items":[{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-24 21:25:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6350,"items_count":5} 
[2026-03-24 21:25:21] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[30170,30171,30172,30173,30174],"items":[{"id":null,"menu_item_id":49,"quantity":3},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-24 21:25:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6350,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["49|3|","105|1|","61|1|","5|1|","2|1|"],"new_items_map_keys":["49|3|","105|1|","61|1|","5|1|","2|1|"]} 
[2026-03-24 21:25:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6350,"order_number":"AZS-240326-042"} 
[2026-03-24 21:25:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6350,"order_number":"AZS-240326-042","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 21:25:21"} 
[2026-03-24 21:27:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6348,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":30163}],"validated_items":[{"id":30163,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-24 21:27:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6348,"items_count":1} 
[2026-03-24 21:27:31] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30163,"menu_item_id":13,"quantity":3}]} 
[2026-03-24 21:27:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6348,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|3|"],"new_items_map_keys":["13|3|"]} 
[2026-03-24 21:27:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6348,"order_number":"AZS-240326-043"} 
[2026-03-24 21:27:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6348,"order_number":"AZS-240326-043","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 21:27:31"} 
[2026-03-24 21:27:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6350,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":30170},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30171},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30172},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30173},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30174}],"validated_items":[{"id":30170,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":30171,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":30172,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30173,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30174,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-24 21:27:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6350,"items_count":5} 
[2026-03-24 21:27:43] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30170,"menu_item_id":49,"quantity":3},{"id":30171,"menu_item_id":105,"quantity":1},{"id":30172,"menu_item_id":61,"quantity":1},{"id":30173,"menu_item_id":5,"quantity":1},{"id":30174,"menu_item_id":2,"quantity":1}]} 
[2026-03-24 21:27:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6350,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["49|3|","105|1|","61|1|","5|1|","2|1|"],"new_items_map_keys":["49|3|","105|1|","61|1|","5|1|","2|1|"]} 
[2026-03-24 21:27:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6350,"order_number":"AZS-240326-042"} 
[2026-03-24 21:27:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6350,"order_number":"AZS-240326-042","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-24 21:27:43"} 
[2026-03-24 21:28:01] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6350,"order_number":"AZS-240326-042","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 21:28:01"} 
[2026-03-24 21:28:01] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6350,"order_number":"AZS-240326-042","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 21:28:01"} 
[2026-03-24 21:28:01] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6350,"order_number":"AZS-240326-042","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 21:28:01"} 
[2026-03-24 21:28:01] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6350,"order_number":"AZS-240326-042","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 21:28:01"} 
[2026-03-24 21:28:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":6350,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":30170},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30171},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30173},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30174}],"validated_items":[{"id":30170,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":30171,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":30173,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30174,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-24 21:28:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6350,"items_count":4} 
[2026-03-24 21:28:01] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[30172],"items":[{"id":30170,"menu_item_id":49,"quantity":3},{"id":30171,"menu_item_id":105,"quantity":1},{"id":30173,"menu_item_id":5,"quantity":1},{"id":30174,"menu_item_id":2,"quantity":1}]} 
[2026-03-24 21:28:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6350,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["49|3|","105|1|","61|1|","5|1|","2|1|"],"new_items_map_keys":["49|3|","105|1|","5|1|","2|1|"]} 
[2026-03-24 21:28:01] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6350,"order_number":"AZS-240326-042","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-24 21:28:01","original_payment_amount":"0.00","grand_total":2709.0,"timestamp":"2026-03-24 21:28:01"} 
[2026-03-24 21:28:01] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6350,"order_number":"AZS-240326-042"} 
[2026-03-24 21:28:01] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-240326-042","replaced_order_id":6350} 
[2026-03-24 21:28:01] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6350,"new_order_id":6351,"order_number":"AZS-240326-042","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-24 21:28:01","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-24 21:28:01"} 
[2026-03-24 21:28:01] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6351,"items_count":4,"items":[{"menu_item_id":49,"quantity":3,"price":70.0},{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":2,"quantity":1,"price":130.0}]} 
[2026-03-24 21:28:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6351,"item_index":0,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":3,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6351}} 
[2026-03-24 21:28:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6351,"item_index":0,"menu_item_id":49} 
[2026-03-24 21:28:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6351,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6351}} 
[2026-03-24 21:28:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6351,"item_index":1,"menu_item_id":105} 
[2026-03-24 21:28:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6351,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6351}} 
[2026-03-24 21:28:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6351,"item_index":2,"menu_item_id":5} 
[2026-03-24 21:28:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6351,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6351}} 
[2026-03-24 21:28:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6351,"item_index":3,"menu_item_id":2} 
[2026-03-24 21:28:01] local.ERROR: Error tracking recipe usage for order 6351: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6351, 49, 102, 1, 30, 0.00, Order #AZS-240326-042 - 3x Plain Naan, 2026-03-24 21:28:01, 2026-03-24 21:28:01))  
[2026-03-24 21:28:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6350,"new_order_id":6351,"order_number":"AZS-240326-042"} 
[2026-03-24 21:28:01] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6350,"new_order_id":6351,"order_number":"AZS-240326-042","route":"api/orders/6350"} 
[2026-03-24 21:29:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T09:29:55.238Z","date_to":"2026-03-24T21:29:55.238Z","per_page":"100"} 
[2026-03-24 21:29:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T09:29:55.252Z","date_to":"2026-03-24T21:29:55.252Z","per_page":"100"} 
[2026-03-24 21:29:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":43,"count":43,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-043","AZS-240326-042","AZS-240326-041","AZS-240326-040","AZS-240326-039","AZS-240326-038","AZS-240326-037","AZS-240326-036","AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":41,"unpaid_count":2,"unique_order_numbers":43} 
[2026-03-24 21:29:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":43,"count":43,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-043","AZS-240326-042","AZS-240326-041","AZS-240326-040","AZS-240326-039","AZS-240326-038","AZS-240326-037","AZS-240326-036","AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":41,"unpaid_count":2,"unique_order_numbers":43} 
[2026-03-24 21:29:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T09:29:55.238Z","date_to":"2026-03-24T21:29:55.238Z","per_page":"100"} 
[2026-03-24 21:29:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":43,"count":43,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-043","AZS-240326-042","AZS-240326-041","AZS-240326-040","AZS-240326-039","AZS-240326-038","AZS-240326-037","AZS-240326-036","AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":41,"unpaid_count":2,"unique_order_numbers":43} 
[2026-03-24 21:30:54] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6348,"order_number":"AZS-240326-043","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":800,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 21:30:54"} 
[2026-03-24 21:30:54] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6348,"order_number":"AZS-240326-043","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":800,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-24 21:30:54"} 
[2026-03-24 21:30:54] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6348,"order_number":"AZS-240326-043","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":800,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 21:30:54"} 
[2026-03-24 21:30:54] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6348,"order_number":"AZS-240326-043","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":800,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-24 21:30:54"} 
[2026-03-24 21:30:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6348,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":30163}],"validated_items":[{"id":30163,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-24 21:30:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6348,"items_count":1} 
[2026-03-24 21:30:54] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30163,"menu_item_id":13,"quantity":3}]} 
[2026-03-24 21:30:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6348,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|3|"],"new_items_map_keys":["13|3|"]} 
[2026-03-24 21:30:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6348,"order_number":"AZS-240326-043"} 
[2026-03-24 21:30:54] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6348,"order_number":"AZS-240326-043","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":800,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-24 21:30:54","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-24 21:30:54"} 
[2026-03-24 21:30:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6348,"order_number":"AZS-240326-043","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-24 21:30:54"} 
[2026-03-24 21:30:54] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6348,"order_number":"AZS-240326-043","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"800.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-24 21:30:54","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":800,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"800.00","database_verification_match":true,"timestamp":"2026-03-24 21:30:54"} 
[2026-03-24 21:31:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T09:31:23.285Z","date_to":"2026-03-24T21:31:23.285Z","per_page":"100"} 
[2026-03-24 21:31:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T09:31:23.300Z","date_to":"2026-03-24T21:31:23.300Z","per_page":"100"} 
[2026-03-24 21:31:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":43,"count":43,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-043","AZS-240326-042","AZS-240326-041","AZS-240326-040","AZS-240326-039","AZS-240326-038","AZS-240326-037","AZS-240326-036","AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":42,"unpaid_count":1,"unique_order_numbers":43} 
[2026-03-24 21:31:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":43,"count":43,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-043","AZS-240326-042","AZS-240326-041","AZS-240326-040","AZS-240326-039","AZS-240326-038","AZS-240326-037","AZS-240326-036","AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":42,"unpaid_count":1,"unique_order_numbers":43} 
[2026-03-24 21:31:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-24T09:31:23.285Z","date_to":"2026-03-24T21:31:23.285Z","per_page":"100"} 
[2026-03-24 21:31:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":43,"count":43,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-240326-043","AZS-240326-042","AZS-240326-041","AZS-240326-040","AZS-240326-039","AZS-240326-038","AZS-240326-037","AZS-240326-036","AZS-240326-035","AZS-240326-034","AZS-240326-033","AZS-240326-032","AZS-240326-031","AZS-240326-030","AZS-240326-029","AZS-240326-028","AZS-240326-027","AZS-240326-026","AZS-240326-025","AZS-240326-024","AZS-240326-023","AZS-240326-022","AZS-240326-021","AZS-240326-020","AZS-240326-019","AZS-240326-018","AZS-240326-017","AZS-240326-016","AZS-240326-015","AZS-240326-014","AZS-240326-013","AZS-240326-012","AZS-240326-011","AZS-240326-010","AZS-240326-009","AZS-240326-008","AZS-240326-007","AZS-240326-006","AZS-240326-005","AZS-240326-004","AZS-240326-003","AZS-240326-002","AZS-240326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":42,"unpaid_count":1,"unique_order_numbers":43} 
[2026-03-25 06:29:21] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) {"userId":19,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(410): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#52 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:423)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): PDO->prepare('select `id`, `n...')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select `id`, `n...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(410): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 {main}
"} 
[2026-03-25 07:35:05] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) {"userId":19,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(410): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#52 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:423)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): PDO->prepare('select `id`, `n...')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select `id`, `n...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(410): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 {main}
"} 
[2026-03-25 14:19:49] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6352,"order_number":"AZS-250326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 14:19:49"} 
[2026-03-25 14:19:49] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6352,"order_number":"AZS-250326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 14:19:49"} 
[2026-03-25 14:19:49] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6352,"order_number":"AZS-250326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 14:19:49"} 
[2026-03-25 14:19:49] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6352,"order_number":"AZS-250326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 14:19:49"} 
[2026-03-25 14:19:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6352,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30179},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30180},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30181},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"id":30179,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30180,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30181,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-25 14:19:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6352,"items_count":5} 
[2026-03-25 14:19:49] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30179,"menu_item_id":96,"quantity":1},{"id":30180,"menu_item_id":396,"quantity":2},{"id":30181,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":6,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-25 14:19:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6352,"has_item_changes":true,"old_items_count":3,"new_items_count":5,"old_items_map_keys":["96|1|","396|2|","61|1|"],"new_items_map_keys":["96|1|","396|2|","61|1|","6|1|","5|1|"]} 
[2026-03-25 14:19:49] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6352,"order_number":"AZS-250326-001","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":2000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-25 14:19:49","original_payment_amount":"0.00","grand_total":1965.0,"timestamp":"2026-03-25 14:19:49"} 
[2026-03-25 14:19:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6352,"order_number":"AZS-250326-001"} 
[2026-03-25 14:19:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-001","replaced_order_id":6352} 
[2026-03-25 14:19:49] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6352,"new_order_id":6353,"order_number":"AZS-250326-001","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"2000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-25 14:19:49","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-25 14:19:49"} 
[2026-03-25 14:19:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6353,"items_count":5,"items":[{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":6,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-03-25 14:19:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6353,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6353}} 
[2026-03-25 14:19:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6353,"item_index":0,"menu_item_id":96} 
[2026-03-25 14:19:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6353,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6353}} 
[2026-03-25 14:19:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6353,"item_index":1,"menu_item_id":396} 
[2026-03-25 14:19:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6353,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6353}} 
[2026-03-25 14:19:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6353,"item_index":2,"menu_item_id":61} 
[2026-03-25 14:19:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6353,"item_index":3,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6353}} 
[2026-03-25 14:19:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6353,"item_index":3,"menu_item_id":6} 
[2026-03-25 14:19:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6353,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6353}} 
[2026-03-25 14:19:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6353,"item_index":4,"menu_item_id":5} 
[2026-03-25 14:19:49] local.ERROR: Error tracking recipe usage for order 6353: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6353, 96, 77, 1, 1, 0.00, Order #AZS-250326-001 - 1x Chicken Karahi - Half, 2026-03-25 14:19:49, 2026-03-25 14:19:49))  
[2026-03-25 14:19:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6352,"new_order_id":6353,"order_number":"AZS-250326-001"} 
[2026-03-25 14:19:49] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6352,"new_order_id":6353,"order_number":"AZS-250326-001","route":"api/orders/6352"} 
[2026-03-25 15:10:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6354,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":30187},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30188}],"validated_items":[{"id":30187,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":30188,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-25 15:10:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6354,"items_count":2} 
[2026-03-25 15:10:21] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30187,"menu_item_id":85,"quantity":1},{"id":30188,"menu_item_id":2,"quantity":2}]} 
[2026-03-25 15:10:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6354,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["85|1|","2|2|"],"new_items_map_keys":["85|1|","2|2|"]} 
[2026-03-25 15:10:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6354,"order_number":"AZS-250326-002"} 
[2026-03-25 15:10:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6354,"order_number":"AZS-250326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 15:10:21"} 
[2026-03-25 15:12:11] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6354,"order_number":"AZS-250326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1010,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 15:12:11"} 
[2026-03-25 15:12:11] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6354,"order_number":"AZS-250326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1010,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 15:12:11"} 
[2026-03-25 15:12:11] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6354,"order_number":"AZS-250326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1010,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 15:12:11"} 
[2026-03-25 15:12:11] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6354,"order_number":"AZS-250326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1010,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 15:12:11"} 
[2026-03-25 15:12:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6354,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":30187},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30188}],"validated_items":[{"id":30187,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":30188,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-25 15:12:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6354,"items_count":2} 
[2026-03-25 15:12:11] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30187,"menu_item_id":85,"quantity":1},{"id":30188,"menu_item_id":2,"quantity":2}]} 
[2026-03-25 15:12:11] local.INFO: PosOrderController::update - Item changes check {"order_id":6354,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["85|1|","2|2|"],"new_items_map_keys":["85|1|","2|2|"]} 
[2026-03-25 15:12:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6354,"order_number":"AZS-250326-002"} 
[2026-03-25 15:12:11] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6354,"order_number":"AZS-250326-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1010,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-25 15:12:11","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-25 15:12:11"} 
[2026-03-25 15:12:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6354,"order_number":"AZS-250326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-25 15:12:11"} 
[2026-03-25 15:12:11] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6354,"order_number":"AZS-250326-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1010.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-25 15:12:11","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1010,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1010.00","database_verification_match":true,"timestamp":"2026-03-25 15:12:11"} 
[2026-03-25 15:25:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6356,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":108,"quantity":1,"discount_percent":0,"notes":null,"id":30190},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30191},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30192},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":30193},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30194},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30190,"menu_item_id":108,"quantity":1,"discount_percent":0,"notes":null},{"id":30191,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30192,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30193,"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null},{"id":30194,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-25 15:25:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6356,"items_count":7} 
[2026-03-25 15:25:27] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30190,"menu_item_id":108,"quantity":1},{"id":30191,"menu_item_id":61,"quantity":1},{"id":30192,"menu_item_id":56,"quantity":1},{"id":30193,"menu_item_id":2,"quantity":3},{"id":30194,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":1},{"id":null,"menu_item_id":9,"quantity":1}]} 
[2026-03-25 15:25:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6356,"has_item_changes":true,"old_items_count":5,"new_items_count":7,"old_items_map_keys":["108|1|","61|1|","56|1|","2|3|","5|1|"],"new_items_map_keys":["108|1|","61|1|","56|1|","2|3|","5|1|","13|1|","9|1|"]} 
[2026-03-25 15:25:27] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6356,"order_number":"AZS-250326-004"} 
[2026-03-25 15:25:27] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-004","replaced_order_id":6356} 
[2026-03-25 15:25:27] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6357,"items_count":7,"items":[{"menu_item_id":108,"quantity":1,"price":"4199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":1,"price":"249.00"},{"menu_item_id":9,"quantity":1,"price":"229.00"}]} 
[2026-03-25 15:25:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6357,"item_index":0,"item_data":{"menu_item_id":108,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Sulemani - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6357}} 
[2026-03-25 15:25:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6357,"item_index":0,"menu_item_id":108} 
[2026-03-25 15:25:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6357,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6357}} 
[2026-03-25 15:25:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6357,"item_index":1,"menu_item_id":61} 
[2026-03-25 15:25:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6357,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6357}} 
[2026-03-25 15:25:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6357,"item_index":2,"menu_item_id":56} 
[2026-03-25 15:25:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6357,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6357}} 
[2026-03-25 15:25:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6357,"item_index":3,"menu_item_id":2} 
[2026-03-25 15:25:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6357,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6357}} 
[2026-03-25 15:25:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6357,"item_index":4,"menu_item_id":5} 
[2026-03-25 15:25:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6357,"item_index":5,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6357}} 
[2026-03-25 15:25:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6357,"item_index":5,"menu_item_id":13} 
[2026-03-25 15:25:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6357,"item_index":6,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":1,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":229.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6357}} 
[2026-03-25 15:25:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6357,"item_index":6,"menu_item_id":9} 
[2026-03-25 15:25:27] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6356,"new_order_id":6357,"order_number":"AZS-250326-004"} 
[2026-03-25 15:25:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6357,"item_index":0,"item_id":30190} 
[2026-03-25 15:25:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6357,"item_index":1,"item_id":30191} 
[2026-03-25 15:25:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6357,"item_index":2,"item_id":30192} 
[2026-03-25 15:25:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6357,"item_index":3,"item_id":30193} 
[2026-03-25 15:25:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6357,"item_index":4,"item_id":30194} 
[2026-03-25 15:25:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":6357,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":108,"quantity":1,"discount_percent":0,"notes":null,"id":30190},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30191},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30192},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":30193},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30194},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":108,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-25 15:25:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6357,"items_count":7} 
[2026-03-25 15:25:32] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[30195,30196,30197,30198,30199,30200,30201],"items":[{"id":null,"menu_item_id":108,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":1},{"id":null,"menu_item_id":9,"quantity":1}]} 
[2026-03-25 15:25:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6357,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["108|1|","61|1|","56|1|","2|3|","5|1|","13|1|","9|1|"],"new_items_map_keys":["108|1|","61|1|","56|1|","2|3|","5|1|","13|1|","9|1|"]} 
[2026-03-25 15:25:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6357,"order_number":"AZS-250326-004"} 
[2026-03-25 15:25:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6357,"order_number":"AZS-250326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-25 15:25:32"} 
[2026-03-25 15:27:22] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6355,"order_number":"AZS-250326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":105,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 15:27:22"} 
[2026-03-25 15:27:22] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6355,"order_number":"AZS-250326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":105,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 15:27:22"} 
[2026-03-25 15:27:22] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6355,"order_number":"AZS-250326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":105,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 15:27:22"} 
[2026-03-25 15:27:22] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6355,"order_number":"AZS-250326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":105,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 15:27:22"} 
[2026-03-25 15:27:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6355,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":7,"price":15,"discount_percent":0,"notes":null,"id":30189}],"validated_items":[{"id":30189,"menu_item_id":286,"quantity":7,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-25 15:27:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6355,"items_count":1} 
[2026-03-25 15:27:22] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30189,"menu_item_id":286,"quantity":7}]} 
[2026-03-25 15:27:22] local.INFO: PosOrderController::update - Item changes check {"order_id":6355,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["286|7|"],"new_items_map_keys":["286|7|"]} 
[2026-03-25 15:27:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6355,"order_number":"AZS-250326-003"} 
[2026-03-25 15:27:22] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6355,"order_number":"AZS-250326-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":105,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-25 15:27:22","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-25 15:27:22"} 
[2026-03-25 15:27:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6355,"order_number":"AZS-250326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-25 15:27:22"} 
[2026-03-25 15:27:22] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6355,"order_number":"AZS-250326-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"105.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-25 15:27:22","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":105,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"105.00","database_verification_match":true,"timestamp":"2026-03-25 15:27:22"} 
[2026-03-25 15:27:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T03:27:31.767Z","date_to":"2026-03-25T15:27:31.767Z","per_page":"100"} 
[2026-03-25 15:27:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T03:27:31.752Z","date_to":"2026-03-25T15:27:31.752Z","per_page":"100"} 
[2026-03-25 15:27:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":4,"count":4,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":1,"unique_order_numbers":4} 
[2026-03-25 15:27:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":4,"count":4,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":1,"unique_order_numbers":4} 
[2026-03-25 15:27:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T03:27:31.752Z","date_to":"2026-03-25T15:27:31.752Z","per_page":"100"} 
[2026-03-25 15:27:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":4,"count":4,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":1,"unique_order_numbers":4} 
[2026-03-25 15:27:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T03:27:54.118Z","date_to":"2026-03-25T15:27:54.118Z","per_page":"100"} 
[2026-03-25 15:27:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T03:27:54.134Z","date_to":"2026-03-25T15:27:54.134Z","per_page":"100"} 
[2026-03-25 15:27:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":4,"count":4,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":1,"unique_order_numbers":4} 
[2026-03-25 15:27:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":4,"count":4,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":1,"unique_order_numbers":4} 
[2026-03-25 15:27:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T03:27:54.118Z","date_to":"2026-03-25T15:27:54.118Z","per_page":"100"} 
[2026-03-25 15:27:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":4,"count":4,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":1,"unique_order_numbers":4} 
[2026-03-25 15:56:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6357,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":108,"quantity":1,"discount_percent":0,"notes":null,"id":30195},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30196},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30197},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":30198},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30199},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null,"id":30200},{"menu_item_id":9,"quantity":3,"discount_percent":0,"notes":null,"id":30201}],"validated_items":[{"id":30195,"menu_item_id":108,"quantity":1,"discount_percent":0,"notes":null},{"id":30196,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30197,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30198,"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null},{"id":30199,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":30200,"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"id":30201,"menu_item_id":9,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-25 15:56:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6357,"items_count":7} 
[2026-03-25 15:56:14] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30195,"menu_item_id":108,"quantity":1},{"id":30196,"menu_item_id":61,"quantity":1},{"id":30197,"menu_item_id":56,"quantity":1},{"id":30198,"menu_item_id":2,"quantity":3},{"id":30199,"menu_item_id":5,"quantity":1},{"id":30200,"menu_item_id":13,"quantity":1},{"id":30201,"menu_item_id":9,"quantity":3}]} 
[2026-03-25 15:56:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6357,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["108|1|","61|1|","56|1|","2|3|","5|1|","13|1|","9|1|"],"new_items_map_keys":["108|1|","61|1|","56|1|","2|3|","5|1|","13|1|","9|3|"]} 
[2026-03-25 15:56:14] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6357,"order_number":"AZS-250326-004"} 
[2026-03-25 15:56:14] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-004","replaced_order_id":6357} 
[2026-03-25 15:56:14] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6360,"items_count":7,"items":[{"menu_item_id":108,"quantity":1,"price":"4199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":1,"price":"249.00"},{"menu_item_id":9,"quantity":3,"price":"229.00"}]} 
[2026-03-25 15:56:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6360,"item_index":0,"item_data":{"menu_item_id":108,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Sulemani - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6360}} 
[2026-03-25 15:56:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6360,"item_index":0,"menu_item_id":108} 
[2026-03-25 15:56:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6360,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6360}} 
[2026-03-25 15:56:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6360,"item_index":1,"menu_item_id":61} 
[2026-03-25 15:56:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6360,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6360}} 
[2026-03-25 15:56:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6360,"item_index":2,"menu_item_id":56} 
[2026-03-25 15:56:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6360,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6360}} 
[2026-03-25 15:56:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6360,"item_index":3,"menu_item_id":2} 
[2026-03-25 15:56:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6360,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6360}} 
[2026-03-25 15:56:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6360,"item_index":4,"menu_item_id":5} 
[2026-03-25 15:56:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6360,"item_index":5,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6360}} 
[2026-03-25 15:56:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6360,"item_index":5,"menu_item_id":13} 
[2026-03-25 15:56:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6360,"item_index":6,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":3,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":687.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6360}} 
[2026-03-25 15:56:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6360,"item_index":6,"menu_item_id":9} 
[2026-03-25 15:56:14] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6357,"new_order_id":6360,"order_number":"AZS-250326-004"} 
[2026-03-25 16:02:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T04:02:14.507Z","date_to":"2026-03-25T16:02:14.507Z","per_page":"100"} 
[2026-03-25 16:02:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":4,"unique_order_numbers":7} 
[2026-03-25 16:22:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6358,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30202},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":30203},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30204},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30205},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30206}],"validated_items":[{"id":30202,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30203,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":30204,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30205,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30206,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-25 16:22:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6358,"items_count":5} 
[2026-03-25 16:22:10] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30202,"menu_item_id":102,"quantity":1},{"id":30203,"menu_item_id":49,"quantity":3},{"id":30204,"menu_item_id":61,"quantity":1},{"id":30205,"menu_item_id":56,"quantity":1},{"id":30206,"menu_item_id":3,"quantity":1}]} 
[2026-03-25 16:22:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6358,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["102|1|","49|3|","61|1|","56|1|","3|1|"],"new_items_map_keys":["102|1|","49|3|","61|1|","56|1|","3|1|"]} 
[2026-03-25 16:22:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6358,"order_number":"AZS-250326-005"} 
[2026-03-25 16:22:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6358,"order_number":"AZS-250326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 16:22:10"} 
[2026-03-25 16:22:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6358,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30202},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":30203},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30204},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30205},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30206}],"validated_items":[{"id":30202,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30203,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":30204,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30205,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30206,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-25 16:22:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6358,"items_count":5} 
[2026-03-25 16:22:17] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30202,"menu_item_id":102,"quantity":1},{"id":30203,"menu_item_id":49,"quantity":3},{"id":30204,"menu_item_id":61,"quantity":1},{"id":30205,"menu_item_id":56,"quantity":1},{"id":30206,"menu_item_id":3,"quantity":1}]} 
[2026-03-25 16:22:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6358,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["102|1|","49|3|","61|1|","56|1|","3|1|"],"new_items_map_keys":["102|1|","49|3|","61|1|","56|1|","3|1|"]} 
[2026-03-25 16:22:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6358,"order_number":"AZS-250326-005"} 
[2026-03-25 16:22:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6358,"order_number":"AZS-250326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 16:22:17"} 
[2026-03-25 16:23:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6358,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30202},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":30203},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30204},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30205},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30206}],"validated_items":[{"id":30202,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30203,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":30204,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30205,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30206,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-25 16:23:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6358,"items_count":5} 
[2026-03-25 16:23:03] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30202,"menu_item_id":102,"quantity":1},{"id":30203,"menu_item_id":49,"quantity":3},{"id":30204,"menu_item_id":61,"quantity":1},{"id":30205,"menu_item_id":56,"quantity":1},{"id":30206,"menu_item_id":3,"quantity":1}]} 
[2026-03-25 16:23:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6358,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["102|1|","49|3|","61|1|","56|1|","3|1|"],"new_items_map_keys":["102|1|","49|3|","61|1|","56|1|","3|1|"]} 
[2026-03-25 16:23:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6358,"order_number":"AZS-250326-005"} 
[2026-03-25 16:23:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6358,"order_number":"AZS-250326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 16:23:03"} 
[2026-03-25 16:31:01] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6358,"order_number":"AZS-250326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 16:31:01"} 
[2026-03-25 16:31:01] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6358,"order_number":"AZS-250326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 16:31:01"} 
[2026-03-25 16:31:01] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6358,"order_number":"AZS-250326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 16:31:01"} 
[2026-03-25 16:31:01] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6358,"order_number":"AZS-250326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 16:31:01"} 
[2026-03-25 16:31:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":6358,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30202},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":30203},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30205},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30206}],"validated_items":[{"id":30202,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30203,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":30205,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30206,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-25 16:31:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6358,"items_count":4} 
[2026-03-25 16:31:01] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[30204],"items":[{"id":30202,"menu_item_id":102,"quantity":1},{"id":30203,"menu_item_id":49,"quantity":3},{"id":30205,"menu_item_id":56,"quantity":1},{"id":30206,"menu_item_id":3,"quantity":1}]} 
[2026-03-25 16:31:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6358,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["102|1|","49|3|","61|1|","56|1|","3|1|"],"new_items_map_keys":["102|1|","49|3|","56|1|","3|1|"]} 
[2026-03-25 16:31:01] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6358,"order_number":"AZS-250326-005","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":2500,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-25 16:31:01","original_payment_amount":"0.00","grand_total":2078.0,"timestamp":"2026-03-25 16:31:01"} 
[2026-03-25 16:31:01] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6358,"order_number":"AZS-250326-005"} 
[2026-03-25 16:31:01] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-005","replaced_order_id":6358} 
[2026-03-25 16:31:01] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6358,"new_order_id":6364,"order_number":"AZS-250326-005","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"2500.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-25 16:31:01","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-25 16:31:01"} 
[2026-03-25 16:31:01] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6364,"items_count":4,"items":[{"menu_item_id":102,"quantity":1,"price":1399.0},{"menu_item_id":49,"quantity":3,"price":70.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-25 16:31:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6364,"item_index":0,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":1399.0,"discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6364}} 
[2026-03-25 16:31:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6364,"item_index":0,"menu_item_id":102} 
[2026-03-25 16:31:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6364,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":3,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6364}} 
[2026-03-25 16:31:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6364,"item_index":1,"menu_item_id":49} 
[2026-03-25 16:31:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6364,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6364}} 
[2026-03-25 16:31:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6364,"item_index":2,"menu_item_id":56} 
[2026-03-25 16:31:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6364,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6364}} 
[2026-03-25 16:31:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6364,"item_index":3,"menu_item_id":3} 
[2026-03-25 16:31:01] local.ERROR: Error tracking recipe usage for order 6364: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6364, 49, 102, 1, 30, 0.00, Order #AZS-250326-005 - 3x Plain Naan, 2026-03-25 16:31:01, 2026-03-25 16:31:01))  
[2026-03-25 16:31:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6358,"new_order_id":6364,"order_number":"AZS-250326-005"} 
[2026-03-25 16:31:02] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6358,"new_order_id":6364,"order_number":"AZS-250326-005","route":"api/orders/6358"} 
[2026-03-25 16:42:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6365,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null,"id":30238},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30238,"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-25 16:42:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6365,"items_count":2} 
[2026-03-25 16:42:55] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30238,"menu_item_id":13,"quantity":4},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-25 16:42:55] local.INFO: PosOrderController::update - Item changes check {"order_id":6365,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["13|4|"],"new_items_map_keys":["13|4|","5|1|"]} 
[2026-03-25 16:42:55] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6365,"order_number":"AZS-250326-010"} 
[2026-03-25 16:42:55] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-010","replaced_order_id":6365} 
[2026-03-25 16:42:55] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6367,"items_count":2,"items":[{"menu_item_id":13,"quantity":4,"price":"249.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-25 16:42:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6367,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":4,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6367}} 
[2026-03-25 16:42:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6367,"item_index":0,"menu_item_id":13} 
[2026-03-25 16:42:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6367,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6367}} 
[2026-03-25 16:42:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6367,"item_index":1,"menu_item_id":5} 
[2026-03-25 16:42:55] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6365,"new_order_id":6367,"order_number":"AZS-250326-010"} 
[2026-03-25 16:49:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6361,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":30223},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":30224},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30225},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30226},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":30223,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":30224,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":30225,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30226,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-25 16:49:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6361,"items_count":5} 
[2026-03-25 16:49:31] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30223,"menu_item_id":396,"quantity":3},{"id":30224,"menu_item_id":96,"quantity":1},{"id":30225,"menu_item_id":61,"quantity":1},{"id":30226,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-03-25 16:49:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6361,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["396|3|","96|1|","61|1|","5|1|"],"new_items_map_keys":["396|3|","96|1|","61|1|","5|1|","3|2|"]} 
[2026-03-25 16:49:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6361,"order_number":"AZS-250326-007"} 
[2026-03-25 16:49:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-007","replaced_order_id":6361} 
[2026-03-25 16:49:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6368,"items_count":5,"items":[{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-03-25 16:49:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6368,"item_index":0,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6368}} 
[2026-03-25 16:49:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6368,"item_index":0,"menu_item_id":396} 
[2026-03-25 16:49:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6368,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6368}} 
[2026-03-25 16:49:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6368,"item_index":1,"menu_item_id":96} 
[2026-03-25 16:49:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6368,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6368}} 
[2026-03-25 16:49:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6368,"item_index":2,"menu_item_id":61} 
[2026-03-25 16:49:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6368,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6368}} 
[2026-03-25 16:49:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6368,"item_index":3,"menu_item_id":5} 
[2026-03-25 16:49:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6368,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6368}} 
[2026-03-25 16:49:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6368,"item_index":4,"menu_item_id":3} 
[2026-03-25 16:49:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6361,"new_order_id":6368,"order_number":"AZS-250326-007"} 
[2026-03-25 17:03:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6368,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":30245},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":30246},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30247},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30248},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":30249},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30245,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":30246,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":30247,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30248,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":30249,"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:03:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6368,"items_count":6} 
[2026-03-25 17:03:40] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30245,"menu_item_id":396,"quantity":3},{"id":30246,"menu_item_id":96,"quantity":1},{"id":30247,"menu_item_id":61,"quantity":1},{"id":30248,"menu_item_id":5,"quantity":1},{"id":30249,"menu_item_id":3,"quantity":2},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-25 17:03:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6368,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["396|3|","96|1|","61|1|","5|1|","3|2|"],"new_items_map_keys":["396|3|","96|1|","61|1|","5|1|","3|2|","2|1|"]} 
[2026-03-25 17:03:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6368,"order_number":"AZS-250326-007"} 
[2026-03-25 17:03:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-007","replaced_order_id":6368} 
[2026-03-25 17:03:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6370,"items_count":6,"items":[{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-25 17:03:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6370,"item_index":0,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6370}} 
[2026-03-25 17:03:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6370,"item_index":0,"menu_item_id":396} 
[2026-03-25 17:03:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6370,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6370}} 
[2026-03-25 17:03:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6370,"item_index":1,"menu_item_id":96} 
[2026-03-25 17:03:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6370,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6370}} 
[2026-03-25 17:03:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6370,"item_index":2,"menu_item_id":61} 
[2026-03-25 17:03:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6370,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6370}} 
[2026-03-25 17:03:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6370,"item_index":3,"menu_item_id":5} 
[2026-03-25 17:03:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6370,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6370}} 
[2026-03-25 17:03:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6370,"item_index":4,"menu_item_id":3} 
[2026-03-25 17:03:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6370,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6370}} 
[2026-03-25 17:03:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6370,"item_index":5,"menu_item_id":2} 
[2026-03-25 17:03:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6368,"new_order_id":6370,"order_number":"AZS-250326-007"} 
[2026-03-25 17:06:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6370,"item_index":0,"item_id":30245} 
[2026-03-25 17:06:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6370,"item_index":1,"item_id":30246} 
[2026-03-25 17:06:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6370,"item_index":2,"item_id":30247} 
[2026-03-25 17:06:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6370,"item_index":3,"item_id":30248} 
[2026-03-25 17:06:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6370,"item_index":4,"item_id":30249} 
[2026-03-25 17:06:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":6,"order_id":6370,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":30245},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":30246},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30247},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30248},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":30249},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:06:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6370,"items_count":7} 
[2026-03-25 17:06:19] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":6,"items_to_remove":[30256,30257,30258,30259,30260,30261],"items":[{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":2},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":13,"quantity":3}]} 
[2026-03-25 17:06:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6370,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["396|3|","96|1|","61|1|","5|1|","3|2|","2|1|"],"new_items_map_keys":["396|3|","96|1|","61|1|","5|1|","3|2|","2|1|","13|3|"]} 
[2026-03-25 17:06:19] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6370,"order_number":"AZS-250326-007"} 
[2026-03-25 17:06:19] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-007","replaced_order_id":6370} 
[2026-03-25 17:06:19] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6371,"items_count":7,"items":[{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":13,"quantity":3,"price":"249.00"}]} 
[2026-03-25 17:06:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6371,"item_index":0,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6371}} 
[2026-03-25 17:06:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6371,"item_index":0,"menu_item_id":396} 
[2026-03-25 17:06:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6371,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6371}} 
[2026-03-25 17:06:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6371,"item_index":1,"menu_item_id":96} 
[2026-03-25 17:06:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6371,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6371}} 
[2026-03-25 17:06:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6371,"item_index":2,"menu_item_id":61} 
[2026-03-25 17:06:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6371,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6371}} 
[2026-03-25 17:06:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6371,"item_index":3,"menu_item_id":5} 
[2026-03-25 17:06:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6371,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6371}} 
[2026-03-25 17:06:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6371,"item_index":4,"menu_item_id":3} 
[2026-03-25 17:06:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6371,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6371}} 
[2026-03-25 17:06:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6371,"item_index":5,"menu_item_id":2} 
[2026-03-25 17:06:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6371,"item_index":6,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6371}} 
[2026-03-25 17:06:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6371,"item_index":6,"menu_item_id":13} 
[2026-03-25 17:06:19] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6370,"new_order_id":6371,"order_number":"AZS-250326-007"} 
[2026-03-25 17:08:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6369,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null,"id":30250},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30251},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30253},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":30254},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30255}],"validated_items":[{"id":30250,"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null},{"id":30251,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30253,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":30254,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":30255,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:08:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6369,"items_count":5} 
[2026-03-25 17:08:57] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[30252],"items":[{"id":30250,"menu_item_id":113,"quantity":2},{"id":30251,"menu_item_id":61,"quantity":1},{"id":30253,"menu_item_id":396,"quantity":2},{"id":30254,"menu_item_id":50,"quantity":2},{"id":30255,"menu_item_id":5,"quantity":1}]} 
[2026-03-25 17:08:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6369,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["113|2|","61|1|","56|1|","396|2|","50|2|","5|1|"],"new_items_map_keys":["113|2|","61|1|","396|2|","50|2|","5|1|"]} 
[2026-03-25 17:08:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6369,"order_number":"AZS-250326-012"} 
[2026-03-25 17:08:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-012","replaced_order_id":6369} 
[2026-03-25 17:08:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6373,"items_count":5,"items":[{"menu_item_id":113,"quantity":2,"price":"1199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-25 17:08:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6373,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6373}} 
[2026-03-25 17:08:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6373,"item_index":0,"menu_item_id":113} 
[2026-03-25 17:08:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6373,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6373}} 
[2026-03-25 17:08:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6373,"item_index":1,"menu_item_id":61} 
[2026-03-25 17:08:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6373,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6373}} 
[2026-03-25 17:08:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6373,"item_index":2,"menu_item_id":396} 
[2026-03-25 17:08:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6373,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6373}} 
[2026-03-25 17:08:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6373,"item_index":3,"menu_item_id":50} 
[2026-03-25 17:08:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6373,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6373}} 
[2026-03-25 17:08:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6373,"item_index":4,"menu_item_id":5} 
[2026-03-25 17:08:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6369,"new_order_id":6373,"order_number":"AZS-250326-012"} 
[2026-03-25 17:10:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6367,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":30243},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30244}],"validated_items":[{"id":30243,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null},{"id":30244,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:10:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6367,"items_count":2} 
[2026-03-25 17:10:01] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30243,"menu_item_id":13,"quantity":4},{"id":30244,"menu_item_id":5,"quantity":1}]} 
[2026-03-25 17:10:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6367,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|4|","5|1|"],"new_items_map_keys":["13|4|","5|1|"]} 
[2026-03-25 17:10:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6367,"order_number":"AZS-250326-010"} 
[2026-03-25 17:10:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6367,"order_number":"AZS-250326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 17:10:01"} 
[2026-03-25 17:15:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6367,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":30243},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30244}],"validated_items":[{"id":30243,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null},{"id":30244,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:15:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6367,"items_count":2} 
[2026-03-25 17:15:20] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30243,"menu_item_id":13,"quantity":4},{"id":30244,"menu_item_id":5,"quantity":1}]} 
[2026-03-25 17:15:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6367,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|4|","5|1|"],"new_items_map_keys":["13|4|","5|1|"]} 
[2026-03-25 17:15:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6367,"order_number":"AZS-250326-010"} 
[2026-03-25 17:15:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6367,"order_number":"AZS-250326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 17:15:20"} 
[2026-03-25 17:15:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T05:15:58.302Z","date_to":"2026-03-25T17:15:58.302Z","per_page":"100"} 
[2026-03-25 17:15:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T05:15:58.316Z","date_to":"2026-03-25T17:15:58.316Z","per_page":"100"} 
[2026-03-25 17:15:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":9,"unique_order_numbers":13} 
[2026-03-25 17:15:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":9,"unique_order_numbers":13} 
[2026-03-25 17:15:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T05:15:58.302Z","date_to":"2026-03-25T17:15:58.302Z","per_page":"100"} 
[2026-03-25 17:15:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":9,"unique_order_numbers":13} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6359,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":2,"discount_percent":0,"notes":null,"id":30207},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":30208},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":30209},{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":30210},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":30211},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":30212},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":30213},{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null,"id":30214},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":30215},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30207,"menu_item_id":105,"quantity":2,"discount_percent":0,"notes":null},{"id":30208,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":30209,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":30210,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":30211,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":30212,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":30213,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":30214,"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null},{"id":30215,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6359,"items_count":10} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30207,"menu_item_id":105,"quantity":2},{"id":30208,"menu_item_id":96,"quantity":1},{"id":30209,"menu_item_id":98,"quantity":1},{"id":30210,"menu_item_id":78,"quantity":1},{"id":30211,"menu_item_id":61,"quantity":3},{"id":30212,"menu_item_id":56,"quantity":2},{"id":30213,"menu_item_id":396,"quantity":4},{"id":30214,"menu_item_id":386,"quantity":1},{"id":30215,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6359,"has_item_changes":true,"old_items_count":9,"new_items_count":10,"old_items_map_keys":["105|2|","96|1|","98|1|","78|1|","61|2|","56|2|","396|4|","386|1|","5|2|"],"new_items_map_keys":["105|2|","96|1|","98|1|","78|1|","61|3|","56|2|","396|4|","386|1|","5|2|","3|1|"]} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6359,"order_number":"AZS-250326-006"} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-006","replaced_order_id":6359} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6374,"items_count":10,"items":[{"menu_item_id":105,"quantity":2,"price":"2199.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":386,"quantity":1,"price":"2099.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6374,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":2,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":4398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6374}} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6374,"item_index":0,"menu_item_id":105} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6374,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6374}} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6374,"item_index":1,"menu_item_id":96} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6374,"item_index":2,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6374}} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6374,"item_index":2,"menu_item_id":98} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6374,"item_index":3,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6374}} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6374,"item_index":3,"menu_item_id":78} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6374,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6374}} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6374,"item_index":4,"menu_item_id":61} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6374,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6374}} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6374,"item_index":5,"menu_item_id":56} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6374,"item_index":6,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6374}} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6374,"item_index":6,"menu_item_id":396} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6374,"item_index":7,"item_data":{"menu_item_id":386,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 01","quantity":1,"price":"2099.00","discount_percent":0.0,"discount_amount":0.0,"total":2099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6374}} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6374,"item_index":7,"menu_item_id":386} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6374,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6374}} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6374,"item_index":8,"menu_item_id":5} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6374,"item_index":9,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6374}} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6374,"item_index":9,"menu_item_id":3} 
[2026-03-25 17:16:10] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6359,"new_order_id":6374,"order_number":"AZS-250326-006"} 
[2026-03-25 17:16:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T05:16:18.689Z","date_to":"2026-03-25T17:16:18.689Z","per_page":"100"} 
[2026-03-25 17:16:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T05:16:18.699Z","date_to":"2026-03-25T17:16:18.699Z","per_page":"100"} 
[2026-03-25 17:16:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":9,"unique_order_numbers":13} 
[2026-03-25 17:16:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":9,"unique_order_numbers":13} 
[2026-03-25 17:16:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T05:16:18.689Z","date_to":"2026-03-25T17:16:18.689Z","per_page":"100"} 
[2026-03-25 17:16:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":9,"unique_order_numbers":13} 
[2026-03-25 17:16:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6371,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":30262},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30263},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30264},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30265},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":30266},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30267},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":30268}],"validated_items":[{"id":30262,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":30263,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30264,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30265,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30266,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null},{"id":30267,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":30268,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:16:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6371,"items_count":7} 
[2026-03-25 17:16:59] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30262,"menu_item_id":396,"quantity":3},{"id":30263,"menu_item_id":96,"quantity":1},{"id":30264,"menu_item_id":61,"quantity":1},{"id":30265,"menu_item_id":5,"quantity":1},{"id":30266,"menu_item_id":3,"quantity":2},{"id":30267,"menu_item_id":2,"quantity":1},{"id":30268,"menu_item_id":13,"quantity":3}]} 
[2026-03-25 17:16:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6371,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["396|3|","96|1|","61|1|","5|1|","3|2|","2|1|","13|3|"],"new_items_map_keys":["396|3|","96|1|","61|1|","5|1|","3|2|","2|1|","13|3|"]} 
[2026-03-25 17:16:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6371,"order_number":"AZS-250326-007"} 
[2026-03-25 17:16:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6371,"order_number":"AZS-250326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 17:16:59"} 
[2026-03-25 17:17:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":6371,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":30262},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30263},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30264},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30265},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30267},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":30268}],"validated_items":[{"id":30262,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":30263,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30264,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30265,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30267,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":30268,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:17:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6371,"items_count":6} 
[2026-03-25 17:17:43] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[30266],"items":[{"id":30262,"menu_item_id":396,"quantity":3},{"id":30263,"menu_item_id":96,"quantity":1},{"id":30264,"menu_item_id":61,"quantity":1},{"id":30265,"menu_item_id":5,"quantity":1},{"id":30267,"menu_item_id":2,"quantity":1},{"id":30268,"menu_item_id":13,"quantity":3}]} 
[2026-03-25 17:17:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6371,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["396|3|","96|1|","61|1|","5|1|","3|2|","2|1|","13|3|"],"new_items_map_keys":["396|3|","96|1|","61|1|","5|1|","2|1|","13|3|"]} 
[2026-03-25 17:17:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6371,"order_number":"AZS-250326-007"} 
[2026-03-25 17:17:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-007","replaced_order_id":6371} 
[2026-03-25 17:17:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6375,"items_count":6,"items":[{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":2,"quantity":1,"price":130.0},{"menu_item_id":13,"quantity":3,"price":249.0}]} 
[2026-03-25 17:17:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6375,"item_index":0,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6375}} 
[2026-03-25 17:17:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6375,"item_index":0,"menu_item_id":396} 
[2026-03-25 17:17:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6375,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6375}} 
[2026-03-25 17:17:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6375,"item_index":1,"menu_item_id":96} 
[2026-03-25 17:17:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6375,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6375}} 
[2026-03-25 17:17:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6375,"item_index":2,"menu_item_id":61} 
[2026-03-25 17:17:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6375,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6375}} 
[2026-03-25 17:17:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6375,"item_index":3,"menu_item_id":5} 
[2026-03-25 17:17:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6375,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6375}} 
[2026-03-25 17:17:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6375,"item_index":4,"menu_item_id":2} 
[2026-03-25 17:17:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6375,"item_index":5,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6375}} 
[2026-03-25 17:17:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6375,"item_index":5,"menu_item_id":13} 
[2026-03-25 17:17:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6371,"new_order_id":6375,"order_number":"AZS-250326-007"} 
[2026-03-25 17:17:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6375,"item_index":0,"item_id":30262} 
[2026-03-25 17:17:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6375,"item_index":1,"item_id":30263} 
[2026-03-25 17:17:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6375,"item_index":2,"item_id":30264} 
[2026-03-25 17:17:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6375,"item_index":3,"item_id":30265} 
[2026-03-25 17:17:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6375,"item_index":4,"item_id":30267} 
[2026-03-25 17:17:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6375,"item_index":5,"item_id":30268} 
[2026-03-25 17:17:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6375,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":30262},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30263},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30264},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30265},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30267},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":30268}],"validated_items":[{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:17:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6375,"items_count":6} 
[2026-03-25 17:17:48] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[30287,30288,30289,30290,30291,30292],"items":[{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":13,"quantity":3}]} 
[2026-03-25 17:17:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6375,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["396|3|","96|1|","61|1|","5|1|","2|1|","13|3|"],"new_items_map_keys":["396|3|","96|1|","61|1|","5|1|","2|1|","13|3|"]} 
[2026-03-25 17:17:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6375,"order_number":"AZS-250326-007"} 
[2026-03-25 17:17:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6375,"order_number":"AZS-250326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 17:17:48"} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6374,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":2,"discount_percent":0,"notes":null,"id":30277},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":30278},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":30279},{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":30280},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":30281},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":30282},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":30283},{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null,"id":30284},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":30285},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null,"id":30286}],"validated_items":[{"id":30277,"menu_item_id":105,"quantity":2,"discount_percent":0,"notes":null},{"id":30278,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":30279,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":30280,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":30281,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":30282,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":30283,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":30284,"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null},{"id":30285,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":30286,"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6374,"items_count":10} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30277,"menu_item_id":105,"quantity":2},{"id":30278,"menu_item_id":96,"quantity":1},{"id":30279,"menu_item_id":98,"quantity":1},{"id":30280,"menu_item_id":78,"quantity":1},{"id":30281,"menu_item_id":61,"quantity":3},{"id":30282,"menu_item_id":56,"quantity":2},{"id":30283,"menu_item_id":396,"quantity":4},{"id":30284,"menu_item_id":386,"quantity":1},{"id":30285,"menu_item_id":5,"quantity":2},{"id":30286,"menu_item_id":3,"quantity":3}]} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6374,"has_item_changes":true,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["105|2|","96|1|","98|1|","78|1|","61|3|","56|2|","396|4|","386|1|","5|2|","3|1|"],"new_items_map_keys":["105|2|","96|1|","98|1|","78|1|","61|3|","56|2|","396|4|","386|1|","5|2|","3|3|"]} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6374,"order_number":"AZS-250326-006"} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-006","replaced_order_id":6374} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6376,"items_count":10,"items":[{"menu_item_id":105,"quantity":2,"price":"2199.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":386,"quantity":1,"price":"2099.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":3,"price":"270.00"}]} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6376,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":2,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":4398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6376}} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6376,"item_index":0,"menu_item_id":105} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6376,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6376}} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6376,"item_index":1,"menu_item_id":96} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6376,"item_index":2,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6376}} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6376,"item_index":2,"menu_item_id":98} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6376,"item_index":3,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6376}} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6376,"item_index":3,"menu_item_id":78} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6376,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6376}} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6376,"item_index":4,"menu_item_id":61} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6376,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6376}} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6376,"item_index":5,"menu_item_id":56} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6376,"item_index":6,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6376}} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6376,"item_index":6,"menu_item_id":396} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6376,"item_index":7,"item_data":{"menu_item_id":386,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 01","quantity":1,"price":"2099.00","discount_percent":0.0,"discount_amount":0.0,"total":2099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6376}} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6376,"item_index":7,"menu_item_id":386} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6376,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6376}} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6376,"item_index":8,"menu_item_id":5} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6376,"item_index":9,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":3,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":810.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6376}} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6376,"item_index":9,"menu_item_id":3} 
[2026-03-25 17:18:07] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6374,"new_order_id":6376,"order_number":"AZS-250326-006"} 
[2026-03-25 17:18:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6376,"item_index":0,"item_id":30277} 
[2026-03-25 17:18:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6376,"item_index":1,"item_id":30278} 
[2026-03-25 17:18:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6376,"item_index":2,"item_id":30279} 
[2026-03-25 17:18:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6376,"item_index":3,"item_id":30280} 
[2026-03-25 17:18:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6376,"item_index":4,"item_id":30281} 
[2026-03-25 17:18:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6376,"item_index":5,"item_id":30282} 
[2026-03-25 17:18:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6376,"item_index":6,"item_id":30283} 
[2026-03-25 17:18:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6376,"item_index":7,"item_id":30284} 
[2026-03-25 17:18:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6376,"item_index":8,"item_id":30285} 
[2026-03-25 17:18:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6376,"item_index":9,"item_id":30286} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":10,"order_id":6376,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":2,"discount_percent":0,"notes":null,"id":30277},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":30278},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":30279},{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":30280},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":30281},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":30282},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":30283},{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null,"id":30284},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":30285},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null,"id":30286},{"menu_item_id":146,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":146,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6376,"items_count":11} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":10,"items_to_remove":[30293,30294,30295,30296,30297,30298,30299,30300,30301,30302],"items":[{"id":null,"menu_item_id":105,"quantity":2},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":78,"quantity":1},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":386,"quantity":1},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":3},{"id":null,"menu_item_id":146,"quantity":1}]} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6376,"has_item_changes":true,"old_items_count":10,"new_items_count":11,"old_items_map_keys":["105|2|","96|1|","98|1|","78|1|","61|3|","56|2|","396|4|","386|1|","5|2|","3|3|"],"new_items_map_keys":["105|2|","96|1|","98|1|","78|1|","61|3|","56|2|","396|4|","386|1|","5|2|","3|3|","146|1|"]} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6376,"order_number":"AZS-250326-006"} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-006","replaced_order_id":6376} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6377,"items_count":11,"items":[{"menu_item_id":105,"quantity":2,"price":"2199.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":386,"quantity":1,"price":"2099.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":3,"price":"270.00"},{"menu_item_id":146,"quantity":1,"price":"1299.00"}]} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6377,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":2,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":4398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6377}} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6377,"item_index":0,"menu_item_id":105} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6377,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6377}} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6377,"item_index":1,"menu_item_id":96} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6377,"item_index":2,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6377}} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6377,"item_index":2,"menu_item_id":98} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6377,"item_index":3,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6377}} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6377,"item_index":3,"menu_item_id":78} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6377,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6377}} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6377,"item_index":4,"menu_item_id":61} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6377,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6377}} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6377,"item_index":5,"menu_item_id":56} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6377,"item_index":6,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6377}} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6377,"item_index":6,"menu_item_id":396} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6377,"item_index":7,"item_data":{"menu_item_id":386,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 01","quantity":1,"price":"2099.00","discount_percent":0.0,"discount_amount":0.0,"total":2099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6377}} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6377,"item_index":7,"menu_item_id":386} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6377,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6377}} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6377,"item_index":8,"menu_item_id":5} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6377,"item_index":9,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":3,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":810.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6377}} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6377,"item_index":9,"menu_item_id":3} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6377,"item_index":10,"item_data":{"menu_item_id":146,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Chicken Supreeme Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6377}} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6377,"item_index":10,"menu_item_id":146} 
[2026-03-25 17:18:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6376,"new_order_id":6377,"order_number":"AZS-250326-006"} 
[2026-03-25 17:20:10] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6367,"order_number":"AZS-250326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 17:20:10"} 
[2026-03-25 17:20:10] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6367,"order_number":"AZS-250326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 17:20:10"} 
[2026-03-25 17:20:10] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6367,"order_number":"AZS-250326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 17:20:10"} 
[2026-03-25 17:20:10] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6367,"order_number":"AZS-250326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 17:20:10"} 
[2026-03-25 17:20:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6367,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":30243},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30244}],"validated_items":[{"id":30243,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null},{"id":30244,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:20:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6367,"items_count":2} 
[2026-03-25 17:20:10] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30243,"menu_item_id":13,"quantity":3},{"id":30244,"menu_item_id":5,"quantity":1}]} 
[2026-03-25 17:20:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6367,"has_item_changes":true,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|4|","5|1|"],"new_items_map_keys":["13|3|","5|1|"]} 
[2026-03-25 17:20:10] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6367,"order_number":"AZS-250326-010","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":1000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-25 17:20:10","original_payment_amount":"0.00","grand_total":917.0,"timestamp":"2026-03-25 17:20:10"} 
[2026-03-25 17:20:10] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6367,"order_number":"AZS-250326-010"} 
[2026-03-25 17:20:10] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-010","replaced_order_id":6367} 
[2026-03-25 17:20:10] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6367,"new_order_id":6378,"order_number":"AZS-250326-010","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"1000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-25 17:20:10","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-25 17:20:10"} 
[2026-03-25 17:20:10] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6378,"items_count":2,"items":[{"menu_item_id":13,"quantity":3,"price":249.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-03-25 17:20:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6378,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6378}} 
[2026-03-25 17:20:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6378,"item_index":0,"menu_item_id":13} 
[2026-03-25 17:20:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6378,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6378}} 
[2026-03-25 17:20:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6378,"item_index":1,"menu_item_id":5} 
[2026-03-25 17:20:10] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6367,"new_order_id":6378,"order_number":"AZS-250326-010"} 
[2026-03-25 17:20:10] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6367,"new_order_id":6378,"order_number":"AZS-250326-010","route":"api/orders/6367"} 
[2026-03-25 17:22:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6366,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30239},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30240},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30241},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30242}],"validated_items":[{"id":30239,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30240,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30241,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30242,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:22:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6366,"items_count":4} 
[2026-03-25 17:22:26] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30239,"menu_item_id":98,"quantity":1},{"id":30240,"menu_item_id":396,"quantity":2},{"id":30241,"menu_item_id":56,"quantity":1},{"id":30242,"menu_item_id":5,"quantity":1}]} 
[2026-03-25 17:22:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6366,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["98|1|","396|2|","56|1|","5|1|"],"new_items_map_keys":["98|1|","396|2|","56|1|","5|1|"]} 
[2026-03-25 17:22:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6366,"order_number":"AZS-250326-011"} 
[2026-03-25 17:22:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6366,"order_number":"AZS-250326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 17:22:26"} 
[2026-03-25 17:23:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":6377,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":2,"price":2199,"discount_percent":0,"notes":null,"id":30303},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30304},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30305},{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":30306},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":30307},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30308},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":30309},{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":30310},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":30311},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null,"id":30312},{"menu_item_id":146,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":30313}],"validated_items":[{"id":30303,"menu_item_id":105,"quantity":2,"price":2199,"discount_percent":0,"notes":null},{"id":30304,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30305,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30306,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":30307,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":30308,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30309,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":30310,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null},{"id":30311,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":30312,"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null},{"id":30313,"menu_item_id":146,"quantity":1,"price":1299,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:23:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6377,"items_count":11} 
[2026-03-25 17:23:21] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30303,"menu_item_id":105,"quantity":2},{"id":30304,"menu_item_id":96,"quantity":1},{"id":30305,"menu_item_id":98,"quantity":1},{"id":30306,"menu_item_id":78,"quantity":1},{"id":30307,"menu_item_id":61,"quantity":3},{"id":30308,"menu_item_id":56,"quantity":2},{"id":30309,"menu_item_id":396,"quantity":4},{"id":30310,"menu_item_id":386,"quantity":1},{"id":30311,"menu_item_id":5,"quantity":2},{"id":30312,"menu_item_id":3,"quantity":3},{"id":30313,"menu_item_id":146,"quantity":1}]} 
[2026-03-25 17:23:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6377,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["105|2|","96|1|","98|1|","78|1|","61|3|","56|2|","396|4|","386|1|","5|2|","3|3|","146|1|"],"new_items_map_keys":["105|2|","96|1|","98|1|","78|1|","61|3|","56|2|","396|4|","386|1|","5|2|","3|3|","146|1|"]} 
[2026-03-25 17:23:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6377,"order_number":"AZS-250326-006"} 
[2026-03-25 17:23:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6377,"order_number":"AZS-250326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 17:23:21"} 
[2026-03-25 17:25:06] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6366,"order_number":"AZS-250326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 17:25:06"} 
[2026-03-25 17:25:06] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6366,"order_number":"AZS-250326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 17:25:06"} 
[2026-03-25 17:25:06] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6366,"order_number":"AZS-250326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 17:25:06"} 
[2026-03-25 17:25:06] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6366,"order_number":"AZS-250326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 17:25:06"} 
[2026-03-25 17:25:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6366,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30239},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30240},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30241},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30242}],"validated_items":[{"id":30239,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30240,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30241,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30242,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:25:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6366,"items_count":4} 
[2026-03-25 17:25:06] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30239,"menu_item_id":98,"quantity":1},{"id":30240,"menu_item_id":396,"quantity":2},{"id":30241,"menu_item_id":56,"quantity":1},{"id":30242,"menu_item_id":5,"quantity":1}]} 
[2026-03-25 17:25:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6366,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["98|1|","396|2|","56|1|","5|1|"],"new_items_map_keys":["98|1|","396|2|","56|1|","5|1|"]} 
[2026-03-25 17:25:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6366,"order_number":"AZS-250326-011"} 
[2026-03-25 17:25:06] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6366,"order_number":"AZS-250326-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-25 17:25:06","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-25 17:25:06"} 
[2026-03-25 17:25:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6366,"order_number":"AZS-250326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-25 17:25:06"} 
[2026-03-25 17:25:06] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6366,"order_number":"AZS-250326-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-25 17:25:06","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-25 17:25:06"} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":6377,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":2,"price":2199,"discount_percent":0,"notes":null,"id":30303},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30304},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30305},{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":30306},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":30307},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30308},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":30309},{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":30310},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":30311},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null,"id":30312},{"menu_item_id":146,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":30313},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null}],"validated_items":[{"id":30303,"menu_item_id":105,"quantity":2,"price":2199,"discount_percent":0,"notes":null},{"id":30304,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30305,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30306,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":30307,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":30308,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30309,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":30310,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null},{"id":30311,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":30312,"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null},{"id":30313,"menu_item_id":146,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6377,"items_count":12} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30303,"menu_item_id":105,"quantity":2},{"id":30304,"menu_item_id":96,"quantity":1},{"id":30305,"menu_item_id":98,"quantity":1},{"id":30306,"menu_item_id":78,"quantity":1},{"id":30307,"menu_item_id":61,"quantity":3},{"id":30308,"menu_item_id":56,"quantity":2},{"id":30309,"menu_item_id":396,"quantity":4},{"id":30310,"menu_item_id":386,"quantity":1},{"id":30311,"menu_item_id":5,"quantity":2},{"id":30312,"menu_item_id":3,"quantity":3},{"id":30313,"menu_item_id":146,"quantity":1},{"id":null,"menu_item_id":50,"quantity":3}]} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6377,"has_item_changes":true,"old_items_count":11,"new_items_count":12,"old_items_map_keys":["105|2|","96|1|","98|1|","78|1|","61|3|","56|2|","396|4|","386|1|","5|2|","3|3|","146|1|"],"new_items_map_keys":["105|2|","96|1|","98|1|","78|1|","61|3|","56|2|","396|4|","386|1|","5|2|","3|3|","146|1|","50|3|"]} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6377,"order_number":"AZS-250326-006"} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-006","replaced_order_id":6377} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6380,"items_count":12,"items":[{"menu_item_id":105,"quantity":2,"price":2199.0},{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":98,"quantity":1,"price":1199.0},{"menu_item_id":78,"quantity":1,"price":4399.0},{"menu_item_id":61,"quantity":3,"price":199.0},{"menu_item_id":56,"quantity":2,"price":199.0},{"menu_item_id":396,"quantity":4,"price":99.0},{"menu_item_id":386,"quantity":1,"price":2099.0},{"menu_item_id":5,"quantity":2,"price":170.0},{"menu_item_id":3,"quantity":3,"price":270.0},{"menu_item_id":146,"quantity":1,"price":1299.0},{"menu_item_id":50,"quantity":3,"price":129.0}]} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6380,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":2,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":4398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6380}} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6380,"item_index":0,"menu_item_id":105} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6380,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6380}} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6380,"item_index":1,"menu_item_id":96} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6380,"item_index":2,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6380}} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6380,"item_index":2,"menu_item_id":98} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6380,"item_index":3,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":4399.0,"discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6380}} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6380,"item_index":3,"menu_item_id":78} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6380,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6380}} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6380,"item_index":4,"menu_item_id":61} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6380,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6380}} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6380,"item_index":5,"menu_item_id":56} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6380,"item_index":6,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6380}} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6380,"item_index":6,"menu_item_id":396} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6380,"item_index":7,"item_data":{"menu_item_id":386,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 01","quantity":1,"price":2099.0,"discount_percent":0.0,"discount_amount":0.0,"total":2099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6380}} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6380,"item_index":7,"menu_item_id":386} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6380,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6380}} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6380,"item_index":8,"menu_item_id":5} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6380,"item_index":9,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":3,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":810.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6380}} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6380,"item_index":9,"menu_item_id":3} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6380,"item_index":10,"item_data":{"menu_item_id":146,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Chicken Supreeme Pizza - Medium","quantity":1,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6380}} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6380,"item_index":10,"menu_item_id":146} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6380,"item_index":11,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6380}} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6380,"item_index":11,"menu_item_id":50} 
[2026-03-25 17:26:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6377,"new_order_id":6380,"order_number":"AZS-250326-006"} 
[2026-03-25 17:26:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6380,"item_index":0,"item_id":30303} 
[2026-03-25 17:26:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6380,"item_index":1,"item_id":30304} 
[2026-03-25 17:26:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6380,"item_index":2,"item_id":30305} 
[2026-03-25 17:26:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6380,"item_index":3,"item_id":30306} 
[2026-03-25 17:26:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6380,"item_index":4,"item_id":30307} 
[2026-03-25 17:26:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6380,"item_index":5,"item_id":30308} 
[2026-03-25 17:26:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6380,"item_index":6,"item_id":30309} 
[2026-03-25 17:26:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6380,"item_index":7,"item_id":30310} 
[2026-03-25 17:26:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6380,"item_index":8,"item_id":30311} 
[2026-03-25 17:26:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6380,"item_index":9,"item_id":30312} 
[2026-03-25 17:26:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6380,"item_index":10,"item_id":30313} 
[2026-03-25 17:26:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":12,"order_id":6380,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":2,"price":2199,"discount_percent":0,"notes":null,"id":30303},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30304},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30305},{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":30306},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":30307},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30308},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":30309},{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":30310},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":30311},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null,"id":30312},{"menu_item_id":146,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":30313},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":2,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":146,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:26:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6380,"items_count":12} 
[2026-03-25 17:26:48] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":12,"items_to_remove":[30322,30323,30324,30325,30326,30327,30328,30329,30330,30331,30332,30333],"items":[{"id":null,"menu_item_id":105,"quantity":2},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":78,"quantity":1},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":386,"quantity":1},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":3},{"id":null,"menu_item_id":146,"quantity":1},{"id":null,"menu_item_id":50,"quantity":3}]} 
[2026-03-25 17:26:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6380,"has_item_changes":false,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["105|2|","96|1|","98|1|","78|1|","61|3|","56|2|","396|4|","386|1|","5|2|","3|3|","146|1|","50|3|"],"new_items_map_keys":["105|2|","96|1|","98|1|","78|1|","61|3|","56|2|","396|4|","386|1|","5|2|","3|3|","146|1|","50|3|"]} 
[2026-03-25 17:26:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6380,"order_number":"AZS-250326-006"} 
[2026-03-25 17:26:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6380,"order_number":"AZS-250326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 17:26:48"} 
[2026-03-25 17:27:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6375,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":30287},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30288},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30289},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30290},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30291},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":30292}],"validated_items":[{"id":30287,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":30288,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30289,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30290,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30291,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":30292,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:27:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6375,"items_count":6} 
[2026-03-25 17:27:11] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30287,"menu_item_id":396,"quantity":3},{"id":30288,"menu_item_id":96,"quantity":1},{"id":30289,"menu_item_id":61,"quantity":1},{"id":30290,"menu_item_id":5,"quantity":1},{"id":30291,"menu_item_id":2,"quantity":1},{"id":30292,"menu_item_id":13,"quantity":3}]} 
[2026-03-25 17:27:11] local.INFO: PosOrderController::update - Item changes check {"order_id":6375,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["396|3|","96|1|","61|1|","5|1|","2|1|","13|3|"],"new_items_map_keys":["396|3|","96|1|","61|1|","5|1|","2|1|","13|3|"]} 
[2026-03-25 17:27:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6375,"order_number":"AZS-250326-007"} 
[2026-03-25 17:27:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6375,"order_number":"AZS-250326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 17:27:11"} 
[2026-03-25 17:28:15] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6375,"order_number":"AZS-250326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 17:28:15"} 
[2026-03-25 17:28:15] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6375,"order_number":"AZS-250326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 17:28:15"} 
[2026-03-25 17:28:15] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6375,"order_number":"AZS-250326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 17:28:15"} 
[2026-03-25 17:28:15] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6375,"order_number":"AZS-250326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 17:28:15"} 
[2026-03-25 17:28:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6375,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":30287},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30288},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30290},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30291},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":30292}],"validated_items":[{"id":30287,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":30288,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30290,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30291,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":30292,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:28:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6375,"items_count":5} 
[2026-03-25 17:28:15] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[30289],"items":[{"id":30287,"menu_item_id":396,"quantity":3},{"id":30288,"menu_item_id":96,"quantity":1},{"id":30290,"menu_item_id":5,"quantity":1},{"id":30291,"menu_item_id":2,"quantity":1},{"id":30292,"menu_item_id":13,"quantity":3}]} 
[2026-03-25 17:28:15] local.INFO: PosOrderController::update - Item changes check {"order_id":6375,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["396|3|","96|1|","61|1|","5|1|","2|1|","13|3|"],"new_items_map_keys":["396|3|","96|1|","5|1|","2|1|","13|3|"]} 
[2026-03-25 17:28:15] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6375,"order_number":"AZS-250326-007","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-25 17:28:15","original_payment_amount":"0.00","grand_total":2543.0,"timestamp":"2026-03-25 17:28:15"} 
[2026-03-25 17:28:15] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6375,"order_number":"AZS-250326-007"} 
[2026-03-25 17:28:15] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-007","replaced_order_id":6375} 
[2026-03-25 17:28:15] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6375,"new_order_id":6381,"order_number":"AZS-250326-007","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-25 17:28:15","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-25 17:28:15"} 
[2026-03-25 17:28:15] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6381,"items_count":5,"items":[{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":2,"quantity":1,"price":130.0},{"menu_item_id":13,"quantity":3,"price":249.0}]} 
[2026-03-25 17:28:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6381,"item_index":0,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6381}} 
[2026-03-25 17:28:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6381,"item_index":0,"menu_item_id":396} 
[2026-03-25 17:28:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6381,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6381}} 
[2026-03-25 17:28:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6381,"item_index":1,"menu_item_id":96} 
[2026-03-25 17:28:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6381,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6381}} 
[2026-03-25 17:28:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6381,"item_index":2,"menu_item_id":5} 
[2026-03-25 17:28:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6381,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6381}} 
[2026-03-25 17:28:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6381,"item_index":3,"menu_item_id":2} 
[2026-03-25 17:28:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6381,"item_index":4,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6381}} 
[2026-03-25 17:28:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6381,"item_index":4,"menu_item_id":13} 
[2026-03-25 17:28:15] local.ERROR: Error tracking recipe usage for order 6381: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6381, 96, 77, 1, 1, 0.00, Order #AZS-250326-007 - 1x Chicken Karahi - Half, 2026-03-25 17:28:15, 2026-03-25 17:28:15))  
[2026-03-25 17:28:15] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6375,"new_order_id":6381,"order_number":"AZS-250326-007"} 
[2026-03-25 17:28:16] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6375,"new_order_id":6381,"order_number":"AZS-250326-007","route":"api/orders/6375"} 
[2026-03-25 17:28:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6363,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":30228},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":30229},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30230},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":30231},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30232},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30233},{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":30228,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":30229,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":30230,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":30231,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":30232,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30233,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:28:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6363,"items_count":7} 
[2026-03-25 17:28:50] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30228,"menu_item_id":114,"quantity":1},{"id":30229,"menu_item_id":50,"quantity":2},{"id":30230,"menu_item_id":396,"quantity":2},{"id":30231,"menu_item_id":61,"quantity":2},{"id":30232,"menu_item_id":56,"quantity":1},{"id":30233,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":6,"quantity":3}]} 
[2026-03-25 17:28:50] local.INFO: PosOrderController::update - Item changes check {"order_id":6363,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["114|1|","50|2|","396|2|","61|2|","56|1|","5|1|"],"new_items_map_keys":["114|1|","50|2|","396|2|","61|2|","56|1|","5|1|","6|3|"]} 
[2026-03-25 17:28:50] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6363,"order_number":"AZS-250326-009"} 
[2026-03-25 17:28:50] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-009","replaced_order_id":6363} 
[2026-03-25 17:28:50] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6382,"items_count":7,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":6,"quantity":3,"price":"199.00"}]} 
[2026-03-25 17:28:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6382,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6382}} 
[2026-03-25 17:28:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6382,"item_index":0,"menu_item_id":114} 
[2026-03-25 17:28:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6382,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6382}} 
[2026-03-25 17:28:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6382,"item_index":1,"menu_item_id":50} 
[2026-03-25 17:28:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6382,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6382}} 
[2026-03-25 17:28:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6382,"item_index":2,"menu_item_id":396} 
[2026-03-25 17:28:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6382,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6382}} 
[2026-03-25 17:28:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6382,"item_index":3,"menu_item_id":61} 
[2026-03-25 17:28:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6382,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6382}} 
[2026-03-25 17:28:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6382,"item_index":4,"menu_item_id":56} 
[2026-03-25 17:28:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6382,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6382}} 
[2026-03-25 17:28:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6382,"item_index":5,"menu_item_id":5} 
[2026-03-25 17:28:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6382,"item_index":6,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6382}} 
[2026-03-25 17:28:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6382,"item_index":6,"menu_item_id":6} 
[2026-03-25 17:28:50] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6363,"new_order_id":6382,"order_number":"AZS-250326-009"} 
[2026-03-25 17:30:37] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6380,"order_number":"AZS-250326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":20000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 17:30:37"} 
[2026-03-25 17:30:37] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6380,"order_number":"AZS-250326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":20000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 17:30:37"} 
[2026-03-25 17:30:37] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6380,"order_number":"AZS-250326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":20000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 17:30:37"} 
[2026-03-25 17:30:37] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6380,"order_number":"AZS-250326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":20000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 17:30:37"} 
[2026-03-25 17:30:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":6380,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":2,"price":2199,"discount_percent":0,"notes":null,"id":30322},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30323},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30324},{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":30325},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":30326},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30327},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":30328},{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":30329},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":30330},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null,"id":30331},{"menu_item_id":146,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":30332},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":30333}],"validated_items":[{"id":30322,"menu_item_id":105,"quantity":2,"price":2199,"discount_percent":0,"notes":null},{"id":30323,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30324,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30325,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":30326,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":30327,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30328,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":30329,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null},{"id":30330,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":30331,"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null},{"id":30332,"menu_item_id":146,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":30333,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:30:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6380,"items_count":12} 
[2026-03-25 17:30:37] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30322,"menu_item_id":105,"quantity":2},{"id":30323,"menu_item_id":96,"quantity":1},{"id":30324,"menu_item_id":98,"quantity":1},{"id":30325,"menu_item_id":78,"quantity":1},{"id":30326,"menu_item_id":61,"quantity":3},{"id":30327,"menu_item_id":56,"quantity":2},{"id":30328,"menu_item_id":396,"quantity":4},{"id":30329,"menu_item_id":386,"quantity":1},{"id":30330,"menu_item_id":5,"quantity":2},{"id":30331,"menu_item_id":3,"quantity":3},{"id":30332,"menu_item_id":146,"quantity":1},{"id":30333,"menu_item_id":50,"quantity":3}]} 
[2026-03-25 17:30:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6380,"has_item_changes":false,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["105|2|","96|1|","98|1|","78|1|","61|3|","56|2|","396|4|","386|1|","5|2|","3|3|","146|1|","50|3|"],"new_items_map_keys":["105|2|","96|1|","98|1|","78|1|","61|3|","56|2|","396|4|","386|1|","5|2|","3|3|","146|1|","50|3|"]} 
[2026-03-25 17:30:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6380,"order_number":"AZS-250326-006"} 
[2026-03-25 17:30:37] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6380,"order_number":"AZS-250326-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":20000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-25 17:30:37","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-25 17:30:37"} 
[2026-03-25 17:30:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6380,"order_number":"AZS-250326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-25 17:30:37"} 
[2026-03-25 17:30:37] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6380,"order_number":"AZS-250326-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"20000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-25 17:30:37","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":20000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"20000.00","database_verification_match":true,"timestamp":"2026-03-25 17:30:37"} 
[2026-03-25 17:30:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T05:30:42.528Z","date_to":"2026-03-25T17:30:42.528Z","per_page":"100"} 
[2026-03-25 17:30:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T05:30:42.514Z","date_to":"2026-03-25T17:30:42.514Z","per_page":"100"} 
[2026-03-25 17:30:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","pending","paid","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":6,"unique_order_numbers":14} 
[2026-03-25 17:30:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","pending","paid","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":6,"unique_order_numbers":14} 
[2026-03-25 17:30:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T05:30:42.514Z","date_to":"2026-03-25T17:30:42.514Z","per_page":"100"} 
[2026-03-25 17:30:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","pending","paid","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":6,"unique_order_numbers":14} 
[2026-03-25 17:31:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T05:31:14.990Z","date_to":"2026-03-25T17:31:14.990Z","per_page":"100"} 
[2026-03-25 17:31:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T05:31:14.969Z","date_to":"2026-03-25T17:31:14.969Z","per_page":"100"} 
[2026-03-25 17:31:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","pending","paid","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":6,"unique_order_numbers":14} 
[2026-03-25 17:31:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","pending","paid","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":6,"unique_order_numbers":14} 
[2026-03-25 17:31:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T05:31:14.969Z","date_to":"2026-03-25T17:31:14.969Z","per_page":"100"} 
[2026-03-25 17:31:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","pending","paid","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":6,"unique_order_numbers":14} 
[2026-03-25 17:31:32] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-25 17:32:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6382,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":30339},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30340},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30341},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30342},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30343},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30344},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":30345}],"validated_items":[{"id":30339,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":30340,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30341,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30342,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30343,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30344,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30345,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:32:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6382,"items_count":7} 
[2026-03-25 17:32:37] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30339,"menu_item_id":114,"quantity":1},{"id":30340,"menu_item_id":50,"quantity":2},{"id":30341,"menu_item_id":396,"quantity":2},{"id":30342,"menu_item_id":61,"quantity":2},{"id":30343,"menu_item_id":56,"quantity":1},{"id":30344,"menu_item_id":5,"quantity":1},{"id":30345,"menu_item_id":6,"quantity":3}]} 
[2026-03-25 17:32:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6382,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|1|","50|2|","396|2|","61|2|","56|1|","5|1|","6|3|"],"new_items_map_keys":["114|1|","50|2|","396|2|","61|2|","56|1|","5|1|","6|3|"]} 
[2026-03-25 17:32:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6382,"order_number":"AZS-250326-009"} 
[2026-03-25 17:32:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6382,"order_number":"AZS-250326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 17:32:37"} 
[2026-03-25 17:35:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6372,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":30269},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":30270},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30271}],"validated_items":[{"id":30269,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":30270,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":30271,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:35:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6372,"items_count":3} 
[2026-03-25 17:35:13] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30269,"menu_item_id":99,"quantity":1},{"id":30270,"menu_item_id":396,"quantity":3},{"id":30271,"menu_item_id":5,"quantity":1}]} 
[2026-03-25 17:35:13] local.INFO: PosOrderController::update - Item changes check {"order_id":6372,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["99|1|","396|3|","5|1|"],"new_items_map_keys":["99|1|","396|3|","5|1|"]} 
[2026-03-25 17:35:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6372,"order_number":"AZS-250326-013"} 
[2026-03-25 17:35:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6372,"order_number":"AZS-250326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-25 17:35:13"} 
[2026-03-25 17:35:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6373,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null,"id":30272},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30273},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30274},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":30275},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30276}],"validated_items":[{"id":30272,"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null},{"id":30273,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30274,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":30275,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":30276,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:35:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6373,"items_count":5} 
[2026-03-25 17:35:25] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30272,"menu_item_id":113,"quantity":2},{"id":30273,"menu_item_id":61,"quantity":1},{"id":30274,"menu_item_id":396,"quantity":2},{"id":30275,"menu_item_id":50,"quantity":2},{"id":30276,"menu_item_id":5,"quantity":1}]} 
[2026-03-25 17:35:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6373,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["113|2|","61|1|","396|2|","50|2|","5|1|"],"new_items_map_keys":["113|2|","61|1|","396|2|","50|2|","5|1|"]} 
[2026-03-25 17:35:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6373,"order_number":"AZS-250326-012"} 
[2026-03-25 17:35:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6373,"order_number":"AZS-250326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-25 17:35:25"} 
[2026-03-25 17:35:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T05:35:35.353Z","date_to":"2026-03-25T17:35:35.353Z","per_page":"100"} 
[2026-03-25 17:35:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T05:35:35.364Z","date_to":"2026-03-25T17:35:35.364Z","per_page":"100"} 
[2026-03-25 17:35:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","pending","pending","paid","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":7,"unique_order_numbers":15} 
[2026-03-25 17:35:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","pending","pending","paid","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":7,"unique_order_numbers":15} 
[2026-03-25 17:35:35] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T05:35:35.353Z","date_to":"2026-03-25T17:35:35.353Z","per_page":"100"} 
[2026-03-25 17:35:35] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","pending","pending","paid","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":7,"unique_order_numbers":15} 
[2026-03-25 17:41:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6382,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":30339},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30340},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30341},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30342},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30343},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30344},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":30345}],"validated_items":[{"id":30339,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":30340,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30341,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30342,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30343,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30344,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30345,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:41:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6382,"items_count":7} 
[2026-03-25 17:41:36] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30339,"menu_item_id":114,"quantity":1},{"id":30340,"menu_item_id":50,"quantity":2},{"id":30341,"menu_item_id":396,"quantity":2},{"id":30342,"menu_item_id":61,"quantity":2},{"id":30343,"menu_item_id":56,"quantity":1},{"id":30344,"menu_item_id":5,"quantity":1},{"id":30345,"menu_item_id":6,"quantity":3}]} 
[2026-03-25 17:41:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6382,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|1|","50|2|","396|2|","61|2|","56|1|","5|1|","6|3|"],"new_items_map_keys":["114|1|","50|2|","396|2|","61|2|","56|1|","5|1|","6|3|"]} 
[2026-03-25 17:41:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6382,"order_number":"AZS-250326-009"} 
[2026-03-25 17:41:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6382,"order_number":"AZS-250326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 17:41:36"} 
[2026-03-25 17:48:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6382,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":30339},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30340},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30341},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30342},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30343},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30344},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":30345}],"validated_items":[{"id":30339,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":30340,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30341,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30342,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30343,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30344,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30345,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:48:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6382,"items_count":7} 
[2026-03-25 17:48:14] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30339,"menu_item_id":114,"quantity":1},{"id":30340,"menu_item_id":50,"quantity":2},{"id":30341,"menu_item_id":396,"quantity":2},{"id":30342,"menu_item_id":61,"quantity":2},{"id":30343,"menu_item_id":56,"quantity":1},{"id":30344,"menu_item_id":5,"quantity":1},{"id":30345,"menu_item_id":6,"quantity":3}]} 
[2026-03-25 17:48:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6382,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|1|","50|2|","396|2|","61|2|","56|1|","5|1|","6|3|"],"new_items_map_keys":["114|1|","50|2|","396|2|","61|2|","56|1|","5|1|","6|3|"]} 
[2026-03-25 17:48:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6382,"order_number":"AZS-250326-009"} 
[2026-03-25 17:48:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6382,"order_number":"AZS-250326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 17:48:14"} 
[2026-03-25 17:48:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6372,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":30269},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":30270},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30271},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30269,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":30270,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":30271,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:48:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6372,"items_count":4} 
[2026-03-25 17:48:53] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30269,"menu_item_id":99,"quantity":1},{"id":30270,"menu_item_id":396,"quantity":3},{"id":30271,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-25 17:48:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6372,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["99|1|","396|3|","5|1|"],"new_items_map_keys":["99|1|","396|3|","5|1|","3|1|"]} 
[2026-03-25 17:48:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6372,"order_number":"AZS-250326-013"} 
[2026-03-25 17:48:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-013","replaced_order_id":6372} 
[2026-03-25 17:48:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6384,"items_count":4,"items":[{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-25 17:48:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6384,"item_index":0,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6384}} 
[2026-03-25 17:48:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6384,"item_index":0,"menu_item_id":99} 
[2026-03-25 17:48:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6384,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6384}} 
[2026-03-25 17:48:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6384,"item_index":1,"menu_item_id":396} 
[2026-03-25 17:48:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6384,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6384}} 
[2026-03-25 17:48:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6384,"item_index":2,"menu_item_id":5} 
[2026-03-25 17:48:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6384,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6384}} 
[2026-03-25 17:48:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6384,"item_index":3,"menu_item_id":3} 
[2026-03-25 17:48:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6372,"new_order_id":6384,"order_number":"AZS-250326-013"} 
[2026-03-25 17:49:23] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6382,"order_number":"AZS-250326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 17:49:23"} 
[2026-03-25 17:49:23] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6382,"order_number":"AZS-250326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 17:49:23"} 
[2026-03-25 17:49:23] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6382,"order_number":"AZS-250326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 17:49:23"} 
[2026-03-25 17:49:23] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6382,"order_number":"AZS-250326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 17:49:23"} 
[2026-03-25 17:49:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6382,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":30339},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30340},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30341},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30342},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30343},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30344},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":30345}],"validated_items":[{"id":30339,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":30340,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30341,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30342,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30343,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30344,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30345,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-25 17:49:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6382,"items_count":7} 
[2026-03-25 17:49:23] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30339,"menu_item_id":114,"quantity":1},{"id":30340,"menu_item_id":50,"quantity":2},{"id":30341,"menu_item_id":396,"quantity":2},{"id":30342,"menu_item_id":61,"quantity":1},{"id":30343,"menu_item_id":56,"quantity":1},{"id":30344,"menu_item_id":5,"quantity":1},{"id":30345,"menu_item_id":6,"quantity":3}]} 
[2026-03-25 17:49:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6382,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|1|","50|2|","396|2|","61|2|","56|1|","5|1|","6|3|"],"new_items_map_keys":["114|1|","50|2|","396|2|","61|1|","56|1|","5|1|","6|3|"]} 
[2026-03-25 17:49:23] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6382,"order_number":"AZS-250326-009","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":4000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-25 17:49:23","original_payment_amount":"0.00","grand_total":3920.0,"timestamp":"2026-03-25 17:49:23"} 
[2026-03-25 17:49:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6382,"order_number":"AZS-250326-009"} 
[2026-03-25 17:49:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-009","replaced_order_id":6382} 
[2026-03-25 17:49:23] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6382,"new_order_id":6385,"order_number":"AZS-250326-009","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"4000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-25 17:49:23","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-25 17:49:23"} 
[2026-03-25 17:49:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6385,"items_count":7,"items":[{"menu_item_id":114,"quantity":1,"price":2299.0},{"menu_item_id":50,"quantity":2,"price":129.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":6,"quantity":3,"price":199.0}]} 
[2026-03-25 17:49:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6385,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6385}} 
[2026-03-25 17:49:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6385,"item_index":0,"menu_item_id":114} 
[2026-03-25 17:49:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6385,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6385}} 
[2026-03-25 17:49:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6385,"item_index":1,"menu_item_id":50} 
[2026-03-25 17:49:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6385,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6385}} 
[2026-03-25 17:49:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6385,"item_index":2,"menu_item_id":396} 
[2026-03-25 17:49:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6385,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6385}} 
[2026-03-25 17:49:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6385,"item_index":3,"menu_item_id":61} 
[2026-03-25 17:49:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6385,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6385}} 
[2026-03-25 17:49:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6385,"item_index":4,"menu_item_id":56} 
[2026-03-25 17:49:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6385,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6385}} 
[2026-03-25 17:49:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6385,"item_index":5,"menu_item_id":5} 
[2026-03-25 17:49:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6385,"item_index":6,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":3,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6385}} 
[2026-03-25 17:49:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6385,"item_index":6,"menu_item_id":6} 
[2026-03-25 17:49:23] local.ERROR: Error tracking recipe usage for order 6385: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6385, 114, 77, 1, 100, 0.00, Order #AZS-250326-009 - 1x Chicken Shinwari - Full, 2026-03-25 17:49:23, 2026-03-25 17:49:23))  
[2026-03-25 17:49:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6382,"new_order_id":6385,"order_number":"AZS-250326-009"} 
[2026-03-25 17:49:23] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6382,"new_order_id":6385,"order_number":"AZS-250326-009","route":"api/orders/6382"} 
[2026-03-25 17:49:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T05:49:54.200Z","date_to":"2026-03-25T17:49:54.200Z","per_page":"100"} 
[2026-03-25 17:49:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T05:49:54.213Z","date_to":"2026-03-25T17:49:54.213Z","per_page":"100"} 
[2026-03-25 17:49:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","pending","paid","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":6,"unique_order_numbers":15} 
[2026-03-25 17:49:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","pending","paid","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":6,"unique_order_numbers":15} 
[2026-03-25 17:49:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T05:49:54.200Z","date_to":"2026-03-25T17:49:54.200Z","per_page":"100"} 
[2026-03-25 17:49:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","pending","paid","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":6,"unique_order_numbers":15} 
[2026-03-25 18:02:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6383,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":30346}],"validated_items":[{"id":30346,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-25 18:02:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6383,"items_count":1} 
[2026-03-25 18:02:27] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30346,"menu_item_id":6,"quantity":4}]} 
[2026-03-25 18:02:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6383,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|4|"],"new_items_map_keys":["6|4|"]} 
[2026-03-25 18:02:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6383,"order_number":"AZS-250326-015"} 
[2026-03-25 18:02:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6383,"order_number":"AZS-250326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 18:02:27"} 
[2026-03-25 18:03:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6384,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":30347},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":30348},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30349},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30350}],"validated_items":[{"id":30347,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":30348,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":30349,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30350,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-25 18:03:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6384,"items_count":4} 
[2026-03-25 18:03:33] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30347,"menu_item_id":99,"quantity":1},{"id":30348,"menu_item_id":396,"quantity":3},{"id":30349,"menu_item_id":5,"quantity":1},{"id":30350,"menu_item_id":3,"quantity":1}]} 
[2026-03-25 18:03:33] local.INFO: PosOrderController::update - Item changes check {"order_id":6384,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["99|1|","396|3|","5|1|","3|1|"],"new_items_map_keys":["99|1|","396|3|","5|1|","3|1|"]} 
[2026-03-25 18:03:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6384,"order_number":"AZS-250326-013"} 
[2026-03-25 18:03:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6384,"order_number":"AZS-250326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 18:03:33"} 
[2026-03-25 18:08:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6383,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":30346}],"validated_items":[{"id":30346,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-25 18:08:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6383,"items_count":1} 
[2026-03-25 18:08:38] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30346,"menu_item_id":6,"quantity":4}]} 
[2026-03-25 18:08:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6383,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|4|"],"new_items_map_keys":["6|4|"]} 
[2026-03-25 18:08:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6383,"order_number":"AZS-250326-015"} 
[2026-03-25 18:08:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6383,"order_number":"AZS-250326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 18:08:38"} 
[2026-03-25 18:08:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6373,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":30272},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30273},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30274},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30275},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30276}],"validated_items":[{"id":30272,"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":30273,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30274,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30275,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30276,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-25 18:08:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6373,"items_count":5} 
[2026-03-25 18:08:51] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30272,"menu_item_id":113,"quantity":2},{"id":30273,"menu_item_id":61,"quantity":1},{"id":30274,"menu_item_id":396,"quantity":2},{"id":30275,"menu_item_id":50,"quantity":2},{"id":30276,"menu_item_id":5,"quantity":1}]} 
[2026-03-25 18:08:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6373,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["113|2|","61|1|","396|2|","50|2|","5|1|"],"new_items_map_keys":["113|2|","61|1|","396|2|","50|2|","5|1|"]} 
[2026-03-25 18:08:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6373,"order_number":"AZS-250326-012"} 
[2026-03-25 18:08:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6373,"order_number":"AZS-250326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 18:08:51"} 
[2026-03-25 18:09:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T06:09:23.818Z","date_to":"2026-03-25T18:09:23.818Z","per_page":"100"} 
[2026-03-25 18:09:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T06:09:23.804Z","date_to":"2026-03-25T18:09:23.804Z","per_page":"100"} 
[2026-03-25 18:09:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-016","AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","pending","paid","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":7,"unique_order_numbers":16} 
[2026-03-25 18:09:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-016","AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","pending","paid","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":7,"unique_order_numbers":16} 
[2026-03-25 18:09:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T06:09:23.804Z","date_to":"2026-03-25T18:09:23.804Z","per_page":"100"} 
[2026-03-25 18:09:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-016","AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","pending","paid","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":7,"unique_order_numbers":16} 
[2026-03-25 18:10:15] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6383,"order_number":"AZS-250326-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 18:10:15"} 
[2026-03-25 18:10:15] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6383,"order_number":"AZS-250326-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 18:10:15"} 
[2026-03-25 18:10:15] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6383,"order_number":"AZS-250326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 18:10:15"} 
[2026-03-25 18:10:15] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6383,"order_number":"AZS-250326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 18:10:15"} 
[2026-03-25 18:10:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6383,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":30346}],"validated_items":[{"id":30346,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-25 18:10:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6383,"items_count":1} 
[2026-03-25 18:10:15] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30346,"menu_item_id":6,"quantity":4}]} 
[2026-03-25 18:10:15] local.INFO: PosOrderController::update - Item changes check {"order_id":6383,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|4|"],"new_items_map_keys":["6|4|"]} 
[2026-03-25 18:10:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6383,"order_number":"AZS-250326-015"} 
[2026-03-25 18:10:15] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6383,"order_number":"AZS-250326-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-25 18:10:15","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-25 18:10:15"} 
[2026-03-25 18:10:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6383,"order_number":"AZS-250326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-25 18:10:15"} 
[2026-03-25 18:10:15] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6383,"order_number":"AZS-250326-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-25 18:10:15","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-25 18:10:15"} 
[2026-03-25 18:11:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6379,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null,"id":30316},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30317},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null,"id":30318},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":30319},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30320},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30321},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30316,"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null},{"id":30317,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":30318,"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null},{"id":30319,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":30320,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30321,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-25 18:11:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6379,"items_count":7} 
[2026-03-25 18:11:41] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30316,"menu_item_id":113,"quantity":2},{"id":30317,"menu_item_id":396,"quantity":2},{"id":30318,"menu_item_id":52,"quantity":2},{"id":30319,"menu_item_id":61,"quantity":2},{"id":30320,"menu_item_id":56,"quantity":1},{"id":30321,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-25 18:11:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6379,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["113|2|","396|2|","52|2|","61|2|","56|1|","5|1|"],"new_items_map_keys":["113|2|","396|2|","52|2|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-03-25 18:11:41] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6379,"order_number":"AZS-250326-014"} 
[2026-03-25 18:11:41] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-014","replaced_order_id":6379} 
[2026-03-25 18:11:41] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6387,"items_count":7,"items":[{"menu_item_id":113,"quantity":2,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":52,"quantity":2,"price":"70.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-25 18:11:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6387,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6387}} 
[2026-03-25 18:11:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6387,"item_index":0,"menu_item_id":113} 
[2026-03-25 18:11:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6387,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6387}} 
[2026-03-25 18:11:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6387,"item_index":1,"menu_item_id":396} 
[2026-03-25 18:11:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6387,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6387}} 
[2026-03-25 18:11:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6387,"item_index":2,"menu_item_id":52} 
[2026-03-25 18:11:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6387,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6387}} 
[2026-03-25 18:11:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6387,"item_index":3,"menu_item_id":61} 
[2026-03-25 18:11:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6387,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6387}} 
[2026-03-25 18:11:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6387,"item_index":4,"menu_item_id":56} 
[2026-03-25 18:11:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6387,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6387}} 
[2026-03-25 18:11:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6387,"item_index":5,"menu_item_id":5} 
[2026-03-25 18:11:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6387,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6387}} 
[2026-03-25 18:11:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6387,"item_index":6,"menu_item_id":3} 
[2026-03-25 18:11:41] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6379,"new_order_id":6387,"order_number":"AZS-250326-014"} 
[2026-03-25 18:12:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6360,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":108,"quantity":1,"discount_percent":0,"notes":null,"id":30216},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30217},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30218},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":30219},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30220},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null,"id":30221},{"menu_item_id":9,"quantity":3,"discount_percent":0,"notes":null,"id":30222}],"validated_items":[{"id":30216,"menu_item_id":108,"quantity":1,"discount_percent":0,"notes":null},{"id":30217,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30218,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30219,"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null},{"id":30220,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":30221,"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"id":30222,"menu_item_id":9,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-25 18:12:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6360,"items_count":7} 
[2026-03-25 18:12:07] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30216,"menu_item_id":108,"quantity":1},{"id":30217,"menu_item_id":61,"quantity":1},{"id":30218,"menu_item_id":56,"quantity":1},{"id":30219,"menu_item_id":2,"quantity":3},{"id":30220,"menu_item_id":5,"quantity":1},{"id":30221,"menu_item_id":13,"quantity":1},{"id":30222,"menu_item_id":9,"quantity":3}]} 
[2026-03-25 18:12:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6360,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["108|1|","61|1|","56|1|","2|3|","5|1|","13|1|","9|3|"],"new_items_map_keys":["108|1|","61|1|","56|1|","2|3|","5|1|","13|1|","9|3|"]} 
[2026-03-25 18:12:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6360,"order_number":"AZS-250326-004"} 
[2026-03-25 18:12:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6360,"order_number":"AZS-250326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-03-25 18:12:07"} 
[2026-03-25 18:12:34] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6360,"order_number":"AZS-250326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6093,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 18:12:34"} 
[2026-03-25 18:12:34] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6360,"order_number":"AZS-250326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6093,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 18:12:34"} 
[2026-03-25 18:12:34] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6360,"order_number":"AZS-250326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6093,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 18:12:34"} 
[2026-03-25 18:12:34] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6360,"order_number":"AZS-250326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6093,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 18:12:34"} 
[2026-03-25 18:12:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6360,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":108,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30216},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30217},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30218},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":30219},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30220},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":30221},{"menu_item_id":9,"quantity":3,"price":229,"discount_percent":0,"notes":null,"id":30222}],"validated_items":[{"id":30216,"menu_item_id":108,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":30217,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30218,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30219,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":30220,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30221,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":30222,"menu_item_id":9,"quantity":3,"price":229,"discount_percent":0,"notes":null}]} 
[2026-03-25 18:12:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6360,"items_count":7} 
[2026-03-25 18:12:34] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30216,"menu_item_id":108,"quantity":1},{"id":30217,"menu_item_id":61,"quantity":1},{"id":30218,"menu_item_id":56,"quantity":1},{"id":30219,"menu_item_id":2,"quantity":3},{"id":30220,"menu_item_id":5,"quantity":1},{"id":30221,"menu_item_id":13,"quantity":1},{"id":30222,"menu_item_id":9,"quantity":3}]} 
[2026-03-25 18:12:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6360,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["108|1|","61|1|","56|1|","2|3|","5|1|","13|1|","9|3|"],"new_items_map_keys":["108|1|","61|1|","56|1|","2|3|","5|1|","13|1|","9|3|"]} 
[2026-03-25 18:12:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6360,"order_number":"AZS-250326-004"} 
[2026-03-25 18:12:34] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6360,"order_number":"AZS-250326-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":6093,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-25 18:12:34","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-25 18:12:34"} 
[2026-03-25 18:12:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6360,"order_number":"AZS-250326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-25 18:12:34"} 
[2026-03-25 18:12:34] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6360,"order_number":"AZS-250326-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"6093.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-25 18:12:34","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6093,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"6093.00","database_verification_match":true,"timestamp":"2026-03-25 18:12:34"} 
[2026-03-25 18:13:16] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6362,"order_number":"AZS-250326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 18:13:16"} 
[2026-03-25 18:13:16] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6362,"order_number":"AZS-250326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 18:13:16"} 
[2026-03-25 18:13:16] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6362,"order_number":"AZS-250326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 18:13:16"} 
[2026-03-25 18:13:16] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6362,"order_number":"AZS-250326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 18:13:16"} 
[2026-03-25 18:13:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6362,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30227}],"validated_items":[{"id":30227,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null}]} 
[2026-03-25 18:13:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6362,"items_count":1} 
[2026-03-25 18:13:16] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30227,"menu_item_id":96,"quantity":1}]} 
[2026-03-25 18:13:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6362,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["96|1|"],"new_items_map_keys":["96|1|"]} 
[2026-03-25 18:13:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6362,"order_number":"AZS-250326-008"} 
[2026-03-25 18:13:16] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6362,"order_number":"AZS-250326-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-25 18:13:16","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-25 18:13:16"} 
[2026-03-25 18:13:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6362,"order_number":"AZS-250326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-25 18:13:16"} 
[2026-03-25 18:13:16] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6362,"order_number":"AZS-250326-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-25 18:13:16","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1200.00","database_verification_match":true,"timestamp":"2026-03-25 18:13:16"} 
[2026-03-25 18:22:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T06:22:18.618Z","date_to":"2026-03-25T18:22:18.618Z","per_page":"100"} 
[2026-03-25 18:22:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-017","AZS-250326-016","AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","paid","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":5,"unique_order_numbers":17} 
[2026-03-25 18:22:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T06:22:18.637Z","date_to":"2026-03-25T18:22:18.637Z","per_page":"100"} 
[2026-03-25 18:22:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-017","AZS-250326-016","AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","paid","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":5,"unique_order_numbers":17} 
[2026-03-25 18:22:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T06:22:18.618Z","date_to":"2026-03-25T18:22:18.618Z","per_page":"100"} 
[2026-03-25 18:22:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-017","AZS-250326-016","AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","paid","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":5,"unique_order_numbers":17} 
[2026-03-25 18:26:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6387,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":30360},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30361},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":30362},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30363},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30364},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30365},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30366}],"validated_items":[{"id":30360,"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":30361,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30362,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":30363,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30364,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30365,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30366,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-25 18:26:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6387,"items_count":7} 
[2026-03-25 18:26:27] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30360,"menu_item_id":113,"quantity":2},{"id":30361,"menu_item_id":396,"quantity":2},{"id":30362,"menu_item_id":52,"quantity":2},{"id":30363,"menu_item_id":61,"quantity":2},{"id":30364,"menu_item_id":56,"quantity":1},{"id":30365,"menu_item_id":5,"quantity":1},{"id":30366,"menu_item_id":3,"quantity":1}]} 
[2026-03-25 18:26:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6387,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["113|2|","396|2|","52|2|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["113|2|","396|2|","52|2|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-03-25 18:26:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6387,"order_number":"AZS-250326-014"} 
[2026-03-25 18:26:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6387,"order_number":"AZS-250326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 18:26:27"} 
[2026-03-25 18:26:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6373,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":30272},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30273},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30274},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30275},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30276}],"validated_items":[{"id":30272,"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":30273,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30274,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30275,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30276,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-25 18:26:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6373,"items_count":5} 
[2026-03-25 18:26:39] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30272,"menu_item_id":113,"quantity":2},{"id":30273,"menu_item_id":61,"quantity":1},{"id":30274,"menu_item_id":396,"quantity":2},{"id":30275,"menu_item_id":50,"quantity":2},{"id":30276,"menu_item_id":5,"quantity":1}]} 
[2026-03-25 18:26:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6373,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["113|2|","61|1|","396|2|","50|2|","5|1|"],"new_items_map_keys":["113|2|","61|1|","396|2|","50|2|","5|1|"]} 
[2026-03-25 18:26:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6373,"order_number":"AZS-250326-012"} 
[2026-03-25 18:26:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6373,"order_number":"AZS-250326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 18:26:39"} 
[2026-03-25 18:27:21] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6373,"order_number":"AZS-250326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 18:27:21"} 
[2026-03-25 18:27:21] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6373,"order_number":"AZS-250326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 18:27:21"} 
[2026-03-25 18:27:21] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6373,"order_number":"AZS-250326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 18:27:21"} 
[2026-03-25 18:27:21] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6373,"order_number":"AZS-250326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 18:27:21"} 
[2026-03-25 18:27:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":6373,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":30272},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30274},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30275},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30276}],"validated_items":[{"id":30272,"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":30274,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30275,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30276,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-25 18:27:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6373,"items_count":4} 
[2026-03-25 18:27:21] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[30273],"items":[{"id":30272,"menu_item_id":113,"quantity":2},{"id":30274,"menu_item_id":396,"quantity":2},{"id":30275,"menu_item_id":50,"quantity":2},{"id":30276,"menu_item_id":5,"quantity":1}]} 
[2026-03-25 18:27:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6373,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["113|2|","61|1|","396|2|","50|2|","5|1|"],"new_items_map_keys":["113|2|","396|2|","50|2|","5|1|"]} 
[2026-03-25 18:27:21] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6373,"order_number":"AZS-250326-012","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3500,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-25 18:27:21","original_payment_amount":"0.00","grand_total":3024.0,"timestamp":"2026-03-25 18:27:21"} 
[2026-03-25 18:27:21] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6373,"order_number":"AZS-250326-012"} 
[2026-03-25 18:27:21] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-012","replaced_order_id":6373} 
[2026-03-25 18:27:21] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6373,"new_order_id":6389,"order_number":"AZS-250326-012","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3500.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-25 18:27:21","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-25 18:27:21"} 
[2026-03-25 18:27:21] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6389,"items_count":4,"items":[{"menu_item_id":113,"quantity":2,"price":1199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":50,"quantity":2,"price":129.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-03-25 18:27:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6389,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":2,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6389}} 
[2026-03-25 18:27:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6389,"item_index":0,"menu_item_id":113} 
[2026-03-25 18:27:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6389,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6389}} 
[2026-03-25 18:27:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6389,"item_index":1,"menu_item_id":396} 
[2026-03-25 18:27:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6389,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6389}} 
[2026-03-25 18:27:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6389,"item_index":2,"menu_item_id":50} 
[2026-03-25 18:27:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6389,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6389}} 
[2026-03-25 18:27:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6389,"item_index":3,"menu_item_id":5} 
[2026-03-25 18:27:21] local.ERROR: Error tracking recipe usage for order 6389: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6389, 50, 102, 1, 20, 0.00, Order #AZS-250326-012 - 2x Roghni Naan, 2026-03-25 18:27:21, 2026-03-25 18:27:21))  
[2026-03-25 18:27:21] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6373,"new_order_id":6389,"order_number":"AZS-250326-012"} 
[2026-03-25 18:27:22] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6373,"new_order_id":6389,"order_number":"AZS-250326-012","route":"api/orders/6373"} 
[2026-03-25 18:27:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6384,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":30347},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":30348},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30349},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30350}],"validated_items":[{"id":30347,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":30348,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":30349,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30350,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-25 18:27:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6384,"items_count":4} 
[2026-03-25 18:27:28] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30347,"menu_item_id":99,"quantity":1},{"id":30348,"menu_item_id":396,"quantity":3},{"id":30349,"menu_item_id":5,"quantity":1},{"id":30350,"menu_item_id":3,"quantity":1}]} 
[2026-03-25 18:27:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6384,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["99|1|","396|3|","5|1|","3|1|"],"new_items_map_keys":["99|1|","396|3|","5|1|","3|1|"]} 
[2026-03-25 18:27:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6384,"order_number":"AZS-250326-013"} 
[2026-03-25 18:27:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6384,"order_number":"AZS-250326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 18:27:28"} 
[2026-03-25 18:27:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6387,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":30360},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":30361},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":30362},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30363},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30364},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30365},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30366}],"validated_items":[{"id":30360,"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":30361,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":30362,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":30363,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30364,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30365,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30366,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-25 18:27:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6387,"items_count":7} 
[2026-03-25 18:27:50] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30360,"menu_item_id":113,"quantity":2},{"id":30361,"menu_item_id":396,"quantity":3},{"id":30362,"menu_item_id":52,"quantity":2},{"id":30363,"menu_item_id":61,"quantity":2},{"id":30364,"menu_item_id":56,"quantity":1},{"id":30365,"menu_item_id":5,"quantity":1},{"id":30366,"menu_item_id":3,"quantity":1}]} 
[2026-03-25 18:27:50] local.INFO: PosOrderController::update - Item changes check {"order_id":6387,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["113|2|","396|2|","52|2|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["113|2|","396|3|","52|2|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-03-25 18:27:50] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6387,"order_number":"AZS-250326-014"} 
[2026-03-25 18:27:50] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-014","replaced_order_id":6387} 
[2026-03-25 18:27:50] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6390,"items_count":7,"items":[{"menu_item_id":113,"quantity":2,"price":1199.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":52,"quantity":2,"price":70.0},{"menu_item_id":61,"quantity":2,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-25 18:27:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6390,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":2,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6390}} 
[2026-03-25 18:27:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6390,"item_index":0,"menu_item_id":113} 
[2026-03-25 18:27:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6390,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6390}} 
[2026-03-25 18:27:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6390,"item_index":1,"menu_item_id":396} 
[2026-03-25 18:27:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6390,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6390}} 
[2026-03-25 18:27:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6390,"item_index":2,"menu_item_id":52} 
[2026-03-25 18:27:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6390,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6390}} 
[2026-03-25 18:27:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6390,"item_index":3,"menu_item_id":61} 
[2026-03-25 18:27:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6390,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6390}} 
[2026-03-25 18:27:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6390,"item_index":4,"menu_item_id":56} 
[2026-03-25 18:27:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6390,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6390}} 
[2026-03-25 18:27:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6390,"item_index":5,"menu_item_id":5} 
[2026-03-25 18:27:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6390,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6390}} 
[2026-03-25 18:27:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6390,"item_index":6,"menu_item_id":3} 
[2026-03-25 18:27:50] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6387,"new_order_id":6390,"order_number":"AZS-250326-014"} 
[2026-03-25 18:27:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6390,"item_index":0,"item_id":30360} 
[2026-03-25 18:27:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6390,"item_index":1,"item_id":30361} 
[2026-03-25 18:27:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6390,"item_index":2,"item_id":30362} 
[2026-03-25 18:27:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6390,"item_index":3,"item_id":30363} 
[2026-03-25 18:27:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6390,"item_index":4,"item_id":30364} 
[2026-03-25 18:27:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6390,"item_index":5,"item_id":30365} 
[2026-03-25 18:27:54] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6390,"item_index":6,"item_id":30366} 
[2026-03-25 18:27:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":6390,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":30360},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":30361},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":30362},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30363},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30364},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30365},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30366}],"validated_items":[{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-25 18:27:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6390,"items_count":7} 
[2026-03-25 18:27:54] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[30373,30374,30375,30376,30377,30378,30379],"items":[{"id":null,"menu_item_id":113,"quantity":2},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":52,"quantity":2},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-25 18:27:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6390,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["113|2|","396|3|","52|2|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["113|2|","396|3|","52|2|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-03-25 18:27:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6390,"order_number":"AZS-250326-014"} 
[2026-03-25 18:27:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6390,"order_number":"AZS-250326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 18:27:54"} 
[2026-03-25 18:28:28] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6384,"order_number":"AZS-250326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 18:28:28"} 
[2026-03-25 18:28:28] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6384,"order_number":"AZS-250326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 18:28:28"} 
[2026-03-25 18:28:28] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6384,"order_number":"AZS-250326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 18:28:28"} 
[2026-03-25 18:28:28] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6384,"order_number":"AZS-250326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 18:28:28"} 
[2026-03-25 18:28:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6384,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":30347},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":30348},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30349},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30350}],"validated_items":[{"id":30347,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":30348,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":30349,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30350,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-25 18:28:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6384,"items_count":4} 
[2026-03-25 18:28:28] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30347,"menu_item_id":99,"quantity":1},{"id":30348,"menu_item_id":396,"quantity":3},{"id":30349,"menu_item_id":5,"quantity":1},{"id":30350,"menu_item_id":3,"quantity":1}]} 
[2026-03-25 18:28:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6384,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["99|1|","396|3|","5|1|","3|1|"],"new_items_map_keys":["99|1|","396|3|","5|1|","3|1|"]} 
[2026-03-25 18:28:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6384,"order_number":"AZS-250326-013"} 
[2026-03-25 18:28:28] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6384,"order_number":"AZS-250326-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-25 18:28:28","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-25 18:28:28"} 
[2026-03-25 18:28:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6384,"order_number":"AZS-250326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-25 18:28:28"} 
[2026-03-25 18:28:28] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6384,"order_number":"AZS-250326-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-25 18:28:28","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3500.00","database_verification_match":true,"timestamp":"2026-03-25 18:28:28"} 
[2026-03-25 18:35:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6386,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30358},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30359}],"validated_items":[{"id":30358,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30359,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null}]} 
[2026-03-25 18:35:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6386,"items_count":2} 
[2026-03-25 18:35:57] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30358,"menu_item_id":396,"quantity":2},{"id":30359,"menu_item_id":98,"quantity":1}]} 
[2026-03-25 18:35:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6386,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["396|2|","98|1|"],"new_items_map_keys":["396|2|","98|1|"]} 
[2026-03-25 18:35:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6386,"order_number":"AZS-250326-016"} 
[2026-03-25 18:35:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6386,"order_number":"AZS-250326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 18:35:57"} 
[2026-03-25 18:46:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6390,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":30373},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":30374},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":30375},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30376},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30377},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30378},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30379}],"validated_items":[{"id":30373,"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":30374,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":30375,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":30376,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30377,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30378,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30379,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-25 18:46:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6390,"items_count":7} 
[2026-03-25 18:46:04] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30373,"menu_item_id":113,"quantity":2},{"id":30374,"menu_item_id":396,"quantity":3},{"id":30375,"menu_item_id":52,"quantity":2},{"id":30376,"menu_item_id":61,"quantity":2},{"id":30377,"menu_item_id":56,"quantity":1},{"id":30378,"menu_item_id":5,"quantity":1},{"id":30379,"menu_item_id":3,"quantity":1}]} 
[2026-03-25 18:46:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6390,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["113|2|","396|3|","52|2|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["113|2|","396|3|","52|2|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-03-25 18:46:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6390,"order_number":"AZS-250326-014"} 
[2026-03-25 18:46:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6390,"order_number":"AZS-250326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 18:46:04"} 
[2026-03-25 18:46:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6390,"order_number":"AZS-250326-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 18:46:27"} 
[2026-03-25 18:46:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6390,"order_number":"AZS-250326-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 18:46:27"} 
[2026-03-25 18:46:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6390,"order_number":"AZS-250326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 18:46:27"} 
[2026-03-25 18:46:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6390,"order_number":"AZS-250326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 18:46:27"} 
[2026-03-25 18:46:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6390,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":30373},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":30374},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":30375},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30376},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30377},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30378},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30379}],"validated_items":[{"id":30373,"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":30374,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":30375,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":30376,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30377,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30378,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30379,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-25 18:46:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6390,"items_count":7} 
[2026-03-25 18:46:27] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30373,"menu_item_id":113,"quantity":2},{"id":30374,"menu_item_id":396,"quantity":3},{"id":30375,"menu_item_id":52,"quantity":2},{"id":30376,"menu_item_id":61,"quantity":1},{"id":30377,"menu_item_id":56,"quantity":1},{"id":30378,"menu_item_id":5,"quantity":1},{"id":30379,"menu_item_id":3,"quantity":1}]} 
[2026-03-25 18:46:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6390,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["113|2|","396|3|","52|2|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["113|2|","396|3|","52|2|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-03-25 18:46:27] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6390,"order_number":"AZS-250326-014","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":4000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-25 18:46:27","original_payment_amount":"0.00","grand_total":3673.0,"timestamp":"2026-03-25 18:46:27"} 
[2026-03-25 18:46:27] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6390,"order_number":"AZS-250326-014"} 
[2026-03-25 18:46:27] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-014","replaced_order_id":6390} 
[2026-03-25 18:46:27] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6390,"new_order_id":6391,"order_number":"AZS-250326-014","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"4000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-25 18:46:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-25 18:46:27"} 
[2026-03-25 18:46:27] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6391,"items_count":7,"items":[{"menu_item_id":113,"quantity":2,"price":1199.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":52,"quantity":2,"price":70.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-25 18:46:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6391,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":2,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6391}} 
[2026-03-25 18:46:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6391,"item_index":0,"menu_item_id":113} 
[2026-03-25 18:46:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6391,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6391}} 
[2026-03-25 18:46:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6391,"item_index":1,"menu_item_id":396} 
[2026-03-25 18:46:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6391,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6391}} 
[2026-03-25 18:46:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6391,"item_index":2,"menu_item_id":52} 
[2026-03-25 18:46:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6391,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6391}} 
[2026-03-25 18:46:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6391,"item_index":3,"menu_item_id":61} 
[2026-03-25 18:46:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6391,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6391}} 
[2026-03-25 18:46:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6391,"item_index":4,"menu_item_id":56} 
[2026-03-25 18:46:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6391,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6391}} 
[2026-03-25 18:46:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6391,"item_index":5,"menu_item_id":5} 
[2026-03-25 18:46:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6391,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6391}} 
[2026-03-25 18:46:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6391,"item_index":6,"menu_item_id":3} 
[2026-03-25 18:46:27] local.ERROR: Error tracking recipe usage for order 6391: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6391, 52, 102, 1, 20, 0.00, Order #AZS-250326-014 - 2x Khamiri Roti, 2026-03-25 18:46:27, 2026-03-25 18:46:27))  
[2026-03-25 18:46:27] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6390,"new_order_id":6391,"order_number":"AZS-250326-014"} 
[2026-03-25 18:46:27] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6390,"new_order_id":6391,"order_number":"AZS-250326-014","route":"api/orders/6390"} 
[2026-03-25 18:47:07] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6386,"order_number":"AZS-250326-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 18:47:07"} 
[2026-03-25 18:47:07] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6386,"order_number":"AZS-250326-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 18:47:07"} 
[2026-03-25 18:47:07] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6386,"order_number":"AZS-250326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 18:47:07"} 
[2026-03-25 18:47:07] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6386,"order_number":"AZS-250326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 18:47:07"} 
[2026-03-25 18:47:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6386,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30358},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30359}],"validated_items":[{"id":30358,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30359,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null}]} 
[2026-03-25 18:47:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6386,"items_count":2} 
[2026-03-25 18:47:07] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30358,"menu_item_id":396,"quantity":2},{"id":30359,"menu_item_id":98,"quantity":1}]} 
[2026-03-25 18:47:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6386,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["396|2|","98|1|"],"new_items_map_keys":["396|2|","98|1|"]} 
[2026-03-25 18:47:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6386,"order_number":"AZS-250326-016"} 
[2026-03-25 18:47:07] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6386,"order_number":"AZS-250326-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-25 18:47:07","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-25 18:47:07"} 
[2026-03-25 18:47:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6386,"order_number":"AZS-250326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-25 18:47:07"} 
[2026-03-25 18:47:07] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6386,"order_number":"AZS-250326-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-25 18:47:07","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1500.00","database_verification_match":true,"timestamp":"2026-03-25 18:47:07"} 
[2026-03-25 18:47:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6392,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"discount_percent":0,"notes":null,"id":30387},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":30387,"menu_item_id":384,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-25 18:47:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6392,"items_count":3} 
[2026-03-25 18:47:28] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30387,"menu_item_id":384,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2}]} 
[2026-03-25 18:47:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6392,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["384|1|"],"new_items_map_keys":["384|1|","105|1|","396|2|"]} 
[2026-03-25 18:47:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6392,"order_number":"AZS-250326-018"} 
[2026-03-25 18:47:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-018","replaced_order_id":6392} 
[2026-03-25 18:47:28] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6393,"items_count":3,"items":[{"menu_item_id":384,"quantity":1,"price":"1399.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"}]} 
[2026-03-25 18:47:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6393,"item_index":0,"item_data":{"menu_item_id":384,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 03","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6393}} 
[2026-03-25 18:47:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6393,"item_index":0,"menu_item_id":384} 
[2026-03-25 18:47:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6393,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6393}} 
[2026-03-25 18:47:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6393,"item_index":1,"menu_item_id":105} 
[2026-03-25 18:47:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6393,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6393}} 
[2026-03-25 18:47:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6393,"item_index":2,"menu_item_id":396} 
[2026-03-25 18:47:28] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6392,"new_order_id":6393,"order_number":"AZS-250326-018"} 
[2026-03-25 19:03:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6388,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":30367},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30368},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30367,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":30368,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-25 19:03:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6388,"items_count":3} 
[2026-03-25 19:03:54] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30367,"menu_item_id":113,"quantity":1},{"id":30368,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-25 19:03:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6388,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["113|1|","396|2|"],"new_items_map_keys":["113|1|","396|2|","2|1|"]} 
[2026-03-25 19:03:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6388,"order_number":"AZS-250326-017"} 
[2026-03-25 19:03:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-017","replaced_order_id":6388} 
[2026-03-25 19:03:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6395,"items_count":3,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-25 19:03:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6395,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6395}} 
[2026-03-25 19:03:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6395,"item_index":0,"menu_item_id":113} 
[2026-03-25 19:03:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6395,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6395}} 
[2026-03-25 19:03:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6395,"item_index":1,"menu_item_id":396} 
[2026-03-25 19:03:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6395,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6395}} 
[2026-03-25 19:03:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6395,"item_index":2,"menu_item_id":2} 
[2026-03-25 19:03:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6388,"new_order_id":6395,"order_number":"AZS-250326-017"} 
[2026-03-25 19:11:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6395,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30399},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30400},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30401}],"validated_items":[{"id":30399,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30400,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30401,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-25 19:11:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6395,"items_count":3} 
[2026-03-25 19:11:18] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30399,"menu_item_id":113,"quantity":1},{"id":30400,"menu_item_id":396,"quantity":2},{"id":30401,"menu_item_id":2,"quantity":1}]} 
[2026-03-25 19:11:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6395,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["113|1|","396|2|","2|1|"],"new_items_map_keys":["113|1|","396|2|","2|1|"]} 
[2026-03-25 19:11:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6395,"order_number":"AZS-250326-017"} 
[2026-03-25 19:11:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6395,"order_number":"AZS-250326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 19:11:18"} 
[2026-03-25 19:11:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6395,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":30399},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30400},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":30401},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30399,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":30400,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":30401,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-25 19:11:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6395,"items_count":4} 
[2026-03-25 19:11:40] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30399,"menu_item_id":113,"quantity":1},{"id":30400,"menu_item_id":396,"quantity":2},{"id":30401,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-25 19:11:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6395,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["113|1|","396|2|","2|1|"],"new_items_map_keys":["113|1|","396|2|","2|1|","5|1|"]} 
[2026-03-25 19:11:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6395,"order_number":"AZS-250326-017"} 
[2026-03-25 19:11:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-017","replaced_order_id":6395} 
[2026-03-25 19:11:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6397,"items_count":4,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-25 19:11:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6397,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6397}} 
[2026-03-25 19:11:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6397,"item_index":0,"menu_item_id":113} 
[2026-03-25 19:11:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6397,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6397}} 
[2026-03-25 19:11:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6397,"item_index":1,"menu_item_id":396} 
[2026-03-25 19:11:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6397,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6397}} 
[2026-03-25 19:11:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6397,"item_index":2,"menu_item_id":2} 
[2026-03-25 19:11:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6397,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6397}} 
[2026-03-25 19:11:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6397,"item_index":3,"menu_item_id":5} 
[2026-03-25 19:11:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6395,"new_order_id":6397,"order_number":"AZS-250326-017"} 
[2026-03-25 19:11:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6397,"item_index":0,"item_id":30399} 
[2026-03-25 19:11:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6397,"item_index":1,"item_id":30400} 
[2026-03-25 19:11:47] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6397,"item_index":2,"item_id":30401} 
[2026-03-25 19:11:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6397,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30399},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30400},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30401},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-25 19:11:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6397,"items_count":4} 
[2026-03-25 19:11:47] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[30403,30404,30405,30406],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-25 19:11:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6397,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","396|2|","2|1|","5|1|"],"new_items_map_keys":["113|1|","396|2|","2|1|","5|1|"]} 
[2026-03-25 19:11:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6397,"order_number":"AZS-250326-017"} 
[2026-03-25 19:11:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6397,"order_number":"AZS-250326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 19:11:47"} 
[2026-03-25 19:13:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6397,"item_index":0,"item_id":30399} 
[2026-03-25 19:13:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6397,"item_index":1,"item_id":30400} 
[2026-03-25 19:13:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6397,"item_index":2,"item_id":30401} 
[2026-03-25 19:13:33] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6397,"order_number":"AZS-250326-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 19:13:33"} 
[2026-03-25 19:13:33] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6397,"order_number":"AZS-250326-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 19:13:33"} 
[2026-03-25 19:13:33] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6397,"order_number":"AZS-250326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 19:13:33"} 
[2026-03-25 19:13:33] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6397,"order_number":"AZS-250326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 19:13:33"} 
[2026-03-25 19:13:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6397,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30399},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30400},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30401},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-25 19:13:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6397,"items_count":4} 
[2026-03-25 19:13:33] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[30403,30404,30405,30406],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-25 19:13:33] local.INFO: PosOrderController::update - Item changes check {"order_id":6397,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","396|2|","2|1|","5|1|"],"new_items_map_keys":["113|1|","396|2|","2|1|","5|1|"]} 
[2026-03-25 19:13:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6397,"order_number":"AZS-250326-017"} 
[2026-03-25 19:13:33] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6397,"order_number":"AZS-250326-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-25 19:13:33","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-25 19:13:33"} 
[2026-03-25 19:13:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6397,"order_number":"AZS-250326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-25 19:13:33"} 
[2026-03-25 19:13:33] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6397,"order_number":"AZS-250326-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-25 19:13:33","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-25 19:13:33"} 
[2026-03-25 19:15:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T07:15:51.720Z","date_to":"2026-03-25T19:15:51.720Z","per_page":"100"} 
[2026-03-25 19:15:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T07:15:51.714Z","date_to":"2026-03-25T19:15:51.714Z","per_page":"100"} 
[2026-03-25 19:15:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-021","AZS-250326-020","AZS-250326-019","AZS-250326-018","AZS-250326-017","AZS-250326-016","AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-25 19:15:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-021","AZS-250326-020","AZS-250326-019","AZS-250326-018","AZS-250326-017","AZS-250326-016","AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-25 19:15:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T07:15:51.714Z","date_to":"2026-03-25T19:15:51.714Z","per_page":"100"} 
[2026-03-25 19:15:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-021","AZS-250326-020","AZS-250326-019","AZS-250326-018","AZS-250326-017","AZS-250326-016","AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-25 19:16:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6394,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":30391},{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null,"id":30392},{"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null,"id":30393},{"menu_item_id":48,"quantity":3,"discount_percent":0,"notes":null,"id":30394},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":30395},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":30396},{"menu_item_id":56,"quantity":4,"discount_percent":0,"notes":null,"id":30397},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":30398}],"validated_items":[{"id":30391,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":30392,"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null},{"id":30393,"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null},{"id":30394,"menu_item_id":48,"quantity":3,"discount_percent":0,"notes":null},{"id":30395,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":30396,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":30397,"menu_item_id":56,"quantity":4,"discount_percent":0,"notes":null},{"id":30398,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-25 19:16:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6394,"items_count":8} 
[2026-03-25 19:16:23] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30391,"menu_item_id":97,"quantity":1},{"id":30392,"menu_item_id":114,"quantity":2},{"id":30393,"menu_item_id":62,"quantity":3},{"id":30394,"menu_item_id":48,"quantity":3},{"id":30395,"menu_item_id":396,"quantity":5},{"id":30396,"menu_item_id":61,"quantity":3},{"id":30397,"menu_item_id":56,"quantity":4},{"id":30398,"menu_item_id":5,"quantity":2}]} 
[2026-03-25 19:16:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6394,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["97|1|","114|2|","62|3|","48|3|","396|5|","61|3|","56|3|","5|2|"],"new_items_map_keys":["97|1|","114|2|","62|3|","48|3|","396|5|","61|3|","56|4|","5|2|"]} 
[2026-03-25 19:16:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6394,"order_number":"AZS-250326-019"} 
[2026-03-25 19:16:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-019","replaced_order_id":6394} 
[2026-03-25 19:16:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6399,"items_count":8,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":114,"quantity":2,"price":"2299.00"},{"menu_item_id":62,"quantity":3,"price":"1499.00"},{"menu_item_id":48,"quantity":3,"price":"250.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":4,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"}]} 
[2026-03-25 19:16:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6399,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6399}} 
[2026-03-25 19:16:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6399,"item_index":0,"menu_item_id":97} 
[2026-03-25 19:16:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6399,"item_index":1,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6399}} 
[2026-03-25 19:16:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6399,"item_index":1,"menu_item_id":114} 
[2026-03-25 19:16:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6399,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":3,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":4497.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6399}} 
[2026-03-25 19:16:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6399,"item_index":2,"menu_item_id":62} 
[2026-03-25 19:16:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6399,"item_index":3,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":3,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":750.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6399}} 
[2026-03-25 19:16:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6399,"item_index":3,"menu_item_id":48} 
[2026-03-25 19:16:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6399,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6399}} 
[2026-03-25 19:16:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6399,"item_index":4,"menu_item_id":396} 
[2026-03-25 19:16:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6399,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6399}} 
[2026-03-25 19:16:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6399,"item_index":5,"menu_item_id":61} 
[2026-03-25 19:16:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6399,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6399}} 
[2026-03-25 19:16:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6399,"item_index":6,"menu_item_id":56} 
[2026-03-25 19:16:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6399,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6399}} 
[2026-03-25 19:16:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6399,"item_index":7,"menu_item_id":5} 
[2026-03-25 19:16:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6394,"new_order_id":6399,"order_number":"AZS-250326-019"} 
[2026-03-25 19:23:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6399,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":30409},{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null,"id":30410},{"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null,"id":30411},{"menu_item_id":48,"quantity":3,"discount_percent":0,"notes":null,"id":30412},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":30413},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":30414},{"menu_item_id":56,"quantity":4,"discount_percent":0,"notes":null,"id":30415},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":30416}],"validated_items":[{"id":30409,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":30410,"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null},{"id":30411,"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null},{"id":30412,"menu_item_id":48,"quantity":3,"discount_percent":0,"notes":null},{"id":30413,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":30414,"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"id":30415,"menu_item_id":56,"quantity":4,"discount_percent":0,"notes":null},{"id":30416,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-25 19:23:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6399,"items_count":8} 
[2026-03-25 19:23:39] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30409,"menu_item_id":97,"quantity":1},{"id":30410,"menu_item_id":114,"quantity":2},{"id":30411,"menu_item_id":62,"quantity":3},{"id":30412,"menu_item_id":48,"quantity":3},{"id":30413,"menu_item_id":396,"quantity":5},{"id":30414,"menu_item_id":61,"quantity":4},{"id":30415,"menu_item_id":56,"quantity":4},{"id":30416,"menu_item_id":5,"quantity":2}]} 
[2026-03-25 19:23:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6399,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["97|1|","114|2|","62|3|","48|3|","396|5|","61|3|","56|4|","5|2|"],"new_items_map_keys":["97|1|","114|2|","62|3|","48|3|","396|5|","61|4|","56|4|","5|2|"]} 
[2026-03-25 19:23:39] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6399,"order_number":"AZS-250326-019"} 
[2026-03-25 19:23:39] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-019","replaced_order_id":6399} 
[2026-03-25 19:23:39] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6400,"items_count":8,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":114,"quantity":2,"price":"2299.00"},{"menu_item_id":62,"quantity":3,"price":"1499.00"},{"menu_item_id":48,"quantity":3,"price":"250.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":61,"quantity":4,"price":"199.00"},{"menu_item_id":56,"quantity":4,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"}]} 
[2026-03-25 19:23:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6400,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6400}} 
[2026-03-25 19:23:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6400,"item_index":0,"menu_item_id":97} 
[2026-03-25 19:23:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6400,"item_index":1,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6400}} 
[2026-03-25 19:23:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6400,"item_index":1,"menu_item_id":114} 
[2026-03-25 19:23:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6400,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":3,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":4497.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6400}} 
[2026-03-25 19:23:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6400,"item_index":2,"menu_item_id":62} 
[2026-03-25 19:23:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6400,"item_index":3,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":3,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":750.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6400}} 
[2026-03-25 19:23:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6400,"item_index":3,"menu_item_id":48} 
[2026-03-25 19:23:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6400,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6400}} 
[2026-03-25 19:23:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6400,"item_index":4,"menu_item_id":396} 
[2026-03-25 19:23:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6400,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6400}} 
[2026-03-25 19:23:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6400,"item_index":5,"menu_item_id":61} 
[2026-03-25 19:23:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6400,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6400}} 
[2026-03-25 19:23:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6400,"item_index":6,"menu_item_id":56} 
[2026-03-25 19:23:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6400,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6400}} 
[2026-03-25 19:23:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6400,"item_index":7,"menu_item_id":5} 
[2026-03-25 19:23:39] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6399,"new_order_id":6400,"order_number":"AZS-250326-019"} 
[2026-03-25 19:25:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6393,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"discount_percent":0,"notes":null,"id":30388},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":30389},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30390},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30388,"menu_item_id":384,"quantity":1,"discount_percent":0,"notes":null},{"id":30389,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":30390,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-25 19:25:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6393,"items_count":4} 
[2026-03-25 19:25:13] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30388,"menu_item_id":384,"quantity":1},{"id":30389,"menu_item_id":105,"quantity":1},{"id":30390,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-03-25 19:25:13] local.INFO: PosOrderController::update - Item changes check {"order_id":6393,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["384|1|","105|1|","396|2|"],"new_items_map_keys":["384|1|","105|1|","396|2|","61|1|"]} 
[2026-03-25 19:25:13] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6393,"order_number":"AZS-250326-018"} 
[2026-03-25 19:25:13] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-018","replaced_order_id":6393} 
[2026-03-25 19:25:13] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6401,"items_count":4,"items":[{"menu_item_id":384,"quantity":1,"price":"1399.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"}]} 
[2026-03-25 19:25:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6401,"item_index":0,"item_data":{"menu_item_id":384,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 03","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6401}} 
[2026-03-25 19:25:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6401,"item_index":0,"menu_item_id":384} 
[2026-03-25 19:25:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6401,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6401}} 
[2026-03-25 19:25:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6401,"item_index":1,"menu_item_id":105} 
[2026-03-25 19:25:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6401,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6401}} 
[2026-03-25 19:25:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6401,"item_index":2,"menu_item_id":396} 
[2026-03-25 19:25:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6401,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6401}} 
[2026-03-25 19:25:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6401,"item_index":3,"menu_item_id":61} 
[2026-03-25 19:25:13] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6393,"new_order_id":6401,"order_number":"AZS-250326-018"} 
[2026-03-25 19:25:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T07:25:21.023Z","date_to":"2026-03-25T19:25:21.023Z","per_page":"100"} 
[2026-03-25 19:25:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T07:25:21.035Z","date_to":"2026-03-25T19:25:21.035Z","per_page":"100"} 
[2026-03-25 19:25:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-021","AZS-250326-020","AZS-250326-019","AZS-250326-018","AZS-250326-017","AZS-250326-016","AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-25 19:25:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-021","AZS-250326-020","AZS-250326-019","AZS-250326-018","AZS-250326-017","AZS-250326-016","AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-25 19:25:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T07:25:21.023Z","date_to":"2026-03-25T19:25:21.023Z","per_page":"100"} 
[2026-03-25 19:25:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-021","AZS-250326-020","AZS-250326-019","AZS-250326-018","AZS-250326-017","AZS-250326-016","AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":4,"unique_order_numbers":21} 
[2026-03-25 19:33:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6401,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"discount_percent":0,"notes":null,"id":30425},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":30426},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30427},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30428},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30425,"menu_item_id":384,"quantity":1,"discount_percent":0,"notes":null},{"id":30426,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":30427,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":30428,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-25 19:33:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6401,"items_count":5} 
[2026-03-25 19:33:46] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30425,"menu_item_id":384,"quantity":1},{"id":30426,"menu_item_id":105,"quantity":1},{"id":30427,"menu_item_id":396,"quantity":2},{"id":30428,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-25 19:33:46] local.INFO: PosOrderController::update - Item changes check {"order_id":6401,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["384|1|","105|1|","396|2|","61|1|"],"new_items_map_keys":["384|1|","105|1|","396|2|","61|1|","2|1|"]} 
[2026-03-25 19:33:46] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6401,"order_number":"AZS-250326-018"} 
[2026-03-25 19:33:46] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-018","replaced_order_id":6401} 
[2026-03-25 19:33:46] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6402,"items_count":5,"items":[{"menu_item_id":384,"quantity":1,"price":"1399.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-25 19:33:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6402,"item_index":0,"item_data":{"menu_item_id":384,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 03","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6402}} 
[2026-03-25 19:33:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6402,"item_index":0,"menu_item_id":384} 
[2026-03-25 19:33:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6402,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6402}} 
[2026-03-25 19:33:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6402,"item_index":1,"menu_item_id":105} 
[2026-03-25 19:33:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6402,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6402}} 
[2026-03-25 19:33:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6402,"item_index":2,"menu_item_id":396} 
[2026-03-25 19:33:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6402,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6402}} 
[2026-03-25 19:33:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6402,"item_index":3,"menu_item_id":61} 
[2026-03-25 19:33:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6402,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6402}} 
[2026-03-25 19:33:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6402,"item_index":4,"menu_item_id":2} 
[2026-03-25 19:33:46] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6401,"new_order_id":6402,"order_number":"AZS-250326-018"} 
[2026-03-25 19:33:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6402,"item_index":0,"item_id":30425} 
[2026-03-25 19:33:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6402,"item_index":1,"item_id":30426} 
[2026-03-25 19:33:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6402,"item_index":2,"item_id":30427} 
[2026-03-25 19:33:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6402,"item_index":3,"item_id":30428} 
[2026-03-25 19:33:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6402,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30425},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30426},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30427},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30428},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-25 19:33:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6402,"items_count":5} 
[2026-03-25 19:33:53] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[30429,30430,30431,30432,30433],"items":[{"id":null,"menu_item_id":384,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-25 19:33:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6402,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["384|1|","105|1|","396|2|","61|1|","2|1|"],"new_items_map_keys":["384|1|","105|1|","396|2|","61|1|","2|1|"]} 
[2026-03-25 19:33:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6402,"order_number":"AZS-250326-018"} 
[2026-03-25 19:33:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6402,"order_number":"AZS-250326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 19:33:53"} 
[2026-03-25 19:37:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6398,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":30407},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30408}],"validated_items":[{"id":30407,"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null},{"id":30408,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-25 19:37:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6398,"items_count":2} 
[2026-03-25 19:37:02] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30407,"menu_item_id":13,"quantity":5},{"id":30408,"menu_item_id":5,"quantity":1}]} 
[2026-03-25 19:37:02] local.INFO: PosOrderController::update - Item changes check {"order_id":6398,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|5|","5|1|"],"new_items_map_keys":["13|5|","5|1|"]} 
[2026-03-25 19:37:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6398,"order_number":"AZS-250326-021"} 
[2026-03-25 19:37:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6398,"order_number":"AZS-250326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 19:37:02"} 
[2026-03-25 19:44:59] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6398,"order_number":"AZS-250326-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 19:44:59"} 
[2026-03-25 19:44:59] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6398,"order_number":"AZS-250326-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 19:44:59"} 
[2026-03-25 19:44:59] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6398,"order_number":"AZS-250326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 19:44:59"} 
[2026-03-25 19:44:59] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6398,"order_number":"AZS-250326-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 19:44:59"} 
[2026-03-25 19:44:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6398,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":30407},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30408}],"validated_items":[{"id":30407,"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null},{"id":30408,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-25 19:44:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6398,"items_count":2} 
[2026-03-25 19:44:59] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30407,"menu_item_id":13,"quantity":5},{"id":30408,"menu_item_id":5,"quantity":1}]} 
[2026-03-25 19:44:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6398,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|5|","5|1|"],"new_items_map_keys":["13|5|","5|1|"]} 
[2026-03-25 19:44:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6398,"order_number":"AZS-250326-021"} 
[2026-03-25 19:44:59] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6398,"order_number":"AZS-250326-021","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-25 19:44:59","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-25 19:44:59"} 
[2026-03-25 19:44:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6398,"order_number":"AZS-250326-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-25 19:44:59"} 
[2026-03-25 19:44:59] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6398,"order_number":"AZS-250326-021","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-25 19:44:59","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-25 19:44:59"} 
[2026-03-25 19:45:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6396,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":30402}],"validated_items":[{"id":30402,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null}]} 
[2026-03-25 19:45:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6396,"items_count":1} 
[2026-03-25 19:45:08] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30402,"menu_item_id":385,"quantity":1}]} 
[2026-03-25 19:45:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6396,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-03-25 19:45:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6396,"order_number":"AZS-250326-020"} 
[2026-03-25 19:45:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6396,"order_number":"AZS-250326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 19:45:08"} 
[2026-03-25 19:50:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6402,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30429},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30430},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30431},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30432},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30433}],"validated_items":[{"id":30429,"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30430,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":30431,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30432,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30433,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-25 19:50:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6402,"items_count":5} 
[2026-03-25 19:50:35] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30429,"menu_item_id":384,"quantity":1},{"id":30430,"menu_item_id":105,"quantity":1},{"id":30431,"menu_item_id":396,"quantity":2},{"id":30432,"menu_item_id":61,"quantity":1},{"id":30433,"menu_item_id":2,"quantity":1}]} 
[2026-03-25 19:50:35] local.INFO: PosOrderController::update - Item changes check {"order_id":6402,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["384|1|","105|1|","396|2|","61|1|","2|1|"],"new_items_map_keys":["384|1|","105|1|","396|2|","61|1|","2|1|"]} 
[2026-03-25 19:50:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6402,"order_number":"AZS-250326-018"} 
[2026-03-25 19:50:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6402,"order_number":"AZS-250326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 19:50:35"} 
[2026-03-25 19:50:54] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6402,"order_number":"AZS-250326-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 19:50:54"} 
[2026-03-25 19:50:54] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6402,"order_number":"AZS-250326-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 19:50:54"} 
[2026-03-25 19:50:54] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6402,"order_number":"AZS-250326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 19:50:54"} 
[2026-03-25 19:50:54] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6402,"order_number":"AZS-250326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 19:50:54"} 
[2026-03-25 19:50:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6402,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30429},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30430},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30431},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30432},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30433}],"validated_items":[{"id":30429,"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30430,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":30431,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30432,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30433,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-25 19:50:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6402,"items_count":5} 
[2026-03-25 19:50:54] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30429,"menu_item_id":384,"quantity":1},{"id":30430,"menu_item_id":105,"quantity":1},{"id":30431,"menu_item_id":396,"quantity":2},{"id":30432,"menu_item_id":61,"quantity":1},{"id":30433,"menu_item_id":2,"quantity":1}]} 
[2026-03-25 19:50:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6402,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["384|1|","105|1|","396|2|","61|1|","2|1|"],"new_items_map_keys":["384|1|","105|1|","396|2|","61|1|","2|1|"]} 
[2026-03-25 19:50:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6402,"order_number":"AZS-250326-018"} 
[2026-03-25 19:50:54] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6402,"order_number":"AZS-250326-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-25 19:50:54","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-25 19:50:54"} 
[2026-03-25 19:50:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6402,"order_number":"AZS-250326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-25 19:50:54"} 
[2026-03-25 19:50:54] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6402,"order_number":"AZS-250326-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-25 19:50:54","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-25 19:50:54"} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6400,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":30417},{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null,"id":30418},{"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null,"id":30419},{"menu_item_id":48,"quantity":3,"discount_percent":0,"notes":null,"id":30420},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":30421},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":30422},{"menu_item_id":56,"quantity":4,"discount_percent":0,"notes":null,"id":30423},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":30424},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":30417,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":30418,"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null},{"id":30419,"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null},{"id":30420,"menu_item_id":48,"quantity":3,"discount_percent":0,"notes":null},{"id":30421,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":30422,"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"id":30423,"menu_item_id":56,"quantity":4,"discount_percent":0,"notes":null},{"id":30424,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6400,"items_count":9} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30417,"menu_item_id":97,"quantity":1},{"id":30418,"menu_item_id":114,"quantity":2},{"id":30419,"menu_item_id":62,"quantity":3},{"id":30420,"menu_item_id":48,"quantity":3},{"id":30421,"menu_item_id":396,"quantity":5},{"id":30422,"menu_item_id":61,"quantity":4},{"id":30423,"menu_item_id":56,"quantity":4},{"id":30424,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":3}]} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6400,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["97|1|","114|2|","62|3|","48|3|","396|5|","61|4|","56|4|","5|2|"],"new_items_map_keys":["97|1|","114|2|","62|3|","48|3|","396|5|","61|4|","56|4|","5|2|","3|3|"]} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6400,"order_number":"AZS-250326-019"} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-019","replaced_order_id":6400} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6403,"items_count":9,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":114,"quantity":2,"price":"2299.00"},{"menu_item_id":62,"quantity":3,"price":"1499.00"},{"menu_item_id":48,"quantity":3,"price":"250.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":61,"quantity":4,"price":"199.00"},{"menu_item_id":56,"quantity":4,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":3,"price":"270.00"}]} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6403,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6403}} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6403,"item_index":0,"menu_item_id":97} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6403,"item_index":1,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6403}} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6403,"item_index":1,"menu_item_id":114} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6403,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":3,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":4497.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6403}} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6403,"item_index":2,"menu_item_id":62} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6403,"item_index":3,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":3,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":750.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6403}} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6403,"item_index":3,"menu_item_id":48} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6403,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6403}} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6403,"item_index":4,"menu_item_id":396} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6403,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6403}} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6403,"item_index":5,"menu_item_id":61} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6403,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6403}} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6403,"item_index":6,"menu_item_id":56} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6403,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6403}} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6403,"item_index":7,"menu_item_id":5} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6403,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":3,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":810.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6403}} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6403,"item_index":8,"menu_item_id":3} 
[2026-03-25 19:51:21] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6400,"new_order_id":6403,"order_number":"AZS-250326-019"} 
[2026-03-25 19:54:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6403,"item_index":0,"item_id":30417} 
[2026-03-25 19:54:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6403,"item_index":1,"item_id":30418} 
[2026-03-25 19:54:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6403,"item_index":2,"item_id":30419} 
[2026-03-25 19:54:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6403,"item_index":3,"item_id":30420} 
[2026-03-25 19:54:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6403,"item_index":4,"item_id":30421} 
[2026-03-25 19:54:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6403,"item_index":5,"item_id":30422} 
[2026-03-25 19:54:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6403,"item_index":6,"item_id":30423} 
[2026-03-25 19:54:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6403,"item_index":7,"item_id":30424} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":9,"order_id":6403,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":30417},{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null,"id":30418},{"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null,"id":30419},{"menu_item_id":48,"quantity":6,"discount_percent":0,"notes":null,"id":30420},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":30421},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":30422},{"menu_item_id":56,"quantity":4,"discount_percent":0,"notes":null,"id":30423},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":30424},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":6,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6403,"items_count":9} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":9,"items_to_remove":[30434,30435,30436,30437,30438,30439,30440,30441,30442],"items":[{"id":null,"menu_item_id":97,"quantity":1},{"id":null,"menu_item_id":114,"quantity":2},{"id":null,"menu_item_id":62,"quantity":3},{"id":null,"menu_item_id":48,"quantity":6},{"id":null,"menu_item_id":396,"quantity":5},{"id":null,"menu_item_id":61,"quantity":4},{"id":null,"menu_item_id":56,"quantity":4},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":3}]} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6403,"has_item_changes":true,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["97|1|","114|2|","62|3|","48|3|","396|5|","61|4|","56|4|","5|2|","3|3|"],"new_items_map_keys":["97|1|","114|2|","62|3|","48|6|","396|5|","61|4|","56|4|","5|2|","3|3|"]} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6403,"order_number":"AZS-250326-019"} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-019","replaced_order_id":6403} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6404,"items_count":9,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":114,"quantity":2,"price":"2299.00"},{"menu_item_id":62,"quantity":3,"price":"1499.00"},{"menu_item_id":48,"quantity":6,"price":"250.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":61,"quantity":4,"price":"199.00"},{"menu_item_id":56,"quantity":4,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":3,"price":"270.00"}]} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6404,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6404}} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6404,"item_index":0,"menu_item_id":97} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6404,"item_index":1,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6404}} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6404,"item_index":1,"menu_item_id":114} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6404,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":3,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":4497.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6404}} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6404,"item_index":2,"menu_item_id":62} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6404,"item_index":3,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":6,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6404}} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6404,"item_index":3,"menu_item_id":48} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6404,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6404}} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6404,"item_index":4,"menu_item_id":396} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6404,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6404}} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6404,"item_index":5,"menu_item_id":61} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6404,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6404}} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6404,"item_index":6,"menu_item_id":56} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6404,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6404}} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6404,"item_index":7,"menu_item_id":5} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6404,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":3,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":810.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6404}} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6404,"item_index":8,"menu_item_id":3} 
[2026-03-25 19:54:04] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6403,"new_order_id":6404,"order_number":"AZS-250326-019"} 
[2026-03-25 19:54:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6404,"item_index":0,"item_id":30417} 
[2026-03-25 19:54:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6404,"item_index":1,"item_id":30418} 
[2026-03-25 19:54:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6404,"item_index":2,"item_id":30419} 
[2026-03-25 19:54:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6404,"item_index":3,"item_id":30420} 
[2026-03-25 19:54:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6404,"item_index":4,"item_id":30421} 
[2026-03-25 19:54:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6404,"item_index":5,"item_id":30422} 
[2026-03-25 19:54:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6404,"item_index":6,"item_id":30423} 
[2026-03-25 19:54:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6404,"item_index":7,"item_id":30424} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":9,"order_id":6404,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":30417},{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null,"id":30418},{"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null,"id":30419},{"menu_item_id":48,"quantity":6,"discount_percent":0,"notes":null,"id":30420},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":30421},{"menu_item_id":61,"quantity":5,"discount_percent":0,"notes":null,"id":30422},{"menu_item_id":56,"quantity":4,"discount_percent":0,"notes":null,"id":30423},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":30424},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":6,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6404,"items_count":9} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":9,"items_to_remove":[30443,30444,30445,30446,30447,30448,30449,30450,30451],"items":[{"id":null,"menu_item_id":97,"quantity":1},{"id":null,"menu_item_id":114,"quantity":2},{"id":null,"menu_item_id":62,"quantity":3},{"id":null,"menu_item_id":48,"quantity":6},{"id":null,"menu_item_id":396,"quantity":5},{"id":null,"menu_item_id":61,"quantity":5},{"id":null,"menu_item_id":56,"quantity":4},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":3}]} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6404,"has_item_changes":true,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["97|1|","114|2|","62|3|","48|6|","396|5|","61|4|","56|4|","5|2|","3|3|"],"new_items_map_keys":["97|1|","114|2|","62|3|","48|6|","396|5|","61|5|","56|4|","5|2|","3|3|"]} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6404,"order_number":"AZS-250326-019"} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-019","replaced_order_id":6404} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6405,"items_count":9,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":114,"quantity":2,"price":"2299.00"},{"menu_item_id":62,"quantity":3,"price":"1499.00"},{"menu_item_id":48,"quantity":6,"price":"250.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":61,"quantity":5,"price":"199.00"},{"menu_item_id":56,"quantity":4,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":3,"price":"270.00"}]} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6405,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6405}} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6405,"item_index":0,"menu_item_id":97} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6405,"item_index":1,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6405}} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6405,"item_index":1,"menu_item_id":114} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6405,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":3,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":4497.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6405}} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6405,"item_index":2,"menu_item_id":62} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6405,"item_index":3,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":6,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6405}} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6405,"item_index":3,"menu_item_id":48} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6405,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6405}} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6405,"item_index":4,"menu_item_id":396} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6405,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":5,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":995.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6405}} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6405,"item_index":5,"menu_item_id":61} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6405,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6405}} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6405,"item_index":6,"menu_item_id":56} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6405,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6405}} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6405,"item_index":7,"menu_item_id":5} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6405,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":3,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":810.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6405}} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6405,"item_index":8,"menu_item_id":3} 
[2026-03-25 19:54:14] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6404,"new_order_id":6405,"order_number":"AZS-250326-019"} 
[2026-03-25 19:55:09] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6396,"order_number":"AZS-250326-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 19:55:09"} 
[2026-03-25 19:55:09] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6396,"order_number":"AZS-250326-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 19:55:09"} 
[2026-03-25 19:55:09] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6396,"order_number":"AZS-250326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 19:55:09"} 
[2026-03-25 19:55:09] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6396,"order_number":"AZS-250326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 19:55:09"} 
[2026-03-25 19:55:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6396,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":30402}],"validated_items":[{"id":30402,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null}]} 
[2026-03-25 19:55:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6396,"items_count":1} 
[2026-03-25 19:55:09] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30402,"menu_item_id":385,"quantity":1}]} 
[2026-03-25 19:55:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6396,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-03-25 19:55:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6396,"order_number":"AZS-250326-020"} 
[2026-03-25 19:55:09] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6396,"order_number":"AZS-250326-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-25 19:55:09","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-25 19:55:09"} 
[2026-03-25 19:55:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6396,"order_number":"AZS-250326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-25 19:55:09"} 
[2026-03-25 19:55:09] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6396,"order_number":"AZS-250326-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-25 19:55:09","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-25 19:55:09"} 
[2026-03-25 19:55:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T07:55:13.938Z","date_to":"2026-03-25T19:55:13.938Z","per_page":"100"} 
[2026-03-25 19:55:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-021","AZS-250326-020","AZS-250326-019","AZS-250326-018","AZS-250326-017","AZS-250326-016","AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":1,"unique_order_numbers":21} 
[2026-03-25 19:55:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T07:55:13.950Z","date_to":"2026-03-25T19:55:13.950Z","per_page":"100"} 
[2026-03-25 19:55:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-021","AZS-250326-020","AZS-250326-019","AZS-250326-018","AZS-250326-017","AZS-250326-016","AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":1,"unique_order_numbers":21} 
[2026-03-25 19:55:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T07:55:13.938Z","date_to":"2026-03-25T19:55:13.938Z","per_page":"100"} 
[2026-03-25 19:55:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-021","AZS-250326-020","AZS-250326-019","AZS-250326-018","AZS-250326-017","AZS-250326-016","AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":1,"unique_order_numbers":21} 
[2026-03-25 20:00:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6405,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":30452},{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null,"id":30453},{"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null,"id":30454},{"menu_item_id":48,"quantity":6,"discount_percent":0,"notes":null,"id":30455},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":30456},{"menu_item_id":61,"quantity":5,"discount_percent":0,"notes":null,"id":30457},{"menu_item_id":56,"quantity":4,"discount_percent":0,"notes":null,"id":30458},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":30459},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null,"id":30460}],"validated_items":[{"id":30452,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":30453,"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null},{"id":30454,"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null},{"id":30455,"menu_item_id":48,"quantity":6,"discount_percent":0,"notes":null},{"id":30456,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":30457,"menu_item_id":61,"quantity":5,"discount_percent":0,"notes":null},{"id":30458,"menu_item_id":56,"quantity":4,"discount_percent":0,"notes":null},{"id":30459,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":30460,"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-25 20:00:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6405,"items_count":9} 
[2026-03-25 20:00:24] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30452,"menu_item_id":97,"quantity":1},{"id":30453,"menu_item_id":114,"quantity":2},{"id":30454,"menu_item_id":62,"quantity":3},{"id":30455,"menu_item_id":48,"quantity":6},{"id":30456,"menu_item_id":396,"quantity":5},{"id":30457,"menu_item_id":61,"quantity":5},{"id":30458,"menu_item_id":56,"quantity":4},{"id":30459,"menu_item_id":5,"quantity":2},{"id":30460,"menu_item_id":3,"quantity":3}]} 
[2026-03-25 20:00:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6405,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["97|1|","114|2|","62|3|","48|6|","396|5|","61|5|","56|4|","5|2|","3|3|"],"new_items_map_keys":["97|1|","114|2|","62|3|","48|6|","396|5|","61|5|","56|4|","5|2|","3|3|"]} 
[2026-03-25 20:00:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6405,"order_number":"AZS-250326-019"} 
[2026-03-25 20:00:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6405,"order_number":"AZS-250326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-25 20:00:24"} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6405,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":30452},{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null,"id":30453},{"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null,"id":30454},{"menu_item_id":48,"quantity":6,"discount_percent":0,"notes":null,"id":30455},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":30456},{"menu_item_id":61,"quantity":5,"discount_percent":0,"notes":null,"id":30457},{"menu_item_id":56,"quantity":4,"discount_percent":0,"notes":null,"id":30458},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":30459},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null,"id":30460},{"menu_item_id":13,"quantity":9,"discount_percent":0,"notes":null}],"validated_items":[{"id":30452,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":30453,"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null},{"id":30454,"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null},{"id":30455,"menu_item_id":48,"quantity":6,"discount_percent":0,"notes":null},{"id":30456,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":30457,"menu_item_id":61,"quantity":5,"discount_percent":0,"notes":null},{"id":30458,"menu_item_id":56,"quantity":4,"discount_percent":0,"notes":null},{"id":30459,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":30460,"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":9,"discount_percent":0,"notes":null}]} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6405,"items_count":10} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30452,"menu_item_id":97,"quantity":1},{"id":30453,"menu_item_id":114,"quantity":2},{"id":30454,"menu_item_id":62,"quantity":3},{"id":30455,"menu_item_id":48,"quantity":6},{"id":30456,"menu_item_id":396,"quantity":5},{"id":30457,"menu_item_id":61,"quantity":5},{"id":30458,"menu_item_id":56,"quantity":4},{"id":30459,"menu_item_id":5,"quantity":2},{"id":30460,"menu_item_id":3,"quantity":3},{"id":null,"menu_item_id":13,"quantity":9}]} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Item changes check {"order_id":6405,"has_item_changes":true,"old_items_count":9,"new_items_count":10,"old_items_map_keys":["97|1|","114|2|","62|3|","48|6|","396|5|","61|5|","56|4|","5|2|","3|3|"],"new_items_map_keys":["97|1|","114|2|","62|3|","48|6|","396|5|","61|5|","56|4|","5|2|","3|3|","13|9|"]} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6405,"order_number":"AZS-250326-019"} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-250326-019","replaced_order_id":6405} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6406,"items_count":10,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":114,"quantity":2,"price":"2299.00"},{"menu_item_id":62,"quantity":3,"price":"1499.00"},{"menu_item_id":48,"quantity":6,"price":"250.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":61,"quantity":5,"price":"199.00"},{"menu_item_id":56,"quantity":4,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":3,"price":"270.00"},{"menu_item_id":13,"quantity":9,"price":"249.00"}]} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6406,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6406}} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6406,"item_index":0,"menu_item_id":97} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6406,"item_index":1,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6406}} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6406,"item_index":1,"menu_item_id":114} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6406,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":3,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":4497.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6406}} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6406,"item_index":2,"menu_item_id":62} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6406,"item_index":3,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":6,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6406}} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6406,"item_index":3,"menu_item_id":48} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6406,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6406}} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6406,"item_index":4,"menu_item_id":396} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6406,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":5,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":995.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6406}} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6406,"item_index":5,"menu_item_id":61} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6406,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6406}} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6406,"item_index":6,"menu_item_id":56} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6406,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6406}} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6406,"item_index":7,"menu_item_id":5} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6406,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":3,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":810.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6406}} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6406,"item_index":8,"menu_item_id":3} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6406,"item_index":9,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":9,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":2241.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6406}} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6406,"item_index":9,"menu_item_id":13} 
[2026-03-25 20:09:13] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6405,"new_order_id":6406,"order_number":"AZS-250326-019"} 
[2026-03-25 20:15:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T08:15:31.068Z","date_to":"2026-03-25T20:15:31.068Z","per_page":"100"} 
[2026-03-25 20:15:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T08:15:31.053Z","date_to":"2026-03-25T20:15:31.053Z","per_page":"100"} 
[2026-03-25 20:15:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-022","AZS-250326-021","AZS-250326-020","AZS-250326-019","AZS-250326-018","AZS-250326-017","AZS-250326-016","AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":2,"unique_order_numbers":22} 
[2026-03-25 20:15:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-022","AZS-250326-021","AZS-250326-020","AZS-250326-019","AZS-250326-018","AZS-250326-017","AZS-250326-016","AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":2,"unique_order_numbers":22} 
[2026-03-25 20:15:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T08:15:31.053Z","date_to":"2026-03-25T20:15:31.053Z","per_page":"100"} 
[2026-03-25 20:15:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-022","AZS-250326-021","AZS-250326-020","AZS-250326-019","AZS-250326-018","AZS-250326-017","AZS-250326-016","AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":2,"unique_order_numbers":22} 
[2026-03-25 20:27:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6406,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":30461},{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":30462},{"menu_item_id":62,"quantity":3,"price":1499,"discount_percent":0,"notes":null,"id":30463},{"menu_item_id":48,"quantity":6,"price":250,"discount_percent":0,"notes":null,"id":30464},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":30465},{"menu_item_id":61,"quantity":5,"price":199,"discount_percent":0,"notes":null,"id":30466},{"menu_item_id":56,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":30467},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":30468},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null,"id":30469},{"menu_item_id":13,"quantity":9,"price":249,"discount_percent":0,"notes":null,"id":30470}],"validated_items":[{"id":30461,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":30462,"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"id":30463,"menu_item_id":62,"quantity":3,"price":1499,"discount_percent":0,"notes":null},{"id":30464,"menu_item_id":48,"quantity":6,"price":250,"discount_percent":0,"notes":null},{"id":30465,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":30466,"menu_item_id":61,"quantity":5,"price":199,"discount_percent":0,"notes":null},{"id":30467,"menu_item_id":56,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":30468,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":30469,"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null},{"id":30470,"menu_item_id":13,"quantity":9,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-25 20:27:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6406,"items_count":10} 
[2026-03-25 20:27:36] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30461,"menu_item_id":97,"quantity":1},{"id":30462,"menu_item_id":114,"quantity":2},{"id":30463,"menu_item_id":62,"quantity":3},{"id":30464,"menu_item_id":48,"quantity":6},{"id":30465,"menu_item_id":396,"quantity":5},{"id":30466,"menu_item_id":61,"quantity":5},{"id":30467,"menu_item_id":56,"quantity":4},{"id":30468,"menu_item_id":5,"quantity":2},{"id":30469,"menu_item_id":3,"quantity":3},{"id":30470,"menu_item_id":13,"quantity":9}]} 
[2026-03-25 20:27:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6406,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["97|1|","114|2|","62|3|","48|6|","396|5|","61|5|","56|4|","5|2|","3|3|","13|9|"],"new_items_map_keys":["97|1|","114|2|","62|3|","48|6|","396|5|","61|5|","56|4|","5|2|","3|3|","13|9|"]} 
[2026-03-25 20:27:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6406,"order_number":"AZS-250326-019"} 
[2026-03-25 20:27:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6406,"order_number":"AZS-250326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-25 20:27:36"} 
[2026-03-25 20:41:37] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6407,"order_number":"AZS-250326-022","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2099,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 20:41:37"} 
[2026-03-25 20:41:37] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6407,"order_number":"AZS-250326-022","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2099,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 20:41:37"} 
[2026-03-25 20:41:37] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6407,"order_number":"AZS-250326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2099,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 20:41:37"} 
[2026-03-25 20:41:37] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6407,"order_number":"AZS-250326-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2099,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 20:41:37"} 
[2026-03-25 20:41:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6407,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":30471}],"validated_items":[{"id":30471,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null}]} 
[2026-03-25 20:41:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6407,"items_count":1} 
[2026-03-25 20:41:37] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30471,"menu_item_id":386,"quantity":1}]} 
[2026-03-25 20:41:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6407,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|"]} 
[2026-03-25 20:41:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6407,"order_number":"AZS-250326-022"} 
[2026-03-25 20:41:37] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6407,"order_number":"AZS-250326-022","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2099,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-25 20:41:37","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-25 20:41:37"} 
[2026-03-25 20:41:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6407,"order_number":"AZS-250326-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-25 20:41:38"} 
[2026-03-25 20:41:38] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6407,"order_number":"AZS-250326-022","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2099.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-25 20:41:37","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2099,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2099.00","database_verification_match":true,"timestamp":"2026-03-25 20:41:38"} 
[2026-03-25 20:43:12] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6406,"order_number":"AZS-250326-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":19500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 20:43:12"} 
[2026-03-25 20:43:12] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6406,"order_number":"AZS-250326-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":19500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-25 20:43:12"} 
[2026-03-25 20:43:12] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6406,"order_number":"AZS-250326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":19500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 20:43:12"} 
[2026-03-25 20:43:12] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6406,"order_number":"AZS-250326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":19500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-25 20:43:12"} 
[2026-03-25 20:43:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6406,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":30461},{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":30462},{"menu_item_id":62,"quantity":3,"price":1499,"discount_percent":0,"notes":null,"id":30463},{"menu_item_id":48,"quantity":6,"price":250,"discount_percent":0,"notes":null,"id":30464},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":30465},{"menu_item_id":61,"quantity":5,"price":199,"discount_percent":0,"notes":null,"id":30466},{"menu_item_id":56,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":30467},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":30468},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null,"id":30469},{"menu_item_id":13,"quantity":9,"price":249,"discount_percent":0,"notes":null,"id":30470}],"validated_items":[{"id":30461,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":30462,"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"id":30463,"menu_item_id":62,"quantity":3,"price":1499,"discount_percent":0,"notes":null},{"id":30464,"menu_item_id":48,"quantity":6,"price":250,"discount_percent":0,"notes":null},{"id":30465,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":30466,"menu_item_id":61,"quantity":5,"price":199,"discount_percent":0,"notes":null},{"id":30467,"menu_item_id":56,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":30468,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":30469,"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null},{"id":30470,"menu_item_id":13,"quantity":9,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-25 20:43:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6406,"items_count":10} 
[2026-03-25 20:43:12] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30461,"menu_item_id":97,"quantity":1},{"id":30462,"menu_item_id":114,"quantity":2},{"id":30463,"menu_item_id":62,"quantity":3},{"id":30464,"menu_item_id":48,"quantity":6},{"id":30465,"menu_item_id":396,"quantity":5},{"id":30466,"menu_item_id":61,"quantity":5},{"id":30467,"menu_item_id":56,"quantity":4},{"id":30468,"menu_item_id":5,"quantity":2},{"id":30469,"menu_item_id":3,"quantity":3},{"id":30470,"menu_item_id":13,"quantity":9}]} 
[2026-03-25 20:43:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6406,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["97|1|","114|2|","62|3|","48|6|","396|5|","61|5|","56|4|","5|2|","3|3|","13|9|"],"new_items_map_keys":["97|1|","114|2|","62|3|","48|6|","396|5|","61|5|","56|4|","5|2|","3|3|","13|9|"]} 
[2026-03-25 20:43:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6406,"order_number":"AZS-250326-019"} 
[2026-03-25 20:43:12] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6406,"order_number":"AZS-250326-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":19500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-25 20:43:12","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-25 20:43:12"} 
[2026-03-25 20:43:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6406,"order_number":"AZS-250326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-25 20:43:12"} 
[2026-03-25 20:43:12] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6406,"order_number":"AZS-250326-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"19500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-25 20:43:12","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":19500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"19500.00","database_verification_match":true,"timestamp":"2026-03-25 20:43:12"} 
[2026-03-25 20:43:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T08:43:18.482Z","date_to":"2026-03-25T20:43:18.482Z","per_page":"100"} 
[2026-03-25 20:43:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T08:43:18.501Z","date_to":"2026-03-25T20:43:18.501Z","per_page":"100"} 
[2026-03-25 20:43:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-022","AZS-250326-021","AZS-250326-020","AZS-250326-019","AZS-250326-018","AZS-250326-017","AZS-250326-016","AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":22,"unpaid_count":0,"unique_order_numbers":22} 
[2026-03-25 20:43:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-022","AZS-250326-021","AZS-250326-020","AZS-250326-019","AZS-250326-018","AZS-250326-017","AZS-250326-016","AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":22,"unpaid_count":0,"unique_order_numbers":22} 
[2026-03-25 20:43:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T08:43:18.482Z","date_to":"2026-03-25T20:43:18.482Z","per_page":"100"} 
[2026-03-25 20:43:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-022","AZS-250326-021","AZS-250326-020","AZS-250326-019","AZS-250326-018","AZS-250326-017","AZS-250326-016","AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":22,"unpaid_count":0,"unique_order_numbers":22} 
[2026-03-26 06:00:46] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T18:00:47.126Z","date_to":"2026-03-26T06:00:47.126Z","per_page":"100"} 
[2026-03-26 06:00:46] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-022","AZS-250326-021","AZS-250326-020","AZS-250326-019","AZS-250326-018","AZS-250326-017","AZS-250326-016"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":0,"unique_order_numbers":7} 
[2026-03-26 06:00:46] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T18:00:47.083Z","date_to":"2026-03-26T06:00:47.083Z","per_page":"100"} 
[2026-03-26 06:00:46] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-022","AZS-250326-021","AZS-250326-020","AZS-250326-019","AZS-250326-018","AZS-250326-017","AZS-250326-016"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":0,"unique_order_numbers":7} 
[2026-03-26 06:00:47] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T18:00:47.083Z","date_to":"2026-03-26T06:00:47.083Z","per_page":"100"} 
[2026-03-26 06:00:47] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-022","AZS-250326-021","AZS-250326-020","AZS-250326-019","AZS-250326-018","AZS-250326-017","AZS-250326-016"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":0,"unique_order_numbers":7} 
[2026-03-26 06:00:51] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T06:00:52.851Z","date_to":"2026-03-26T06:00:52.851Z","per_page":"100"} 
[2026-03-26 06:00:51] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-250326-022","AZS-250326-021","AZS-250326-020","AZS-250326-019","AZS-250326-018","AZS-250326-017","AZS-250326-016","AZS-250326-015","AZS-250326-014","AZS-250326-013","AZS-250326-012","AZS-250326-011","AZS-250326-010","AZS-250326-009","AZS-250326-008","AZS-250326-007","AZS-250326-006","AZS-250326-005","AZS-250326-004","AZS-250326-003","AZS-250326-002","AZS-250326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":22,"unpaid_count":0,"unique_order_numbers":22} 
[2026-03-26 11:16:37] local.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) {"userId":19,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' (Connection: mysql, SQL: select `id`, `name`, `phone` from `agents` where `branch_id` = 1 and `status` = active) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(410): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#52 {main}

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause' at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:423)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): PDO->prepare('select `id`, `n...')
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select `id`, `n...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select `id`, `n...', Array, Object(Closure))
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `id`, `n...', Array, Object(Closure))
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `id`, `n...', Array, true)
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/pandamartsco/public_html/laravel_admin/app/Http/Controllers/Api/InventoryTransferController.php(410): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Api\\InventoryTransferController->getAgents(Object(Illuminate\\Http\\Request))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getAgents', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\Api\\InventoryTransferController), 'getAgents')
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#53 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#54 {main}
"} 
[2026-03-26 11:52:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T23:52:10.715Z","date_to":"2026-03-26T11:52:10.715Z","per_page":"100"} 
[2026-03-26 11:52:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-26 11:52:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T23:52:10.698Z","date_to":"2026-03-26T11:52:10.698Z","per_page":"100"} 
[2026-03-26 11:52:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-26 11:52:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T23:52:10.698Z","date_to":"2026-03-26T11:52:10.698Z","per_page":"100"} 
[2026-03-26 11:52:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-26 11:52:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T23:52:23.642Z","date_to":"2026-03-26T11:52:23.642Z","per_page":"100"} 
[2026-03-26 11:52:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T23:52:23.632Z","date_to":"2026-03-26T11:52:23.632Z","per_page":"100"} 
[2026-03-26 11:52:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-26 11:52:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-26 11:52:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-25T23:52:23.632Z","date_to":"2026-03-26T11:52:23.632Z","per_page":"100"} 
[2026-03-26 11:52:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-26 14:52:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6408,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":30472},{"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null,"id":30473},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":30474},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30475},{"menu_item_id":28,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":30472,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":30473,"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null},{"id":30474,"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"id":30475,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":28,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-26 14:52:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6408,"items_count":5} 
[2026-03-26 14:52:53] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30472,"menu_item_id":105,"quantity":1},{"id":30473,"menu_item_id":67,"quantity":1},{"id":30474,"menu_item_id":52,"quantity":3},{"id":30475,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":28,"quantity":2}]} 
[2026-03-26 14:52:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6408,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["105|1|","67|1|","52|3|","61|1|"],"new_items_map_keys":["105|1|","67|1|","52|3|","61|1|","28|2|"]} 
[2026-03-26 14:52:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6408,"order_number":"AZS-260326-001"} 
[2026-03-26 14:52:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260326-001","replaced_order_id":6408} 
[2026-03-26 14:52:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6411,"items_count":5,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":67,"quantity":1,"price":"599.00"},{"menu_item_id":52,"quantity":3,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":28,"quantity":2,"price":"250.00"}]} 
[2026-03-26 14:52:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6411,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6411}} 
[2026-03-26 14:52:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6411,"item_index":0,"menu_item_id":105} 
[2026-03-26 14:52:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6411,"item_index":1,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6411}} 
[2026-03-26 14:52:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6411,"item_index":1,"menu_item_id":67} 
[2026-03-26 14:52:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6411,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6411}} 
[2026-03-26 14:52:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6411,"item_index":2,"menu_item_id":52} 
[2026-03-26 14:52:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6411,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6411}} 
[2026-03-26 14:52:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6411,"item_index":3,"menu_item_id":61} 
[2026-03-26 14:52:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6411,"item_index":4,"item_data":{"menu_item_id":28,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Lemonade","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6411}} 
[2026-03-26 14:52:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6411,"item_index":4,"menu_item_id":28} 
[2026-03-26 14:52:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6408,"new_order_id":6411,"order_number":"AZS-260326-001"} 
[2026-03-26 15:03:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6412,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":30492},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":30493},{"menu_item_id":49,"quantity":7,"discount_percent":0,"notes":null,"id":30494},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":30495},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30496},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30497}],"validated_items":[{"id":30492,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":30493,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":30494,"menu_item_id":49,"quantity":7,"discount_percent":0,"notes":null},{"id":30495,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":30496,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30497,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-26 15:03:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6412,"items_count":6} 
[2026-03-26 15:03:37] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30492,"menu_item_id":114,"quantity":1},{"id":30493,"menu_item_id":62,"quantity":1},{"id":30494,"menu_item_id":49,"quantity":7},{"id":30495,"menu_item_id":61,"quantity":2},{"id":30496,"menu_item_id":56,"quantity":1},{"id":30497,"menu_item_id":5,"quantity":1}]} 
[2026-03-26 15:03:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6412,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","62|1|","49|7|","61|2|","56|2|","5|1|"],"new_items_map_keys":["114|1|","62|1|","49|7|","61|2|","56|1|","5|1|"]} 
[2026-03-26 15:03:37] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6412,"order_number":"AZS-260326-004"} 
[2026-03-26 15:03:37] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260326-004","replaced_order_id":6412} 
[2026-03-26 15:03:37] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6414,"items_count":6,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":49,"quantity":7,"price":"70.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-26 15:03:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6414,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6414}} 
[2026-03-26 15:03:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6414,"item_index":0,"menu_item_id":114} 
[2026-03-26 15:03:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6414,"item_index":1,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6414}} 
[2026-03-26 15:03:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6414,"item_index":1,"menu_item_id":62} 
[2026-03-26 15:03:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6414,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":7,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":490.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6414}} 
[2026-03-26 15:03:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6414,"item_index":2,"menu_item_id":49} 
[2026-03-26 15:03:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6414,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6414}} 
[2026-03-26 15:03:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6414,"item_index":3,"menu_item_id":61} 
[2026-03-26 15:03:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6414,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6414}} 
[2026-03-26 15:03:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6414,"item_index":4,"menu_item_id":56} 
[2026-03-26 15:03:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6414,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6414}} 
[2026-03-26 15:03:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6414,"item_index":5,"menu_item_id":5} 
[2026-03-26 15:03:37] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6412,"new_order_id":6414,"order_number":"AZS-260326-004"} 
[2026-03-26 15:04:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6414,"item_index":0,"item_id":30492} 
[2026-03-26 15:04:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6414,"item_index":1,"item_id":30493} 
[2026-03-26 15:04:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6414,"item_index":2,"item_id":30494} 
[2026-03-26 15:04:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6414,"item_index":3,"item_id":30495} 
[2026-03-26 15:04:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6414,"item_index":4,"item_id":30496} 
[2026-03-26 15:04:51] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6414,"item_index":5,"item_id":30497} 
[2026-03-26 15:04:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":6,"order_id":6414,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":30492},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":30493},{"menu_item_id":49,"quantity":7,"discount_percent":0,"notes":null,"id":30494},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":30495},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30496},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30497},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":7,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-26 15:04:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6414,"items_count":7} 
[2026-03-26 15:04:51] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":6,"items_to_remove":[30502,30503,30504,30505,30506,30507],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":49,"quantity":7},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1}]} 
[2026-03-26 15:04:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6414,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["114|1|","62|1|","49|7|","61|2|","56|1|","5|1|"],"new_items_map_keys":["114|1|","62|1|","49|7|","61|2|","56|1|","5|1|","403|1|"]} 
[2026-03-26 15:04:51] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6414,"order_number":"AZS-260326-004"} 
[2026-03-26 15:04:51] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260326-004","replaced_order_id":6414} 
[2026-03-26 15:04:51] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6415,"items_count":7,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":49,"quantity":7,"price":"70.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"}]} 
[2026-03-26 15:04:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6415,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6415}} 
[2026-03-26 15:04:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6415,"item_index":0,"menu_item_id":114} 
[2026-03-26 15:04:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6415,"item_index":1,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6415}} 
[2026-03-26 15:04:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6415,"item_index":1,"menu_item_id":62} 
[2026-03-26 15:04:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6415,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":7,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":490.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6415}} 
[2026-03-26 15:04:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6415,"item_index":2,"menu_item_id":49} 
[2026-03-26 15:04:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6415,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6415}} 
[2026-03-26 15:04:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6415,"item_index":3,"menu_item_id":61} 
[2026-03-26 15:04:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6415,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6415}} 
[2026-03-26 15:04:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6415,"item_index":4,"menu_item_id":56} 
[2026-03-26 15:04:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6415,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6415}} 
[2026-03-26 15:04:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6415,"item_index":5,"menu_item_id":5} 
[2026-03-26 15:04:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6415,"item_index":6,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6415}} 
[2026-03-26 15:04:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6415,"item_index":6,"menu_item_id":403} 
[2026-03-26 15:04:51] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6414,"new_order_id":6415,"order_number":"AZS-260326-004"} 
[2026-03-26 15:22:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6411,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30487},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":30488},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":30489},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30490},{"menu_item_id":28,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":30491}],"validated_items":[{"id":30487,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":30488,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":30489,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":30490,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30491,"menu_item_id":28,"quantity":2,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-26 15:22:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6411,"items_count":5} 
[2026-03-26 15:22:59] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30487,"menu_item_id":105,"quantity":1},{"id":30488,"menu_item_id":67,"quantity":1},{"id":30489,"menu_item_id":52,"quantity":3},{"id":30490,"menu_item_id":61,"quantity":1},{"id":30491,"menu_item_id":28,"quantity":2}]} 
[2026-03-26 15:22:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6411,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","67|1|","52|3|","61|1|","28|2|"],"new_items_map_keys":["105|1|","67|1|","52|3|","61|1|","28|2|"]} 
[2026-03-26 15:22:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6411,"order_number":"AZS-260326-001"} 
[2026-03-26 15:22:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6411,"order_number":"AZS-260326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-26 15:22:59"} 
[2026-03-26 15:30:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":1,"order_id":6410,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30483},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30484},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30485}],"validated_items":[{"id":30483,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30484,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30485,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-26 15:30:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6410,"items_count":3} 
[2026-03-26 15:30:06] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":1,"items_to_remove":[30486],"items":[{"id":30483,"menu_item_id":113,"quantity":1},{"id":30484,"menu_item_id":396,"quantity":2},{"id":30485,"menu_item_id":61,"quantity":1}]} 
[2026-03-26 15:30:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6410,"has_item_changes":true,"old_items_count":4,"new_items_count":3,"old_items_map_keys":["113|1|","396|2|","61|1|","56|1|"],"new_items_map_keys":["113|1|","396|2|","61|1|"]} 
[2026-03-26 15:30:06] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6410,"order_number":"AZS-260326-003"} 
[2026-03-26 15:30:06] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260326-003","replaced_order_id":6410} 
[2026-03-26 15:30:06] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6416,"items_count":3,"items":[{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0}]} 
[2026-03-26 15:30:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6416,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6416}} 
[2026-03-26 15:30:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6416,"item_index":0,"menu_item_id":113} 
[2026-03-26 15:30:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6416,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6416}} 
[2026-03-26 15:30:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6416,"item_index":1,"menu_item_id":396} 
[2026-03-26 15:30:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6416,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6416}} 
[2026-03-26 15:30:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6416,"item_index":2,"menu_item_id":61} 
[2026-03-26 15:30:06] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6410,"new_order_id":6416,"order_number":"AZS-260326-003"} 
[2026-03-26 15:30:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6416,"item_index":0,"item_id":30483} 
[2026-03-26 15:30:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6416,"item_index":1,"item_id":30484} 
[2026-03-26 15:30:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6416,"item_index":2,"item_id":30485} 
[2026-03-26 15:30:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":6416,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30483},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30484},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30485}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-26 15:30:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6416,"items_count":3} 
[2026-03-26 15:30:15] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[30515,30516,30517],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-03-26 15:30:15] local.INFO: PosOrderController::update - Item changes check {"order_id":6416,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["113|1|","396|2|","61|1|"],"new_items_map_keys":["113|1|","396|2|","61|1|"]} 
[2026-03-26 15:30:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6416,"order_number":"AZS-260326-003"} 
[2026-03-26 15:30:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6416,"order_number":"AZS-260326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-26 15:30:15"} 
[2026-03-26 15:37:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6411,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30487},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":30488},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":30489},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30490},{"menu_item_id":28,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":30491}],"validated_items":[{"id":30487,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":30488,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":30489,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":30490,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30491,"menu_item_id":28,"quantity":2,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-26 15:37:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6411,"items_count":5} 
[2026-03-26 15:37:27] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30487,"menu_item_id":105,"quantity":1},{"id":30488,"menu_item_id":67,"quantity":1},{"id":30489,"menu_item_id":52,"quantity":3},{"id":30490,"menu_item_id":61,"quantity":1},{"id":30491,"menu_item_id":28,"quantity":2}]} 
[2026-03-26 15:37:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6411,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","67|1|","52|3|","61|1|","28|2|"],"new_items_map_keys":["105|1|","67|1|","52|3|","61|1|","28|2|"]} 
[2026-03-26 15:37:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6411,"order_number":"AZS-260326-001"} 
[2026-03-26 15:37:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6411,"order_number":"AZS-260326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-26 15:37:27"} 
[2026-03-26 15:44:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6411,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30487},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":30488},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":30489},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30490},{"menu_item_id":28,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":30491}],"validated_items":[{"id":30487,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":30488,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":30489,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":30490,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30491,"menu_item_id":28,"quantity":2,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-26 15:44:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6411,"items_count":5} 
[2026-03-26 15:44:47] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30487,"menu_item_id":105,"quantity":1},{"id":30488,"menu_item_id":67,"quantity":1},{"id":30489,"menu_item_id":52,"quantity":3},{"id":30490,"menu_item_id":61,"quantity":1},{"id":30491,"menu_item_id":28,"quantity":2}]} 
[2026-03-26 15:44:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6411,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","67|1|","52|3|","61|1|","28|2|"],"new_items_map_keys":["105|1|","67|1|","52|3|","61|1|","28|2|"]} 
[2026-03-26 15:44:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6411,"order_number":"AZS-260326-001"} 
[2026-03-26 15:44:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6411,"order_number":"AZS-260326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-26 15:44:47"} 
[2026-03-26 15:45:16] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6411,"order_number":"AZS-260326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 15:45:16"} 
[2026-03-26 15:45:16] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6411,"order_number":"AZS-260326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 15:45:16"} 
[2026-03-26 15:45:16] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6411,"order_number":"AZS-260326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 15:45:16"} 
[2026-03-26 15:45:16] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6411,"order_number":"AZS-260326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 15:45:16"} 
[2026-03-26 15:45:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":6411,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30487},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":30488},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":30489},{"menu_item_id":28,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":30491}],"validated_items":[{"id":30487,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":30488,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":30489,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":30491,"menu_item_id":28,"quantity":2,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-26 15:45:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6411,"items_count":4} 
[2026-03-26 15:45:16] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[30490],"items":[{"id":30487,"menu_item_id":105,"quantity":1},{"id":30488,"menu_item_id":67,"quantity":1},{"id":30489,"menu_item_id":52,"quantity":3},{"id":30491,"menu_item_id":28,"quantity":2}]} 
[2026-03-26 15:45:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6411,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["105|1|","67|1|","52|3|","61|1|","28|2|"],"new_items_map_keys":["105|1|","67|1|","52|3|","28|2|"]} 
[2026-03-26 15:45:16] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6411,"order_number":"AZS-260326-001","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":4000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-26 15:45:16","original_payment_amount":"0.00","grand_total":3508.0,"timestamp":"2026-03-26 15:45:16"} 
[2026-03-26 15:45:16] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6411,"order_number":"AZS-260326-001"} 
[2026-03-26 15:45:16] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260326-001","replaced_order_id":6411} 
[2026-03-26 15:45:16] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6411,"new_order_id":6417,"order_number":"AZS-260326-001","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"4000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-26 15:45:16","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-26 15:45:16"} 
[2026-03-26 15:45:16] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6417,"items_count":4,"items":[{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":67,"quantity":1,"price":599.0},{"menu_item_id":52,"quantity":3,"price":70.0},{"menu_item_id":28,"quantity":2,"price":250.0}]} 
[2026-03-26 15:45:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6417,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6417}} 
[2026-03-26 15:45:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6417,"item_index":0,"menu_item_id":105} 
[2026-03-26 15:45:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6417,"item_index":1,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":1,"price":599.0,"discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6417}} 
[2026-03-26 15:45:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6417,"item_index":1,"menu_item_id":67} 
[2026-03-26 15:45:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6417,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6417}} 
[2026-03-26 15:45:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6417,"item_index":2,"menu_item_id":52} 
[2026-03-26 15:45:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6417,"item_index":3,"item_data":{"menu_item_id":28,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Lemonade","quantity":2,"price":250.0,"discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6417}} 
[2026-03-26 15:45:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6417,"item_index":3,"menu_item_id":28} 
[2026-03-26 15:45:16] local.ERROR: Error tracking recipe usage for order 6417: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6417, 105, 196, 1, 500, 0.00, Order #AZS-260326-001 - 1x Mutton Shinwari - Half, 2026-03-26 15:45:16, 2026-03-26 15:45:16))  
[2026-03-26 15:45:16] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6411,"new_order_id":6417,"order_number":"AZS-260326-001"} 
[2026-03-26 15:45:48] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6411,"new_order_id":6417,"order_number":"AZS-260326-001","route":"api/orders/6411"} 
[2026-03-26 15:47:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6415,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":30508},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":30509},{"menu_item_id":49,"quantity":7,"discount_percent":0,"notes":null,"id":30510},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":30511},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30512},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30513},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":30514},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30508,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":30509,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":30510,"menu_item_id":49,"quantity":7,"discount_percent":0,"notes":null},{"id":30511,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":30512,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30513,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":30514,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-26 15:47:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6415,"items_count":8} 
[2026-03-26 15:47:00] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30508,"menu_item_id":114,"quantity":1},{"id":30509,"menu_item_id":62,"quantity":1},{"id":30510,"menu_item_id":49,"quantity":7},{"id":30511,"menu_item_id":61,"quantity":2},{"id":30512,"menu_item_id":56,"quantity":1},{"id":30513,"menu_item_id":5,"quantity":1},{"id":30514,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-26 15:47:00] local.INFO: PosOrderController::update - Item changes check {"order_id":6415,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["114|1|","62|1|","49|7|","61|2|","56|1|","5|1|","403|1|"],"new_items_map_keys":["114|1|","62|1|","49|7|","61|2|","56|1|","5|1|","403|1|","3|1|"]} 
[2026-03-26 15:47:00] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6415,"order_number":"AZS-260326-004"} 
[2026-03-26 15:47:00] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260326-004","replaced_order_id":6415} 
[2026-03-26 15:47:00] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6418,"items_count":8,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":49,"quantity":7,"price":"70.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-26 15:47:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6418,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6418}} 
[2026-03-26 15:47:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6418,"item_index":0,"menu_item_id":114} 
[2026-03-26 15:47:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6418,"item_index":1,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6418}} 
[2026-03-26 15:47:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6418,"item_index":1,"menu_item_id":62} 
[2026-03-26 15:47:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6418,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":7,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":490.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6418}} 
[2026-03-26 15:47:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6418,"item_index":2,"menu_item_id":49} 
[2026-03-26 15:47:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6418,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6418}} 
[2026-03-26 15:47:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6418,"item_index":3,"menu_item_id":61} 
[2026-03-26 15:47:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6418,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6418}} 
[2026-03-26 15:47:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6418,"item_index":4,"menu_item_id":56} 
[2026-03-26 15:47:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6418,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6418}} 
[2026-03-26 15:47:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6418,"item_index":5,"menu_item_id":5} 
[2026-03-26 15:47:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6418,"item_index":6,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6418}} 
[2026-03-26 15:47:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6418,"item_index":6,"menu_item_id":403} 
[2026-03-26 15:47:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6418,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6418}} 
[2026-03-26 15:47:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6418,"item_index":7,"menu_item_id":3} 
[2026-03-26 15:47:00] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6415,"new_order_id":6418,"order_number":"AZS-260326-004"} 
[2026-03-26 15:47:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6413,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30498},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30499},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30500},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30501}],"validated_items":[{"id":30498,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30499,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30500,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30501,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-26 15:47:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6413,"items_count":4} 
[2026-03-26 15:47:57] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30498,"menu_item_id":102,"quantity":1},{"id":30499,"menu_item_id":396,"quantity":2},{"id":30500,"menu_item_id":61,"quantity":1},{"id":30501,"menu_item_id":5,"quantity":1}]} 
[2026-03-26 15:47:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6413,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["102|1|","396|2|","61|1|","5|1|"],"new_items_map_keys":["102|1|","396|2|","61|1|","5|1|"]} 
[2026-03-26 15:47:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6413,"order_number":"AZS-260326-005"} 
[2026-03-26 15:47:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6413,"order_number":"AZS-260326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-26 15:47:57"} 
[2026-03-26 15:55:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6409,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30476},{"menu_item_id":397,"quantity":375,"price":4,"discount_percent":0,"notes":null,"id":30477},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":30478},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30479},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30480},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30481},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30482}],"validated_items":[{"id":30476,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":30477,"menu_item_id":397,"quantity":375,"price":4,"discount_percent":0,"notes":null},{"id":30478,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":30479,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30480,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30481,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30482,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-26 15:55:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6409,"items_count":7} 
[2026-03-26 15:55:32] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30476,"menu_item_id":106,"quantity":1},{"id":30477,"menu_item_id":397,"quantity":375},{"id":30478,"menu_item_id":48,"quantity":1},{"id":30479,"menu_item_id":396,"quantity":2},{"id":30480,"menu_item_id":61,"quantity":2},{"id":30481,"menu_item_id":56,"quantity":1},{"id":30482,"menu_item_id":5,"quantity":1}]} 
[2026-03-26 15:55:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6409,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","397|375|","48|1|","396|2|","61|2|","56|1|","5|1|"],"new_items_map_keys":["106|1|","397|375|","48|1|","396|2|","61|2|","56|1|","5|1|"]} 
[2026-03-26 15:55:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6409,"order_number":"AZS-260326-002"} 
[2026-03-26 15:55:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6409,"order_number":"AZS-260326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-26 15:55:32"} 
[2026-03-26 15:56:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6416,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30515},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30516},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30517}],"validated_items":[{"id":30515,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30516,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30517,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-26 15:56:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6416,"items_count":3} 
[2026-03-26 15:56:46] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30515,"menu_item_id":113,"quantity":1},{"id":30516,"menu_item_id":396,"quantity":2},{"id":30517,"menu_item_id":61,"quantity":1}]} 
[2026-03-26 15:56:46] local.INFO: PosOrderController::update - Item changes check {"order_id":6416,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["113|1|","396|2|","61|1|"],"new_items_map_keys":["113|1|","396|2|","61|1|"]} 
[2026-03-26 15:56:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6416,"order_number":"AZS-260326-003"} 
[2026-03-26 15:56:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6416,"order_number":"AZS-260326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-26 15:56:46"} 
[2026-03-26 15:56:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6416,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30515},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30516},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30517}],"validated_items":[{"id":30515,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30516,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30517,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-26 15:56:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6416,"items_count":3} 
[2026-03-26 15:56:54] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30515,"menu_item_id":113,"quantity":1},{"id":30516,"menu_item_id":396,"quantity":2},{"id":30517,"menu_item_id":61,"quantity":1}]} 
[2026-03-26 15:56:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6416,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["113|1|","396|2|","61|1|"],"new_items_map_keys":["113|1|","396|2|","61|1|"]} 
[2026-03-26 15:56:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6416,"order_number":"AZS-260326-003"} 
[2026-03-26 15:56:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6416,"order_number":"AZS-260326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-26 15:56:54"} 
[2026-03-26 15:57:22] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6416,"order_number":"AZS-260326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 15:57:22"} 
[2026-03-26 15:57:22] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6416,"order_number":"AZS-260326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 15:57:22"} 
[2026-03-26 15:57:22] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6416,"order_number":"AZS-260326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 15:57:22"} 
[2026-03-26 15:57:22] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6416,"order_number":"AZS-260326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 15:57:22"} 
[2026-03-26 15:57:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":1,"order_id":6416,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30515},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30516}],"validated_items":[{"id":30515,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30516,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-26 15:57:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6416,"items_count":2} 
[2026-03-26 15:57:22] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":1,"items_to_remove":[30517],"items":[{"id":30515,"menu_item_id":113,"quantity":1},{"id":30516,"menu_item_id":396,"quantity":2}]} 
[2026-03-26 15:57:22] local.INFO: PosOrderController::update - Item changes check {"order_id":6416,"has_item_changes":true,"old_items_count":3,"new_items_count":2,"old_items_map_keys":["113|1|","396|2|","61|1|"],"new_items_map_keys":["113|1|","396|2|"]} 
[2026-03-26 15:57:22] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6416,"order_number":"AZS-260326-003","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":2000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-26 15:57:22","original_payment_amount":"0.00","grand_total":1397.0,"timestamp":"2026-03-26 15:57:22"} 
[2026-03-26 15:57:22] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6416,"order_number":"AZS-260326-003"} 
[2026-03-26 15:57:22] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260326-003","replaced_order_id":6416} 
[2026-03-26 15:57:22] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6416,"new_order_id":6420,"order_number":"AZS-260326-003","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"2000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-26 15:57:22","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-26 15:57:22"} 
[2026-03-26 15:57:22] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6420,"items_count":2,"items":[{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":2,"price":99.0}]} 
[2026-03-26 15:57:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6420,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6420}} 
[2026-03-26 15:57:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6420,"item_index":0,"menu_item_id":113} 
[2026-03-26 15:57:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6420,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6420}} 
[2026-03-26 15:57:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6420,"item_index":1,"menu_item_id":396} 
[2026-03-26 15:57:22] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6416,"new_order_id":6420,"order_number":"AZS-260326-003"} 
[2026-03-26 15:57:23] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6416,"new_order_id":6420,"order_number":"AZS-260326-003","route":"api/orders/6416"} 
[2026-03-26 15:58:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T03:58:01.893Z","date_to":"2026-03-26T15:58:01.893Z","per_page":"100"} 
[2026-03-26 15:58:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T03:58:01.878Z","date_to":"2026-03-26T15:58:01.878Z","per_page":"100"} 
[2026-03-26 15:58:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","paid","pending","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":4,"unique_order_numbers":6} 
[2026-03-26 15:58:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","paid","pending","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":4,"unique_order_numbers":6} 
[2026-03-26 15:58:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T03:58:01.878Z","date_to":"2026-03-26T15:58:01.878Z","per_page":"100"} 
[2026-03-26 15:58:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","paid","pending","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":4,"unique_order_numbers":6} 
[2026-03-26 15:58:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6419,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":30530},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30531}],"validated_items":[{"id":30530,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":30531,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-26 15:58:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6419,"items_count":2} 
[2026-03-26 15:58:40] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30530,"menu_item_id":96,"quantity":1},{"id":30531,"menu_item_id":396,"quantity":2}]} 
[2026-03-26 15:58:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6419,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["96|1|","396|2|"],"new_items_map_keys":["96|1|","396|2|"]} 
[2026-03-26 15:58:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6419,"order_number":"AZS-260326-006"} 
[2026-03-26 15:58:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6419,"order_number":"AZS-260326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-26 15:58:40"} 
[2026-03-26 16:01:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6418,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":30522},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":30523},{"menu_item_id":49,"quantity":7,"price":70,"discount_percent":0,"notes":null,"id":30524},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30525},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30526},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30527},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":30528},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30529}],"validated_items":[{"id":30522,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":30523,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":30524,"menu_item_id":49,"quantity":7,"price":70,"discount_percent":0,"notes":null},{"id":30525,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30526,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30527,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30528,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":30529,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-26 16:01:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6418,"items_count":8} 
[2026-03-26 16:01:09] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30522,"menu_item_id":114,"quantity":1},{"id":30523,"menu_item_id":62,"quantity":1},{"id":30524,"menu_item_id":49,"quantity":7},{"id":30525,"menu_item_id":61,"quantity":2},{"id":30526,"menu_item_id":56,"quantity":1},{"id":30527,"menu_item_id":5,"quantity":1},{"id":30528,"menu_item_id":403,"quantity":1},{"id":30529,"menu_item_id":3,"quantity":1}]} 
[2026-03-26 16:01:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6418,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","62|1|","49|7|","61|2|","56|1|","5|1|","403|1|","3|1|"],"new_items_map_keys":["114|1|","62|1|","49|7|","61|2|","56|1|","5|1|","403|1|","3|1|"]} 
[2026-03-26 16:01:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6418,"order_number":"AZS-260326-004"} 
[2026-03-26 16:01:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6418,"order_number":"AZS-260326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-26 16:01:09"} 
[2026-03-26 16:03:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6409,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30476},{"menu_item_id":397,"quantity":375,"price":4,"discount_percent":0,"notes":null,"id":30477},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":30478},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30479},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30480},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30481},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30482}],"validated_items":[{"id":30476,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":30477,"menu_item_id":397,"quantity":375,"price":4,"discount_percent":0,"notes":null},{"id":30478,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":30479,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30480,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30481,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30482,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-26 16:03:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6409,"items_count":7} 
[2026-03-26 16:03:47] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30476,"menu_item_id":106,"quantity":1},{"id":30477,"menu_item_id":397,"quantity":375},{"id":30478,"menu_item_id":48,"quantity":1},{"id":30479,"menu_item_id":396,"quantity":2},{"id":30480,"menu_item_id":61,"quantity":2},{"id":30481,"menu_item_id":56,"quantity":1},{"id":30482,"menu_item_id":5,"quantity":1}]} 
[2026-03-26 16:03:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6409,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","397|375|","48|1|","396|2|","61|2|","56|1|","5|1|"],"new_items_map_keys":["106|1|","397|375|","48|1|","396|2|","61|2|","56|1|","5|1|"]} 
[2026-03-26 16:03:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6409,"order_number":"AZS-260326-002"} 
[2026-03-26 16:03:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6409,"order_number":"AZS-260326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-26 16:03:47"} 
[2026-03-26 16:04:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6418,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":30522},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":30523},{"menu_item_id":49,"quantity":7,"price":70,"discount_percent":0,"notes":null,"id":30524},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30525},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30526},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30527},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":30528},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30529}],"validated_items":[{"id":30522,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":30523,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":30524,"menu_item_id":49,"quantity":7,"price":70,"discount_percent":0,"notes":null},{"id":30525,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30526,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30527,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30528,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":30529,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-26 16:04:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6418,"items_count":8} 
[2026-03-26 16:04:47] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30522,"menu_item_id":114,"quantity":1},{"id":30523,"menu_item_id":62,"quantity":1},{"id":30524,"menu_item_id":49,"quantity":7},{"id":30525,"menu_item_id":61,"quantity":2},{"id":30526,"menu_item_id":56,"quantity":1},{"id":30527,"menu_item_id":5,"quantity":1},{"id":30528,"menu_item_id":403,"quantity":1},{"id":30529,"menu_item_id":3,"quantity":1}]} 
[2026-03-26 16:04:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6418,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","62|1|","49|7|","61|2|","56|1|","5|1|","403|1|","3|1|"],"new_items_map_keys":["114|1|","62|1|","49|7|","61|2|","56|1|","5|1|","403|1|","3|1|"]} 
[2026-03-26 16:04:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6418,"order_number":"AZS-260326-004"} 
[2026-03-26 16:04:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6418,"order_number":"AZS-260326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-26 16:04:47"} 
[2026-03-26 16:05:43] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6418,"order_number":"AZS-260326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 16:05:43"} 
[2026-03-26 16:05:43] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6418,"order_number":"AZS-260326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 16:05:43"} 
[2026-03-26 16:05:43] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6418,"order_number":"AZS-260326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 16:05:43"} 
[2026-03-26 16:05:43] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6418,"order_number":"AZS-260326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 16:05:43"} 
[2026-03-26 16:05:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6418,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":30522},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":30523},{"menu_item_id":49,"quantity":7,"price":70,"discount_percent":0,"notes":null,"id":30524},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30525},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30526},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30527},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":30528},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30529}],"validated_items":[{"id":30522,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":30523,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":30524,"menu_item_id":49,"quantity":7,"price":70,"discount_percent":0,"notes":null},{"id":30525,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30526,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30527,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30528,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":30529,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-26 16:05:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6418,"items_count":8} 
[2026-03-26 16:05:43] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30522,"menu_item_id":114,"quantity":1},{"id":30523,"menu_item_id":62,"quantity":1},{"id":30524,"menu_item_id":49,"quantity":7},{"id":30525,"menu_item_id":61,"quantity":1},{"id":30526,"menu_item_id":56,"quantity":1},{"id":30527,"menu_item_id":5,"quantity":1},{"id":30528,"menu_item_id":403,"quantity":1},{"id":30529,"menu_item_id":3,"quantity":1}]} 
[2026-03-26 16:05:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6418,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","62|1|","49|7|","61|2|","56|1|","5|1|","403|1|","3|1|"],"new_items_map_keys":["114|1|","62|1|","49|7|","61|1|","56|1|","5|1|","403|1|","3|1|"]} 
[2026-03-26 16:05:43] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6418,"order_number":"AZS-260326-004","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":6000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-26 16:05:43","original_payment_amount":"0.00","grand_total":5475.0,"timestamp":"2026-03-26 16:05:43"} 
[2026-03-26 16:05:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6418,"order_number":"AZS-260326-004"} 
[2026-03-26 16:05:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260326-004","replaced_order_id":6418} 
[2026-03-26 16:05:43] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6418,"new_order_id":6422,"order_number":"AZS-260326-004","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"6000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-26 16:05:43","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-26 16:05:43"} 
[2026-03-26 16:05:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6422,"items_count":8,"items":[{"menu_item_id":114,"quantity":1,"price":2299.0},{"menu_item_id":62,"quantity":1,"price":1499.0},{"menu_item_id":49,"quantity":7,"price":70.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":403,"quantity":1,"price":349.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-26 16:05:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6422,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6422}} 
[2026-03-26 16:05:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6422,"item_index":0,"menu_item_id":114} 
[2026-03-26 16:05:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6422,"item_index":1,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":1499.0,"discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6422}} 
[2026-03-26 16:05:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6422,"item_index":1,"menu_item_id":62} 
[2026-03-26 16:05:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6422,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":7,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":490.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6422}} 
[2026-03-26 16:05:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6422,"item_index":2,"menu_item_id":49} 
[2026-03-26 16:05:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6422,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6422}} 
[2026-03-26 16:05:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6422,"item_index":3,"menu_item_id":61} 
[2026-03-26 16:05:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6422,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6422}} 
[2026-03-26 16:05:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6422,"item_index":4,"menu_item_id":56} 
[2026-03-26 16:05:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6422,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6422}} 
[2026-03-26 16:05:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6422,"item_index":5,"menu_item_id":5} 
[2026-03-26 16:05:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6422,"item_index":6,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":349.0,"discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6422}} 
[2026-03-26 16:05:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6422,"item_index":6,"menu_item_id":403} 
[2026-03-26 16:05:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6422,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6422}} 
[2026-03-26 16:05:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6422,"item_index":7,"menu_item_id":3} 
[2026-03-26 16:05:43] local.ERROR: Error tracking recipe usage for order 6422: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6422, 114, 77, 1, 100, 0.00, Order #AZS-260326-004 - 1x Chicken Shinwari - Full, 2026-03-26 16:05:43, 2026-03-26 16:05:43))  
[2026-03-26 16:05:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6418,"new_order_id":6422,"order_number":"AZS-260326-004"} 
[2026-03-26 16:05:43] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6418,"new_order_id":6422,"order_number":"AZS-260326-004","route":"api/orders/6418"} 
[2026-03-26 16:06:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T04:06:01.398Z","date_to":"2026-03-26T16:06:01.398Z","per_page":"100"} 
[2026-03-26 16:06:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T04:06:01.415Z","date_to":"2026-03-26T16:06:01.415Z","per_page":"100"} 
[2026-03-26 16:06:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":4,"unique_order_numbers":7} 
[2026-03-26 16:06:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":4,"unique_order_numbers":7} 
[2026-03-26 16:06:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T04:06:01.398Z","date_to":"2026-03-26T16:06:01.398Z","per_page":"100"} 
[2026-03-26 16:06:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":4,"unique_order_numbers":7} 
[2026-03-26 16:27:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T04:27:25.270Z","date_to":"2026-03-26T16:27:25.270Z","per_page":"100"} 
[2026-03-26 16:27:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T04:27:25.264Z","date_to":"2026-03-26T16:27:25.264Z","per_page":"100"} 
[2026-03-26 16:27:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","pending","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":5,"unique_order_numbers":8} 
[2026-03-26 16:27:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","pending","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":5,"unique_order_numbers":8} 
[2026-03-26 16:27:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T04:27:25.264Z","date_to":"2026-03-26T16:27:25.264Z","per_page":"100"} 
[2026-03-26 16:27:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","pending","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":5,"unique_order_numbers":8} 
[2026-03-26 16:30:10] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6409,"order_number":"AZS-260326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 16:30:10"} 
[2026-03-26 16:30:10] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6409,"order_number":"AZS-260326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 16:30:10"} 
[2026-03-26 16:30:10] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6409,"order_number":"AZS-260326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 16:30:10"} 
[2026-03-26 16:30:10] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6409,"order_number":"AZS-260326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 16:30:10"} 
[2026-03-26 16:30:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6409,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30476},{"menu_item_id":397,"quantity":375,"price":4,"discount_percent":0,"notes":null,"id":30477},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":30478},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30479},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30480},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30481},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30482}],"validated_items":[{"id":30476,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":30477,"menu_item_id":397,"quantity":375,"price":4,"discount_percent":0,"notes":null},{"id":30478,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":30479,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30480,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30481,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30482,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-26 16:30:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6409,"items_count":7} 
[2026-03-26 16:30:10] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30476,"menu_item_id":106,"quantity":1},{"id":30477,"menu_item_id":397,"quantity":375},{"id":30478,"menu_item_id":48,"quantity":1},{"id":30479,"menu_item_id":396,"quantity":2},{"id":30480,"menu_item_id":61,"quantity":1},{"id":30481,"menu_item_id":56,"quantity":1},{"id":30482,"menu_item_id":5,"quantity":1}]} 
[2026-03-26 16:30:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6409,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","397|375|","48|1|","396|2|","61|2|","56|1|","5|1|"],"new_items_map_keys":["106|1|","397|375|","48|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-26 16:30:10] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6409,"order_number":"AZS-260326-002","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":10000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-26 16:30:10","original_payment_amount":"0.00","grand_total":6715.0,"timestamp":"2026-03-26 16:30:10"} 
[2026-03-26 16:30:10] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6409,"order_number":"AZS-260326-002"} 
[2026-03-26 16:30:10] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260326-002","replaced_order_id":6409} 
[2026-03-26 16:30:10] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6409,"new_order_id":6424,"order_number":"AZS-260326-002","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"10000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-26 16:30:10","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-26 16:30:10"} 
[2026-03-26 16:30:10] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6424,"items_count":7,"items":[{"menu_item_id":106,"quantity":1,"price":4199.0},{"menu_item_id":397,"quantity":375,"price":4.0},{"menu_item_id":48,"quantity":1,"price":250.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-03-26 16:30:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6424,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":4199.0,"discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6424}} 
[2026-03-26 16:30:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6424,"item_index":0,"menu_item_id":106} 
[2026-03-26 16:30:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6424,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":375,"price":4.0,"discount_percent":0.0,"discount_amount":0.0,"total":1500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6424}} 
[2026-03-26 16:30:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6424,"item_index":1,"menu_item_id":397} 
[2026-03-26 16:30:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6424,"item_index":2,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":250.0,"discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6424}} 
[2026-03-26 16:30:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6424,"item_index":2,"menu_item_id":48} 
[2026-03-26 16:30:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6424,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6424}} 
[2026-03-26 16:30:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6424,"item_index":3,"menu_item_id":396} 
[2026-03-26 16:30:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6424,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6424}} 
[2026-03-26 16:30:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6424,"item_index":4,"menu_item_id":61} 
[2026-03-26 16:30:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6424,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6424}} 
[2026-03-26 16:30:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6424,"item_index":5,"menu_item_id":56} 
[2026-03-26 16:30:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6424,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6424}} 
[2026-03-26 16:30:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6424,"item_index":6,"menu_item_id":5} 
[2026-03-26 16:30:10] local.ERROR: Error tracking recipe usage for order 6424: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6424, 106, 196, 1, 1, 0.00, Order #AZS-260326-002 - 1x Mutton Shinwari - Full, 2026-03-26 16:30:10, 2026-03-26 16:30:10))  
[2026-03-26 16:30:10] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6409,"new_order_id":6424,"order_number":"AZS-260326-002"} 
[2026-03-26 16:30:10] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6409,"new_order_id":6424,"order_number":"AZS-260326-002","route":"api/orders/6409"} 
[2026-03-26 16:40:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6421,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":30534},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":30535},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":30536},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30537},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":30538},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":30539},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30540},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30534,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":30535,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":30536,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":30537,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":30538,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":30539,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":30540,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-26 16:40:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6421,"items_count":8} 
[2026-03-26 16:40:38] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30534,"menu_item_id":97,"quantity":1},{"id":30535,"menu_item_id":64,"quantity":1},{"id":30536,"menu_item_id":50,"quantity":2},{"id":30537,"menu_item_id":396,"quantity":2},{"id":30538,"menu_item_id":61,"quantity":2},{"id":30539,"menu_item_id":56,"quantity":2},{"id":30540,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-26 16:40:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6421,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["97|1|","64|1|","50|2|","396|2|","61|2|","56|2|","5|1|"],"new_items_map_keys":["97|1|","64|1|","50|2|","396|2|","61|2|","56|2|","5|1|","3|1|"]} 
[2026-03-26 16:40:38] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6421,"order_number":"AZS-260326-007"} 
[2026-03-26 16:40:38] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260326-007","replaced_order_id":6421} 
[2026-03-26 16:40:38] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6426,"items_count":8,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-26 16:40:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6426,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6426}} 
[2026-03-26 16:40:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6426,"item_index":0,"menu_item_id":97} 
[2026-03-26 16:40:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6426,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6426}} 
[2026-03-26 16:40:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6426,"item_index":1,"menu_item_id":64} 
[2026-03-26 16:40:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6426,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6426}} 
[2026-03-26 16:40:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6426,"item_index":2,"menu_item_id":50} 
[2026-03-26 16:40:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6426,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6426}} 
[2026-03-26 16:40:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6426,"item_index":3,"menu_item_id":396} 
[2026-03-26 16:40:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6426,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6426}} 
[2026-03-26 16:40:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6426,"item_index":4,"menu_item_id":61} 
[2026-03-26 16:40:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6426,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6426}} 
[2026-03-26 16:40:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6426,"item_index":5,"menu_item_id":56} 
[2026-03-26 16:40:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6426,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6426}} 
[2026-03-26 16:40:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6426,"item_index":6,"menu_item_id":5} 
[2026-03-26 16:40:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6426,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6426}} 
[2026-03-26 16:40:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6426,"item_index":7,"menu_item_id":3} 
[2026-03-26 16:40:38] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6421,"new_order_id":6426,"order_number":"AZS-260326-007"} 
[2026-03-26 16:40:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6419,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":30530},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30531},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30530,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":30531,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-26 16:40:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6419,"items_count":3} 
[2026-03-26 16:40:54] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30530,"menu_item_id":96,"quantity":1},{"id":30531,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-26 16:40:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6419,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["96|1|","396|2|"],"new_items_map_keys":["96|1|","396|2|","2|1|"]} 
[2026-03-26 16:40:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6419,"order_number":"AZS-260326-006"} 
[2026-03-26 16:40:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260326-006","replaced_order_id":6419} 
[2026-03-26 16:40:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6427,"items_count":3,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-26 16:40:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6427,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6427}} 
[2026-03-26 16:40:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6427,"item_index":0,"menu_item_id":96} 
[2026-03-26 16:40:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6427,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6427}} 
[2026-03-26 16:40:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6427,"item_index":1,"menu_item_id":396} 
[2026-03-26 16:40:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6427,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6427}} 
[2026-03-26 16:40:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6427,"item_index":2,"menu_item_id":2} 
[2026-03-26 16:40:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6419,"new_order_id":6427,"order_number":"AZS-260326-006"} 
[2026-03-26 16:48:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6425,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":30561},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null,"id":30562},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":30563},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":30564},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30565},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30566}],"validated_items":[{"id":30561,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":30562,"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"id":30563,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":30564,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":30565,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30566,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-26 16:48:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6425,"items_count":6} 
[2026-03-26 16:48:20] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30561,"menu_item_id":113,"quantity":1},{"id":30562,"menu_item_id":55,"quantity":2},{"id":30563,"menu_item_id":396,"quantity":1},{"id":30564,"menu_item_id":61,"quantity":2},{"id":30565,"menu_item_id":56,"quantity":1},{"id":30566,"menu_item_id":5,"quantity":1}]} 
[2026-03-26 16:48:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6425,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","55|2|","396|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["113|1|","55|2|","396|1|","61|2|","56|1|","5|1|"]} 
[2026-03-26 16:48:20] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6425,"order_number":"AZS-260326-009"} 
[2026-03-26 16:48:20] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260326-009","replaced_order_id":6425} 
[2026-03-26 16:48:20] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6428,"items_count":6,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-26 16:48:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6428,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6428}} 
[2026-03-26 16:48:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6428,"item_index":0,"menu_item_id":113} 
[2026-03-26 16:48:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6428,"item_index":1,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6428}} 
[2026-03-26 16:48:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6428,"item_index":1,"menu_item_id":55} 
[2026-03-26 16:48:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6428,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6428}} 
[2026-03-26 16:48:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6428,"item_index":2,"menu_item_id":396} 
[2026-03-26 16:48:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6428,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6428}} 
[2026-03-26 16:48:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6428,"item_index":3,"menu_item_id":61} 
[2026-03-26 16:48:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6428,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6428}} 
[2026-03-26 16:48:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6428,"item_index":4,"menu_item_id":56} 
[2026-03-26 16:48:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6428,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6428}} 
[2026-03-26 16:48:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6428,"item_index":5,"menu_item_id":5} 
[2026-03-26 16:48:20] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6425,"new_order_id":6428,"order_number":"AZS-260326-009"} 
[2026-03-26 16:49:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6427,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30575},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30576},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30577}],"validated_items":[{"id":30575,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30576,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30577,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-26 16:49:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6427,"items_count":3} 
[2026-03-26 16:49:09] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30575,"menu_item_id":96,"quantity":1},{"id":30576,"menu_item_id":396,"quantity":2},{"id":30577,"menu_item_id":2,"quantity":1}]} 
[2026-03-26 16:49:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6427,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["96|1|","396|2|","2|1|"],"new_items_map_keys":["96|1|","396|2|","2|1|"]} 
[2026-03-26 16:49:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6427,"order_number":"AZS-260326-006"} 
[2026-03-26 16:49:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6427,"order_number":"AZS-260326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-26 16:49:09"} 
[2026-03-26 16:53:36] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6427,"order_number":"AZS-260326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 16:53:36"} 
[2026-03-26 16:53:36] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6427,"order_number":"AZS-260326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 16:53:36"} 
[2026-03-26 16:53:36] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6427,"order_number":"AZS-260326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 16:53:36"} 
[2026-03-26 16:53:36] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6427,"order_number":"AZS-260326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 16:53:36"} 
[2026-03-26 16:53:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6427,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30575},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30576},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30577}],"validated_items":[{"id":30575,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30576,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30577,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-26 16:53:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6427,"items_count":3} 
[2026-03-26 16:53:36] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30575,"menu_item_id":96,"quantity":1},{"id":30576,"menu_item_id":396,"quantity":2},{"id":30577,"menu_item_id":2,"quantity":1}]} 
[2026-03-26 16:53:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6427,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["96|1|","396|2|","2|1|"],"new_items_map_keys":["96|1|","396|2|","2|1|"]} 
[2026-03-26 16:53:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6427,"order_number":"AZS-260326-006"} 
[2026-03-26 16:53:36] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6427,"order_number":"AZS-260326-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-26 16:53:36","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-26 16:53:36"} 
[2026-03-26 16:53:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6427,"order_number":"AZS-260326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-26 16:53:36"} 
[2026-03-26 16:53:36] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6427,"order_number":"AZS-260326-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-26 16:53:36","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-26 16:53:36"} 
[2026-03-26 16:57:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6428,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":30578},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null,"id":30579},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":30580},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":30581},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30582},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30583}],"validated_items":[{"id":30578,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":30579,"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"id":30580,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":30581,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":30582,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30583,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-26 16:57:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6428,"items_count":6} 
[2026-03-26 16:57:37] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30578,"menu_item_id":113,"quantity":1},{"id":30579,"menu_item_id":55,"quantity":2},{"id":30580,"menu_item_id":396,"quantity":1},{"id":30581,"menu_item_id":61,"quantity":3},{"id":30582,"menu_item_id":56,"quantity":1},{"id":30583,"menu_item_id":5,"quantity":1}]} 
[2026-03-26 16:57:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6428,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","55|2|","396|1|","61|2|","56|1|","5|1|"],"new_items_map_keys":["113|1|","55|2|","396|1|","61|3|","56|1|","5|1|"]} 
[2026-03-26 16:57:37] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6428,"order_number":"AZS-260326-009"} 
[2026-03-26 16:57:37] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260326-009","replaced_order_id":6428} 
[2026-03-26 16:57:37] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6429,"items_count":6,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-26 16:57:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6429,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6429}} 
[2026-03-26 16:57:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6429,"item_index":0,"menu_item_id":113} 
[2026-03-26 16:57:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6429,"item_index":1,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6429}} 
[2026-03-26 16:57:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6429,"item_index":1,"menu_item_id":55} 
[2026-03-26 16:57:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6429,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6429}} 
[2026-03-26 16:57:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6429,"item_index":2,"menu_item_id":396} 
[2026-03-26 16:57:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6429,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6429}} 
[2026-03-26 16:57:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6429,"item_index":3,"menu_item_id":61} 
[2026-03-26 16:57:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6429,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6429}} 
[2026-03-26 16:57:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6429,"item_index":4,"menu_item_id":56} 
[2026-03-26 16:57:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6429,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6429}} 
[2026-03-26 16:57:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6429,"item_index":5,"menu_item_id":5} 
[2026-03-26 16:57:37] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6428,"new_order_id":6429,"order_number":"AZS-260326-009"} 
[2026-03-26 17:00:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6429,"item_index":0,"item_id":30578} 
[2026-03-26 17:00:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6429,"item_index":1,"item_id":30579} 
[2026-03-26 17:00:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6429,"item_index":2,"item_id":30580} 
[2026-03-26 17:00:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6429,"item_index":3,"item_id":30581} 
[2026-03-26 17:00:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6429,"item_index":4,"item_id":30582} 
[2026-03-26 17:00:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6429,"item_index":5,"item_id":30583} 
[2026-03-26 17:00:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":6,"order_id":6429,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":30578},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null,"id":30579},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":30580},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":30581},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30582},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30583},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-26 17:00:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6429,"items_count":7} 
[2026-03-26 17:00:12] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":6,"items_to_remove":[30584,30585,30586,30587,30588,30589],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":55,"quantity":2},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":29,"quantity":2}]} 
[2026-03-26 17:00:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6429,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["113|1|","55|2|","396|1|","61|3|","56|1|","5|1|"],"new_items_map_keys":["113|1|","55|2|","396|1|","61|3|","56|1|","5|1|","29|2|"]} 
[2026-03-26 17:00:12] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6429,"order_number":"AZS-260326-009"} 
[2026-03-26 17:00:12] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260326-009","replaced_order_id":6429} 
[2026-03-26 17:00:12] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6430,"items_count":7,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":29,"quantity":2,"price":"250.00"}]} 
[2026-03-26 17:00:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6430,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6430}} 
[2026-03-26 17:00:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6430,"item_index":0,"menu_item_id":113} 
[2026-03-26 17:00:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6430,"item_index":1,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6430}} 
[2026-03-26 17:00:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6430,"item_index":1,"menu_item_id":55} 
[2026-03-26 17:00:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6430,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6430}} 
[2026-03-26 17:00:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6430,"item_index":2,"menu_item_id":396} 
[2026-03-26 17:00:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6430,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6430}} 
[2026-03-26 17:00:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6430,"item_index":3,"menu_item_id":61} 
[2026-03-26 17:00:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6430,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6430}} 
[2026-03-26 17:00:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6430,"item_index":4,"menu_item_id":56} 
[2026-03-26 17:00:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6430,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6430}} 
[2026-03-26 17:00:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6430,"item_index":5,"menu_item_id":5} 
[2026-03-26 17:00:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6430,"item_index":6,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6430}} 
[2026-03-26 17:00:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6430,"item_index":6,"menu_item_id":29} 
[2026-03-26 17:00:12] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6429,"new_order_id":6430,"order_number":"AZS-260326-009"} 
[2026-03-26 17:05:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6423,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":30549},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30550},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30551},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30552},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30553},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":30549,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":30550,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":30551,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30552,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30553,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-26 17:05:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6423,"items_count":6} 
[2026-03-26 17:05:07] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30549,"menu_item_id":113,"quantity":1},{"id":30550,"menu_item_id":396,"quantity":2},{"id":30551,"menu_item_id":61,"quantity":1},{"id":30552,"menu_item_id":56,"quantity":1},{"id":30553,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-26 17:05:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6423,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["113|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["113|1|","396|2|","61|1|","56|1|","5|1|","2|2|"]} 
[2026-03-26 17:05:07] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6423,"order_number":"AZS-260326-008"} 
[2026-03-26 17:05:07] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260326-008","replaced_order_id":6423} 
[2026-03-26 17:05:07] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6431,"items_count":6,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-26 17:05:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6431,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6431}} 
[2026-03-26 17:05:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6431,"item_index":0,"menu_item_id":113} 
[2026-03-26 17:05:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6431,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6431}} 
[2026-03-26 17:05:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6431,"item_index":1,"menu_item_id":396} 
[2026-03-26 17:05:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6431,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6431}} 
[2026-03-26 17:05:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6431,"item_index":2,"menu_item_id":61} 
[2026-03-26 17:05:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6431,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6431}} 
[2026-03-26 17:05:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6431,"item_index":3,"menu_item_id":56} 
[2026-03-26 17:05:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6431,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6431}} 
[2026-03-26 17:05:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6431,"item_index":4,"menu_item_id":5} 
[2026-03-26 17:05:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6431,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6431}} 
[2026-03-26 17:05:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6431,"item_index":5,"menu_item_id":2} 
[2026-03-26 17:05:07] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6423,"new_order_id":6431,"order_number":"AZS-260326-008"} 
[2026-03-26 17:05:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6413,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30498},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30499},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30500},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30501}],"validated_items":[{"id":30498,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30499,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30500,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30501,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-26 17:05:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6413,"items_count":4} 
[2026-03-26 17:05:28] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30498,"menu_item_id":102,"quantity":1},{"id":30499,"menu_item_id":396,"quantity":2},{"id":30500,"menu_item_id":61,"quantity":1},{"id":30501,"menu_item_id":5,"quantity":1}]} 
[2026-03-26 17:05:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6413,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["102|1|","396|2|","61|1|","5|1|"],"new_items_map_keys":["102|1|","396|2|","61|1|","5|1|"]} 
[2026-03-26 17:05:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6413,"order_number":"AZS-260326-005"} 
[2026-03-26 17:05:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6413,"order_number":"AZS-260326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-26 17:05:28"} 
[2026-03-26 17:05:50] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6413,"order_number":"AZS-260326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 17:05:50"} 
[2026-03-26 17:05:50] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6413,"order_number":"AZS-260326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 17:05:50"} 
[2026-03-26 17:05:50] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6413,"order_number":"AZS-260326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 17:05:50"} 
[2026-03-26 17:05:50] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6413,"order_number":"AZS-260326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 17:05:50"} 
[2026-03-26 17:05:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6413,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30498},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30499},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30500},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30501}],"validated_items":[{"id":30498,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30499,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30500,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30501,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-26 17:05:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6413,"items_count":4} 
[2026-03-26 17:05:50] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30498,"menu_item_id":102,"quantity":1},{"id":30499,"menu_item_id":396,"quantity":2},{"id":30500,"menu_item_id":61,"quantity":1},{"id":30501,"menu_item_id":5,"quantity":1}]} 
[2026-03-26 17:05:50] local.INFO: PosOrderController::update - Item changes check {"order_id":6413,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["102|1|","396|2|","61|1|","5|1|"],"new_items_map_keys":["102|1|","396|2|","61|1|","5|1|"]} 
[2026-03-26 17:05:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6413,"order_number":"AZS-260326-005"} 
[2026-03-26 17:05:50] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6413,"order_number":"AZS-260326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-26 17:05:50","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-26 17:05:50"} 
[2026-03-26 17:05:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6413,"order_number":"AZS-260326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-26 17:05:50"} 
[2026-03-26 17:05:50] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6413,"order_number":"AZS-260326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-26 17:05:50","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-26 17:05:50"} 
[2026-03-26 17:06:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T05:06:08.970Z","date_to":"2026-03-26T17:06:08.970Z","per_page":"100"} 
[2026-03-26 17:06:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T05:06:08.955Z","date_to":"2026-03-26T17:06:08.955Z","per_page":"100"} 
[2026-03-26 17:06:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":3,"unique_order_numbers":9} 
[2026-03-26 17:06:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":3,"unique_order_numbers":9} 
[2026-03-26 17:06:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T05:06:08.955Z","date_to":"2026-03-26T17:06:08.955Z","per_page":"100"} 
[2026-03-26 17:06:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":3,"unique_order_numbers":9} 
[2026-03-26 17:06:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6426,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":30567},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":30568},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":30569},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30570},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":30571},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":30572},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30573},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":30574}],"validated_items":[{"id":30567,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":30568,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":30569,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":30570,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":30571,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":30572,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":30573,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":30574,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-26 17:06:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6426,"items_count":8} 
[2026-03-26 17:06:32] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30567,"menu_item_id":97,"quantity":1},{"id":30568,"menu_item_id":64,"quantity":1},{"id":30569,"menu_item_id":50,"quantity":2},{"id":30570,"menu_item_id":396,"quantity":2},{"id":30571,"menu_item_id":61,"quantity":2},{"id":30572,"menu_item_id":56,"quantity":2},{"id":30573,"menu_item_id":5,"quantity":1},{"id":30574,"menu_item_id":3,"quantity":1}]} 
[2026-03-26 17:06:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6426,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["97|1|","64|1|","50|2|","396|2|","61|2|","56|2|","5|1|","3|1|"],"new_items_map_keys":["97|1|","64|1|","50|2|","396|2|","61|2|","56|2|","5|1|","3|1|"]} 
[2026-03-26 17:06:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6426,"order_number":"AZS-260326-007"} 
[2026-03-26 17:06:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6426,"order_number":"AZS-260326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-26 17:06:32"} 
[2026-03-26 17:06:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6430,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":30590},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null,"id":30591},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":30592},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":30593},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30594},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30595},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null,"id":30596}],"validated_items":[{"id":30590,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":30591,"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"id":30592,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":30593,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":30594,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30595,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":30596,"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-26 17:06:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6430,"items_count":7} 
[2026-03-26 17:06:45] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30590,"menu_item_id":113,"quantity":1},{"id":30591,"menu_item_id":55,"quantity":2},{"id":30592,"menu_item_id":396,"quantity":1},{"id":30593,"menu_item_id":61,"quantity":3},{"id":30594,"menu_item_id":56,"quantity":1},{"id":30595,"menu_item_id":5,"quantity":1},{"id":30596,"menu_item_id":29,"quantity":2}]} 
[2026-03-26 17:06:45] local.INFO: PosOrderController::update - Item changes check {"order_id":6430,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["113|1|","55|2|","396|1|","61|3|","56|1|","5|1|","29|2|"],"new_items_map_keys":["113|1|","55|2|","396|1|","61|3|","56|1|","5|1|","29|2|"]} 
[2026-03-26 17:06:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6430,"order_number":"AZS-260326-009"} 
[2026-03-26 17:06:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6430,"order_number":"AZS-260326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-26 17:06:45"} 
[2026-03-26 17:06:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T05:06:51.265Z","date_to":"2026-03-26T17:06:51.265Z","per_page":"100"} 
[2026-03-26 17:06:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T05:06:51.288Z","date_to":"2026-03-26T17:06:51.288Z","per_page":"100"} 
[2026-03-26 17:06:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":3,"unique_order_numbers":9} 
[2026-03-26 17:06:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":3,"unique_order_numbers":9} 
[2026-03-26 17:06:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T05:06:51.265Z","date_to":"2026-03-26T17:06:51.265Z","per_page":"100"} 
[2026-03-26 17:06:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":3,"unique_order_numbers":9} 
[2026-03-26 17:07:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6426,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":30567},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":30568},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30569},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30570},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30571},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30572},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30573},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30574}],"validated_items":[{"id":30567,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":30568,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":30569,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30570,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30571,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30572,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30573,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30574,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-26 17:07:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6426,"items_count":8} 
[2026-03-26 17:07:16] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30567,"menu_item_id":97,"quantity":1},{"id":30568,"menu_item_id":64,"quantity":1},{"id":30569,"menu_item_id":50,"quantity":2},{"id":30570,"menu_item_id":396,"quantity":2},{"id":30571,"menu_item_id":61,"quantity":2},{"id":30572,"menu_item_id":56,"quantity":2},{"id":30573,"menu_item_id":5,"quantity":1},{"id":30574,"menu_item_id":3,"quantity":1}]} 
[2026-03-26 17:07:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6426,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["97|1|","64|1|","50|2|","396|2|","61|2|","56|2|","5|1|","3|1|"],"new_items_map_keys":["97|1|","64|1|","50|2|","396|2|","61|2|","56|2|","5|1|","3|1|"]} 
[2026-03-26 17:07:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6426,"order_number":"AZS-260326-007"} 
[2026-03-26 17:07:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6426,"order_number":"AZS-260326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-26 17:07:16"} 
[2026-03-26 17:07:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T05:07:33.536Z","date_to":"2026-03-26T17:07:33.536Z","per_page":"100"} 
[2026-03-26 17:07:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T05:07:33.553Z","date_to":"2026-03-26T17:07:33.553Z","per_page":"100"} 
[2026-03-26 17:07:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":3,"unique_order_numbers":9} 
[2026-03-26 17:07:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":3,"unique_order_numbers":9} 
[2026-03-26 17:07:35] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T05:07:33.536Z","date_to":"2026-03-26T17:07:33.536Z","per_page":"100"} 
[2026-03-26 17:07:35] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":3,"unique_order_numbers":9} 
[2026-03-26 17:10:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T05:10:26.328Z","date_to":"2026-03-26T17:10:26.328Z","per_page":"100"} 
[2026-03-26 17:10:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T05:10:26.339Z","date_to":"2026-03-26T17:10:26.339Z","per_page":"100"} 
[2026-03-26 17:10:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":3,"unique_order_numbers":9} 
[2026-03-26 17:10:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":3,"unique_order_numbers":9} 
[2026-03-26 17:10:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T05:10:26.328Z","date_to":"2026-03-26T17:10:26.328Z","per_page":"100"} 
[2026-03-26 17:10:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":3,"unique_order_numbers":9} 
[2026-03-26 17:11:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T05:10:26.339Z","date_to":"2026-03-26T17:10:26.339Z","per_page":"1000"} 
[2026-03-26 17:11:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":1000,"order_branch_ids":[1],"order_numbers":["AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":3,"unique_order_numbers":9} 
[2026-03-26 17:13:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":6430,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":30590},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null,"id":30591},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":30592},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":30593},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30594},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null,"id":30596}],"validated_items":[{"id":30590,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":30591,"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"id":30592,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":30593,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":30594,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30596,"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-26 17:13:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6430,"items_count":6} 
[2026-03-26 17:13:31] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[30595],"items":[{"id":30590,"menu_item_id":113,"quantity":1},{"id":30591,"menu_item_id":55,"quantity":2},{"id":30592,"menu_item_id":396,"quantity":1},{"id":30593,"menu_item_id":61,"quantity":3},{"id":30594,"menu_item_id":56,"quantity":1},{"id":30596,"menu_item_id":29,"quantity":2}]} 
[2026-03-26 17:13:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6430,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["113|1|","55|2|","396|1|","61|3|","56|1|","5|1|","29|2|"],"new_items_map_keys":["113|1|","55|2|","396|1|","61|3|","56|1|","29|2|"]} 
[2026-03-26 17:13:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6430,"order_number":"AZS-260326-009"} 
[2026-03-26 17:13:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260326-009","replaced_order_id":6430} 
[2026-03-26 17:13:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6432,"items_count":6,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":29,"quantity":2,"price":"250.00"}]} 
[2026-03-26 17:13:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6432,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6432}} 
[2026-03-26 17:13:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6432,"item_index":0,"menu_item_id":113} 
[2026-03-26 17:13:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6432,"item_index":1,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6432}} 
[2026-03-26 17:13:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6432,"item_index":1,"menu_item_id":55} 
[2026-03-26 17:13:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6432,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6432}} 
[2026-03-26 17:13:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6432,"item_index":2,"menu_item_id":396} 
[2026-03-26 17:13:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6432,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6432}} 
[2026-03-26 17:13:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6432,"item_index":3,"menu_item_id":61} 
[2026-03-26 17:13:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6432,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6432}} 
[2026-03-26 17:13:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6432,"item_index":4,"menu_item_id":56} 
[2026-03-26 17:13:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6432,"item_index":5,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6432}} 
[2026-03-26 17:13:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6432,"item_index":5,"menu_item_id":29} 
[2026-03-26 17:13:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6430,"new_order_id":6432,"order_number":"AZS-260326-009"} 
[2026-03-26 17:13:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6432,"item_index":0,"item_id":30590} 
[2026-03-26 17:13:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6432,"item_index":1,"item_id":30591} 
[2026-03-26 17:13:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6432,"item_index":2,"item_id":30592} 
[2026-03-26 17:13:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6432,"item_index":3,"item_id":30593} 
[2026-03-26 17:13:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6432,"item_index":4,"item_id":30594} 
[2026-03-26 17:13:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6432,"item_index":5,"item_id":30596} 
[2026-03-26 17:13:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6432,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30590},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":30591},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":30592},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":30593},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30594},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":30596}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-26 17:13:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6432,"items_count":6} 
[2026-03-26 17:13:36] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[30603,30604,30605,30606,30607,30608],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":55,"quantity":2},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":29,"quantity":2}]} 
[2026-03-26 17:13:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6432,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","55|2|","396|1|","61|3|","56|1|","29|2|"],"new_items_map_keys":["113|1|","55|2|","396|1|","61|3|","56|1|","29|2|"]} 
[2026-03-26 17:13:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6432,"order_number":"AZS-260326-009"} 
[2026-03-26 17:13:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6432,"order_number":"AZS-260326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-26 17:13:36"} 
[2026-03-26 17:18:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6432,"item_index":0,"item_id":30590} 
[2026-03-26 17:18:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6432,"item_index":1,"item_id":30591} 
[2026-03-26 17:18:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6432,"item_index":2,"item_id":30592} 
[2026-03-26 17:18:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6432,"item_index":3,"item_id":30593} 
[2026-03-26 17:18:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6432,"item_index":4,"item_id":30594} 
[2026-03-26 17:18:25] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6432,"item_index":5,"item_id":30596} 
[2026-03-26 17:18:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6432,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30590},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":30591},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":30592},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":30593},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30594},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":30596}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-26 17:18:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6432,"items_count":6} 
[2026-03-26 17:18:25] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[30603,30604,30605,30606,30607,30608],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":55,"quantity":2},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":29,"quantity":2}]} 
[2026-03-26 17:18:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6432,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","55|2|","396|1|","61|3|","56|1|","29|2|"],"new_items_map_keys":["113|1|","55|2|","396|1|","61|3|","56|1|","29|2|"]} 
[2026-03-26 17:18:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6432,"order_number":"AZS-260326-009"} 
[2026-03-26 17:18:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6432,"order_number":"AZS-260326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-26 17:18:25"} 
[2026-03-26 17:18:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6432,"item_index":0,"item_id":30590} 
[2026-03-26 17:18:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6432,"item_index":1,"item_id":30591} 
[2026-03-26 17:18:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6432,"item_index":2,"item_id":30592} 
[2026-03-26 17:18:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6432,"item_index":3,"item_id":30593} 
[2026-03-26 17:18:55] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6432,"item_index":4,"item_id":30596} 
[2026-03-26 17:18:55] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6432,"order_number":"AZS-260326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 17:18:55"} 
[2026-03-26 17:18:55] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6432,"order_number":"AZS-260326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 17:18:55"} 
[2026-03-26 17:18:55] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6432,"order_number":"AZS-260326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 17:18:55"} 
[2026-03-26 17:18:55] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6432,"order_number":"AZS-260326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 17:18:55"} 
[2026-03-26 17:18:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":6,"order_id":6432,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30590},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":30591},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":30592},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30593},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":30596}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-26 17:18:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6432,"items_count":5} 
[2026-03-26 17:18:55] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":6,"items_to_remove":[30603,30604,30605,30606,30607,30608],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":55,"quantity":2},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":29,"quantity":2}]} 
[2026-03-26 17:18:55] local.INFO: PosOrderController::update - Item changes check {"order_id":6432,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["113|1|","55|2|","396|1|","61|3|","56|1|","29|2|"],"new_items_map_keys":["113|1|","55|2|","396|1|","61|2|","29|2|"]} 
[2026-03-26 17:18:55] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6432,"order_number":"AZS-260326-009","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-26 17:18:55","original_payment_amount":"0.00","grand_total":2640.0,"timestamp":"2026-03-26 17:18:55"} 
[2026-03-26 17:18:55] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6432,"order_number":"AZS-260326-009"} 
[2026-03-26 17:18:55] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260326-009","replaced_order_id":6432} 
[2026-03-26 17:18:55] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6432,"new_order_id":6433,"order_number":"AZS-260326-009","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-26 17:18:55","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-26 17:18:55"} 
[2026-03-26 17:18:55] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6433,"items_count":5,"items":[{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":55,"quantity":2,"price":159.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":61,"quantity":2,"price":199.0},{"menu_item_id":29,"quantity":2,"price":250.0}]} 
[2026-03-26 17:18:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6433,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6433}} 
[2026-03-26 17:18:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6433,"item_index":0,"menu_item_id":113} 
[2026-03-26 17:18:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6433,"item_index":1,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6433}} 
[2026-03-26 17:18:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6433,"item_index":1,"menu_item_id":55} 
[2026-03-26 17:18:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6433,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6433}} 
[2026-03-26 17:18:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6433,"item_index":2,"menu_item_id":396} 
[2026-03-26 17:18:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6433,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6433}} 
[2026-03-26 17:18:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6433,"item_index":3,"menu_item_id":61} 
[2026-03-26 17:18:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6433,"item_index":4,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":2,"price":250.0,"discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6433}} 
[2026-03-26 17:18:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6433,"item_index":4,"menu_item_id":29} 
[2026-03-26 17:18:55] local.ERROR: Error tracking recipe usage for order 6433: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6433, 55, 102, 1, 20, 0.00, Order #AZS-260326-009 - 2x Garlic Naan, 2026-03-26 17:18:55, 2026-03-26 17:18:55))  
[2026-03-26 17:18:55] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6432,"new_order_id":6433,"order_number":"AZS-260326-009"} 
[2026-03-26 17:18:55] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6432,"new_order_id":6433,"order_number":"AZS-260326-009","route":"api/orders/6432"} 
[2026-03-26 17:18:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T05:18:59.200Z","date_to":"2026-03-26T17:18:59.200Z","per_page":"100"} 
[2026-03-26 17:18:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T05:18:59.213Z","date_to":"2026-03-26T17:18:59.213Z","per_page":"100"} 
[2026-03-26 17:18:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["paid","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":2,"unique_order_numbers":9} 
[2026-03-26 17:18:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["paid","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":2,"unique_order_numbers":9} 
[2026-03-26 17:19:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T05:18:59.200Z","date_to":"2026-03-26T17:18:59.200Z","per_page":"100"} 
[2026-03-26 17:19:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["paid","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":2,"unique_order_numbers":9} 
[2026-03-26 17:27:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6431,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30597},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30598},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30599},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30600},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30602}],"validated_items":[{"id":30597,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30598,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30599,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30600,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30602,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-26 17:27:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6431,"items_count":5} 
[2026-03-26 17:27:55] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[30601],"items":[{"id":30597,"menu_item_id":113,"quantity":1},{"id":30598,"menu_item_id":396,"quantity":2},{"id":30599,"menu_item_id":61,"quantity":1},{"id":30600,"menu_item_id":56,"quantity":1},{"id":30602,"menu_item_id":2,"quantity":2}]} 
[2026-03-26 17:27:55] local.INFO: PosOrderController::update - Item changes check {"order_id":6431,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["113|1|","396|2|","61|1|","56|1|","5|1|","2|2|"],"new_items_map_keys":["113|1|","396|2|","61|1|","56|1|","2|2|"]} 
[2026-03-26 17:27:55] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6431,"order_number":"AZS-260326-008"} 
[2026-03-26 17:27:55] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260326-008","replaced_order_id":6431} 
[2026-03-26 17:27:55] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6434,"items_count":5,"items":[{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":2,"quantity":2,"price":130.0}]} 
[2026-03-26 17:27:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6434,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6434}} 
[2026-03-26 17:27:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6434,"item_index":0,"menu_item_id":113} 
[2026-03-26 17:27:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6434,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6434}} 
[2026-03-26 17:27:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6434,"item_index":1,"menu_item_id":396} 
[2026-03-26 17:27:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6434,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6434}} 
[2026-03-26 17:27:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6434,"item_index":2,"menu_item_id":61} 
[2026-03-26 17:27:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6434,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6434}} 
[2026-03-26 17:27:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6434,"item_index":3,"menu_item_id":56} 
[2026-03-26 17:27:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6434,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6434}} 
[2026-03-26 17:27:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6434,"item_index":4,"menu_item_id":2} 
[2026-03-26 17:27:55] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6431,"new_order_id":6434,"order_number":"AZS-260326-008"} 
[2026-03-26 17:28:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6434,"item_index":0,"item_id":30597} 
[2026-03-26 17:28:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6434,"item_index":1,"item_id":30598} 
[2026-03-26 17:28:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6434,"item_index":2,"item_id":30599} 
[2026-03-26 17:28:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6434,"item_index":3,"item_id":30600} 
[2026-03-26 17:28:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6434,"item_index":4,"item_id":30602} 
[2026-03-26 17:28:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6434,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30597},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30598},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30599},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30600},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30602}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-26 17:28:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6434,"items_count":5} 
[2026-03-26 17:28:02] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[30614,30615,30616,30617,30618],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-26 17:28:02] local.INFO: PosOrderController::update - Item changes check {"order_id":6434,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["113|1|","396|2|","61|1|","56|1|","2|2|"],"new_items_map_keys":["113|1|","396|2|","61|1|","56|1|","2|2|"]} 
[2026-03-26 17:28:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6434,"order_number":"AZS-260326-008"} 
[2026-03-26 17:28:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6434,"order_number":"AZS-260326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-26 17:28:02"} 
[2026-03-26 17:28:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T05:28:12.725Z","date_to":"2026-03-26T17:28:12.725Z","per_page":"100"} 
[2026-03-26 17:28:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T05:28:12.747Z","date_to":"2026-03-26T17:28:12.747Z","per_page":"100"} 
[2026-03-26 17:28:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["paid","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":2,"unique_order_numbers":9} 
[2026-03-26 17:28:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["paid","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":2,"unique_order_numbers":9} 
[2026-03-26 17:28:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T05:28:12.725Z","date_to":"2026-03-26T17:28:12.725Z","per_page":"100"} 
[2026-03-26 17:28:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["paid","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":2,"unique_order_numbers":9} 
[2026-03-26 17:28:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6426,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":30567},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":30568},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30569},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30570},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30571},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30572},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30573},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30574}],"validated_items":[{"id":30567,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":30568,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":30569,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30570,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30571,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30572,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30573,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30574,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-26 17:28:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6426,"items_count":8} 
[2026-03-26 17:28:36] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30567,"menu_item_id":97,"quantity":1},{"id":30568,"menu_item_id":64,"quantity":1},{"id":30569,"menu_item_id":50,"quantity":2},{"id":30570,"menu_item_id":396,"quantity":2},{"id":30571,"menu_item_id":61,"quantity":2},{"id":30572,"menu_item_id":56,"quantity":2},{"id":30573,"menu_item_id":5,"quantity":1},{"id":30574,"menu_item_id":3,"quantity":1}]} 
[2026-03-26 17:28:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6426,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["97|1|","64|1|","50|2|","396|2|","61|2|","56|2|","5|1|","3|1|"],"new_items_map_keys":["97|1|","64|1|","50|2|","396|2|","61|2|","56|2|","5|1|","3|1|"]} 
[2026-03-26 17:28:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6426,"order_number":"AZS-260326-007"} 
[2026-03-26 17:28:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6426,"order_number":"AZS-260326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-26 17:28:36"} 
[2026-03-26 17:31:52] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6434,"order_number":"AZS-260326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 17:31:52"} 
[2026-03-26 17:31:52] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6434,"order_number":"AZS-260326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 17:31:52"} 
[2026-03-26 17:31:52] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6434,"order_number":"AZS-260326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 17:31:52"} 
[2026-03-26 17:31:52] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6434,"order_number":"AZS-260326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 17:31:52"} 
[2026-03-26 17:31:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6434,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30614},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30615},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30616},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30617},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30618}],"validated_items":[{"id":30614,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30615,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30616,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30617,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30618,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-26 17:31:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6434,"items_count":5} 
[2026-03-26 17:31:52] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30614,"menu_item_id":113,"quantity":1},{"id":30615,"menu_item_id":396,"quantity":2},{"id":30616,"menu_item_id":61,"quantity":1},{"id":30617,"menu_item_id":56,"quantity":1},{"id":30618,"menu_item_id":2,"quantity":2}]} 
[2026-03-26 17:31:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6434,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["113|1|","396|2|","61|1|","56|1|","2|2|"],"new_items_map_keys":["113|1|","396|2|","61|1|","56|1|","2|2|"]} 
[2026-03-26 17:31:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6434,"order_number":"AZS-260326-008"} 
[2026-03-26 17:31:52] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6434,"order_number":"AZS-260326-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-26 17:31:52","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-26 17:31:52"} 
[2026-03-26 17:31:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6434,"order_number":"AZS-260326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-26 17:31:52"} 
[2026-03-26 17:31:52] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6434,"order_number":"AZS-260326-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-26 17:31:52","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2500.00","database_verification_match":true,"timestamp":"2026-03-26 17:31:52"} 
[2026-03-26 17:33:20] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6426,"order_number":"AZS-260326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 17:33:20"} 
[2026-03-26 17:33:20] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6426,"order_number":"AZS-260326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 17:33:20"} 
[2026-03-26 17:33:20] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6426,"order_number":"AZS-260326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 17:33:20"} 
[2026-03-26 17:33:20] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6426,"order_number":"AZS-260326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 17:33:20"} 
[2026-03-26 17:33:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6426,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":30567},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":30568},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30569},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30570},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30571},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30572},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30573},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30574}],"validated_items":[{"id":30567,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":30568,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":30569,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30570,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30571,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30572,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30573,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30574,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-26 17:33:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6426,"items_count":8} 
[2026-03-26 17:33:20] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30567,"menu_item_id":97,"quantity":1},{"id":30568,"menu_item_id":64,"quantity":1},{"id":30569,"menu_item_id":50,"quantity":2},{"id":30570,"menu_item_id":396,"quantity":2},{"id":30571,"menu_item_id":61,"quantity":2},{"id":30572,"menu_item_id":56,"quantity":2},{"id":30573,"menu_item_id":5,"quantity":1},{"id":30574,"menu_item_id":3,"quantity":1}]} 
[2026-03-26 17:33:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6426,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["97|1|","64|1|","50|2|","396|2|","61|2|","56|2|","5|1|","3|1|"],"new_items_map_keys":["97|1|","64|1|","50|2|","396|2|","61|2|","56|2|","5|1|","3|1|"]} 
[2026-03-26 17:33:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6426,"order_number":"AZS-260326-007"} 
[2026-03-26 17:33:20] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6426,"order_number":"AZS-260326-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-26 17:33:20","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-26 17:33:20"} 
[2026-03-26 17:33:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6426,"order_number":"AZS-260326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-26 17:33:20"} 
[2026-03-26 17:33:20] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6426,"order_number":"AZS-260326-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-26 17:33:20","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-26 17:33:20"} 
[2026-03-26 17:36:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T05:36:27.326Z","date_to":"2026-03-26T17:36:27.326Z","per_page":"100"} 
[2026-03-26 17:36:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T05:36:27.348Z","date_to":"2026-03-26T17:36:27.348Z","per_page":"100"} 
[2026-03-26 17:36:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-26 17:36:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-26 17:36:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T05:36:27.326Z","date_to":"2026-03-26T17:36:27.326Z","per_page":"100"} 
[2026-03-26 17:36:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":0,"unique_order_numbers":9} 
[2026-03-26 18:41:27] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-26 18:55:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6438,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null,"id":30633},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30634}],"validated_items":[{"id":30633,"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null},{"id":30634,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-26 18:55:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6438,"items_count":2} 
[2026-03-26 18:55:36] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30633,"menu_item_id":6,"quantity":3},{"id":30634,"menu_item_id":5,"quantity":1}]} 
[2026-03-26 18:55:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6438,"has_item_changes":true,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|4|","5|1|"],"new_items_map_keys":["6|3|","5|1|"]} 
[2026-03-26 18:55:36] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6438,"order_number":"AZS-260326-013"} 
[2026-03-26 18:55:36] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260326-013","replaced_order_id":6438} 
[2026-03-26 18:55:36] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6439,"items_count":2,"items":[{"menu_item_id":6,"quantity":3,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-26 18:55:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6439,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6439}} 
[2026-03-26 18:55:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6439,"item_index":0,"menu_item_id":6} 
[2026-03-26 18:55:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6439,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6439}} 
[2026-03-26 18:55:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6439,"item_index":1,"menu_item_id":5} 
[2026-03-26 18:55:36] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6438,"new_order_id":6439,"order_number":"AZS-260326-013"} 
[2026-03-26 18:55:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6436,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":2,"discount_percent":0,"notes":null,"id":30625},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":30626},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":30627},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30628},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30629},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30630},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":30625,"menu_item_id":105,"quantity":2,"discount_percent":0,"notes":null},{"id":30626,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":30627,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"id":30628,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30629,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30630,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-26 18:55:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6436,"items_count":8} 
[2026-03-26 18:55:55] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30625,"menu_item_id":105,"quantity":2},{"id":30626,"menu_item_id":396,"quantity":1},{"id":30627,"menu_item_id":48,"quantity":1},{"id":30628,"menu_item_id":61,"quantity":1},{"id":30629,"menu_item_id":56,"quantity":1},{"id":30630,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-03-26 18:55:55] local.INFO: PosOrderController::update - Item changes check {"order_id":6436,"has_item_changes":true,"old_items_count":6,"new_items_count":8,"old_items_map_keys":["105|2|","396|1|","48|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|2|","396|1|","48|1|","61|1|","56|1|","5|1|","2|1|","13|2|"]} 
[2026-03-26 18:55:55] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6436,"order_number":"AZS-260326-011"} 
[2026-03-26 18:55:55] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260326-011","replaced_order_id":6436} 
[2026-03-26 18:55:55] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6440,"items_count":8,"items":[{"menu_item_id":105,"quantity":2,"price":"2199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"}]} 
[2026-03-26 18:55:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6440,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":2,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":4398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6440}} 
[2026-03-26 18:55:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6440,"item_index":0,"menu_item_id":105} 
[2026-03-26 18:55:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6440,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6440}} 
[2026-03-26 18:55:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6440,"item_index":1,"menu_item_id":396} 
[2026-03-26 18:55:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6440,"item_index":2,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6440}} 
[2026-03-26 18:55:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6440,"item_index":2,"menu_item_id":48} 
[2026-03-26 18:55:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6440,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6440}} 
[2026-03-26 18:55:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6440,"item_index":3,"menu_item_id":61} 
[2026-03-26 18:55:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6440,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6440}} 
[2026-03-26 18:55:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6440,"item_index":4,"menu_item_id":56} 
[2026-03-26 18:55:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6440,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6440}} 
[2026-03-26 18:55:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6440,"item_index":5,"menu_item_id":5} 
[2026-03-26 18:55:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6440,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6440}} 
[2026-03-26 18:55:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6440,"item_index":6,"menu_item_id":2} 
[2026-03-26 18:55:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6440,"item_index":7,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6440}} 
[2026-03-26 18:55:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6440,"item_index":7,"menu_item_id":13} 
[2026-03-26 18:55:55] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6436,"new_order_id":6440,"order_number":"AZS-260326-011"} 
[2026-03-26 19:02:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6440,"item_index":0,"item_id":30625} 
[2026-03-26 19:02:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6440,"item_index":1,"item_id":30626} 
[2026-03-26 19:02:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6440,"item_index":2,"item_id":30627} 
[2026-03-26 19:02:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6440,"item_index":3,"item_id":30628} 
[2026-03-26 19:02:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6440,"item_index":4,"item_id":30629} 
[2026-03-26 19:02:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6440,"item_index":5,"item_id":30630} 
[2026-03-26 19:02:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":8,"order_id":6440,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":2,"price":2199,"discount_percent":0,"notes":null,"id":30625},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":30626},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":30627},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30628},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30629},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30630},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":2,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-26 19:02:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6440,"items_count":8} 
[2026-03-26 19:02:41] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":8,"items_to_remove":[30637,30638,30639,30640,30641,30642,30643,30644],"items":[{"id":null,"menu_item_id":105,"quantity":2},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":48,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-03-26 19:02:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6440,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["105|2|","396|1|","48|1|","61|1|","56|1|","5|1|","2|1|","13|2|"],"new_items_map_keys":["105|2|","396|1|","48|1|","61|1|","56|1|","5|1|","2|1|","13|2|"]} 
[2026-03-26 19:02:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6440,"order_number":"AZS-260326-011"} 
[2026-03-26 19:02:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6440,"order_number":"AZS-260326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-26 19:02:41"} 
[2026-03-26 19:02:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T07:02:51.142Z","date_to":"2026-03-26T19:02:51.142Z","per_page":"100"} 
[2026-03-26 19:02:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T07:02:51.151Z","date_to":"2026-03-26T19:02:51.151Z","per_page":"100"} 
[2026-03-26 19:02:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-013","AZS-260326-012","AZS-260326-011","AZS-260326-010","AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":4,"unique_order_numbers":13} 
[2026-03-26 19:02:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-013","AZS-260326-012","AZS-260326-011","AZS-260326-010","AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":4,"unique_order_numbers":13} 
[2026-03-26 19:02:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T07:02:51.142Z","date_to":"2026-03-26T19:02:51.142Z","per_page":"100"} 
[2026-03-26 19:02:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-013","AZS-260326-012","AZS-260326-011","AZS-260326-010","AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":4,"unique_order_numbers":13} 
[2026-03-26 19:04:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6437,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null,"id":30631},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":30632},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30631,"menu_item_id":67,"quantity":1,"discount_percent":0,"notes":null},{"id":30632,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-26 19:04:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6437,"items_count":4} 
[2026-03-26 19:04:45] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30631,"menu_item_id":67,"quantity":1},{"id":30632,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-03-26 19:04:45] local.INFO: PosOrderController::update - Item changes check {"order_id":6437,"has_item_changes":true,"old_items_count":2,"new_items_count":4,"old_items_map_keys":["67|1|","396|1|"],"new_items_map_keys":["67|1|","396|1|","2|1|","61|1|"]} 
[2026-03-26 19:04:45] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6437,"order_number":"AZS-260326-012"} 
[2026-03-26 19:04:45] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260326-012","replaced_order_id":6437} 
[2026-03-26 19:04:45] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6441,"items_count":4,"items":[{"menu_item_id":67,"quantity":1,"price":"599.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"}]} 
[2026-03-26 19:04:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6441,"item_index":0,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":1,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6441}} 
[2026-03-26 19:04:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6441,"item_index":0,"menu_item_id":67} 
[2026-03-26 19:04:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6441,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6441}} 
[2026-03-26 19:04:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6441,"item_index":1,"menu_item_id":396} 
[2026-03-26 19:04:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6441,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6441}} 
[2026-03-26 19:04:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6441,"item_index":2,"menu_item_id":2} 
[2026-03-26 19:04:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6441,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6441}} 
[2026-03-26 19:04:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6441,"item_index":3,"menu_item_id":61} 
[2026-03-26 19:04:45] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6437,"new_order_id":6441,"order_number":"AZS-260326-012"} 
[2026-03-26 19:08:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6435,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":30619},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30620},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":30621},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30622},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30623},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30624},{"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null}],"validated_items":[{"id":30619,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":30620,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":30621,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":30622,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30623,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30624,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-03-26 19:08:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6435,"items_count":7} 
[2026-03-26 19:08:27] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30619,"menu_item_id":106,"quantity":1},{"id":30620,"menu_item_id":396,"quantity":2},{"id":30621,"menu_item_id":50,"quantity":1},{"id":30622,"menu_item_id":61,"quantity":1},{"id":30623,"menu_item_id":56,"quantity":1},{"id":30624,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":4}]} 
[2026-03-26 19:08:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6435,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["106|1|","396|2|","50|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["106|1|","396|2|","50|1|","61|1|","56|1|","5|1|","13|4|"]} 
[2026-03-26 19:08:27] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6435,"order_number":"AZS-260326-010"} 
[2026-03-26 19:08:27] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260326-010","replaced_order_id":6435} 
[2026-03-26 19:08:27] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6442,"items_count":7,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":4,"price":"249.00"}]} 
[2026-03-26 19:08:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6442,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6442}} 
[2026-03-26 19:08:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6442,"item_index":0,"menu_item_id":106} 
[2026-03-26 19:08:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6442,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6442}} 
[2026-03-26 19:08:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6442,"item_index":1,"menu_item_id":396} 
[2026-03-26 19:08:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6442,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6442}} 
[2026-03-26 19:08:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6442,"item_index":2,"menu_item_id":50} 
[2026-03-26 19:08:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6442,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6442}} 
[2026-03-26 19:08:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6442,"item_index":3,"menu_item_id":61} 
[2026-03-26 19:08:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6442,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6442}} 
[2026-03-26 19:08:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6442,"item_index":4,"menu_item_id":56} 
[2026-03-26 19:08:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6442,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6442}} 
[2026-03-26 19:08:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6442,"item_index":5,"menu_item_id":5} 
[2026-03-26 19:08:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6442,"item_index":6,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":4,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6442}} 
[2026-03-26 19:08:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6442,"item_index":6,"menu_item_id":13} 
[2026-03-26 19:08:27] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6435,"new_order_id":6442,"order_number":"AZS-260326-010"} 
[2026-03-26 19:15:33] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6441,"order_number":"AZS-260326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 19:15:33"} 
[2026-03-26 19:15:33] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6441,"order_number":"AZS-260326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 19:15:33"} 
[2026-03-26 19:15:33] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6441,"order_number":"AZS-260326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 19:15:33"} 
[2026-03-26 19:15:33] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6441,"order_number":"AZS-260326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 19:15:33"} 
[2026-03-26 19:15:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6441,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":30645},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":30646},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30647},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30648}],"validated_items":[{"id":30645,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":30646,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":30647,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":30648,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-26 19:15:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6441,"items_count":4} 
[2026-03-26 19:15:33] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30645,"menu_item_id":67,"quantity":1},{"id":30646,"menu_item_id":396,"quantity":1},{"id":30647,"menu_item_id":2,"quantity":1},{"id":30648,"menu_item_id":61,"quantity":1}]} 
[2026-03-26 19:15:33] local.INFO: PosOrderController::update - Item changes check {"order_id":6441,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["67|1|","396|1|","2|1|","61|1|"],"new_items_map_keys":["67|1|","396|1|","2|1|","61|1|"]} 
[2026-03-26 19:15:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6441,"order_number":"AZS-260326-012"} 
[2026-03-26 19:15:33] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6441,"order_number":"AZS-260326-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-26 19:15:33","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-26 19:15:33"} 
[2026-03-26 19:15:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6441,"order_number":"AZS-260326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-26 19:15:33"} 
[2026-03-26 19:15:33] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6441,"order_number":"AZS-260326-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-26 19:15:33","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1100.00","database_verification_match":true,"timestamp":"2026-03-26 19:15:33"} 
[2026-03-26 19:17:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6442,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30649},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30650},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":30651},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30652},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30653},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30654},{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":30655}],"validated_items":[{"id":30649,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":30650,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30651,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":30652,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30653,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30654,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30655,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-26 19:17:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6442,"items_count":7} 
[2026-03-26 19:17:36] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30649,"menu_item_id":106,"quantity":1},{"id":30650,"menu_item_id":396,"quantity":2},{"id":30651,"menu_item_id":50,"quantity":1},{"id":30652,"menu_item_id":61,"quantity":1},{"id":30653,"menu_item_id":56,"quantity":1},{"id":30654,"menu_item_id":5,"quantity":1},{"id":30655,"menu_item_id":13,"quantity":4}]} 
[2026-03-26 19:17:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6442,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","396|2|","50|1|","61|1|","56|1|","5|1|","13|4|"],"new_items_map_keys":["106|1|","396|2|","50|1|","61|1|","56|1|","5|1|","13|4|"]} 
[2026-03-26 19:17:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6442,"order_number":"AZS-260326-010"} 
[2026-03-26 19:17:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6442,"order_number":"AZS-260326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-26 19:17:36"} 
[2026-03-26 19:28:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6442,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30649},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30650},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":30651},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30652},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30653},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30654},{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":30655}],"validated_items":[{"id":30649,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":30650,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30651,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":30652,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30653,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30654,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30655,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-26 19:28:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6442,"items_count":7} 
[2026-03-26 19:28:31] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30649,"menu_item_id":106,"quantity":1},{"id":30650,"menu_item_id":396,"quantity":2},{"id":30651,"menu_item_id":50,"quantity":1},{"id":30652,"menu_item_id":61,"quantity":1},{"id":30653,"menu_item_id":56,"quantity":1},{"id":30654,"menu_item_id":5,"quantity":1},{"id":30655,"menu_item_id":13,"quantity":4}]} 
[2026-03-26 19:28:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6442,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","396|2|","50|1|","61|1|","56|1|","5|1|","13|4|"],"new_items_map_keys":["106|1|","396|2|","50|1|","61|1|","56|1|","5|1|","13|4|"]} 
[2026-03-26 19:28:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6442,"order_number":"AZS-260326-010"} 
[2026-03-26 19:28:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6442,"order_number":"AZS-260326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-26 19:28:31"} 
[2026-03-26 19:28:55] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6442,"order_number":"AZS-260326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":7000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 19:28:55"} 
[2026-03-26 19:28:55] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6442,"order_number":"AZS-260326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":7000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 19:28:55"} 
[2026-03-26 19:28:55] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6442,"order_number":"AZS-260326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 19:28:55"} 
[2026-03-26 19:28:55] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6442,"order_number":"AZS-260326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 19:28:55"} 
[2026-03-26 19:28:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6442,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30649},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30650},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":30651},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30652},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30653},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30654},{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":30655}],"validated_items":[{"id":30649,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":30650,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30651,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":30652,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30653,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30654,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30655,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-26 19:28:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6442,"items_count":7} 
[2026-03-26 19:28:55] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30649,"menu_item_id":106,"quantity":1},{"id":30650,"menu_item_id":396,"quantity":2},{"id":30651,"menu_item_id":50,"quantity":1},{"id":30652,"menu_item_id":61,"quantity":1},{"id":30653,"menu_item_id":56,"quantity":1},{"id":30654,"menu_item_id":5,"quantity":1},{"id":30655,"menu_item_id":13,"quantity":4}]} 
[2026-03-26 19:28:55] local.INFO: PosOrderController::update - Item changes check {"order_id":6442,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","396|2|","50|1|","61|1|","56|1|","5|1|","13|4|"],"new_items_map_keys":["106|1|","396|2|","50|1|","61|1|","56|1|","5|1|","13|4|"]} 
[2026-03-26 19:28:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6442,"order_number":"AZS-260326-010"} 
[2026-03-26 19:28:55] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6442,"order_number":"AZS-260326-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":7000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-26 19:28:55","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-26 19:28:55"} 
[2026-03-26 19:28:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6442,"order_number":"AZS-260326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-26 19:28:55"} 
[2026-03-26 19:28:55] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6442,"order_number":"AZS-260326-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"7000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-26 19:28:55","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":7000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"7000.00","database_verification_match":true,"timestamp":"2026-03-26 19:28:55"} 
[2026-03-26 19:28:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T07:28:59.865Z","date_to":"2026-03-26T19:28:59.865Z","per_page":"100"} 
[2026-03-26 19:28:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T07:28:59.881Z","date_to":"2026-03-26T19:28:59.881Z","per_page":"100"} 
[2026-03-26 19:28:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-013","AZS-260326-012","AZS-260326-011","AZS-260326-010","AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":2,"unique_order_numbers":13} 
[2026-03-26 19:28:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-013","AZS-260326-012","AZS-260326-011","AZS-260326-010","AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":2,"unique_order_numbers":13} 
[2026-03-26 19:29:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T07:28:59.865Z","date_to":"2026-03-26T19:28:59.865Z","per_page":"100"} 
[2026-03-26 19:29:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-013","AZS-260326-012","AZS-260326-011","AZS-260326-010","AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":2,"unique_order_numbers":13} 
[2026-03-26 19:38:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6439,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":30635},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30636}],"validated_items":[{"id":30635,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":30636,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-26 19:38:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6439,"items_count":2} 
[2026-03-26 19:38:26] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30635,"menu_item_id":6,"quantity":3},{"id":30636,"menu_item_id":5,"quantity":1}]} 
[2026-03-26 19:38:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6439,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|3|","5|1|"],"new_items_map_keys":["6|3|","5|1|"]} 
[2026-03-26 19:38:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6439,"order_number":"AZS-260326-013"} 
[2026-03-26 19:38:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6439,"order_number":"AZS-260326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-26 19:38:26"} 
[2026-03-26 19:41:16] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6439,"order_number":"AZS-260326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":805,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 19:41:16"} 
[2026-03-26 19:41:16] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6439,"order_number":"AZS-260326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":805,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 19:41:16"} 
[2026-03-26 19:41:16] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6439,"order_number":"AZS-260326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":805,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 19:41:16"} 
[2026-03-26 19:41:16] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6439,"order_number":"AZS-260326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":805,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 19:41:16"} 
[2026-03-26 19:41:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6439,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":30635},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30636}],"validated_items":[{"id":30635,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":30636,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-26 19:41:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6439,"items_count":2} 
[2026-03-26 19:41:16] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30635,"menu_item_id":6,"quantity":3},{"id":30636,"menu_item_id":5,"quantity":1}]} 
[2026-03-26 19:41:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6439,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|3|","5|1|"],"new_items_map_keys":["6|3|","5|1|"]} 
[2026-03-26 19:41:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6439,"order_number":"AZS-260326-013"} 
[2026-03-26 19:41:16] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6439,"order_number":"AZS-260326-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":805,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-26 19:41:16","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-26 19:41:16"} 
[2026-03-26 19:41:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6439,"order_number":"AZS-260326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-26 19:41:16"} 
[2026-03-26 19:41:16] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6439,"order_number":"AZS-260326-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"805.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-26 19:41:16","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":805,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"805.00","database_verification_match":true,"timestamp":"2026-03-26 19:41:16"} 
[2026-03-26 19:41:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6440,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":2,"price":2199,"discount_percent":0,"notes":null,"id":30637},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":30638},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":30639},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30640},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30641},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30642},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30643},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":30644}],"validated_items":[{"id":30637,"menu_item_id":105,"quantity":2,"price":2199,"discount_percent":0,"notes":null},{"id":30638,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":30639,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":30640,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30641,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30642,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30643,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":30644,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-26 19:41:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6440,"items_count":8} 
[2026-03-26 19:41:44] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30637,"menu_item_id":105,"quantity":2},{"id":30638,"menu_item_id":396,"quantity":1},{"id":30639,"menu_item_id":48,"quantity":1},{"id":30640,"menu_item_id":61,"quantity":1},{"id":30641,"menu_item_id":56,"quantity":1},{"id":30642,"menu_item_id":5,"quantity":1},{"id":30643,"menu_item_id":2,"quantity":1},{"id":30644,"menu_item_id":13,"quantity":2}]} 
[2026-03-26 19:41:44] local.INFO: PosOrderController::update - Item changes check {"order_id":6440,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["105|2|","396|1|","48|1|","61|1|","56|1|","5|1|","2|1|","13|2|"],"new_items_map_keys":["105|2|","396|1|","48|1|","61|1|","56|1|","5|1|","2|1|","13|2|"]} 
[2026-03-26 19:41:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6440,"order_number":"AZS-260326-011"} 
[2026-03-26 19:41:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6440,"order_number":"AZS-260326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-26 19:41:44"} 
[2026-03-26 19:42:02] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6440,"order_number":"AZS-260326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 19:42:02"} 
[2026-03-26 19:42:02] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6440,"order_number":"AZS-260326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 19:42:02"} 
[2026-03-26 19:42:02] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6440,"order_number":"AZS-260326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 19:42:02"} 
[2026-03-26 19:42:02] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6440,"order_number":"AZS-260326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 19:42:02"} 
[2026-03-26 19:42:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6440,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":2,"price":2199,"discount_percent":0,"notes":null,"id":30637},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":30638},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":30639},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30640},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30641},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30642},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30643},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":30644}],"validated_items":[{"id":30637,"menu_item_id":105,"quantity":2,"price":2199,"discount_percent":0,"notes":null},{"id":30638,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":30639,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":30640,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30641,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30642,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30643,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":30644,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-26 19:42:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6440,"items_count":8} 
[2026-03-26 19:42:02] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30637,"menu_item_id":105,"quantity":2},{"id":30638,"menu_item_id":396,"quantity":1},{"id":30639,"menu_item_id":48,"quantity":1},{"id":30640,"menu_item_id":61,"quantity":1},{"id":30641,"menu_item_id":56,"quantity":1},{"id":30642,"menu_item_id":5,"quantity":1},{"id":30643,"menu_item_id":2,"quantity":1},{"id":30644,"menu_item_id":13,"quantity":2}]} 
[2026-03-26 19:42:02] local.INFO: PosOrderController::update - Item changes check {"order_id":6440,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["105|2|","396|1|","48|1|","61|1|","56|1|","5|1|","2|1|","13|2|"],"new_items_map_keys":["105|2|","396|1|","48|1|","61|1|","56|1|","5|1|","2|1|","13|2|"]} 
[2026-03-26 19:42:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6440,"order_number":"AZS-260326-011"} 
[2026-03-26 19:42:02] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6440,"order_number":"AZS-260326-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":6000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-26 19:42:02","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-26 19:42:02"} 
[2026-03-26 19:42:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6440,"order_number":"AZS-260326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-26 19:42:02"} 
[2026-03-26 19:42:02] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6440,"order_number":"AZS-260326-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"6000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-26 19:42:02","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"6000.00","database_verification_match":true,"timestamp":"2026-03-26 19:42:02"} 
[2026-03-26 19:42:11] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-26 20:02:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T08:02:25.963Z","date_to":"2026-03-26T20:02:25.963Z","per_page":"100"} 
[2026-03-26 20:02:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T08:02:25.973Z","date_to":"2026-03-26T20:02:25.973Z","per_page":"100"} 
[2026-03-26 20:02:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-014","AZS-260326-013","AZS-260326-012","AZS-260326-011","AZS-260326-010","AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":1,"unique_order_numbers":14} 
[2026-03-26 20:02:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-014","AZS-260326-013","AZS-260326-012","AZS-260326-011","AZS-260326-010","AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":1,"unique_order_numbers":14} 
[2026-03-26 20:02:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T08:02:25.963Z","date_to":"2026-03-26T20:02:25.963Z","per_page":"100"} 
[2026-03-26 20:02:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-014","AZS-260326-013","AZS-260326-012","AZS-260326-011","AZS-260326-010","AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":1,"unique_order_numbers":14} 
[2026-03-26 20:07:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6443,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30656}],"validated_items":[{"id":30656,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-26 20:07:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6443,"items_count":1} 
[2026-03-26 20:07:15] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30656,"menu_item_id":6,"quantity":1}]} 
[2026-03-26 20:07:15] local.INFO: PosOrderController::update - Item changes check {"order_id":6443,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-03-26 20:07:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6443,"order_number":"AZS-260326-014"} 
[2026-03-26 20:07:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6443,"order_number":"AZS-260326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-26 20:07:15"} 
[2026-03-26 20:11:23] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6443,"order_number":"AZS-260326-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 20:11:23"} 
[2026-03-26 20:11:23] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6443,"order_number":"AZS-260326-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 20:11:23"} 
[2026-03-26 20:11:23] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6443,"order_number":"AZS-260326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 20:11:23"} 
[2026-03-26 20:11:23] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6443,"order_number":"AZS-260326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 20:11:23"} 
[2026-03-26 20:11:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6443,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30656}],"validated_items":[{"id":30656,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-26 20:11:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6443,"items_count":1} 
[2026-03-26 20:11:23] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30656,"menu_item_id":6,"quantity":1}]} 
[2026-03-26 20:11:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6443,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-03-26 20:11:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6443,"order_number":"AZS-260326-014"} 
[2026-03-26 20:11:23] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6443,"order_number":"AZS-260326-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-26 20:11:23","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-26 20:11:23"} 
[2026-03-26 20:11:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6443,"order_number":"AZS-260326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-26 20:11:23"} 
[2026-03-26 20:11:23] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6443,"order_number":"AZS-260326-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-26 20:11:23","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"200.00","database_verification_match":true,"timestamp":"2026-03-26 20:11:23"} 
[2026-03-26 20:11:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T08:11:27.617Z","date_to":"2026-03-26T20:11:27.617Z","per_page":"100"} 
[2026-03-26 20:11:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T08:11:27.601Z","date_to":"2026-03-26T20:11:27.601Z","per_page":"100"} 
[2026-03-26 20:11:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-014","AZS-260326-013","AZS-260326-012","AZS-260326-011","AZS-260326-010","AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":0,"unique_order_numbers":14} 
[2026-03-26 20:11:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-014","AZS-260326-013","AZS-260326-012","AZS-260326-011","AZS-260326-010","AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":0,"unique_order_numbers":14} 
[2026-03-26 20:11:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T08:11:27.601Z","date_to":"2026-03-26T20:11:27.601Z","per_page":"100"} 
[2026-03-26 20:11:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-014","AZS-260326-013","AZS-260326-012","AZS-260326-011","AZS-260326-010","AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":0,"unique_order_numbers":14} 
[2026-03-26 20:30:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T08:30:13.042Z","date_to":"2026-03-26T20:30:13.042Z","per_page":"100"} 
[2026-03-26 20:30:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T08:30:13.020Z","date_to":"2026-03-26T20:30:13.020Z","per_page":"100"} 
[2026-03-26 20:30:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-014","AZS-260326-013","AZS-260326-012","AZS-260326-011","AZS-260326-010","AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":0,"unique_order_numbers":14} 
[2026-03-26 20:30:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-014","AZS-260326-013","AZS-260326-012","AZS-260326-011","AZS-260326-010","AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":0,"unique_order_numbers":14} 
[2026-03-26 20:30:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T08:30:13.020Z","date_to":"2026-03-26T20:30:13.020Z","per_page":"100"} 
[2026-03-26 20:30:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-014","AZS-260326-013","AZS-260326-012","AZS-260326-011","AZS-260326-010","AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":0,"unique_order_numbers":14} 
[2026-03-26 20:53:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6445,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":17,"discount_percent":0,"notes":null,"id":30658}],"validated_items":[{"id":30658,"menu_item_id":286,"quantity":17,"discount_percent":0,"notes":null}]} 
[2026-03-26 20:53:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6445,"items_count":1} 
[2026-03-26 20:53:01] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30658,"menu_item_id":286,"quantity":17}]} 
[2026-03-26 20:53:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6445,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["286|16|"],"new_items_map_keys":["286|17|"]} 
[2026-03-26 20:53:01] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6445,"order_number":"AZS-260326-016"} 
[2026-03-26 20:53:01] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-260326-016","replaced_order_id":6445} 
[2026-03-26 20:53:01] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6446,"items_count":1,"items":[{"menu_item_id":286,"quantity":17,"price":"15.00"}]} 
[2026-03-26 20:53:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6446,"item_index":0,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":17,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":255.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6446}} 
[2026-03-26 20:53:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6446,"item_index":0,"menu_item_id":286} 
[2026-03-26 20:53:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6445,"new_order_id":6446,"order_number":"AZS-260326-016"} 
[2026-03-26 20:53:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6446,"item_index":0,"item_id":30658} 
[2026-03-26 20:53:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":6446,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":17,"discount_percent":0,"notes":null,"id":30658}],"validated_items":[{"menu_item_id":286,"quantity":17,"discount_percent":0,"notes":null}]} 
[2026-03-26 20:53:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6446,"items_count":1} 
[2026-03-26 20:53:04] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[30659],"items":[{"id":null,"menu_item_id":286,"quantity":17}]} 
[2026-03-26 20:53:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6446,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["286|17|"],"new_items_map_keys":["286|17|"]} 
[2026-03-26 20:53:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6446,"order_number":"AZS-260326-016"} 
[2026-03-26 20:53:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6446,"order_number":"AZS-260326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-26 20:53:04"} 
[2026-03-26 20:53:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6446,"item_index":0,"item_id":30658} 
[2026-03-26 20:53:31] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6446,"order_number":"AZS-260326-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 20:53:31"} 
[2026-03-26 20:53:31] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6446,"order_number":"AZS-260326-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 20:53:31"} 
[2026-03-26 20:53:31] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6446,"order_number":"AZS-260326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 20:53:31"} 
[2026-03-26 20:53:31] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6446,"order_number":"AZS-260326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 20:53:31"} 
[2026-03-26 20:53:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":6446,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":17,"price":15,"discount_percent":0,"notes":null,"id":30658}],"validated_items":[{"menu_item_id":286,"quantity":17,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-26 20:53:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6446,"items_count":1} 
[2026-03-26 20:53:31] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[30659],"items":[{"id":null,"menu_item_id":286,"quantity":17}]} 
[2026-03-26 20:53:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6446,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["286|17|"],"new_items_map_keys":["286|17|"]} 
[2026-03-26 20:53:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6446,"order_number":"AZS-260326-016"} 
[2026-03-26 20:53:31] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6446,"order_number":"AZS-260326-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-26 20:53:31","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-26 20:53:31"} 
[2026-03-26 20:53:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6446,"order_number":"AZS-260326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-26 20:53:31"} 
[2026-03-26 20:53:31] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6446,"order_number":"AZS-260326-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-26 20:53:31","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-26 20:53:31"} 
[2026-03-26 20:53:41] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6444,"order_number":"AZS-260326-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":170,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 20:53:41"} 
[2026-03-26 20:53:41] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6444,"order_number":"AZS-260326-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":170,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-26 20:53:41"} 
[2026-03-26 20:53:41] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6444,"order_number":"AZS-260326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":170,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 20:53:41"} 
[2026-03-26 20:53:41] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6444,"order_number":"AZS-260326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":170,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-26 20:53:41"} 
[2026-03-26 20:53:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6444,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30657}],"validated_items":[{"id":30657,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-26 20:53:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6444,"items_count":1} 
[2026-03-26 20:53:41] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30657,"menu_item_id":5,"quantity":1}]} 
[2026-03-26 20:53:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6444,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["5|1|"],"new_items_map_keys":["5|1|"]} 
[2026-03-26 20:53:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6444,"order_number":"AZS-260326-015"} 
[2026-03-26 20:53:41] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6444,"order_number":"AZS-260326-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":170,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-26 20:53:41","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-26 20:53:41"} 
[2026-03-26 20:53:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6444,"order_number":"AZS-260326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-26 20:53:41"} 
[2026-03-26 20:53:41] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6444,"order_number":"AZS-260326-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"170.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-26 20:53:41","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":170,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"170.00","database_verification_match":true,"timestamp":"2026-03-26 20:53:41"} 
[2026-03-26 21:19:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T09:19:03.625Z","date_to":"2026-03-26T21:19:03.625Z","per_page":"100"} 
[2026-03-26 21:19:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T09:19:03.611Z","date_to":"2026-03-26T21:19:03.611Z","per_page":"100"} 
[2026-03-26 21:19:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-016","AZS-260326-015","AZS-260326-014","AZS-260326-013","AZS-260326-012","AZS-260326-011","AZS-260326-010","AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":0,"unique_order_numbers":16} 
[2026-03-26 21:19:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-016","AZS-260326-015","AZS-260326-014","AZS-260326-013","AZS-260326-012","AZS-260326-011","AZS-260326-010","AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":0,"unique_order_numbers":16} 
[2026-03-26 21:19:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-26T09:19:03.611Z","date_to":"2026-03-26T21:19:03.611Z","per_page":"100"} 
[2026-03-26 21:19:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-260326-016","AZS-260326-015","AZS-260326-014","AZS-260326-013","AZS-260326-012","AZS-260326-011","AZS-260326-010","AZS-260326-009","AZS-260326-008","AZS-260326-007","AZS-260326-006","AZS-260326-005","AZS-260326-004","AZS-260326-003","AZS-260326-002","AZS-260326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":0,"unique_order_numbers":16} 
[2026-03-27 15:21:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6448,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30666}],"validated_items":[{"id":30666,"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null}]} 
[2026-03-27 15:21:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6448,"items_count":1} 
[2026-03-27 15:21:12] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30666,"menu_item_id":384,"quantity":1}]} 
[2026-03-27 15:21:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6448,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["384|1|"],"new_items_map_keys":["384|1|"]} 
[2026-03-27 15:21:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6448,"order_number":"AZS-270326-002"} 
[2026-03-27 15:21:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6448,"order_number":"AZS-270326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-27 15:21:12"} 
[2026-03-27 15:38:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6447,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30660},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":30661},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":30662},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30663},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30664},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30665}],"validated_items":[{"id":30660,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30661,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":30662,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":30663,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30664,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30665,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-27 15:38:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6447,"items_count":6} 
[2026-03-27 15:38:24] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30660,"menu_item_id":98,"quantity":1},{"id":30661,"menu_item_id":64,"quantity":1},{"id":30662,"menu_item_id":49,"quantity":3},{"id":30663,"menu_item_id":61,"quantity":1},{"id":30664,"menu_item_id":56,"quantity":1},{"id":30665,"menu_item_id":5,"quantity":1}]} 
[2026-03-27 15:38:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6447,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["98|1|","64|1|","49|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["98|1|","64|1|","49|3|","61|1|","56|1|","5|1|"]} 
[2026-03-27 15:38:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6447,"order_number":"AZS-270326-001"} 
[2026-03-27 15:38:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6447,"order_number":"AZS-270326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-27 15:38:24"} 
[2026-03-27 15:46:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6447,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30660},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":30661},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":30662},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30663},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30664},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30665}],"validated_items":[{"id":30660,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30661,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":30662,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":30663,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30664,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30665,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-27 15:46:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6447,"items_count":6} 
[2026-03-27 15:46:17] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30660,"menu_item_id":98,"quantity":1},{"id":30661,"menu_item_id":64,"quantity":1},{"id":30662,"menu_item_id":49,"quantity":3},{"id":30663,"menu_item_id":61,"quantity":1},{"id":30664,"menu_item_id":56,"quantity":1},{"id":30665,"menu_item_id":5,"quantity":1}]} 
[2026-03-27 15:46:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6447,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["98|1|","64|1|","49|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["98|1|","64|1|","49|3|","61|1|","56|1|","5|1|"]} 
[2026-03-27 15:46:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6447,"order_number":"AZS-270326-001"} 
[2026-03-27 15:46:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6447,"order_number":"AZS-270326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-27 15:46:17"} 
[2026-03-27 15:46:48] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6448,"order_number":"AZS-270326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 15:46:48"} 
[2026-03-27 15:46:48] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6448,"order_number":"AZS-270326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 15:46:48"} 
[2026-03-27 15:46:48] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6448,"order_number":"AZS-270326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 15:46:48"} 
[2026-03-27 15:46:48] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6448,"order_number":"AZS-270326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 15:46:48"} 
[2026-03-27 15:46:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6448,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30666}],"validated_items":[{"id":30666,"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null}]} 
[2026-03-27 15:46:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6448,"items_count":1} 
[2026-03-27 15:46:48] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30666,"menu_item_id":384,"quantity":1}]} 
[2026-03-27 15:46:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6448,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["384|1|"],"new_items_map_keys":["384|1|"]} 
[2026-03-27 15:46:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6448,"order_number":"AZS-270326-002"} 
[2026-03-27 15:46:48] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6448,"order_number":"AZS-270326-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-27 15:46:48","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-27 15:46:48"} 
[2026-03-27 15:46:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6448,"order_number":"AZS-270326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-27 15:46:48"} 
[2026-03-27 15:46:48] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6448,"order_number":"AZS-270326-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-27 15:46:48","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1500.00","database_verification_match":true,"timestamp":"2026-03-27 15:46:48"} 
[2026-03-27 15:46:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T03:46:55.779Z","date_to":"2026-03-27T15:46:55.779Z","per_page":"100"} 
[2026-03-27 15:46:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T03:46:55.765Z","date_to":"2026-03-27T15:46:55.765Z","per_page":"100"} 
[2026-03-27 15:46:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","paid","pending"],"deleted_count":0,"paid_count":1,"unpaid_count":2,"unique_order_numbers":3} 
[2026-03-27 15:46:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","paid","pending"],"deleted_count":0,"paid_count":1,"unpaid_count":2,"unique_order_numbers":3} 
[2026-03-27 15:46:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T03:46:55.765Z","date_to":"2026-03-27T15:46:55.765Z","per_page":"100"} 
[2026-03-27 15:46:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","paid","pending"],"deleted_count":0,"paid_count":1,"unpaid_count":2,"unique_order_numbers":3} 
[2026-03-27 16:11:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6453,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null,"id":30680},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30680,"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-27 16:11:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6453,"items_count":3} 
[2026-03-27 16:11:41] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30680,"menu_item_id":13,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1}]} 
[2026-03-27 16:11:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6453,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["13|1|"],"new_items_map_keys":["13|1|","2|1|","403|1|"]} 
[2026-03-27 16:11:41] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6453,"order_number":"AZS-270326-007"} 
[2026-03-27 16:11:41] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270326-007","replaced_order_id":6453} 
[2026-03-27 16:11:41] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6454,"items_count":3,"items":[{"menu_item_id":13,"quantity":1,"price":"249.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"}]} 
[2026-03-27 16:11:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6454,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6454}} 
[2026-03-27 16:11:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6454,"item_index":0,"menu_item_id":13} 
[2026-03-27 16:11:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6454,"item_index":1,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6454}} 
[2026-03-27 16:11:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6454,"item_index":1,"menu_item_id":2} 
[2026-03-27 16:11:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6454,"item_index":2,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6454}} 
[2026-03-27 16:11:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6454,"item_index":2,"menu_item_id":403} 
[2026-03-27 16:11:41] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6453,"new_order_id":6454,"order_number":"AZS-270326-007"} 
[2026-03-27 16:24:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6451,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":30673},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":30674}],"validated_items":[{"id":30673,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":30674,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-27 16:24:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6451,"items_count":2} 
[2026-03-27 16:24:54] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30673,"menu_item_id":13,"quantity":2},{"id":30674,"menu_item_id":4,"quantity":1}]} 
[2026-03-27 16:24:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6451,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|2|","4|1|"],"new_items_map_keys":["13|2|","4|1|"]} 
[2026-03-27 16:24:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6451,"order_number":"AZS-270326-005"} 
[2026-03-27 16:24:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6451,"order_number":"AZS-270326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-27 16:24:54"} 
[2026-03-27 16:25:31] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6447,"order_number":"AZS-270326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 16:25:31"} 
[2026-03-27 16:25:31] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6447,"order_number":"AZS-270326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 16:25:31"} 
[2026-03-27 16:25:31] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6447,"order_number":"AZS-270326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 16:25:31"} 
[2026-03-27 16:25:31] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6447,"order_number":"AZS-270326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 16:25:31"} 
[2026-03-27 16:25:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6447,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30660},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":30661},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":30662},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30663},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30665}],"validated_items":[{"id":30660,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30661,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":30662,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":30663,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30665,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-27 16:25:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6447,"items_count":5} 
[2026-03-27 16:25:31] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[30664],"items":[{"id":30660,"menu_item_id":98,"quantity":1},{"id":30661,"menu_item_id":64,"quantity":1},{"id":30662,"menu_item_id":49,"quantity":3},{"id":30663,"menu_item_id":61,"quantity":1},{"id":30665,"menu_item_id":5,"quantity":1}]} 
[2026-03-27 16:25:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6447,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["98|1|","64|1|","49|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["98|1|","64|1|","49|3|","61|1|","5|1|"]} 
[2026-03-27 16:25:31] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6447,"order_number":"AZS-270326-001","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-27 16:25:31","original_payment_amount":"0.00","grand_total":2777.0,"timestamp":"2026-03-27 16:25:31"} 
[2026-03-27 16:25:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6447,"order_number":"AZS-270326-001"} 
[2026-03-27 16:25:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270326-001","replaced_order_id":6447} 
[2026-03-27 16:25:31] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6447,"new_order_id":6455,"order_number":"AZS-270326-001","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-27 16:25:31","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-27 16:25:31"} 
[2026-03-27 16:25:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6455,"items_count":5,"items":[{"menu_item_id":98,"quantity":1,"price":1199.0},{"menu_item_id":64,"quantity":1,"price":999.0},{"menu_item_id":49,"quantity":3,"price":70.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-03-27 16:25:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6455,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6455}} 
[2026-03-27 16:25:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6455,"item_index":0,"menu_item_id":98} 
[2026-03-27 16:25:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6455,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":999.0,"discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6455}} 
[2026-03-27 16:25:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6455,"item_index":1,"menu_item_id":64} 
[2026-03-27 16:25:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6455,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":3,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6455}} 
[2026-03-27 16:25:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6455,"item_index":2,"menu_item_id":49} 
[2026-03-27 16:25:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6455,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6455}} 
[2026-03-27 16:25:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6455,"item_index":3,"menu_item_id":61} 
[2026-03-27 16:25:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6455,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6455}} 
[2026-03-27 16:25:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6455,"item_index":4,"menu_item_id":5} 
[2026-03-27 16:25:31] local.ERROR: Error tracking recipe usage for order 6455: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6455, 49, 102, 1, 30, 0.00, Order #AZS-270326-001 - 3x Plain Naan, 2026-03-27 16:25:31, 2026-03-27 16:25:31))  
[2026-03-27 16:25:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6447,"new_order_id":6455,"order_number":"AZS-270326-001"} 
[2026-03-27 16:25:31] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6447,"new_order_id":6455,"order_number":"AZS-270326-001","route":"api/orders/6447"} 
[2026-03-27 16:33:14] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6451,"order_number":"AZS-270326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5020,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 16:33:14"} 
[2026-03-27 16:33:14] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6451,"order_number":"AZS-270326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5020,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 16:33:14"} 
[2026-03-27 16:33:14] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6451,"order_number":"AZS-270326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5020,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 16:33:14"} 
[2026-03-27 16:33:14] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6451,"order_number":"AZS-270326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5020,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 16:33:14"} 
[2026-03-27 16:33:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6451,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":30673},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":30674}],"validated_items":[{"id":30673,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":30674,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-27 16:33:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6451,"items_count":2} 
[2026-03-27 16:33:14] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30673,"menu_item_id":13,"quantity":2},{"id":30674,"menu_item_id":4,"quantity":1}]} 
[2026-03-27 16:33:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6451,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|2|","4|1|"],"new_items_map_keys":["13|2|","4|1|"]} 
[2026-03-27 16:33:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6451,"order_number":"AZS-270326-005"} 
[2026-03-27 16:33:14] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6451,"order_number":"AZS-270326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5020,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-27 16:33:14","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-27 16:33:14"} 
[2026-03-27 16:33:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6451,"order_number":"AZS-270326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-27 16:33:14"} 
[2026-03-27 16:33:14] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6451,"order_number":"AZS-270326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5020.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-27 16:33:14","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5020,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5020.00","database_verification_match":true,"timestamp":"2026-03-27 16:33:14"} 
[2026-03-27 16:35:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6449,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null,"id":30667},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":30667,"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-27 16:35:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6449,"items_count":2} 
[2026-03-27 16:35:13] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30667,"menu_item_id":386,"quantity":1},{"id":null,"menu_item_id":4,"quantity":2}]} 
[2026-03-27 16:35:13] local.INFO: PosOrderController::update - Item changes check {"order_id":6449,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|","4|2|"]} 
[2026-03-27 16:35:13] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6449,"order_number":"AZS-270326-003"} 
[2026-03-27 16:35:13] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270326-003","replaced_order_id":6449} 
[2026-03-27 16:35:13] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6456,"items_count":2,"items":[{"menu_item_id":386,"quantity":1,"price":"2099.00"},{"menu_item_id":4,"quantity":2,"price":"90.00"}]} 
[2026-03-27 16:35:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6456,"item_index":0,"item_data":{"menu_item_id":386,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 01","quantity":1,"price":"2099.00","discount_percent":0.0,"discount_amount":0.0,"total":2099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6456}} 
[2026-03-27 16:35:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6456,"item_index":0,"menu_item_id":386} 
[2026-03-27 16:35:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6456,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":2,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":180.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6456}} 
[2026-03-27 16:35:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6456,"item_index":1,"menu_item_id":4} 
[2026-03-27 16:35:13] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6449,"new_order_id":6456,"order_number":"AZS-270326-003"} 
[2026-03-27 16:35:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6456,"item_index":0,"item_id":30667} 
[2026-03-27 16:35:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":6456,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":30667},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-27 16:35:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6456,"items_count":2} 
[2026-03-27 16:35:21] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[30689,30690],"items":[{"id":null,"menu_item_id":386,"quantity":1},{"id":null,"menu_item_id":4,"quantity":2}]} 
[2026-03-27 16:35:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6456,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["386|1|","4|2|"],"new_items_map_keys":["386|1|","4|2|"]} 
[2026-03-27 16:35:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6456,"order_number":"AZS-270326-003"} 
[2026-03-27 16:35:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6456,"order_number":"AZS-270326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-27 16:35:21"} 
[2026-03-27 16:37:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6456,"item_index":0,"item_id":30667} 
[2026-03-27 16:37:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":2,"order_id":6456,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null,"id":30667},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-27 16:37:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6456,"items_count":3} 
[2026-03-27 16:37:40] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":2,"items_to_remove":[30689,30690],"items":[{"id":null,"menu_item_id":386,"quantity":1},{"id":null,"menu_item_id":4,"quantity":2},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-27 16:37:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6456,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["386|1|","4|2|"],"new_items_map_keys":["386|1|","4|2|","2|1|"]} 
[2026-03-27 16:37:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6456,"order_number":"AZS-270326-003"} 
[2026-03-27 16:37:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270326-003","replaced_order_id":6456} 
[2026-03-27 16:37:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6457,"items_count":3,"items":[{"menu_item_id":386,"quantity":1,"price":"2099.00"},{"menu_item_id":4,"quantity":2,"price":"90.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-27 16:37:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6457,"item_index":0,"item_data":{"menu_item_id":386,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 01","quantity":1,"price":"2099.00","discount_percent":0.0,"discount_amount":0.0,"total":2099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6457}} 
[2026-03-27 16:37:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6457,"item_index":0,"menu_item_id":386} 
[2026-03-27 16:37:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6457,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":2,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":180.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6457}} 
[2026-03-27 16:37:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6457,"item_index":1,"menu_item_id":4} 
[2026-03-27 16:37:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6457,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6457}} 
[2026-03-27 16:37:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6457,"item_index":2,"menu_item_id":2} 
[2026-03-27 16:37:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6456,"new_order_id":6457,"order_number":"AZS-270326-003"} 
[2026-03-27 16:38:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6457,"item_index":0,"item_id":30667} 
[2026-03-27 16:38:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":6457,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null,"id":30667},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-27 16:38:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6457,"items_count":3} 
[2026-03-27 16:38:06] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[30691,30692,30693],"items":[{"id":null,"menu_item_id":386,"quantity":1},{"id":null,"menu_item_id":4,"quantity":2},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-27 16:38:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6457,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["386|1|","4|2|","2|1|"],"new_items_map_keys":["386|1|","4|2|","2|1|"]} 
[2026-03-27 16:38:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6457,"order_number":"AZS-270326-003"} 
[2026-03-27 16:38:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6457,"order_number":"AZS-270326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-27 16:38:06"} 
[2026-03-27 16:39:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6450,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":30668},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":30669},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30670},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30671},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":30668,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":30669,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":30670,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":30671,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-27 16:39:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6450,"items_count":5} 
[2026-03-27 16:39:25] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[30672],"items":[{"id":30668,"menu_item_id":113,"quantity":1},{"id":30669,"menu_item_id":65,"quantity":1},{"id":30670,"menu_item_id":396,"quantity":2},{"id":30671,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-27 16:39:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6450,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["113|1|","65|1|","396|2|","61|1|","3|1|"],"new_items_map_keys":["113|1|","65|1|","396|2|","61|1|","2|2|"]} 
[2026-03-27 16:39:25] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6450,"order_number":"AZS-270326-004"} 
[2026-03-27 16:39:25] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270326-004","replaced_order_id":6450} 
[2026-03-27 16:39:25] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6458,"items_count":5,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-27 16:39:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6458,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6458}} 
[2026-03-27 16:39:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6458,"item_index":0,"menu_item_id":113} 
[2026-03-27 16:39:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6458,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6458}} 
[2026-03-27 16:39:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6458,"item_index":1,"menu_item_id":65} 
[2026-03-27 16:39:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6458,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6458}} 
[2026-03-27 16:39:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6458,"item_index":2,"menu_item_id":396} 
[2026-03-27 16:39:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6458,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6458}} 
[2026-03-27 16:39:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6458,"item_index":3,"menu_item_id":61} 
[2026-03-27 16:39:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6458,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6458}} 
[2026-03-27 16:39:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6458,"item_index":4,"menu_item_id":2} 
[2026-03-27 16:39:25] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6450,"new_order_id":6458,"order_number":"AZS-270326-004"} 
[2026-03-27 16:41:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6457,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":30691},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null,"id":30692},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30693}],"validated_items":[{"id":30691,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null},{"id":30692,"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null},{"id":30693,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-27 16:41:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6457,"items_count":3} 
[2026-03-27 16:41:34] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30691,"menu_item_id":386,"quantity":1},{"id":30692,"menu_item_id":4,"quantity":2},{"id":30693,"menu_item_id":2,"quantity":1}]} 
[2026-03-27 16:41:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6457,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["386|1|","4|2|","2|1|"],"new_items_map_keys":["386|1|","4|2|","2|1|"]} 
[2026-03-27 16:41:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6457,"order_number":"AZS-270326-003"} 
[2026-03-27 16:41:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6457,"order_number":"AZS-270326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-27 16:41:34"} 
[2026-03-27 16:47:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6458,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30694},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":30695},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30696},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30697},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30698}],"validated_items":[{"id":30694,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30695,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":30696,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30697,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30698,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-27 16:47:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6458,"items_count":5} 
[2026-03-27 16:47:31] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30694,"menu_item_id":113,"quantity":1},{"id":30695,"menu_item_id":65,"quantity":1},{"id":30696,"menu_item_id":396,"quantity":2},{"id":30697,"menu_item_id":61,"quantity":1},{"id":30698,"menu_item_id":2,"quantity":2}]} 
[2026-03-27 16:47:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6458,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["113|1|","65|1|","396|2|","61|1|","2|2|"],"new_items_map_keys":["113|1|","65|1|","396|2|","61|1|","2|2|"]} 
[2026-03-27 16:47:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6458,"order_number":"AZS-270326-004"} 
[2026-03-27 16:47:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6458,"order_number":"AZS-270326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-27 16:47:31"} 
[2026-03-27 16:54:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6458,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30694},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":30695},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30696},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30697},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30698}],"validated_items":[{"id":30694,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30695,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":30696,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30697,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30698,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-27 16:54:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6458,"items_count":5} 
[2026-03-27 16:54:41] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30694,"menu_item_id":113,"quantity":1},{"id":30695,"menu_item_id":65,"quantity":1},{"id":30696,"menu_item_id":396,"quantity":2},{"id":30697,"menu_item_id":61,"quantity":1},{"id":30698,"menu_item_id":2,"quantity":2}]} 
[2026-03-27 16:54:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6458,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["113|1|","65|1|","396|2|","61|1|","2|2|"],"new_items_map_keys":["113|1|","65|1|","396|2|","61|1|","2|2|"]} 
[2026-03-27 16:54:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6458,"order_number":"AZS-270326-004"} 
[2026-03-27 16:54:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6458,"order_number":"AZS-270326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-27 16:54:41"} 
[2026-03-27 16:59:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6452,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30675},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":30676},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":30677},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30678},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30679}],"validated_items":[{"id":30675,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30676,"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":30677,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":30678,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30679,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-27 16:59:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6452,"items_count":5} 
[2026-03-27 16:59:00] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30675,"menu_item_id":96,"quantity":1},{"id":30676,"menu_item_id":49,"quantity":2},{"id":30677,"menu_item_id":396,"quantity":1},{"id":30678,"menu_item_id":61,"quantity":1},{"id":30679,"menu_item_id":5,"quantity":1}]} 
[2026-03-27 16:59:00] local.INFO: PosOrderController::update - Item changes check {"order_id":6452,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","49|2|","396|1|","61|1|","5|1|"],"new_items_map_keys":["96|1|","49|2|","396|1|","61|1|","5|1|"]} 
[2026-03-27 16:59:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6452,"order_number":"AZS-270326-006"} 
[2026-03-27 16:59:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6452,"order_number":"AZS-270326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-27 16:59:00"} 
[2026-03-27 16:59:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6458,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30694},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":30695},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30696},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30697},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30698}],"validated_items":[{"id":30694,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30695,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":30696,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30697,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30698,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-27 16:59:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6458,"items_count":5} 
[2026-03-27 16:59:27] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30694,"menu_item_id":113,"quantity":1},{"id":30695,"menu_item_id":65,"quantity":1},{"id":30696,"menu_item_id":396,"quantity":2},{"id":30697,"menu_item_id":61,"quantity":1},{"id":30698,"menu_item_id":2,"quantity":2}]} 
[2026-03-27 16:59:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6458,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["113|1|","65|1|","396|2|","61|1|","2|2|"],"new_items_map_keys":["113|1|","65|1|","396|2|","61|1|","2|2|"]} 
[2026-03-27 16:59:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6458,"order_number":"AZS-270326-004"} 
[2026-03-27 16:59:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6458,"order_number":"AZS-270326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-27 16:59:27"} 
[2026-03-27 16:59:57] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6458,"order_number":"AZS-270326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 16:59:57"} 
[2026-03-27 16:59:57] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6458,"order_number":"AZS-270326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 16:59:57"} 
[2026-03-27 16:59:57] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6458,"order_number":"AZS-270326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 16:59:57"} 
[2026-03-27 16:59:57] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6458,"order_number":"AZS-270326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 16:59:57"} 
[2026-03-27 16:59:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6458,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30694},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":30695},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30696},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30697},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30698}],"validated_items":[{"id":30694,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30695,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":30696,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30697,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30698,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-27 16:59:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6458,"items_count":5} 
[2026-03-27 16:59:57] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30694,"menu_item_id":113,"quantity":1},{"id":30695,"menu_item_id":65,"quantity":1},{"id":30696,"menu_item_id":396,"quantity":2},{"id":30697,"menu_item_id":61,"quantity":1},{"id":30698,"menu_item_id":2,"quantity":2}]} 
[2026-03-27 16:59:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6458,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["113|1|","65|1|","396|2|","61|1|","2|2|"],"new_items_map_keys":["113|1|","65|1|","396|2|","61|1|","2|2|"]} 
[2026-03-27 16:59:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6458,"order_number":"AZS-270326-004"} 
[2026-03-27 16:59:57] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6458,"order_number":"AZS-270326-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-27 16:59:57","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-27 16:59:57"} 
[2026-03-27 16:59:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6458,"order_number":"AZS-270326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-27 16:59:57"} 
[2026-03-27 16:59:57] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6458,"order_number":"AZS-270326-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-27 16:59:57","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-27 16:59:57"} 
[2026-03-27 17:00:20] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6457,"order_number":"AZS-270326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 17:00:20"} 
[2026-03-27 17:00:20] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6457,"order_number":"AZS-270326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 17:00:20"} 
[2026-03-27 17:00:20] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6457,"order_number":"AZS-270326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 17:00:20"} 
[2026-03-27 17:00:20] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6457,"order_number":"AZS-270326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 17:00:20"} 
[2026-03-27 17:00:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6457,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":30691},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null,"id":30692},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30693}],"validated_items":[{"id":30691,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null},{"id":30692,"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null},{"id":30693,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-27 17:00:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6457,"items_count":3} 
[2026-03-27 17:00:20] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30691,"menu_item_id":386,"quantity":1},{"id":30692,"menu_item_id":4,"quantity":2},{"id":30693,"menu_item_id":2,"quantity":1}]} 
[2026-03-27 17:00:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6457,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["386|1|","4|2|","2|1|"],"new_items_map_keys":["386|1|","4|2|","2|1|"]} 
[2026-03-27 17:00:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6457,"order_number":"AZS-270326-003"} 
[2026-03-27 17:00:20] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6457,"order_number":"AZS-270326-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-27 17:00:20","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-27 17:00:20"} 
[2026-03-27 17:00:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6457,"order_number":"AZS-270326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-27 17:00:20"} 
[2026-03-27 17:00:20] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6457,"order_number":"AZS-270326-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-27 17:00:20","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-03-27 17:00:20"} 
[2026-03-27 17:07:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6454,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":30681},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30682},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":30683}],"validated_items":[{"id":30681,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":30682,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":30683,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null}]} 
[2026-03-27 17:07:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6454,"items_count":3} 
[2026-03-27 17:07:17] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30681,"menu_item_id":13,"quantity":1},{"id":30682,"menu_item_id":2,"quantity":1},{"id":30683,"menu_item_id":403,"quantity":1}]} 
[2026-03-27 17:07:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6454,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["13|1|","2|1|","403|1|"],"new_items_map_keys":["13|1|","2|1|","403|1|"]} 
[2026-03-27 17:07:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6454,"order_number":"AZS-270326-007"} 
[2026-03-27 17:07:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6454,"order_number":"AZS-270326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-27 17:07:17"} 
[2026-03-27 17:20:09] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6454,"order_number":"AZS-270326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 17:20:09"} 
[2026-03-27 17:20:09] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6454,"order_number":"AZS-270326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 17:20:09"} 
[2026-03-27 17:20:09] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6454,"order_number":"AZS-270326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 17:20:09"} 
[2026-03-27 17:20:09] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6454,"order_number":"AZS-270326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 17:20:09"} 
[2026-03-27 17:20:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6454,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":30681},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30682},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":30683}],"validated_items":[{"id":30681,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":30682,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":30683,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null}]} 
[2026-03-27 17:20:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6454,"items_count":3} 
[2026-03-27 17:20:09] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30681,"menu_item_id":13,"quantity":1},{"id":30682,"menu_item_id":2,"quantity":1},{"id":30683,"menu_item_id":403,"quantity":1}]} 
[2026-03-27 17:20:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6454,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["13|1|","2|1|","403|1|"],"new_items_map_keys":["13|1|","2|1|","403|1|"]} 
[2026-03-27 17:20:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6454,"order_number":"AZS-270326-007"} 
[2026-03-27 17:20:09] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6454,"order_number":"AZS-270326-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-27 17:20:09","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-27 17:20:09"} 
[2026-03-27 17:20:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6454,"order_number":"AZS-270326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-27 17:20:09"} 
[2026-03-27 17:20:09] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6454,"order_number":"AZS-270326-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-27 17:20:09","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-27 17:20:09"} 
[2026-03-27 17:33:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6459,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":30699},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30700}],"validated_items":[{"id":30699,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null},{"id":30700,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-27 17:33:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6459,"items_count":2} 
[2026-03-27 17:33:33] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30699,"menu_item_id":13,"quantity":3},{"id":30700,"menu_item_id":5,"quantity":1}]} 
[2026-03-27 17:33:33] local.INFO: PosOrderController::update - Item changes check {"order_id":6459,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|3|","5|1|"],"new_items_map_keys":["13|3|","5|1|"]} 
[2026-03-27 17:33:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6459,"order_number":"AZS-270326-008"} 
[2026-03-27 17:33:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6459,"order_number":"AZS-270326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-27 17:33:33"} 
[2026-03-27 17:38:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6452,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30675},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":30676},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":30677},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30678},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30679}],"validated_items":[{"id":30675,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30676,"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":30677,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":30678,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30679,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-27 17:38:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6452,"items_count":5} 
[2026-03-27 17:38:52] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30675,"menu_item_id":96,"quantity":1},{"id":30676,"menu_item_id":49,"quantity":2},{"id":30677,"menu_item_id":396,"quantity":1},{"id":30678,"menu_item_id":61,"quantity":1},{"id":30679,"menu_item_id":5,"quantity":1}]} 
[2026-03-27 17:38:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6452,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","49|2|","396|1|","61|1|","5|1|"],"new_items_map_keys":["96|1|","49|2|","396|1|","61|1|","5|1|"]} 
[2026-03-27 17:38:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6452,"order_number":"AZS-270326-006"} 
[2026-03-27 17:38:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6452,"order_number":"AZS-270326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-27 17:38:52"} 
[2026-03-27 17:39:48] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6452,"order_number":"AZS-270326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 17:39:48"} 
[2026-03-27 17:39:48] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6452,"order_number":"AZS-270326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 17:39:48"} 
[2026-03-27 17:39:48] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6452,"order_number":"AZS-270326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 17:39:48"} 
[2026-03-27 17:39:48] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6452,"order_number":"AZS-270326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 17:39:48"} 
[2026-03-27 17:39:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":6452,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30675},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":30676},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":30677},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30679}],"validated_items":[{"id":30675,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30676,"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":30677,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":30679,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-27 17:39:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6452,"items_count":4} 
[2026-03-27 17:39:48] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[30678],"items":[{"id":30675,"menu_item_id":96,"quantity":1},{"id":30676,"menu_item_id":49,"quantity":2},{"id":30677,"menu_item_id":396,"quantity":1},{"id":30679,"menu_item_id":5,"quantity":1}]} 
[2026-03-27 17:39:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6452,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["96|1|","49|2|","396|1|","61|1|","5|1|"],"new_items_map_keys":["96|1|","49|2|","396|1|","5|1|"]} 
[2026-03-27 17:39:48] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6452,"order_number":"AZS-270326-006","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":2000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-27 17:39:48","original_payment_amount":"0.00","grand_total":1608.0,"timestamp":"2026-03-27 17:39:48"} 
[2026-03-27 17:39:48] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6452,"order_number":"AZS-270326-006"} 
[2026-03-27 17:39:48] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270326-006","replaced_order_id":6452} 
[2026-03-27 17:39:48] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6452,"new_order_id":6462,"order_number":"AZS-270326-006","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"2000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-27 17:39:48","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-27 17:39:48"} 
[2026-03-27 17:39:48] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6462,"items_count":4,"items":[{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":49,"quantity":2,"price":70.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-03-27 17:39:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6462,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6462}} 
[2026-03-27 17:39:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6462,"item_index":0,"menu_item_id":96} 
[2026-03-27 17:39:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6462,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":2,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6462}} 
[2026-03-27 17:39:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6462,"item_index":1,"menu_item_id":49} 
[2026-03-27 17:39:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6462,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6462}} 
[2026-03-27 17:39:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6462,"item_index":2,"menu_item_id":396} 
[2026-03-27 17:39:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6462,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6462}} 
[2026-03-27 17:39:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6462,"item_index":3,"menu_item_id":5} 
[2026-03-27 17:39:48] local.ERROR: Error tracking recipe usage for order 6462: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6462, 96, 77, 1, 1, 0.00, Order #AZS-270326-006 - 1x Chicken Karahi - Half, 2026-03-27 17:39:48, 2026-03-27 17:39:48))  
[2026-03-27 17:39:48] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6452,"new_order_id":6462,"order_number":"AZS-270326-006"} 
[2026-03-27 17:39:48] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6452,"new_order_id":6462,"order_number":"AZS-270326-006","route":"api/orders/6452"} 
[2026-03-27 17:41:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T05:41:22.700Z","date_to":"2026-03-27T17:41:22.700Z","per_page":"100"} 
[2026-03-27 17:41:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":3,"unique_order_numbers":10} 
[2026-03-27 17:41:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T05:41:22.722Z","date_to":"2026-03-27T17:41:22.722Z","per_page":"100"} 
[2026-03-27 17:41:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":3,"unique_order_numbers":10} 
[2026-03-27 17:41:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T05:41:22.700Z","date_to":"2026-03-27T17:41:22.700Z","per_page":"100"} 
[2026-03-27 17:41:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":3,"unique_order_numbers":10} 
[2026-03-27 17:45:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T05:45:05.136Z","date_to":"2026-03-27T17:45:05.136Z","per_page":"100"} 
[2026-03-27 17:45:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":3,"unique_order_numbers":10} 
[2026-03-27 17:45:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T05:45:05.152Z","date_to":"2026-03-27T17:45:05.152Z","per_page":"100"} 
[2026-03-27 17:45:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":3,"unique_order_numbers":10} 
[2026-03-27 17:45:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T05:45:05.136Z","date_to":"2026-03-27T17:45:05.136Z","per_page":"100"} 
[2026-03-27 17:45:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":3,"unique_order_numbers":10} 
[2026-03-27 17:48:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T05:48:14.848Z","date_to":"2026-03-27T17:48:14.848Z","per_page":"100"} 
[2026-03-27 17:48:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T05:48:14.833Z","date_to":"2026-03-27T17:48:14.833Z","per_page":"100"} 
[2026-03-27 17:48:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-011","AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":4,"unique_order_numbers":11} 
[2026-03-27 17:48:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-011","AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":4,"unique_order_numbers":11} 
[2026-03-27 17:48:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T05:48:14.833Z","date_to":"2026-03-27T17:48:14.833Z","per_page":"100"} 
[2026-03-27 17:48:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-011","AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":4,"unique_order_numbers":11} 
[2026-03-27 17:48:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T05:48:54.814Z","date_to":"2026-03-27T17:48:54.814Z","per_page":"100"} 
[2026-03-27 17:48:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T05:48:54.806Z","date_to":"2026-03-27T17:48:54.806Z","per_page":"100"} 
[2026-03-27 17:48:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-011","AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":4,"unique_order_numbers":11} 
[2026-03-27 17:48:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-011","AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":4,"unique_order_numbers":11} 
[2026-03-27 17:48:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T05:48:54.806Z","date_to":"2026-03-27T17:48:54.806Z","per_page":"100"} 
[2026-03-27 17:48:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-011","AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":4,"unique_order_numbers":11} 
[2026-03-27 17:53:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6459,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":30699},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30700}],"validated_items":[{"id":30699,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null},{"id":30700,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-27 17:53:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6459,"items_count":2} 
[2026-03-27 17:53:47] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30699,"menu_item_id":13,"quantity":3},{"id":30700,"menu_item_id":5,"quantity":1}]} 
[2026-03-27 17:53:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6459,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|3|","5|1|"],"new_items_map_keys":["13|3|","5|1|"]} 
[2026-03-27 17:53:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6459,"order_number":"AZS-270326-008"} 
[2026-03-27 17:53:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6459,"order_number":"AZS-270326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-27 17:53:47"} 
[2026-03-27 17:53:59] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6459,"order_number":"AZS-270326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 17:53:59"} 
[2026-03-27 17:53:59] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6459,"order_number":"AZS-270326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 17:53:59"} 
[2026-03-27 17:53:59] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6459,"order_number":"AZS-270326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 17:53:59"} 
[2026-03-27 17:53:59] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6459,"order_number":"AZS-270326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 17:53:59"} 
[2026-03-27 17:53:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6459,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":30699},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30700}],"validated_items":[{"id":30699,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null},{"id":30700,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-27 17:53:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6459,"items_count":2} 
[2026-03-27 17:53:59] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30699,"menu_item_id":13,"quantity":3},{"id":30700,"menu_item_id":5,"quantity":1}]} 
[2026-03-27 17:53:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6459,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|3|","5|1|"],"new_items_map_keys":["13|3|","5|1|"]} 
[2026-03-27 17:53:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6459,"order_number":"AZS-270326-008"} 
[2026-03-27 17:53:59] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6459,"order_number":"AZS-270326-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-27 17:53:59","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-27 17:53:59"} 
[2026-03-27 17:53:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6459,"order_number":"AZS-270326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-27 17:53:59"} 
[2026-03-27 17:53:59] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6459,"order_number":"AZS-270326-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-27 17:53:59","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-03-27 17:53:59"} 
[2026-03-27 17:54:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T05:54:08.977Z","date_to":"2026-03-27T17:54:08.977Z","per_page":"100"} 
[2026-03-27 17:54:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-011","AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":3,"unique_order_numbers":11} 
[2026-03-27 17:54:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T05:54:08.951Z","date_to":"2026-03-27T17:54:08.951Z","per_page":"100"} 
[2026-03-27 17:54:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-011","AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":3,"unique_order_numbers":11} 
[2026-03-27 17:54:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T05:54:08.951Z","date_to":"2026-03-27T17:54:08.951Z","per_page":"100"} 
[2026-03-27 17:54:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-011","AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":3,"unique_order_numbers":11} 
[2026-03-27 18:16:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6463,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":30710},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30711},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":30712},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30713},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":30710,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":30711,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":30712,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":30713,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-27 18:16:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6463,"items_count":5} 
[2026-03-27 18:16:57] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30710,"menu_item_id":113,"quantity":1},{"id":30711,"menu_item_id":396,"quantity":2},{"id":30712,"menu_item_id":61,"quantity":2},{"id":30713,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-27 18:16:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6463,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["113|1|","396|2|","61|1|","56|1|"],"new_items_map_keys":["113|1|","396|2|","61|2|","56|1|","2|2|"]} 
[2026-03-27 18:16:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6463,"order_number":"AZS-270326-011"} 
[2026-03-27 18:16:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270326-011","replaced_order_id":6463} 
[2026-03-27 18:16:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6464,"items_count":5,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-27 18:16:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6464,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6464}} 
[2026-03-27 18:16:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6464,"item_index":0,"menu_item_id":113} 
[2026-03-27 18:16:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6464,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6464}} 
[2026-03-27 18:16:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6464,"item_index":1,"menu_item_id":396} 
[2026-03-27 18:16:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6464,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6464}} 
[2026-03-27 18:16:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6464,"item_index":2,"menu_item_id":61} 
[2026-03-27 18:16:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6464,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6464}} 
[2026-03-27 18:16:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6464,"item_index":3,"menu_item_id":56} 
[2026-03-27 18:16:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6464,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6464}} 
[2026-03-27 18:16:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6464,"item_index":4,"menu_item_id":2} 
[2026-03-27 18:16:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6463,"new_order_id":6464,"order_number":"AZS-270326-011"} 
[2026-03-27 18:17:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6461,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":30702},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30703},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30704},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30705},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30702,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":30703,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30704,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30705,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-27 18:17:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6461,"items_count":5} 
[2026-03-27 18:17:28] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30702,"menu_item_id":106,"quantity":1},{"id":30703,"menu_item_id":61,"quantity":1},{"id":30704,"menu_item_id":56,"quantity":1},{"id":30705,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-27 18:17:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6461,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["106|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["106|1|","61|1|","56|1|","5|1|","2|1|"]} 
[2026-03-27 18:17:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6461,"order_number":"AZS-270326-010"} 
[2026-03-27 18:17:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270326-010","replaced_order_id":6461} 
[2026-03-27 18:17:28] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6465,"items_count":5,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-27 18:17:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6465,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6465}} 
[2026-03-27 18:17:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6465,"item_index":0,"menu_item_id":106} 
[2026-03-27 18:17:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6465,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6465}} 
[2026-03-27 18:17:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6465,"item_index":1,"menu_item_id":61} 
[2026-03-27 18:17:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6465,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6465}} 
[2026-03-27 18:17:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6465,"item_index":2,"menu_item_id":56} 
[2026-03-27 18:17:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6465,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6465}} 
[2026-03-27 18:17:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6465,"item_index":3,"menu_item_id":5} 
[2026-03-27 18:17:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6465,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6465}} 
[2026-03-27 18:17:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6465,"item_index":4,"menu_item_id":2} 
[2026-03-27 18:17:28] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6461,"new_order_id":6465,"order_number":"AZS-270326-010"} 
[2026-03-27 18:17:51] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-27 18:30:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6465,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30719},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30720},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30721},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30722},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30723}],"validated_items":[{"id":30719,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":30720,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30721,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30722,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30723,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-27 18:30:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6465,"items_count":5} 
[2026-03-27 18:30:00] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30719,"menu_item_id":106,"quantity":1},{"id":30720,"menu_item_id":61,"quantity":1},{"id":30721,"menu_item_id":56,"quantity":1},{"id":30722,"menu_item_id":5,"quantity":1},{"id":30723,"menu_item_id":2,"quantity":1}]} 
[2026-03-27 18:30:00] local.INFO: PosOrderController::update - Item changes check {"order_id":6465,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["106|1|","61|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["106|1|","61|1|","56|1|","5|1|","2|1|"]} 
[2026-03-27 18:30:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6465,"order_number":"AZS-270326-010"} 
[2026-03-27 18:30:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6465,"order_number":"AZS-270326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-27 18:30:00"} 
[2026-03-27 18:31:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6465,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30719},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30720},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30721},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30722},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30723},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}],"validated_items":[{"id":30719,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":30720,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30721,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30722,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30723,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-27 18:31:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6465,"items_count":6} 
[2026-03-27 18:31:38] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30719,"menu_item_id":106,"quantity":1},{"id":30720,"menu_item_id":61,"quantity":1},{"id":30721,"menu_item_id":56,"quantity":1},{"id":30722,"menu_item_id":5,"quantity":1},{"id":30723,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2}]} 
[2026-03-27 18:31:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6465,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["106|1|","61|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["106|1|","61|1|","56|1|","5|1|","2|1|","396|2|"]} 
[2026-03-27 18:31:38] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6465,"order_number":"AZS-270326-010"} 
[2026-03-27 18:31:38] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270326-010","replaced_order_id":6465} 
[2026-03-27 18:31:38] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6467,"items_count":6,"items":[{"menu_item_id":106,"quantity":1,"price":4199.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":2,"quantity":1,"price":130.0},{"menu_item_id":396,"quantity":2,"price":99.0}]} 
[2026-03-27 18:31:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6467,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":4199.0,"discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6467}} 
[2026-03-27 18:31:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6467,"item_index":0,"menu_item_id":106} 
[2026-03-27 18:31:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6467,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6467}} 
[2026-03-27 18:31:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6467,"item_index":1,"menu_item_id":61} 
[2026-03-27 18:31:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6467,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6467}} 
[2026-03-27 18:31:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6467,"item_index":2,"menu_item_id":56} 
[2026-03-27 18:31:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6467,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6467}} 
[2026-03-27 18:31:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6467,"item_index":3,"menu_item_id":5} 
[2026-03-27 18:31:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6467,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6467}} 
[2026-03-27 18:31:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6467,"item_index":4,"menu_item_id":2} 
[2026-03-27 18:31:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6467,"item_index":5,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6467}} 
[2026-03-27 18:31:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6467,"item_index":5,"menu_item_id":396} 
[2026-03-27 18:31:38] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6465,"new_order_id":6467,"order_number":"AZS-270326-010"} 
[2026-03-27 18:31:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6467,"item_index":0,"item_id":30719} 
[2026-03-27 18:31:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6467,"item_index":1,"item_id":30720} 
[2026-03-27 18:31:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6467,"item_index":2,"item_id":30721} 
[2026-03-27 18:31:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6467,"item_index":3,"item_id":30722} 
[2026-03-27 18:31:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6467,"item_index":4,"item_id":30723} 
[2026-03-27 18:31:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6467,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30719},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30720},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30721},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30722},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30723},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-27 18:31:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6467,"items_count":6} 
[2026-03-27 18:31:42] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[30725,30726,30727,30728,30729,30730],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2}]} 
[2026-03-27 18:31:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6467,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["106|1|","61|1|","56|1|","5|1|","2|1|","396|2|"],"new_items_map_keys":["106|1|","61|1|","56|1|","5|1|","2|1|","396|2|"]} 
[2026-03-27 18:31:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6467,"order_number":"AZS-270326-010"} 
[2026-03-27 18:31:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6467,"order_number":"AZS-270326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-27 18:31:42"} 
[2026-03-27 18:34:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6464,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30714},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30715},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30716},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30717},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30718}],"validated_items":[{"id":30714,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30715,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30716,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30717,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30718,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-27 18:34:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6464,"items_count":5} 
[2026-03-27 18:34:20] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30714,"menu_item_id":113,"quantity":1},{"id":30715,"menu_item_id":396,"quantity":2},{"id":30716,"menu_item_id":61,"quantity":2},{"id":30717,"menu_item_id":56,"quantity":1},{"id":30718,"menu_item_id":2,"quantity":2}]} 
[2026-03-27 18:34:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6464,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["113|1|","396|2|","61|2|","56|1|","2|2|"],"new_items_map_keys":["113|1|","396|2|","61|2|","56|1|","2|2|"]} 
[2026-03-27 18:34:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6464,"order_number":"AZS-270326-011"} 
[2026-03-27 18:34:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6464,"order_number":"AZS-270326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-27 18:34:20"} 
[2026-03-27 18:39:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6467,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30725},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30726},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30727},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30728},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30729},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30730}],"validated_items":[{"id":30725,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":30726,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30727,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30728,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30729,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":30730,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-27 18:39:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6467,"items_count":6} 
[2026-03-27 18:39:59] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30725,"menu_item_id":106,"quantity":1},{"id":30726,"menu_item_id":61,"quantity":1},{"id":30727,"menu_item_id":56,"quantity":1},{"id":30728,"menu_item_id":5,"quantity":1},{"id":30729,"menu_item_id":2,"quantity":1},{"id":30730,"menu_item_id":396,"quantity":2}]} 
[2026-03-27 18:39:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6467,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["106|1|","61|1|","56|1|","5|1|","2|1|","396|2|"],"new_items_map_keys":["106|1|","61|1|","56|1|","5|1|","2|1|","396|2|"]} 
[2026-03-27 18:39:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6467,"order_number":"AZS-270326-010"} 
[2026-03-27 18:39:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6467,"order_number":"AZS-270326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-27 18:39:59"} 
[2026-03-27 18:42:21] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6467,"order_number":"AZS-270326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 18:42:21"} 
[2026-03-27 18:42:21] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6467,"order_number":"AZS-270326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 18:42:21"} 
[2026-03-27 18:42:21] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6467,"order_number":"AZS-270326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 18:42:21"} 
[2026-03-27 18:42:21] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6467,"order_number":"AZS-270326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 18:42:21"} 
[2026-03-27 18:42:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6467,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30725},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30727},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30728},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30729},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30730}],"validated_items":[{"id":30725,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":30727,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30728,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30729,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":30730,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-27 18:42:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6467,"items_count":5} 
[2026-03-27 18:42:21] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[30726],"items":[{"id":30725,"menu_item_id":106,"quantity":1},{"id":30727,"menu_item_id":56,"quantity":1},{"id":30728,"menu_item_id":5,"quantity":1},{"id":30729,"menu_item_id":2,"quantity":1},{"id":30730,"menu_item_id":396,"quantity":2}]} 
[2026-03-27 18:42:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6467,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["106|1|","61|1|","56|1|","5|1|","2|1|","396|2|"],"new_items_map_keys":["106|1|","56|1|","5|1|","2|1|","396|2|"]} 
[2026-03-27 18:42:21] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6467,"order_number":"AZS-270326-010","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-27 18:42:21","original_payment_amount":"0.00","grand_total":4896.0,"timestamp":"2026-03-27 18:42:21"} 
[2026-03-27 18:42:21] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6467,"order_number":"AZS-270326-010"} 
[2026-03-27 18:42:21] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270326-010","replaced_order_id":6467} 
[2026-03-27 18:42:21] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6467,"new_order_id":6468,"order_number":"AZS-270326-010","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-27 18:42:21","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-27 18:42:21"} 
[2026-03-27 18:42:21] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6468,"items_count":5,"items":[{"menu_item_id":106,"quantity":1,"price":4199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":2,"quantity":1,"price":130.0},{"menu_item_id":396,"quantity":2,"price":99.0}]} 
[2026-03-27 18:42:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6468,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":4199.0,"discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6468}} 
[2026-03-27 18:42:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6468,"item_index":0,"menu_item_id":106} 
[2026-03-27 18:42:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6468,"item_index":1,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6468}} 
[2026-03-27 18:42:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6468,"item_index":1,"menu_item_id":56} 
[2026-03-27 18:42:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6468,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6468}} 
[2026-03-27 18:42:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6468,"item_index":2,"menu_item_id":5} 
[2026-03-27 18:42:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6468,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6468}} 
[2026-03-27 18:42:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6468,"item_index":3,"menu_item_id":2} 
[2026-03-27 18:42:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6468,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6468}} 
[2026-03-27 18:42:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6468,"item_index":4,"menu_item_id":396} 
[2026-03-27 18:42:21] local.ERROR: Error tracking recipe usage for order 6468: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6468, 106, 196, 1, 1, 0.00, Order #AZS-270326-010 - 1x Mutton Shinwari - Full, 2026-03-27 18:42:21, 2026-03-27 18:42:21))  
[2026-03-27 18:42:21] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6467,"new_order_id":6468,"order_number":"AZS-270326-010"} 
[2026-03-27 18:42:22] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6467,"new_order_id":6468,"order_number":"AZS-270326-010","route":"api/orders/6467"} 
[2026-03-27 19:01:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6464,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30714},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30715},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30716},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30717},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30718}],"validated_items":[{"id":30714,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30715,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30716,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30717,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30718,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-27 19:01:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6464,"items_count":5} 
[2026-03-27 19:01:50] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30714,"menu_item_id":113,"quantity":1},{"id":30715,"menu_item_id":396,"quantity":2},{"id":30716,"menu_item_id":61,"quantity":2},{"id":30717,"menu_item_id":56,"quantity":1},{"id":30718,"menu_item_id":2,"quantity":2}]} 
[2026-03-27 19:01:50] local.INFO: PosOrderController::update - Item changes check {"order_id":6464,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["113|1|","396|2|","61|2|","56|1|","2|2|"],"new_items_map_keys":["113|1|","396|2|","61|2|","56|1|","2|2|"]} 
[2026-03-27 19:01:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6464,"order_number":"AZS-270326-011"} 
[2026-03-27 19:01:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6464,"order_number":"AZS-270326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-27 19:01:50"} 
[2026-03-27 19:02:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T07:02:11.369Z","date_to":"2026-03-27T19:02:11.369Z","per_page":"100"} 
[2026-03-27 19:02:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-013","AZS-270326-012","AZS-270326-011","AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":4,"unique_order_numbers":13} 
[2026-03-27 19:02:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T07:02:11.398Z","date_to":"2026-03-27T19:02:11.398Z","per_page":"100"} 
[2026-03-27 19:02:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-013","AZS-270326-012","AZS-270326-011","AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":4,"unique_order_numbers":13} 
[2026-03-27 19:02:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T07:02:11.369Z","date_to":"2026-03-27T19:02:11.369Z","per_page":"100"} 
[2026-03-27 19:02:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-013","AZS-270326-012","AZS-270326-011","AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":4,"unique_order_numbers":13} 
[2026-03-27 19:02:52] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6464,"order_number":"AZS-270326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 19:02:52"} 
[2026-03-27 19:02:52] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6464,"order_number":"AZS-270326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 19:02:52"} 
[2026-03-27 19:02:52] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6464,"order_number":"AZS-270326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 19:02:52"} 
[2026-03-27 19:02:52] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6464,"order_number":"AZS-270326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 19:02:52"} 
[2026-03-27 19:02:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":6464,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30714},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30715},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30716},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30718}],"validated_items":[{"id":30714,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30715,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30716,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30718,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-27 19:02:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6464,"items_count":4} 
[2026-03-27 19:02:52] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[30717],"items":[{"id":30714,"menu_item_id":113,"quantity":1},{"id":30715,"menu_item_id":396,"quantity":2},{"id":30716,"menu_item_id":61,"quantity":2},{"id":30718,"menu_item_id":2,"quantity":2}]} 
[2026-03-27 19:02:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6464,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["113|1|","396|2|","61|2|","56|1|","2|2|"],"new_items_map_keys":["113|1|","396|2|","61|2|","2|2|"]} 
[2026-03-27 19:02:52] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6464,"order_number":"AZS-270326-011","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":2100,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-27 19:02:52","original_payment_amount":"0.00","grand_total":2055.0,"timestamp":"2026-03-27 19:02:52"} 
[2026-03-27 19:02:52] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6464,"order_number":"AZS-270326-011"} 
[2026-03-27 19:02:52] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270326-011","replaced_order_id":6464} 
[2026-03-27 19:02:52] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6464,"new_order_id":6470,"order_number":"AZS-270326-011","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"2100.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-27 19:02:52","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-27 19:02:52"} 
[2026-03-27 19:02:52] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6470,"items_count":4,"items":[{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":61,"quantity":2,"price":199.0},{"menu_item_id":2,"quantity":2,"price":130.0}]} 
[2026-03-27 19:02:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6470,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6470}} 
[2026-03-27 19:02:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6470,"item_index":0,"menu_item_id":113} 
[2026-03-27 19:02:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6470,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6470}} 
[2026-03-27 19:02:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6470,"item_index":1,"menu_item_id":396} 
[2026-03-27 19:02:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6470,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6470}} 
[2026-03-27 19:02:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6470,"item_index":2,"menu_item_id":61} 
[2026-03-27 19:02:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6470,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6470}} 
[2026-03-27 19:02:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6470,"item_index":3,"menu_item_id":2} 
[2026-03-27 19:02:52] local.ERROR: Error tracking recipe usage for order 6470: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6470, 61, 66, 1, 500, 0.00, Order #AZS-270326-011 - 2x Mint Raita, 2026-03-27 19:02:52, 2026-03-27 19:02:52))  
[2026-03-27 19:02:52] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6464,"new_order_id":6470,"order_number":"AZS-270326-011"} 
[2026-03-27 19:02:53] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6464,"new_order_id":6470,"order_number":"AZS-270326-011","route":"api/orders/6464"} 
[2026-03-27 19:03:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T07:03:06.666Z","date_to":"2026-03-27T19:03:06.666Z","per_page":"100"} 
[2026-03-27 19:03:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T07:03:06.644Z","date_to":"2026-03-27T19:03:06.644Z","per_page":"100"} 
[2026-03-27 19:03:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-013","AZS-270326-012","AZS-270326-011","AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-27 19:03:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-013","AZS-270326-012","AZS-270326-011","AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-27 19:03:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T07:03:06.644Z","date_to":"2026-03-27T19:03:06.644Z","per_page":"100"} 
[2026-03-27 19:03:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-013","AZS-270326-012","AZS-270326-011","AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-27 20:09:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6469,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":30736},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":30737},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30738},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":30739},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30740}],"validated_items":[{"id":30736,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":30737,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":30738,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30739,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":30740,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-27 20:09:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6469,"items_count":5} 
[2026-03-27 20:09:16] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30736,"menu_item_id":62,"quantity":1},{"id":30737,"menu_item_id":67,"quantity":1},{"id":30738,"menu_item_id":61,"quantity":1},{"id":30739,"menu_item_id":396,"quantity":1},{"id":30740,"menu_item_id":5,"quantity":1}]} 
[2026-03-27 20:09:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6469,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["62|1|","67|1|","61|1|","396|1|","5|1|"],"new_items_map_keys":["62|1|","67|1|","61|1|","396|1|","5|1|"]} 
[2026-03-27 20:09:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6469,"order_number":"AZS-270326-013"} 
[2026-03-27 20:09:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6469,"order_number":"AZS-270326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-27 20:09:16"} 
[2026-03-27 20:09:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":6469,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":30736},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":30737},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30738},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":30739}],"validated_items":[{"id":30736,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":30737,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":30738,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30739,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-27 20:09:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6469,"items_count":4} 
[2026-03-27 20:09:47] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[30740],"items":[{"id":30736,"menu_item_id":62,"quantity":1},{"id":30737,"menu_item_id":67,"quantity":1},{"id":30738,"menu_item_id":61,"quantity":1},{"id":30739,"menu_item_id":396,"quantity":1}]} 
[2026-03-27 20:09:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6469,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["62|1|","67|1|","61|1|","396|1|","5|1|"],"new_items_map_keys":["62|1|","67|1|","61|1|","396|1|"]} 
[2026-03-27 20:09:47] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6469,"order_number":"AZS-270326-013"} 
[2026-03-27 20:09:47] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270326-013","replaced_order_id":6469} 
[2026-03-27 20:09:47] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6471,"items_count":4,"items":[{"menu_item_id":62,"quantity":1,"price":1499.0},{"menu_item_id":67,"quantity":1,"price":599.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":396,"quantity":1,"price":99.0}]} 
[2026-03-27 20:09:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6471,"item_index":0,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":1499.0,"discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6471}} 
[2026-03-27 20:09:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6471,"item_index":0,"menu_item_id":62} 
[2026-03-27 20:09:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6471,"item_index":1,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":1,"price":599.0,"discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6471}} 
[2026-03-27 20:09:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6471,"item_index":1,"menu_item_id":67} 
[2026-03-27 20:09:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6471,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6471}} 
[2026-03-27 20:09:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6471,"item_index":2,"menu_item_id":61} 
[2026-03-27 20:09:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6471,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6471}} 
[2026-03-27 20:09:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6471,"item_index":3,"menu_item_id":396} 
[2026-03-27 20:09:47] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6469,"new_order_id":6471,"order_number":"AZS-270326-013"} 
[2026-03-27 20:09:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6471,"item_index":0,"item_id":30736} 
[2026-03-27 20:09:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6471,"item_index":1,"item_id":30737} 
[2026-03-27 20:09:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6471,"item_index":2,"item_id":30738} 
[2026-03-27 20:09:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6471,"item_index":3,"item_id":30739} 
[2026-03-27 20:09:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6471,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":30736},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":30737},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30738},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":30739}],"validated_items":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-27 20:09:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6471,"items_count":4} 
[2026-03-27 20:09:52] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[30745,30746,30747,30748],"items":[{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":67,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1}]} 
[2026-03-27 20:09:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6471,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["62|1|","67|1|","61|1|","396|1|"],"new_items_map_keys":["62|1|","67|1|","61|1|","396|1|"]} 
[2026-03-27 20:09:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6471,"order_number":"AZS-270326-013"} 
[2026-03-27 20:09:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6471,"order_number":"AZS-270326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-27 20:09:52"} 
[2026-03-27 20:14:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T08:14:16.254Z","date_to":"2026-03-27T20:14:16.254Z","per_page":"100"} 
[2026-03-27 20:14:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T08:14:16.281Z","date_to":"2026-03-27T20:14:16.281Z","per_page":"100"} 
[2026-03-27 20:14:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-013","AZS-270326-012","AZS-270326-011","AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-27 20:14:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-013","AZS-270326-012","AZS-270326-011","AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-27 20:14:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T08:14:16.254Z","date_to":"2026-03-27T20:14:16.254Z","per_page":"100"} 
[2026-03-27 20:14:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-013","AZS-270326-012","AZS-270326-011","AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-27 20:18:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6466,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null,"id":30724}],"validated_items":[{"id":30724,"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-27 20:18:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6466,"items_count":1} 
[2026-03-27 20:18:59] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30724,"menu_item_id":6,"quantity":1}]} 
[2026-03-27 20:19:00] local.INFO: PosOrderController::update - Item changes check {"order_id":6466,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-03-27 20:19:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6466,"order_number":"AZS-270326-012"} 
[2026-03-27 20:19:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6466,"order_number":"AZS-270326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-27 20:19:00"} 
[2026-03-27 20:19:12] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6466,"order_number":"AZS-270326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":199,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 20:19:12"} 
[2026-03-27 20:19:12] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6466,"order_number":"AZS-270326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":199,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 20:19:12"} 
[2026-03-27 20:19:12] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6466,"order_number":"AZS-270326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":199,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 20:19:12"} 
[2026-03-27 20:19:12] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6466,"order_number":"AZS-270326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":199,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 20:19:12"} 
[2026-03-27 20:19:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6466,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30724}],"validated_items":[{"id":30724,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-27 20:19:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6466,"items_count":1} 
[2026-03-27 20:19:12] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30724,"menu_item_id":6,"quantity":1}]} 
[2026-03-27 20:19:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6466,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-03-27 20:19:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6466,"order_number":"AZS-270326-012"} 
[2026-03-27 20:19:12] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6466,"order_number":"AZS-270326-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":199,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-27 20:19:12","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-27 20:19:12"} 
[2026-03-27 20:19:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6466,"order_number":"AZS-270326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-27 20:19:12"} 
[2026-03-27 20:19:12] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6466,"order_number":"AZS-270326-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"199.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-27 20:19:12","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":199,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"199.00","database_verification_match":true,"timestamp":"2026-03-27 20:19:12"} 
[2026-03-27 20:19:42] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6471,"order_number":"AZS-270326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 20:19:42"} 
[2026-03-27 20:19:42] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6471,"order_number":"AZS-270326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 20:19:42"} 
[2026-03-27 20:19:42] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6471,"order_number":"AZS-270326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 20:19:42"} 
[2026-03-27 20:19:42] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6471,"order_number":"AZS-270326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 20:19:42"} 
[2026-03-27 20:19:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":1,"order_id":6471,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":30745},{"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":30746},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":30748}],"validated_items":[{"id":30745,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":30746,"menu_item_id":67,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":30748,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-27 20:19:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6471,"items_count":3} 
[2026-03-27 20:19:42] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":1,"items_to_remove":[30747],"items":[{"id":30745,"menu_item_id":62,"quantity":1},{"id":30746,"menu_item_id":67,"quantity":1},{"id":30748,"menu_item_id":396,"quantity":1}]} 
[2026-03-27 20:19:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6471,"has_item_changes":true,"old_items_count":4,"new_items_count":3,"old_items_map_keys":["62|1|","67|1|","61|1|","396|1|"],"new_items_map_keys":["62|1|","67|1|","396|1|"]} 
[2026-03-27 20:19:42] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6471,"order_number":"AZS-270326-013","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":2500,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-27 20:19:42","original_payment_amount":"0.00","grand_total":2307.0,"timestamp":"2026-03-27 20:19:42"} 
[2026-03-27 20:19:42] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6471,"order_number":"AZS-270326-013"} 
[2026-03-27 20:19:42] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-270326-013","replaced_order_id":6471} 
[2026-03-27 20:19:42] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6471,"new_order_id":6472,"order_number":"AZS-270326-013","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"2500.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-27 20:19:42","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-27 20:19:42"} 
[2026-03-27 20:19:42] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6472,"items_count":3,"items":[{"menu_item_id":62,"quantity":1,"price":1499.0},{"menu_item_id":67,"quantity":1,"price":599.0},{"menu_item_id":396,"quantity":1,"price":99.0}]} 
[2026-03-27 20:19:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6472,"item_index":0,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":1499.0,"discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6472}} 
[2026-03-27 20:19:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6472,"item_index":0,"menu_item_id":62} 
[2026-03-27 20:19:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6472,"item_index":1,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":1,"price":599.0,"discount_percent":0.0,"discount_amount":0.0,"total":599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6472}} 
[2026-03-27 20:19:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6472,"item_index":1,"menu_item_id":67} 
[2026-03-27 20:19:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6472,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6472}} 
[2026-03-27 20:19:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6472,"item_index":2,"menu_item_id":396} 
[2026-03-27 20:19:42] local.ERROR: Error tracking recipe usage for order 6472: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6472, 62, 184, 1, 5000, 0.00, Order #AZS-270326-013 - 1x Chicken Malai Boti (10 pcs), 2026-03-27 20:19:42, 2026-03-27 20:19:42))  
[2026-03-27 20:19:42] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6471,"new_order_id":6472,"order_number":"AZS-270326-013"} 
[2026-03-27 20:19:43] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6471,"new_order_id":6472,"order_number":"AZS-270326-013","route":"api/orders/6471"} 
[2026-03-27 20:26:41] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6460,"order_number":"AZS-270326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 20:26:41"} 
[2026-03-27 20:26:41] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6460,"order_number":"AZS-270326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-27 20:26:41"} 
[2026-03-27 20:26:41] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6460,"order_number":"AZS-270326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 20:26:41"} 
[2026-03-27 20:26:41] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6460,"order_number":"AZS-270326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-27 20:26:41"} 
[2026-03-27 20:26:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6460,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":30701}],"validated_items":[{"id":30701,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null}]} 
[2026-03-27 20:26:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6460,"items_count":1} 
[2026-03-27 20:26:41] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30701,"menu_item_id":385,"quantity":1}]} 
[2026-03-27 20:26:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6460,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-03-27 20:26:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6460,"order_number":"AZS-270326-009"} 
[2026-03-27 20:26:41] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6460,"order_number":"AZS-270326-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-27 20:26:41","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-27 20:26:41"} 
[2026-03-27 20:26:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6460,"order_number":"AZS-270326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-27 20:26:41"} 
[2026-03-27 20:26:41] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6460,"order_number":"AZS-270326-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-27 20:26:41","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-03-27 20:26:41"} 
[2026-03-27 20:30:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T08:30:54.389Z","date_to":"2026-03-27T20:30:54.389Z","per_page":"100"} 
[2026-03-27 20:30:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T08:30:54.376Z","date_to":"2026-03-27T20:30:54.376Z","per_page":"100"} 
[2026-03-27 20:30:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-014","AZS-270326-013","AZS-270326-012","AZS-270326-011","AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":1,"unique_order_numbers":14} 
[2026-03-27 20:30:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-014","AZS-270326-013","AZS-270326-012","AZS-270326-011","AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":1,"unique_order_numbers":14} 
[2026-03-27 20:30:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T08:30:54.376Z","date_to":"2026-03-27T20:30:54.376Z","per_page":"100"} 
[2026-03-27 20:30:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-014","AZS-270326-013","AZS-270326-012","AZS-270326-011","AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":1,"unique_order_numbers":14} 
[2026-03-27 20:35:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T08:35:29.671Z","date_to":"2026-03-27T20:35:29.671Z","per_page":"100"} 
[2026-03-27 20:35:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T08:35:29.653Z","date_to":"2026-03-27T20:35:29.653Z","per_page":"100"} 
[2026-03-27 20:35:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-014","AZS-270326-013","AZS-270326-012","AZS-270326-011","AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":1,"unique_order_numbers":14} 
[2026-03-27 20:35:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-014","AZS-270326-013","AZS-270326-012","AZS-270326-011","AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":1,"unique_order_numbers":14} 
[2026-03-27 20:35:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-27T08:35:29.653Z","date_to":"2026-03-27T20:35:29.653Z","per_page":"100"} 
[2026-03-27 20:35:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-270326-014","AZS-270326-013","AZS-270326-012","AZS-270326-011","AZS-270326-010","AZS-270326-009","AZS-270326-008","AZS-270326-007","AZS-270326-006","AZS-270326-005","AZS-270326-004","AZS-270326-003","AZS-270326-002","AZS-270326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":1,"unique_order_numbers":14} 
[2026-03-28 12:11:45] local.INFO: Login attempt {"email":"cash@pos.com","ip":"37.111.141.45"} 
[2026-03-28 12:13:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6473,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null,"id":30752}],"validated_items":[{"id":30752,"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-28 12:13:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6473,"items_count":1} 
[2026-03-28 12:13:03] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30752,"menu_item_id":386,"quantity":1}]} 
[2026-03-28 12:13:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6473,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|"]} 
[2026-03-28 12:13:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6473,"order_number":"AZS-270326-014"} 
[2026-03-28 12:13:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6473,"order_number":"AZS-270326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-28 12:13:03"} 
[2026-03-28 12:13:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T00:13:17.993Z","date_to":"2026-03-28T12:13:17.993Z","per_page":"100"} 
[2026-03-28 12:13:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-28 12:14:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T00:14:58.825Z","date_to":"2026-03-28T12:14:58.825Z","per_page":"100"} 
[2026-03-28 12:14:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-28 12:14:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T00:14:58.834Z","date_to":"2026-03-28T12:14:58.834Z","per_page":"100"} 
[2026-03-28 12:14:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-28 12:14:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T00:14:58.825Z","date_to":"2026-03-28T12:14:58.825Z","per_page":"100"} 
[2026-03-28 12:14:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-28 12:48:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T00:48:22.793Z","date_to":"2026-03-28T12:48:22.793Z","per_page":"100"} 
[2026-03-28 12:48:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-28 12:48:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T00:48:22.783Z","date_to":"2026-03-28T12:48:22.783Z","per_page":"100"} 
[2026-03-28 12:48:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-28 12:48:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T00:48:22.783Z","date_to":"2026-03-28T12:48:22.783Z","per_page":"100"} 
[2026-03-28 12:48:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-28 12:48:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T00:48:26.446Z","date_to":"2026-03-28T12:48:26.446Z","per_page":"100"} 
[2026-03-28 12:48:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-28 12:48:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T00:48:26.437Z","date_to":"2026-03-28T12:48:26.437Z","per_page":"100"} 
[2026-03-28 12:48:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-28 12:48:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T00:48:26.437Z","date_to":"2026-03-28T12:48:26.437Z","per_page":"100"} 
[2026-03-28 12:48:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-03-28 13:55:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6474,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null,"id":30753}],"validated_items":[{"id":30753,"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-28 13:55:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6474,"items_count":1} 
[2026-03-28 13:55:49] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30753,"menu_item_id":386,"quantity":1}]} 
[2026-03-28 13:55:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6474,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|"]} 
[2026-03-28 13:55:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6474,"order_number":"AZS-280326-001"} 
[2026-03-28 13:55:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6474,"order_number":"AZS-280326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-28 13:55:49"} 
[2026-03-28 13:56:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6474,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null,"id":30753}],"validated_items":[{"id":30753,"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-28 13:56:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6474,"items_count":1} 
[2026-03-28 13:56:46] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30753,"menu_item_id":386,"quantity":1}]} 
[2026-03-28 13:56:46] local.INFO: PosOrderController::update - Item changes check {"order_id":6474,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|"]} 
[2026-03-28 13:56:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6474,"order_number":"AZS-280326-001"} 
[2026-03-28 13:56:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6474,"order_number":"AZS-280326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-28 13:56:46"} 
[2026-03-28 13:57:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6474,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null,"id":30753}],"validated_items":[{"id":30753,"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-28 13:57:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6474,"items_count":1} 
[2026-03-28 13:57:21] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30753,"menu_item_id":386,"quantity":1}]} 
[2026-03-28 13:57:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6474,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|"]} 
[2026-03-28 13:57:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6474,"order_number":"AZS-280326-001"} 
[2026-03-28 13:57:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6474,"order_number":"AZS-280326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-28 13:57:21"} 
[2026-03-28 14:07:15] local.WARNING: RouteServiceProvider: Order not found for PUT/PATCH {"order_id":"6473","route":"api/orders/6473","method":"PUT"} 
[2026-03-28 14:07:20] local.WARNING: RouteServiceProvider: Order not found for PUT/PATCH {"order_id":"6473","route":"api/orders/6473","method":"PUT"} 
[2026-03-28 14:07:20] local.WARNING: RouteServiceProvider: Order not found for PUT/PATCH {"order_id":"6473","route":"api/orders/6473","method":"PUT"} 
[2026-03-28 14:07:22] local.WARNING: RouteServiceProvider: Order not found for PUT/PATCH {"order_id":"6473","route":"api/orders/6473","method":"PUT"} 
[2026-03-28 14:07:30] local.WARNING: RouteServiceProvider: Order not found for PUT/PATCH {"order_id":"6473","route":"api/orders/6473","method":"PUT"} 
[2026-03-28 14:08:06] local.WARNING: RouteServiceProvider: Order not found for PUT/PATCH {"order_id":"6473","route":"api/orders/6473","method":"PUT"} 
[2026-03-28 14:08:37] local.WARNING: RouteServiceProvider: Order not found for PUT/PATCH {"order_id":"6473","route":"api/orders/6473","method":"PUT"} 
[2026-03-28 14:09:06] local.WARNING: RouteServiceProvider: Order not found for PUT/PATCH {"order_id":"6473","route":"api/orders/6473","method":"PUT"} 
[2026-03-28 14:09:18] local.WARNING: RouteServiceProvider: Order not found for PUT/PATCH {"order_id":"6473","route":"api/orders/6473","method":"PUT"} 
[2026-03-28 14:09:54] local.WARNING: RouteServiceProvider: Order not found for PUT/PATCH {"order_id":"6473","route":"api/orders/6473","method":"PUT"} 
[2026-03-28 14:09:58] local.WARNING: RouteServiceProvider: Order not found for PUT/PATCH {"order_id":"6473","route":"api/orders/6473","method":"PUT"} 
[2026-03-28 14:10:07] local.WARNING: RouteServiceProvider: Order not found for PUT/PATCH {"order_id":"6473","route":"api/orders/6473","method":"PUT"} 
[2026-03-28 14:10:14] local.WARNING: RouteServiceProvider: Order not found for PUT/PATCH {"order_id":"6473","route":"api/orders/6473","method":"PUT"} 
[2026-03-28 14:11:05] local.WARNING: RouteServiceProvider: Order not found for PUT/PATCH {"order_id":"6473","route":"api/orders/6473","method":"PUT"} 
[2026-03-28 14:11:09] local.WARNING: RouteServiceProvider: Order not found for PUT/PATCH {"order_id":"6473","route":"api/orders/6473","method":"PUT"} 
[2026-03-28 14:13:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6474,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null,"id":30753}],"validated_items":[{"id":30753,"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-28 14:13:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6474,"items_count":1} 
[2026-03-28 14:13:28] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30753,"menu_item_id":386,"quantity":1}]} 
[2026-03-28 14:13:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6474,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|"]} 
[2026-03-28 14:13:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6474,"order_number":"AZS-280326-001"} 
[2026-03-28 14:13:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6474,"order_number":"AZS-280326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-28 14:13:28"} 
[2026-03-28 14:13:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6475,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":163,"quantity":1,"discount_percent":0,"notes":null,"id":30754},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":30754,"menu_item_id":163,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-28 14:13:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6475,"items_count":2} 
[2026-03-28 14:13:42] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30754,"menu_item_id":163,"quantity":1},{"id":null,"menu_item_id":13,"quantity":3}]} 
[2026-03-28 14:13:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6475,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["163|1|"],"new_items_map_keys":["163|1|","13|3|"]} 
[2026-03-28 14:13:42] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6475,"order_number":"AZS-280326-002"} 
[2026-03-28 14:13:42] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-002","replaced_order_id":6475} 
[2026-03-28 14:13:42] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6476,"items_count":2,"items":[{"menu_item_id":163,"quantity":1,"price":"1050.00"},{"menu_item_id":13,"quantity":3,"price":"249.00"}]} 
[2026-03-28 14:13:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6476,"item_index":0,"item_data":{"menu_item_id":163,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Azan Special Sandwich","quantity":1,"price":"1050.00","discount_percent":0.0,"discount_amount":0.0,"total":1050.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6476}} 
[2026-03-28 14:13:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6476,"item_index":0,"menu_item_id":163} 
[2026-03-28 14:13:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6476,"item_index":1,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6476}} 
[2026-03-28 14:13:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6476,"item_index":1,"menu_item_id":13} 
[2026-03-28 14:13:42] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6475,"new_order_id":6476,"order_number":"AZS-280326-002"} 
[2026-03-28 14:44:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6476,"item_index":0,"item_id":30754} 
[2026-03-28 14:44:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":2,"order_id":6476,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null,"id":30754},{"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":165,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":165,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-28 14:44:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6476,"items_count":3} 
[2026-03-28 14:44:31] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":2,"items_to_remove":[30755,30756],"items":[{"id":null,"menu_item_id":163,"quantity":2},{"id":null,"menu_item_id":13,"quantity":5},{"id":null,"menu_item_id":165,"quantity":1}]} 
[2026-03-28 14:44:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6476,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["163|1|","13|3|"],"new_items_map_keys":["163|2|","13|5|","165|1|"]} 
[2026-03-28 14:44:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6476,"order_number":"AZS-280326-002"} 
[2026-03-28 14:44:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-002","replaced_order_id":6476} 
[2026-03-28 14:44:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6477,"items_count":3,"items":[{"menu_item_id":163,"quantity":2,"price":"1050.00"},{"menu_item_id":13,"quantity":5,"price":"249.00"},{"menu_item_id":165,"quantity":1,"price":"999.00"}]} 
[2026-03-28 14:44:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6477,"item_index":0,"item_data":{"menu_item_id":163,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Azan Special Sandwich","quantity":2,"price":"1050.00","discount_percent":0.0,"discount_amount":0.0,"total":2100.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6477}} 
[2026-03-28 14:44:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6477,"item_index":0,"menu_item_id":163} 
[2026-03-28 14:44:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6477,"item_index":1,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":5,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":1245.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6477}} 
[2026-03-28 14:44:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6477,"item_index":1,"menu_item_id":13} 
[2026-03-28 14:44:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6477,"item_index":2,"item_data":{"menu_item_id":165,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Grilled Chicken Sandwich","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6477}} 
[2026-03-28 14:44:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6477,"item_index":2,"menu_item_id":165} 
[2026-03-28 14:44:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6476,"new_order_id":6477,"order_number":"AZS-280326-002"} 
[2026-03-28 15:03:11] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6474,"order_number":"AZS-280326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2100,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 15:03:11"} 
[2026-03-28 15:03:11] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6474,"order_number":"AZS-280326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 15:03:11"} 
[2026-03-28 15:03:11] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6474,"order_number":"AZS-280326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 15:03:11"} 
[2026-03-28 15:03:11] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6474,"order_number":"AZS-280326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 15:03:11"} 
[2026-03-28 15:03:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6474,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":30753}],"validated_items":[{"id":30753,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null}]} 
[2026-03-28 15:03:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6474,"items_count":1} 
[2026-03-28 15:03:11] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30753,"menu_item_id":386,"quantity":1}]} 
[2026-03-28 15:03:11] local.INFO: PosOrderController::update - Item changes check {"order_id":6474,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|"]} 
[2026-03-28 15:03:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6474,"order_number":"AZS-280326-001"} 
[2026-03-28 15:03:11] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6474,"order_number":"AZS-280326-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2100,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-28 15:03:11","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-28 15:03:11"} 
[2026-03-28 15:03:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6474,"order_number":"AZS-280326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-28 15:03:11"} 
[2026-03-28 15:03:11] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6474,"order_number":"AZS-280326-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2100.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-28 15:03:11","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2100.00","database_verification_match":true,"timestamp":"2026-03-28 15:03:11"} 
[2026-03-28 15:15:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6477,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null,"id":30757},{"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null,"id":30758},{"menu_item_id":165,"quantity":1,"discount_percent":0,"notes":null,"id":30759},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":30757,"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null},{"id":30758,"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null},{"id":30759,"menu_item_id":165,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-28 15:15:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6477,"items_count":4} 
[2026-03-28 15:15:54] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30757,"menu_item_id":163,"quantity":2},{"id":30758,"menu_item_id":13,"quantity":5},{"id":30759,"menu_item_id":165,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-28 15:15:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6477,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["163|2|","13|5|","165|1|"],"new_items_map_keys":["163|2|","13|5|","165|1|","2|2|"]} 
[2026-03-28 15:15:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6477,"order_number":"AZS-280326-002"} 
[2026-03-28 15:15:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-002","replaced_order_id":6477} 
[2026-03-28 15:15:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6478,"items_count":4,"items":[{"menu_item_id":163,"quantity":2,"price":"1050.00"},{"menu_item_id":13,"quantity":5,"price":"249.00"},{"menu_item_id":165,"quantity":1,"price":"999.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-28 15:15:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6478,"item_index":0,"item_data":{"menu_item_id":163,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Azan Special Sandwich","quantity":2,"price":"1050.00","discount_percent":0.0,"discount_amount":0.0,"total":2100.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6478}} 
[2026-03-28 15:15:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6478,"item_index":0,"menu_item_id":163} 
[2026-03-28 15:15:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6478,"item_index":1,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":5,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":1245.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6478}} 
[2026-03-28 15:15:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6478,"item_index":1,"menu_item_id":13} 
[2026-03-28 15:15:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6478,"item_index":2,"item_data":{"menu_item_id":165,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Grilled Chicken Sandwich","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6478}} 
[2026-03-28 15:15:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6478,"item_index":2,"menu_item_id":165} 
[2026-03-28 15:15:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6478,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6478}} 
[2026-03-28 15:15:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6478,"item_index":3,"menu_item_id":2} 
[2026-03-28 15:15:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6477,"new_order_id":6478,"order_number":"AZS-280326-002"} 
[2026-03-28 15:32:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6478,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null,"id":30760},{"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null,"id":30761},{"menu_item_id":165,"quantity":1,"discount_percent":0,"notes":null,"id":30762},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":30763},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30760,"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null},{"id":30761,"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null},{"id":30762,"menu_item_id":165,"quantity":1,"discount_percent":0,"notes":null},{"id":30763,"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-28 15:32:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6478,"items_count":5} 
[2026-03-28 15:32:18] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30760,"menu_item_id":163,"quantity":2},{"id":30761,"menu_item_id":13,"quantity":5},{"id":30762,"menu_item_id":165,"quantity":1},{"id":30763,"menu_item_id":2,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-28 15:32:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6478,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["163|2|","13|5|","165|1|","2|2|"],"new_items_map_keys":["163|2|","13|5|","165|1|","2|3|","5|1|"]} 
[2026-03-28 15:32:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6478,"order_number":"AZS-280326-002"} 
[2026-03-28 15:32:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-002","replaced_order_id":6478} 
[2026-03-28 15:32:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6480,"items_count":5,"items":[{"menu_item_id":163,"quantity":2,"price":"1050.00"},{"menu_item_id":13,"quantity":5,"price":"249.00"},{"menu_item_id":165,"quantity":1,"price":"999.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-28 15:32:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6480,"item_index":0,"item_data":{"menu_item_id":163,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Azan Special Sandwich","quantity":2,"price":"1050.00","discount_percent":0.0,"discount_amount":0.0,"total":2100.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6480}} 
[2026-03-28 15:32:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6480,"item_index":0,"menu_item_id":163} 
[2026-03-28 15:32:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6480,"item_index":1,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":5,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":1245.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6480}} 
[2026-03-28 15:32:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6480,"item_index":1,"menu_item_id":13} 
[2026-03-28 15:32:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6480,"item_index":2,"item_data":{"menu_item_id":165,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Grilled Chicken Sandwich","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6480}} 
[2026-03-28 15:32:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6480,"item_index":2,"menu_item_id":165} 
[2026-03-28 15:32:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6480,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6480}} 
[2026-03-28 15:32:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6480,"item_index":3,"menu_item_id":2} 
[2026-03-28 15:32:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6480,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6480}} 
[2026-03-28 15:32:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6480,"item_index":4,"menu_item_id":5} 
[2026-03-28 15:32:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6478,"new_order_id":6480,"order_number":"AZS-280326-002"} 
[2026-03-28 16:06:38] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-28 16:07:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6480,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":163,"quantity":2,"price":1050,"discount_percent":0,"notes":null,"id":30766},{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":30767},{"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":30768},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":30769},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30770}],"validated_items":[{"id":30766,"menu_item_id":163,"quantity":2,"price":1050,"discount_percent":0,"notes":null},{"id":30767,"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null},{"id":30768,"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":30769,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":30770,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-28 16:07:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6480,"items_count":5} 
[2026-03-28 16:07:08] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30766,"menu_item_id":163,"quantity":2},{"id":30767,"menu_item_id":13,"quantity":5},{"id":30768,"menu_item_id":165,"quantity":1},{"id":30769,"menu_item_id":2,"quantity":3},{"id":30770,"menu_item_id":5,"quantity":1}]} 
[2026-03-28 16:07:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6480,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["163|2|","13|5|","165|1|","2|3|","5|1|"],"new_items_map_keys":["163|2|","13|5|","165|1|","2|3|","5|1|"]} 
[2026-03-28 16:07:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6480,"order_number":"AZS-280326-002"} 
[2026-03-28 16:07:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6480,"order_number":"AZS-280326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 16:07:08"} 
[2026-03-28 16:07:36] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6479,"order_number":"AZS-280326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":600,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 16:07:36"} 
[2026-03-28 16:07:36] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6479,"order_number":"AZS-280326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 16:07:36"} 
[2026-03-28 16:07:36] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6479,"order_number":"AZS-280326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 16:07:36"} 
[2026-03-28 16:07:36] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6479,"order_number":"AZS-280326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 16:07:36"} 
[2026-03-28 16:07:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6479,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30764},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30765}],"validated_items":[{"id":30764,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30765,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-28 16:07:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6479,"items_count":2} 
[2026-03-28 16:07:36] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30764,"menu_item_id":61,"quantity":2},{"id":30765,"menu_item_id":56,"quantity":1}]} 
[2026-03-28 16:07:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6479,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["61|2|","56|1|"],"new_items_map_keys":["61|2|","56|1|"]} 
[2026-03-28 16:07:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6479,"order_number":"AZS-280326-003"} 
[2026-03-28 16:07:36] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6479,"order_number":"AZS-280326-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":600,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-28 16:07:36","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-28 16:07:36"} 
[2026-03-28 16:07:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6479,"order_number":"AZS-280326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-28 16:07:36"} 
[2026-03-28 16:07:36] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6479,"order_number":"AZS-280326-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"600.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-28 16:07:36","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"600.00","database_verification_match":true,"timestamp":"2026-03-28 16:07:36"} 
[2026-03-28 16:16:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6482,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null,"id":30773},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":6,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30773,"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":6,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-28 16:16:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6482,"items_count":7} 
[2026-03-28 16:16:31] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30773,"menu_item_id":6,"quantity":1},{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":286,"quantity":6},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-03-28 16:16:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6482,"has_item_changes":true,"old_items_count":1,"new_items_count":7,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|","113|1|","98|1|","64|1|","286|6|","61|1|","56|1|"]} 
[2026-03-28 16:16:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6482,"order_number":"AZS-280326-005"} 
[2026-03-28 16:16:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-005","replaced_order_id":6482} 
[2026-03-28 16:16:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6484,"items_count":7,"items":[{"menu_item_id":6,"quantity":1,"price":"199.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":286,"quantity":6,"price":"15.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"}]} 
[2026-03-28 16:16:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6484,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6484}} 
[2026-03-28 16:16:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6484,"item_index":0,"menu_item_id":6} 
[2026-03-28 16:16:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6484,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6484}} 
[2026-03-28 16:16:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6484,"item_index":1,"menu_item_id":113} 
[2026-03-28 16:16:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6484,"item_index":2,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6484}} 
[2026-03-28 16:16:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6484,"item_index":2,"menu_item_id":98} 
[2026-03-28 16:16:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6484,"item_index":3,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6484}} 
[2026-03-28 16:16:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6484,"item_index":3,"menu_item_id":64} 
[2026-03-28 16:16:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6484,"item_index":4,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":6,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6484}} 
[2026-03-28 16:16:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6484,"item_index":4,"menu_item_id":286} 
[2026-03-28 16:16:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6484,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6484}} 
[2026-03-28 16:16:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6484,"item_index":5,"menu_item_id":61} 
[2026-03-28 16:16:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6484,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6484}} 
[2026-03-28 16:16:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6484,"item_index":6,"menu_item_id":56} 
[2026-03-28 16:16:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6482,"new_order_id":6484,"order_number":"AZS-280326-005"} 
[2026-03-28 16:18:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T04:19:01.349Z","date_to":"2026-03-28T16:19:01.349Z","per_page":"100"} 
[2026-03-28 16:18:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T04:19:01.336Z","date_to":"2026-03-28T16:19:01.336Z","per_page":"100"} 
[2026-03-28 16:18:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":5,"unique_order_numbers":7} 
[2026-03-28 16:18:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":5,"unique_order_numbers":7} 
[2026-03-28 16:18:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T04:19:01.336Z","date_to":"2026-03-28T16:19:01.336Z","per_page":"100"} 
[2026-03-28 16:18:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":5,"unique_order_numbers":7} 
[2026-03-28 16:24:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T04:25:01.174Z","date_to":"2026-03-28T16:25:01.174Z","per_page":"100"} 
[2026-03-28 16:24:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T04:25:01.186Z","date_to":"2026-03-28T16:25:01.186Z","per_page":"100"} 
[2026-03-28 16:24:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":7,"unique_order_numbers":9} 
[2026-03-28 16:24:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":7,"unique_order_numbers":9} 
[2026-03-28 16:24:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T04:25:01.174Z","date_to":"2026-03-28T16:25:01.174Z","per_page":"100"} 
[2026-03-28 16:24:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":7,"unique_order_numbers":9} 
[2026-03-28 16:39:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6483,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":30774},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":30775},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":30776},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":30774,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":30775,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":30776,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-28 16:39:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6483,"items_count":4} 
[2026-03-28 16:39:27] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30774,"menu_item_id":50,"quantity":2},{"id":30775,"menu_item_id":396,"quantity":1},{"id":30776,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-28 16:39:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6483,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["50|2|","396|1|","98|1|"],"new_items_map_keys":["50|2|","396|1|","98|1|","2|2|"]} 
[2026-03-28 16:39:27] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6483,"order_number":"AZS-280326-006"} 
[2026-03-28 16:39:27] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-006","replaced_order_id":6483} 
[2026-03-28 16:39:27] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6489,"items_count":4,"items":[{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-28 16:39:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6489,"item_index":0,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6489}} 
[2026-03-28 16:39:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6489,"item_index":0,"menu_item_id":50} 
[2026-03-28 16:39:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6489,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6489}} 
[2026-03-28 16:39:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6489,"item_index":1,"menu_item_id":396} 
[2026-03-28 16:39:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6489,"item_index":2,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6489}} 
[2026-03-28 16:39:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6489,"item_index":2,"menu_item_id":98} 
[2026-03-28 16:39:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6489,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6489}} 
[2026-03-28 16:39:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6489,"item_index":3,"menu_item_id":2} 
[2026-03-28 16:39:27] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6483,"new_order_id":6489,"order_number":"AZS-280326-006"} 
[2026-03-28 16:39:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6480,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null,"id":30766},{"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null,"id":30767},{"menu_item_id":165,"quantity":1,"discount_percent":0,"notes":null,"id":30768},{"menu_item_id":2,"quantity":4,"discount_percent":0,"notes":null,"id":30769},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30770}],"validated_items":[{"id":30766,"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null},{"id":30767,"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null},{"id":30768,"menu_item_id":165,"quantity":1,"discount_percent":0,"notes":null},{"id":30769,"menu_item_id":2,"quantity":4,"discount_percent":0,"notes":null},{"id":30770,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-28 16:39:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6480,"items_count":5} 
[2026-03-28 16:39:44] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30766,"menu_item_id":163,"quantity":2},{"id":30767,"menu_item_id":13,"quantity":5},{"id":30768,"menu_item_id":165,"quantity":1},{"id":30769,"menu_item_id":2,"quantity":4},{"id":30770,"menu_item_id":5,"quantity":1}]} 
[2026-03-28 16:39:44] local.INFO: PosOrderController::update - Item changes check {"order_id":6480,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["163|2|","13|5|","165|1|","2|3|","5|1|"],"new_items_map_keys":["163|2|","13|5|","165|1|","2|4|","5|1|"]} 
[2026-03-28 16:39:44] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6480,"order_number":"AZS-280326-002"} 
[2026-03-28 16:39:44] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-002","replaced_order_id":6480} 
[2026-03-28 16:39:44] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6490,"items_count":5,"items":[{"menu_item_id":163,"quantity":2,"price":"1050.00"},{"menu_item_id":13,"quantity":5,"price":"249.00"},{"menu_item_id":165,"quantity":1,"price":"999.00"},{"menu_item_id":2,"quantity":4,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-28 16:39:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6490,"item_index":0,"item_data":{"menu_item_id":163,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Azan Special Sandwich","quantity":2,"price":"1050.00","discount_percent":0.0,"discount_amount":0.0,"total":2100.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6490}} 
[2026-03-28 16:39:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6490,"item_index":0,"menu_item_id":163} 
[2026-03-28 16:39:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6490,"item_index":1,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":5,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":1245.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6490}} 
[2026-03-28 16:39:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6490,"item_index":1,"menu_item_id":13} 
[2026-03-28 16:39:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6490,"item_index":2,"item_data":{"menu_item_id":165,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Grilled Chicken Sandwich","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6490}} 
[2026-03-28 16:39:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6490,"item_index":2,"menu_item_id":165} 
[2026-03-28 16:39:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6490,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":4,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":520.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6490}} 
[2026-03-28 16:39:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6490,"item_index":3,"menu_item_id":2} 
[2026-03-28 16:39:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6490,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6490}} 
[2026-03-28 16:39:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6490,"item_index":4,"menu_item_id":5} 
[2026-03-28 16:39:44] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6480,"new_order_id":6490,"order_number":"AZS-280326-002"} 
[2026-03-28 16:42:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6490,"item_index":0,"item_id":30766} 
[2026-03-28 16:42:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6490,"item_index":1,"item_id":30767} 
[2026-03-28 16:42:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6490,"item_index":2,"item_id":30768} 
[2026-03-28 16:42:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6490,"item_index":3,"item_id":30769} 
[2026-03-28 16:42:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6490,"item_index":4,"item_id":30770} 
[2026-03-28 16:42:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6490,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":163,"quantity":2,"price":1050,"discount_percent":0,"notes":null,"id":30766},{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":30767},{"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":30768},{"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null,"id":30769},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30770}],"validated_items":[{"menu_item_id":163,"quantity":2,"price":1050,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-28 16:42:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6490,"items_count":5} 
[2026-03-28 16:42:56] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[30805,30806,30807,30808,30809],"items":[{"id":null,"menu_item_id":163,"quantity":2},{"id":null,"menu_item_id":13,"quantity":5},{"id":null,"menu_item_id":165,"quantity":1},{"id":null,"menu_item_id":2,"quantity":4},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-28 16:42:56] local.INFO: PosOrderController::update - Item changes check {"order_id":6490,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["163|2|","13|5|","165|1|","2|4|","5|1|"],"new_items_map_keys":["163|2|","13|5|","165|1|","2|4|","5|1|"]} 
[2026-03-28 16:42:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6490,"order_number":"AZS-280326-002"} 
[2026-03-28 16:42:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6490,"order_number":"AZS-280326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 16:42:56"} 
[2026-03-28 16:46:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6489,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30801},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":30802},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30803},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30804}],"validated_items":[{"id":30801,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30802,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":30803,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30804,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-28 16:46:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6489,"items_count":4} 
[2026-03-28 16:46:06] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30801,"menu_item_id":50,"quantity":2},{"id":30802,"menu_item_id":396,"quantity":1},{"id":30803,"menu_item_id":98,"quantity":1},{"id":30804,"menu_item_id":2,"quantity":2}]} 
[2026-03-28 16:46:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6489,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["50|2|","396|1|","98|1|","2|2|"],"new_items_map_keys":["50|2|","396|1|","98|1|","2|2|"]} 
[2026-03-28 16:46:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6489,"order_number":"AZS-280326-006"} 
[2026-03-28 16:46:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6489,"order_number":"AZS-280326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 16:46:06"} 
[2026-03-28 16:53:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6484,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null,"id":30777},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":30778},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":30779},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":30780},{"menu_item_id":286,"quantity":6,"discount_percent":0,"notes":null,"id":30781},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30782},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30783},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30777,"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null},{"id":30778,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":30779,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":30780,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":30781,"menu_item_id":286,"quantity":6,"discount_percent":0,"notes":null},{"id":30782,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30783,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-28 16:53:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6484,"items_count":8} 
[2026-03-28 16:53:26] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30777,"menu_item_id":6,"quantity":1},{"id":30778,"menu_item_id":113,"quantity":1},{"id":30779,"menu_item_id":98,"quantity":1},{"id":30780,"menu_item_id":64,"quantity":1},{"id":30781,"menu_item_id":286,"quantity":6},{"id":30782,"menu_item_id":61,"quantity":1},{"id":30783,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-28 16:53:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6484,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["6|1|","113|1|","98|1|","64|1|","286|6|","61|1|","56|1|"],"new_items_map_keys":["6|1|","113|1|","98|1|","64|1|","286|6|","61|1|","56|1|","3|1|"]} 
[2026-03-28 16:53:26] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6484,"order_number":"AZS-280326-005"} 
[2026-03-28 16:53:26] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-005","replaced_order_id":6484} 
[2026-03-28 16:53:26] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6491,"items_count":8,"items":[{"menu_item_id":6,"quantity":1,"price":"199.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":286,"quantity":6,"price":"15.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-28 16:53:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6491,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6491}} 
[2026-03-28 16:53:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6491,"item_index":0,"menu_item_id":6} 
[2026-03-28 16:53:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6491,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6491}} 
[2026-03-28 16:53:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6491,"item_index":1,"menu_item_id":113} 
[2026-03-28 16:53:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6491,"item_index":2,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6491}} 
[2026-03-28 16:53:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6491,"item_index":2,"menu_item_id":98} 
[2026-03-28 16:53:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6491,"item_index":3,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6491}} 
[2026-03-28 16:53:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6491,"item_index":3,"menu_item_id":64} 
[2026-03-28 16:53:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6491,"item_index":4,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":6,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6491}} 
[2026-03-28 16:53:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6491,"item_index":4,"menu_item_id":286} 
[2026-03-28 16:53:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6491,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6491}} 
[2026-03-28 16:53:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6491,"item_index":5,"menu_item_id":61} 
[2026-03-28 16:53:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6491,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6491}} 
[2026-03-28 16:53:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6491,"item_index":6,"menu_item_id":56} 
[2026-03-28 16:53:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6491,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6491}} 
[2026-03-28 16:53:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6491,"item_index":7,"menu_item_id":3} 
[2026-03-28 16:53:26] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6484,"new_order_id":6491,"order_number":"AZS-280326-005"} 
[2026-03-28 16:55:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6490,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":163,"quantity":2,"price":1050,"discount_percent":0,"notes":null,"id":30805},{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":30806},{"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":30807},{"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null,"id":30808},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30809}],"validated_items":[{"id":30805,"menu_item_id":163,"quantity":2,"price":1050,"discount_percent":0,"notes":null},{"id":30806,"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null},{"id":30807,"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":30808,"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null},{"id":30809,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-28 16:55:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6490,"items_count":5} 
[2026-03-28 16:55:01] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30805,"menu_item_id":163,"quantity":2},{"id":30806,"menu_item_id":13,"quantity":5},{"id":30807,"menu_item_id":165,"quantity":1},{"id":30808,"menu_item_id":2,"quantity":4},{"id":30809,"menu_item_id":5,"quantity":1}]} 
[2026-03-28 16:55:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6490,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["163|2|","13|5|","165|1|","2|4|","5|1|"],"new_items_map_keys":["163|2|","13|5|","165|1|","2|4|","5|1|"]} 
[2026-03-28 16:55:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6490,"order_number":"AZS-280326-002"} 
[2026-03-28 16:55:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6490,"order_number":"AZS-280326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 16:55:01"} 
[2026-03-28 16:55:39] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6490,"order_number":"AZS-280326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 16:55:39"} 
[2026-03-28 16:55:39] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6490,"order_number":"AZS-280326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 16:55:39"} 
[2026-03-28 16:55:39] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6490,"order_number":"AZS-280326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 16:55:39"} 
[2026-03-28 16:55:39] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6490,"order_number":"AZS-280326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 16:55:39"} 
[2026-03-28 16:55:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6490,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":163,"quantity":2,"price":1050,"discount_percent":0,"notes":null,"id":30805},{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":30806},{"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":30807},{"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null,"id":30808},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30809}],"validated_items":[{"id":30805,"menu_item_id":163,"quantity":2,"price":1050,"discount_percent":0,"notes":null},{"id":30806,"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null},{"id":30807,"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":30808,"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null},{"id":30809,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-28 16:55:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6490,"items_count":5} 
[2026-03-28 16:55:39] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30805,"menu_item_id":163,"quantity":2},{"id":30806,"menu_item_id":13,"quantity":5},{"id":30807,"menu_item_id":165,"quantity":1},{"id":30808,"menu_item_id":2,"quantity":4},{"id":30809,"menu_item_id":5,"quantity":1}]} 
[2026-03-28 16:55:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6490,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["163|2|","13|5|","165|1|","2|4|","5|1|"],"new_items_map_keys":["163|2|","13|5|","165|1|","2|4|","5|1|"]} 
[2026-03-28 16:55:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6490,"order_number":"AZS-280326-002"} 
[2026-03-28 16:55:39] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6490,"order_number":"AZS-280326-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-28 16:55:39","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-28 16:55:39"} 
[2026-03-28 16:55:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6490,"order_number":"AZS-280326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-28 16:55:39"} 
[2026-03-28 16:55:39] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6490,"order_number":"AZS-280326-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-28 16:55:39","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5500.00","database_verification_match":true,"timestamp":"2026-03-28 16:55:39"} 
[2026-03-28 16:56:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6489,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30801},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":30802},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30803},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30804}],"validated_items":[{"id":30801,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30802,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":30803,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30804,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-28 16:56:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6489,"items_count":4} 
[2026-03-28 16:56:03] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30801,"menu_item_id":50,"quantity":2},{"id":30802,"menu_item_id":396,"quantity":1},{"id":30803,"menu_item_id":98,"quantity":1},{"id":30804,"menu_item_id":2,"quantity":2}]} 
[2026-03-28 16:56:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6489,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["50|2|","396|1|","98|1|","2|2|"],"new_items_map_keys":["50|2|","396|1|","98|1|","2|2|"]} 
[2026-03-28 16:56:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6489,"order_number":"AZS-280326-006"} 
[2026-03-28 16:56:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6489,"order_number":"AZS-280326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 16:56:03"} 
[2026-03-28 16:56:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6489,"order_number":"AZS-280326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 16:56:27"} 
[2026-03-28 16:56:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6489,"order_number":"AZS-280326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 16:56:27"} 
[2026-03-28 16:56:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6489,"order_number":"AZS-280326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 16:56:27"} 
[2026-03-28 16:56:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6489,"order_number":"AZS-280326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 16:56:27"} 
[2026-03-28 16:56:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6489,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30801},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":30802},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30803},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30804}],"validated_items":[{"id":30801,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30802,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":30803,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30804,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-28 16:56:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6489,"items_count":4} 
[2026-03-28 16:56:27] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30801,"menu_item_id":50,"quantity":2},{"id":30802,"menu_item_id":396,"quantity":1},{"id":30803,"menu_item_id":98,"quantity":1},{"id":30804,"menu_item_id":2,"quantity":2}]} 
[2026-03-28 16:56:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6489,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["50|2|","396|1|","98|1|","2|2|"],"new_items_map_keys":["50|2|","396|1|","98|1|","2|2|"]} 
[2026-03-28 16:56:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6489,"order_number":"AZS-280326-006"} 
[2026-03-28 16:56:27] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6489,"order_number":"AZS-280326-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-28 16:56:27","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-28 16:56:27"} 
[2026-03-28 16:56:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6489,"order_number":"AZS-280326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-28 16:56:27"} 
[2026-03-28 16:56:27] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6489,"order_number":"AZS-280326-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-28 16:56:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-28 16:56:27"} 
[2026-03-28 17:05:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6487,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":30794},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30795},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30796},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30797},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30794,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":30795,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":30796,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30797,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:05:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6487,"items_count":5} 
[2026-03-28 17:05:54] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30794,"menu_item_id":102,"quantity":1},{"id":30795,"menu_item_id":396,"quantity":2},{"id":30796,"menu_item_id":61,"quantity":1},{"id":30797,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-28 17:05:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6487,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["102|1|","396|2|","61|1|","5|1|"],"new_items_map_keys":["102|1|","396|2|","61|1|","5|1|","2|1|"]} 
[2026-03-28 17:05:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6487,"order_number":"AZS-280326-009"} 
[2026-03-28 17:05:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-009","replaced_order_id":6487} 
[2026-03-28 17:05:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6492,"items_count":5,"items":[{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-28 17:05:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6492,"item_index":0,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6492}} 
[2026-03-28 17:05:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6492,"item_index":0,"menu_item_id":102} 
[2026-03-28 17:05:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6492,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6492}} 
[2026-03-28 17:05:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6492,"item_index":1,"menu_item_id":396} 
[2026-03-28 17:05:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6492,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6492}} 
[2026-03-28 17:05:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6492,"item_index":2,"menu_item_id":61} 
[2026-03-28 17:05:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6492,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6492}} 
[2026-03-28 17:05:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6492,"item_index":3,"menu_item_id":5} 
[2026-03-28 17:05:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6492,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6492}} 
[2026-03-28 17:05:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6492,"item_index":4,"menu_item_id":2} 
[2026-03-28 17:05:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6487,"new_order_id":6492,"order_number":"AZS-280326-009"} 
[2026-03-28 17:06:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6485,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":30784},{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":30785},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":30786},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30787},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30788},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30789},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30784,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":30785,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":30786,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":30787,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30788,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30789,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:06:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6485,"items_count":7} 
[2026-03-28 17:06:09] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30784,"menu_item_id":98,"quantity":1},{"id":30785,"menu_item_id":102,"quantity":1},{"id":30786,"menu_item_id":396,"quantity":4},{"id":30787,"menu_item_id":61,"quantity":1},{"id":30788,"menu_item_id":56,"quantity":1},{"id":30789,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-28 17:06:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6485,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["98|1|","102|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["98|1|","102|1|","396|4|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-03-28 17:06:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6485,"order_number":"AZS-280326-007"} 
[2026-03-28 17:06:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-007","replaced_order_id":6485} 
[2026-03-28 17:06:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6493,"items_count":7,"items":[{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-28 17:06:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6493,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6493}} 
[2026-03-28 17:06:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6493,"item_index":0,"menu_item_id":98} 
[2026-03-28 17:06:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6493,"item_index":1,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6493}} 
[2026-03-28 17:06:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6493,"item_index":1,"menu_item_id":102} 
[2026-03-28 17:06:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6493,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6493}} 
[2026-03-28 17:06:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6493,"item_index":2,"menu_item_id":396} 
[2026-03-28 17:06:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6493,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6493}} 
[2026-03-28 17:06:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6493,"item_index":3,"menu_item_id":61} 
[2026-03-28 17:06:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6493,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6493}} 
[2026-03-28 17:06:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6493,"item_index":4,"menu_item_id":56} 
[2026-03-28 17:06:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6493,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6493}} 
[2026-03-28 17:06:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6493,"item_index":5,"menu_item_id":5} 
[2026-03-28 17:06:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6493,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6493}} 
[2026-03-28 17:06:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6493,"item_index":6,"menu_item_id":3} 
[2026-03-28 17:06:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6485,"new_order_id":6493,"order_number":"AZS-280326-007"} 
[2026-03-28 17:06:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6486,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"discount_percent":0,"notes":null,"id":30790},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30791},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":30792},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30793},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30790,"menu_item_id":101,"quantity":1,"discount_percent":0,"notes":null},{"id":30791,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":30792,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":30793,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:06:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6486,"items_count":5} 
[2026-03-28 17:06:18] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30790,"menu_item_id":101,"quantity":1},{"id":30791,"menu_item_id":396,"quantity":2},{"id":30792,"menu_item_id":61,"quantity":2},{"id":30793,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-28 17:06:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6486,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["101|1|","396|2|","61|2|","5|1|"],"new_items_map_keys":["101|1|","396|2|","61|2|","5|1|","3|1|"]} 
[2026-03-28 17:06:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6486,"order_number":"AZS-280326-008"} 
[2026-03-28 17:06:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-008","replaced_order_id":6486} 
[2026-03-28 17:06:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6494,"items_count":5,"items":[{"menu_item_id":101,"quantity":1,"price":"2399.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-28 17:06:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6494,"item_index":0,"item_data":{"menu_item_id":101,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Full","quantity":1,"price":"2399.00","discount_percent":0.0,"discount_amount":0.0,"total":2399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6494}} 
[2026-03-28 17:06:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6494,"item_index":0,"menu_item_id":101} 
[2026-03-28 17:06:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6494,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6494}} 
[2026-03-28 17:06:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6494,"item_index":1,"menu_item_id":396} 
[2026-03-28 17:06:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6494,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6494}} 
[2026-03-28 17:06:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6494,"item_index":2,"menu_item_id":61} 
[2026-03-28 17:06:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6494,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6494}} 
[2026-03-28 17:06:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6494,"item_index":3,"menu_item_id":5} 
[2026-03-28 17:06:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6494,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6494}} 
[2026-03-28 17:06:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6494,"item_index":4,"menu_item_id":3} 
[2026-03-28 17:06:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6486,"new_order_id":6494,"order_number":"AZS-280326-008"} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6491,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null,"id":30810},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":30811},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":30812},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":30813},{"menu_item_id":286,"quantity":6,"discount_percent":0,"notes":null,"id":30814},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30815},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30816},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":30817},{"menu_item_id":136,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30810,"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null},{"id":30811,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":30812,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":30813,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":30814,"menu_item_id":286,"quantity":6,"discount_percent":0,"notes":null},{"id":30815,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30816,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30817,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":136,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6491,"items_count":9} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30810,"menu_item_id":6,"quantity":1},{"id":30811,"menu_item_id":113,"quantity":1},{"id":30812,"menu_item_id":98,"quantity":1},{"id":30813,"menu_item_id":64,"quantity":1},{"id":30814,"menu_item_id":286,"quantity":6},{"id":30815,"menu_item_id":61,"quantity":1},{"id":30816,"menu_item_id":56,"quantity":1},{"id":30817,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":136,"quantity":1}]} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6491,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["6|1|","113|1|","98|1|","64|1|","286|6|","61|1|","56|1|","3|1|"],"new_items_map_keys":["6|1|","113|1|","98|1|","64|1|","286|6|","61|1|","56|1|","3|1|","136|1|"]} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6491,"order_number":"AZS-280326-005"} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-005","replaced_order_id":6491} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6497,"items_count":9,"items":[{"menu_item_id":6,"quantity":1,"price":"199.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":286,"quantity":6,"price":"15.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":136,"quantity":1,"price":"899.00"}]} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6497,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6497}} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6497,"item_index":0,"menu_item_id":6} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6497,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6497}} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6497,"item_index":1,"menu_item_id":113} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6497,"item_index":2,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6497}} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6497,"item_index":2,"menu_item_id":98} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6497,"item_index":3,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6497}} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6497,"item_index":3,"menu_item_id":64} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6497,"item_index":4,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":6,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6497}} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6497,"item_index":4,"menu_item_id":286} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6497,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6497}} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6497,"item_index":5,"menu_item_id":61} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6497,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6497}} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6497,"item_index":6,"menu_item_id":56} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6497,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6497}} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6497,"item_index":7,"menu_item_id":3} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6497,"item_index":8,"item_data":{"menu_item_id":136,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Small","quantity":1,"price":"899.00","discount_percent":0.0,"discount_amount":0.0,"total":899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6497}} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6497,"item_index":8,"menu_item_id":136} 
[2026-03-28 17:07:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6491,"new_order_id":6497,"order_number":"AZS-280326-005"} 
[2026-03-28 17:08:43] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6481,"order_number":"AZS-280326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 17:08:43"} 
[2026-03-28 17:08:43] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6481,"order_number":"AZS-280326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 17:08:43"} 
[2026-03-28 17:08:43] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6481,"order_number":"AZS-280326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 17:08:43"} 
[2026-03-28 17:08:43] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6481,"order_number":"AZS-280326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 17:08:43"} 
[2026-03-28 17:08:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6481,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":30771},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30772}],"validated_items":[{"id":30771,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":30772,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:08:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6481,"items_count":2} 
[2026-03-28 17:08:43] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30771,"menu_item_id":396,"quantity":1},{"id":30772,"menu_item_id":113,"quantity":1}]} 
[2026-03-28 17:08:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6481,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["396|1|","113|1|"],"new_items_map_keys":["396|1|","113|1|"]} 
[2026-03-28 17:08:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6481,"order_number":"AZS-280326-004"} 
[2026-03-28 17:08:43] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6481,"order_number":"AZS-280326-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-28 17:08:43","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-28 17:08:43"} 
[2026-03-28 17:08:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6481,"order_number":"AZS-280326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-28 17:08:43"} 
[2026-03-28 17:08:43] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6481,"order_number":"AZS-280326-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-28 17:08:43","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-03-28 17:08:43"} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6497,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null,"id":30847},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":30848},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":30849},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":30850},{"menu_item_id":286,"quantity":6,"discount_percent":0,"notes":null,"id":30851},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30852},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30853},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":30854},{"menu_item_id":136,"quantity":1,"discount_percent":0,"notes":null,"id":30855},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30847,"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null},{"id":30848,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":30849,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":30850,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":30851,"menu_item_id":286,"quantity":6,"discount_percent":0,"notes":null},{"id":30852,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30853,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30854,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"id":30855,"menu_item_id":136,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6497,"items_count":10} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30847,"menu_item_id":6,"quantity":1},{"id":30848,"menu_item_id":113,"quantity":1},{"id":30849,"menu_item_id":98,"quantity":1},{"id":30850,"menu_item_id":64,"quantity":1},{"id":30851,"menu_item_id":286,"quantity":6},{"id":30852,"menu_item_id":61,"quantity":1},{"id":30853,"menu_item_id":56,"quantity":1},{"id":30854,"menu_item_id":3,"quantity":1},{"id":30855,"menu_item_id":136,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6497,"has_item_changes":true,"old_items_count":9,"new_items_count":10,"old_items_map_keys":["6|1|","113|1|","98|1|","64|1|","286|6|","61|1|","56|1|","3|1|","136|1|"],"new_items_map_keys":["6|1|","113|1|","98|1|","64|1|","286|6|","61|1|","56|1|","3|1|","136|1|","2|1|"]} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6497,"order_number":"AZS-280326-005"} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-005","replaced_order_id":6497} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6498,"items_count":10,"items":[{"menu_item_id":6,"quantity":1,"price":"199.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":286,"quantity":6,"price":"15.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":136,"quantity":1,"price":"899.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6498,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6498}} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6498,"item_index":0,"menu_item_id":6} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6498,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6498}} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6498,"item_index":1,"menu_item_id":113} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6498,"item_index":2,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6498}} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6498,"item_index":2,"menu_item_id":98} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6498,"item_index":3,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6498}} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6498,"item_index":3,"menu_item_id":64} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6498,"item_index":4,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":6,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6498}} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6498,"item_index":4,"menu_item_id":286} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6498,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6498}} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6498,"item_index":5,"menu_item_id":61} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6498,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6498}} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6498,"item_index":6,"menu_item_id":56} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6498,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6498}} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6498,"item_index":7,"menu_item_id":3} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6498,"item_index":8,"item_data":{"menu_item_id":136,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Small","quantity":1,"price":"899.00","discount_percent":0.0,"discount_amount":0.0,"total":899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6498}} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6498,"item_index":8,"menu_item_id":136} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6498,"item_index":9,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6498}} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6498,"item_index":9,"menu_item_id":2} 
[2026-03-28 17:11:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6497,"new_order_id":6498,"order_number":"AZS-280326-005"} 
[2026-03-28 17:15:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6492,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30818},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30819},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30820},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30821},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30822}],"validated_items":[{"id":30818,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30819,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30820,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30821,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30822,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:15:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6492,"items_count":5} 
[2026-03-28 17:15:04] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30818,"menu_item_id":102,"quantity":1},{"id":30819,"menu_item_id":396,"quantity":2},{"id":30820,"menu_item_id":61,"quantity":1},{"id":30821,"menu_item_id":5,"quantity":1},{"id":30822,"menu_item_id":2,"quantity":1}]} 
[2026-03-28 17:15:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6492,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["102|1|","396|2|","61|1|","5|1|","2|1|"],"new_items_map_keys":["102|1|","396|2|","61|1|","5|1|","2|1|"]} 
[2026-03-28 17:15:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6492,"order_number":"AZS-280326-009"} 
[2026-03-28 17:15:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6492,"order_number":"AZS-280326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 17:15:04"} 
[2026-03-28 17:17:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6493,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30823},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30824},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":30825},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30826},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30827},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30828},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30829}],"validated_items":[{"id":30823,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30824,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30825,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":30826,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30827,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30828,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30829,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:17:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6493,"items_count":7} 
[2026-03-28 17:17:04] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30823,"menu_item_id":98,"quantity":1},{"id":30824,"menu_item_id":102,"quantity":1},{"id":30825,"menu_item_id":396,"quantity":4},{"id":30826,"menu_item_id":61,"quantity":1},{"id":30827,"menu_item_id":56,"quantity":1},{"id":30828,"menu_item_id":5,"quantity":1},{"id":30829,"menu_item_id":3,"quantity":1}]} 
[2026-03-28 17:17:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6493,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["98|1|","102|1|","396|4|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["98|1|","102|1|","396|4|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-03-28 17:17:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6493,"order_number":"AZS-280326-007"} 
[2026-03-28 17:17:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6493,"order_number":"AZS-280326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 17:17:04"} 
[2026-03-28 17:17:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T05:17:20.351Z","date_to":"2026-03-28T17:17:20.351Z","per_page":"100"} 
[2026-03-28 17:17:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T05:17:20.369Z","date_to":"2026-03-28T17:17:20.369Z","per_page":"100"} 
[2026-03-28 17:17:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":7,"unique_order_numbers":12} 
[2026-03-28 17:17:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":7,"unique_order_numbers":12} 
[2026-03-28 17:17:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T05:17:20.351Z","date_to":"2026-03-28T17:17:20.351Z","per_page":"100"} 
[2026-03-28 17:17:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":7,"unique_order_numbers":12} 
[2026-03-28 17:18:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6492,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30818},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30819},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30820},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30821},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30822}],"validated_items":[{"id":30818,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30819,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30820,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30821,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30822,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:18:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6492,"items_count":5} 
[2026-03-28 17:18:21] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30818,"menu_item_id":102,"quantity":1},{"id":30819,"menu_item_id":396,"quantity":2},{"id":30820,"menu_item_id":61,"quantity":1},{"id":30821,"menu_item_id":5,"quantity":1},{"id":30822,"menu_item_id":2,"quantity":1}]} 
[2026-03-28 17:18:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6492,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["102|1|","396|2|","61|1|","5|1|","2|1|"],"new_items_map_keys":["102|1|","396|2|","61|1|","5|1|","2|1|"]} 
[2026-03-28 17:18:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6492,"order_number":"AZS-280326-009"} 
[2026-03-28 17:18:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6492,"order_number":"AZS-280326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 17:18:21"} 
[2026-03-28 17:21:08] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6492,"order_number":"AZS-280326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 17:21:08"} 
[2026-03-28 17:21:08] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6492,"order_number":"AZS-280326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 17:21:08"} 
[2026-03-28 17:21:08] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6492,"order_number":"AZS-280326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 17:21:08"} 
[2026-03-28 17:21:08] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6492,"order_number":"AZS-280326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 17:21:08"} 
[2026-03-28 17:21:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":6492,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30818},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30819},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30821},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30822}],"validated_items":[{"id":30818,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30819,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30821,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30822,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:21:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6492,"items_count":4} 
[2026-03-28 17:21:08] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[30820],"items":[{"id":30818,"menu_item_id":102,"quantity":1},{"id":30819,"menu_item_id":396,"quantity":2},{"id":30821,"menu_item_id":5,"quantity":1},{"id":30822,"menu_item_id":2,"quantity":1}]} 
[2026-03-28 17:21:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6492,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["102|1|","396|2|","61|1|","5|1|","2|1|"],"new_items_map_keys":["102|1|","396|2|","5|1|","2|1|"]} 
[2026-03-28 17:21:08] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6492,"order_number":"AZS-280326-009","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":2000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-28 17:21:08","original_payment_amount":"0.00","grand_total":1897.0,"timestamp":"2026-03-28 17:21:08"} 
[2026-03-28 17:21:08] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6492,"order_number":"AZS-280326-009"} 
[2026-03-28 17:21:08] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-009","replaced_order_id":6492} 
[2026-03-28 17:21:08] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6492,"new_order_id":6499,"order_number":"AZS-280326-009","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"2000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-28 17:21:08","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-28 17:21:08"} 
[2026-03-28 17:21:08] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6499,"items_count":4,"items":[{"menu_item_id":102,"quantity":1,"price":1399.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":2,"quantity":1,"price":130.0}]} 
[2026-03-28 17:21:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6499,"item_index":0,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":1399.0,"discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6499}} 
[2026-03-28 17:21:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6499,"item_index":0,"menu_item_id":102} 
[2026-03-28 17:21:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6499,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6499}} 
[2026-03-28 17:21:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6499,"item_index":1,"menu_item_id":396} 
[2026-03-28 17:21:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6499,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6499}} 
[2026-03-28 17:21:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6499,"item_index":2,"menu_item_id":5} 
[2026-03-28 17:21:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6499,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6499}} 
[2026-03-28 17:21:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6499,"item_index":3,"menu_item_id":2} 
[2026-03-28 17:21:08] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6492,"new_order_id":6499,"order_number":"AZS-280326-009"} 
[2026-03-28 17:21:08] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6492,"new_order_id":6499,"order_number":"AZS-280326-009","route":"api/orders/6492"} 
[2026-03-28 17:21:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6488,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":30798},{"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null,"id":30799},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30800},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":30798,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":30799,"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null},{"id":30800,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:21:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6488,"items_count":4} 
[2026-03-28 17:21:49] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30798,"menu_item_id":105,"quantity":1},{"id":30799,"menu_item_id":48,"quantity":2},{"id":30800,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-28 17:21:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6488,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["105|1|","48|2|","5|1|"],"new_items_map_keys":["105|1|","48|2|","5|1|","2|2|"]} 
[2026-03-28 17:21:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6488,"order_number":"AZS-280326-010"} 
[2026-03-28 17:21:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-010","replaced_order_id":6488} 
[2026-03-28 17:21:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6500,"items_count":4,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":48,"quantity":2,"price":"250.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-28 17:21:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6500,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6500}} 
[2026-03-28 17:21:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6500,"item_index":0,"menu_item_id":105} 
[2026-03-28 17:21:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6500,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6500}} 
[2026-03-28 17:21:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6500,"item_index":1,"menu_item_id":48} 
[2026-03-28 17:21:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6500,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6500}} 
[2026-03-28 17:21:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6500,"item_index":2,"menu_item_id":5} 
[2026-03-28 17:21:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6500,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6500}} 
[2026-03-28 17:21:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6500,"item_index":3,"menu_item_id":2} 
[2026-03-28 17:21:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6488,"new_order_id":6500,"order_number":"AZS-280326-010"} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6498,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":5,"discount_percent":0,"notes":null,"id":30856},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":30857},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":30858},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":30859},{"menu_item_id":286,"quantity":6,"discount_percent":0,"notes":null,"id":30860},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30861},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30862},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":30863},{"menu_item_id":136,"quantity":1,"discount_percent":0,"notes":null,"id":30864},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":30865}],"validated_items":[{"id":30856,"menu_item_id":6,"quantity":5,"discount_percent":0,"notes":null},{"id":30857,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":30858,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":30859,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":30860,"menu_item_id":286,"quantity":6,"discount_percent":0,"notes":null},{"id":30861,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30862,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30863,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"id":30864,"menu_item_id":136,"quantity":1,"discount_percent":0,"notes":null},{"id":30865,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6498,"items_count":10} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30856,"menu_item_id":6,"quantity":5},{"id":30857,"menu_item_id":113,"quantity":1},{"id":30858,"menu_item_id":98,"quantity":1},{"id":30859,"menu_item_id":64,"quantity":1},{"id":30860,"menu_item_id":286,"quantity":6},{"id":30861,"menu_item_id":61,"quantity":1},{"id":30862,"menu_item_id":56,"quantity":1},{"id":30863,"menu_item_id":3,"quantity":1},{"id":30864,"menu_item_id":136,"quantity":1},{"id":30865,"menu_item_id":2,"quantity":1}]} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Item changes check {"order_id":6498,"has_item_changes":true,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["6|1|","113|1|","98|1|","64|1|","286|6|","61|1|","56|1|","3|1|","136|1|","2|1|"],"new_items_map_keys":["6|5|","113|1|","98|1|","64|1|","286|6|","61|1|","56|1|","3|1|","136|1|","2|1|"]} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6498,"order_number":"AZS-280326-005"} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-005","replaced_order_id":6498} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6501,"items_count":10,"items":[{"menu_item_id":6,"quantity":5,"price":"199.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":286,"quantity":6,"price":"15.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":136,"quantity":1,"price":"899.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6501,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":5,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":995.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6501}} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6501,"item_index":0,"menu_item_id":6} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6501,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6501}} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6501,"item_index":1,"menu_item_id":113} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6501,"item_index":2,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6501}} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6501,"item_index":2,"menu_item_id":98} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6501,"item_index":3,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6501}} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6501,"item_index":3,"menu_item_id":64} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6501,"item_index":4,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":6,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6501}} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6501,"item_index":4,"menu_item_id":286} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6501,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6501}} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6501,"item_index":5,"menu_item_id":61} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6501,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6501}} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6501,"item_index":6,"menu_item_id":56} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6501,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6501}} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6501,"item_index":7,"menu_item_id":3} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6501,"item_index":8,"item_data":{"menu_item_id":136,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Small","quantity":1,"price":"899.00","discount_percent":0.0,"discount_amount":0.0,"total":899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6501}} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6501,"item_index":8,"menu_item_id":136} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6501,"item_index":9,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6501}} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6501,"item_index":9,"menu_item_id":2} 
[2026-03-28 17:22:13] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6498,"new_order_id":6501,"order_number":"AZS-280326-005"} 
[2026-03-28 17:23:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6494,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null,"id":30830},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30831},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30832},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30833},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30834}],"validated_items":[{"id":30830,"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null},{"id":30831,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30832,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30833,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30834,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:23:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6494,"items_count":5} 
[2026-03-28 17:23:04] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30830,"menu_item_id":101,"quantity":1},{"id":30831,"menu_item_id":396,"quantity":2},{"id":30832,"menu_item_id":61,"quantity":2},{"id":30833,"menu_item_id":5,"quantity":1},{"id":30834,"menu_item_id":3,"quantity":1}]} 
[2026-03-28 17:23:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6494,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["101|1|","396|2|","61|2|","5|1|","3|1|"],"new_items_map_keys":["101|1|","396|2|","61|2|","5|1|","3|1|"]} 
[2026-03-28 17:23:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6494,"order_number":"AZS-280326-008"} 
[2026-03-28 17:23:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6494,"order_number":"AZS-280326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 17:23:04"} 
[2026-03-28 17:25:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":6495,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30835},{"menu_item_id":397,"quantity":400,"price":4,"discount_percent":0,"notes":null,"id":30836},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30837},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30838},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30839},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30840}],"validated_items":[{"id":30835,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":30836,"menu_item_id":397,"quantity":400,"price":4,"discount_percent":0,"notes":null},{"id":30837,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30838,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30839,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30840,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:25:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6495,"items_count":6} 
[2026-03-28 17:25:13] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[30841],"items":[{"id":30835,"menu_item_id":106,"quantity":1},{"id":30836,"menu_item_id":397,"quantity":400},{"id":30837,"menu_item_id":396,"quantity":2},{"id":30838,"menu_item_id":50,"quantity":2},{"id":30839,"menu_item_id":61,"quantity":1},{"id":30840,"menu_item_id":56,"quantity":1}]} 
[2026-03-28 17:25:13] local.INFO: PosOrderController::update - Item changes check {"order_id":6495,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["106|1|","397|400|","396|2|","50|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["106|1|","397|400|","396|2|","50|2|","61|1|","56|1|"]} 
[2026-03-28 17:25:13] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6495,"order_number":"AZS-280326-011"} 
[2026-03-28 17:25:13] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-011","replaced_order_id":6495} 
[2026-03-28 17:25:13] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6502,"items_count":6,"items":[{"menu_item_id":106,"quantity":1,"price":4199.0},{"menu_item_id":397,"quantity":400,"price":4.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":50,"quantity":2,"price":129.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0}]} 
[2026-03-28 17:25:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6502,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":4199.0,"discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6502}} 
[2026-03-28 17:25:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6502,"item_index":0,"menu_item_id":106} 
[2026-03-28 17:25:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6502,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":400,"price":4.0,"discount_percent":0.0,"discount_amount":0.0,"total":1600.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6502}} 
[2026-03-28 17:25:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6502,"item_index":1,"menu_item_id":397} 
[2026-03-28 17:25:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6502,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6502}} 
[2026-03-28 17:25:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6502,"item_index":2,"menu_item_id":396} 
[2026-03-28 17:25:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6502,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6502}} 
[2026-03-28 17:25:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6502,"item_index":3,"menu_item_id":50} 
[2026-03-28 17:25:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6502,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6502}} 
[2026-03-28 17:25:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6502,"item_index":4,"menu_item_id":61} 
[2026-03-28 17:25:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6502,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6502}} 
[2026-03-28 17:25:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6502,"item_index":5,"menu_item_id":56} 
[2026-03-28 17:25:13] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6495,"new_order_id":6502,"order_number":"AZS-280326-011"} 
[2026-03-28 17:25:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6502,"item_index":0,"item_id":30835} 
[2026-03-28 17:25:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6502,"item_index":1,"item_id":30836} 
[2026-03-28 17:25:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6502,"item_index":2,"item_id":30837} 
[2026-03-28 17:25:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6502,"item_index":3,"item_id":30838} 
[2026-03-28 17:25:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6502,"item_index":4,"item_id":30839} 
[2026-03-28 17:25:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6502,"item_index":5,"item_id":30840} 
[2026-03-28 17:25:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6502,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30835},{"menu_item_id":397,"quantity":400,"price":4,"discount_percent":0,"notes":null,"id":30836},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30837},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30838},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30839},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30840}],"validated_items":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":397,"quantity":400,"price":4,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:25:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6502,"items_count":6} 
[2026-03-28 17:25:21] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[30884,30885,30886,30887,30888,30889],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":397,"quantity":400},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-03-28 17:25:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6502,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["106|1|","397|400|","396|2|","50|2|","61|1|","56|1|"],"new_items_map_keys":["106|1|","397|400|","396|2|","50|2|","61|1|","56|1|"]} 
[2026-03-28 17:25:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6502,"order_number":"AZS-280326-011"} 
[2026-03-28 17:25:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6502,"order_number":"AZS-280326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 17:25:21"} 
[2026-03-28 17:25:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":6494,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null,"id":30830},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30831},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30832},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30834}],"validated_items":[{"id":30830,"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null},{"id":30831,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30832,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30834,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:25:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6494,"items_count":4} 
[2026-03-28 17:25:42] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[30833],"items":[{"id":30830,"menu_item_id":101,"quantity":1},{"id":30831,"menu_item_id":396,"quantity":2},{"id":30832,"menu_item_id":61,"quantity":2},{"id":30834,"menu_item_id":3,"quantity":1}]} 
[2026-03-28 17:25:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6494,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["101|1|","396|2|","61|2|","5|1|","3|1|"],"new_items_map_keys":["101|1|","396|2|","61|2|","3|1|"]} 
[2026-03-28 17:25:42] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6494,"order_number":"AZS-280326-008"} 
[2026-03-28 17:25:42] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-008","replaced_order_id":6494} 
[2026-03-28 17:25:42] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6503,"items_count":4,"items":[{"menu_item_id":101,"quantity":1,"price":2399.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":61,"quantity":2,"price":199.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-28 17:25:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6503,"item_index":0,"item_data":{"menu_item_id":101,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Full","quantity":1,"price":2399.0,"discount_percent":0.0,"discount_amount":0.0,"total":2399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6503}} 
[2026-03-28 17:25:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6503,"item_index":0,"menu_item_id":101} 
[2026-03-28 17:25:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6503,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6503}} 
[2026-03-28 17:25:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6503,"item_index":1,"menu_item_id":396} 
[2026-03-28 17:25:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6503,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6503}} 
[2026-03-28 17:25:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6503,"item_index":2,"menu_item_id":61} 
[2026-03-28 17:25:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6503,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6503}} 
[2026-03-28 17:25:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6503,"item_index":3,"menu_item_id":3} 
[2026-03-28 17:25:42] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6494,"new_order_id":6503,"order_number":"AZS-280326-008"} 
[2026-03-28 17:25:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6503,"item_index":0,"item_id":30830} 
[2026-03-28 17:25:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6503,"item_index":1,"item_id":30831} 
[2026-03-28 17:25:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6503,"item_index":2,"item_id":30832} 
[2026-03-28 17:25:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6503,"item_index":3,"item_id":30834} 
[2026-03-28 17:25:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6503,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null,"id":30830},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30831},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30832},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30834}],"validated_items":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:25:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6503,"items_count":4} 
[2026-03-28 17:25:46] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[30890,30891,30892,30893],"items":[{"id":null,"menu_item_id":101,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-28 17:25:46] local.INFO: PosOrderController::update - Item changes check {"order_id":6503,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["101|1|","396|2|","61|2|","3|1|"],"new_items_map_keys":["101|1|","396|2|","61|2|","3|1|"]} 
[2026-03-28 17:25:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6503,"order_number":"AZS-280326-008"} 
[2026-03-28 17:25:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6503,"order_number":"AZS-280326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 17:25:46"} 
[2026-03-28 17:26:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6502,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":30884},{"menu_item_id":397,"quantity":400,"discount_percent":0,"notes":null,"id":30885},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30886},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":30887},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30888},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30889},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30884,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":30885,"menu_item_id":397,"quantity":400,"discount_percent":0,"notes":null},{"id":30886,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":30887,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":30888,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30889,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:26:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6502,"items_count":7} 
[2026-03-28 17:26:10] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30884,"menu_item_id":106,"quantity":1},{"id":30885,"menu_item_id":397,"quantity":400},{"id":30886,"menu_item_id":396,"quantity":2},{"id":30887,"menu_item_id":50,"quantity":2},{"id":30888,"menu_item_id":61,"quantity":1},{"id":30889,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-28 17:26:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6502,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["106|1|","397|400|","396|2|","50|2|","61|1|","56|1|"],"new_items_map_keys":["106|1|","397|400|","396|2|","50|2|","61|1|","56|1|","5|1|"]} 
[2026-03-28 17:26:10] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6502,"order_number":"AZS-280326-011"} 
[2026-03-28 17:26:10] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-011","replaced_order_id":6502} 
[2026-03-28 17:26:10] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6504,"items_count":7,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":397,"quantity":400,"price":"4.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-28 17:26:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6504,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6504}} 
[2026-03-28 17:26:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6504,"item_index":0,"menu_item_id":106} 
[2026-03-28 17:26:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6504,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":400,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":1600.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6504}} 
[2026-03-28 17:26:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6504,"item_index":1,"menu_item_id":397} 
[2026-03-28 17:26:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6504,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6504}} 
[2026-03-28 17:26:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6504,"item_index":2,"menu_item_id":396} 
[2026-03-28 17:26:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6504,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6504}} 
[2026-03-28 17:26:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6504,"item_index":3,"menu_item_id":50} 
[2026-03-28 17:26:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6504,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6504}} 
[2026-03-28 17:26:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6504,"item_index":4,"menu_item_id":61} 
[2026-03-28 17:26:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6504,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6504}} 
[2026-03-28 17:26:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6504,"item_index":5,"menu_item_id":56} 
[2026-03-28 17:26:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6504,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6504}} 
[2026-03-28 17:26:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6504,"item_index":6,"menu_item_id":5} 
[2026-03-28 17:26:10] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6502,"new_order_id":6504,"order_number":"AZS-280326-011"} 
[2026-03-28 17:32:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6500,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30870},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":30871},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30872},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30873}],"validated_items":[{"id":30870,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":30871,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":30872,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30873,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:32:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6500,"items_count":4} 
[2026-03-28 17:32:56] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30870,"menu_item_id":105,"quantity":1},{"id":30871,"menu_item_id":48,"quantity":2},{"id":30872,"menu_item_id":5,"quantity":1},{"id":30873,"menu_item_id":2,"quantity":2}]} 
[2026-03-28 17:32:56] local.INFO: PosOrderController::update - Item changes check {"order_id":6500,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["105|1|","48|2|","5|1|","2|2|"],"new_items_map_keys":["105|1|","48|2|","5|1|","2|2|"]} 
[2026-03-28 17:32:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6500,"order_number":"AZS-280326-010"} 
[2026-03-28 17:32:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6500,"order_number":"AZS-280326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 17:32:56"} 
[2026-03-28 17:33:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":1,"order_id":6500,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30870},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":30871},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30873}],"validated_items":[{"id":30870,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":30871,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":30873,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:33:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6500,"items_count":3} 
[2026-03-28 17:33:20] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":1,"items_to_remove":[30872],"items":[{"id":30870,"menu_item_id":105,"quantity":1},{"id":30871,"menu_item_id":48,"quantity":2},{"id":30873,"menu_item_id":2,"quantity":2}]} 
[2026-03-28 17:33:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6500,"has_item_changes":true,"old_items_count":4,"new_items_count":3,"old_items_map_keys":["105|1|","48|2|","5|1|","2|2|"],"new_items_map_keys":["105|1|","48|2|","2|2|"]} 
[2026-03-28 17:33:20] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6500,"order_number":"AZS-280326-010"} 
[2026-03-28 17:33:20] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-010","replaced_order_id":6500} 
[2026-03-28 17:33:20] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6505,"items_count":3,"items":[{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":48,"quantity":2,"price":250.0},{"menu_item_id":2,"quantity":2,"price":130.0}]} 
[2026-03-28 17:33:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6505,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6505}} 
[2026-03-28 17:33:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6505,"item_index":0,"menu_item_id":105} 
[2026-03-28 17:33:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6505,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":2,"price":250.0,"discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6505}} 
[2026-03-28 17:33:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6505,"item_index":1,"menu_item_id":48} 
[2026-03-28 17:33:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6505,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6505}} 
[2026-03-28 17:33:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6505,"item_index":2,"menu_item_id":2} 
[2026-03-28 17:33:20] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6500,"new_order_id":6505,"order_number":"AZS-280326-010"} 
[2026-03-28 17:33:24] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6505,"item_index":0,"item_id":30870} 
[2026-03-28 17:33:24] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6505,"item_index":1,"item_id":30871} 
[2026-03-28 17:33:24] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6505,"item_index":2,"item_id":30873} 
[2026-03-28 17:33:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":6505,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30870},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":30871},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30873}],"validated_items":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:33:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6505,"items_count":3} 
[2026-03-28 17:33:24] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[30901,30902,30903],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":48,"quantity":2},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-28 17:33:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6505,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["105|1|","48|2|","2|2|"],"new_items_map_keys":["105|1|","48|2|","2|2|"]} 
[2026-03-28 17:33:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6505,"order_number":"AZS-280326-010"} 
[2026-03-28 17:33:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6505,"order_number":"AZS-280326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 17:33:24"} 
[2026-03-28 17:35:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6501,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":5,"price":199,"discount_percent":0,"notes":null,"id":30874},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30875},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30876},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":30877},{"menu_item_id":286,"quantity":6,"price":15,"discount_percent":0,"notes":null,"id":30878},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30879},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30880},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30881},{"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null,"id":30882},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30883}],"validated_items":[{"id":30874,"menu_item_id":6,"quantity":5,"price":199,"discount_percent":0,"notes":null},{"id":30875,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30876,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30877,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":30878,"menu_item_id":286,"quantity":6,"price":15,"discount_percent":0,"notes":null},{"id":30879,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30880,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30881,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":30882,"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null},{"id":30883,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:35:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6501,"items_count":10} 
[2026-03-28 17:35:36] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30874,"menu_item_id":6,"quantity":5},{"id":30875,"menu_item_id":113,"quantity":1},{"id":30876,"menu_item_id":98,"quantity":1},{"id":30877,"menu_item_id":64,"quantity":1},{"id":30878,"menu_item_id":286,"quantity":6},{"id":30879,"menu_item_id":61,"quantity":1},{"id":30880,"menu_item_id":56,"quantity":1},{"id":30881,"menu_item_id":3,"quantity":1},{"id":30882,"menu_item_id":136,"quantity":1},{"id":30883,"menu_item_id":2,"quantity":1}]} 
[2026-03-28 17:35:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6501,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["6|5|","113|1|","98|1|","64|1|","286|6|","61|1|","56|1|","3|1|","136|1|","2|1|"],"new_items_map_keys":["6|5|","113|1|","98|1|","64|1|","286|6|","61|1|","56|1|","3|1|","136|1|","2|1|"]} 
[2026-03-28 17:35:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6501,"order_number":"AZS-280326-005"} 
[2026-03-28 17:35:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6501,"order_number":"AZS-280326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 17:35:36"} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":6501,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":5,"price":199,"discount_percent":0,"notes":null,"id":30874},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30875},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30876},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":30877},{"menu_item_id":286,"quantity":6,"price":15,"discount_percent":0,"notes":null,"id":30878},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30879},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30880},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30881},{"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null,"id":30882},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30883},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"id":30874,"menu_item_id":6,"quantity":5,"price":199,"discount_percent":0,"notes":null},{"id":30875,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30876,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30877,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":30878,"menu_item_id":286,"quantity":6,"price":15,"discount_percent":0,"notes":null},{"id":30879,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30880,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30881,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":30882,"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null},{"id":30883,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6501,"items_count":11} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30874,"menu_item_id":6,"quantity":5},{"id":30875,"menu_item_id":113,"quantity":1},{"id":30876,"menu_item_id":98,"quantity":1},{"id":30877,"menu_item_id":64,"quantity":1},{"id":30878,"menu_item_id":286,"quantity":6},{"id":30879,"menu_item_id":61,"quantity":1},{"id":30880,"menu_item_id":56,"quantity":1},{"id":30881,"menu_item_id":3,"quantity":1},{"id":30882,"menu_item_id":136,"quantity":1},{"id":30883,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6501,"has_item_changes":true,"old_items_count":10,"new_items_count":11,"old_items_map_keys":["6|5|","113|1|","98|1|","64|1|","286|6|","61|1|","56|1|","3|1|","136|1|","2|1|"],"new_items_map_keys":["6|5|","113|1|","98|1|","64|1|","286|6|","61|1|","56|1|","3|1|","136|1|","2|1|","5|1|"]} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6501,"order_number":"AZS-280326-005"} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-005","replaced_order_id":6501} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6506,"items_count":11,"items":[{"menu_item_id":6,"quantity":5,"price":199.0},{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":98,"quantity":1,"price":1199.0},{"menu_item_id":64,"quantity":1,"price":999.0},{"menu_item_id":286,"quantity":6,"price":15.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":3,"quantity":1,"price":270.0},{"menu_item_id":136,"quantity":1,"price":899.0},{"menu_item_id":2,"quantity":1,"price":130.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6506,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":5,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":995.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6506}} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6506,"item_index":0,"menu_item_id":6} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6506,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6506}} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6506,"item_index":1,"menu_item_id":113} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6506,"item_index":2,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6506}} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6506,"item_index":2,"menu_item_id":98} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6506,"item_index":3,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":999.0,"discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6506}} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6506,"item_index":3,"menu_item_id":64} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6506,"item_index":4,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":6,"price":15.0,"discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6506}} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6506,"item_index":4,"menu_item_id":286} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6506,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6506}} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6506,"item_index":5,"menu_item_id":61} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6506,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6506}} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6506,"item_index":6,"menu_item_id":56} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6506,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6506}} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6506,"item_index":7,"menu_item_id":3} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6506,"item_index":8,"item_data":{"menu_item_id":136,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Small","quantity":1,"price":899.0,"discount_percent":0.0,"discount_amount":0.0,"total":899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6506}} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6506,"item_index":8,"menu_item_id":136} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6506,"item_index":9,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6506}} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6506,"item_index":9,"menu_item_id":2} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6506,"item_index":10,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6506}} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6506,"item_index":10,"menu_item_id":5} 
[2026-03-28 17:35:52] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6501,"new_order_id":6506,"order_number":"AZS-280326-005"} 
[2026-03-28 17:36:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6506,"item_index":0,"item_id":30874} 
[2026-03-28 17:36:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6506,"item_index":1,"item_id":30875} 
[2026-03-28 17:36:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6506,"item_index":2,"item_id":30876} 
[2026-03-28 17:36:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6506,"item_index":3,"item_id":30877} 
[2026-03-28 17:36:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6506,"item_index":4,"item_id":30878} 
[2026-03-28 17:36:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6506,"item_index":5,"item_id":30879} 
[2026-03-28 17:36:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6506,"item_index":6,"item_id":30880} 
[2026-03-28 17:36:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6506,"item_index":7,"item_id":30881} 
[2026-03-28 17:36:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6506,"item_index":8,"item_id":30882} 
[2026-03-28 17:36:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6506,"item_index":9,"item_id":30883} 
[2026-03-28 17:36:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":11,"order_id":6506,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":5,"price":199,"discount_percent":0,"notes":null,"id":30874},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30875},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30876},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":30877},{"menu_item_id":286,"quantity":6,"price":15,"discount_percent":0,"notes":null,"id":30878},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30879},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30880},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30881},{"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null,"id":30882},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30883},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":6,"quantity":5,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":6,"price":15,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:36:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6506,"items_count":11} 
[2026-03-28 17:36:02] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":11,"items_to_remove":[30904,30905,30906,30907,30908,30909,30910,30911,30912,30913,30914],"items":[{"id":null,"menu_item_id":6,"quantity":5},{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":286,"quantity":6},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":136,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-28 17:36:02] local.INFO: PosOrderController::update - Item changes check {"order_id":6506,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["6|5|","113|1|","98|1|","64|1|","286|6|","61|1|","56|1|","3|1|","136|1|","2|1|","5|1|"],"new_items_map_keys":["6|5|","113|1|","98|1|","64|1|","286|6|","61|1|","56|1|","3|1|","136|1|","2|1|","5|1|"]} 
[2026-03-28 17:36:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6506,"order_number":"AZS-280326-005"} 
[2026-03-28 17:36:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6506,"order_number":"AZS-280326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 17:36:02"} 
[2026-03-28 17:37:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6503,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null,"id":30890},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":30891},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30892},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30893}],"validated_items":[{"id":30890,"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null},{"id":30891,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":30892,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":30893,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:37:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6503,"items_count":4} 
[2026-03-28 17:37:37] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30890,"menu_item_id":101,"quantity":1},{"id":30891,"menu_item_id":396,"quantity":4},{"id":30892,"menu_item_id":61,"quantity":2},{"id":30893,"menu_item_id":3,"quantity":1}]} 
[2026-03-28 17:37:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6503,"has_item_changes":true,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["101|1|","396|2|","61|2|","3|1|"],"new_items_map_keys":["101|1|","396|4|","61|2|","3|1|"]} 
[2026-03-28 17:37:37] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6503,"order_number":"AZS-280326-008"} 
[2026-03-28 17:37:37] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-008","replaced_order_id":6503} 
[2026-03-28 17:37:37] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6507,"items_count":4,"items":[{"menu_item_id":101,"quantity":1,"price":2399.0},{"menu_item_id":396,"quantity":4,"price":99.0},{"menu_item_id":61,"quantity":2,"price":199.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-28 17:37:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6507,"item_index":0,"item_data":{"menu_item_id":101,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Full","quantity":1,"price":2399.0,"discount_percent":0.0,"discount_amount":0.0,"total":2399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6507}} 
[2026-03-28 17:37:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6507,"item_index":0,"menu_item_id":101} 
[2026-03-28 17:37:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6507,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6507}} 
[2026-03-28 17:37:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6507,"item_index":1,"menu_item_id":396} 
[2026-03-28 17:37:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6507,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6507}} 
[2026-03-28 17:37:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6507,"item_index":2,"menu_item_id":61} 
[2026-03-28 17:37:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6507,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6507}} 
[2026-03-28 17:37:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6507,"item_index":3,"menu_item_id":3} 
[2026-03-28 17:37:37] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6503,"new_order_id":6507,"order_number":"AZS-280326-008"} 
[2026-03-28 17:37:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6507,"item_index":0,"item_id":30890} 
[2026-03-28 17:37:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6507,"item_index":1,"item_id":30891} 
[2026-03-28 17:37:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6507,"item_index":2,"item_id":30892} 
[2026-03-28 17:37:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6507,"item_index":3,"item_id":30893} 
[2026-03-28 17:37:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6507,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null,"id":30890},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":30891},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30892},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30893}],"validated_items":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:37:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6507,"items_count":4} 
[2026-03-28 17:37:42] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[30915,30916,30917,30918],"items":[{"id":null,"menu_item_id":101,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-28 17:37:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6507,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["101|1|","396|4|","61|2|","3|1|"],"new_items_map_keys":["101|1|","396|4|","61|2|","3|1|"]} 
[2026-03-28 17:37:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6507,"order_number":"AZS-280326-008"} 
[2026-03-28 17:37:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6507,"order_number":"AZS-280326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 17:37:42"} 
[2026-03-28 17:38:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6507,"item_index":0,"item_id":30890} 
[2026-03-28 17:38:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6507,"item_index":1,"item_id":30891} 
[2026-03-28 17:38:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6507,"item_index":2,"item_id":30892} 
[2026-03-28 17:38:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6507,"item_index":3,"item_id":30893} 
[2026-03-28 17:38:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6507,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null,"id":30890},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":30891},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":30892},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30893}],"validated_items":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:38:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6507,"items_count":4} 
[2026-03-28 17:38:23] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[30915,30916,30917,30918],"items":[{"id":null,"menu_item_id":101,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-28 17:38:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6507,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["101|1|","396|4|","61|2|","3|1|"],"new_items_map_keys":["101|1|","396|4|","61|2|","3|1|"]} 
[2026-03-28 17:38:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6507,"order_number":"AZS-280326-008"} 
[2026-03-28 17:38:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6507,"order_number":"AZS-280326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 17:38:23"} 
[2026-03-28 17:44:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6507,"item_index":0,"item_id":30890} 
[2026-03-28 17:44:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6507,"item_index":1,"item_id":30891} 
[2026-03-28 17:44:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6507,"item_index":2,"item_id":30892} 
[2026-03-28 17:44:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6507,"item_index":3,"item_id":30893} 
[2026-03-28 17:44:05] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6507,"order_number":"AZS-280326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 17:44:05"} 
[2026-03-28 17:44:05] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6507,"order_number":"AZS-280326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 17:44:05"} 
[2026-03-28 17:44:05] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6507,"order_number":"AZS-280326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 17:44:05"} 
[2026-03-28 17:44:05] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6507,"order_number":"AZS-280326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 17:44:05"} 
[2026-03-28 17:44:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6507,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null,"id":30890},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":30891},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30892},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30893}],"validated_items":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:44:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6507,"items_count":4} 
[2026-03-28 17:44:05] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[30915,30916,30917,30918],"items":[{"id":null,"menu_item_id":101,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-28 17:44:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6507,"has_item_changes":true,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["101|1|","396|4|","61|2|","3|1|"],"new_items_map_keys":["101|1|","396|4|","61|1|","3|1|"]} 
[2026-03-28 17:44:05] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6507,"order_number":"AZS-280326-008","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-28 17:44:05","original_payment_amount":"0.00","grand_total":3264.0,"timestamp":"2026-03-28 17:44:05"} 
[2026-03-28 17:44:05] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6507,"order_number":"AZS-280326-008"} 
[2026-03-28 17:44:05] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-008","replaced_order_id":6507} 
[2026-03-28 17:44:05] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6507,"new_order_id":6508,"order_number":"AZS-280326-008","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-28 17:44:05","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-28 17:44:05"} 
[2026-03-28 17:44:05] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6508,"items_count":4,"items":[{"menu_item_id":101,"quantity":1,"price":2399.0},{"menu_item_id":396,"quantity":4,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-28 17:44:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6508,"item_index":0,"item_data":{"menu_item_id":101,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Full","quantity":1,"price":2399.0,"discount_percent":0.0,"discount_amount":0.0,"total":2399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6508}} 
[2026-03-28 17:44:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6508,"item_index":0,"menu_item_id":101} 
[2026-03-28 17:44:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6508,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6508}} 
[2026-03-28 17:44:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6508,"item_index":1,"menu_item_id":396} 
[2026-03-28 17:44:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6508,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6508}} 
[2026-03-28 17:44:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6508,"item_index":2,"menu_item_id":61} 
[2026-03-28 17:44:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6508,"item_index":3,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6508}} 
[2026-03-28 17:44:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6508,"item_index":3,"menu_item_id":3} 
[2026-03-28 17:44:05] local.ERROR: Error tracking recipe usage for order 6508: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6508, 101, 77, 1, 1, 0.00, Order #AZS-280326-008 - 1x Chicken Peshawari Karahi - Full, 2026-03-28 17:44:05, 2026-03-28 17:44:05))  
[2026-03-28 17:44:05] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6507,"new_order_id":6508,"order_number":"AZS-280326-008"} 
[2026-03-28 17:44:05] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6507,"new_order_id":6508,"order_number":"AZS-280326-008","route":"api/orders/6507"} 
[2026-03-28 17:44:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6505,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30901},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":30902},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30903}],"validated_items":[{"id":30901,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":30902,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":30903,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:44:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6505,"items_count":3} 
[2026-03-28 17:44:40] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30901,"menu_item_id":105,"quantity":1},{"id":30902,"menu_item_id":48,"quantity":2},{"id":30903,"menu_item_id":2,"quantity":2}]} 
[2026-03-28 17:44:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6505,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["105|1|","48|2|","2|2|"],"new_items_map_keys":["105|1|","48|2|","2|2|"]} 
[2026-03-28 17:44:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6505,"order_number":"AZS-280326-010"} 
[2026-03-28 17:44:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6505,"order_number":"AZS-280326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 17:44:40"} 
[2026-03-28 17:45:08] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6505,"order_number":"AZS-280326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 17:45:08"} 
[2026-03-28 17:45:08] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6505,"order_number":"AZS-280326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 17:45:08"} 
[2026-03-28 17:45:08] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6505,"order_number":"AZS-280326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 17:45:08"} 
[2026-03-28 17:45:08] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6505,"order_number":"AZS-280326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 17:45:08"} 
[2026-03-28 17:45:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6505,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30901},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":30902},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30903}],"validated_items":[{"id":30901,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":30902,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":30903,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:45:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6505,"items_count":3} 
[2026-03-28 17:45:08] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30901,"menu_item_id":105,"quantity":1},{"id":30902,"menu_item_id":48,"quantity":2},{"id":30903,"menu_item_id":2,"quantity":2}]} 
[2026-03-28 17:45:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6505,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["105|1|","48|2|","2|2|"],"new_items_map_keys":["105|1|","48|2|","2|2|"]} 
[2026-03-28 17:45:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6505,"order_number":"AZS-280326-010"} 
[2026-03-28 17:45:08] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6505,"order_number":"AZS-280326-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-28 17:45:08","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-28 17:45:08"} 
[2026-03-28 17:45:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6505,"order_number":"AZS-280326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-28 17:45:08"} 
[2026-03-28 17:45:08] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6505,"order_number":"AZS-280326-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-28 17:45:08","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-03-28 17:45:08"} 
[2026-03-28 17:47:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T05:47:11.977Z","date_to":"2026-03-28T17:47:11.977Z","per_page":"100"} 
[2026-03-28 17:47:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","pending","paid","pending","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":5,"unique_order_numbers":13} 
[2026-03-28 17:47:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T05:47:11.984Z","date_to":"2026-03-28T17:47:11.984Z","per_page":"100"} 
[2026-03-28 17:47:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","pending","paid","pending","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":5,"unique_order_numbers":13} 
[2026-03-28 17:47:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T05:47:11.977Z","date_to":"2026-03-28T17:47:11.977Z","per_page":"100"} 
[2026-03-28 17:47:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","pending","paid","pending","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":5,"unique_order_numbers":13} 
[2026-03-28 17:47:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6504,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":30894},{"menu_item_id":397,"quantity":400,"discount_percent":0,"notes":null,"id":30895},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30896},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":30897},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30898},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30899},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30900}],"validated_items":[{"id":30894,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":30895,"menu_item_id":397,"quantity":400,"discount_percent":0,"notes":null},{"id":30896,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":30897,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":30898,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30899,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30900,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:47:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6504,"items_count":7} 
[2026-03-28 17:47:23] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30894,"menu_item_id":106,"quantity":1},{"id":30895,"menu_item_id":397,"quantity":400},{"id":30896,"menu_item_id":396,"quantity":2},{"id":30897,"menu_item_id":50,"quantity":2},{"id":30898,"menu_item_id":61,"quantity":1},{"id":30899,"menu_item_id":56,"quantity":1},{"id":30900,"menu_item_id":5,"quantity":1}]} 
[2026-03-28 17:47:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6504,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","397|400|","396|2|","50|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["106|1|","397|400|","396|2|","50|2|","61|1|","56|1|","5|1|"]} 
[2026-03-28 17:47:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6504,"order_number":"AZS-280326-011"} 
[2026-03-28 17:47:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6504,"order_number":"AZS-280326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-28 17:47:23"} 
[2026-03-28 17:47:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6496,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30842},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30843},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":30844},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30845},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":30846}],"validated_items":[{"id":30842,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30843,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30844,"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"id":30845,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":30846,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:47:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6496,"items_count":5} 
[2026-03-28 17:47:55] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30842,"menu_item_id":61,"quantity":1},{"id":30843,"menu_item_id":56,"quantity":1},{"id":30844,"menu_item_id":52,"quantity":3},{"id":30845,"menu_item_id":5,"quantity":1},{"id":30846,"menu_item_id":106,"quantity":1}]} 
[2026-03-28 17:47:55] local.INFO: PosOrderController::update - Item changes check {"order_id":6496,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["61|1|","56|1|","52|3|","5|1|","106|1|"],"new_items_map_keys":["61|1|","56|1|","52|3|","5|1|","106|1|"]} 
[2026-03-28 17:47:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6496,"order_number":"AZS-280326-012"} 
[2026-03-28 17:47:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6496,"order_number":"AZS-280326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-28 17:47:55"} 
[2026-03-28 17:48:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6509,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":30923},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":30924},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30925},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30926},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30927}],"validated_items":[{"id":30923,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":30924,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":30925,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30926,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30927,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:48:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6509,"items_count":5} 
[2026-03-28 17:48:03] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30923,"menu_item_id":106,"quantity":1},{"id":30924,"menu_item_id":396,"quantity":3},{"id":30925,"menu_item_id":61,"quantity":1},{"id":30926,"menu_item_id":56,"quantity":1},{"id":30927,"menu_item_id":5,"quantity":1}]} 
[2026-03-28 17:48:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6509,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["106|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["106|1|","396|3|","61|1|","56|1|","5|1|"]} 
[2026-03-28 17:48:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6509,"order_number":"AZS-280326-013"} 
[2026-03-28 17:48:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6509,"order_number":"AZS-280326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-28 17:48:03"} 
[2026-03-28 17:48:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T05:48:12.672Z","date_to":"2026-03-28T17:48:12.672Z","per_page":"100"} 
[2026-03-28 17:48:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T05:48:12.686Z","date_to":"2026-03-28T17:48:12.686Z","per_page":"100"} 
[2026-03-28 17:48:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","pending","paid","pending","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":5,"unique_order_numbers":13} 
[2026-03-28 17:48:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","pending","paid","pending","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":5,"unique_order_numbers":13} 
[2026-03-28 17:48:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T05:48:12.672Z","date_to":"2026-03-28T17:48:12.672Z","per_page":"100"} 
[2026-03-28 17:48:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","pending","paid","pending","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":5,"unique_order_numbers":13} 
[2026-03-28 17:52:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6506,"order_number":"AZS-280326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6356,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 17:52:27"} 
[2026-03-28 17:52:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6506,"order_number":"AZS-280326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6356,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 17:52:27"} 
[2026-03-28 17:52:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6506,"order_number":"AZS-280326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6356,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 17:52:27"} 
[2026-03-28 17:52:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6506,"order_number":"AZS-280326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6356,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 17:52:27"} 
[2026-03-28 17:52:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":6506,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":5,"price":199,"discount_percent":0,"notes":null,"id":30904},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30905},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30906},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":30907},{"menu_item_id":286,"quantity":6,"price":15,"discount_percent":0,"notes":null,"id":30908},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30909},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30910},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30911},{"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null,"id":30912},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":30913},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30914}],"validated_items":[{"id":30904,"menu_item_id":6,"quantity":5,"price":199,"discount_percent":0,"notes":null},{"id":30905,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30906,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30907,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":30908,"menu_item_id":286,"quantity":6,"price":15,"discount_percent":0,"notes":null},{"id":30909,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30910,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30911,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":30912,"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null},{"id":30913,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":30914,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:52:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6506,"items_count":11} 
[2026-03-28 17:52:27] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30904,"menu_item_id":6,"quantity":5},{"id":30905,"menu_item_id":113,"quantity":1},{"id":30906,"menu_item_id":98,"quantity":1},{"id":30907,"menu_item_id":64,"quantity":1},{"id":30908,"menu_item_id":286,"quantity":6},{"id":30909,"menu_item_id":61,"quantity":1},{"id":30910,"menu_item_id":56,"quantity":1},{"id":30911,"menu_item_id":3,"quantity":1},{"id":30912,"menu_item_id":136,"quantity":1},{"id":30913,"menu_item_id":2,"quantity":1},{"id":30914,"menu_item_id":5,"quantity":1}]} 
[2026-03-28 17:52:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6506,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["6|5|","113|1|","98|1|","64|1|","286|6|","61|1|","56|1|","3|1|","136|1|","2|1|","5|1|"],"new_items_map_keys":["6|5|","113|1|","98|1|","64|1|","286|6|","61|1|","56|1|","3|1|","136|1|","2|1|","5|1|"]} 
[2026-03-28 17:52:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6506,"order_number":"AZS-280326-005"} 
[2026-03-28 17:52:27] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6506,"order_number":"AZS-280326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":6356,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-28 17:52:27","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-28 17:52:27"} 
[2026-03-28 17:52:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6506,"order_number":"AZS-280326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-28 17:52:27"} 
[2026-03-28 17:52:27] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6506,"order_number":"AZS-280326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"6356.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-28 17:52:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6356,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"6356.00","database_verification_match":true,"timestamp":"2026-03-28 17:52:27"} 
[2026-03-28 17:52:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T05:52:38.936Z","date_to":"2026-03-28T17:52:38.936Z","per_page":"100"} 
[2026-03-28 17:52:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T05:52:38.951Z","date_to":"2026-03-28T17:52:38.951Z","per_page":"100"} 
[2026-03-28 17:52:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":4,"unique_order_numbers":13} 
[2026-03-28 17:52:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":4,"unique_order_numbers":13} 
[2026-03-28 17:52:35] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T05:52:38.936Z","date_to":"2026-03-28T17:52:38.936Z","per_page":"100"} 
[2026-03-28 17:52:35] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":4,"unique_order_numbers":13} 
[2026-03-28 17:58:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6496,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30842},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30843},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":30844},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30845},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":30846},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":30842,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30843,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30844,"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"id":30845,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":30846,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-28 17:58:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6496,"items_count":6} 
[2026-03-28 17:58:45] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30842,"menu_item_id":61,"quantity":1},{"id":30843,"menu_item_id":56,"quantity":1},{"id":30844,"menu_item_id":52,"quantity":3},{"id":30845,"menu_item_id":5,"quantity":1},{"id":30846,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-28 17:58:45] local.INFO: PosOrderController::update - Item changes check {"order_id":6496,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["61|1|","56|1|","52|3|","5|1|","106|1|"],"new_items_map_keys":["61|1|","56|1|","52|3|","5|1|","106|1|","2|2|"]} 
[2026-03-28 17:58:45] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6496,"order_number":"AZS-280326-012"} 
[2026-03-28 17:58:45] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-012","replaced_order_id":6496} 
[2026-03-28 17:58:45] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6510,"items_count":6,"items":[{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":52,"quantity":3,"price":"70.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-28 17:58:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6510,"item_index":0,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6510}} 
[2026-03-28 17:58:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6510,"item_index":0,"menu_item_id":61} 
[2026-03-28 17:58:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6510,"item_index":1,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6510}} 
[2026-03-28 17:58:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6510,"item_index":1,"menu_item_id":56} 
[2026-03-28 17:58:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6510,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6510}} 
[2026-03-28 17:58:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6510,"item_index":2,"menu_item_id":52} 
[2026-03-28 17:58:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6510,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6510}} 
[2026-03-28 17:58:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6510,"item_index":3,"menu_item_id":5} 
[2026-03-28 17:58:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6510,"item_index":4,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6510}} 
[2026-03-28 17:58:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6510,"item_index":4,"menu_item_id":106} 
[2026-03-28 17:58:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6510,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6510}} 
[2026-03-28 17:58:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6510,"item_index":5,"menu_item_id":2} 
[2026-03-28 17:58:45] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6496,"new_order_id":6510,"order_number":"AZS-280326-012"} 
[2026-03-28 18:08:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T06:08:32.002Z","date_to":"2026-03-28T18:08:32.002Z","per_page":"100"} 
[2026-03-28 18:08:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T06:08:31.981Z","date_to":"2026-03-28T18:08:31.981Z","per_page":"100"} 
[2026-03-28 18:08:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":4,"unique_order_numbers":13} 
[2026-03-28 18:08:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":4,"unique_order_numbers":13} 
[2026-03-28 18:08:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T06:08:31.981Z","date_to":"2026-03-28T18:08:31.981Z","per_page":"100"} 
[2026-03-28 18:08:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":4,"unique_order_numbers":13} 
[2026-03-28 18:14:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6509,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30923},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":30924},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30925},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30926},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30927}],"validated_items":[{"id":30923,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":30924,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":30925,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30926,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30927,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-28 18:14:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6509,"items_count":5} 
[2026-03-28 18:14:53] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30923,"menu_item_id":106,"quantity":1},{"id":30924,"menu_item_id":396,"quantity":3},{"id":30925,"menu_item_id":61,"quantity":1},{"id":30926,"menu_item_id":56,"quantity":1},{"id":30927,"menu_item_id":5,"quantity":1}]} 
[2026-03-28 18:14:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6509,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["106|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["106|1|","396|3|","61|1|","56|1|","5|1|"]} 
[2026-03-28 18:14:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6509,"order_number":"AZS-280326-013"} 
[2026-03-28 18:14:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6509,"order_number":"AZS-280326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 18:14:53"} 
[2026-03-28 18:15:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6509,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30923},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30924},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30925},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30926},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30927}],"validated_items":[{"id":30923,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":30924,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30925,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30926,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30927,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-28 18:15:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6509,"items_count":5} 
[2026-03-28 18:15:30] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30923,"menu_item_id":106,"quantity":1},{"id":30924,"menu_item_id":396,"quantity":2},{"id":30925,"menu_item_id":61,"quantity":1},{"id":30926,"menu_item_id":56,"quantity":1},{"id":30927,"menu_item_id":5,"quantity":1}]} 
[2026-03-28 18:15:30] local.INFO: PosOrderController::update - Item changes check {"order_id":6509,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["106|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["106|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-28 18:15:30] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6509,"order_number":"AZS-280326-013"} 
[2026-03-28 18:15:30] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-013","replaced_order_id":6509} 
[2026-03-28 18:15:30] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6511,"items_count":5,"items":[{"menu_item_id":106,"quantity":1,"price":4199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-03-28 18:15:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6511,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":4199.0,"discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6511}} 
[2026-03-28 18:15:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6511,"item_index":0,"menu_item_id":106} 
[2026-03-28 18:15:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6511,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6511}} 
[2026-03-28 18:15:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6511,"item_index":1,"menu_item_id":396} 
[2026-03-28 18:15:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6511,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6511}} 
[2026-03-28 18:15:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6511,"item_index":2,"menu_item_id":61} 
[2026-03-28 18:15:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6511,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6511}} 
[2026-03-28 18:15:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6511,"item_index":3,"menu_item_id":56} 
[2026-03-28 18:15:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6511,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6511}} 
[2026-03-28 18:15:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6511,"item_index":4,"menu_item_id":5} 
[2026-03-28 18:15:30] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6509,"new_order_id":6511,"order_number":"AZS-280326-013"} 
[2026-03-28 18:15:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6511,"item_index":0,"item_id":30923} 
[2026-03-28 18:15:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6511,"item_index":1,"item_id":30924} 
[2026-03-28 18:15:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6511,"item_index":2,"item_id":30925} 
[2026-03-28 18:15:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6511,"item_index":3,"item_id":30926} 
[2026-03-28 18:15:34] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6511,"item_index":4,"item_id":30927} 
[2026-03-28 18:15:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6511,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30923},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30924},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30925},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30926},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30927}],"validated_items":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-28 18:15:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6511,"items_count":5} 
[2026-03-28 18:15:34] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[30934,30935,30936,30937,30938],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-28 18:15:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6511,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["106|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["106|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-28 18:15:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6511,"order_number":"AZS-280326-013"} 
[2026-03-28 18:15:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6511,"order_number":"AZS-280326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 18:15:34"} 
[2026-03-28 18:20:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6510,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30928},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30929},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":30930},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30931},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30932},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30933}],"validated_items":[{"id":30928,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30929,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30930,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":30931,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30932,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":30933,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-28 18:20:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6510,"items_count":6} 
[2026-03-28 18:20:06] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30928,"menu_item_id":61,"quantity":1},{"id":30929,"menu_item_id":56,"quantity":1},{"id":30930,"menu_item_id":52,"quantity":3},{"id":30931,"menu_item_id":5,"quantity":1},{"id":30932,"menu_item_id":106,"quantity":1},{"id":30933,"menu_item_id":2,"quantity":2}]} 
[2026-03-28 18:20:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6510,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["61|1|","56|1|","52|3|","5|1|","106|1|","2|2|"],"new_items_map_keys":["61|1|","56|1|","52|3|","5|1|","106|1|","2|2|"]} 
[2026-03-28 18:20:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6510,"order_number":"AZS-280326-012"} 
[2026-03-28 18:20:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6510,"order_number":"AZS-280326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 18:20:06"} 
[2026-03-28 18:22:54] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6510,"order_number":"AZS-280326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5500,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 18:22:54"} 
[2026-03-28 18:22:54] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6510,"order_number":"AZS-280326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 18:22:54"} 
[2026-03-28 18:22:54] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6510,"order_number":"AZS-280326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 18:22:54"} 
[2026-03-28 18:22:54] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6510,"order_number":"AZS-280326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 18:22:54"} 
[2026-03-28 18:22:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6510,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30928},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30929},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":30930},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30931},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30932},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30933}],"validated_items":[{"id":30928,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30929,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30930,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":30931,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30932,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":30933,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-28 18:22:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6510,"items_count":6} 
[2026-03-28 18:22:54] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30928,"menu_item_id":61,"quantity":1},{"id":30929,"menu_item_id":56,"quantity":1},{"id":30930,"menu_item_id":52,"quantity":3},{"id":30931,"menu_item_id":5,"quantity":1},{"id":30932,"menu_item_id":106,"quantity":1},{"id":30933,"menu_item_id":2,"quantity":2}]} 
[2026-03-28 18:22:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6510,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["61|1|","56|1|","52|3|","5|1|","106|1|","2|2|"],"new_items_map_keys":["61|1|","56|1|","52|3|","5|1|","106|1|","2|2|"]} 
[2026-03-28 18:22:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6510,"order_number":"AZS-280326-012"} 
[2026-03-28 18:22:54] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6510,"order_number":"AZS-280326-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5500,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-28 18:22:54","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-28 18:22:54"} 
[2026-03-28 18:22:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6510,"order_number":"AZS-280326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-28 18:22:54"} 
[2026-03-28 18:22:54] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6510,"order_number":"AZS-280326-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5500.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-28 18:22:54","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5500.00","database_verification_match":true,"timestamp":"2026-03-28 18:22:54"} 
[2026-03-28 18:25:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6504,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":30894},{"menu_item_id":397,"quantity":400,"discount_percent":0,"notes":null,"id":30895},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30896},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":30897},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30898},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30899},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30900},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":30894,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":30895,"menu_item_id":397,"quantity":400,"discount_percent":0,"notes":null},{"id":30896,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":30897,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":30898,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30899,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30900,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-28 18:25:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6504,"items_count":8} 
[2026-03-28 18:25:21] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30894,"menu_item_id":106,"quantity":1},{"id":30895,"menu_item_id":397,"quantity":400},{"id":30896,"menu_item_id":396,"quantity":2},{"id":30897,"menu_item_id":50,"quantity":2},{"id":30898,"menu_item_id":61,"quantity":1},{"id":30899,"menu_item_id":56,"quantity":1},{"id":30900,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-03-28 18:25:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6504,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["106|1|","397|400|","396|2|","50|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["106|1|","397|400|","396|2|","50|2|","61|1|","56|1|","5|1|","2|3|"]} 
[2026-03-28 18:25:21] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6504,"order_number":"AZS-280326-011"} 
[2026-03-28 18:25:21] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-011","replaced_order_id":6504} 
[2026-03-28 18:25:21] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6513,"items_count":8,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":397,"quantity":400,"price":"4.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"}]} 
[2026-03-28 18:25:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6513,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6513}} 
[2026-03-28 18:25:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6513,"item_index":0,"menu_item_id":106} 
[2026-03-28 18:25:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6513,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":400,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":1600.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6513}} 
[2026-03-28 18:25:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6513,"item_index":1,"menu_item_id":397} 
[2026-03-28 18:25:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6513,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6513}} 
[2026-03-28 18:25:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6513,"item_index":2,"menu_item_id":396} 
[2026-03-28 18:25:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6513,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6513}} 
[2026-03-28 18:25:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6513,"item_index":3,"menu_item_id":50} 
[2026-03-28 18:25:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6513,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6513}} 
[2026-03-28 18:25:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6513,"item_index":4,"menu_item_id":61} 
[2026-03-28 18:25:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6513,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6513}} 
[2026-03-28 18:25:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6513,"item_index":5,"menu_item_id":56} 
[2026-03-28 18:25:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6513,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6513}} 
[2026-03-28 18:25:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6513,"item_index":6,"menu_item_id":5} 
[2026-03-28 18:25:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6513,"item_index":7,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6513}} 
[2026-03-28 18:25:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6513,"item_index":7,"menu_item_id":2} 
[2026-03-28 18:25:21] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6504,"new_order_id":6513,"order_number":"AZS-280326-011"} 
[2026-03-28 18:27:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T06:27:20.384Z","date_to":"2026-03-28T18:27:20.384Z","per_page":"100"} 
[2026-03-28 18:27:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":4,"unique_order_numbers":14} 
[2026-03-28 18:27:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T06:27:20.364Z","date_to":"2026-03-28T18:27:20.364Z","per_page":"100"} 
[2026-03-28 18:27:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":4,"unique_order_numbers":14} 
[2026-03-28 18:27:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T06:27:20.364Z","date_to":"2026-03-28T18:27:20.364Z","per_page":"100"} 
[2026-03-28 18:27:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":4,"unique_order_numbers":14} 
[2026-03-28 18:31:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6493,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30823},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30824},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":30825},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30826},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30827},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30828},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30829}],"validated_items":[{"id":30823,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30824,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30825,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":30826,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30827,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30828,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30829,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-28 18:31:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6493,"items_count":7} 
[2026-03-28 18:31:36] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30823,"menu_item_id":98,"quantity":1},{"id":30824,"menu_item_id":102,"quantity":1},{"id":30825,"menu_item_id":396,"quantity":4},{"id":30826,"menu_item_id":61,"quantity":1},{"id":30827,"menu_item_id":56,"quantity":1},{"id":30828,"menu_item_id":5,"quantity":1},{"id":30829,"menu_item_id":3,"quantity":1}]} 
[2026-03-28 18:31:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6493,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["98|1|","102|1|","396|4|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["98|1|","102|1|","396|4|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-03-28 18:31:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6493,"order_number":"AZS-280326-007"} 
[2026-03-28 18:31:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6493,"order_number":"AZS-280326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 18:31:36"} 
[2026-03-28 18:32:55] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6493,"order_number":"AZS-280326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 18:32:55"} 
[2026-03-28 18:32:55] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6493,"order_number":"AZS-280326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 18:32:55"} 
[2026-03-28 18:32:55] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6493,"order_number":"AZS-280326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 18:32:55"} 
[2026-03-28 18:32:55] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6493,"order_number":"AZS-280326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 18:32:55"} 
[2026-03-28 18:32:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":6493,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":30823},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":30824},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":30825},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30827},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30828},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":30829}],"validated_items":[{"id":30823,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":30824,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":30825,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":30827,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30828,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30829,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-28 18:32:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6493,"items_count":6} 
[2026-03-28 18:32:55] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[30826],"items":[{"id":30823,"menu_item_id":98,"quantity":1},{"id":30824,"menu_item_id":102,"quantity":1},{"id":30825,"menu_item_id":396,"quantity":4},{"id":30827,"menu_item_id":56,"quantity":1},{"id":30828,"menu_item_id":5,"quantity":1},{"id":30829,"menu_item_id":3,"quantity":1}]} 
[2026-03-28 18:32:55] local.INFO: PosOrderController::update - Item changes check {"order_id":6493,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["98|1|","102|1|","396|4|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["98|1|","102|1|","396|4|","56|1|","5|1|","3|1|"]} 
[2026-03-28 18:32:55] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6493,"order_number":"AZS-280326-007","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":4000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-28 18:32:55","original_payment_amount":"0.00","grand_total":3633.0,"timestamp":"2026-03-28 18:32:55"} 
[2026-03-28 18:32:55] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6493,"order_number":"AZS-280326-007"} 
[2026-03-28 18:32:55] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-007","replaced_order_id":6493} 
[2026-03-28 18:32:55] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6493,"new_order_id":6514,"order_number":"AZS-280326-007","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"4000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-28 18:32:55","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-28 18:32:55"} 
[2026-03-28 18:32:55] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6514,"items_count":6,"items":[{"menu_item_id":98,"quantity":1,"price":1199.0},{"menu_item_id":102,"quantity":1,"price":1399.0},{"menu_item_id":396,"quantity":4,"price":99.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-28 18:32:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6514,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6514}} 
[2026-03-28 18:32:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6514,"item_index":0,"menu_item_id":98} 
[2026-03-28 18:32:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6514,"item_index":1,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":1399.0,"discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6514}} 
[2026-03-28 18:32:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6514,"item_index":1,"menu_item_id":102} 
[2026-03-28 18:32:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6514,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6514}} 
[2026-03-28 18:32:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6514,"item_index":2,"menu_item_id":396} 
[2026-03-28 18:32:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6514,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6514}} 
[2026-03-28 18:32:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6514,"item_index":3,"menu_item_id":56} 
[2026-03-28 18:32:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6514,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6514}} 
[2026-03-28 18:32:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6514,"item_index":4,"menu_item_id":5} 
[2026-03-28 18:32:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6514,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6514}} 
[2026-03-28 18:32:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6514,"item_index":5,"menu_item_id":3} 
[2026-03-28 18:32:55] local.ERROR: Error tracking recipe usage for order 6514: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6514, 56, 81, 1, 100, 0.00, Order #AZS-280326-007 - 1x Fresh Salad, 2026-03-28 18:32:55, 2026-03-28 18:32:55))  
[2026-03-28 18:32:55] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6493,"new_order_id":6514,"order_number":"AZS-280326-007"} 
[2026-03-28 18:32:56] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6493,"new_order_id":6514,"order_number":"AZS-280326-007","route":"api/orders/6493"} 
[2026-03-28 18:37:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6511,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30934},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30935},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30936},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30937},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30938}],"validated_items":[{"id":30934,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":30935,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30936,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30937,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30938,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-28 18:37:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6511,"items_count":5} 
[2026-03-28 18:37:50] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30934,"menu_item_id":106,"quantity":1},{"id":30935,"menu_item_id":396,"quantity":2},{"id":30936,"menu_item_id":61,"quantity":1},{"id":30937,"menu_item_id":56,"quantity":1},{"id":30938,"menu_item_id":5,"quantity":1}]} 
[2026-03-28 18:37:50] local.INFO: PosOrderController::update - Item changes check {"order_id":6511,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["106|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["106|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-28 18:37:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6511,"order_number":"AZS-280326-013"} 
[2026-03-28 18:37:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6511,"order_number":"AZS-280326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 18:37:50"} 
[2026-03-28 18:41:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6511,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30934},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30935},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30936},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30937},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30938}],"validated_items":[{"id":30934,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":30935,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30936,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30937,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30938,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-28 18:41:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6511,"items_count":5} 
[2026-03-28 18:41:23] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30934,"menu_item_id":106,"quantity":1},{"id":30935,"menu_item_id":396,"quantity":2},{"id":30936,"menu_item_id":61,"quantity":1},{"id":30937,"menu_item_id":56,"quantity":1},{"id":30938,"menu_item_id":5,"quantity":1}]} 
[2026-03-28 18:41:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6511,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["106|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["106|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-28 18:41:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6511,"order_number":"AZS-280326-013"} 
[2026-03-28 18:41:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6511,"order_number":"AZS-280326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 18:41:23"} 
[2026-03-28 18:50:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6511,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30934},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30935},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30936},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30937},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30938}],"validated_items":[{"id":30934,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":30935,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30936,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30937,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30938,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-28 18:50:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6511,"items_count":5} 
[2026-03-28 18:50:17] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30934,"menu_item_id":106,"quantity":1},{"id":30935,"menu_item_id":396,"quantity":2},{"id":30936,"menu_item_id":61,"quantity":1},{"id":30937,"menu_item_id":56,"quantity":1},{"id":30938,"menu_item_id":5,"quantity":1}]} 
[2026-03-28 18:50:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6511,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["106|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["106|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-28 18:50:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6511,"order_number":"AZS-280326-013"} 
[2026-03-28 18:50:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6511,"order_number":"AZS-280326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 18:50:17"} 
[2026-03-28 18:54:53] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6511,"order_number":"AZS-280326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5213,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 18:54:53"} 
[2026-03-28 18:54:53] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6511,"order_number":"AZS-280326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5213,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 18:54:53"} 
[2026-03-28 18:54:53] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6511,"order_number":"AZS-280326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5213,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 18:54:53"} 
[2026-03-28 18:54:53] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6511,"order_number":"AZS-280326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5213,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 18:54:53"} 
[2026-03-28 18:54:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6511,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30934},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30935},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30936},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30937},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30938}],"validated_items":[{"id":30934,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":30935,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30936,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30937,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30938,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-28 18:54:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6511,"items_count":5} 
[2026-03-28 18:54:53] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30934,"menu_item_id":106,"quantity":1},{"id":30935,"menu_item_id":396,"quantity":2},{"id":30936,"menu_item_id":61,"quantity":1},{"id":30937,"menu_item_id":56,"quantity":1},{"id":30938,"menu_item_id":5,"quantity":1}]} 
[2026-03-28 18:54:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6511,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["106|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["106|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-03-28 18:54:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6511,"order_number":"AZS-280326-013"} 
[2026-03-28 18:54:53] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6511,"order_number":"AZS-280326-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5213,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-28 18:54:53","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-28 18:54:53"} 
[2026-03-28 18:54:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6511,"order_number":"AZS-280326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-28 18:54:53"} 
[2026-03-28 18:54:53] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6511,"order_number":"AZS-280326-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5213.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-28 18:54:53","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5213,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5213.00","database_verification_match":true,"timestamp":"2026-03-28 18:54:53"} 
[2026-03-28 19:01:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6516,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null,"id":30963},{"menu_item_id":52,"quantity":5,"discount_percent":0,"notes":null,"id":30964},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":30965},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":30966},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":30967},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30968}],"validated_items":[{"id":30963,"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null},{"id":30964,"menu_item_id":52,"quantity":5,"discount_percent":0,"notes":null},{"id":30965,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":30966,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":30967,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":30968,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-28 19:01:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6516,"items_count":6} 
[2026-03-28 19:01:24] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30963,"menu_item_id":113,"quantity":2},{"id":30964,"menu_item_id":52,"quantity":5},{"id":30965,"menu_item_id":50,"quantity":2},{"id":30966,"menu_item_id":61,"quantity":2},{"id":30967,"menu_item_id":56,"quantity":2},{"id":30968,"menu_item_id":5,"quantity":1}]} 
[2026-03-28 19:01:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6516,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|2|","52|5|","50|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["113|2|","52|5|","50|2|","61|2|","56|2|","5|1|"]} 
[2026-03-28 19:01:24] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6516,"order_number":"AZS-280326-016"} 
[2026-03-28 19:01:24] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-016","replaced_order_id":6516} 
[2026-03-28 19:01:24] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6517,"items_count":6,"items":[{"menu_item_id":113,"quantity":2,"price":"1199.00"},{"menu_item_id":52,"quantity":5,"price":"70.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-28 19:01:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6517,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6517}} 
[2026-03-28 19:01:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6517,"item_index":0,"menu_item_id":113} 
[2026-03-28 19:01:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6517,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":5,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":350.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6517}} 
[2026-03-28 19:01:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6517,"item_index":1,"menu_item_id":52} 
[2026-03-28 19:01:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6517,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6517}} 
[2026-03-28 19:01:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6517,"item_index":2,"menu_item_id":50} 
[2026-03-28 19:01:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6517,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6517}} 
[2026-03-28 19:01:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6517,"item_index":3,"menu_item_id":61} 
[2026-03-28 19:01:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6517,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6517}} 
[2026-03-28 19:01:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6517,"item_index":4,"menu_item_id":56} 
[2026-03-28 19:01:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6517,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6517}} 
[2026-03-28 19:01:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6517,"item_index":5,"menu_item_id":5} 
[2026-03-28 19:01:24] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6516,"new_order_id":6517,"order_number":"AZS-280326-016"} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6513,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":30942},{"menu_item_id":397,"quantity":400,"discount_percent":0,"notes":null,"id":30943},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30944},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":30945},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30946},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30947},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30948},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":30949},{"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null}],"validated_items":[{"id":30942,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":30943,"menu_item_id":397,"quantity":400,"discount_percent":0,"notes":null},{"id":30944,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":30945,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":30946,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30947,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30948,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":30949,"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6513,"items_count":9} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30942,"menu_item_id":106,"quantity":1},{"id":30943,"menu_item_id":397,"quantity":400},{"id":30944,"menu_item_id":396,"quantity":2},{"id":30945,"menu_item_id":50,"quantity":2},{"id":30946,"menu_item_id":61,"quantity":1},{"id":30947,"menu_item_id":56,"quantity":1},{"id":30948,"menu_item_id":5,"quantity":1},{"id":30949,"menu_item_id":2,"quantity":3},{"id":null,"menu_item_id":13,"quantity":4}]} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6513,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["106|1|","397|400|","396|2|","50|2|","61|1|","56|1|","5|1|","2|3|"],"new_items_map_keys":["106|1|","397|400|","396|2|","50|2|","61|1|","56|1|","5|1|","2|3|","13|4|"]} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6513,"order_number":"AZS-280326-011"} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-011","replaced_order_id":6513} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6518,"items_count":9,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":397,"quantity":400,"price":"4.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"},{"menu_item_id":13,"quantity":4,"price":"249.00"}]} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6518,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6518}} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6518,"item_index":0,"menu_item_id":106} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6518,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":400,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":1600.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6518}} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6518,"item_index":1,"menu_item_id":397} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6518,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6518}} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6518,"item_index":2,"menu_item_id":396} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6518,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6518}} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6518,"item_index":3,"menu_item_id":50} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6518,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6518}} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6518,"item_index":4,"menu_item_id":61} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6518,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6518}} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6518,"item_index":5,"menu_item_id":56} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6518,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6518}} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6518,"item_index":6,"menu_item_id":5} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6518,"item_index":7,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6518}} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6518,"item_index":7,"menu_item_id":2} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6518,"item_index":8,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":4,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6518}} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6518,"item_index":8,"menu_item_id":13} 
[2026-03-28 19:01:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6513,"new_order_id":6518,"order_number":"AZS-280326-011"} 
[2026-03-28 19:05:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T07:05:09.254Z","date_to":"2026-03-28T19:05:09.254Z","per_page":"100"} 
[2026-03-28 19:05:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T07:05:09.276Z","date_to":"2026-03-28T19:05:09.276Z","per_page":"100"} 
[2026-03-28 19:05:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":4,"unique_order_numbers":16} 
[2026-03-28 19:05:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":4,"unique_order_numbers":16} 
[2026-03-28 19:05:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T07:05:09.254Z","date_to":"2026-03-28T19:05:09.254Z","per_page":"100"} 
[2026-03-28 19:05:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":4,"unique_order_numbers":16} 
[2026-03-28 19:11:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6512,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":30939},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":30940},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30941}],"validated_items":[{"id":30939,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":30940,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":30941,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-28 19:11:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6512,"items_count":3} 
[2026-03-28 19:11:07] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30939,"menu_item_id":62,"quantity":1},{"id":30940,"menu_item_id":63,"quantity":1},{"id":30941,"menu_item_id":5,"quantity":1}]} 
[2026-03-28 19:11:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6512,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["62|1|","63|1|","5|1|"],"new_items_map_keys":["62|1|","63|1|","5|1|"]} 
[2026-03-28 19:11:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6512,"order_number":"AZS-280326-014"} 
[2026-03-28 19:11:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6512,"order_number":"AZS-280326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 19:11:07"} 
[2026-03-28 19:20:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6518,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30975},{"menu_item_id":397,"quantity":400,"price":4,"discount_percent":0,"notes":null,"id":30976},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30977},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30978},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30979},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30980},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30981},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":30982},{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":30983}],"validated_items":[{"id":30975,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":30976,"menu_item_id":397,"quantity":400,"price":4,"discount_percent":0,"notes":null},{"id":30977,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30978,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30979,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30980,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30981,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30982,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":30983,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-28 19:20:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6518,"items_count":9} 
[2026-03-28 19:20:30] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30975,"menu_item_id":106,"quantity":1},{"id":30976,"menu_item_id":397,"quantity":400},{"id":30977,"menu_item_id":396,"quantity":2},{"id":30978,"menu_item_id":50,"quantity":2},{"id":30979,"menu_item_id":61,"quantity":1},{"id":30980,"menu_item_id":56,"quantity":1},{"id":30981,"menu_item_id":5,"quantity":1},{"id":30982,"menu_item_id":2,"quantity":3},{"id":30983,"menu_item_id":13,"quantity":4}]} 
[2026-03-28 19:20:30] local.INFO: PosOrderController::update - Item changes check {"order_id":6518,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["106|1|","397|400|","396|2|","50|2|","61|1|","56|1|","5|1|","2|3|","13|4|"],"new_items_map_keys":["106|1|","397|400|","396|2|","50|2|","61|1|","56|1|","5|1|","2|3|","13|4|"]} 
[2026-03-28 19:20:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6518,"order_number":"AZS-280326-011"} 
[2026-03-28 19:20:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6518,"order_number":"AZS-280326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 19:20:30"} 
[2026-03-28 19:20:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T07:20:56.907Z","date_to":"2026-03-28T19:20:56.907Z","per_page":"100"} 
[2026-03-28 19:20:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T07:20:56.920Z","date_to":"2026-03-28T19:20:56.920Z","per_page":"100"} 
[2026-03-28 19:20:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":5,"unique_order_numbers":17} 
[2026-03-28 19:20:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":5,"unique_order_numbers":17} 
[2026-03-28 19:20:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T07:20:56.907Z","date_to":"2026-03-28T19:20:56.907Z","per_page":"100"} 
[2026-03-28 19:20:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":5,"unique_order_numbers":17} 
[2026-03-28 19:29:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6515,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":30956},{"menu_item_id":397,"quantity":30,"discount_percent":0,"notes":null,"id":30957},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":30958},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":30959},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30960},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30961},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30962},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":30956,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":30957,"menu_item_id":397,"quantity":30,"discount_percent":0,"notes":null},{"id":30958,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":30959,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":30960,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30961,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30962,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-28 19:29:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6515,"items_count":8} 
[2026-03-28 19:29:14] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30956,"menu_item_id":105,"quantity":1},{"id":30957,"menu_item_id":397,"quantity":30},{"id":30958,"menu_item_id":62,"quantity":1},{"id":30959,"menu_item_id":396,"quantity":2},{"id":30960,"menu_item_id":61,"quantity":1},{"id":30961,"menu_item_id":56,"quantity":1},{"id":30962,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-28 19:29:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6515,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["105|1|","397|30|","62|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","397|30|","62|1|","396|2|","61|1|","56|1|","5|1|","2|2|"]} 
[2026-03-28 19:29:14] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6515,"order_number":"AZS-280326-015"} 
[2026-03-28 19:29:14] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-015","replaced_order_id":6515} 
[2026-03-28 19:29:14] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6520,"items_count":8,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":397,"quantity":30,"price":"4.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-28 19:29:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6520,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6520}} 
[2026-03-28 19:29:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6520,"item_index":0,"menu_item_id":105} 
[2026-03-28 19:29:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6520,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":30,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":120.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6520}} 
[2026-03-28 19:29:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6520,"item_index":1,"menu_item_id":397} 
[2026-03-28 19:29:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6520,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6520}} 
[2026-03-28 19:29:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6520,"item_index":2,"menu_item_id":62} 
[2026-03-28 19:29:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6520,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6520}} 
[2026-03-28 19:29:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6520,"item_index":3,"menu_item_id":396} 
[2026-03-28 19:29:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6520,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6520}} 
[2026-03-28 19:29:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6520,"item_index":4,"menu_item_id":61} 
[2026-03-28 19:29:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6520,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6520}} 
[2026-03-28 19:29:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6520,"item_index":5,"menu_item_id":56} 
[2026-03-28 19:29:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6520,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6520}} 
[2026-03-28 19:29:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6520,"item_index":6,"menu_item_id":5} 
[2026-03-28 19:29:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6520,"item_index":7,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6520}} 
[2026-03-28 19:29:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6520,"item_index":7,"menu_item_id":2} 
[2026-03-28 19:29:14] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6515,"new_order_id":6520,"order_number":"AZS-280326-015"} 
[2026-03-28 19:30:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T07:30:03.682Z","date_to":"2026-03-28T19:30:03.682Z","per_page":"100"} 
[2026-03-28 19:30:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":6,"unique_order_numbers":18} 
[2026-03-28 19:35:46] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T07:35:44.592Z","date_to":"2026-03-28T19:35:44.592Z","per_page":"100"} 
[2026-03-28 19:35:46] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T07:35:44.605Z","date_to":"2026-03-28T19:35:44.605Z","per_page":"100"} 
[2026-03-28 19:35:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":6,"unique_order_numbers":18} 
[2026-03-28 19:35:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":6,"unique_order_numbers":18} 
[2026-03-28 19:35:46] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T07:35:44.592Z","date_to":"2026-03-28T19:35:44.592Z","per_page":"100"} 
[2026-03-28 19:35:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":6,"unique_order_numbers":18} 
[2026-03-28 19:39:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6521,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":30993},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30993,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-28 19:39:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6521,"items_count":5} 
[2026-03-28 19:39:53] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30993,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":48,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1}]} 
[2026-03-28 19:39:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6521,"has_item_changes":true,"old_items_count":1,"new_items_count":5,"old_items_map_keys":["2|1|"],"new_items_map_keys":["2|1|","48|1|","61|1|","56|1|","105|1|"]} 
[2026-03-28 19:39:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6521,"order_number":"AZS-280326-018"} 
[2026-03-28 19:39:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-018","replaced_order_id":6521} 
[2026-03-28 19:39:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6522,"items_count":5,"items":[{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"}]} 
[2026-03-28 19:39:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6522,"item_index":0,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6522}} 
[2026-03-28 19:39:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6522,"item_index":0,"menu_item_id":2} 
[2026-03-28 19:39:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6522,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6522}} 
[2026-03-28 19:39:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6522,"item_index":1,"menu_item_id":48} 
[2026-03-28 19:39:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6522,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6522}} 
[2026-03-28 19:39:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6522,"item_index":2,"menu_item_id":61} 
[2026-03-28 19:39:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6522,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6522}} 
[2026-03-28 19:39:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6522,"item_index":3,"menu_item_id":56} 
[2026-03-28 19:39:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6522,"item_index":4,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6522}} 
[2026-03-28 19:39:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6522,"item_index":4,"menu_item_id":105} 
[2026-03-28 19:39:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6521,"new_order_id":6522,"order_number":"AZS-280326-018"} 
[2026-03-28 19:40:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6517,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null,"id":30969},{"menu_item_id":52,"quantity":8,"discount_percent":0,"notes":null,"id":30970},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":30971},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":30972},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":30973},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":30974}],"validated_items":[{"id":30969,"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null},{"id":30970,"menu_item_id":52,"quantity":8,"discount_percent":0,"notes":null},{"id":30971,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":30972,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":30973,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":30974,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-28 19:40:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6517,"items_count":6} 
[2026-03-28 19:40:18] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30969,"menu_item_id":113,"quantity":2},{"id":30970,"menu_item_id":52,"quantity":8},{"id":30971,"menu_item_id":50,"quantity":2},{"id":30972,"menu_item_id":61,"quantity":2},{"id":30973,"menu_item_id":56,"quantity":2},{"id":30974,"menu_item_id":5,"quantity":1}]} 
[2026-03-28 19:40:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6517,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|2|","52|5|","50|2|","61|2|","56|2|","5|1|"],"new_items_map_keys":["113|2|","52|8|","50|2|","61|2|","56|2|","5|1|"]} 
[2026-03-28 19:40:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6517,"order_number":"AZS-280326-016"} 
[2026-03-28 19:40:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-016","replaced_order_id":6517} 
[2026-03-28 19:40:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6523,"items_count":6,"items":[{"menu_item_id":113,"quantity":2,"price":"1199.00"},{"menu_item_id":52,"quantity":8,"price":"70.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-28 19:40:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6523,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6523}} 
[2026-03-28 19:40:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6523,"item_index":0,"menu_item_id":113} 
[2026-03-28 19:40:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6523,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":8,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":560.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6523}} 
[2026-03-28 19:40:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6523,"item_index":1,"menu_item_id":52} 
[2026-03-28 19:40:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6523,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6523}} 
[2026-03-28 19:40:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6523,"item_index":2,"menu_item_id":50} 
[2026-03-28 19:40:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6523,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6523}} 
[2026-03-28 19:40:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6523,"item_index":3,"menu_item_id":61} 
[2026-03-28 19:40:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6523,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6523}} 
[2026-03-28 19:40:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6523,"item_index":4,"menu_item_id":56} 
[2026-03-28 19:40:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6523,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6523}} 
[2026-03-28 19:40:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6523,"item_index":5,"menu_item_id":5} 
[2026-03-28 19:40:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6517,"new_order_id":6523,"order_number":"AZS-280326-016"} 
[2026-03-28 19:40:52] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6518,"order_number":"AZS-280326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":9000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 19:40:52"} 
[2026-03-28 19:40:52] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6518,"order_number":"AZS-280326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":9000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 19:40:52"} 
[2026-03-28 19:40:52] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6518,"order_number":"AZS-280326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":9000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 19:40:52"} 
[2026-03-28 19:40:52] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6518,"order_number":"AZS-280326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":9000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 19:40:52"} 
[2026-03-28 19:40:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6518,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":30975},{"menu_item_id":397,"quantity":400,"price":4,"discount_percent":0,"notes":null,"id":30976},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30977},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":30978},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30979},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30980},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30981},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":30982},{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":30983}],"validated_items":[{"id":30975,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":30976,"menu_item_id":397,"quantity":400,"price":4,"discount_percent":0,"notes":null},{"id":30977,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30978,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":30979,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30980,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30981,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30982,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":30983,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-28 19:40:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6518,"items_count":9} 
[2026-03-28 19:40:52] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30975,"menu_item_id":106,"quantity":1},{"id":30976,"menu_item_id":397,"quantity":400},{"id":30977,"menu_item_id":396,"quantity":2},{"id":30978,"menu_item_id":50,"quantity":2},{"id":30979,"menu_item_id":61,"quantity":1},{"id":30980,"menu_item_id":56,"quantity":1},{"id":30981,"menu_item_id":5,"quantity":1},{"id":30982,"menu_item_id":2,"quantity":3},{"id":30983,"menu_item_id":13,"quantity":4}]} 
[2026-03-28 19:40:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6518,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["106|1|","397|400|","396|2|","50|2|","61|1|","56|1|","5|1|","2|3|","13|4|"],"new_items_map_keys":["106|1|","397|400|","396|2|","50|2|","61|1|","56|1|","5|1|","2|3|","13|4|"]} 
[2026-03-28 19:40:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6518,"order_number":"AZS-280326-011"} 
[2026-03-28 19:40:52] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6518,"order_number":"AZS-280326-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":9000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-28 19:40:52","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-28 19:40:52"} 
[2026-03-28 19:40:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6518,"order_number":"AZS-280326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-28 19:40:52"} 
[2026-03-28 19:40:52] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6518,"order_number":"AZS-280326-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"9000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-28 19:40:52","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":9000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"9000.00","database_verification_match":true,"timestamp":"2026-03-28 19:40:52"} 
[2026-03-28 19:40:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T07:41:02.600Z","date_to":"2026-03-28T19:41:02.600Z","per_page":"100"} 
[2026-03-28 19:40:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":5,"unique_order_numbers":18} 
[2026-03-28 19:43:15] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6512,"order_number":"AZS-280326-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 19:43:14"} 
[2026-03-28 19:43:15] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6512,"order_number":"AZS-280326-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 19:43:15"} 
[2026-03-28 19:43:15] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6512,"order_number":"AZS-280326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 19:43:15"} 
[2026-03-28 19:43:15] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6512,"order_number":"AZS-280326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 19:43:15"} 
[2026-03-28 19:43:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6512,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":30939},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":30940},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30941}],"validated_items":[{"id":30939,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":30940,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":30941,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-28 19:43:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6512,"items_count":3} 
[2026-03-28 19:43:15] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30939,"menu_item_id":62,"quantity":1},{"id":30940,"menu_item_id":63,"quantity":1},{"id":30941,"menu_item_id":5,"quantity":1}]} 
[2026-03-28 19:43:15] local.INFO: PosOrderController::update - Item changes check {"order_id":6512,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["62|1|","63|1|","5|1|"],"new_items_map_keys":["62|1|","63|1|","5|1|"]} 
[2026-03-28 19:43:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6512,"order_number":"AZS-280326-014"} 
[2026-03-28 19:43:15] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6512,"order_number":"AZS-280326-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-28 19:43:15","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-28 19:43:15"} 
[2026-03-28 19:43:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6512,"order_number":"AZS-280326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-28 19:43:15"} 
[2026-03-28 19:43:15] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6512,"order_number":"AZS-280326-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-28 19:43:15","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-03-28 19:43:15"} 
[2026-03-28 19:43:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T07:43:23.780Z","date_to":"2026-03-28T19:43:23.780Z","per_page":"100"} 
[2026-03-28 19:43:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T07:43:23.767Z","date_to":"2026-03-28T19:43:23.767Z","per_page":"100"} 
[2026-03-28 19:43:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":4,"unique_order_numbers":18} 
[2026-03-28 19:43:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":4,"unique_order_numbers":18} 
[2026-03-28 19:43:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T07:43:23.767Z","date_to":"2026-03-28T19:43:23.767Z","per_page":"100"} 
[2026-03-28 19:43:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":4,"unique_order_numbers":18} 
[2026-03-28 19:59:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6520,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30985},{"menu_item_id":397,"quantity":30,"price":4,"discount_percent":0,"notes":null,"id":30986},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":30987},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30988},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30989},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30990},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30991},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30992}],"validated_items":[{"id":30985,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":30986,"menu_item_id":397,"quantity":30,"price":4,"discount_percent":0,"notes":null},{"id":30987,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":30988,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30989,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30990,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30991,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30992,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-28 19:59:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6520,"items_count":8} 
[2026-03-28 19:59:04] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30985,"menu_item_id":105,"quantity":1},{"id":30986,"menu_item_id":397,"quantity":30},{"id":30987,"menu_item_id":62,"quantity":1},{"id":30988,"menu_item_id":396,"quantity":2},{"id":30989,"menu_item_id":61,"quantity":1},{"id":30990,"menu_item_id":56,"quantity":1},{"id":30991,"menu_item_id":5,"quantity":1},{"id":30992,"menu_item_id":2,"quantity":2}]} 
[2026-03-28 19:59:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6520,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["105|1|","397|30|","62|1|","396|2|","61|1|","56|1|","5|1|","2|2|"],"new_items_map_keys":["105|1|","397|30|","62|1|","396|2|","61|1|","56|1|","5|1|","2|2|"]} 
[2026-03-28 19:59:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6520,"order_number":"AZS-280326-015"} 
[2026-03-28 19:59:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6520,"order_number":"AZS-280326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 19:59:04"} 
[2026-03-28 19:59:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6523,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null,"id":30999},{"menu_item_id":52,"quantity":8,"discount_percent":0,"notes":null,"id":31000},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":31001},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31002},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":31003},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":31004}],"validated_items":[{"id":30999,"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null},{"id":31000,"menu_item_id":52,"quantity":8,"discount_percent":0,"notes":null},{"id":31001,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":31002,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31003,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":31004,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-28 19:59:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6523,"items_count":6} 
[2026-03-28 19:59:42] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30999,"menu_item_id":113,"quantity":2},{"id":31000,"menu_item_id":52,"quantity":8},{"id":31001,"menu_item_id":50,"quantity":2},{"id":31002,"menu_item_id":61,"quantity":2},{"id":31003,"menu_item_id":56,"quantity":2},{"id":31004,"menu_item_id":5,"quantity":2}]} 
[2026-03-28 19:59:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6523,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|2|","52|8|","50|2|","61|2|","56|2|","5|1|"],"new_items_map_keys":["113|2|","52|8|","50|2|","61|2|","56|2|","5|2|"]} 
[2026-03-28 19:59:42] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6523,"order_number":"AZS-280326-016"} 
[2026-03-28 19:59:42] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-016","replaced_order_id":6523} 
[2026-03-28 19:59:42] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6524,"items_count":6,"items":[{"menu_item_id":113,"quantity":2,"price":"1199.00"},{"menu_item_id":52,"quantity":8,"price":"70.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"}]} 
[2026-03-28 19:59:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6524,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6524}} 
[2026-03-28 19:59:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6524,"item_index":0,"menu_item_id":113} 
[2026-03-28 19:59:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6524,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":8,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":560.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6524}} 
[2026-03-28 19:59:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6524,"item_index":1,"menu_item_id":52} 
[2026-03-28 19:59:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6524,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6524}} 
[2026-03-28 19:59:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6524,"item_index":2,"menu_item_id":50} 
[2026-03-28 19:59:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6524,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6524}} 
[2026-03-28 19:59:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6524,"item_index":3,"menu_item_id":61} 
[2026-03-28 19:59:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6524,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6524}} 
[2026-03-28 19:59:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6524,"item_index":4,"menu_item_id":56} 
[2026-03-28 19:59:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6524,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6524}} 
[2026-03-28 19:59:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6524,"item_index":5,"menu_item_id":5} 
[2026-03-28 19:59:42] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6523,"new_order_id":6524,"order_number":"AZS-280326-016"} 
[2026-03-28 20:07:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6524,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":31005},{"menu_item_id":52,"quantity":8,"price":70,"discount_percent":0,"notes":null,"id":31006},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":31007},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31008},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31009},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":31010}],"validated_items":[{"id":31005,"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":31006,"menu_item_id":52,"quantity":8,"price":70,"discount_percent":0,"notes":null},{"id":31007,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":31008,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31009,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31010,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-28 20:07:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6524,"items_count":6} 
[2026-03-28 20:07:32] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31005,"menu_item_id":113,"quantity":2},{"id":31006,"menu_item_id":52,"quantity":8},{"id":31007,"menu_item_id":50,"quantity":2},{"id":31008,"menu_item_id":61,"quantity":2},{"id":31009,"menu_item_id":56,"quantity":2},{"id":31010,"menu_item_id":5,"quantity":2}]} 
[2026-03-28 20:07:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6524,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|2|","52|8|","50|2|","61|2|","56|2|","5|2|"],"new_items_map_keys":["113|2|","52|8|","50|2|","61|2|","56|2|","5|2|"]} 
[2026-03-28 20:07:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6524,"order_number":"AZS-280326-016"} 
[2026-03-28 20:07:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6524,"order_number":"AZS-280326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 20:07:32"} 
[2026-03-28 20:07:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6520,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30985},{"menu_item_id":397,"quantity":30,"price":4,"discount_percent":0,"notes":null,"id":30986},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":30987},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30988},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30989},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30990},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30991},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30992}],"validated_items":[{"id":30985,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":30986,"menu_item_id":397,"quantity":30,"price":4,"discount_percent":0,"notes":null},{"id":30987,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":30988,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30989,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30990,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30991,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30992,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-28 20:07:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6520,"items_count":8} 
[2026-03-28 20:07:49] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30985,"menu_item_id":105,"quantity":1},{"id":30986,"menu_item_id":397,"quantity":30},{"id":30987,"menu_item_id":62,"quantity":1},{"id":30988,"menu_item_id":396,"quantity":2},{"id":30989,"menu_item_id":61,"quantity":1},{"id":30990,"menu_item_id":56,"quantity":1},{"id":30991,"menu_item_id":5,"quantity":1},{"id":30992,"menu_item_id":2,"quantity":2}]} 
[2026-03-28 20:07:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6520,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["105|1|","397|30|","62|1|","396|2|","61|1|","56|1|","5|1|","2|2|"],"new_items_map_keys":["105|1|","397|30|","62|1|","396|2|","61|1|","56|1|","5|1|","2|2|"]} 
[2026-03-28 20:07:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6520,"order_number":"AZS-280326-015"} 
[2026-03-28 20:07:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6520,"order_number":"AZS-280326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 20:07:49"} 
[2026-03-28 20:08:23] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6520,"order_number":"AZS-280326-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 20:08:23"} 
[2026-03-28 20:08:23] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6520,"order_number":"AZS-280326-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 20:08:23"} 
[2026-03-28 20:08:23] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6520,"order_number":"AZS-280326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 20:08:23"} 
[2026-03-28 20:08:23] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6520,"order_number":"AZS-280326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 20:08:23"} 
[2026-03-28 20:08:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":1,"order_id":6520,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":30985},{"menu_item_id":397,"quantity":30,"price":4,"discount_percent":0,"notes":null,"id":30986},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":30987},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":30988},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":30990},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":30991},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":30992}],"validated_items":[{"id":30985,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":30986,"menu_item_id":397,"quantity":30,"price":4,"discount_percent":0,"notes":null},{"id":30987,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":30988,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":30990,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":30991,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":30992,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-28 20:08:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6520,"items_count":7} 
[2026-03-28 20:08:23] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":1,"items_to_remove":[30989],"items":[{"id":30985,"menu_item_id":105,"quantity":1},{"id":30986,"menu_item_id":397,"quantity":30},{"id":30987,"menu_item_id":62,"quantity":1},{"id":30988,"menu_item_id":396,"quantity":2},{"id":30990,"menu_item_id":56,"quantity":1},{"id":30991,"menu_item_id":5,"quantity":1},{"id":30992,"menu_item_id":2,"quantity":2}]} 
[2026-03-28 20:08:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6520,"has_item_changes":true,"old_items_count":8,"new_items_count":7,"old_items_map_keys":["105|1|","397|30|","62|1|","396|2|","61|1|","56|1|","5|1|","2|2|"],"new_items_map_keys":["105|1|","397|30|","62|1|","396|2|","56|1|","5|1|","2|2|"]} 
[2026-03-28 20:08:23] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6520,"order_number":"AZS-280326-015","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-28 20:08:23","original_payment_amount":"0.00","grand_total":4645.0,"timestamp":"2026-03-28 20:08:23"} 
[2026-03-28 20:08:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6520,"order_number":"AZS-280326-015"} 
[2026-03-28 20:08:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-015","replaced_order_id":6520} 
[2026-03-28 20:08:23] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6520,"new_order_id":6525,"order_number":"AZS-280326-015","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-28 20:08:23","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-28 20:08:23"} 
[2026-03-28 20:08:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6525,"items_count":7,"items":[{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":397,"quantity":30,"price":4.0},{"menu_item_id":62,"quantity":1,"price":1499.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":2,"quantity":2,"price":130.0}]} 
[2026-03-28 20:08:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6525,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6525}} 
[2026-03-28 20:08:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6525,"item_index":0,"menu_item_id":105} 
[2026-03-28 20:08:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6525,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":30,"price":4.0,"discount_percent":0.0,"discount_amount":0.0,"total":120.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6525}} 
[2026-03-28 20:08:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6525,"item_index":1,"menu_item_id":397} 
[2026-03-28 20:08:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6525,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":1499.0,"discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6525}} 
[2026-03-28 20:08:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6525,"item_index":2,"menu_item_id":62} 
[2026-03-28 20:08:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6525,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6525}} 
[2026-03-28 20:08:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6525,"item_index":3,"menu_item_id":396} 
[2026-03-28 20:08:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6525,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6525}} 
[2026-03-28 20:08:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6525,"item_index":4,"menu_item_id":56} 
[2026-03-28 20:08:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6525,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6525}} 
[2026-03-28 20:08:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6525,"item_index":5,"menu_item_id":5} 
[2026-03-28 20:08:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6525,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6525}} 
[2026-03-28 20:08:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6525,"item_index":6,"menu_item_id":2} 
[2026-03-28 20:08:23] local.ERROR: Error tracking recipe usage for order 6525: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6525, 105, 196, 1, 500, 0.00, Order #AZS-280326-015 - 1x Mutton Shinwari - Half, 2026-03-28 20:08:23, 2026-03-28 20:08:23))  
[2026-03-28 20:08:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6520,"new_order_id":6525,"order_number":"AZS-280326-015"} 
[2026-03-28 20:08:23] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6520,"new_order_id":6525,"order_number":"AZS-280326-015","route":"api/orders/6520"} 
[2026-03-28 20:08:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T08:08:31.666Z","date_to":"2026-03-28T20:08:31.666Z","per_page":"100"} 
[2026-03-28 20:08:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T08:08:31.645Z","date_to":"2026-03-28T20:08:31.645Z","per_page":"100"} 
[2026-03-28 20:08:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-03-28 20:08:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-03-28 20:08:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T08:08:31.645Z","date_to":"2026-03-28T20:08:31.645Z","per_page":"100"} 
[2026-03-28 20:08:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-03-28 20:12:52] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6524,"order_number":"AZS-280326-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":50006,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 20:12:52"} 
[2026-03-28 20:12:52] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6524,"order_number":"AZS-280326-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":50006,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 20:12:52"} 
[2026-03-28 20:12:52] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6524,"order_number":"AZS-280326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":50006,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 20:12:52"} 
[2026-03-28 20:12:52] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6524,"order_number":"AZS-280326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":50006,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 20:12:52"} 
[2026-03-28 20:12:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6524,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":31005},{"menu_item_id":52,"quantity":8,"price":70,"discount_percent":0,"notes":null,"id":31006},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":31007},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31008},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31009},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":31010}],"validated_items":[{"id":31005,"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":31006,"menu_item_id":52,"quantity":8,"price":70,"discount_percent":0,"notes":null},{"id":31007,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":31008,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31009,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31010,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-28 20:12:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6524,"items_count":6} 
[2026-03-28 20:12:52] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31005,"menu_item_id":113,"quantity":2},{"id":31006,"menu_item_id":52,"quantity":8},{"id":31007,"menu_item_id":50,"quantity":2},{"id":31008,"menu_item_id":61,"quantity":2},{"id":31009,"menu_item_id":56,"quantity":2},{"id":31010,"menu_item_id":5,"quantity":2}]} 
[2026-03-28 20:12:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6524,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|2|","52|8|","50|2|","61|2|","56|2|","5|2|"],"new_items_map_keys":["113|2|","52|8|","50|2|","61|2|","56|2|","5|2|"]} 
[2026-03-28 20:12:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6524,"order_number":"AZS-280326-016"} 
[2026-03-28 20:12:52] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6524,"order_number":"AZS-280326-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":50006,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-28 20:12:52","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-28 20:12:52"} 
[2026-03-28 20:12:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6524,"order_number":"AZS-280326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-28 20:12:52"} 
[2026-03-28 20:12:52] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6524,"order_number":"AZS-280326-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"50006.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-28 20:12:52","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":50006,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"50006.00","database_verification_match":true,"timestamp":"2026-03-28 20:12:52"} 
[2026-03-28 20:12:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T08:13:00.659Z","date_to":"2026-03-28T20:13:00.659Z","per_page":"100"} 
[2026-03-28 20:12:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T08:13:00.677Z","date_to":"2026-03-28T20:13:00.677Z","per_page":"100"} 
[2026-03-28 20:12:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":2,"unique_order_numbers":18} 
[2026-03-28 20:12:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":2,"unique_order_numbers":18} 
[2026-03-28 20:12:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T08:13:00.659Z","date_to":"2026-03-28T20:13:00.659Z","per_page":"100"} 
[2026-03-28 20:12:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":2,"unique_order_numbers":18} 
[2026-03-28 20:32:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6522,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":30994},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":30995},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":30996},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":30997},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":30998},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":30994,"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null},{"id":30995,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"id":30996,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":30997,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":30998,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-28 20:32:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6522,"items_count":6} 
[2026-03-28 20:32:03] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30994,"menu_item_id":2,"quantity":3},{"id":30995,"menu_item_id":48,"quantity":1},{"id":30996,"menu_item_id":61,"quantity":1},{"id":30997,"menu_item_id":56,"quantity":1},{"id":30998,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-28 20:32:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6522,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["2|1|","48|1|","61|1|","56|1|","105|1|"],"new_items_map_keys":["2|3|","48|1|","61|1|","56|1|","105|1|","5|1|"]} 
[2026-03-28 20:32:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6522,"order_number":"AZS-280326-018"} 
[2026-03-28 20:32:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-018","replaced_order_id":6522} 
[2026-03-28 20:32:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6526,"items_count":6,"items":[{"menu_item_id":2,"quantity":3,"price":"130.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-28 20:32:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6526,"item_index":0,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6526}} 
[2026-03-28 20:32:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6526,"item_index":0,"menu_item_id":2} 
[2026-03-28 20:32:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6526,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6526}} 
[2026-03-28 20:32:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6526,"item_index":1,"menu_item_id":48} 
[2026-03-28 20:32:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6526,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6526}} 
[2026-03-28 20:32:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6526,"item_index":2,"menu_item_id":61} 
[2026-03-28 20:32:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6526,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6526}} 
[2026-03-28 20:32:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6526,"item_index":3,"menu_item_id":56} 
[2026-03-28 20:32:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6526,"item_index":4,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6526}} 
[2026-03-28 20:32:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6526,"item_index":4,"menu_item_id":105} 
[2026-03-28 20:32:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6526,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6526}} 
[2026-03-28 20:32:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6526,"item_index":5,"menu_item_id":5} 
[2026-03-28 20:32:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6522,"new_order_id":6526,"order_number":"AZS-280326-018"} 
[2026-03-28 20:33:28] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6519,"order_number":"AZS-280326-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2099,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 20:33:28"} 
[2026-03-28 20:33:28] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6519,"order_number":"AZS-280326-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2099,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 20:33:28"} 
[2026-03-28 20:33:28] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6519,"order_number":"AZS-280326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2099,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 20:33:28"} 
[2026-03-28 20:33:28] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6519,"order_number":"AZS-280326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2099,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 20:33:28"} 
[2026-03-28 20:33:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6519,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":30984}],"validated_items":[{"id":30984,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null}]} 
[2026-03-28 20:33:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6519,"items_count":1} 
[2026-03-28 20:33:28] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":30984,"menu_item_id":386,"quantity":1}]} 
[2026-03-28 20:33:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6519,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|"]} 
[2026-03-28 20:33:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6519,"order_number":"AZS-280326-017"} 
[2026-03-28 20:33:28] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6519,"order_number":"AZS-280326-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2099,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-28 20:33:28","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-28 20:33:28"} 
[2026-03-28 20:33:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6519,"order_number":"AZS-280326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-28 20:33:28"} 
[2026-03-28 20:33:28] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6519,"order_number":"AZS-280326-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2099.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-28 20:33:28","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2099,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2099.00","database_verification_match":true,"timestamp":"2026-03-28 20:33:28"} 
[2026-03-28 20:33:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T08:33:37.737Z","date_to":"2026-03-28T20:33:37.737Z","per_page":"100"} 
[2026-03-28 20:33:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T08:33:37.751Z","date_to":"2026-03-28T20:33:37.751Z","per_page":"100"} 
[2026-03-28 20:33:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":1,"unique_order_numbers":18} 
[2026-03-28 20:33:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":1,"unique_order_numbers":18} 
[2026-03-28 20:33:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T08:33:37.737Z","date_to":"2026-03-28T20:33:37.737Z","per_page":"100"} 
[2026-03-28 20:33:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":1,"unique_order_numbers":18} 
[2026-03-28 20:34:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T08:34:08.727Z","date_to":"2026-03-28T20:34:08.727Z","per_page":"100"} 
[2026-03-28 20:34:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T08:34:08.744Z","date_to":"2026-03-28T20:34:08.744Z","per_page":"100"} 
[2026-03-28 20:34:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":1,"unique_order_numbers":18} 
[2026-03-28 20:34:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":1,"unique_order_numbers":18} 
[2026-03-28 20:34:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T08:34:08.727Z","date_to":"2026-03-28T20:34:08.727Z","per_page":"100"} 
[2026-03-28 20:34:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":1,"unique_order_numbers":18} 
[2026-03-28 20:39:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6526,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":31018},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":31019},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31020},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31021},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":31022},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31023},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":31018,"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null},{"id":31019,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"id":31020,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31021,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31022,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":31023,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-28 20:39:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6526,"items_count":7} 
[2026-03-28 20:39:00] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31018,"menu_item_id":2,"quantity":3},{"id":31019,"menu_item_id":48,"quantity":1},{"id":31020,"menu_item_id":61,"quantity":1},{"id":31021,"menu_item_id":56,"quantity":1},{"id":31022,"menu_item_id":105,"quantity":1},{"id":31023,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-03-28 20:39:00] local.INFO: PosOrderController::update - Item changes check {"order_id":6526,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["2|3|","48|1|","61|1|","56|1|","105|1|","5|1|"],"new_items_map_keys":["2|3|","48|1|","61|1|","56|1|","105|1|","5|1|","13|2|"]} 
[2026-03-28 20:39:00] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6526,"order_number":"AZS-280326-018"} 
[2026-03-28 20:39:00] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-018","replaced_order_id":6526} 
[2026-03-28 20:39:00] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6527,"items_count":7,"items":[{"menu_item_id":2,"quantity":3,"price":"130.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"}]} 
[2026-03-28 20:39:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6527,"item_index":0,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6527}} 
[2026-03-28 20:39:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6527,"item_index":0,"menu_item_id":2} 
[2026-03-28 20:39:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6527,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6527}} 
[2026-03-28 20:39:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6527,"item_index":1,"menu_item_id":48} 
[2026-03-28 20:39:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6527,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6527}} 
[2026-03-28 20:39:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6527,"item_index":2,"menu_item_id":61} 
[2026-03-28 20:39:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6527,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6527}} 
[2026-03-28 20:39:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6527,"item_index":3,"menu_item_id":56} 
[2026-03-28 20:39:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6527,"item_index":4,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6527}} 
[2026-03-28 20:39:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6527,"item_index":4,"menu_item_id":105} 
[2026-03-28 20:39:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6527,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6527}} 
[2026-03-28 20:39:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6527,"item_index":5,"menu_item_id":5} 
[2026-03-28 20:39:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6527,"item_index":6,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6527}} 
[2026-03-28 20:39:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6527,"item_index":6,"menu_item_id":13} 
[2026-03-28 20:39:00] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6526,"new_order_id":6527,"order_number":"AZS-280326-018"} 
[2026-03-28 20:40:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T08:40:25.016Z","date_to":"2026-03-28T20:40:25.016Z","per_page":"100"} 
[2026-03-28 20:40:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T08:40:25.035Z","date_to":"2026-03-28T20:40:25.035Z","per_page":"100"} 
[2026-03-28 20:40:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-019","AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":2,"unique_order_numbers":19} 
[2026-03-28 20:40:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-019","AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":2,"unique_order_numbers":19} 
[2026-03-28 20:40:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T08:40:25.016Z","date_to":"2026-03-28T20:40:25.016Z","per_page":"100"} 
[2026-03-28 20:40:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-019","AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":2,"unique_order_numbers":19} 
[2026-03-28 20:41:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6527,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":31024},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":31025},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31026},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31027},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31028},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31029},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":31030}],"validated_items":[{"id":31024,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":31025,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":31026,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31027,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31028,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":31029,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31030,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-28 20:41:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6527,"items_count":7} 
[2026-03-28 20:41:41] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31024,"menu_item_id":2,"quantity":3},{"id":31025,"menu_item_id":48,"quantity":1},{"id":31026,"menu_item_id":61,"quantity":1},{"id":31027,"menu_item_id":56,"quantity":1},{"id":31028,"menu_item_id":105,"quantity":1},{"id":31029,"menu_item_id":5,"quantity":1},{"id":31030,"menu_item_id":13,"quantity":2}]} 
[2026-03-28 20:41:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6527,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["2|3|","48|1|","61|1|","56|1|","105|1|","5|1|","13|2|"],"new_items_map_keys":["2|3|","48|1|","61|1|","56|1|","105|1|","5|1|","13|2|"]} 
[2026-03-28 20:41:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6527,"order_number":"AZS-280326-018"} 
[2026-03-28 20:41:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6527,"order_number":"AZS-280326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 20:41:41"} 
[2026-03-28 20:41:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6528,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":31031}],"validated_items":[{"id":31031,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-28 20:41:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6528,"items_count":1} 
[2026-03-28 20:41:52] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31031,"menu_item_id":13,"quantity":2}]} 
[2026-03-28 20:41:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6528,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|2|"]} 
[2026-03-28 20:41:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6528,"order_number":"AZS-280326-019"} 
[2026-03-28 20:41:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6528,"order_number":"AZS-280326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-28 20:41:52"} 
[2026-03-28 20:51:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6527,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null,"id":31024},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":31025},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31026},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31027},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":31028},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31029},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null,"id":31030}],"validated_items":[{"id":31024,"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"id":31025,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"id":31026,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31027,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31028,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":31029,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":31030,"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-28 20:51:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6527,"items_count":7} 
[2026-03-28 20:51:18] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31024,"menu_item_id":2,"quantity":2},{"id":31025,"menu_item_id":48,"quantity":1},{"id":31026,"menu_item_id":61,"quantity":1},{"id":31027,"menu_item_id":56,"quantity":1},{"id":31028,"menu_item_id":105,"quantity":1},{"id":31029,"menu_item_id":5,"quantity":1},{"id":31030,"menu_item_id":13,"quantity":2}]} 
[2026-03-28 20:51:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6527,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["2|3|","48|1|","61|1|","56|1|","105|1|","5|1|","13|2|"],"new_items_map_keys":["2|2|","48|1|","61|1|","56|1|","105|1|","5|1|","13|2|"]} 
[2026-03-28 20:51:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6527,"order_number":"AZS-280326-018"} 
[2026-03-28 20:51:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-018","replaced_order_id":6527} 
[2026-03-28 20:51:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6529,"items_count":7,"items":[{"menu_item_id":2,"quantity":2,"price":"130.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"}]} 
[2026-03-28 20:51:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6529,"item_index":0,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6529}} 
[2026-03-28 20:51:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6529,"item_index":0,"menu_item_id":2} 
[2026-03-28 20:51:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6529,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6529}} 
[2026-03-28 20:51:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6529,"item_index":1,"menu_item_id":48} 
[2026-03-28 20:51:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6529,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6529}} 
[2026-03-28 20:51:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6529,"item_index":2,"menu_item_id":61} 
[2026-03-28 20:51:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6529,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6529}} 
[2026-03-28 20:51:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6529,"item_index":3,"menu_item_id":56} 
[2026-03-28 20:51:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6529,"item_index":4,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6529}} 
[2026-03-28 20:51:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6529,"item_index":4,"menu_item_id":105} 
[2026-03-28 20:51:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6529,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6529}} 
[2026-03-28 20:51:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6529,"item_index":5,"menu_item_id":5} 
[2026-03-28 20:51:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6529,"item_index":6,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6529}} 
[2026-03-28 20:51:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6529,"item_index":6,"menu_item_id":13} 
[2026-03-28 20:51:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6527,"new_order_id":6529,"order_number":"AZS-280326-018"} 
[2026-03-28 20:51:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6529,"item_index":0,"item_id":31024} 
[2026-03-28 20:51:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6529,"item_index":1,"item_id":31025} 
[2026-03-28 20:51:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6529,"item_index":2,"item_id":31026} 
[2026-03-28 20:51:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6529,"item_index":3,"item_id":31027} 
[2026-03-28 20:51:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6529,"item_index":4,"item_id":31028} 
[2026-03-28 20:51:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6529,"item_index":5,"item_id":31029} 
[2026-03-28 20:51:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6529,"item_index":6,"item_id":31030} 
[2026-03-28 20:51:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":6529,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":31024},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":31025},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31026},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31027},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31028},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31029},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":31030}],"validated_items":[{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-28 20:51:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6529,"items_count":7} 
[2026-03-28 20:51:23] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[31032,31033,31034,31035,31036,31037,31038],"items":[{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":48,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-03-28 20:51:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6529,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["2|2|","48|1|","61|1|","56|1|","105|1|","5|1|","13|2|"],"new_items_map_keys":["2|2|","48|1|","61|1|","56|1|","105|1|","5|1|","13|2|"]} 
[2026-03-28 20:51:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6529,"order_number":"AZS-280326-018"} 
[2026-03-28 20:51:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6529,"order_number":"AZS-280326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 20:51:23"} 
[2026-03-28 20:54:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":2,"order_id":6529,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":31032},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":31033},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31034},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31036},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":31038}],"validated_items":[{"id":31032,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":31033,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":31034,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31036,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":31038,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-28 20:54:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6529,"items_count":5} 
[2026-03-28 20:54:09] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":2,"items_to_remove":[31035,31037],"items":[{"id":31032,"menu_item_id":2,"quantity":2},{"id":31033,"menu_item_id":48,"quantity":1},{"id":31034,"menu_item_id":61,"quantity":1},{"id":31036,"menu_item_id":105,"quantity":1},{"id":31038,"menu_item_id":13,"quantity":2}]} 
[2026-03-28 20:54:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6529,"has_item_changes":true,"old_items_count":7,"new_items_count":5,"old_items_map_keys":["2|2|","48|1|","61|1|","56|1|","105|1|","5|1|","13|2|"],"new_items_map_keys":["2|2|","48|1|","61|1|","105|1|","13|2|"]} 
[2026-03-28 20:54:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6529,"order_number":"AZS-280326-018"} 
[2026-03-28 20:54:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-018","replaced_order_id":6529} 
[2026-03-28 20:54:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6530,"items_count":5,"items":[{"menu_item_id":2,"quantity":2,"price":130.0},{"menu_item_id":48,"quantity":1,"price":250.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":13,"quantity":2,"price":249.0}]} 
[2026-03-28 20:54:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6530,"item_index":0,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6530}} 
[2026-03-28 20:54:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6530,"item_index":0,"menu_item_id":2} 
[2026-03-28 20:54:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6530,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":250.0,"discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6530}} 
[2026-03-28 20:54:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6530,"item_index":1,"menu_item_id":48} 
[2026-03-28 20:54:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6530,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6530}} 
[2026-03-28 20:54:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6530,"item_index":2,"menu_item_id":61} 
[2026-03-28 20:54:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6530,"item_index":3,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6530}} 
[2026-03-28 20:54:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6530,"item_index":3,"menu_item_id":105} 
[2026-03-28 20:54:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6530,"item_index":4,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6530}} 
[2026-03-28 20:54:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6530,"item_index":4,"menu_item_id":13} 
[2026-03-28 20:54:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6529,"new_order_id":6530,"order_number":"AZS-280326-018"} 
[2026-03-28 20:54:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6530,"item_index":0,"item_id":31032} 
[2026-03-28 20:54:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6530,"item_index":1,"item_id":31033} 
[2026-03-28 20:54:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6530,"item_index":2,"item_id":31034} 
[2026-03-28 20:54:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6530,"item_index":3,"item_id":31036} 
[2026-03-28 20:54:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6530,"item_index":4,"item_id":31038} 
[2026-03-28 20:54:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6530,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":31032},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":31033},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31034},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31036},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":31038}],"validated_items":[{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-28 20:54:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6530,"items_count":5} 
[2026-03-28 20:54:14] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[31039,31040,31041,31042,31043],"items":[{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":48,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-03-28 20:54:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6530,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["2|2|","48|1|","61|1|","105|1|","13|2|"],"new_items_map_keys":["2|2|","48|1|","61|1|","105|1|","13|2|"]} 
[2026-03-28 20:54:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6530,"order_number":"AZS-280326-018"} 
[2026-03-28 20:54:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6530,"order_number":"AZS-280326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 20:54:14"} 
[2026-03-28 20:56:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6530,"item_index":0,"item_id":31032} 
[2026-03-28 20:56:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6530,"item_index":1,"item_id":31033} 
[2026-03-28 20:56:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6530,"item_index":2,"item_id":31034} 
[2026-03-28 20:56:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6530,"item_index":3,"item_id":31036} 
[2026-03-28 20:56:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6530,"item_index":4,"item_id":31038} 
[2026-03-28 20:56:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6530,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":31032},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":31033},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31034},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31036},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":31038}],"validated_items":[{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-28 20:56:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6530,"items_count":5} 
[2026-03-28 20:56:38] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[31039,31040,31041,31042,31043],"items":[{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":48,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-03-28 20:56:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6530,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["2|2|","48|1|","61|1|","105|1|","13|2|"],"new_items_map_keys":["2|2|","48|1|","61|1|","105|1|","13|2|"]} 
[2026-03-28 20:56:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6530,"order_number":"AZS-280326-018"} 
[2026-03-28 20:56:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6530,"order_number":"AZS-280326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-28 20:56:38"} 
[2026-03-28 20:57:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6530,"item_index":0,"item_id":31032} 
[2026-03-28 20:57:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6530,"item_index":1,"item_id":31033} 
[2026-03-28 20:57:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6530,"item_index":2,"item_id":31036} 
[2026-03-28 20:57:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6530,"item_index":3,"item_id":31038} 
[2026-03-28 20:57:07] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6530,"order_number":"AZS-280326-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 20:57:07"} 
[2026-03-28 20:57:07] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6530,"order_number":"AZS-280326-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 20:57:07"} 
[2026-03-28 20:57:07] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6530,"order_number":"AZS-280326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 20:57:07"} 
[2026-03-28 20:57:07] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6530,"order_number":"AZS-280326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 20:57:07"} 
[2026-03-28 20:57:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":5,"order_id":6530,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":31032},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":31033},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31036},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":31038}],"validated_items":[{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-28 20:57:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6530,"items_count":4} 
[2026-03-28 20:57:07] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":5,"items_to_remove":[31039,31040,31041,31042,31043],"items":[{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":48,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-03-28 20:57:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6530,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["2|2|","48|1|","61|1|","105|1|","13|2|"],"new_items_map_keys":["2|2|","48|1|","105|1|","13|2|"]} 
[2026-03-28 20:57:07] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6530,"order_number":"AZS-280326-018","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":4000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-28 20:57:07","original_payment_amount":"0.00","grand_total":3207.0,"timestamp":"2026-03-28 20:57:07"} 
[2026-03-28 20:57:07] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6530,"order_number":"AZS-280326-018"} 
[2026-03-28 20:57:07] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-280326-018","replaced_order_id":6530} 
[2026-03-28 20:57:07] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6530,"new_order_id":6531,"order_number":"AZS-280326-018","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"4000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-28 20:57:07","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-28 20:57:07"} 
[2026-03-28 20:57:07] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6531,"items_count":4,"items":[{"menu_item_id":2,"quantity":2,"price":130.0},{"menu_item_id":48,"quantity":1,"price":250.0},{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":13,"quantity":2,"price":249.0}]} 
[2026-03-28 20:57:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6531,"item_index":0,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6531}} 
[2026-03-28 20:57:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6531,"item_index":0,"menu_item_id":2} 
[2026-03-28 20:57:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6531,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":250.0,"discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6531}} 
[2026-03-28 20:57:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6531,"item_index":1,"menu_item_id":48} 
[2026-03-28 20:57:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6531,"item_index":2,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6531}} 
[2026-03-28 20:57:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6531,"item_index":2,"menu_item_id":105} 
[2026-03-28 20:57:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6531,"item_index":3,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6531}} 
[2026-03-28 20:57:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6531,"item_index":3,"menu_item_id":13} 
[2026-03-28 20:57:07] local.ERROR: Error tracking recipe usage for order 6531: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6531, 48, 152, 1, 5, 0.00, Order #AZS-280326-018 - 1x Qandhari Naan, 2026-03-28 20:57:07, 2026-03-28 20:57:07))  
[2026-03-28 20:57:07] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6530,"new_order_id":6531,"order_number":"AZS-280326-018"} 
[2026-03-28 20:57:08] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6530,"new_order_id":6531,"order_number":"AZS-280326-018","route":"api/orders/6530"} 
[2026-03-28 20:59:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T08:59:12.173Z","date_to":"2026-03-28T20:59:12.173Z","per_page":"100"} 
[2026-03-28 20:59:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T08:59:12.188Z","date_to":"2026-03-28T20:59:12.188Z","per_page":"100"} 
[2026-03-28 20:59:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-019","AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":1,"unique_order_numbers":19} 
[2026-03-28 20:59:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-019","AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":1,"unique_order_numbers":19} 
[2026-03-28 20:59:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T08:59:12.173Z","date_to":"2026-03-28T20:59:12.173Z","per_page":"100"} 
[2026-03-28 20:59:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-019","AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":1,"unique_order_numbers":19} 
[2026-03-28 21:02:54] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6528,"order_number":"AZS-280326-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 21:02:54"} 
[2026-03-28 21:02:54] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6528,"order_number":"AZS-280326-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-28 21:02:54"} 
[2026-03-28 21:02:54] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6528,"order_number":"AZS-280326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 21:02:54"} 
[2026-03-28 21:02:54] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6528,"order_number":"AZS-280326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-28 21:02:54"} 
[2026-03-28 21:02:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6528,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":31031}],"validated_items":[{"id":31031,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-28 21:02:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6528,"items_count":1} 
[2026-03-28 21:02:54] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31031,"menu_item_id":13,"quantity":2}]} 
[2026-03-28 21:02:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6528,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|2|"]} 
[2026-03-28 21:02:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6528,"order_number":"AZS-280326-019"} 
[2026-03-28 21:02:54] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6528,"order_number":"AZS-280326-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-28 21:02:54","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-28 21:02:54"} 
[2026-03-28 21:02:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6528,"order_number":"AZS-280326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-28 21:02:54"} 
[2026-03-28 21:02:54] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6528,"order_number":"AZS-280326-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-28 21:02:54","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-28 21:02:54"} 
[2026-03-28 21:03:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T09:03:18.547Z","date_to":"2026-03-28T21:03:18.547Z","per_page":"100"} 
[2026-03-28 21:03:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T09:03:18.568Z","date_to":"2026-03-28T21:03:18.568Z","per_page":"100"} 
[2026-03-28 21:03:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-019","AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":0,"unique_order_numbers":19} 
[2026-03-28 21:03:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-019","AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":0,"unique_order_numbers":19} 
[2026-03-28 21:03:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-28T09:03:18.547Z","date_to":"2026-03-28T21:03:18.547Z","per_page":"100"} 
[2026-03-28 21:03:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-280326-019","AZS-280326-018","AZS-280326-017","AZS-280326-016","AZS-280326-015","AZS-280326-014","AZS-280326-013","AZS-280326-012","AZS-280326-011","AZS-280326-010","AZS-280326-009","AZS-280326-008","AZS-280326-007","AZS-280326-006","AZS-280326-005","AZS-280326-004","AZS-280326-003","AZS-280326-002","AZS-280326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":0,"unique_order_numbers":19} 
[2026-03-29 14:09:38] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6532,"order_number":"AZS-290326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":250,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-29 14:09:38"} 
[2026-03-29 14:09:38] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6532,"order_number":"AZS-290326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":250,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-29 14:09:38"} 
[2026-03-29 14:09:38] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6532,"order_number":"AZS-290326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":250,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-29 14:09:38"} 
[2026-03-29 14:09:38] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6532,"order_number":"AZS-290326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":250,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-29 14:09:38"} 
[2026-03-29 14:09:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6532,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":31048}],"validated_items":[{"id":31048,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-29 14:09:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6532,"items_count":1} 
[2026-03-29 14:09:38] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31048,"menu_item_id":13,"quantity":1}]} 
[2026-03-29 14:09:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6532,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|1|"],"new_items_map_keys":["13|1|"]} 
[2026-03-29 14:09:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6532,"order_number":"AZS-290326-001"} 
[2026-03-29 14:09:38] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6532,"order_number":"AZS-290326-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":250,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-29 14:09:38","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-29 14:09:38"} 
[2026-03-29 14:09:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6532,"order_number":"AZS-290326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-29 14:09:38"} 
[2026-03-29 14:09:38] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6532,"order_number":"AZS-290326-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"250.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-29 14:09:38","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":250,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"250.00","database_verification_match":true,"timestamp":"2026-03-29 14:09:38"} 
[2026-03-29 14:13:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6533,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null,"id":31049},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31049,"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-29 14:13:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6533,"items_count":2} 
[2026-03-29 14:13:12] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31049,"menu_item_id":385,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1}]} 
[2026-03-29 14:13:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6533,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|","403|1|"]} 
[2026-03-29 14:13:12] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6533,"order_number":"AZS-290326-002"} 
[2026-03-29 14:13:12] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-290326-002","replaced_order_id":6533} 
[2026-03-29 14:13:12] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6534,"items_count":2,"items":[{"menu_item_id":385,"quantity":1,"price":"2899.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"}]} 
[2026-03-29 14:13:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6534,"item_index":0,"item_data":{"menu_item_id":385,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 02","quantity":1,"price":"2899.00","discount_percent":0.0,"discount_amount":0.0,"total":2899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6534}} 
[2026-03-29 14:13:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6534,"item_index":0,"menu_item_id":385} 
[2026-03-29 14:13:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6534,"item_index":1,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6534}} 
[2026-03-29 14:13:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6534,"item_index":1,"menu_item_id":403} 
[2026-03-29 14:13:12] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6533,"new_order_id":6534,"order_number":"AZS-290326-002"} 
[2026-03-29 14:16:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6534,"item_index":0,"item_id":31049} 
[2026-03-29 14:16:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":2,"order_id":6534,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null,"id":31049},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-29 14:16:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6534,"items_count":3} 
[2026-03-29 14:16:01] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":2,"items_to_remove":[31050,31051],"items":[{"id":null,"menu_item_id":385,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-29 14:16:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6534,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["385|1|","403|1|"],"new_items_map_keys":["385|1|","403|1|","5|1|"]} 
[2026-03-29 14:16:01] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6534,"order_number":"AZS-290326-002"} 
[2026-03-29 14:16:01] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-290326-002","replaced_order_id":6534} 
[2026-03-29 14:16:01] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6535,"items_count":3,"items":[{"menu_item_id":385,"quantity":1,"price":"2899.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-29 14:16:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6535,"item_index":0,"item_data":{"menu_item_id":385,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 02","quantity":1,"price":"2899.00","discount_percent":0.0,"discount_amount":0.0,"total":2899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6535}} 
[2026-03-29 14:16:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6535,"item_index":0,"menu_item_id":385} 
[2026-03-29 14:16:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6535,"item_index":1,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6535}} 
[2026-03-29 14:16:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6535,"item_index":1,"menu_item_id":403} 
[2026-03-29 14:16:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6535,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6535}} 
[2026-03-29 14:16:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6535,"item_index":2,"menu_item_id":5} 
[2026-03-29 14:16:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6534,"new_order_id":6535,"order_number":"AZS-290326-002"} 
[2026-03-29 15:17:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6537,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":31056},{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null,"id":31057},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31058},{"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null,"id":31059},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31056,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":31057,"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null},{"id":31058,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31059,"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-29 15:17:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6537,"items_count":5} 
[2026-03-29 15:17:54] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31056,"menu_item_id":99,"quantity":1},{"id":31057,"menu_item_id":85,"quantity":1},{"id":31058,"menu_item_id":61,"quantity":1},{"id":31059,"menu_item_id":52,"quantity":4},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-29 15:17:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6537,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["99|1|","85|1|","61|1|","52|4|"],"new_items_map_keys":["99|1|","85|1|","61|1|","52|4|","3|1|"]} 
[2026-03-29 15:17:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6537,"order_number":"AZS-290326-004"} 
[2026-03-29 15:17:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-290326-004","replaced_order_id":6537} 
[2026-03-29 15:17:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6538,"items_count":5,"items":[{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":85,"quantity":1,"price":"699.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":52,"quantity":4,"price":"70.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-29 15:17:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6538,"item_index":0,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6538}} 
[2026-03-29 15:17:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6538,"item_index":0,"menu_item_id":99} 
[2026-03-29 15:17:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6538,"item_index":1,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":1,"price":"699.00","discount_percent":0.0,"discount_amount":0.0,"total":699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6538}} 
[2026-03-29 15:17:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6538,"item_index":1,"menu_item_id":85} 
[2026-03-29 15:17:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6538,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6538}} 
[2026-03-29 15:17:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6538,"item_index":2,"menu_item_id":61} 
[2026-03-29 15:17:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6538,"item_index":3,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6538}} 
[2026-03-29 15:17:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6538,"item_index":3,"menu_item_id":52} 
[2026-03-29 15:17:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6538,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6538}} 
[2026-03-29 15:17:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6538,"item_index":4,"menu_item_id":3} 
[2026-03-29 15:17:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6537,"new_order_id":6538,"order_number":"AZS-290326-004"} 
[2026-03-29 15:42:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6536,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null,"id":31055},{"menu_item_id":167,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31055,"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":167,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-29 15:42:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6536,"items_count":2} 
[2026-03-29 15:42:31] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31055,"menu_item_id":385,"quantity":1},{"id":null,"menu_item_id":167,"quantity":1}]} 
[2026-03-29 15:42:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6536,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|","167|1|"]} 
[2026-03-29 15:42:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6536,"order_number":"AZS-290326-003"} 
[2026-03-29 15:42:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-290326-003","replaced_order_id":6536} 
[2026-03-29 15:42:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6539,"items_count":2,"items":[{"menu_item_id":385,"quantity":1,"price":"2899.00"},{"menu_item_id":167,"quantity":1,"price":"650.00"}]} 
[2026-03-29 15:42:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6539,"item_index":0,"item_data":{"menu_item_id":385,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 02","quantity":1,"price":"2899.00","discount_percent":0.0,"discount_amount":0.0,"total":2899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6539}} 
[2026-03-29 15:42:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6539,"item_index":0,"menu_item_id":385} 
[2026-03-29 15:42:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6539,"item_index":1,"item_data":{"menu_item_id":167,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Egg & Cheese Sandwich","quantity":1,"price":"650.00","discount_percent":0.0,"discount_amount":0.0,"total":650.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6539}} 
[2026-03-29 15:42:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6539,"item_index":1,"menu_item_id":167} 
[2026-03-29 15:42:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6536,"new_order_id":6539,"order_number":"AZS-290326-003"} 
[2026-03-29 16:24:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6538,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":31060},{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":31061},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31062},{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":31063},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31064}],"validated_items":[{"id":31060,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":31061,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":31062,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31063,"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":31064,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-29 16:24:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6538,"items_count":5} 
[2026-03-29 16:24:10] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31060,"menu_item_id":99,"quantity":1},{"id":31061,"menu_item_id":85,"quantity":1},{"id":31062,"menu_item_id":61,"quantity":1},{"id":31063,"menu_item_id":52,"quantity":4},{"id":31064,"menu_item_id":3,"quantity":1}]} 
[2026-03-29 16:24:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6538,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["99|1|","85|1|","61|1|","52|4|","3|1|"],"new_items_map_keys":["99|1|","85|1|","61|1|","52|4|","3|1|"]} 
[2026-03-29 16:24:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6538,"order_number":"AZS-290326-004"} 
[2026-03-29 16:24:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6538,"order_number":"AZS-290326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-29 16:24:10"} 
[2026-03-29 18:51:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6541,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":2,"discount_percent":0,"notes":null,"id":31068},{"menu_item_id":100,"quantity":2,"discount_percent":0,"notes":null,"id":31069},{"menu_item_id":396,"quantity":6,"discount_percent":0,"notes":null,"id":31070},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31071},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31072},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31068,"menu_item_id":98,"quantity":2,"discount_percent":0,"notes":null},{"id":31069,"menu_item_id":100,"quantity":2,"discount_percent":0,"notes":null},{"id":31070,"menu_item_id":396,"quantity":6,"discount_percent":0,"notes":null},{"id":31071,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31072,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-29 18:51:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6541,"items_count":6} 
[2026-03-29 18:51:48] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31068,"menu_item_id":98,"quantity":2},{"id":31069,"menu_item_id":100,"quantity":2},{"id":31070,"menu_item_id":396,"quantity":6},{"id":31071,"menu_item_id":61,"quantity":2},{"id":31072,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-29 18:51:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6541,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["98|2|","100|2|","396|6|","61|2|","5|1|"],"new_items_map_keys":["98|2|","100|2|","396|6|","61|2|","5|1|","3|1|"]} 
[2026-03-29 18:51:48] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6541,"order_number":"AZS-290326-006"} 
[2026-03-29 18:51:48] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-290326-006","replaced_order_id":6541} 
[2026-03-29 18:51:48] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6542,"items_count":6,"items":[{"menu_item_id":98,"quantity":2,"price":"1199.00"},{"menu_item_id":100,"quantity":2,"price":"1299.00"},{"menu_item_id":396,"quantity":6,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-29 18:51:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6542,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6542}} 
[2026-03-29 18:51:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6542,"item_index":0,"menu_item_id":98} 
[2026-03-29 18:51:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6542,"item_index":1,"item_data":{"menu_item_id":100,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Half","quantity":2,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":2598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6542}} 
[2026-03-29 18:51:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6542,"item_index":1,"menu_item_id":100} 
[2026-03-29 18:51:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6542,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":6,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":594.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6542}} 
[2026-03-29 18:51:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6542,"item_index":2,"menu_item_id":396} 
[2026-03-29 18:51:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6542,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6542}} 
[2026-03-29 18:51:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6542,"item_index":3,"menu_item_id":61} 
[2026-03-29 18:51:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6542,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6542}} 
[2026-03-29 18:51:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6542,"item_index":4,"menu_item_id":5} 
[2026-03-29 18:51:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6542,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6542}} 
[2026-03-29 18:51:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6542,"item_index":5,"menu_item_id":3} 
[2026-03-29 18:51:48] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6541,"new_order_id":6542,"order_number":"AZS-290326-006"} 
[2026-03-29 18:54:20] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6542,"item_index":0,"item_id":31068} 
[2026-03-29 18:54:20] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6542,"item_index":1,"item_id":31069} 
[2026-03-29 18:54:20] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6542,"item_index":2,"item_id":31070} 
[2026-03-29 18:54:20] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6542,"item_index":3,"item_id":31071} 
[2026-03-29 18:54:20] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6542,"item_index":4,"item_id":31072} 
[2026-03-29 18:54:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6542,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":2,"discount_percent":0,"notes":null,"id":31068},{"menu_item_id":100,"quantity":2,"discount_percent":0,"notes":null,"id":31069},{"menu_item_id":396,"quantity":6,"discount_percent":0,"notes":null,"id":31070},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31071},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":31072},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":98,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":100,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":6,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-29 18:54:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6542,"items_count":6} 
[2026-03-29 18:54:20] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[31073,31074,31075,31076,31077,31078],"items":[{"id":null,"menu_item_id":98,"quantity":2},{"id":null,"menu_item_id":100,"quantity":2},{"id":null,"menu_item_id":396,"quantity":6},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-29 18:54:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6542,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["98|2|","100|2|","396|6|","61|2|","5|1|","3|1|"],"new_items_map_keys":["98|2|","100|2|","396|6|","61|2|","5|2|","3|1|"]} 
[2026-03-29 18:54:20] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6542,"order_number":"AZS-290326-006"} 
[2026-03-29 18:54:20] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-290326-006","replaced_order_id":6542} 
[2026-03-29 18:54:20] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6543,"items_count":6,"items":[{"menu_item_id":98,"quantity":2,"price":"1199.00"},{"menu_item_id":100,"quantity":2,"price":"1299.00"},{"menu_item_id":396,"quantity":6,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-29 18:54:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6543,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6543}} 
[2026-03-29 18:54:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6543,"item_index":0,"menu_item_id":98} 
[2026-03-29 18:54:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6543,"item_index":1,"item_data":{"menu_item_id":100,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Half","quantity":2,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":2598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6543}} 
[2026-03-29 18:54:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6543,"item_index":1,"menu_item_id":100} 
[2026-03-29 18:54:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6543,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":6,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":594.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6543}} 
[2026-03-29 18:54:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6543,"item_index":2,"menu_item_id":396} 
[2026-03-29 18:54:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6543,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6543}} 
[2026-03-29 18:54:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6543,"item_index":3,"menu_item_id":61} 
[2026-03-29 18:54:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6543,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6543}} 
[2026-03-29 18:54:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6543,"item_index":4,"menu_item_id":5} 
[2026-03-29 18:54:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6543,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6543}} 
[2026-03-29 18:54:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6543,"item_index":5,"menu_item_id":3} 
[2026-03-29 18:54:20] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6542,"new_order_id":6543,"order_number":"AZS-290326-006"} 
[2026-03-29 19:03:43] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6543,"item_index":0,"item_id":31068} 
[2026-03-29 19:03:43] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6543,"item_index":1,"item_id":31069} 
[2026-03-29 19:03:43] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6543,"item_index":2,"item_id":31070} 
[2026-03-29 19:03:43] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6543,"item_index":3,"item_id":31071} 
[2026-03-29 19:03:43] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6543,"item_index":4,"item_id":31072} 
[2026-03-29 19:03:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":6,"order_id":6543,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":2,"discount_percent":0,"notes":null,"id":31068},{"menu_item_id":100,"quantity":2,"discount_percent":0,"notes":null,"id":31069},{"menu_item_id":396,"quantity":8,"discount_percent":0,"notes":null,"id":31070},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31071},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":31072}],"validated_items":[{"menu_item_id":98,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":100,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":8,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-29 19:03:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6543,"items_count":5} 
[2026-03-29 19:03:43] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":6,"items_to_remove":[31079,31080,31081,31082,31083,31084],"items":[{"id":null,"menu_item_id":98,"quantity":2},{"id":null,"menu_item_id":100,"quantity":2},{"id":null,"menu_item_id":396,"quantity":8},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":5,"quantity":2}]} 
[2026-03-29 19:03:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6543,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["98|2|","100|2|","396|6|","61|2|","5|2|","3|1|"],"new_items_map_keys":["98|2|","100|2|","396|8|","61|2|","5|2|"]} 
[2026-03-29 19:03:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6543,"order_number":"AZS-290326-006"} 
[2026-03-29 19:03:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-290326-006","replaced_order_id":6543} 
[2026-03-29 19:03:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6544,"items_count":5,"items":[{"menu_item_id":98,"quantity":2,"price":"1199.00"},{"menu_item_id":100,"quantity":2,"price":"1299.00"},{"menu_item_id":396,"quantity":8,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"}]} 
[2026-03-29 19:03:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6544,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6544}} 
[2026-03-29 19:03:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6544,"item_index":0,"menu_item_id":98} 
[2026-03-29 19:03:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6544,"item_index":1,"item_data":{"menu_item_id":100,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Half","quantity":2,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":2598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6544}} 
[2026-03-29 19:03:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6544,"item_index":1,"menu_item_id":100} 
[2026-03-29 19:03:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6544,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":8,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":792.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6544}} 
[2026-03-29 19:03:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6544,"item_index":2,"menu_item_id":396} 
[2026-03-29 19:03:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6544,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6544}} 
[2026-03-29 19:03:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6544,"item_index":3,"menu_item_id":61} 
[2026-03-29 19:03:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6544,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6544}} 
[2026-03-29 19:03:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6544,"item_index":4,"menu_item_id":5} 
[2026-03-29 19:03:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6543,"new_order_id":6544,"order_number":"AZS-290326-006"} 
[2026-03-29 19:05:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6544,"item_index":0,"item_id":31068} 
[2026-03-29 19:05:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6544,"item_index":1,"item_id":31069} 
[2026-03-29 19:05:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6544,"item_index":2,"item_id":31070} 
[2026-03-29 19:05:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6544,"item_index":3,"item_id":31071} 
[2026-03-29 19:05:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6544,"item_index":4,"item_id":31072} 
[2026-03-29 19:05:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6544,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":31068},{"menu_item_id":100,"quantity":2,"price":1299,"discount_percent":0,"notes":null,"id":31069},{"menu_item_id":396,"quantity":8,"price":99,"discount_percent":0,"notes":null,"id":31070},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31071},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":31072}],"validated_items":[{"menu_item_id":98,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":100,"quantity":2,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":8,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-29 19:05:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6544,"items_count":5} 
[2026-03-29 19:05:28] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[31085,31086,31087,31088,31089],"items":[{"id":null,"menu_item_id":98,"quantity":2},{"id":null,"menu_item_id":100,"quantity":2},{"id":null,"menu_item_id":396,"quantity":8},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":5,"quantity":2}]} 
[2026-03-29 19:05:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6544,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["98|2|","100|2|","396|8|","61|2|","5|2|"],"new_items_map_keys":["98|2|","100|2|","396|8|","61|2|","5|2|"]} 
[2026-03-29 19:05:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6544,"order_number":"AZS-290326-006"} 
[2026-03-29 19:05:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6544,"order_number":"AZS-290326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-29 19:05:28"} 
[2026-03-29 19:18:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6544,"item_index":0,"item_id":31068} 
[2026-03-29 19:18:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6544,"item_index":1,"item_id":31069} 
[2026-03-29 19:18:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6544,"item_index":2,"item_id":31070} 
[2026-03-29 19:18:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6544,"item_index":3,"item_id":31071} 
[2026-03-29 19:18:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6544,"item_index":4,"item_id":31072} 
[2026-03-29 19:18:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6544,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":31068},{"menu_item_id":100,"quantity":2,"price":1299,"discount_percent":0,"notes":null,"id":31069},{"menu_item_id":396,"quantity":8,"price":99,"discount_percent":0,"notes":null,"id":31070},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31071},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":31072}],"validated_items":[{"menu_item_id":98,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":100,"quantity":2,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":8,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-29 19:18:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6544,"items_count":5} 
[2026-03-29 19:18:03] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[31085,31086,31087,31088,31089],"items":[{"id":null,"menu_item_id":98,"quantity":2},{"id":null,"menu_item_id":100,"quantity":2},{"id":null,"menu_item_id":396,"quantity":8},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":5,"quantity":2}]} 
[2026-03-29 19:18:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6544,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["98|2|","100|2|","396|8|","61|2|","5|2|"],"new_items_map_keys":["98|2|","100|2|","396|8|","61|2|","5|2|"]} 
[2026-03-29 19:18:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6544,"order_number":"AZS-290326-006"} 
[2026-03-29 19:18:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6544,"order_number":"AZS-290326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-29 19:18:03"} 
[2026-03-29 19:18:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6540,"order_number":"AZS-290326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":60,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-29 19:18:27"} 
[2026-03-29 19:18:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6540,"order_number":"AZS-290326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":60,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-29 19:18:27"} 
[2026-03-29 19:18:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6540,"order_number":"AZS-290326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":60,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-29 19:18:27"} 
[2026-03-29 19:18:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6540,"order_number":"AZS-290326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":60,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-29 19:18:27"} 
[2026-03-29 19:18:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6540,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":4,"price":15,"discount_percent":0,"notes":null,"id":31067}],"validated_items":[{"id":31067,"menu_item_id":286,"quantity":4,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-29 19:18:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6540,"items_count":1} 
[2026-03-29 19:18:27] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31067,"menu_item_id":286,"quantity":4}]} 
[2026-03-29 19:18:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6540,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["286|4|"],"new_items_map_keys":["286|4|"]} 
[2026-03-29 19:18:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6540,"order_number":"AZS-290326-005"} 
[2026-03-29 19:18:27] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6540,"order_number":"AZS-290326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":60,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-29 19:18:27","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-29 19:18:27"} 
[2026-03-29 19:18:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6540,"order_number":"AZS-290326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-29 19:18:27"} 
[2026-03-29 19:18:27] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6540,"order_number":"AZS-290326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"60.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-29 19:18:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":60,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"60.00","database_verification_match":true,"timestamp":"2026-03-29 19:18:27"} 
[2026-03-29 19:19:25] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6544,"order_number":"AZS-290326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6327,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-29 19:19:25"} 
[2026-03-29 19:19:25] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6544,"order_number":"AZS-290326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6327,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-29 19:19:25"} 
[2026-03-29 19:19:25] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6544,"order_number":"AZS-290326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6327,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-29 19:19:25"} 
[2026-03-29 19:19:25] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6544,"order_number":"AZS-290326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6327,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-29 19:19:25"} 
[2026-03-29 19:19:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6544,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":31085},{"menu_item_id":100,"quantity":2,"price":1299,"discount_percent":0,"notes":null,"id":31086},{"menu_item_id":396,"quantity":8,"price":99,"discount_percent":0,"notes":null,"id":31087},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31088},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":31089}],"validated_items":[{"id":31085,"menu_item_id":98,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":31086,"menu_item_id":100,"quantity":2,"price":1299,"discount_percent":0,"notes":null},{"id":31087,"menu_item_id":396,"quantity":8,"price":99,"discount_percent":0,"notes":null},{"id":31088,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31089,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-29 19:19:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6544,"items_count":5} 
[2026-03-29 19:19:25] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31085,"menu_item_id":98,"quantity":2},{"id":31086,"menu_item_id":100,"quantity":2},{"id":31087,"menu_item_id":396,"quantity":8},{"id":31088,"menu_item_id":61,"quantity":1},{"id":31089,"menu_item_id":5,"quantity":2}]} 
[2026-03-29 19:19:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6544,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["98|2|","100|2|","396|8|","61|2|","5|2|"],"new_items_map_keys":["98|2|","100|2|","396|8|","61|1|","5|2|"]} 
[2026-03-29 19:19:25] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6544,"order_number":"AZS-290326-006","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":6327,"new_order_data_payment_mode":"online","new_order_data_paid_at":"2026-03-29 19:19:25","original_payment_amount":"0.00","grand_total":6327.0,"timestamp":"2026-03-29 19:19:25"} 
[2026-03-29 19:19:25] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6544,"order_number":"AZS-290326-006"} 
[2026-03-29 19:19:25] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-290326-006","replaced_order_id":6544} 
[2026-03-29 19:19:25] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6544,"new_order_id":6545,"order_number":"AZS-290326-006","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"6327.00","payment_mode_after_creation":"online","paid_at_after_creation":"2026-03-29 19:19:25","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6327,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-29 19:19:25"} 
[2026-03-29 19:19:25] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6545,"items_count":5,"items":[{"menu_item_id":98,"quantity":2,"price":1199.0},{"menu_item_id":100,"quantity":2,"price":1299.0},{"menu_item_id":396,"quantity":8,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":2,"price":170.0}]} 
[2026-03-29 19:19:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6545,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":2,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6545}} 
[2026-03-29 19:19:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6545,"item_index":0,"menu_item_id":98} 
[2026-03-29 19:19:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6545,"item_index":1,"item_data":{"menu_item_id":100,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Half","quantity":2,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6545}} 
[2026-03-29 19:19:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6545,"item_index":1,"menu_item_id":100} 
[2026-03-29 19:19:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6545,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":8,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":792.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6545}} 
[2026-03-29 19:19:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6545,"item_index":2,"menu_item_id":396} 
[2026-03-29 19:19:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6545,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6545}} 
[2026-03-29 19:19:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6545,"item_index":3,"menu_item_id":61} 
[2026-03-29 19:19:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6545,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6545}} 
[2026-03-29 19:19:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6545,"item_index":4,"menu_item_id":5} 
[2026-03-29 19:19:25] local.ERROR: Error tracking recipe usage for order 6545: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6545, 61, 66, 1, 250, 0.00, Order #AZS-290326-006 - 1x Mint Raita, 2026-03-29 19:19:25, 2026-03-29 19:19:25))  
[2026-03-29 19:19:25] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6544,"new_order_id":6545,"order_number":"AZS-290326-006"} 
[2026-03-29 19:19:25] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6544,"new_order_id":6545,"order_number":"AZS-290326-006","route":"api/orders/6544"} 
[2026-03-29 19:36:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-29T07:36:41.366Z","date_to":"2026-03-29T19:36:41.366Z","per_page":"100"} 
[2026-03-29 19:36:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-29T07:36:41.350Z","date_to":"2026-03-29T19:36:41.350Z","per_page":"100"} 
[2026-03-29 19:36:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-290326-006","AZS-290326-005","AZS-290326-004","AZS-290326-003","AZS-290326-002","AZS-290326-001"],"order_statuses":["paid","paid","pending","pending","pending","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":3,"unique_order_numbers":6} 
[2026-03-29 19:36:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-290326-006","AZS-290326-005","AZS-290326-004","AZS-290326-003","AZS-290326-002","AZS-290326-001"],"order_statuses":["paid","paid","pending","pending","pending","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":3,"unique_order_numbers":6} 
[2026-03-29 19:36:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-29T07:36:41.350Z","date_to":"2026-03-29T19:36:41.350Z","per_page":"100"} 
[2026-03-29 19:36:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-290326-006","AZS-290326-005","AZS-290326-004","AZS-290326-003","AZS-290326-002","AZS-290326-001"],"order_statuses":["paid","paid","pending","pending","pending","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":3,"unique_order_numbers":6} 
[2026-03-29 19:38:03] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6539,"order_number":"AZS-290326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3549,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-29 19:38:03"} 
[2026-03-29 19:38:03] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6539,"order_number":"AZS-290326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3549,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-29 19:38:03"} 
[2026-03-29 19:38:03] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6539,"order_number":"AZS-290326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3549,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-29 19:38:03"} 
[2026-03-29 19:38:03] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6539,"order_number":"AZS-290326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3549,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-29 19:38:03"} 
[2026-03-29 19:38:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6539,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":31065},{"menu_item_id":167,"quantity":1,"price":650,"discount_percent":0,"notes":null,"id":31066}],"validated_items":[{"id":31065,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null},{"id":31066,"menu_item_id":167,"quantity":1,"price":650,"discount_percent":0,"notes":null}]} 
[2026-03-29 19:38:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6539,"items_count":2} 
[2026-03-29 19:38:03] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31065,"menu_item_id":385,"quantity":1},{"id":31066,"menu_item_id":167,"quantity":1}]} 
[2026-03-29 19:38:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6539,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["385|1|","167|1|"],"new_items_map_keys":["385|1|","167|1|"]} 
[2026-03-29 19:38:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6539,"order_number":"AZS-290326-003"} 
[2026-03-29 19:38:03] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6539,"order_number":"AZS-290326-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3549,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-29 19:38:03","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-29 19:38:03"} 
[2026-03-29 19:38:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6539,"order_number":"AZS-290326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-29 19:38:03"} 
[2026-03-29 19:38:03] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6539,"order_number":"AZS-290326-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3549.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-29 19:38:03","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3549,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3549.00","database_verification_match":true,"timestamp":"2026-03-29 19:38:03"} 
[2026-03-29 19:38:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-29T07:38:14.460Z","date_to":"2026-03-29T19:38:14.460Z","per_page":"100"} 
[2026-03-29 19:38:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-290326-006","AZS-290326-005","AZS-290326-004","AZS-290326-003","AZS-290326-002","AZS-290326-001"],"order_statuses":["paid","paid","pending","paid","pending","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":2,"unique_order_numbers":6} 
[2026-03-29 19:38:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-29T07:38:14.478Z","date_to":"2026-03-29T19:38:14.478Z","per_page":"100"} 
[2026-03-29 19:38:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-290326-006","AZS-290326-005","AZS-290326-004","AZS-290326-003","AZS-290326-002","AZS-290326-001"],"order_statuses":["paid","paid","pending","paid","pending","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":2,"unique_order_numbers":6} 
[2026-03-29 19:38:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-29T07:38:14.460Z","date_to":"2026-03-29T19:38:14.460Z","per_page":"100"} 
[2026-03-29 19:38:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-290326-006","AZS-290326-005","AZS-290326-004","AZS-290326-003","AZS-290326-002","AZS-290326-001"],"order_statuses":["paid","paid","pending","paid","pending","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":2,"unique_order_numbers":6} 
[2026-03-29 19:49:14] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6538,"order_number":"AZS-290326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3747,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-29 19:49:14"} 
[2026-03-29 19:49:14] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6538,"order_number":"AZS-290326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3747,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-29 19:49:14"} 
[2026-03-29 19:49:14] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6538,"order_number":"AZS-290326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3747,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-29 19:49:14"} 
[2026-03-29 19:49:14] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6538,"order_number":"AZS-290326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3747,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-29 19:49:14"} 
[2026-03-29 19:49:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6538,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":31060},{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":31061},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31062},{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":31063},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31064}],"validated_items":[{"id":31060,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":31061,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":31062,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31063,"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":31064,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-29 19:49:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6538,"items_count":5} 
[2026-03-29 19:49:14] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31060,"menu_item_id":99,"quantity":1},{"id":31061,"menu_item_id":85,"quantity":1},{"id":31062,"menu_item_id":61,"quantity":1},{"id":31063,"menu_item_id":52,"quantity":4},{"id":31064,"menu_item_id":3,"quantity":1}]} 
[2026-03-29 19:49:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6538,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["99|1|","85|1|","61|1|","52|4|","3|1|"],"new_items_map_keys":["99|1|","85|1|","61|1|","52|4|","3|1|"]} 
[2026-03-29 19:49:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6538,"order_number":"AZS-290326-004"} 
[2026-03-29 19:49:14] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6538,"order_number":"AZS-290326-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3747,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-29 19:49:14","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-29 19:49:14"} 
[2026-03-29 19:49:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6538,"order_number":"AZS-290326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-29 19:49:14"} 
[2026-03-29 19:49:14] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6538,"order_number":"AZS-290326-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3747.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-29 19:49:14","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3747,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3747.00","database_verification_match":true,"timestamp":"2026-03-29 19:49:14"} 
[2026-03-29 19:49:33] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6535,"order_number":"AZS-290326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3418,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-29 19:49:33"} 
[2026-03-29 19:49:33] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6535,"order_number":"AZS-290326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3418,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-29 19:49:33"} 
[2026-03-29 19:49:33] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6535,"order_number":"AZS-290326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3418,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-29 19:49:33"} 
[2026-03-29 19:49:33] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6535,"order_number":"AZS-290326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3418,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-29 19:49:33"} 
[2026-03-29 19:49:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6535,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":31052},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":31053},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31054}],"validated_items":[{"id":31052,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null},{"id":31053,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":31054,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-29 19:49:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6535,"items_count":3} 
[2026-03-29 19:49:33] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31052,"menu_item_id":385,"quantity":1},{"id":31053,"menu_item_id":403,"quantity":1},{"id":31054,"menu_item_id":5,"quantity":1}]} 
[2026-03-29 19:49:33] local.INFO: PosOrderController::update - Item changes check {"order_id":6535,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["385|1|","403|1|","5|1|"],"new_items_map_keys":["385|1|","403|1|","5|1|"]} 
[2026-03-29 19:49:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6535,"order_number":"AZS-290326-002"} 
[2026-03-29 19:49:33] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6535,"order_number":"AZS-290326-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3418,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-29 19:49:33","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-29 19:49:33"} 
[2026-03-29 19:49:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6535,"order_number":"AZS-290326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-29 19:49:33"} 
[2026-03-29 19:49:33] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6535,"order_number":"AZS-290326-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3418.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-29 19:49:33","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3418,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3418.00","database_verification_match":true,"timestamp":"2026-03-29 19:49:33"} 
[2026-03-29 19:49:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-29T07:49:42.657Z","date_to":"2026-03-29T19:49:42.657Z","per_page":"100"} 
[2026-03-29 19:49:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-29T07:49:42.636Z","date_to":"2026-03-29T19:49:42.636Z","per_page":"100"} 
[2026-03-29 19:49:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-290326-006","AZS-290326-005","AZS-290326-004","AZS-290326-003","AZS-290326-002","AZS-290326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-29 19:49:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-290326-006","AZS-290326-005","AZS-290326-004","AZS-290326-003","AZS-290326-002","AZS-290326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-29 19:49:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-29T07:49:42.636Z","date_to":"2026-03-29T19:49:42.636Z","per_page":"100"} 
[2026-03-29 19:49:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-290326-006","AZS-290326-005","AZS-290326-004","AZS-290326-003","AZS-290326-002","AZS-290326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-29 20:06:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-29T08:06:07.982Z","date_to":"2026-03-29T20:06:07.982Z","per_page":"100"} 
[2026-03-29 20:06:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-29T08:06:07.994Z","date_to":"2026-03-29T20:06:07.994Z","per_page":"100"} 
[2026-03-29 20:06:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-290326-006","AZS-290326-005","AZS-290326-004","AZS-290326-003","AZS-290326-002","AZS-290326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-29 20:06:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-290326-006","AZS-290326-005","AZS-290326-004","AZS-290326-003","AZS-290326-002","AZS-290326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-29 20:06:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-29T08:06:07.982Z","date_to":"2026-03-29T20:06:07.982Z","per_page":"100"} 
[2026-03-29 20:06:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-290326-006","AZS-290326-005","AZS-290326-004","AZS-290326-003","AZS-290326-002","AZS-290326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":0,"unique_order_numbers":6} 
[2026-03-30 12:35:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6546,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31095},{"menu_item_id":286,"quantity":7,"price":15,"discount_percent":0,"notes":null,"id":31096},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31097},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31098}],"validated_items":[{"id":31095,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31096,"menu_item_id":286,"quantity":7,"price":15,"discount_percent":0,"notes":null},{"id":31097,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31098,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-30 12:35:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6546,"items_count":4} 
[2026-03-30 12:35:26] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31095,"menu_item_id":96,"quantity":1},{"id":31096,"menu_item_id":286,"quantity":7},{"id":31097,"menu_item_id":61,"quantity":1},{"id":31098,"menu_item_id":56,"quantity":1}]} 
[2026-03-30 12:35:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6546,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","286|7|","61|1|","56|1|"],"new_items_map_keys":["96|1|","286|7|","61|1|","56|1|"]} 
[2026-03-30 12:35:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6546,"order_number":"AZS-300326-001"} 
[2026-03-30 12:35:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6546,"order_number":"AZS-300326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-30 12:35:26"} 
[2026-03-30 14:09:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":6549,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":31109},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":31110},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31111},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31113}],"validated_items":[{"id":31109,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":31110,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":31111,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31113,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-30 14:09:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6549,"items_count":4} 
[2026-03-30 14:09:50] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[31112],"items":[{"id":31109,"menu_item_id":105,"quantity":1},{"id":31110,"menu_item_id":396,"quantity":2},{"id":31111,"menu_item_id":61,"quantity":1},{"id":31113,"menu_item_id":5,"quantity":1}]} 
[2026-03-30 14:09:50] local.INFO: PosOrderController::update - Item changes check {"order_id":6549,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","396|2|","61|1|","5|1|"]} 
[2026-03-30 14:09:50] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6549,"order_number":"AZS-300326-004"} 
[2026-03-30 14:09:50] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-300326-004","replaced_order_id":6549} 
[2026-03-30 14:09:50] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6550,"items_count":4,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-30 14:09:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6550,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6550}} 
[2026-03-30 14:09:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6550,"item_index":0,"menu_item_id":105} 
[2026-03-30 14:09:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6550,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6550}} 
[2026-03-30 14:09:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6550,"item_index":1,"menu_item_id":396} 
[2026-03-30 14:09:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6550,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6550}} 
[2026-03-30 14:09:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6550,"item_index":2,"menu_item_id":61} 
[2026-03-30 14:09:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6550,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6550}} 
[2026-03-30 14:09:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6550,"item_index":3,"menu_item_id":5} 
[2026-03-30 14:09:50] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6549,"new_order_id":6550,"order_number":"AZS-300326-004"} 
[2026-03-30 14:10:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6550,"item_index":0,"item_id":31109} 
[2026-03-30 14:10:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6550,"item_index":1,"item_id":31110} 
[2026-03-30 14:10:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6550,"item_index":2,"item_id":31111} 
[2026-03-30 14:10:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6550,"item_index":3,"item_id":31113} 
[2026-03-30 14:10:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6550,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":31109},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":31110},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31111},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31113}],"validated_items":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-30 14:10:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6550,"items_count":4} 
[2026-03-30 14:10:13] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[31114,31115,31116,31117],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-30 14:10:13] local.INFO: PosOrderController::update - Item changes check {"order_id":6550,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["105|1|","396|2|","61|1|","5|1|"],"new_items_map_keys":["105|1|","396|2|","61|1|","5|1|"]} 
[2026-03-30 14:10:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6550,"order_number":"AZS-300326-004"} 
[2026-03-30 14:10:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6550,"order_number":"AZS-300326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-30 14:10:13"} 
[2026-03-30 14:15:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6547,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":31099},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":31100},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31101},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31099,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":31100,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":31101,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-30 14:15:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6547,"items_count":4} 
[2026-03-30 14:15:59] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31099,"menu_item_id":96,"quantity":1},{"id":31100,"menu_item_id":396,"quantity":2},{"id":31101,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-03-30 14:15:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6547,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["96|1|","396|2|","5|1|"],"new_items_map_keys":["96|1|","396|2|","5|1|","61|1|"]} 
[2026-03-30 14:15:59] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6547,"order_number":"AZS-300326-002"} 
[2026-03-30 14:15:59] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-300326-002","replaced_order_id":6547} 
[2026-03-30 14:15:59] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6552,"items_count":4,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"}]} 
[2026-03-30 14:15:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6552,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6552}} 
[2026-03-30 14:15:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6552,"item_index":0,"menu_item_id":96} 
[2026-03-30 14:15:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6552,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6552}} 
[2026-03-30 14:15:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6552,"item_index":1,"menu_item_id":396} 
[2026-03-30 14:15:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6552,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6552}} 
[2026-03-30 14:15:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6552,"item_index":2,"menu_item_id":5} 
[2026-03-30 14:15:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6552,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6552}} 
[2026-03-30 14:15:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6552,"item_index":3,"menu_item_id":61} 
[2026-03-30 14:15:59] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6547,"new_order_id":6552,"order_number":"AZS-300326-002"} 
[2026-03-30 14:17:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":6550,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":31114},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31116},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31117},{"menu_item_id":286,"quantity":5,"discount_percent":0,"notes":null}],"validated_items":[{"id":31114,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":31116,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31117,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":5,"discount_percent":0,"notes":null}]} 
[2026-03-30 14:17:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6550,"items_count":4} 
[2026-03-30 14:17:19] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[31115],"items":[{"id":31114,"menu_item_id":105,"quantity":1},{"id":31116,"menu_item_id":61,"quantity":1},{"id":31117,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":286,"quantity":5}]} 
[2026-03-30 14:17:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6550,"has_item_changes":true,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["105|1|","396|2|","61|1|","5|1|"],"new_items_map_keys":["105|1|","61|1|","5|1|","286|5|"]} 
[2026-03-30 14:17:19] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6550,"order_number":"AZS-300326-004"} 
[2026-03-30 14:17:19] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-300326-004","replaced_order_id":6550} 
[2026-03-30 14:17:19] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6553,"items_count":4,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":286,"quantity":5,"price":"15.00"}]} 
[2026-03-30 14:17:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6553,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6553}} 
[2026-03-30 14:17:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6553,"item_index":0,"menu_item_id":105} 
[2026-03-30 14:17:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6553,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6553}} 
[2026-03-30 14:17:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6553,"item_index":1,"menu_item_id":61} 
[2026-03-30 14:17:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6553,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6553}} 
[2026-03-30 14:17:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6553,"item_index":2,"menu_item_id":5} 
[2026-03-30 14:17:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6553,"item_index":3,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":5,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":75.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6553}} 
[2026-03-30 14:17:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6553,"item_index":3,"menu_item_id":286} 
[2026-03-30 14:17:19] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6550,"new_order_id":6553,"order_number":"AZS-300326-004"} 
[2026-03-30 14:18:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6553,"item_index":0,"item_id":31114} 
[2026-03-30 14:18:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6553,"item_index":1,"item_id":31116} 
[2026-03-30 14:18:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6553,"item_index":2,"item_id":31117} 
[2026-03-30 14:18:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":4,"order_id":6553,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":31114},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31116},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31117},{"menu_item_id":286,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-30 14:18:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6553,"items_count":5} 
[2026-03-30 14:18:13] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":4,"items_to_remove":[31124,31125,31126,31127],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":286,"quantity":5},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-03-30 14:18:13] local.INFO: PosOrderController::update - Item changes check {"order_id":6553,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["105|1|","61|1|","5|1|","286|5|"],"new_items_map_keys":["105|1|","61|1|","5|1|","286|5|","6|2|"]} 
[2026-03-30 14:18:13] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6553,"order_number":"AZS-300326-004"} 
[2026-03-30 14:18:13] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-300326-004","replaced_order_id":6553} 
[2026-03-30 14:18:13] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6554,"items_count":5,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":286,"quantity":5,"price":"15.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-03-30 14:18:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6554,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6554}} 
[2026-03-30 14:18:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6554,"item_index":0,"menu_item_id":105} 
[2026-03-30 14:18:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6554,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6554}} 
[2026-03-30 14:18:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6554,"item_index":1,"menu_item_id":61} 
[2026-03-30 14:18:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6554,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6554}} 
[2026-03-30 14:18:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6554,"item_index":2,"menu_item_id":5} 
[2026-03-30 14:18:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6554,"item_index":3,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":5,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":75.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6554}} 
[2026-03-30 14:18:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6554,"item_index":3,"menu_item_id":286} 
[2026-03-30 14:18:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6554,"item_index":4,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6554}} 
[2026-03-30 14:18:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6554,"item_index":4,"menu_item_id":6} 
[2026-03-30 14:18:13] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6553,"new_order_id":6554,"order_number":"AZS-300326-004"} 
[2026-03-30 14:26:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T02:26:09.876Z","date_to":"2026-03-30T14:26:09.876Z","per_page":"100"} 
[2026-03-30 14:26:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T02:26:09.915Z","date_to":"2026-03-30T14:26:09.915Z","per_page":"100"} 
[2026-03-30 14:26:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":5,"unique_order_numbers":5} 
[2026-03-30 14:26:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":5,"unique_order_numbers":5} 
[2026-03-30 14:26:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T02:26:09.876Z","date_to":"2026-03-30T14:26:09.876Z","per_page":"100"} 
[2026-03-30 14:26:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":5,"unique_order_numbers":5} 
[2026-03-30 14:29:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6551,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":31118},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":31119}],"validated_items":[{"id":31118,"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":31119,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-30 14:29:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6551,"items_count":2} 
[2026-03-30 14:29:18] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31118,"menu_item_id":83,"quantity":1},{"id":31119,"menu_item_id":29,"quantity":2}]} 
[2026-03-30 14:29:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6551,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["83|1|","29|2|"],"new_items_map_keys":["83|1|","29|2|"]} 
[2026-03-30 14:29:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6551,"order_number":"AZS-300326-005"} 
[2026-03-30 14:29:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6551,"order_number":"AZS-300326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-30 14:29:18"} 
[2026-03-30 14:32:24] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6551,"order_number":"AZS-300326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 14:32:24"} 
[2026-03-30 14:32:24] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6551,"order_number":"AZS-300326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 14:32:24"} 
[2026-03-30 14:32:24] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6551,"order_number":"AZS-300326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 14:32:24"} 
[2026-03-30 14:32:24] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6551,"order_number":"AZS-300326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 14:32:24"} 
[2026-03-30 14:32:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6551,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":31118},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":31119}],"validated_items":[{"id":31118,"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":31119,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null}]} 
[2026-03-30 14:32:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6551,"items_count":2} 
[2026-03-30 14:32:24] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31118,"menu_item_id":83,"quantity":1},{"id":31119,"menu_item_id":29,"quantity":2}]} 
[2026-03-30 14:32:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6551,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["83|1|","29|2|"],"new_items_map_keys":["83|1|","29|2|"]} 
[2026-03-30 14:32:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6551,"order_number":"AZS-300326-005"} 
[2026-03-30 14:32:24] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6551,"order_number":"AZS-300326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-30 14:32:24","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-30 14:32:24"} 
[2026-03-30 14:32:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6551,"order_number":"AZS-300326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-30 14:32:24"} 
[2026-03-30 14:32:24] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6551,"order_number":"AZS-300326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-30 14:32:24","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1500.00","database_verification_match":true,"timestamp":"2026-03-30 14:32:24"} 
[2026-03-30 14:33:01] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6546,"order_number":"AZS-300326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1702,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 14:33:01"} 
[2026-03-30 14:33:01] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6546,"order_number":"AZS-300326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1702,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 14:33:01"} 
[2026-03-30 14:33:01] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6546,"order_number":"AZS-300326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1702,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 14:33:01"} 
[2026-03-30 14:33:01] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6546,"order_number":"AZS-300326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1702,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 14:33:01"} 
[2026-03-30 14:33:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6546,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31095},{"menu_item_id":286,"quantity":7,"price":15,"discount_percent":0,"notes":null,"id":31096},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31097},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31098}],"validated_items":[{"id":31095,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31096,"menu_item_id":286,"quantity":7,"price":15,"discount_percent":0,"notes":null},{"id":31097,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31098,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-30 14:33:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6546,"items_count":4} 
[2026-03-30 14:33:01] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31095,"menu_item_id":96,"quantity":1},{"id":31096,"menu_item_id":286,"quantity":7},{"id":31097,"menu_item_id":61,"quantity":1},{"id":31098,"menu_item_id":56,"quantity":1}]} 
[2026-03-30 14:33:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6546,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","286|7|","61|1|","56|1|"],"new_items_map_keys":["96|1|","286|7|","61|1|","56|1|"]} 
[2026-03-30 14:33:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6546,"order_number":"AZS-300326-001"} 
[2026-03-30 14:33:01] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6546,"order_number":"AZS-300326-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1702,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-30 14:33:01","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-30 14:33:01"} 
[2026-03-30 14:33:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6546,"order_number":"AZS-300326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-30 14:33:01"} 
[2026-03-30 14:33:01] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6546,"order_number":"AZS-300326-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1702.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-30 14:33:01","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1702,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1702.00","database_verification_match":true,"timestamp":"2026-03-30 14:33:01"} 
[2026-03-30 14:33:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T02:33:46.294Z","date_to":"2026-03-30T14:33:46.294Z","per_page":"100"} 
[2026-03-30 14:33:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T02:33:46.309Z","date_to":"2026-03-30T14:33:46.309Z","per_page":"100"} 
[2026-03-30 14:33:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["paid","pending","pending","pending","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":3,"unique_order_numbers":5} 
[2026-03-30 14:33:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["paid","pending","pending","pending","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":3,"unique_order_numbers":5} 
[2026-03-30 14:33:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T02:33:46.294Z","date_to":"2026-03-30T14:33:46.294Z","per_page":"100"} 
[2026-03-30 14:33:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["paid","pending","pending","pending","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":3,"unique_order_numbers":5} 
[2026-03-30 14:37:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6552,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31120},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31121},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31122},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31123}],"validated_items":[{"id":31120,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31121,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":31122,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31123,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-30 14:37:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6552,"items_count":4} 
[2026-03-30 14:37:27] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31120,"menu_item_id":96,"quantity":1},{"id":31121,"menu_item_id":396,"quantity":2},{"id":31122,"menu_item_id":5,"quantity":1},{"id":31123,"menu_item_id":61,"quantity":1}]} 
[2026-03-30 14:37:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6552,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","396|2|","5|1|","61|1|"],"new_items_map_keys":["96|1|","396|2|","5|1|","61|1|"]} 
[2026-03-30 14:37:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6552,"order_number":"AZS-300326-002"} 
[2026-03-30 14:37:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6552,"order_number":"AZS-300326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-30 14:37:27"} 
[2026-03-30 14:37:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T02:37:48.684Z","date_to":"2026-03-30T14:37:48.684Z","per_page":"100"} 
[2026-03-30 14:37:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T02:37:48.669Z","date_to":"2026-03-30T14:37:48.669Z","per_page":"100"} 
[2026-03-30 14:37:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["paid","pending","pending","pending","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":3,"unique_order_numbers":5} 
[2026-03-30 14:37:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["paid","pending","pending","pending","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":3,"unique_order_numbers":5} 
[2026-03-30 14:37:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T02:37:48.669Z","date_to":"2026-03-30T14:37:48.669Z","per_page":"100"} 
[2026-03-30 14:37:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["paid","pending","pending","pending","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":3,"unique_order_numbers":5} 
[2026-03-30 14:42:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6552,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31120},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31121},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31122},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31123}],"validated_items":[{"id":31120,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31121,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":31122,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31123,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-30 14:42:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6552,"items_count":4} 
[2026-03-30 14:42:48] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31120,"menu_item_id":96,"quantity":1},{"id":31121,"menu_item_id":396,"quantity":2},{"id":31122,"menu_item_id":5,"quantity":1},{"id":31123,"menu_item_id":61,"quantity":1}]} 
[2026-03-30 14:42:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6552,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","396|2|","5|1|","61|1|"],"new_items_map_keys":["96|1|","396|2|","5|1|","61|1|"]} 
[2026-03-30 14:42:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6552,"order_number":"AZS-300326-002"} 
[2026-03-30 14:42:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6552,"order_number":"AZS-300326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-30 14:42:48"} 
[2026-03-30 14:43:29] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6552,"order_number":"AZS-300326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 14:43:29"} 
[2026-03-30 14:43:29] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6552,"order_number":"AZS-300326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 14:43:29"} 
[2026-03-30 14:43:29] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6552,"order_number":"AZS-300326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 14:43:29"} 
[2026-03-30 14:43:29] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6552,"order_number":"AZS-300326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 14:43:29"} 
[2026-03-30 14:43:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":1,"order_id":6552,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31120},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31121},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31122}],"validated_items":[{"id":31120,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31121,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":31122,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-30 14:43:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6552,"items_count":3} 
[2026-03-30 14:43:29] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":1,"items_to_remove":[31123],"items":[{"id":31120,"menu_item_id":96,"quantity":1},{"id":31121,"menu_item_id":396,"quantity":2},{"id":31122,"menu_item_id":5,"quantity":1}]} 
[2026-03-30 14:43:29] local.INFO: PosOrderController::update - Item changes check {"order_id":6552,"has_item_changes":true,"old_items_count":4,"new_items_count":3,"old_items_map_keys":["96|1|","396|2|","5|1|","61|1|"],"new_items_map_keys":["96|1|","396|2|","5|1|"]} 
[2026-03-30 14:43:29] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6552,"order_number":"AZS-300326-002","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":2000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-30 14:43:29","original_payment_amount":"0.00","grand_total":1567.0,"timestamp":"2026-03-30 14:43:29"} 
[2026-03-30 14:43:29] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6552,"order_number":"AZS-300326-002"} 
[2026-03-30 14:43:29] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-300326-002","replaced_order_id":6552} 
[2026-03-30 14:43:29] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6552,"new_order_id":6555,"order_number":"AZS-300326-002","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"2000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-30 14:43:29","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-30 14:43:29"} 
[2026-03-30 14:43:29] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6555,"items_count":3,"items":[{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-03-30 14:43:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6555,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6555}} 
[2026-03-30 14:43:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6555,"item_index":0,"menu_item_id":96} 
[2026-03-30 14:43:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6555,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6555}} 
[2026-03-30 14:43:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6555,"item_index":1,"menu_item_id":396} 
[2026-03-30 14:43:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6555,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6555}} 
[2026-03-30 14:43:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6555,"item_index":2,"menu_item_id":5} 
[2026-03-30 14:43:29] local.ERROR: Error tracking recipe usage for order 6555: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6555, 96, 77, 1, 1, 0.00, Order #AZS-300326-002 - 1x Chicken Karahi - Half, 2026-03-30 14:43:29, 2026-03-30 14:43:29))  
[2026-03-30 14:43:29] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6552,"new_order_id":6555,"order_number":"AZS-300326-002"} 
[2026-03-30 14:43:30] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6552,"new_order_id":6555,"order_number":"AZS-300326-002","route":"api/orders/6552"} 
[2026-03-30 14:47:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T02:47:10.052Z","date_to":"2026-03-30T14:47:10.052Z","per_page":"100"} 
[2026-03-30 14:47:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T02:47:10.079Z","date_to":"2026-03-30T14:47:10.079Z","per_page":"100"} 
[2026-03-30 14:47:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["paid","pending","pending","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":2,"unique_order_numbers":5} 
[2026-03-30 14:47:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["paid","pending","pending","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":2,"unique_order_numbers":5} 
[2026-03-30 14:47:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T02:47:10.052Z","date_to":"2026-03-30T14:47:10.052Z","per_page":"100"} 
[2026-03-30 14:47:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["paid","pending","pending","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":2,"unique_order_numbers":5} 
[2026-03-30 14:51:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6554,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31128},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31129},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31130},{"menu_item_id":286,"quantity":5,"price":15,"discount_percent":0,"notes":null,"id":31131},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31132}],"validated_items":[{"id":31128,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":31129,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31130,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31131,"menu_item_id":286,"quantity":5,"price":15,"discount_percent":0,"notes":null},{"id":31132,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-30 14:51:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6554,"items_count":5} 
[2026-03-30 14:51:23] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31128,"menu_item_id":105,"quantity":1},{"id":31129,"menu_item_id":61,"quantity":1},{"id":31130,"menu_item_id":5,"quantity":1},{"id":31131,"menu_item_id":286,"quantity":5},{"id":31132,"menu_item_id":6,"quantity":2}]} 
[2026-03-30 14:51:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6554,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","61|1|","5|1|","286|5|","6|2|"],"new_items_map_keys":["105|1|","61|1|","5|1|","286|5|","6|2|"]} 
[2026-03-30 14:51:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6554,"order_number":"AZS-300326-004"} 
[2026-03-30 14:51:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6554,"order_number":"AZS-300326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-30 14:51:23"} 
[2026-03-30 14:54:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T02:54:22.612Z","date_to":"2026-03-30T14:54:22.612Z","per_page":"100"} 
[2026-03-30 14:54:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","paid","pending","pending","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":4,"unique_order_numbers":7} 
[2026-03-30 14:54:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T02:54:22.624Z","date_to":"2026-03-30T14:54:22.624Z","per_page":"100"} 
[2026-03-30 14:54:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","paid","pending","pending","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":4,"unique_order_numbers":7} 
[2026-03-30 14:54:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T02:54:22.612Z","date_to":"2026-03-30T14:54:22.612Z","per_page":"100"} 
[2026-03-30 14:54:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","paid","pending","pending","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":4,"unique_order_numbers":7} 
[2026-03-30 15:05:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6548,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null,"id":31102},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":31103},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31104},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":31105},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31106},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31107},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31108}],"validated_items":[{"id":31102,"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null},{"id":31103,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":31104,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":31105,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":31106,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31107,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31108,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-30 15:05:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6548,"items_count":7} 
[2026-03-30 15:05:19] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31102,"menu_item_id":103,"quantity":1},{"id":31103,"menu_item_id":65,"quantity":1},{"id":31104,"menu_item_id":396,"quantity":2},{"id":31105,"menu_item_id":50,"quantity":2},{"id":31106,"menu_item_id":61,"quantity":2},{"id":31107,"menu_item_id":56,"quantity":2},{"id":31108,"menu_item_id":5,"quantity":1}]} 
[2026-03-30 15:05:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6548,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["103|1|","65|1|","396|2|","50|2|","61|2|","56|2|","5|1|"],"new_items_map_keys":["103|1|","65|1|","396|2|","50|2|","61|2|","56|2|","5|1|"]} 
[2026-03-30 15:05:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6548,"order_number":"AZS-300326-003"} 
[2026-03-30 15:05:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6548,"order_number":"AZS-300326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-30 15:05:19"} 
[2026-03-30 15:12:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6548,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null,"id":31102},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":31103},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31104},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":31105},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31106},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31107},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31108}],"validated_items":[{"id":31102,"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null},{"id":31103,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":31104,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":31105,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":31106,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31107,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31108,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-30 15:12:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6548,"items_count":7} 
[2026-03-30 15:12:22] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31102,"menu_item_id":103,"quantity":1},{"id":31103,"menu_item_id":65,"quantity":1},{"id":31104,"menu_item_id":396,"quantity":2},{"id":31105,"menu_item_id":50,"quantity":2},{"id":31106,"menu_item_id":61,"quantity":2},{"id":31107,"menu_item_id":56,"quantity":2},{"id":31108,"menu_item_id":5,"quantity":1}]} 
[2026-03-30 15:12:22] local.INFO: PosOrderController::update - Item changes check {"order_id":6548,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["103|1|","65|1|","396|2|","50|2|","61|2|","56|2|","5|1|"],"new_items_map_keys":["103|1|","65|1|","396|2|","50|2|","61|2|","56|2|","5|1|"]} 
[2026-03-30 15:12:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6548,"order_number":"AZS-300326-003"} 
[2026-03-30 15:12:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6548,"order_number":"AZS-300326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-30 15:12:22"} 
[2026-03-30 15:16:18] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6554,"order_number":"AZS-300326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3041,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 15:16:18"} 
[2026-03-30 15:16:18] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6554,"order_number":"AZS-300326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3041,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 15:16:18"} 
[2026-03-30 15:16:18] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6554,"order_number":"AZS-300326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3041,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 15:16:18"} 
[2026-03-30 15:16:18] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6554,"order_number":"AZS-300326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3041,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 15:16:18"} 
[2026-03-30 15:16:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6554,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31128},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31129},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31130},{"menu_item_id":286,"quantity":5,"price":15,"discount_percent":0,"notes":null,"id":31131},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31132}],"validated_items":[{"id":31128,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":31129,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31130,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31131,"menu_item_id":286,"quantity":5,"price":15,"discount_percent":0,"notes":null},{"id":31132,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-30 15:16:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6554,"items_count":5} 
[2026-03-30 15:16:18] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31128,"menu_item_id":105,"quantity":1},{"id":31129,"menu_item_id":61,"quantity":1},{"id":31130,"menu_item_id":5,"quantity":1},{"id":31131,"menu_item_id":286,"quantity":5},{"id":31132,"menu_item_id":6,"quantity":2}]} 
[2026-03-30 15:16:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6554,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","61|1|","5|1|","286|5|","6|2|"],"new_items_map_keys":["105|1|","61|1|","5|1|","286|5|","6|2|"]} 
[2026-03-30 15:16:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6554,"order_number":"AZS-300326-004"} 
[2026-03-30 15:16:18] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6554,"order_number":"AZS-300326-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3041,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-30 15:16:18","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-30 15:16:18"} 
[2026-03-30 15:16:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6554,"order_number":"AZS-300326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-30 15:16:18"} 
[2026-03-30 15:16:18] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6554,"order_number":"AZS-300326-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3041.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-30 15:16:18","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3041,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3041.00","database_verification_match":true,"timestamp":"2026-03-30 15:16:18"} 
[2026-03-30 15:17:57] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6548,"order_number":"AZS-300326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 15:17:57"} 
[2026-03-30 15:17:57] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6548,"order_number":"AZS-300326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 15:17:57"} 
[2026-03-30 15:17:57] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6548,"order_number":"AZS-300326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 15:17:57"} 
[2026-03-30 15:17:57] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6548,"order_number":"AZS-300326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 15:17:57"} 
[2026-03-30 15:17:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6548,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null,"id":31102},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":31103},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31104},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":31105},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31106},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31107},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31108}],"validated_items":[{"id":31102,"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null},{"id":31103,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":31104,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":31105,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":31106,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31107,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31108,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-30 15:17:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6548,"items_count":7} 
[2026-03-30 15:17:57] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31102,"menu_item_id":103,"quantity":1},{"id":31103,"menu_item_id":65,"quantity":1},{"id":31104,"menu_item_id":396,"quantity":2},{"id":31105,"menu_item_id":50,"quantity":1},{"id":31106,"menu_item_id":61,"quantity":1},{"id":31107,"menu_item_id":56,"quantity":2},{"id":31108,"menu_item_id":5,"quantity":1}]} 
[2026-03-30 15:17:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6548,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["103|1|","65|1|","396|2|","50|2|","61|2|","56|2|","5|1|"],"new_items_map_keys":["103|1|","65|1|","396|2|","50|1|","61|1|","56|2|","5|1|"]} 
[2026-03-30 15:17:57] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6548,"order_number":"AZS-300326-003","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-30 15:17:57","original_payment_amount":"0.00","grand_total":4992.0,"timestamp":"2026-03-30 15:17:57"} 
[2026-03-30 15:17:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6548,"order_number":"AZS-300326-003"} 
[2026-03-30 15:17:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-300326-003","replaced_order_id":6548} 
[2026-03-30 15:17:57] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6548,"new_order_id":6558,"order_number":"AZS-300326-003","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-30 15:17:57","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-30 15:17:57"} 
[2026-03-30 15:17:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6558,"items_count":7,"items":[{"menu_item_id":103,"quantity":1,"price":2599.0},{"menu_item_id":65,"quantity":1,"price":1299.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":50,"quantity":1,"price":129.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":2,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-03-30 15:17:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6558,"item_index":0,"item_data":{"menu_item_id":103,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Full","quantity":1,"price":2599.0,"discount_percent":0.0,"discount_amount":0.0,"total":2599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6558}} 
[2026-03-30 15:17:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6558,"item_index":0,"menu_item_id":103} 
[2026-03-30 15:17:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6558,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6558}} 
[2026-03-30 15:17:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6558,"item_index":1,"menu_item_id":65} 
[2026-03-30 15:17:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6558,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6558}} 
[2026-03-30 15:17:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6558,"item_index":2,"menu_item_id":396} 
[2026-03-30 15:17:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6558,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6558}} 
[2026-03-30 15:17:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6558,"item_index":3,"menu_item_id":50} 
[2026-03-30 15:17:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6558,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6558}} 
[2026-03-30 15:17:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6558,"item_index":4,"menu_item_id":61} 
[2026-03-30 15:17:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6558,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6558}} 
[2026-03-30 15:17:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6558,"item_index":5,"menu_item_id":56} 
[2026-03-30 15:17:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6558,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6558}} 
[2026-03-30 15:17:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6558,"item_index":6,"menu_item_id":5} 
[2026-03-30 15:17:57] local.ERROR: Error tracking recipe usage for order 6558: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6558, 103, 77, 1, 1, 0.00, Order #AZS-300326-003 - 1x Chicken Afghani Karahi - Full, 2026-03-30 15:17:57, 2026-03-30 15:17:57))  
[2026-03-30 15:17:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6548,"new_order_id":6558,"order_number":"AZS-300326-003"} 
[2026-03-30 15:17:58] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6548,"new_order_id":6558,"order_number":"AZS-300326-003","route":"api/orders/6548"} 
[2026-03-30 15:18:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6556,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":31136},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31137},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31138},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31139},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31140}],"validated_items":[{"id":31136,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":31137,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":31138,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31139,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31140,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-30 15:18:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6556,"items_count":5} 
[2026-03-30 15:18:08] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31136,"menu_item_id":113,"quantity":1},{"id":31137,"menu_item_id":396,"quantity":3},{"id":31138,"menu_item_id":61,"quantity":1},{"id":31139,"menu_item_id":56,"quantity":1},{"id":31140,"menu_item_id":5,"quantity":1}]} 
[2026-03-30 15:18:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6556,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["113|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["113|1|","396|3|","61|1|","56|1|","5|1|"]} 
[2026-03-30 15:18:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6556,"order_number":"AZS-300326-006"} 
[2026-03-30 15:18:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6556,"order_number":"AZS-300326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-30 15:18:08"} 
[2026-03-30 15:18:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6557,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"discount_percent":0,"notes":null,"id":31141},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":31142},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31143},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null,"id":31144},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31145},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":31146},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31147}],"validated_items":[{"id":31141,"menu_item_id":101,"quantity":1,"discount_percent":0,"notes":null},{"id":31142,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":31143,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":31144,"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"id":31145,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31146,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":31147,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-30 15:18:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6557,"items_count":7} 
[2026-03-30 15:18:17] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31141,"menu_item_id":101,"quantity":1},{"id":31142,"menu_item_id":98,"quantity":1},{"id":31143,"menu_item_id":396,"quantity":3},{"id":31144,"menu_item_id":50,"quantity":3},{"id":31145,"menu_item_id":61,"quantity":2},{"id":31146,"menu_item_id":56,"quantity":2},{"id":31147,"menu_item_id":5,"quantity":1}]} 
[2026-03-30 15:18:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6557,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["101|1|","98|1|","396|3|","50|3|","61|2|","56|2|","5|1|"],"new_items_map_keys":["101|1|","98|1|","396|3|","50|3|","61|2|","56|2|","5|1|"]} 
[2026-03-30 15:18:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6557,"order_number":"AZS-300326-007"} 
[2026-03-30 15:18:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6557,"order_number":"AZS-300326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-30 15:18:17"} 
[2026-03-30 15:18:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T03:18:33.776Z","date_to":"2026-03-30T15:18:33.776Z","per_page":"100"} 
[2026-03-30 15:18:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":2,"unique_order_numbers":7} 
[2026-03-30 15:18:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T03:18:33.794Z","date_to":"2026-03-30T15:18:33.794Z","per_page":"100"} 
[2026-03-30 15:18:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":2,"unique_order_numbers":7} 
[2026-03-30 15:18:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T03:18:33.776Z","date_to":"2026-03-30T15:18:33.776Z","per_page":"100"} 
[2026-03-30 15:18:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":2,"unique_order_numbers":7} 
[2026-03-30 15:41:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6557,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"discount_percent":0,"notes":null,"id":31141},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":31142},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31143},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null,"id":31144},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31145},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":31146},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31147},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":31141,"menu_item_id":101,"quantity":1,"discount_percent":0,"notes":null},{"id":31142,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":31143,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":31144,"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"id":31145,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31146,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":31147,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-30 15:41:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6557,"items_count":8} 
[2026-03-30 15:41:38] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31141,"menu_item_id":101,"quantity":1},{"id":31142,"menu_item_id":98,"quantity":1},{"id":31143,"menu_item_id":396,"quantity":3},{"id":31144,"menu_item_id":50,"quantity":3},{"id":31145,"menu_item_id":61,"quantity":2},{"id":31146,"menu_item_id":56,"quantity":2},{"id":31147,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-03-30 15:41:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6557,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["101|1|","98|1|","396|3|","50|3|","61|2|","56|2|","5|1|"],"new_items_map_keys":["101|1|","98|1|","396|3|","50|3|","61|2|","56|2|","5|1|","3|2|"]} 
[2026-03-30 15:41:38] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6557,"order_number":"AZS-300326-007"} 
[2026-03-30 15:41:38] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-300326-007","replaced_order_id":6557} 
[2026-03-30 15:41:38] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6559,"items_count":8,"items":[{"menu_item_id":101,"quantity":1,"price":"2399.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":3,"price":"129.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-03-30 15:41:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6559,"item_index":0,"item_data":{"menu_item_id":101,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Full","quantity":1,"price":"2399.00","discount_percent":0.0,"discount_amount":0.0,"total":2399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6559}} 
[2026-03-30 15:41:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6559,"item_index":0,"menu_item_id":101} 
[2026-03-30 15:41:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6559,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6559}} 
[2026-03-30 15:41:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6559,"item_index":1,"menu_item_id":98} 
[2026-03-30 15:41:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6559,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6559}} 
[2026-03-30 15:41:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6559,"item_index":2,"menu_item_id":396} 
[2026-03-30 15:41:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6559,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6559}} 
[2026-03-30 15:41:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6559,"item_index":3,"menu_item_id":50} 
[2026-03-30 15:41:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6559,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6559}} 
[2026-03-30 15:41:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6559,"item_index":4,"menu_item_id":61} 
[2026-03-30 15:41:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6559,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6559}} 
[2026-03-30 15:41:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6559,"item_index":5,"menu_item_id":56} 
[2026-03-30 15:41:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6559,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6559}} 
[2026-03-30 15:41:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6559,"item_index":6,"menu_item_id":5} 
[2026-03-30 15:41:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6559,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6559}} 
[2026-03-30 15:41:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6559,"item_index":7,"menu_item_id":3} 
[2026-03-30 15:41:38] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6557,"new_order_id":6559,"order_number":"AZS-300326-007"} 
[2026-03-30 15:42:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6556,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":31136},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31137},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31138},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31139},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31140},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":31136,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":31137,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":31138,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31139,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31140,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-30 15:42:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6556,"items_count":6} 
[2026-03-30 15:42:24] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31136,"menu_item_id":113,"quantity":1},{"id":31137,"menu_item_id":396,"quantity":3},{"id":31138,"menu_item_id":61,"quantity":1},{"id":31139,"menu_item_id":56,"quantity":1},{"id":31140,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-03-30 15:42:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6556,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["113|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["113|1|","396|3|","61|1|","56|1|","5|1|","2|3|"]} 
[2026-03-30 15:42:24] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6556,"order_number":"AZS-300326-006"} 
[2026-03-30 15:42:24] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-300326-006","replaced_order_id":6556} 
[2026-03-30 15:42:24] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6560,"items_count":6,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"}]} 
[2026-03-30 15:42:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6560,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6560}} 
[2026-03-30 15:42:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6560,"item_index":0,"menu_item_id":113} 
[2026-03-30 15:42:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6560,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6560}} 
[2026-03-30 15:42:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6560,"item_index":1,"menu_item_id":396} 
[2026-03-30 15:42:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6560,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6560}} 
[2026-03-30 15:42:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6560,"item_index":2,"menu_item_id":61} 
[2026-03-30 15:42:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6560,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6560}} 
[2026-03-30 15:42:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6560,"item_index":3,"menu_item_id":56} 
[2026-03-30 15:42:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6560,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6560}} 
[2026-03-30 15:42:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6560,"item_index":4,"menu_item_id":5} 
[2026-03-30 15:42:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6560,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6560}} 
[2026-03-30 15:42:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6560,"item_index":5,"menu_item_id":2} 
[2026-03-30 15:42:24] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6556,"new_order_id":6560,"order_number":"AZS-300326-006"} 
[2026-03-30 15:51:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T03:51:24.202Z","date_to":"2026-03-30T15:51:24.202Z","per_page":"100"} 
[2026-03-30 15:51:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":4,"unique_order_numbers":9} 
[2026-03-30 15:51:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T03:51:40.069Z","date_to":"2026-03-30T15:51:40.069Z","per_page":"100"} 
[2026-03-30 15:51:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T03:51:40.049Z","date_to":"2026-03-30T15:51:40.049Z","per_page":"100"} 
[2026-03-30 15:51:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":4,"unique_order_numbers":9} 
[2026-03-30 15:51:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":4,"unique_order_numbers":9} 
[2026-03-30 15:51:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T03:51:40.049Z","date_to":"2026-03-30T15:51:40.049Z","per_page":"100"} 
[2026-03-30 15:51:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":4,"unique_order_numbers":9} 
[2026-03-30 15:53:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T03:54:02.340Z","date_to":"2026-03-30T15:54:02.340Z","per_page":"100"} 
[2026-03-30 15:53:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T03:54:02.323Z","date_to":"2026-03-30T15:54:02.323Z","per_page":"100"} 
[2026-03-30 15:53:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":4,"unique_order_numbers":9} 
[2026-03-30 15:53:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":4,"unique_order_numbers":9} 
[2026-03-30 15:53:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T03:54:02.323Z","date_to":"2026-03-30T15:54:02.323Z","per_page":"100"} 
[2026-03-30 15:53:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":4,"unique_order_numbers":9} 
[2026-03-30 15:57:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6559,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null,"id":31155},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31156},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":31157},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":31158},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31159},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31160},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31161},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":31162}],"validated_items":[{"id":31155,"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null},{"id":31156,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31157,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":31158,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"id":31159,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31160,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31161,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31162,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-30 15:57:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6559,"items_count":8} 
[2026-03-30 15:57:50] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31155,"menu_item_id":101,"quantity":1},{"id":31156,"menu_item_id":98,"quantity":1},{"id":31157,"menu_item_id":396,"quantity":3},{"id":31158,"menu_item_id":50,"quantity":3},{"id":31159,"menu_item_id":61,"quantity":2},{"id":31160,"menu_item_id":56,"quantity":2},{"id":31161,"menu_item_id":5,"quantity":1},{"id":31162,"menu_item_id":3,"quantity":2}]} 
[2026-03-30 15:57:50] local.INFO: PosOrderController::update - Item changes check {"order_id":6559,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["101|1|","98|1|","396|3|","50|3|","61|2|","56|2|","5|1|","3|2|"],"new_items_map_keys":["101|1|","98|1|","396|3|","50|3|","61|2|","56|2|","5|1|","3|2|"]} 
[2026-03-30 15:57:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6559,"order_number":"AZS-300326-007"} 
[2026-03-30 15:57:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6559,"order_number":"AZS-300326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-30 15:57:50"} 
[2026-03-30 15:58:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6560,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31163},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":31164},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31165},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31166},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31167},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":31168}],"validated_items":[{"id":31163,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31164,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":31165,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31166,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31167,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31168,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-30 15:58:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6560,"items_count":6} 
[2026-03-30 15:58:46] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31163,"menu_item_id":113,"quantity":1},{"id":31164,"menu_item_id":396,"quantity":3},{"id":31165,"menu_item_id":61,"quantity":1},{"id":31166,"menu_item_id":56,"quantity":1},{"id":31167,"menu_item_id":5,"quantity":1},{"id":31168,"menu_item_id":2,"quantity":3}]} 
[2026-03-30 15:58:46] local.INFO: PosOrderController::update - Item changes check {"order_id":6560,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","396|3|","61|1|","56|1|","5|1|","2|3|"],"new_items_map_keys":["113|1|","396|3|","61|1|","56|1|","5|1|","2|3|"]} 
[2026-03-30 15:58:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6560,"order_number":"AZS-300326-006"} 
[2026-03-30 15:58:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6560,"order_number":"AZS-300326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-30 15:58:46"} 
[2026-03-30 16:05:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6560,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31163},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":31164},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31165},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31166},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31167},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":31168}],"validated_items":[{"id":31163,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31164,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":31165,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31166,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31167,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31168,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-30 16:05:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6560,"items_count":6} 
[2026-03-30 16:05:10] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31163,"menu_item_id":113,"quantity":1},{"id":31164,"menu_item_id":396,"quantity":3},{"id":31165,"menu_item_id":61,"quantity":1},{"id":31166,"menu_item_id":56,"quantity":1},{"id":31167,"menu_item_id":5,"quantity":1},{"id":31168,"menu_item_id":2,"quantity":2}]} 
[2026-03-30 16:05:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6560,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","396|3|","61|1|","56|1|","5|1|","2|3|"],"new_items_map_keys":["113|1|","396|3|","61|1|","56|1|","5|1|","2|2|"]} 
[2026-03-30 16:05:10] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6560,"order_number":"AZS-300326-006"} 
[2026-03-30 16:05:10] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-300326-006","replaced_order_id":6560} 
[2026-03-30 16:05:10] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6563,"items_count":6,"items":[{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":2,"quantity":2,"price":130.0}]} 
[2026-03-30 16:05:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6563,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6563}} 
[2026-03-30 16:05:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6563,"item_index":0,"menu_item_id":113} 
[2026-03-30 16:05:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6563,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6563}} 
[2026-03-30 16:05:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6563,"item_index":1,"menu_item_id":396} 
[2026-03-30 16:05:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6563,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6563}} 
[2026-03-30 16:05:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6563,"item_index":2,"menu_item_id":61} 
[2026-03-30 16:05:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6563,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6563}} 
[2026-03-30 16:05:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6563,"item_index":3,"menu_item_id":56} 
[2026-03-30 16:05:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6563,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6563}} 
[2026-03-30 16:05:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6563,"item_index":4,"menu_item_id":5} 
[2026-03-30 16:05:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6563,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6563}} 
[2026-03-30 16:05:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6563,"item_index":5,"menu_item_id":2} 
[2026-03-30 16:05:10] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6560,"new_order_id":6563,"order_number":"AZS-300326-006"} 
[2026-03-30 16:05:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6563,"item_index":0,"item_id":31163} 
[2026-03-30 16:05:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6563,"item_index":1,"item_id":31164} 
[2026-03-30 16:05:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6563,"item_index":2,"item_id":31165} 
[2026-03-30 16:05:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6563,"item_index":3,"item_id":31166} 
[2026-03-30 16:05:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6563,"item_index":4,"item_id":31167} 
[2026-03-30 16:05:16] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6563,"item_index":5,"item_id":31168} 
[2026-03-30 16:05:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6563,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31163},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":31164},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31165},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31166},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31167},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":31168}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-30 16:05:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6563,"items_count":6} 
[2026-03-30 16:05:16] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[31178,31179,31180,31181,31182,31183],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-30 16:05:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6563,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","396|3|","61|1|","56|1|","5|1|","2|2|"],"new_items_map_keys":["113|1|","396|3|","61|1|","56|1|","5|1|","2|2|"]} 
[2026-03-30 16:05:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6563,"order_number":"AZS-300326-006"} 
[2026-03-30 16:05:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6563,"order_number":"AZS-300326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-30 16:05:16"} 
[2026-03-30 16:06:10] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6563,"item_index":0,"item_id":31163} 
[2026-03-30 16:06:10] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6563,"item_index":1,"item_id":31164} 
[2026-03-30 16:06:10] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6563,"item_index":2,"item_id":31165} 
[2026-03-30 16:06:10] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6563,"item_index":3,"item_id":31167} 
[2026-03-30 16:06:10] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6563,"item_index":4,"item_id":31168} 
[2026-03-30 16:06:10] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6563,"order_number":"AZS-300326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 16:06:10"} 
[2026-03-30 16:06:10] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6563,"order_number":"AZS-300326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 16:06:10"} 
[2026-03-30 16:06:10] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6563,"order_number":"AZS-300326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 16:06:10"} 
[2026-03-30 16:06:10] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6563,"order_number":"AZS-300326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 16:06:10"} 
[2026-03-30 16:06:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":6,"order_id":6563,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31163},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":31164},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31165},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31167},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":31168}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-30 16:06:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6563,"items_count":5} 
[2026-03-30 16:06:10] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":6,"items_to_remove":[31178,31179,31180,31181,31182,31183],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-30 16:06:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6563,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["113|1|","396|3|","61|1|","56|1|","5|1|","2|2|"],"new_items_map_keys":["113|1|","396|3|","61|1|","5|1|","2|2|"]} 
[2026-03-30 16:06:10] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6563,"order_number":"AZS-300326-006","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-30 16:06:10","original_payment_amount":"0.00","grand_total":2125.0,"timestamp":"2026-03-30 16:06:10"} 
[2026-03-30 16:06:10] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6563,"order_number":"AZS-300326-006"} 
[2026-03-30 16:06:10] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-300326-006","replaced_order_id":6563} 
[2026-03-30 16:06:10] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6563,"new_order_id":6564,"order_number":"AZS-300326-006","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-30 16:06:10","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-30 16:06:10"} 
[2026-03-30 16:06:10] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6564,"items_count":5,"items":[{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":2,"quantity":2,"price":130.0}]} 
[2026-03-30 16:06:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6564,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6564}} 
[2026-03-30 16:06:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6564,"item_index":0,"menu_item_id":113} 
[2026-03-30 16:06:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6564,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6564}} 
[2026-03-30 16:06:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6564,"item_index":1,"menu_item_id":396} 
[2026-03-30 16:06:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6564,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6564}} 
[2026-03-30 16:06:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6564,"item_index":2,"menu_item_id":61} 
[2026-03-30 16:06:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6564,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6564}} 
[2026-03-30 16:06:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6564,"item_index":3,"menu_item_id":5} 
[2026-03-30 16:06:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6564,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6564}} 
[2026-03-30 16:06:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6564,"item_index":4,"menu_item_id":2} 
[2026-03-30 16:06:10] local.ERROR: Error tracking recipe usage for order 6564: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6564, 61, 66, 1, 250, 0.00, Order #AZS-300326-006 - 1x Mint Raita, 2026-03-30 16:06:10, 2026-03-30 16:06:10))  
[2026-03-30 16:06:10] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6563,"new_order_id":6564,"order_number":"AZS-300326-006"} 
[2026-03-30 16:06:10] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6563,"new_order_id":6564,"order_number":"AZS-300326-006","route":"api/orders/6563"} 
[2026-03-30 16:06:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T04:06:54.717Z","date_to":"2026-03-30T16:06:54.717Z","per_page":"100"} 
[2026-03-30 16:06:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":3,"unique_order_numbers":9} 
[2026-03-30 16:06:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T04:06:54.744Z","date_to":"2026-03-30T16:06:54.744Z","per_page":"100"} 
[2026-03-30 16:06:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":3,"unique_order_numbers":9} 
[2026-03-30 16:06:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T04:06:54.717Z","date_to":"2026-03-30T16:06:54.717Z","per_page":"100"} 
[2026-03-30 16:06:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":3,"unique_order_numbers":9} 
[2026-03-30 16:08:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6561,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":2,"discount_percent":0,"notes":null,"id":31169},{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":31170},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":31171},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31172},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":31173},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31174},{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null,"id":31175}],"validated_items":[{"id":31169,"menu_item_id":98,"quantity":2,"discount_percent":0,"notes":null},{"id":31170,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":31171,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":31172,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31173,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":31174,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":31175,"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-30 16:08:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6561,"items_count":7} 
[2026-03-30 16:08:30] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31169,"menu_item_id":98,"quantity":2},{"id":31170,"menu_item_id":102,"quantity":1},{"id":31171,"menu_item_id":396,"quantity":4},{"id":31172,"menu_item_id":61,"quantity":2},{"id":31173,"menu_item_id":56,"quantity":2},{"id":31174,"menu_item_id":5,"quantity":1},{"id":31175,"menu_item_id":385,"quantity":1}]} 
[2026-03-30 16:08:30] local.INFO: PosOrderController::update - Item changes check {"order_id":6561,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["98|1|","102|1|","396|4|","61|2|","56|2|","5|1|","385|1|"],"new_items_map_keys":["98|2|","102|1|","396|4|","61|2|","56|2|","5|1|","385|1|"]} 
[2026-03-30 16:08:30] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6561,"order_number":"AZS-300326-008"} 
[2026-03-30 16:08:30] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-300326-008","replaced_order_id":6561} 
[2026-03-30 16:08:30] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6565,"items_count":7,"items":[{"menu_item_id":98,"quantity":2,"price":"1199.00"},{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":385,"quantity":1,"price":"2899.00"}]} 
[2026-03-30 16:08:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6565,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6565}} 
[2026-03-30 16:08:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6565,"item_index":0,"menu_item_id":98} 
[2026-03-30 16:08:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6565,"item_index":1,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6565}} 
[2026-03-30 16:08:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6565,"item_index":1,"menu_item_id":102} 
[2026-03-30 16:08:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6565,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6565}} 
[2026-03-30 16:08:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6565,"item_index":2,"menu_item_id":396} 
[2026-03-30 16:08:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6565,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6565}} 
[2026-03-30 16:08:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6565,"item_index":3,"menu_item_id":61} 
[2026-03-30 16:08:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6565,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6565}} 
[2026-03-30 16:08:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6565,"item_index":4,"menu_item_id":56} 
[2026-03-30 16:08:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6565,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6565}} 
[2026-03-30 16:08:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6565,"item_index":5,"menu_item_id":5} 
[2026-03-30 16:08:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6565,"item_index":6,"item_data":{"menu_item_id":385,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 02","quantity":1,"price":"2899.00","discount_percent":0.0,"discount_amount":0.0,"total":2899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6565}} 
[2026-03-30 16:08:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6565,"item_index":6,"menu_item_id":385} 
[2026-03-30 16:08:30] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6561,"new_order_id":6565,"order_number":"AZS-300326-008"} 
[2026-03-30 16:23:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T04:24:00.389Z","date_to":"2026-03-30T16:24:00.389Z","per_page":"100"} 
[2026-03-30 16:23:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":4,"unique_order_numbers":10} 
[2026-03-30 16:23:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T04:24:00.374Z","date_to":"2026-03-30T16:24:00.374Z","per_page":"100"} 
[2026-03-30 16:23:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":4,"unique_order_numbers":10} 
[2026-03-30 16:23:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T04:24:00.374Z","date_to":"2026-03-30T16:24:00.374Z","per_page":"100"} 
[2026-03-30 16:23:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":4,"unique_order_numbers":10} 
[2026-03-30 16:25:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6562,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null,"id":31176},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":31177},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":31176,"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null},{"id":31177,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-30 16:25:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6562,"items_count":3} 
[2026-03-30 16:25:37] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31176,"menu_item_id":386,"quantity":1},{"id":31177,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-03-30 16:25:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6562,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["386|1|","2|1|"],"new_items_map_keys":["386|1|","2|1|","13|2|"]} 
[2026-03-30 16:25:37] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6562,"order_number":"AZS-300326-009"} 
[2026-03-30 16:25:37] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-300326-009","replaced_order_id":6562} 
[2026-03-30 16:25:37] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6567,"items_count":3,"items":[{"menu_item_id":386,"quantity":1,"price":"2099.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"}]} 
[2026-03-30 16:25:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6567,"item_index":0,"item_data":{"menu_item_id":386,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 01","quantity":1,"price":"2099.00","discount_percent":0.0,"discount_amount":0.0,"total":2099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6567}} 
[2026-03-30 16:25:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6567,"item_index":0,"menu_item_id":386} 
[2026-03-30 16:25:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6567,"item_index":1,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6567}} 
[2026-03-30 16:25:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6567,"item_index":1,"menu_item_id":2} 
[2026-03-30 16:25:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6567,"item_index":2,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6567}} 
[2026-03-30 16:25:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6567,"item_index":2,"menu_item_id":13} 
[2026-03-30 16:25:37] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6562,"new_order_id":6567,"order_number":"AZS-300326-009"} 
[2026-03-30 16:26:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":6566,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":31196},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":31197},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":31198},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31199},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31200},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31196,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":31197,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":31198,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":31199,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31200,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-30 16:26:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6566,"items_count":6} 
[2026-03-30 16:26:24] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[31201],"items":[{"id":31196,"menu_item_id":98,"quantity":1},{"id":31197,"menu_item_id":396,"quantity":1},{"id":31198,"menu_item_id":50,"quantity":1},{"id":31199,"menu_item_id":61,"quantity":1},{"id":31200,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-30 16:26:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6566,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["98|1|","396|1|","50|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["98|1|","396|1|","50|1|","61|1|","56|1|","4|1|"]} 
[2026-03-30 16:26:24] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6566,"order_number":"AZS-300326-010"} 
[2026-03-30 16:26:24] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-300326-010","replaced_order_id":6566} 
[2026-03-30 16:26:24] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6568,"items_count":6,"items":[{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-03-30 16:26:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6568,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6568}} 
[2026-03-30 16:26:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6568,"item_index":0,"menu_item_id":98} 
[2026-03-30 16:26:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6568,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6568}} 
[2026-03-30 16:26:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6568,"item_index":1,"menu_item_id":396} 
[2026-03-30 16:26:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6568,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6568}} 
[2026-03-30 16:26:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6568,"item_index":2,"menu_item_id":50} 
[2026-03-30 16:26:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6568,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6568}} 
[2026-03-30 16:26:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6568,"item_index":3,"menu_item_id":61} 
[2026-03-30 16:26:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6568,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6568}} 
[2026-03-30 16:26:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6568,"item_index":4,"menu_item_id":56} 
[2026-03-30 16:26:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6568,"item_index":5,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6568}} 
[2026-03-30 16:26:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6568,"item_index":5,"menu_item_id":4} 
[2026-03-30 16:26:24] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6566,"new_order_id":6568,"order_number":"AZS-300326-010"} 
[2026-03-30 16:26:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6565,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":2,"discount_percent":0,"notes":null,"id":31189},{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":31190},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":31191},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31192},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":31193},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31194},{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null,"id":31195},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":31189,"menu_item_id":98,"quantity":2,"discount_percent":0,"notes":null},{"id":31190,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":31191,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":31192,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31193,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":31194,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":31195,"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-30 16:26:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6565,"items_count":8} 
[2026-03-30 16:26:44] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31189,"menu_item_id":98,"quantity":2},{"id":31190,"menu_item_id":102,"quantity":1},{"id":31191,"menu_item_id":396,"quantity":4},{"id":31192,"menu_item_id":61,"quantity":2},{"id":31193,"menu_item_id":56,"quantity":2},{"id":31194,"menu_item_id":5,"quantity":1},{"id":31195,"menu_item_id":385,"quantity":1},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-03-30 16:26:44] local.INFO: PosOrderController::update - Item changes check {"order_id":6565,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["98|2|","102|1|","396|4|","61|2|","56|2|","5|1|","385|1|"],"new_items_map_keys":["98|2|","102|1|","396|4|","61|2|","56|2|","5|1|","385|1|","3|2|"]} 
[2026-03-30 16:26:44] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6565,"order_number":"AZS-300326-008"} 
[2026-03-30 16:26:44] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-300326-008","replaced_order_id":6565} 
[2026-03-30 16:26:44] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6569,"items_count":8,"items":[{"menu_item_id":98,"quantity":2,"price":"1199.00"},{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":385,"quantity":1,"price":"2899.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-03-30 16:26:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6569,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6569}} 
[2026-03-30 16:26:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6569,"item_index":0,"menu_item_id":98} 
[2026-03-30 16:26:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6569,"item_index":1,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6569}} 
[2026-03-30 16:26:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6569,"item_index":1,"menu_item_id":102} 
[2026-03-30 16:26:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6569,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6569}} 
[2026-03-30 16:26:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6569,"item_index":2,"menu_item_id":396} 
[2026-03-30 16:26:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6569,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6569}} 
[2026-03-30 16:26:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6569,"item_index":3,"menu_item_id":61} 
[2026-03-30 16:26:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6569,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6569}} 
[2026-03-30 16:26:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6569,"item_index":4,"menu_item_id":56} 
[2026-03-30 16:26:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6569,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6569}} 
[2026-03-30 16:26:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6569,"item_index":5,"menu_item_id":5} 
[2026-03-30 16:26:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6569,"item_index":6,"item_data":{"menu_item_id":385,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 02","quantity":1,"price":"2899.00","discount_percent":0.0,"discount_amount":0.0,"total":2899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6569}} 
[2026-03-30 16:26:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6569,"item_index":6,"menu_item_id":385} 
[2026-03-30 16:26:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6569,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6569}} 
[2026-03-30 16:26:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6569,"item_index":7,"menu_item_id":3} 
[2026-03-30 16:26:44] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6565,"new_order_id":6569,"order_number":"AZS-300326-008"} 
[2026-03-30 16:27:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6559,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null,"id":31155},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31156},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":31157},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":31158},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31159},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31160},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31161},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":31162}],"validated_items":[{"id":31155,"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null},{"id":31156,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31157,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":31158,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"id":31159,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31160,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31161,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31162,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-30 16:27:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6559,"items_count":8} 
[2026-03-30 16:27:25] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31155,"menu_item_id":101,"quantity":1},{"id":31156,"menu_item_id":98,"quantity":1},{"id":31157,"menu_item_id":396,"quantity":3},{"id":31158,"menu_item_id":50,"quantity":3},{"id":31159,"menu_item_id":61,"quantity":2},{"id":31160,"menu_item_id":56,"quantity":2},{"id":31161,"menu_item_id":5,"quantity":1},{"id":31162,"menu_item_id":3,"quantity":2}]} 
[2026-03-30 16:27:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6559,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["101|1|","98|1|","396|3|","50|3|","61|2|","56|2|","5|1|","3|2|"],"new_items_map_keys":["101|1|","98|1|","396|3|","50|3|","61|2|","56|2|","5|1|","3|2|"]} 
[2026-03-30 16:27:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6559,"order_number":"AZS-300326-007"} 
[2026-03-30 16:27:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6559,"order_number":"AZS-300326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-30 16:27:25"} 
[2026-03-30 16:31:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6567,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":31202},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":31203},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":31204}],"validated_items":[{"id":31202,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null},{"id":31203,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":31204,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-30 16:31:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6567,"items_count":3} 
[2026-03-30 16:31:41] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31202,"menu_item_id":386,"quantity":1},{"id":31203,"menu_item_id":2,"quantity":1},{"id":31204,"menu_item_id":13,"quantity":2}]} 
[2026-03-30 16:31:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6567,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["386|1|","2|1|","13|2|"],"new_items_map_keys":["386|1|","2|1|","13|2|"]} 
[2026-03-30 16:31:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6567,"order_number":"AZS-300326-009"} 
[2026-03-30 16:31:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6567,"order_number":"AZS-300326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-30 16:31:41"} 
[2026-03-30 16:31:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6567,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null,"id":31202},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":31203},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null,"id":31204},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31202,"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null},{"id":31203,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":31204,"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-30 16:31:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6567,"items_count":4} 
[2026-03-30 16:31:59] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31202,"menu_item_id":386,"quantity":1},{"id":31203,"menu_item_id":2,"quantity":1},{"id":31204,"menu_item_id":13,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-30 16:31:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6567,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["386|1|","2|1|","13|2|"],"new_items_map_keys":["386|1|","2|1|","13|2|","5|1|"]} 
[2026-03-30 16:31:59] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6567,"order_number":"AZS-300326-009"} 
[2026-03-30 16:31:59] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-300326-009","replaced_order_id":6567} 
[2026-03-30 16:31:59] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6570,"items_count":4,"items":[{"menu_item_id":386,"quantity":1,"price":"2099.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-30 16:31:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6570,"item_index":0,"item_data":{"menu_item_id":386,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 01","quantity":1,"price":"2099.00","discount_percent":0.0,"discount_amount":0.0,"total":2099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6570}} 
[2026-03-30 16:31:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6570,"item_index":0,"menu_item_id":386} 
[2026-03-30 16:31:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6570,"item_index":1,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6570}} 
[2026-03-30 16:31:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6570,"item_index":1,"menu_item_id":2} 
[2026-03-30 16:31:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6570,"item_index":2,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6570}} 
[2026-03-30 16:31:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6570,"item_index":2,"menu_item_id":13} 
[2026-03-30 16:31:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6570,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6570}} 
[2026-03-30 16:31:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6570,"item_index":3,"menu_item_id":5} 
[2026-03-30 16:31:59] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6567,"new_order_id":6570,"order_number":"AZS-300326-009"} 
[2026-03-30 16:32:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6570,"item_index":0,"item_id":31202} 
[2026-03-30 16:32:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6570,"item_index":1,"item_id":31203} 
[2026-03-30 16:32:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6570,"item_index":2,"item_id":31204} 
[2026-03-30 16:32:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6570,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":31202},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":31203},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":31204},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-30 16:32:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6570,"items_count":4} 
[2026-03-30 16:32:06] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[31219,31220,31221,31222],"items":[{"id":null,"menu_item_id":386,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":13,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-30 16:32:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6570,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["386|1|","2|1|","13|2|","5|1|"],"new_items_map_keys":["386|1|","2|1|","13|2|","5|1|"]} 
[2026-03-30 16:32:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6570,"order_number":"AZS-300326-009"} 
[2026-03-30 16:32:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6570,"order_number":"AZS-300326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-30 16:32:06"} 
[2026-03-30 16:34:11] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6559,"order_number":"AZS-300326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 16:34:11"} 
[2026-03-30 16:34:11] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6559,"order_number":"AZS-300326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 16:34:11"} 
[2026-03-30 16:34:11] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6559,"order_number":"AZS-300326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 16:34:11"} 
[2026-03-30 16:34:11] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6559,"order_number":"AZS-300326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 16:34:11"} 
[2026-03-30 16:34:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6559,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null,"id":31155},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31156},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":31157},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":31158},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31159},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31160},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31161},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":31162}],"validated_items":[{"id":31155,"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null},{"id":31156,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31157,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":31158,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"id":31159,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31160,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31161,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31162,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-30 16:34:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6559,"items_count":8} 
[2026-03-30 16:34:11] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31155,"menu_item_id":101,"quantity":1},{"id":31156,"menu_item_id":98,"quantity":1},{"id":31157,"menu_item_id":396,"quantity":3},{"id":31158,"menu_item_id":50,"quantity":3},{"id":31159,"menu_item_id":61,"quantity":1},{"id":31160,"menu_item_id":56,"quantity":1},{"id":31161,"menu_item_id":5,"quantity":1},{"id":31162,"menu_item_id":3,"quantity":2}]} 
[2026-03-30 16:34:11] local.INFO: PosOrderController::update - Item changes check {"order_id":6559,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["101|1|","98|1|","396|3|","50|3|","61|2|","56|2|","5|1|","3|2|"],"new_items_map_keys":["101|1|","98|1|","396|3|","50|3|","61|1|","56|1|","5|1|","3|2|"]} 
[2026-03-30 16:34:11] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6559,"order_number":"AZS-300326-007","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":6000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-30 16:34:11","original_payment_amount":"0.00","grand_total":5390.0,"timestamp":"2026-03-30 16:34:11"} 
[2026-03-30 16:34:11] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6559,"order_number":"AZS-300326-007"} 
[2026-03-30 16:34:11] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-300326-007","replaced_order_id":6559} 
[2026-03-30 16:34:11] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6559,"new_order_id":6571,"order_number":"AZS-300326-007","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"6000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-30 16:34:11","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-30 16:34:11"} 
[2026-03-30 16:34:11] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6571,"items_count":8,"items":[{"menu_item_id":101,"quantity":1,"price":2399.0},{"menu_item_id":98,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":50,"quantity":3,"price":129.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":2,"price":270.0}]} 
[2026-03-30 16:34:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6571,"item_index":0,"item_data":{"menu_item_id":101,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Full","quantity":1,"price":2399.0,"discount_percent":0.0,"discount_amount":0.0,"total":2399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6571}} 
[2026-03-30 16:34:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6571,"item_index":0,"menu_item_id":101} 
[2026-03-30 16:34:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6571,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6571}} 
[2026-03-30 16:34:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6571,"item_index":1,"menu_item_id":98} 
[2026-03-30 16:34:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6571,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6571}} 
[2026-03-30 16:34:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6571,"item_index":2,"menu_item_id":396} 
[2026-03-30 16:34:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6571,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6571}} 
[2026-03-30 16:34:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6571,"item_index":3,"menu_item_id":50} 
[2026-03-30 16:34:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6571,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6571}} 
[2026-03-30 16:34:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6571,"item_index":4,"menu_item_id":61} 
[2026-03-30 16:34:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6571,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6571}} 
[2026-03-30 16:34:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6571,"item_index":5,"menu_item_id":56} 
[2026-03-30 16:34:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6571,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6571}} 
[2026-03-30 16:34:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6571,"item_index":6,"menu_item_id":5} 
[2026-03-30 16:34:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6571,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6571}} 
[2026-03-30 16:34:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6571,"item_index":7,"menu_item_id":3} 
[2026-03-30 16:34:11] local.ERROR: Error tracking recipe usage for order 6571: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6571, 101, 77, 1, 1, 0.00, Order #AZS-300326-007 - 1x Chicken Peshawari Karahi - Full, 2026-03-30 16:34:11, 2026-03-30 16:34:11))  
[2026-03-30 16:34:11] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6559,"new_order_id":6571,"order_number":"AZS-300326-007"} 
[2026-03-30 16:34:12] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6559,"new_order_id":6571,"order_number":"AZS-300326-007","route":"api/orders/6559"} 
[2026-03-30 16:36:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T04:36:32.998Z","date_to":"2026-03-30T16:36:32.998Z","per_page":"100"} 
[2026-03-30 16:36:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":4,"unique_order_numbers":11} 
[2026-03-30 16:36:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T04:36:32.976Z","date_to":"2026-03-30T16:36:32.976Z","per_page":"100"} 
[2026-03-30 16:36:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":4,"unique_order_numbers":11} 
[2026-03-30 16:36:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T04:36:32.976Z","date_to":"2026-03-30T16:36:32.976Z","per_page":"100"} 
[2026-03-30 16:36:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":4,"unique_order_numbers":11} 
[2026-03-30 16:39:46] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6570,"order_number":"AZS-300326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3050,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 16:39:46"} 
[2026-03-30 16:39:46] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6570,"order_number":"AZS-300326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3050,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 16:39:46"} 
[2026-03-30 16:39:46] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6570,"order_number":"AZS-300326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3050,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 16:39:46"} 
[2026-03-30 16:39:46] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6570,"order_number":"AZS-300326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3050,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 16:39:46"} 
[2026-03-30 16:39:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6570,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":31219},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":31220},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":31221},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31222}],"validated_items":[{"id":31219,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null},{"id":31220,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":31221,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":31222,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-30 16:39:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6570,"items_count":4} 
[2026-03-30 16:39:46] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31219,"menu_item_id":386,"quantity":1},{"id":31220,"menu_item_id":2,"quantity":1},{"id":31221,"menu_item_id":13,"quantity":2},{"id":31222,"menu_item_id":5,"quantity":1}]} 
[2026-03-30 16:39:46] local.INFO: PosOrderController::update - Item changes check {"order_id":6570,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["386|1|","2|1|","13|2|","5|1|"],"new_items_map_keys":["386|1|","2|1|","13|2|","5|1|"]} 
[2026-03-30 16:39:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6570,"order_number":"AZS-300326-009"} 
[2026-03-30 16:39:46] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6570,"order_number":"AZS-300326-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3050,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-30 16:39:46","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-30 16:39:46"} 
[2026-03-30 16:39:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6570,"order_number":"AZS-300326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-30 16:39:46"} 
[2026-03-30 16:39:46] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6570,"order_number":"AZS-300326-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3050.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-30 16:39:46","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3050,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3050.00","database_verification_match":true,"timestamp":"2026-03-30 16:39:46"} 
[2026-03-30 16:44:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6569,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":31211},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":31212},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":31213},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31214},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31215},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31216},{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":31217},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":31218}],"validated_items":[{"id":31211,"menu_item_id":98,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":31212,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":31213,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":31214,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31215,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31216,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31217,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null},{"id":31218,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-30 16:44:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6569,"items_count":8} 
[2026-03-30 16:44:22] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31211,"menu_item_id":98,"quantity":2},{"id":31212,"menu_item_id":102,"quantity":1},{"id":31213,"menu_item_id":396,"quantity":4},{"id":31214,"menu_item_id":61,"quantity":2},{"id":31215,"menu_item_id":56,"quantity":2},{"id":31216,"menu_item_id":5,"quantity":1},{"id":31217,"menu_item_id":385,"quantity":1},{"id":31218,"menu_item_id":3,"quantity":2}]} 
[2026-03-30 16:44:22] local.INFO: PosOrderController::update - Item changes check {"order_id":6569,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["98|2|","102|1|","396|4|","61|2|","56|2|","5|1|","385|1|","3|2|"],"new_items_map_keys":["98|2|","102|1|","396|4|","61|2|","56|2|","5|1|","385|1|","3|2|"]} 
[2026-03-30 16:44:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6569,"order_number":"AZS-300326-008"} 
[2026-03-30 16:44:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6569,"order_number":"AZS-300326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-30 16:44:22"} 
[2026-03-30 17:00:05] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6569,"order_number":"AZS-300326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":9030,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 17:00:05"} 
[2026-03-30 17:00:05] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6569,"order_number":"AZS-300326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":9030,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 17:00:05"} 
[2026-03-30 17:00:05] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6569,"order_number":"AZS-300326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":9030,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 17:00:05"} 
[2026-03-30 17:00:05] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6569,"order_number":"AZS-300326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":9030,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 17:00:05"} 
[2026-03-30 17:00:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6569,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":31211},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":31212},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":31213},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31214},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31215},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31216},{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":31217},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":31218}],"validated_items":[{"id":31211,"menu_item_id":98,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":31212,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":31213,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":31214,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31215,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31216,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31217,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null},{"id":31218,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-30 17:00:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6569,"items_count":8} 
[2026-03-30 17:00:05] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31211,"menu_item_id":98,"quantity":2},{"id":31212,"menu_item_id":102,"quantity":1},{"id":31213,"menu_item_id":396,"quantity":4},{"id":31214,"menu_item_id":61,"quantity":2},{"id":31215,"menu_item_id":56,"quantity":2},{"id":31216,"menu_item_id":5,"quantity":1},{"id":31217,"menu_item_id":385,"quantity":1},{"id":31218,"menu_item_id":3,"quantity":2}]} 
[2026-03-30 17:00:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6569,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["98|2|","102|1|","396|4|","61|2|","56|2|","5|1|","385|1|","3|2|"],"new_items_map_keys":["98|2|","102|1|","396|4|","61|2|","56|2|","5|1|","385|1|","3|2|"]} 
[2026-03-30 17:00:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6569,"order_number":"AZS-300326-008"} 
[2026-03-30 17:00:05] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6569,"order_number":"AZS-300326-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":9030,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-30 17:00:05","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-30 17:00:05"} 
[2026-03-30 17:00:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6569,"order_number":"AZS-300326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-30 17:00:05"} 
[2026-03-30 17:00:05] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6569,"order_number":"AZS-300326-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"9030.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-30 17:00:05","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":9030,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"9030.00","database_verification_match":true,"timestamp":"2026-03-30 17:00:05"} 
[2026-03-30 17:00:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T05:00:16.153Z","date_to":"2026-03-30T17:00:16.153Z","per_page":"100"} 
[2026-03-30 17:00:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":3,"unique_order_numbers":12} 
[2026-03-30 17:00:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T05:00:16.170Z","date_to":"2026-03-30T17:00:16.170Z","per_page":"100"} 
[2026-03-30 17:00:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":3,"unique_order_numbers":12} 
[2026-03-30 17:00:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T05:00:16.153Z","date_to":"2026-03-30T17:00:16.153Z","per_page":"100"} 
[2026-03-30 17:00:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":3,"unique_order_numbers":12} 
[2026-03-30 17:01:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T05:01:51.304Z","date_to":"2026-03-30T17:01:51.304Z","per_page":"100"} 
[2026-03-30 17:01:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T05:01:51.331Z","date_to":"2026-03-30T17:01:51.331Z","per_page":"100"} 
[2026-03-30 17:01:45] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":3,"unique_order_numbers":12} 
[2026-03-30 17:01:45] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":3,"unique_order_numbers":12} 
[2026-03-30 17:01:46] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T05:01:51.304Z","date_to":"2026-03-30T17:01:51.304Z","per_page":"100"} 
[2026-03-30 17:01:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":3,"unique_order_numbers":12} 
[2026-03-30 17:06:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6568,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":31205},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":31206},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":31207},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31208},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31209},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null,"id":31210},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":31205,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":31206,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":31207,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":31208,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31209,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31210,"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-30 17:06:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6568,"items_count":7} 
[2026-03-30 17:06:03] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31205,"menu_item_id":98,"quantity":1},{"id":31206,"menu_item_id":396,"quantity":1},{"id":31207,"menu_item_id":50,"quantity":1},{"id":31208,"menu_item_id":61,"quantity":1},{"id":31209,"menu_item_id":56,"quantity":1},{"id":31210,"menu_item_id":4,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-30 17:06:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6568,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["98|1|","396|1|","50|1|","61|1|","56|1|","4|1|"],"new_items_map_keys":["98|1|","396|1|","50|1|","61|1|","56|1|","4|1|","2|2|"]} 
[2026-03-30 17:06:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6568,"order_number":"AZS-300326-010"} 
[2026-03-30 17:06:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-300326-010","replaced_order_id":6568} 
[2026-03-30 17:06:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6574,"items_count":7,"items":[{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-30 17:06:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6574,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6574}} 
[2026-03-30 17:06:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6574,"item_index":0,"menu_item_id":98} 
[2026-03-30 17:06:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6574,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6574}} 
[2026-03-30 17:06:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6574,"item_index":1,"menu_item_id":396} 
[2026-03-30 17:06:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6574,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6574}} 
[2026-03-30 17:06:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6574,"item_index":2,"menu_item_id":50} 
[2026-03-30 17:06:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6574,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6574}} 
[2026-03-30 17:06:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6574,"item_index":3,"menu_item_id":61} 
[2026-03-30 17:06:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6574,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6574}} 
[2026-03-30 17:06:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6574,"item_index":4,"menu_item_id":56} 
[2026-03-30 17:06:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6574,"item_index":5,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6574}} 
[2026-03-30 17:06:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6574,"item_index":5,"menu_item_id":4} 
[2026-03-30 17:06:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6574,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6574}} 
[2026-03-30 17:06:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6574,"item_index":6,"menu_item_id":2} 
[2026-03-30 17:06:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6568,"new_order_id":6574,"order_number":"AZS-300326-010"} 
[2026-03-30 17:09:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6574,"item_index":0,"item_id":31205} 
[2026-03-30 17:09:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6574,"item_index":1,"item_id":31206} 
[2026-03-30 17:09:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6574,"item_index":2,"item_id":31207} 
[2026-03-30 17:09:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6574,"item_index":3,"item_id":31208} 
[2026-03-30 17:09:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6574,"item_index":4,"item_id":31209} 
[2026-03-30 17:09:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6574,"item_index":5,"item_id":31210} 
[2026-03-30 17:09:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":6574,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":31205},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":31206},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":31207},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31208},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31209},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null,"id":31210},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-30 17:09:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6574,"items_count":7} 
[2026-03-30 17:09:57] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[31244,31245,31246,31247,31248,31249,31250],"items":[{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-30 17:09:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6574,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["98|1|","396|1|","50|1|","61|1|","56|1|","4|1|","2|2|"],"new_items_map_keys":["98|1|","396|1|","50|1|","61|1|","56|1|","4|1|","2|1|"]} 
[2026-03-30 17:09:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6574,"order_number":"AZS-300326-010"} 
[2026-03-30 17:09:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-300326-010","replaced_order_id":6574} 
[2026-03-30 17:09:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6575,"items_count":7,"items":[{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-30 17:09:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6575,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6575}} 
[2026-03-30 17:09:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6575,"item_index":0,"menu_item_id":98} 
[2026-03-30 17:09:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6575,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6575}} 
[2026-03-30 17:09:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6575,"item_index":1,"menu_item_id":396} 
[2026-03-30 17:09:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6575,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6575}} 
[2026-03-30 17:09:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6575,"item_index":2,"menu_item_id":50} 
[2026-03-30 17:09:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6575,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6575}} 
[2026-03-30 17:09:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6575,"item_index":3,"menu_item_id":61} 
[2026-03-30 17:09:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6575,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6575}} 
[2026-03-30 17:09:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6575,"item_index":4,"menu_item_id":56} 
[2026-03-30 17:09:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6575,"item_index":5,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6575}} 
[2026-03-30 17:09:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6575,"item_index":5,"menu_item_id":4} 
[2026-03-30 17:09:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6575,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6575}} 
[2026-03-30 17:09:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6575,"item_index":6,"menu_item_id":2} 
[2026-03-30 17:09:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6574,"new_order_id":6575,"order_number":"AZS-300326-010"} 
[2026-03-30 17:20:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6575,"item_index":0,"item_id":31205} 
[2026-03-30 17:20:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6575,"item_index":1,"item_id":31206} 
[2026-03-30 17:20:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6575,"item_index":2,"item_id":31207} 
[2026-03-30 17:20:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6575,"item_index":3,"item_id":31208} 
[2026-03-30 17:20:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6575,"item_index":4,"item_id":31209} 
[2026-03-30 17:20:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6575,"item_index":5,"item_id":31210} 
[2026-03-30 17:20:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":6575,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31205},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":31206},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":31207},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31208},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31209},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":31210},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-30 17:20:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6575,"items_count":7} 
[2026-03-30 17:20:21] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[31251,31252,31253,31254,31255,31256,31257],"items":[{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-30 17:20:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6575,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["98|1|","396|1|","50|1|","61|1|","56|1|","4|1|","2|1|"],"new_items_map_keys":["98|1|","396|1|","50|1|","61|1|","56|1|","4|1|","2|1|"]} 
[2026-03-30 17:20:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6575,"order_number":"AZS-300326-010"} 
[2026-03-30 17:20:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6575,"order_number":"AZS-300326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-30 17:20:21"} 
[2026-03-30 17:28:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6575,"item_index":0,"item_id":31205} 
[2026-03-30 17:28:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6575,"item_index":1,"item_id":31206} 
[2026-03-30 17:28:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6575,"item_index":2,"item_id":31207} 
[2026-03-30 17:28:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6575,"item_index":3,"item_id":31208} 
[2026-03-30 17:28:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6575,"item_index":4,"item_id":31209} 
[2026-03-30 17:28:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6575,"item_index":5,"item_id":31210} 
[2026-03-30 17:28:39] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6575,"order_number":"AZS-300326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2150,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 17:28:39"} 
[2026-03-30 17:28:39] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6575,"order_number":"AZS-300326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2150,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 17:28:39"} 
[2026-03-30 17:28:39] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6575,"order_number":"AZS-300326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2150,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 17:28:39"} 
[2026-03-30 17:28:39] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6575,"order_number":"AZS-300326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2150,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 17:28:39"} 
[2026-03-30 17:28:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":6575,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31205},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":31206},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":31207},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31208},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31209},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":31210},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-30 17:28:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6575,"items_count":7} 
[2026-03-30 17:28:39] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[31251,31252,31253,31254,31255,31256,31257],"items":[{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-30 17:28:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6575,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["98|1|","396|1|","50|1|","61|1|","56|1|","4|1|","2|1|"],"new_items_map_keys":["98|1|","396|1|","50|1|","61|1|","56|1|","4|1|","2|1|"]} 
[2026-03-30 17:28:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6575,"order_number":"AZS-300326-010"} 
[2026-03-30 17:28:39] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6575,"order_number":"AZS-300326-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2150,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-30 17:28:39","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-30 17:28:39"} 
[2026-03-30 17:28:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6575,"order_number":"AZS-300326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-30 17:28:39"} 
[2026-03-30 17:28:39] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6575,"order_number":"AZS-300326-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2150.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-30 17:28:39","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2150,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2150.00","database_verification_match":true,"timestamp":"2026-03-30 17:28:39"} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6572,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null,"id":31231},{"menu_item_id":94,"quantity":1,"discount_percent":0,"notes":null,"id":31232},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31233},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":31234},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31235},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31236},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31237},{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null,"id":31238},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31231,"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null},{"id":31232,"menu_item_id":94,"quantity":1,"discount_percent":0,"notes":null},{"id":31233,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":31234,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":31235,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31236,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31237,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":31238,"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6572,"items_count":9} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31231,"menu_item_id":103,"quantity":1},{"id":31232,"menu_item_id":94,"quantity":1},{"id":31233,"menu_item_id":396,"quantity":3},{"id":31234,"menu_item_id":50,"quantity":2},{"id":31235,"menu_item_id":61,"quantity":1},{"id":31236,"menu_item_id":56,"quantity":1},{"id":31237,"menu_item_id":5,"quantity":1},{"id":31238,"menu_item_id":85,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6572,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["103|1|","94|1|","396|3|","50|2|","61|1|","56|1|","5|1|","85|1|"],"new_items_map_keys":["103|1|","94|1|","396|3|","50|2|","61|1|","56|1|","5|1|","85|1|","3|1|"]} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6572,"order_number":"AZS-300326-011"} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-300326-011","replaced_order_id":6572} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6576,"items_count":9,"items":[{"menu_item_id":103,"quantity":1,"price":"2599.00"},{"menu_item_id":94,"quantity":1,"price":"1999.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":85,"quantity":1,"price":"699.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6576,"item_index":0,"item_data":{"menu_item_id":103,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Full","quantity":1,"price":"2599.00","discount_percent":0.0,"discount_amount":0.0,"total":2599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6576}} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6576,"item_index":0,"menu_item_id":103} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6576,"item_index":1,"item_data":{"menu_item_id":94,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Jalfrezi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6576}} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6576,"item_index":1,"menu_item_id":94} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6576,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6576}} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6576,"item_index":2,"menu_item_id":396} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6576,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6576}} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6576,"item_index":3,"menu_item_id":50} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6576,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6576}} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6576,"item_index":4,"menu_item_id":61} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6576,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6576}} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6576,"item_index":5,"menu_item_id":56} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6576,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6576}} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6576,"item_index":6,"menu_item_id":5} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6576,"item_index":7,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":1,"price":"699.00","discount_percent":0.0,"discount_amount":0.0,"total":699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6576}} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6576,"item_index":7,"menu_item_id":85} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6576,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6576}} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6576,"item_index":8,"menu_item_id":3} 
[2026-03-30 17:34:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6572,"new_order_id":6576,"order_number":"AZS-300326-011"} 
[2026-03-30 17:35:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6576,"item_index":0,"item_id":31231} 
[2026-03-30 17:35:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6576,"item_index":1,"item_id":31232} 
[2026-03-30 17:35:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6576,"item_index":2,"item_id":31233} 
[2026-03-30 17:35:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6576,"item_index":3,"item_id":31234} 
[2026-03-30 17:35:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6576,"item_index":4,"item_id":31235} 
[2026-03-30 17:35:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6576,"item_index":5,"item_id":31236} 
[2026-03-30 17:35:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6576,"item_index":6,"item_id":31237} 
[2026-03-30 17:35:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6576,"item_index":7,"item_id":31238} 
[2026-03-30 17:35:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":9,"order_id":6576,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null,"id":31231},{"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":31232},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":31233},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":31234},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31235},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31236},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31237},{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":31238},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null},{"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-30 17:35:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6576,"items_count":9} 
[2026-03-30 17:35:03] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":9,"items_to_remove":[31258,31259,31260,31261,31262,31263,31264,31265,31266],"items":[{"id":null,"menu_item_id":103,"quantity":1},{"id":null,"menu_item_id":94,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":85,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-30 17:35:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6576,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["103|1|","94|1|","396|3|","50|2|","61|1|","56|1|","5|1|","85|1|","3|1|"],"new_items_map_keys":["103|1|","94|1|","396|3|","50|2|","61|1|","56|1|","5|1|","85|1|","3|1|"]} 
[2026-03-30 17:35:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6576,"order_number":"AZS-300326-011"} 
[2026-03-30 17:35:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6576,"order_number":"AZS-300326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-30 17:35:03"} 
[2026-03-30 17:50:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6576,"item_index":0,"item_id":31231} 
[2026-03-30 17:50:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6576,"item_index":1,"item_id":31232} 
[2026-03-30 17:50:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6576,"item_index":2,"item_id":31233} 
[2026-03-30 17:50:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6576,"item_index":3,"item_id":31234} 
[2026-03-30 17:50:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6576,"item_index":4,"item_id":31235} 
[2026-03-30 17:50:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6576,"item_index":5,"item_id":31236} 
[2026-03-30 17:50:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6576,"item_index":6,"item_id":31237} 
[2026-03-30 17:50:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6576,"item_index":7,"item_id":31238} 
[2026-03-30 17:50:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":9,"order_id":6576,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null,"id":31231},{"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":31232},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":31233},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":31234},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31235},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31236},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31237},{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":31238},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null},{"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-30 17:50:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6576,"items_count":9} 
[2026-03-30 17:50:45] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":9,"items_to_remove":[31258,31259,31260,31261,31262,31263,31264,31265,31266],"items":[{"id":null,"menu_item_id":103,"quantity":1},{"id":null,"menu_item_id":94,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":85,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-30 17:50:45] local.INFO: PosOrderController::update - Item changes check {"order_id":6576,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["103|1|","94|1|","396|3|","50|2|","61|1|","56|1|","5|1|","85|1|","3|1|"],"new_items_map_keys":["103|1|","94|1|","396|3|","50|2|","61|1|","56|1|","5|1|","85|1|","3|1|"]} 
[2026-03-30 17:50:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6576,"order_number":"AZS-300326-011"} 
[2026-03-30 17:50:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6576,"order_number":"AZS-300326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-30 17:50:45"} 
[2026-03-30 17:51:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6573,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":31239},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":31240},{"menu_item_id":396,"quantity":6,"discount_percent":0,"notes":null,"id":31241},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31242},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31243},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31239,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":31240,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":31241,"menu_item_id":396,"quantity":6,"discount_percent":0,"notes":null},{"id":31242,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31243,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-30 17:51:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6573,"items_count":6} 
[2026-03-30 17:51:52] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31239,"menu_item_id":99,"quantity":1},{"id":31240,"menu_item_id":113,"quantity":1},{"id":31241,"menu_item_id":396,"quantity":6},{"id":31242,"menu_item_id":61,"quantity":2},{"id":31243,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-30 17:51:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6573,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["99|1|","113|1|","396|6|","61|2|","5|1|"],"new_items_map_keys":["99|1|","113|1|","396|6|","61|2|","5|1|","3|1|"]} 
[2026-03-30 17:51:52] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6573,"order_number":"AZS-300326-012"} 
[2026-03-30 17:51:52] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-300326-012","replaced_order_id":6573} 
[2026-03-30 17:51:52] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6577,"items_count":6,"items":[{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":6,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-30 17:51:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6577,"item_index":0,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6577}} 
[2026-03-30 17:51:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6577,"item_index":0,"menu_item_id":99} 
[2026-03-30 17:51:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6577,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6577}} 
[2026-03-30 17:51:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6577,"item_index":1,"menu_item_id":113} 
[2026-03-30 17:51:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6577,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":6,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":594.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6577}} 
[2026-03-30 17:51:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6577,"item_index":2,"menu_item_id":396} 
[2026-03-30 17:51:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6577,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6577}} 
[2026-03-30 17:51:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6577,"item_index":3,"menu_item_id":61} 
[2026-03-30 17:51:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6577,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6577}} 
[2026-03-30 17:51:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6577,"item_index":4,"menu_item_id":5} 
[2026-03-30 17:51:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6577,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6577}} 
[2026-03-30 17:51:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6577,"item_index":5,"menu_item_id":3} 
[2026-03-30 17:51:52] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6573,"new_order_id":6577,"order_number":"AZS-300326-012"} 
[2026-03-30 17:59:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T05:59:32.048Z","date_to":"2026-03-30T17:59:32.048Z","per_page":"100"} 
[2026-03-30 17:59:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T05:59:32.074Z","date_to":"2026-03-30T17:59:32.074Z","per_page":"100"} 
[2026-03-30 17:59:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-30 17:59:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-30 17:59:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T05:59:32.048Z","date_to":"2026-03-30T17:59:32.048Z","per_page":"100"} 
[2026-03-30 17:59:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-03-30 17:59:49] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6576,"order_number":"AZS-300326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":7000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 17:59:49"} 
[2026-03-30 17:59:49] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6576,"order_number":"AZS-300326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":7000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 17:59:49"} 
[2026-03-30 17:59:49] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6576,"order_number":"AZS-300326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 17:59:49"} 
[2026-03-30 17:59:49] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6576,"order_number":"AZS-300326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 17:59:49"} 
[2026-03-30 17:59:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6576,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null,"id":31258},{"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":31259},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":31260},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":31261},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31262},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31263},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31264},{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":31265},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31266}],"validated_items":[{"id":31258,"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null},{"id":31259,"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":31260,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":31261,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":31262,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31263,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31264,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31265,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":31266,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-30 17:59:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6576,"items_count":9} 
[2026-03-30 17:59:49] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31258,"menu_item_id":103,"quantity":1},{"id":31259,"menu_item_id":94,"quantity":1},{"id":31260,"menu_item_id":396,"quantity":3},{"id":31261,"menu_item_id":50,"quantity":2},{"id":31262,"menu_item_id":61,"quantity":1},{"id":31263,"menu_item_id":56,"quantity":1},{"id":31264,"menu_item_id":5,"quantity":1},{"id":31265,"menu_item_id":85,"quantity":1},{"id":31266,"menu_item_id":3,"quantity":1}]} 
[2026-03-30 17:59:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6576,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["103|1|","94|1|","396|3|","50|2|","61|1|","56|1|","5|1|","85|1|","3|1|"],"new_items_map_keys":["103|1|","94|1|","396|3|","50|2|","61|1|","56|1|","5|1|","85|1|","3|1|"]} 
[2026-03-30 17:59:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6576,"order_number":"AZS-300326-011"} 
[2026-03-30 17:59:49] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6576,"order_number":"AZS-300326-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":7000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-30 17:59:49","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-30 17:59:49"} 
[2026-03-30 17:59:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6576,"order_number":"AZS-300326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-30 17:59:49"} 
[2026-03-30 17:59:49] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6576,"order_number":"AZS-300326-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"7000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-30 17:59:49","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":7000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"7000.00","database_verification_match":true,"timestamp":"2026-03-30 17:59:49"} 
[2026-03-30 17:59:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T05:59:59.374Z","date_to":"2026-03-30T17:59:59.374Z","per_page":"100"} 
[2026-03-30 17:59:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T05:59:59.351Z","date_to":"2026-03-30T17:59:59.351Z","per_page":"100"} 
[2026-03-30 17:59:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":2,"unique_order_numbers":13} 
[2026-03-30 17:59:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":2,"unique_order_numbers":13} 
[2026-03-30 17:59:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T05:59:59.351Z","date_to":"2026-03-30T17:59:59.351Z","per_page":"100"} 
[2026-03-30 17:59:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":2,"unique_order_numbers":13} 
[2026-03-30 18:03:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T06:03:07.152Z","date_to":"2026-03-30T18:03:07.152Z","per_page":"100"} 
[2026-03-30 18:03:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T06:03:07.133Z","date_to":"2026-03-30T18:03:07.133Z","per_page":"100"} 
[2026-03-30 18:03:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":2,"unique_order_numbers":13} 
[2026-03-30 18:03:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":2,"unique_order_numbers":13} 
[2026-03-30 18:03:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T06:03:07.133Z","date_to":"2026-03-30T18:03:07.133Z","per_page":"100"} 
[2026-03-30 18:03:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":2,"unique_order_numbers":13} 
[2026-03-30 18:19:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6577,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":31267},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":31268},{"menu_item_id":396,"quantity":6,"discount_percent":0,"notes":null,"id":31269},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31270},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31271},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":31272}],"validated_items":[{"id":31267,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":31268,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":31269,"menu_item_id":396,"quantity":6,"discount_percent":0,"notes":null},{"id":31270,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31271,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":31272,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-30 18:19:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6577,"items_count":6} 
[2026-03-30 18:19:51] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31267,"menu_item_id":99,"quantity":1},{"id":31268,"menu_item_id":113,"quantity":1},{"id":31269,"menu_item_id":396,"quantity":6},{"id":31270,"menu_item_id":61,"quantity":2},{"id":31271,"menu_item_id":5,"quantity":1},{"id":31272,"menu_item_id":3,"quantity":1}]} 
[2026-03-30 18:19:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6577,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["99|1|","113|1|","396|6|","61|2|","5|1|","3|1|"],"new_items_map_keys":["99|1|","113|1|","396|6|","61|2|","5|1|","3|1|"]} 
[2026-03-30 18:19:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6577,"order_number":"AZS-300326-012"} 
[2026-03-30 18:19:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6577,"order_number":"AZS-300326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-30 18:19:51"} 
[2026-03-30 18:30:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6577,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":31267},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31268},{"menu_item_id":396,"quantity":6,"price":99,"discount_percent":0,"notes":null,"id":31269},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31270},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31271},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31272}],"validated_items":[{"id":31267,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":31268,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31269,"menu_item_id":396,"quantity":6,"price":99,"discount_percent":0,"notes":null},{"id":31270,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31271,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31272,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-30 18:30:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6577,"items_count":6} 
[2026-03-30 18:30:36] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31267,"menu_item_id":99,"quantity":1},{"id":31268,"menu_item_id":113,"quantity":1},{"id":31269,"menu_item_id":396,"quantity":6},{"id":31270,"menu_item_id":61,"quantity":2},{"id":31271,"menu_item_id":5,"quantity":1},{"id":31272,"menu_item_id":3,"quantity":1}]} 
[2026-03-30 18:30:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6577,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["99|1|","113|1|","396|6|","61|2|","5|1|","3|1|"],"new_items_map_keys":["99|1|","113|1|","396|6|","61|2|","5|1|","3|1|"]} 
[2026-03-30 18:30:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6577,"order_number":"AZS-300326-012"} 
[2026-03-30 18:30:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6577,"order_number":"AZS-300326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-30 18:30:36"} 
[2026-03-30 18:31:29] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6577,"order_number":"AZS-300326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 18:31:29"} 
[2026-03-30 18:31:29] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6577,"order_number":"AZS-300326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 18:31:29"} 
[2026-03-30 18:31:29] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6577,"order_number":"AZS-300326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 18:31:29"} 
[2026-03-30 18:31:29] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6577,"order_number":"AZS-300326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 18:31:29"} 
[2026-03-30 18:31:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6577,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":31267},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31268},{"menu_item_id":396,"quantity":6,"price":99,"discount_percent":0,"notes":null,"id":31269},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31270},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31271},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31272}],"validated_items":[{"id":31267,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":31268,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31269,"menu_item_id":396,"quantity":6,"price":99,"discount_percent":0,"notes":null},{"id":31270,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31271,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31272,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-30 18:31:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6577,"items_count":6} 
[2026-03-30 18:31:29] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31267,"menu_item_id":99,"quantity":1},{"id":31268,"menu_item_id":113,"quantity":1},{"id":31269,"menu_item_id":396,"quantity":6},{"id":31270,"menu_item_id":61,"quantity":2},{"id":31271,"menu_item_id":5,"quantity":1},{"id":31272,"menu_item_id":3,"quantity":1}]} 
[2026-03-30 18:31:29] local.INFO: PosOrderController::update - Item changes check {"order_id":6577,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["99|1|","113|1|","396|6|","61|2|","5|1|","3|1|"],"new_items_map_keys":["99|1|","113|1|","396|6|","61|2|","5|1|","3|1|"]} 
[2026-03-30 18:31:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6577,"order_number":"AZS-300326-012"} 
[2026-03-30 18:31:29] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6577,"order_number":"AZS-300326-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-30 18:31:29","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-30 18:31:29"} 
[2026-03-30 18:31:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6577,"order_number":"AZS-300326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-30 18:31:29"} 
[2026-03-30 18:31:29] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6577,"order_number":"AZS-300326-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-30 18:31:29","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-30 18:31:29"} 
[2026-03-30 18:31:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T06:31:39.085Z","date_to":"2026-03-30T18:31:39.085Z","per_page":"100"} 
[2026-03-30 18:31:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-30 18:31:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T06:31:39.108Z","date_to":"2026-03-30T18:31:39.108Z","per_page":"100"} 
[2026-03-30 18:31:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-30 18:31:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T06:31:39.085Z","date_to":"2026-03-30T18:31:39.085Z","per_page":"100"} 
[2026-03-30 18:31:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-30 18:35:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T06:35:07.080Z","date_to":"2026-03-30T18:35:07.080Z","per_page":"100"} 
[2026-03-30 18:35:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T06:35:07.095Z","date_to":"2026-03-30T18:35:07.095Z","per_page":"100"} 
[2026-03-30 18:35:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-30 18:35:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-30 18:35:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T06:35:07.080Z","date_to":"2026-03-30T18:35:07.080Z","per_page":"100"} 
[2026-03-30 18:35:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":1,"unique_order_numbers":13} 
[2026-03-30 18:46:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6578,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31273},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31274},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31275}],"validated_items":[{"id":31273,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":31274,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":31275,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-30 18:46:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6578,"items_count":3} 
[2026-03-30 18:46:32] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31273,"menu_item_id":105,"quantity":1},{"id":31274,"menu_item_id":396,"quantity":2},{"id":31275,"menu_item_id":61,"quantity":1}]} 
[2026-03-30 18:46:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6578,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["105|1|","396|2|","61|1|"],"new_items_map_keys":["105|1|","396|2|","61|1|"]} 
[2026-03-30 18:46:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6578,"order_number":"AZS-300326-013"} 
[2026-03-30 18:46:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6578,"order_number":"AZS-300326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-30 18:46:32"} 
[2026-03-30 18:47:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6578,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":31273},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":31274},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31275},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31273,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":31274,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":31275,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-30 18:47:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6578,"items_count":4} 
[2026-03-30 18:47:21] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31273,"menu_item_id":105,"quantity":1},{"id":31274,"menu_item_id":396,"quantity":2},{"id":31275,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-30 18:47:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6578,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["105|1|","396|2|","61|1|"],"new_items_map_keys":["105|1|","396|2|","61|1|","5|1|"]} 
[2026-03-30 18:47:21] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6578,"order_number":"AZS-300326-013"} 
[2026-03-30 18:47:21] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-300326-013","replaced_order_id":6578} 
[2026-03-30 18:47:21] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6579,"items_count":4,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-30 18:47:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6579,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6579}} 
[2026-03-30 18:47:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6579,"item_index":0,"menu_item_id":105} 
[2026-03-30 18:47:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6579,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6579}} 
[2026-03-30 18:47:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6579,"item_index":1,"menu_item_id":396} 
[2026-03-30 18:47:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6579,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6579}} 
[2026-03-30 18:47:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6579,"item_index":2,"menu_item_id":61} 
[2026-03-30 18:47:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6579,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6579}} 
[2026-03-30 18:47:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6579,"item_index":3,"menu_item_id":5} 
[2026-03-30 18:47:21] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6578,"new_order_id":6579,"order_number":"AZS-300326-013"} 
[2026-03-30 18:47:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6579,"item_index":0,"item_id":31273} 
[2026-03-30 18:47:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6579,"item_index":1,"item_id":31274} 
[2026-03-30 18:47:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6579,"item_index":2,"item_id":31275} 
[2026-03-30 18:47:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6579,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31273},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31274},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31275},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-30 18:47:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6579,"items_count":4} 
[2026-03-30 18:47:27] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[31276,31277,31278,31279],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-30 18:47:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6579,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["105|1|","396|2|","61|1|","5|1|"],"new_items_map_keys":["105|1|","396|2|","61|1|","5|1|"]} 
[2026-03-30 18:47:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6579,"order_number":"AZS-300326-013"} 
[2026-03-30 18:47:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6579,"order_number":"AZS-300326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-30 18:47:27"} 
[2026-03-30 18:55:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6579,"item_index":0,"item_id":31273} 
[2026-03-30 18:55:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6579,"item_index":1,"item_id":31274} 
[2026-03-30 18:55:31] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6579,"order_number":"AZS-300326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 18:55:31"} 
[2026-03-30 18:55:31] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6579,"order_number":"AZS-300326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 18:55:31"} 
[2026-03-30 18:55:31] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6579,"order_number":"AZS-300326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 18:55:31"} 
[2026-03-30 18:55:31] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6579,"order_number":"AZS-300326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 18:55:31"} 
[2026-03-30 18:55:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":4,"order_id":6579,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31273},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31274},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-30 18:55:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6579,"items_count":3} 
[2026-03-30 18:55:31] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":4,"items_to_remove":[31276,31277,31278,31279],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-30 18:55:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6579,"has_item_changes":true,"old_items_count":4,"new_items_count":3,"old_items_map_keys":["105|1|","396|2|","61|1|","5|1|"],"new_items_map_keys":["105|1|","396|2|","5|1|"]} 
[2026-03-30 18:55:31] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6579,"order_number":"AZS-300326-013","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-30 18:55:31","original_payment_amount":"0.00","grand_total":2695.0,"timestamp":"2026-03-30 18:55:31"} 
[2026-03-30 18:55:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6579,"order_number":"AZS-300326-013"} 
[2026-03-30 18:55:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-300326-013","replaced_order_id":6579} 
[2026-03-30 18:55:31] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6579,"new_order_id":6580,"order_number":"AZS-300326-013","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-30 18:55:31","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-30 18:55:31"} 
[2026-03-30 18:55:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6580,"items_count":3,"items":[{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-03-30 18:55:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6580,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6580}} 
[2026-03-30 18:55:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6580,"item_index":0,"menu_item_id":105} 
[2026-03-30 18:55:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6580,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6580}} 
[2026-03-30 18:55:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6580,"item_index":1,"menu_item_id":396} 
[2026-03-30 18:55:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6580,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6580}} 
[2026-03-30 18:55:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6580,"item_index":2,"menu_item_id":5} 
[2026-03-30 18:55:31] local.ERROR: Error tracking recipe usage for order 6580: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6580, 105, 196, 1, 500, 0.00, Order #AZS-300326-013 - 1x Mutton Shinwari - Half, 2026-03-30 18:55:31, 2026-03-30 18:55:31))  
[2026-03-30 18:55:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6579,"new_order_id":6580,"order_number":"AZS-300326-013"} 
[2026-03-30 18:55:31] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6579,"new_order_id":6580,"order_number":"AZS-300326-013","route":"api/orders/6579"} 
[2026-03-30 18:58:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T06:58:24.288Z","date_to":"2026-03-30T18:58:24.288Z","per_page":"100"} 
[2026-03-30 18:58:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":0,"unique_order_numbers":13} 
[2026-03-30 18:58:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T06:58:24.266Z","date_to":"2026-03-30T18:58:24.266Z","per_page":"100"} 
[2026-03-30 18:58:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":0,"unique_order_numbers":13} 
[2026-03-30 18:58:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T06:58:24.266Z","date_to":"2026-03-30T18:58:24.266Z","per_page":"100"} 
[2026-03-30 18:58:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":0,"unique_order_numbers":13} 
[2026-03-30 18:59:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T06:59:15.045Z","date_to":"2026-03-30T18:59:15.045Z","per_page":"100"} 
[2026-03-30 18:59:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T06:59:15.028Z","date_to":"2026-03-30T18:59:15.028Z","per_page":"100"} 
[2026-03-30 18:59:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":0,"unique_order_numbers":13} 
[2026-03-30 18:59:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":0,"unique_order_numbers":13} 
[2026-03-30 18:59:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T06:59:15.028Z","date_to":"2026-03-30T18:59:15.028Z","per_page":"100"} 
[2026-03-30 18:59:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":0,"unique_order_numbers":13} 
[2026-03-30 20:53:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6582,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":31289},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":31290},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31291},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31289,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":31290,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":31291,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-30 20:53:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6582,"items_count":4} 
[2026-03-30 20:53:26] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31289,"menu_item_id":65,"quantity":1},{"id":31290,"menu_item_id":396,"quantity":1},{"id":31291,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-30 20:53:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6582,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["65|1|","396|1|","61|1|"],"new_items_map_keys":["65|1|","396|1|","61|1|","5|1|"]} 
[2026-03-30 20:53:26] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6582,"order_number":"AZS-300326-015"} 
[2026-03-30 20:53:26] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-300326-015","replaced_order_id":6582} 
[2026-03-30 20:53:26] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6585,"items_count":4,"items":[{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-30 20:53:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6585,"item_index":0,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6585}} 
[2026-03-30 20:53:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6585,"item_index":0,"menu_item_id":65} 
[2026-03-30 20:53:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6585,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6585}} 
[2026-03-30 20:53:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6585,"item_index":1,"menu_item_id":396} 
[2026-03-30 20:53:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6585,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6585}} 
[2026-03-30 20:53:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6585,"item_index":2,"menu_item_id":61} 
[2026-03-30 20:53:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6585,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6585}} 
[2026-03-30 20:53:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6585,"item_index":3,"menu_item_id":5} 
[2026-03-30 20:53:26] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6582,"new_order_id":6585,"order_number":"AZS-300326-015"} 
[2026-03-30 20:53:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6585,"item_index":0,"item_id":31289} 
[2026-03-30 20:53:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6585,"item_index":1,"item_id":31290} 
[2026-03-30 20:53:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6585,"item_index":2,"item_id":31291} 
[2026-03-30 20:53:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6585,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":31289},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":31290},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31291},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-30 20:53:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6585,"items_count":4} 
[2026-03-30 20:53:32] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[31295,31296,31297,31298],"items":[{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-30 20:53:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6585,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["65|1|","396|1|","61|1|","5|1|"],"new_items_map_keys":["65|1|","396|1|","61|1|","5|1|"]} 
[2026-03-30 20:53:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6585,"order_number":"AZS-300326-015"} 
[2026-03-30 20:53:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6585,"order_number":"AZS-300326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-30 20:53:32"} 
[2026-03-30 20:53:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6585,"item_index":0,"item_id":31289} 
[2026-03-30 20:53:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6585,"item_index":1,"item_id":31290} 
[2026-03-30 20:53:42] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6585,"item_index":2,"item_id":31291} 
[2026-03-30 20:53:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6585,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":31289},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":31290},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31291},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-30 20:53:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6585,"items_count":4} 
[2026-03-30 20:53:42] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[31295,31296,31297,31298],"items":[{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-30 20:53:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6585,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["65|1|","396|1|","61|1|","5|1|"],"new_items_map_keys":["65|1|","396|1|","61|1|","5|1|"]} 
[2026-03-30 20:53:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6585,"order_number":"AZS-300326-015"} 
[2026-03-30 20:53:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6585,"order_number":"AZS-300326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-30 20:53:42"} 
[2026-03-30 20:54:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6581,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31283},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31284},{"menu_item_id":52,"quantity":7,"price":70,"discount_percent":0,"notes":null,"id":31285},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31286},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31287},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31288}],"validated_items":[{"id":31283,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31284,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31285,"menu_item_id":52,"quantity":7,"price":70,"discount_percent":0,"notes":null},{"id":31286,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31287,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31288,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-30 20:54:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6581,"items_count":6} 
[2026-03-30 20:54:23] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31283,"menu_item_id":98,"quantity":1},{"id":31284,"menu_item_id":96,"quantity":1},{"id":31285,"menu_item_id":52,"quantity":7},{"id":31286,"menu_item_id":61,"quantity":1},{"id":31287,"menu_item_id":56,"quantity":1},{"id":31288,"menu_item_id":5,"quantity":1}]} 
[2026-03-30 20:54:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6581,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["98|1|","96|1|","52|7|","61|1|","56|1|","5|1|"],"new_items_map_keys":["98|1|","96|1|","52|7|","61|1|","56|1|","5|1|"]} 
[2026-03-30 20:54:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6581,"order_number":"AZS-300326-014"} 
[2026-03-30 20:54:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6581,"order_number":"AZS-300326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-30 20:54:23"} 
[2026-03-30 21:01:14] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6581,"order_number":"AZS-300326-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3630,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 21:01:14"} 
[2026-03-30 21:01:14] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6581,"order_number":"AZS-300326-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3630,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 21:01:14"} 
[2026-03-30 21:01:14] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6581,"order_number":"AZS-300326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3630,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 21:01:14"} 
[2026-03-30 21:01:14] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6581,"order_number":"AZS-300326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3630,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 21:01:14"} 
[2026-03-30 21:01:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6581,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31283},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31284},{"menu_item_id":52,"quantity":7,"price":70,"discount_percent":0,"notes":null,"id":31285},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31286},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31287},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31288}],"validated_items":[{"id":31283,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31284,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31285,"menu_item_id":52,"quantity":7,"price":70,"discount_percent":0,"notes":null},{"id":31286,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31287,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31288,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-30 21:01:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6581,"items_count":6} 
[2026-03-30 21:01:14] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31283,"menu_item_id":98,"quantity":1},{"id":31284,"menu_item_id":96,"quantity":1},{"id":31285,"menu_item_id":52,"quantity":7},{"id":31286,"menu_item_id":61,"quantity":1},{"id":31287,"menu_item_id":56,"quantity":1},{"id":31288,"menu_item_id":5,"quantity":1}]} 
[2026-03-30 21:01:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6581,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["98|1|","96|1|","52|7|","61|1|","56|1|","5|1|"],"new_items_map_keys":["98|1|","96|1|","52|7|","61|1|","56|1|","5|1|"]} 
[2026-03-30 21:01:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6581,"order_number":"AZS-300326-014"} 
[2026-03-30 21:01:14] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6581,"order_number":"AZS-300326-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3630,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-30 21:01:14","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-30 21:01:14"} 
[2026-03-30 21:01:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6581,"order_number":"AZS-300326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-30 21:01:14"} 
[2026-03-30 21:01:14] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6581,"order_number":"AZS-300326-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3630.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-30 21:01:14","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3630,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3630.00","database_verification_match":true,"timestamp":"2026-03-30 21:01:14"} 
[2026-03-30 21:01:31] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6585,"order_number":"AZS-300326-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1855,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 21:01:31"} 
[2026-03-30 21:01:31] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6585,"order_number":"AZS-300326-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1855,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 21:01:31"} 
[2026-03-30 21:01:31] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6585,"order_number":"AZS-300326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1855,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 21:01:31"} 
[2026-03-30 21:01:31] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6585,"order_number":"AZS-300326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1855,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 21:01:31"} 
[2026-03-30 21:01:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6585,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":31295},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":31296},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31297},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31298}],"validated_items":[{"id":31295,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":31296,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":31297,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31298,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-30 21:01:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6585,"items_count":4} 
[2026-03-30 21:01:31] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31295,"menu_item_id":65,"quantity":1},{"id":31296,"menu_item_id":396,"quantity":1},{"id":31297,"menu_item_id":61,"quantity":1},{"id":31298,"menu_item_id":5,"quantity":1}]} 
[2026-03-30 21:01:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6585,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["65|1|","396|1|","61|1|","5|1|"],"new_items_map_keys":["65|1|","396|1|","61|1|","5|1|"]} 
[2026-03-30 21:01:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6585,"order_number":"AZS-300326-015"} 
[2026-03-30 21:01:31] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6585,"order_number":"AZS-300326-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1855,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-30 21:01:31","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-30 21:01:31"} 
[2026-03-30 21:01:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6585,"order_number":"AZS-300326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-30 21:01:31"} 
[2026-03-30 21:01:31] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6585,"order_number":"AZS-300326-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1855.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-30 21:01:31","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1855,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1855.00","database_verification_match":true,"timestamp":"2026-03-30 21:01:31"} 
[2026-03-30 21:02:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T09:02:54.593Z","date_to":"2026-03-30T21:02:54.593Z","per_page":"100"} 
[2026-03-30 21:02:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T09:02:54.575Z","date_to":"2026-03-30T21:02:54.575Z","per_page":"100"} 
[2026-03-30 21:02:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-017","AZS-300326-016","AZS-300326-015","AZS-300326-014","AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":2,"unique_order_numbers":17} 
[2026-03-30 21:02:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-017","AZS-300326-016","AZS-300326-015","AZS-300326-014","AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":2,"unique_order_numbers":17} 
[2026-03-30 21:02:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T09:02:54.575Z","date_to":"2026-03-30T21:02:54.575Z","per_page":"100"} 
[2026-03-30 21:02:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-017","AZS-300326-016","AZS-300326-015","AZS-300326-014","AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":2,"unique_order_numbers":17} 
[2026-03-30 21:03:14] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6583,"order_number":"AZS-300326-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 21:03:14"} 
[2026-03-30 21:03:14] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6583,"order_number":"AZS-300326-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 21:03:14"} 
[2026-03-30 21:03:14] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6583,"order_number":"AZS-300326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 21:03:14"} 
[2026-03-30 21:03:14] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6583,"order_number":"AZS-300326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 21:03:14"} 
[2026-03-30 21:03:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6583,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":67,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":31292}],"validated_items":[{"id":31292,"menu_item_id":67,"quantity":2,"price":599,"discount_percent":0,"notes":null}]} 
[2026-03-30 21:03:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6583,"items_count":1} 
[2026-03-30 21:03:14] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31292,"menu_item_id":67,"quantity":2}]} 
[2026-03-30 21:03:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6583,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["67|2|"],"new_items_map_keys":["67|2|"]} 
[2026-03-30 21:03:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6583,"order_number":"AZS-300326-016"} 
[2026-03-30 21:03:14] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6583,"order_number":"AZS-300326-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-30 21:03:14","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-30 21:03:14"} 
[2026-03-30 21:03:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6583,"order_number":"AZS-300326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-30 21:03:14"} 
[2026-03-30 21:03:14] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6583,"order_number":"AZS-300326-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-30 21:03:14","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1200.00","database_verification_match":true,"timestamp":"2026-03-30 21:03:14"} 
[2026-03-30 21:03:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T09:03:27.755Z","date_to":"2026-03-30T21:03:27.755Z","per_page":"100"} 
[2026-03-30 21:03:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-017","AZS-300326-016","AZS-300326-015","AZS-300326-014","AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":1,"unique_order_numbers":17} 
[2026-03-30 21:03:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T09:03:27.767Z","date_to":"2026-03-30T21:03:27.767Z","per_page":"100"} 
[2026-03-30 21:03:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-017","AZS-300326-016","AZS-300326-015","AZS-300326-014","AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":1,"unique_order_numbers":17} 
[2026-03-30 21:03:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T09:03:27.755Z","date_to":"2026-03-30T21:03:27.755Z","per_page":"100"} 
[2026-03-30 21:03:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-017","AZS-300326-016","AZS-300326-015","AZS-300326-014","AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":1,"unique_order_numbers":17} 
[2026-03-30 21:12:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":1,"order_id":6584,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":31293},{"menu_item_id":286,"quantity":14,"discount_percent":0,"notes":null}],"validated_items":[{"id":31293,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":14,"discount_percent":0,"notes":null}]} 
[2026-03-30 21:12:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6584,"items_count":2} 
[2026-03-30 21:12:16] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":1,"items_to_remove":[31294],"items":[{"id":31293,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":286,"quantity":14}]} 
[2026-03-30 21:12:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6584,"has_item_changes":true,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["113|1|","396|2|"],"new_items_map_keys":["113|1|","286|14|"]} 
[2026-03-30 21:12:16] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6584,"order_number":"AZS-300326-017"} 
[2026-03-30 21:12:16] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-300326-017","replaced_order_id":6584} 
[2026-03-30 21:12:16] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6586,"items_count":2,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":286,"quantity":14,"price":"15.00"}]} 
[2026-03-30 21:12:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6586,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6586}} 
[2026-03-30 21:12:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6586,"item_index":0,"menu_item_id":113} 
[2026-03-30 21:12:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6586,"item_index":1,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":14,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6586}} 
[2026-03-30 21:12:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6586,"item_index":1,"menu_item_id":286} 
[2026-03-30 21:12:16] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6584,"new_order_id":6586,"order_number":"AZS-300326-017"} 
[2026-03-30 21:12:27] local.INFO: RouteServiceProvider: Found direct replacement order {"old_order_id":6584,"new_order_id":6586,"order_number":"AZS-300326-017","method":"PUT","route":"api/orders/6584"} 
[2026-03-30 21:12:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6586,"item_index":0,"item_id":31293} 
[2026-03-30 21:12:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":1,"order_id":6586,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":31293},{"menu_item_id":286,"quantity":14,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":14,"discount_percent":0,"notes":null}]} 
[2026-03-30 21:12:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6586,"items_count":2} 
[2026-03-30 21:12:27] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":1,"items_to_remove":[31294],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":286,"quantity":14}]} 
[2026-03-30 21:12:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6586,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["113|1|","286|14|"],"new_items_map_keys":["113|1|","286|14|"]} 
[2026-03-30 21:12:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6586,"order_number":"AZS-300326-017"} 
[2026-03-30 21:12:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6586,"order_number":"AZS-300326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-30 21:12:27"} 
[2026-03-30 21:16:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T09:16:27.637Z","date_to":"2026-03-30T21:16:27.637Z","per_page":"100"} 
[2026-03-30 21:16:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T09:16:27.663Z","date_to":"2026-03-30T21:16:27.663Z","per_page":"100"} 
[2026-03-30 21:16:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-017","AZS-300326-016","AZS-300326-015","AZS-300326-014","AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":1,"unique_order_numbers":17} 
[2026-03-30 21:16:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-017","AZS-300326-016","AZS-300326-015","AZS-300326-014","AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":1,"unique_order_numbers":17} 
[2026-03-30 21:16:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T09:16:27.637Z","date_to":"2026-03-30T21:16:27.637Z","per_page":"100"} 
[2026-03-30 21:16:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-017","AZS-300326-016","AZS-300326-015","AZS-300326-014","AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":1,"unique_order_numbers":17} 
[2026-03-30 21:26:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6586,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":31299},{"menu_item_id":286,"quantity":14,"discount_percent":0,"notes":null,"id":31300}],"validated_items":[{"id":31299,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":31300,"menu_item_id":286,"quantity":14,"discount_percent":0,"notes":null}]} 
[2026-03-30 21:26:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6586,"items_count":2} 
[2026-03-30 21:26:05] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31299,"menu_item_id":113,"quantity":1},{"id":31300,"menu_item_id":286,"quantity":14}]} 
[2026-03-30 21:26:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6586,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["113|1|","286|14|"],"new_items_map_keys":["113|1|","286|14|"]} 
[2026-03-30 21:26:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6586,"order_number":"AZS-300326-017"} 
[2026-03-30 21:26:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6586,"order_number":"AZS-300326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-30 21:26:05"} 
[2026-03-30 21:26:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6586,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":31299},{"menu_item_id":286,"quantity":14,"discount_percent":0,"notes":null,"id":31300}],"validated_items":[{"id":31299,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":31300,"menu_item_id":286,"quantity":14,"discount_percent":0,"notes":null}]} 
[2026-03-30 21:26:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6586,"items_count":2} 
[2026-03-30 21:26:17] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31299,"menu_item_id":113,"quantity":1},{"id":31300,"menu_item_id":286,"quantity":14}]} 
[2026-03-30 21:26:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6586,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["113|1|","286|14|"],"new_items_map_keys":["113|1|","286|14|"]} 
[2026-03-30 21:26:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6586,"order_number":"AZS-300326-017"} 
[2026-03-30 21:26:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6586,"order_number":"AZS-300326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-03-30 21:26:17"} 
[2026-03-30 21:26:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6586,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":31299},{"menu_item_id":286,"quantity":14,"discount_percent":0,"notes":null,"id":31300}],"validated_items":[{"id":31299,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":31300,"menu_item_id":286,"quantity":14,"discount_percent":0,"notes":null}]} 
[2026-03-30 21:26:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6586,"items_count":2} 
[2026-03-30 21:26:58] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31299,"menu_item_id":113,"quantity":1},{"id":31300,"menu_item_id":286,"quantity":14}]} 
[2026-03-30 21:26:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6586,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["113|1|","286|14|"],"new_items_map_keys":["113|1|","286|14|"]} 
[2026-03-30 21:26:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6586,"order_number":"AZS-300326-017"} 
[2026-03-30 21:26:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6586,"order_number":"AZS-300326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-03-30 21:26:58"} 
[2026-03-30 21:27:10] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6586,"order_number":"AZS-300326-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1410,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 21:27:10"} 
[2026-03-30 21:27:10] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6586,"order_number":"AZS-300326-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1410,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-30 21:27:10"} 
[2026-03-30 21:27:10] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6586,"order_number":"AZS-300326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1410,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 21:27:10"} 
[2026-03-30 21:27:10] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6586,"order_number":"AZS-300326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1410,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-30 21:27:10"} 
[2026-03-30 21:27:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6586,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31299},{"menu_item_id":286,"quantity":14,"price":15,"discount_percent":0,"notes":null,"id":31300}],"validated_items":[{"id":31299,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31300,"menu_item_id":286,"quantity":14,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-30 21:27:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6586,"items_count":2} 
[2026-03-30 21:27:10] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31299,"menu_item_id":113,"quantity":1},{"id":31300,"menu_item_id":286,"quantity":14}]} 
[2026-03-30 21:27:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6586,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["113|1|","286|14|"],"new_items_map_keys":["113|1|","286|14|"]} 
[2026-03-30 21:27:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6586,"order_number":"AZS-300326-017"} 
[2026-03-30 21:27:10] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6586,"order_number":"AZS-300326-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1410,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-30 21:27:10","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-30 21:27:10"} 
[2026-03-30 21:27:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6586,"order_number":"AZS-300326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-30 21:27:10"} 
[2026-03-30 21:27:10] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6586,"order_number":"AZS-300326-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1410.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-30 21:27:10","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1410,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1410.00","database_verification_match":true,"timestamp":"2026-03-30 21:27:10"} 
[2026-03-30 21:27:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T09:27:25.185Z","date_to":"2026-03-30T21:27:25.185Z","per_page":"100"} 
[2026-03-30 21:27:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T09:27:25.159Z","date_to":"2026-03-30T21:27:25.159Z","per_page":"100"} 
[2026-03-30 21:27:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-017","AZS-300326-016","AZS-300326-015","AZS-300326-014","AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":0,"unique_order_numbers":17} 
[2026-03-30 21:27:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-017","AZS-300326-016","AZS-300326-015","AZS-300326-014","AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":0,"unique_order_numbers":17} 
[2026-03-30 21:27:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-30T09:27:25.159Z","date_to":"2026-03-30T21:27:25.159Z","per_page":"100"} 
[2026-03-30 21:27:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-300326-017","AZS-300326-016","AZS-300326-015","AZS-300326-014","AZS-300326-013","AZS-300326-012","AZS-300326-011","AZS-300326-010","AZS-300326-009","AZS-300326-008","AZS-300326-007","AZS-300326-006","AZS-300326-005","AZS-300326-004","AZS-300326-003","AZS-300326-002","AZS-300326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":0,"unique_order_numbers":17} 
[2026-03-31 14:53:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6589,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":31305},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":31306},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":31307}],"validated_items":[{"id":31305,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"id":31306,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":31307,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-31 14:53:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6589,"items_count":3} 
[2026-03-31 14:53:11] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31305,"menu_item_id":137,"quantity":1},{"id":31306,"menu_item_id":96,"quantity":1},{"id":31307,"menu_item_id":396,"quantity":2}]} 
[2026-03-31 14:53:11] local.INFO: PosOrderController::update - Item changes check {"order_id":6589,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["137|1|","96|1|","396|2|"],"new_items_map_keys":["137|1|","96|1|","396|2|"]} 
[2026-03-31 14:53:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6589,"order_number":"AZS-310326-003"} 
[2026-03-31 14:53:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6589,"order_number":"AZS-310326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-31 14:53:11"} 
[2026-03-31 14:53:52] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6587,"order_number":"AZS-310326-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1428,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 14:53:52"} 
[2026-03-31 14:53:52] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6587,"order_number":"AZS-310326-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1428,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 14:53:52"} 
[2026-03-31 14:53:52] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6587,"order_number":"AZS-310326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1428,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 14:53:52"} 
[2026-03-31 14:53:52] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6587,"order_number":"AZS-310326-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1428,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 14:53:52"} 
[2026-03-31 14:53:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6587,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31301},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":31302},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31303}],"validated_items":[{"id":31301,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31302,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"id":31303,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-31 14:53:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6587,"items_count":3} 
[2026-03-31 14:53:52] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31301,"menu_item_id":98,"quantity":1},{"id":31302,"menu_item_id":286,"quantity":2},{"id":31303,"menu_item_id":61,"quantity":1}]} 
[2026-03-31 14:53:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6587,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["98|1|","286|2|","61|1|"],"new_items_map_keys":["98|1|","286|2|","61|1|"]} 
[2026-03-31 14:53:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6587,"order_number":"AZS-310326-001"} 
[2026-03-31 14:53:52] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6587,"order_number":"AZS-310326-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1428,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-31 14:53:52","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-31 14:53:52"} 
[2026-03-31 14:53:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6587,"order_number":"AZS-310326-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-31 14:53:52"} 
[2026-03-31 14:53:52] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6587,"order_number":"AZS-310326-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1428.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-31 14:53:52","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1428,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1428.00","database_verification_match":true,"timestamp":"2026-03-31 14:53:52"} 
[2026-03-31 14:54:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6588,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":31304}],"validated_items":[{"id":31304,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-31 14:54:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6588,"items_count":1} 
[2026-03-31 14:54:21] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31304,"menu_item_id":96,"quantity":1}]} 
[2026-03-31 14:54:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6588,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["96|1|"],"new_items_map_keys":["96|1|"]} 
[2026-03-31 14:54:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6588,"order_number":"AZS-310326-002"} 
[2026-03-31 14:54:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6588,"order_number":"AZS-310326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-31 14:54:21"} 
[2026-03-31 15:05:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T03:05:29.814Z","date_to":"2026-03-31T15:05:29.814Z","per_page":"100"} 
[2026-03-31 15:05:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T03:05:29.786Z","date_to":"2026-03-31T15:05:29.786Z","per_page":"100"} 
[2026-03-31 15:05:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":2,"unique_order_numbers":3} 
[2026-03-31 15:05:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":2,"unique_order_numbers":3} 
[2026-03-31 15:05:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T03:05:29.786Z","date_to":"2026-03-31T15:05:29.786Z","per_page":"100"} 
[2026-03-31 15:05:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":2,"unique_order_numbers":3} 
[2026-03-31 15:23:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T03:23:28.587Z","date_to":"2026-03-31T15:23:28.587Z","per_page":"100"} 
[2026-03-31 15:23:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":4,"count":4,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":3,"unique_order_numbers":4} 
[2026-03-31 15:23:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T03:23:28.597Z","date_to":"2026-03-31T15:23:28.597Z","per_page":"100"} 
[2026-03-31 15:23:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":4,"count":4,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":3,"unique_order_numbers":4} 
[2026-03-31 15:23:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T03:23:28.587Z","date_to":"2026-03-31T15:23:28.587Z","per_page":"100"} 
[2026-03-31 15:23:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":4,"count":4,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":3,"unique_order_numbers":4} 
[2026-03-31 15:44:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T03:44:11.537Z","date_to":"2026-03-31T15:44:11.537Z","per_page":"100"} 
[2026-03-31 15:44:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T03:44:11.524Z","date_to":"2026-03-31T15:44:11.524Z","per_page":"100"} 
[2026-03-31 15:44:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":4,"unique_order_numbers":5} 
[2026-03-31 15:44:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":4,"unique_order_numbers":5} 
[2026-03-31 15:44:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T03:44:11.524Z","date_to":"2026-03-31T15:44:11.524Z","per_page":"100"} 
[2026-03-31 15:44:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":4,"unique_order_numbers":5} 
[2026-03-31 15:46:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6592,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":392,"quantity":1,"discount_percent":0,"notes":null,"id":31311},{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null,"id":31312},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31311,"menu_item_id":392,"quantity":1,"discount_percent":0,"notes":null},{"id":31312,"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-31 15:46:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6592,"items_count":3} 
[2026-03-31 15:46:51] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31311,"menu_item_id":392,"quantity":1},{"id":31312,"menu_item_id":85,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-03-31 15:46:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6592,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["392|1|","85|1|"],"new_items_map_keys":["392|1|","85|1|","2|1|"]} 
[2026-03-31 15:46:51] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6592,"order_number":"AZS-310326-006"} 
[2026-03-31 15:46:51] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-006","replaced_order_id":6592} 
[2026-03-31 15:46:51] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6593,"items_count":3,"items":[{"menu_item_id":392,"quantity":1,"price":"999.00"},{"menu_item_id":85,"quantity":1,"price":"699.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-03-31 15:46:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6593,"item_index":0,"item_data":{"menu_item_id":392,"restaurant_category_id":35,"restaurant_category_name":"ROCK N ROLL","item_name":"Platter Shawarma","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6593}} 
[2026-03-31 15:46:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6593,"item_index":0,"menu_item_id":392} 
[2026-03-31 15:46:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6593,"item_index":1,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":1,"price":"699.00","discount_percent":0.0,"discount_amount":0.0,"total":699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6593}} 
[2026-03-31 15:46:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6593,"item_index":1,"menu_item_id":85} 
[2026-03-31 15:46:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6593,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6593}} 
[2026-03-31 15:46:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6593,"item_index":2,"menu_item_id":2} 
[2026-03-31 15:46:51] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6592,"new_order_id":6593,"order_number":"AZS-310326-006"} 
[2026-03-31 16:10:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T04:10:14.790Z","date_to":"2026-03-31T16:10:14.790Z","per_page":"100"} 
[2026-03-31 16:10:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":5,"unique_order_numbers":6} 
[2026-03-31 16:10:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T04:10:14.801Z","date_to":"2026-03-31T16:10:14.801Z","per_page":"100"} 
[2026-03-31 16:10:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":5,"unique_order_numbers":6} 
[2026-03-31 16:10:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T04:10:14.790Z","date_to":"2026-03-31T16:10:14.790Z","per_page":"100"} 
[2026-03-31 16:10:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":5,"unique_order_numbers":6} 
[2026-03-31 16:10:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T04:10:33.753Z","date_to":"2026-03-31T16:10:33.753Z","per_page":"100"} 
[2026-03-31 16:10:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T04:10:33.735Z","date_to":"2026-03-31T16:10:33.735Z","per_page":"100"} 
[2026-03-31 16:10:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":5,"unique_order_numbers":6} 
[2026-03-31 16:10:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":5,"unique_order_numbers":6} 
[2026-03-31 16:10:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T04:10:33.735Z","date_to":"2026-03-31T16:10:33.735Z","per_page":"100"} 
[2026-03-31 16:10:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":5,"unique_order_numbers":6} 
[2026-03-31 16:10:35] local.ERROR: SQLSTATE[HY000] [1040] Too many connections (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 12 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 1040): SQLSTATE[HY000] [1040] Too many connections (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 12 limit 1) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('12')
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('cRFobVdWvPuS7ww...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), NULL)
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), NULL)
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#50 {main}

[previous exception] [object] (PDOException(code: 1040): SQLSTATE[HY000] [1040] Too many connections at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=127....', 'pandamartsco_te...', Object(SensitiveParameterValue), Array)
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=127....', 'pandamartsco_te...', 'O?TpDEuS7UUOYE;...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=127....', Array, Array)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('12')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('cRFobVdWvPuS7ww...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), NULL)
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), NULL)
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#53 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#54 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#55 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#58 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#59 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#60 {main}
"} 
[2026-03-31 16:10:35] local.ERROR: SQLSTATE[HY000] [1040] Too many connections (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 12 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 1040): SQLSTATE[HY000] [1040] Too many connections (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 12 limit 1) at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('12')
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('cRFobVdWvPuS7ww...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), NULL)
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), NULL)
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#49 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#50 {main}

[previous exception] [object] (PDOException(code: 1040): SQLSTATE[HY000] [1040] Too many connections at /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=127....', 'pandamartsco_te...', Object(SensitiveParameterValue), Array)
#1 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=127....', 'pandamartsco_te...', 'O?TpDEuS7UUOYE;...', Array)
#2 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=127....', Array, Array)
#3 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('12')
#21 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('cRFobVdWvPuS7ww...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), NULL)
#26 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), NULL)
#27 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'sanctum')
#31 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/AuthenticateSession.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\AuthenticateSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#39 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#48 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#52 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#53 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#54 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#55 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#58 /home/pandamartsco/public_html/laravel_admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#59 /home/pandamartsco/public_html/laravel_admin/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#60 {main}
"} 
[2026-03-31 16:10:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T04:10:48.544Z","date_to":"2026-03-31T16:10:48.544Z","per_page":"100"} 
[2026-03-31 16:10:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T04:10:48.532Z","date_to":"2026-03-31T16:10:48.532Z","per_page":"100"} 
[2026-03-31 16:10:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":5,"unique_order_numbers":6} 
[2026-03-31 16:10:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":5,"unique_order_numbers":6} 
[2026-03-31 16:10:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T04:10:48.532Z","date_to":"2026-03-31T16:10:48.532Z","per_page":"100"} 
[2026-03-31 16:10:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":5,"unique_order_numbers":6} 
[2026-03-31 16:11:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T04:11:05.188Z","date_to":"2026-03-31T16:11:05.188Z","per_page":"100"} 
[2026-03-31 16:11:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T04:11:05.207Z","date_to":"2026-03-31T16:11:05.207Z","per_page":"100"} 
[2026-03-31 16:11:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":5,"unique_order_numbers":6} 
[2026-03-31 16:11:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":5,"unique_order_numbers":6} 
[2026-03-31 16:11:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T04:11:05.188Z","date_to":"2026-03-31T16:11:05.188Z","per_page":"100"} 
[2026-03-31 16:11:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":5,"unique_order_numbers":6} 
[2026-03-31 16:12:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6591,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":143,"quantity":1,"discount_percent":0,"notes":null,"id":31309},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":31310},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31309,"menu_item_id":143,"quantity":1,"discount_percent":0,"notes":null},{"id":31310,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-31 16:12:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6591,"items_count":3} 
[2026-03-31 16:12:37] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31309,"menu_item_id":143,"quantity":1},{"id":31310,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-31 16:12:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6591,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["143|1|","3|1|"],"new_items_map_keys":["143|1|","3|1|","5|1|"]} 
[2026-03-31 16:12:37] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6591,"order_number":"AZS-310326-005"} 
[2026-03-31 16:12:37] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-005","replaced_order_id":6591} 
[2026-03-31 16:12:37] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6594,"items_count":3,"items":[{"menu_item_id":143,"quantity":1,"price":"1099.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-31 16:12:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6594,"item_index":0,"item_data":{"menu_item_id":143,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Chicken Fajita Pizza - Medium","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6594}} 
[2026-03-31 16:12:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6594,"item_index":0,"menu_item_id":143} 
[2026-03-31 16:12:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6594,"item_index":1,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6594}} 
[2026-03-31 16:12:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6594,"item_index":1,"menu_item_id":3} 
[2026-03-31 16:12:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6594,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6594}} 
[2026-03-31 16:12:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6594,"item_index":2,"menu_item_id":5} 
[2026-03-31 16:12:37] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6591,"new_order_id":6594,"order_number":"AZS-310326-005"} 
[2026-03-31 16:12:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6594,"item_index":0,"item_id":31309} 
[2026-03-31 16:12:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6594,"item_index":1,"item_id":31310} 
[2026-03-31 16:12:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":6594,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":143,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":31309},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31310},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":143,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-31 16:12:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6594,"items_count":3} 
[2026-03-31 16:12:46] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[31316,31317,31318],"items":[{"id":null,"menu_item_id":143,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-31 16:12:46] local.INFO: PosOrderController::update - Item changes check {"order_id":6594,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["143|1|","3|1|","5|1|"],"new_items_map_keys":["143|1|","3|1|","5|1|"]} 
[2026-03-31 16:12:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6594,"order_number":"AZS-310326-005"} 
[2026-03-31 16:12:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6594,"order_number":"AZS-310326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-31 16:12:46"} 
[2026-03-31 16:12:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T04:12:59.614Z","date_to":"2026-03-31T16:12:59.614Z","per_page":"100"} 
[2026-03-31 16:12:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":5,"unique_order_numbers":6} 
[2026-03-31 16:12:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T04:12:59.635Z","date_to":"2026-03-31T16:12:59.635Z","per_page":"100"} 
[2026-03-31 16:12:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":5,"unique_order_numbers":6} 
[2026-03-31 16:13:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T04:12:59.614Z","date_to":"2026-03-31T16:12:59.614Z","per_page":"100"} 
[2026-03-31 16:13:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":5,"unique_order_numbers":6} 
[2026-03-31 16:15:19] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6594,"order_number":"AZS-310326-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1620,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 16:15:19"} 
[2026-03-31 16:15:19] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6594,"order_number":"AZS-310326-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1620,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 16:15:19"} 
[2026-03-31 16:15:19] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6594,"order_number":"AZS-310326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1620,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 16:15:19"} 
[2026-03-31 16:15:19] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6594,"order_number":"AZS-310326-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1620,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 16:15:19"} 
[2026-03-31 16:15:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6594,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":143,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":31316},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31317},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31318}],"validated_items":[{"id":31316,"menu_item_id":143,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":31317,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":31318,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-31 16:15:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6594,"items_count":3} 
[2026-03-31 16:15:19] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31316,"menu_item_id":143,"quantity":1},{"id":31317,"menu_item_id":3,"quantity":1},{"id":31318,"menu_item_id":5,"quantity":1}]} 
[2026-03-31 16:15:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6594,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["143|1|","3|1|","5|1|"],"new_items_map_keys":["143|1|","3|1|","5|1|"]} 
[2026-03-31 16:15:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6594,"order_number":"AZS-310326-005"} 
[2026-03-31 16:15:19] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6594,"order_number":"AZS-310326-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1620,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-31 16:15:19","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-31 16:15:19"} 
[2026-03-31 16:15:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6594,"order_number":"AZS-310326-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-31 16:15:19"} 
[2026-03-31 16:15:19] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6594,"order_number":"AZS-310326-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1620.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-31 16:15:19","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1620,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1620.00","database_verification_match":true,"timestamp":"2026-03-31 16:15:19"} 
[2026-03-31 16:15:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T04:15:30.461Z","date_to":"2026-03-31T16:15:30.461Z","per_page":"100"} 
[2026-03-31 16:15:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T04:15:30.449Z","date_to":"2026-03-31T16:15:30.449Z","per_page":"100"} 
[2026-03-31 16:15:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","paid","pending","pending","pending","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":5,"unique_order_numbers":7} 
[2026-03-31 16:15:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","paid","pending","pending","pending","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":5,"unique_order_numbers":7} 
[2026-03-31 16:15:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T04:15:30.449Z","date_to":"2026-03-31T16:15:30.449Z","per_page":"100"} 
[2026-03-31 16:15:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","paid","pending","pending","pending","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":5,"unique_order_numbers":7} 
[2026-03-31 16:15:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6593,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":392,"quantity":1,"discount_percent":0,"notes":null,"id":31313},{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null,"id":31314},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":31315},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31313,"menu_item_id":392,"quantity":1,"discount_percent":0,"notes":null},{"id":31314,"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null},{"id":31315,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-31 16:15:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6593,"items_count":4} 
[2026-03-31 16:15:52] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31313,"menu_item_id":392,"quantity":1},{"id":31314,"menu_item_id":85,"quantity":1},{"id":31315,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-03-31 16:15:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6593,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["392|1|","85|1|","2|1|"],"new_items_map_keys":["392|1|","85|1|","2|1|","4|1|"]} 
[2026-03-31 16:15:52] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6593,"order_number":"AZS-310326-006"} 
[2026-03-31 16:15:52] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-006","replaced_order_id":6593} 
[2026-03-31 16:15:52] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6596,"items_count":4,"items":[{"menu_item_id":392,"quantity":1,"price":"999.00"},{"menu_item_id":85,"quantity":1,"price":"699.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-03-31 16:15:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6596,"item_index":0,"item_data":{"menu_item_id":392,"restaurant_category_id":35,"restaurant_category_name":"ROCK N ROLL","item_name":"Platter Shawarma","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6596}} 
[2026-03-31 16:15:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6596,"item_index":0,"menu_item_id":392} 
[2026-03-31 16:15:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6596,"item_index":1,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":1,"price":"699.00","discount_percent":0.0,"discount_amount":0.0,"total":699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6596}} 
[2026-03-31 16:15:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6596,"item_index":1,"menu_item_id":85} 
[2026-03-31 16:15:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6596,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6596}} 
[2026-03-31 16:15:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6596,"item_index":2,"menu_item_id":2} 
[2026-03-31 16:15:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6596,"item_index":3,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6596}} 
[2026-03-31 16:15:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6596,"item_index":3,"menu_item_id":4} 
[2026-03-31 16:15:52] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6593,"new_order_id":6596,"order_number":"AZS-310326-006"} 
[2026-03-31 16:16:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T04:16:06.390Z","date_to":"2026-03-31T16:16:06.390Z","per_page":"100"} 
[2026-03-31 16:16:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T04:16:06.376Z","date_to":"2026-03-31T16:16:06.376Z","per_page":"100"} 
[2026-03-31 16:16:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","paid","pending","pending","pending","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":5,"unique_order_numbers":7} 
[2026-03-31 16:16:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","paid","pending","pending","pending","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":5,"unique_order_numbers":7} 
[2026-03-31 16:16:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T04:16:06.376Z","date_to":"2026-03-31T16:16:06.376Z","per_page":"100"} 
[2026-03-31 16:16:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","paid","pending","pending","pending","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":5,"unique_order_numbers":7} 
[2026-03-31 16:21:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6595,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null,"id":31320},{"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null,"id":31321},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31322},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null,"id":31323},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31320,"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"id":31321,"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null},{"id":31322,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31323,"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-31 16:21:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6595,"items_count":5} 
[2026-03-31 16:21:19] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[31319],"items":[{"id":31320,"menu_item_id":55,"quantity":2},{"id":31321,"menu_item_id":60,"quantity":1},{"id":31322,"menu_item_id":56,"quantity":1},{"id":31323,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":63,"quantity":1}]} 
[2026-03-31 16:21:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6595,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["70|1|","55|2|","60|1|","56|1|","2|2|"],"new_items_map_keys":["55|2|","60|1|","56|1|","2|2|","63|1|"]} 
[2026-03-31 16:21:19] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6595,"order_number":"AZS-310326-007"} 
[2026-03-31 16:21:19] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-007","replaced_order_id":6595} 
[2026-03-31 16:21:19] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6598,"items_count":5,"items":[{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":60,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"},{"menu_item_id":63,"quantity":1,"price":"1099.00"}]} 
[2026-03-31 16:21:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6598,"item_index":0,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6598}} 
[2026-03-31 16:21:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6598,"item_index":0,"menu_item_id":55} 
[2026-03-31 16:21:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6598,"item_index":1,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6598}} 
[2026-03-31 16:21:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6598,"item_index":1,"menu_item_id":60} 
[2026-03-31 16:21:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6598,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6598}} 
[2026-03-31 16:21:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6598,"item_index":2,"menu_item_id":56} 
[2026-03-31 16:21:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6598,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6598}} 
[2026-03-31 16:21:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6598,"item_index":3,"menu_item_id":2} 
[2026-03-31 16:21:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6598,"item_index":4,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6598}} 
[2026-03-31 16:21:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6598,"item_index":4,"menu_item_id":63} 
[2026-03-31 16:21:19] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6595,"new_order_id":6598,"order_number":"AZS-310326-007"} 
[2026-03-31 16:31:28] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6590,"order_number":"AZS-310326-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":30,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 16:31:28"} 
[2026-03-31 16:31:28] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6590,"order_number":"AZS-310326-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":30,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 16:31:28"} 
[2026-03-31 16:31:28] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6590,"order_number":"AZS-310326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":30,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 16:31:28"} 
[2026-03-31 16:31:28] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6590,"order_number":"AZS-310326-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":30,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 16:31:28"} 
[2026-03-31 16:31:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6590,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":31308}],"validated_items":[{"id":31308,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-31 16:31:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6590,"items_count":1} 
[2026-03-31 16:31:28] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31308,"menu_item_id":286,"quantity":2}]} 
[2026-03-31 16:31:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6590,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["286|2|"],"new_items_map_keys":["286|2|"]} 
[2026-03-31 16:31:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6590,"order_number":"AZS-310326-004"} 
[2026-03-31 16:31:28] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6590,"order_number":"AZS-310326-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":30,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-31 16:31:28","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-31 16:31:28"} 
[2026-03-31 16:31:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6590,"order_number":"AZS-310326-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-31 16:31:28"} 
[2026-03-31 16:31:28] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6590,"order_number":"AZS-310326-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"30.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-31 16:31:28","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":30,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"30.00","database_verification_match":true,"timestamp":"2026-03-31 16:31:28"} 
[2026-03-31 16:32:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6596,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":392,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":31324},{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":31325},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":31326},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":31327}],"validated_items":[{"id":31324,"menu_item_id":392,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":31325,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":31326,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":31327,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-31 16:32:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6596,"items_count":4} 
[2026-03-31 16:32:40] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31324,"menu_item_id":392,"quantity":1},{"id":31325,"menu_item_id":85,"quantity":1},{"id":31326,"menu_item_id":2,"quantity":1},{"id":31327,"menu_item_id":4,"quantity":1}]} 
[2026-03-31 16:32:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6596,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["392|1|","85|1|","2|1|","4|1|"],"new_items_map_keys":["392|1|","85|1|","2|1|","4|1|"]} 
[2026-03-31 16:32:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6596,"order_number":"AZS-310326-006"} 
[2026-03-31 16:32:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6596,"order_number":"AZS-310326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-31 16:32:40"} 
[2026-03-31 16:34:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T04:34:17.576Z","date_to":"2026-03-31T16:34:17.576Z","per_page":"100"} 
[2026-03-31 16:34:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","pending","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":5,"unique_order_numbers":8} 
[2026-03-31 16:34:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T04:34:17.593Z","date_to":"2026-03-31T16:34:17.593Z","per_page":"100"} 
[2026-03-31 16:34:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","pending","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":5,"unique_order_numbers":8} 
[2026-03-31 16:34:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T04:34:17.576Z","date_to":"2026-03-31T16:34:17.576Z","per_page":"100"} 
[2026-03-31 16:34:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","pending","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":5,"unique_order_numbers":8} 
[2026-03-31 16:36:16] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6596,"order_number":"AZS-310326-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2020,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 16:36:16"} 
[2026-03-31 16:36:16] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6596,"order_number":"AZS-310326-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2020,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 16:36:16"} 
[2026-03-31 16:36:16] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6596,"order_number":"AZS-310326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2020,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 16:36:16"} 
[2026-03-31 16:36:16] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6596,"order_number":"AZS-310326-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2020,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 16:36:16"} 
[2026-03-31 16:36:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6596,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":392,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":31324},{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":31325},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":31326},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":31327}],"validated_items":[{"id":31324,"menu_item_id":392,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":31325,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":31326,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":31327,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-03-31 16:36:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6596,"items_count":4} 
[2026-03-31 16:36:16] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31324,"menu_item_id":392,"quantity":1},{"id":31325,"menu_item_id":85,"quantity":1},{"id":31326,"menu_item_id":2,"quantity":1},{"id":31327,"menu_item_id":4,"quantity":1}]} 
[2026-03-31 16:36:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6596,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["392|1|","85|1|","2|1|","4|1|"],"new_items_map_keys":["392|1|","85|1|","2|1|","4|1|"]} 
[2026-03-31 16:36:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6596,"order_number":"AZS-310326-006"} 
[2026-03-31 16:36:16] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6596,"order_number":"AZS-310326-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2020,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-31 16:36:16","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-31 16:36:16"} 
[2026-03-31 16:36:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6596,"order_number":"AZS-310326-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-31 16:36:16"} 
[2026-03-31 16:36:16] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6596,"order_number":"AZS-310326-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2020.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-31 16:36:16","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2020,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2020.00","database_verification_match":true,"timestamp":"2026-03-31 16:36:16"} 
[2026-03-31 17:02:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":6598,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null,"id":31336},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31338},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":31339},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":31340}],"validated_items":[{"id":31336,"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"id":31338,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31339,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":31340,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-31 17:02:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6598,"items_count":4} 
[2026-03-31 17:02:59] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[31337],"items":[{"id":31336,"menu_item_id":55,"quantity":2},{"id":31338,"menu_item_id":56,"quantity":1},{"id":31339,"menu_item_id":2,"quantity":1},{"id":31340,"menu_item_id":63,"quantity":1}]} 
[2026-03-31 17:02:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6598,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["55|2|","60|1|","56|1|","2|2|","63|1|"],"new_items_map_keys":["55|2|","56|1|","2|1|","63|1|"]} 
[2026-03-31 17:02:59] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6598,"order_number":"AZS-310326-007"} 
[2026-03-31 17:02:59] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-007","replaced_order_id":6598} 
[2026-03-31 17:02:59] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6600,"items_count":4,"items":[{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":63,"quantity":1,"price":"1099.00"}]} 
[2026-03-31 17:02:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6600,"item_index":0,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6600}} 
[2026-03-31 17:02:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6600,"item_index":0,"menu_item_id":55} 
[2026-03-31 17:02:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6600,"item_index":1,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6600}} 
[2026-03-31 17:02:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6600,"item_index":1,"menu_item_id":56} 
[2026-03-31 17:02:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6600,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6600}} 
[2026-03-31 17:02:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6600,"item_index":2,"menu_item_id":2} 
[2026-03-31 17:02:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6600,"item_index":3,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6600}} 
[2026-03-31 17:02:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6600,"item_index":3,"menu_item_id":63} 
[2026-03-31 17:02:59] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6598,"new_order_id":6600,"order_number":"AZS-310326-007"} 
[2026-03-31 17:03:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6600,"item_index":0,"item_id":31336} 
[2026-03-31 17:03:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6600,"item_index":1,"item_id":31338} 
[2026-03-31 17:03:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6600,"item_index":2,"item_id":31339} 
[2026-03-31 17:03:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6600,"item_index":3,"item_id":31340} 
[2026-03-31 17:03:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6600,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":31336},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31338},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":31339},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":31340}],"validated_items":[{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null}]} 
[2026-03-31 17:03:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6600,"items_count":4} 
[2026-03-31 17:03:13] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[31347,31348,31349,31350],"items":[{"id":null,"menu_item_id":55,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":63,"quantity":1}]} 
[2026-03-31 17:03:13] local.INFO: PosOrderController::update - Item changes check {"order_id":6600,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["55|2|","56|1|","2|1|","63|1|"],"new_items_map_keys":["55|2|","56|1|","2|1|","63|1|"]} 
[2026-03-31 17:03:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6600,"order_number":"AZS-310326-007"} 
[2026-03-31 17:03:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6600,"order_number":"AZS-310326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-31 17:03:13"} 
[2026-03-31 17:03:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6600,"item_index":0,"item_id":31336} 
[2026-03-31 17:03:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6600,"item_index":1,"item_id":31338} 
[2026-03-31 17:03:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6600,"item_index":2,"item_id":31339} 
[2026-03-31 17:03:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6600,"item_index":3,"item_id":31340} 
[2026-03-31 17:03:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":4,"order_id":6600,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":31336},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31338},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":31339},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":31340},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-31 17:03:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6600,"items_count":5} 
[2026-03-31 17:03:40] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":4,"items_to_remove":[31347,31348,31349,31350],"items":[{"id":null,"menu_item_id":55,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":63,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-31 17:03:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6600,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["55|2|","56|1|","2|1|","63|1|"],"new_items_map_keys":["55|2|","56|1|","2|1|","63|1|","5|1|"]} 
[2026-03-31 17:03:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6600,"order_number":"AZS-310326-007"} 
[2026-03-31 17:03:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-007","replaced_order_id":6600} 
[2026-03-31 17:03:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6601,"items_count":5,"items":[{"menu_item_id":55,"quantity":2,"price":159.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":2,"quantity":1,"price":130.0},{"menu_item_id":63,"quantity":1,"price":1099.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-03-31 17:03:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6601,"item_index":0,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6601}} 
[2026-03-31 17:03:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6601,"item_index":0,"menu_item_id":55} 
[2026-03-31 17:03:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6601,"item_index":1,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6601}} 
[2026-03-31 17:03:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6601,"item_index":1,"menu_item_id":56} 
[2026-03-31 17:03:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6601,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6601}} 
[2026-03-31 17:03:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6601,"item_index":2,"menu_item_id":2} 
[2026-03-31 17:03:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6601,"item_index":3,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":1099.0,"discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6601}} 
[2026-03-31 17:03:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6601,"item_index":3,"menu_item_id":63} 
[2026-03-31 17:03:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6601,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6601}} 
[2026-03-31 17:03:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6601,"item_index":4,"menu_item_id":5} 
[2026-03-31 17:03:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6600,"new_order_id":6601,"order_number":"AZS-310326-007"} 
[2026-03-31 17:03:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6601,"item_index":0,"item_id":31336} 
[2026-03-31 17:03:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6601,"item_index":1,"item_id":31338} 
[2026-03-31 17:03:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6601,"item_index":2,"item_id":31339} 
[2026-03-31 17:03:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6601,"item_index":3,"item_id":31340} 
[2026-03-31 17:03:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6601,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":31336},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31338},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":31339},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":31340},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-31 17:03:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6601,"items_count":5} 
[2026-03-31 17:03:46] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[31351,31352,31353,31354,31355],"items":[{"id":null,"menu_item_id":55,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":63,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-31 17:03:46] local.INFO: PosOrderController::update - Item changes check {"order_id":6601,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["55|2|","56|1|","2|1|","63|1|","5|1|"],"new_items_map_keys":["55|2|","56|1|","2|1|","63|1|","5|1|"]} 
[2026-03-31 17:03:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6601,"order_number":"AZS-310326-007"} 
[2026-03-31 17:03:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6601,"order_number":"AZS-310326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-31 17:03:46"} 
[2026-03-31 17:14:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":6602,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":31356},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":31357},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31358},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null,"id":31360}],"validated_items":[{"id":31356,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":31357,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":31358,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31360,"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-31 17:14:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6602,"items_count":4} 
[2026-03-31 17:14:07] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[31359],"items":[{"id":31356,"menu_item_id":105,"quantity":1},{"id":31357,"menu_item_id":396,"quantity":2},{"id":31358,"menu_item_id":61,"quantity":1},{"id":31360,"menu_item_id":4,"quantity":2}]} 
[2026-03-31 17:14:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6602,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["105|1|","396|2|","61|1|","56|1|","4|2|"],"new_items_map_keys":["105|1|","396|2|","61|1|","4|2|"]} 
[2026-03-31 17:14:07] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6602,"order_number":"AZS-310326-010"} 
[2026-03-31 17:14:07] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-010","replaced_order_id":6602} 
[2026-03-31 17:14:07] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6603,"items_count":4,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":4,"quantity":2,"price":"90.00"}]} 
[2026-03-31 17:14:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6603,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6603}} 
[2026-03-31 17:14:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6603,"item_index":0,"menu_item_id":105} 
[2026-03-31 17:14:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6603,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6603}} 
[2026-03-31 17:14:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6603,"item_index":1,"menu_item_id":396} 
[2026-03-31 17:14:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6603,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6603}} 
[2026-03-31 17:14:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6603,"item_index":2,"menu_item_id":61} 
[2026-03-31 17:14:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6603,"item_index":3,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":2,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":180.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6603}} 
[2026-03-31 17:14:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6603,"item_index":3,"menu_item_id":4} 
[2026-03-31 17:14:07] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6602,"new_order_id":6603,"order_number":"AZS-310326-010"} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6597,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null,"id":31328},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":31329},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":31330},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":31331},{"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null,"id":31332},{"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null,"id":31333},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":31334},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31335},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31328,"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null},{"id":31329,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":31330,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":31331,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":31332,"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null},{"id":31333,"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null},{"id":31334,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":31335,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6597,"items_count":9} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31328,"menu_item_id":103,"quantity":1},{"id":31329,"menu_item_id":62,"quantity":1},{"id":31330,"menu_item_id":396,"quantity":2},{"id":31331,"menu_item_id":50,"quantity":2},{"id":31332,"menu_item_id":54,"quantity":1},{"id":31333,"menu_item_id":60,"quantity":2},{"id":31334,"menu_item_id":56,"quantity":2},{"id":31335,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6597,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["103|1|","62|1|","396|2|","50|2|","54|1|","60|2|","56|2|","5|1|"],"new_items_map_keys":["103|1|","62|1|","396|2|","50|2|","54|1|","60|2|","56|2|","5|1|","3|1|"]} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6597,"order_number":"AZS-310326-008"} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-008","replaced_order_id":6597} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6604,"items_count":9,"items":[{"menu_item_id":103,"quantity":1,"price":"2599.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":54,"quantity":1,"price":"159.00"},{"menu_item_id":60,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6604,"item_index":0,"item_data":{"menu_item_id":103,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Full","quantity":1,"price":"2599.00","discount_percent":0.0,"discount_amount":0.0,"total":2599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6604}} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6604,"item_index":0,"menu_item_id":103} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6604,"item_index":1,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6604}} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6604,"item_index":1,"menu_item_id":62} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6604,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6604}} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6604,"item_index":2,"menu_item_id":396} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6604,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6604}} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6604,"item_index":3,"menu_item_id":50} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6604,"item_index":4,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6604}} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6604,"item_index":4,"menu_item_id":54} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6604,"item_index":5,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6604}} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6604,"item_index":5,"menu_item_id":60} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6604,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6604}} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6604,"item_index":6,"menu_item_id":56} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6604,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6604}} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6604,"item_index":7,"menu_item_id":5} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6604,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6604}} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6604,"item_index":8,"menu_item_id":3} 
[2026-03-31 17:14:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6597,"new_order_id":6604,"order_number":"AZS-310326-008"} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6604,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null,"id":31365},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":31366},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":31367},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":31368},{"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null,"id":31369},{"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null,"id":31370},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":31371},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":31372},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":31373}],"validated_items":[{"id":31365,"menu_item_id":103,"quantity":1,"discount_percent":0,"notes":null},{"id":31366,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":31367,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":31368,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":31369,"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null},{"id":31370,"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null},{"id":31371,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":31372,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":31373,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6604,"items_count":9} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31365,"menu_item_id":103,"quantity":1},{"id":31366,"menu_item_id":62,"quantity":1},{"id":31367,"menu_item_id":396,"quantity":2},{"id":31368,"menu_item_id":50,"quantity":2},{"id":31369,"menu_item_id":54,"quantity":1},{"id":31370,"menu_item_id":60,"quantity":2},{"id":31371,"menu_item_id":56,"quantity":2},{"id":31372,"menu_item_id":5,"quantity":2},{"id":31373,"menu_item_id":3,"quantity":1}]} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6604,"has_item_changes":true,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["103|1|","62|1|","396|2|","50|2|","54|1|","60|2|","56|2|","5|1|","3|1|"],"new_items_map_keys":["103|1|","62|1|","396|2|","50|2|","54|1|","60|2|","56|2|","5|2|","3|1|"]} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6604,"order_number":"AZS-310326-008"} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-008","replaced_order_id":6604} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6606,"items_count":9,"items":[{"menu_item_id":103,"quantity":1,"price":"2599.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":54,"quantity":1,"price":"159.00"},{"menu_item_id":60,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6606,"item_index":0,"item_data":{"menu_item_id":103,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Full","quantity":1,"price":"2599.00","discount_percent":0.0,"discount_amount":0.0,"total":2599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6606}} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6606,"item_index":0,"menu_item_id":103} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6606,"item_index":1,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6606}} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6606,"item_index":1,"menu_item_id":62} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6606,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6606}} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6606,"item_index":2,"menu_item_id":396} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6606,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6606}} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6606,"item_index":3,"menu_item_id":50} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6606,"item_index":4,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6606}} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6606,"item_index":4,"menu_item_id":54} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6606,"item_index":5,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6606}} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6606,"item_index":5,"menu_item_id":60} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6606,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6606}} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6606,"item_index":6,"menu_item_id":56} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6606,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6606}} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6606,"item_index":7,"menu_item_id":5} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6606,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6606}} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6606,"item_index":8,"menu_item_id":3} 
[2026-03-31 17:26:42] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6604,"new_order_id":6606,"order_number":"AZS-310326-008"} 
[2026-03-31 17:27:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6599,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null,"id":31341},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":31342},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":31343},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31344},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31345},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31346},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":31341,"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null},{"id":31342,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":31343,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":31344,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31345,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31346,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-31 17:27:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6599,"items_count":7} 
[2026-03-31 17:27:37] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31341,"menu_item_id":85,"quantity":1},{"id":31342,"menu_item_id":105,"quantity":1},{"id":31343,"menu_item_id":50,"quantity":2},{"id":31344,"menu_item_id":61,"quantity":1},{"id":31345,"menu_item_id":56,"quantity":1},{"id":31346,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-03-31 17:27:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6599,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["85|1|","105|1|","50|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["85|1|","105|1|","50|2|","61|1|","56|1|","5|1|","2|3|"]} 
[2026-03-31 17:27:38] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6599,"order_number":"AZS-310326-009"} 
[2026-03-31 17:27:38] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-009","replaced_order_id":6599} 
[2026-03-31 17:27:38] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6607,"items_count":7,"items":[{"menu_item_id":85,"quantity":1,"price":"699.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"}]} 
[2026-03-31 17:27:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6607,"item_index":0,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":1,"price":"699.00","discount_percent":0.0,"discount_amount":0.0,"total":699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6607}} 
[2026-03-31 17:27:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6607,"item_index":0,"menu_item_id":85} 
[2026-03-31 17:27:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6607,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6607}} 
[2026-03-31 17:27:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6607,"item_index":1,"menu_item_id":105} 
[2026-03-31 17:27:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6607,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6607}} 
[2026-03-31 17:27:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6607,"item_index":2,"menu_item_id":50} 
[2026-03-31 17:27:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6607,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6607}} 
[2026-03-31 17:27:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6607,"item_index":3,"menu_item_id":61} 
[2026-03-31 17:27:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6607,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6607}} 
[2026-03-31 17:27:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6607,"item_index":4,"menu_item_id":56} 
[2026-03-31 17:27:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6607,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6607}} 
[2026-03-31 17:27:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6607,"item_index":5,"menu_item_id":5} 
[2026-03-31 17:27:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6607,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6607}} 
[2026-03-31 17:27:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6607,"item_index":6,"menu_item_id":2} 
[2026-03-31 17:27:38] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6599,"new_order_id":6607,"order_number":"AZS-310326-009"} 
[2026-03-31 17:28:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6605,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null,"id":31374},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":31375},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":31376},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31377},{"menu_item_id":286,"quantity":10,"discount_percent":0,"notes":null,"id":31378},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31379}],"validated_items":[{"id":31374,"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null},{"id":31375,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":31376,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":31377,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31378,"menu_item_id":286,"quantity":10,"discount_percent":0,"notes":null},{"id":31379,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-31 17:28:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6605,"items_count":6} 
[2026-03-31 17:28:49] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31374,"menu_item_id":113,"quantity":2},{"id":31375,"menu_item_id":98,"quantity":1},{"id":31376,"menu_item_id":96,"quantity":1},{"id":31377,"menu_item_id":61,"quantity":2},{"id":31378,"menu_item_id":286,"quantity":10},{"id":31379,"menu_item_id":5,"quantity":1}]} 
[2026-03-31 17:28:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6605,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|2|","98|1|","96|1|","61|2|","286|10|","5|1|"],"new_items_map_keys":["113|2|","98|1|","96|1|","61|2|","286|10|","5|1|"]} 
[2026-03-31 17:28:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6605,"order_number":"AZS-310326-011"} 
[2026-03-31 17:28:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6605,"order_number":"AZS-310326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-31 17:28:49"} 
[2026-03-31 17:28:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6605,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null,"id":31374},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":31375},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":31376},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31377},{"menu_item_id":286,"quantity":10,"discount_percent":0,"notes":null,"id":31378},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31379}],"validated_items":[{"id":31374,"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null},{"id":31375,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":31376,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":31377,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31378,"menu_item_id":286,"quantity":10,"discount_percent":0,"notes":null},{"id":31379,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-31 17:28:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6605,"items_count":6} 
[2026-03-31 17:28:49] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31374,"menu_item_id":113,"quantity":2},{"id":31375,"menu_item_id":98,"quantity":1},{"id":31376,"menu_item_id":96,"quantity":1},{"id":31377,"menu_item_id":61,"quantity":2},{"id":31378,"menu_item_id":286,"quantity":10},{"id":31379,"menu_item_id":5,"quantity":1}]} 
[2026-03-31 17:28:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6605,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|2|","98|1|","96|1|","61|2|","286|10|","5|1|"],"new_items_map_keys":["113|2|","98|1|","96|1|","61|2|","286|10|","5|1|"]} 
[2026-03-31 17:28:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6605,"order_number":"AZS-310326-011"} 
[2026-03-31 17:28:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6605,"order_number":"AZS-310326-011","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-31 17:28:49"} 
[2026-03-31 17:28:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6605,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null,"id":31374},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":31375},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":31376},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31377},{"menu_item_id":286,"quantity":10,"discount_percent":0,"notes":null,"id":31378},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31379}],"validated_items":[{"id":31374,"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null},{"id":31375,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":31376,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":31377,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31378,"menu_item_id":286,"quantity":10,"discount_percent":0,"notes":null},{"id":31379,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-31 17:28:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6605,"items_count":6} 
[2026-03-31 17:28:49] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31374,"menu_item_id":113,"quantity":2},{"id":31375,"menu_item_id":98,"quantity":1},{"id":31376,"menu_item_id":96,"quantity":1},{"id":31377,"menu_item_id":61,"quantity":2},{"id":31378,"menu_item_id":286,"quantity":10},{"id":31379,"menu_item_id":5,"quantity":1}]} 
[2026-03-31 17:28:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6605,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|2|","98|1|","96|1|","61|2|","286|10|","5|1|"],"new_items_map_keys":["113|2|","98|1|","96|1|","61|2|","286|10|","5|1|"]} 
[2026-03-31 17:28:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6605,"order_number":"AZS-310326-011"} 
[2026-03-31 17:28:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6605,"order_number":"AZS-310326-011","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-03-31 17:28:49"} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6606,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null,"id":31380},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":31381},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31382},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":31383},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":31384},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31385},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31386},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":31387},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31388}],"validated_items":[{"id":31380,"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null},{"id":31381,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":31382,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":31383,"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"id":31384,"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":31385,"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31386,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31387,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":31388,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6606,"items_count":9} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31380,"menu_item_id":103,"quantity":1},{"id":31381,"menu_item_id":62,"quantity":1},{"id":31382,"menu_item_id":396,"quantity":2},{"id":31383,"menu_item_id":50,"quantity":4},{"id":31384,"menu_item_id":54,"quantity":1},{"id":31385,"menu_item_id":60,"quantity":2},{"id":31386,"menu_item_id":56,"quantity":2},{"id":31387,"menu_item_id":5,"quantity":2},{"id":31388,"menu_item_id":3,"quantity":1}]} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6606,"has_item_changes":true,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["103|1|","62|1|","396|2|","50|2|","54|1|","60|2|","56|2|","5|2|","3|1|"],"new_items_map_keys":["103|1|","62|1|","396|2|","50|4|","54|1|","60|2|","56|2|","5|2|","3|1|"]} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6606,"order_number":"AZS-310326-008"} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-008","replaced_order_id":6606} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6608,"items_count":9,"items":[{"menu_item_id":103,"quantity":1,"price":2599.0},{"menu_item_id":62,"quantity":1,"price":1499.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":50,"quantity":4,"price":129.0},{"menu_item_id":54,"quantity":1,"price":159.0},{"menu_item_id":60,"quantity":2,"price":199.0},{"menu_item_id":56,"quantity":2,"price":199.0},{"menu_item_id":5,"quantity":2,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6608,"item_index":0,"item_data":{"menu_item_id":103,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Full","quantity":1,"price":2599.0,"discount_percent":0.0,"discount_amount":0.0,"total":2599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6608}} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6608,"item_index":0,"menu_item_id":103} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6608,"item_index":1,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":1499.0,"discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6608}} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6608,"item_index":1,"menu_item_id":62} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6608,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6608}} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6608,"item_index":2,"menu_item_id":396} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6608,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6608}} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6608,"item_index":3,"menu_item_id":50} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6608,"item_index":4,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":1,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6608}} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6608,"item_index":4,"menu_item_id":54} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6608,"item_index":5,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6608}} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6608,"item_index":5,"menu_item_id":60} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6608,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6608}} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6608,"item_index":6,"menu_item_id":56} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6608,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6608}} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6608,"item_index":7,"menu_item_id":5} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6608,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6608}} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6608,"item_index":8,"menu_item_id":3} 
[2026-03-31 17:29:19] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6606,"new_order_id":6608,"order_number":"AZS-310326-008"} 
[2026-03-31 17:29:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6608,"item_index":0,"item_id":31380} 
[2026-03-31 17:29:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6608,"item_index":1,"item_id":31381} 
[2026-03-31 17:29:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6608,"item_index":2,"item_id":31382} 
[2026-03-31 17:29:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6608,"item_index":3,"item_id":31383} 
[2026-03-31 17:29:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6608,"item_index":4,"item_id":31384} 
[2026-03-31 17:29:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6608,"item_index":5,"item_id":31385} 
[2026-03-31 17:29:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6608,"item_index":6,"item_id":31386} 
[2026-03-31 17:29:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6608,"item_index":7,"item_id":31387} 
[2026-03-31 17:29:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6608,"item_index":8,"item_id":31388} 
[2026-03-31 17:29:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":9,"order_id":6608,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null,"id":31380},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":31381},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31382},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":31383},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":31384},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31385},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31386},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":31387},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31388}],"validated_items":[{"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-31 17:29:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6608,"items_count":9} 
[2026-03-31 17:29:28] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":9,"items_to_remove":[31396,31397,31398,31399,31400,31401,31402,31403,31404],"items":[{"id":null,"menu_item_id":103,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":50,"quantity":4},{"id":null,"menu_item_id":54,"quantity":1},{"id":null,"menu_item_id":60,"quantity":2},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-31 17:29:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6608,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["103|1|","62|1|","396|2|","50|4|","54|1|","60|2|","56|2|","5|2|","3|1|"],"new_items_map_keys":["103|1|","62|1|","396|2|","50|4|","54|1|","60|2|","56|2|","5|2|","3|1|"]} 
[2026-03-31 17:29:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6608,"order_number":"AZS-310326-008"} 
[2026-03-31 17:29:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6608,"order_number":"AZS-310326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-31 17:29:28"} 
[2026-03-31 17:34:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6608,"item_index":0,"item_id":31380} 
[2026-03-31 17:34:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6608,"item_index":1,"item_id":31381} 
[2026-03-31 17:34:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6608,"item_index":2,"item_id":31382} 
[2026-03-31 17:34:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6608,"item_index":3,"item_id":31383} 
[2026-03-31 17:34:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6608,"item_index":4,"item_id":31384} 
[2026-03-31 17:34:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6608,"item_index":5,"item_id":31385} 
[2026-03-31 17:34:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6608,"item_index":6,"item_id":31386} 
[2026-03-31 17:34:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6608,"item_index":7,"item_id":31387} 
[2026-03-31 17:34:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6608,"item_index":8,"item_id":31388} 
[2026-03-31 17:34:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":9,"order_id":6608,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null,"id":31380},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":31381},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31382},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":31383},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":31384},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31385},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31386},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":31387},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31388}],"validated_items":[{"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-31 17:34:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6608,"items_count":9} 
[2026-03-31 17:34:15] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":9,"items_to_remove":[31396,31397,31398,31399,31400,31401,31402,31403,31404],"items":[{"id":null,"menu_item_id":103,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":50,"quantity":4},{"id":null,"menu_item_id":54,"quantity":1},{"id":null,"menu_item_id":60,"quantity":2},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-31 17:34:15] local.INFO: PosOrderController::update - Item changes check {"order_id":6608,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["103|1|","62|1|","396|2|","50|4|","54|1|","60|2|","56|2|","5|2|","3|1|"],"new_items_map_keys":["103|1|","62|1|","396|2|","50|4|","54|1|","60|2|","56|2|","5|2|","3|1|"]} 
[2026-03-31 17:34:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6608,"order_number":"AZS-310326-008"} 
[2026-03-31 17:34:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6608,"order_number":"AZS-310326-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-31 17:34:15"} 
[2026-03-31 17:36:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6601,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":31351},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31352},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":31353},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":31354},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31355}],"validated_items":[{"id":31351,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":31352,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31353,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":31354,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":31355,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-31 17:36:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6601,"items_count":5} 
[2026-03-31 17:36:53] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31351,"menu_item_id":55,"quantity":2},{"id":31352,"menu_item_id":56,"quantity":1},{"id":31353,"menu_item_id":2,"quantity":1},{"id":31354,"menu_item_id":63,"quantity":1},{"id":31355,"menu_item_id":5,"quantity":1}]} 
[2026-03-31 17:36:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6601,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["55|2|","56|1|","2|1|","63|1|","5|1|"],"new_items_map_keys":["55|2|","56|1|","2|1|","63|1|","5|1|"]} 
[2026-03-31 17:36:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6601,"order_number":"AZS-310326-007"} 
[2026-03-31 17:36:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6601,"order_number":"AZS-310326-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-31 17:36:53"} 
[2026-03-31 17:37:18] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6601,"order_number":"AZS-310326-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 17:37:18"} 
[2026-03-31 17:37:18] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6601,"order_number":"AZS-310326-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 17:37:18"} 
[2026-03-31 17:37:18] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6601,"order_number":"AZS-310326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 17:37:18"} 
[2026-03-31 17:37:18] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6601,"order_number":"AZS-310326-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 17:37:18"} 
[2026-03-31 17:37:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":6601,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":31351},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":31353},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":31354},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31355}],"validated_items":[{"id":31351,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":31353,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":31354,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":31355,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-03-31 17:37:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6601,"items_count":4} 
[2026-03-31 17:37:18] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[31352],"items":[{"id":31351,"menu_item_id":55,"quantity":2},{"id":31353,"menu_item_id":2,"quantity":1},{"id":31354,"menu_item_id":63,"quantity":1},{"id":31355,"menu_item_id":5,"quantity":1}]} 
[2026-03-31 17:37:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6601,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["55|2|","56|1|","2|1|","63|1|","5|1|"],"new_items_map_keys":["55|2|","2|1|","63|1|","5|1|"]} 
[2026-03-31 17:37:18] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6601,"order_number":"AZS-310326-007","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":2000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-31 17:37:18","original_payment_amount":"0.00","grand_total":1717.0,"timestamp":"2026-03-31 17:37:18"} 
[2026-03-31 17:37:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6601,"order_number":"AZS-310326-007"} 
[2026-03-31 17:37:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-007","replaced_order_id":6601} 
[2026-03-31 17:37:18] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6601,"new_order_id":6610,"order_number":"AZS-310326-007","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"2000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-31 17:37:18","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-31 17:37:18"} 
[2026-03-31 17:37:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6610,"items_count":4,"items":[{"menu_item_id":55,"quantity":2,"price":159.0},{"menu_item_id":2,"quantity":1,"price":130.0},{"menu_item_id":63,"quantity":1,"price":1099.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-03-31 17:37:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6610,"item_index":0,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6610}} 
[2026-03-31 17:37:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6610,"item_index":0,"menu_item_id":55} 
[2026-03-31 17:37:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6610,"item_index":1,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6610}} 
[2026-03-31 17:37:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6610,"item_index":1,"menu_item_id":2} 
[2026-03-31 17:37:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6610,"item_index":2,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":1099.0,"discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6610}} 
[2026-03-31 17:37:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6610,"item_index":2,"menu_item_id":63} 
[2026-03-31 17:37:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6610,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6610}} 
[2026-03-31 17:37:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6610,"item_index":3,"menu_item_id":5} 
[2026-03-31 17:37:18] local.ERROR: Error tracking recipe usage for order 6610: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6610, 55, 102, 1, 20, 0.00, Order #AZS-310326-007 - 2x Garlic Naan, 2026-03-31 17:37:18, 2026-03-31 17:37:18))  
[2026-03-31 17:37:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6601,"new_order_id":6610,"order_number":"AZS-310326-007"} 
[2026-03-31 17:37:19] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6601,"new_order_id":6610,"order_number":"AZS-310326-007","route":"api/orders/6601"} 
[2026-03-31 17:38:01] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6608,"order_number":"AZS-310326-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 17:38:01"} 
[2026-03-31 17:38:01] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6608,"order_number":"AZS-310326-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 17:38:01"} 
[2026-03-31 17:38:01] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6608,"order_number":"AZS-310326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 17:38:01"} 
[2026-03-31 17:38:01] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6608,"order_number":"AZS-310326-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 17:38:01"} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6608,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null,"id":31396},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":31397},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31398},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":31399},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":31400},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31401},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31402},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":31403},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31404}],"validated_items":[{"id":31396,"menu_item_id":103,"quantity":1,"price":2599,"discount_percent":0,"notes":null},{"id":31397,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":31398,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":31399,"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"id":31400,"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":31401,"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31402,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31403,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":31404,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6608,"items_count":9} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31396,"menu_item_id":103,"quantity":1},{"id":31397,"menu_item_id":62,"quantity":1},{"id":31398,"menu_item_id":396,"quantity":2},{"id":31399,"menu_item_id":50,"quantity":4},{"id":31400,"menu_item_id":54,"quantity":1},{"id":31401,"menu_item_id":60,"quantity":1},{"id":31402,"menu_item_id":56,"quantity":1},{"id":31403,"menu_item_id":5,"quantity":2},{"id":31404,"menu_item_id":3,"quantity":1}]} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6608,"has_item_changes":true,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["103|1|","62|1|","396|2|","50|4|","54|1|","60|2|","56|2|","5|2|","3|1|"],"new_items_map_keys":["103|1|","62|1|","396|2|","50|4|","54|1|","60|1|","56|1|","5|2|","3|1|"]} 
[2026-03-31 17:38:01] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6608,"order_number":"AZS-310326-008","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":6000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-31 17:38:01","original_payment_amount":"0.00","grand_total":5979.0,"timestamp":"2026-03-31 17:38:01"} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6608,"order_number":"AZS-310326-008"} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-008","replaced_order_id":6608} 
[2026-03-31 17:38:01] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6608,"new_order_id":6611,"order_number":"AZS-310326-008","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"6000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-31 17:38:01","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-31 17:38:01"} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6611,"items_count":9,"items":[{"menu_item_id":103,"quantity":1,"price":2599.0},{"menu_item_id":62,"quantity":1,"price":1499.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":50,"quantity":4,"price":129.0},{"menu_item_id":54,"quantity":1,"price":159.0},{"menu_item_id":60,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":2,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6611,"item_index":0,"item_data":{"menu_item_id":103,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Full","quantity":1,"price":2599.0,"discount_percent":0.0,"discount_amount":0.0,"total":2599.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6611}} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6611,"item_index":0,"menu_item_id":103} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6611,"item_index":1,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":1499.0,"discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6611}} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6611,"item_index":1,"menu_item_id":62} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6611,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6611}} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6611,"item_index":2,"menu_item_id":396} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6611,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6611}} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6611,"item_index":3,"menu_item_id":50} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6611,"item_index":4,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":1,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6611}} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6611,"item_index":4,"menu_item_id":54} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6611,"item_index":5,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6611}} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6611,"item_index":5,"menu_item_id":60} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6611,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6611}} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6611,"item_index":6,"menu_item_id":56} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6611,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6611}} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6611,"item_index":7,"menu_item_id":5} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6611,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6611}} 
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6611,"item_index":8,"menu_item_id":3} 
[2026-03-31 17:38:01] local.ERROR: Error tracking recipe usage for order 6611: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6611, 103, 77, 1, 1, 0.00, Order #AZS-310326-008 - 1x Chicken Afghani Karahi - Full, 2026-03-31 17:38:01, 2026-03-31 17:38:01))  
[2026-03-31 17:38:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6608,"new_order_id":6611,"order_number":"AZS-310326-008"} 
[2026-03-31 17:38:02] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6608,"new_order_id":6611,"order_number":"AZS-310326-008","route":"api/orders/6608"} 
[2026-03-31 17:38:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T05:38:08.538Z","date_to":"2026-03-31T17:38:08.538Z","per_page":"100"} 
[2026-03-31 17:38:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T05:38:08.552Z","date_to":"2026-03-31T17:38:08.552Z","per_page":"100"} 
[2026-03-31 17:38:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","pending","pending","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":6,"unique_order_numbers":12} 
[2026-03-31 17:38:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","pending","pending","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":6,"unique_order_numbers":12} 
[2026-03-31 17:38:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T05:38:08.538Z","date_to":"2026-03-31T17:38:08.538Z","per_page":"100"} 
[2026-03-31 17:38:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","paid","pending","pending","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":6,"unique_order_numbers":12} 
[2026-03-31 17:44:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6607,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":31389},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31390},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":31391},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31392},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31393},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31394},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":31395}],"validated_items":[{"id":31389,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":31390,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":31391,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":31392,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31393,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31394,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31395,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-31 17:44:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6607,"items_count":7} 
[2026-03-31 17:44:15] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31389,"menu_item_id":85,"quantity":1},{"id":31390,"menu_item_id":105,"quantity":1},{"id":31391,"menu_item_id":50,"quantity":2},{"id":31392,"menu_item_id":61,"quantity":1},{"id":31393,"menu_item_id":56,"quantity":1},{"id":31394,"menu_item_id":5,"quantity":1},{"id":31395,"menu_item_id":2,"quantity":3}]} 
[2026-03-31 17:44:15] local.INFO: PosOrderController::update - Item changes check {"order_id":6607,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["85|1|","105|1|","50|2|","61|1|","56|1|","5|1|","2|3|"],"new_items_map_keys":["85|1|","105|1|","50|2|","61|1|","56|1|","5|1|","2|3|"]} 
[2026-03-31 17:44:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6607,"order_number":"AZS-310326-009"} 
[2026-03-31 17:44:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6607,"order_number":"AZS-310326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-31 17:44:15"} 
[2026-03-31 17:44:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T05:44:30.953Z","date_to":"2026-03-31T17:44:30.953Z","per_page":"100"} 
[2026-03-31 17:44:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","pending","pending","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":7,"unique_order_numbers":13} 
[2026-03-31 17:44:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T05:44:30.974Z","date_to":"2026-03-31T17:44:30.974Z","per_page":"100"} 
[2026-03-31 17:44:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","pending","pending","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":7,"unique_order_numbers":13} 
[2026-03-31 17:44:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T05:44:30.953Z","date_to":"2026-03-31T17:44:30.953Z","per_page":"100"} 
[2026-03-31 17:44:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","pending","pending","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":7,"unique_order_numbers":13} 
[2026-03-31 17:45:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6605,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null,"id":31374},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":31375},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":31376},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31377},{"menu_item_id":286,"quantity":10,"discount_percent":0,"notes":null,"id":31378},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31379},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":31374,"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null},{"id":31375,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":31376,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":31377,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31378,"menu_item_id":286,"quantity":10,"discount_percent":0,"notes":null},{"id":31379,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-31 17:45:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6605,"items_count":7} 
[2026-03-31 17:45:18] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31374,"menu_item_id":113,"quantity":2},{"id":31375,"menu_item_id":98,"quantity":1},{"id":31376,"menu_item_id":96,"quantity":1},{"id":31377,"menu_item_id":61,"quantity":2},{"id":31378,"menu_item_id":286,"quantity":10},{"id":31379,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":56,"quantity":2}]} 
[2026-03-31 17:45:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6605,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["113|2|","98|1|","96|1|","61|2|","286|10|","5|1|"],"new_items_map_keys":["113|2|","98|1|","96|1|","61|2|","286|10|","5|1|","56|2|"]} 
[2026-03-31 17:45:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6605,"order_number":"AZS-310326-011"} 
[2026-03-31 17:45:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-011","replaced_order_id":6605} 
[2026-03-31 17:45:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6613,"items_count":7,"items":[{"menu_item_id":113,"quantity":2,"price":"1199.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":286,"quantity":10,"price":"15.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"}]} 
[2026-03-31 17:45:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6613,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6613}} 
[2026-03-31 17:45:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6613,"item_index":0,"menu_item_id":113} 
[2026-03-31 17:45:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6613,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6613}} 
[2026-03-31 17:45:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6613,"item_index":1,"menu_item_id":98} 
[2026-03-31 17:45:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6613,"item_index":2,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6613}} 
[2026-03-31 17:45:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6613,"item_index":2,"menu_item_id":96} 
[2026-03-31 17:45:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6613,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6613}} 
[2026-03-31 17:45:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6613,"item_index":3,"menu_item_id":61} 
[2026-03-31 17:45:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6613,"item_index":4,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":10,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":150.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6613}} 
[2026-03-31 17:45:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6613,"item_index":4,"menu_item_id":286} 
[2026-03-31 17:45:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6613,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6613}} 
[2026-03-31 17:45:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6613,"item_index":5,"menu_item_id":5} 
[2026-03-31 17:45:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6613,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6613}} 
[2026-03-31 17:45:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6613,"item_index":6,"menu_item_id":56} 
[2026-03-31 17:45:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6605,"new_order_id":6613,"order_number":"AZS-310326-011"} 
[2026-03-31 17:53:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6603,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":31361},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":31362},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31363},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null,"id":31364},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":31361,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":31362,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":31363,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31364,"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-31 17:53:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6603,"items_count":5} 
[2026-03-31 17:53:43] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31361,"menu_item_id":105,"quantity":1},{"id":31362,"menu_item_id":396,"quantity":2},{"id":31363,"menu_item_id":61,"quantity":1},{"id":31364,"menu_item_id":4,"quantity":2},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-03-31 17:53:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6603,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["105|1|","396|2|","61|1|","4|2|"],"new_items_map_keys":["105|1|","396|2|","61|1|","4|2|","2|2|"]} 
[2026-03-31 17:53:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6603,"order_number":"AZS-310326-010"} 
[2026-03-31 17:53:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-010","replaced_order_id":6603} 
[2026-03-31 17:53:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6615,"items_count":5,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":4,"quantity":2,"price":"90.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-03-31 17:53:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6615,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6615}} 
[2026-03-31 17:53:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6615,"item_index":0,"menu_item_id":105} 
[2026-03-31 17:53:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6615,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6615}} 
[2026-03-31 17:53:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6615,"item_index":1,"menu_item_id":396} 
[2026-03-31 17:53:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6615,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6615}} 
[2026-03-31 17:53:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6615,"item_index":2,"menu_item_id":61} 
[2026-03-31 17:53:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6615,"item_index":3,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":2,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":180.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6615}} 
[2026-03-31 17:53:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6615,"item_index":3,"menu_item_id":4} 
[2026-03-31 17:53:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6615,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6615}} 
[2026-03-31 17:53:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6615,"item_index":4,"menu_item_id":2} 
[2026-03-31 17:53:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6603,"new_order_id":6615,"order_number":"AZS-310326-010"} 
[2026-03-31 17:55:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6607,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":31389},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31390},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":31391},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31392},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31393},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31394},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":31395}],"validated_items":[{"id":31389,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":31390,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":31391,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":31392,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31393,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31394,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31395,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-31 17:55:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6607,"items_count":7} 
[2026-03-31 17:55:05] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31389,"menu_item_id":85,"quantity":1},{"id":31390,"menu_item_id":105,"quantity":1},{"id":31391,"menu_item_id":50,"quantity":2},{"id":31392,"menu_item_id":61,"quantity":1},{"id":31393,"menu_item_id":56,"quantity":1},{"id":31394,"menu_item_id":5,"quantity":1},{"id":31395,"menu_item_id":2,"quantity":3}]} 
[2026-03-31 17:55:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6607,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["85|1|","105|1|","50|2|","61|1|","56|1|","5|1|","2|3|"],"new_items_map_keys":["85|1|","105|1|","50|2|","61|1|","56|1|","5|1|","2|3|"]} 
[2026-03-31 17:55:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6607,"order_number":"AZS-310326-009"} 
[2026-03-31 17:55:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6607,"order_number":"AZS-310326-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-31 17:55:05"} 
[2026-03-31 17:55:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6614,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":31436},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31436,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-31 17:55:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6614,"items_count":8} 
[2026-03-31 17:55:51] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31436,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":95,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-03-31 17:55:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6614,"has_item_changes":true,"old_items_count":1,"new_items_count":8,"old_items_map_keys":["403|1|"],"new_items_map_keys":["403|1|","95|1|","62|1|","50|2|","396|1|","61|1|","56|1|","5|1|"]} 
[2026-03-31 17:55:51] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6614,"order_number":"AZS-310326-014"} 
[2026-03-31 17:55:51] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-014","replaced_order_id":6614} 
[2026-03-31 17:55:51] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6616,"items_count":8,"items":[{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-03-31 17:55:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6616,"item_index":0,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6616}} 
[2026-03-31 17:55:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6616,"item_index":0,"menu_item_id":403} 
[2026-03-31 17:55:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6616,"item_index":1,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6616}} 
[2026-03-31 17:55:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6616,"item_index":1,"menu_item_id":95} 
[2026-03-31 17:55:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6616,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6616}} 
[2026-03-31 17:55:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6616,"item_index":2,"menu_item_id":62} 
[2026-03-31 17:55:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6616,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6616}} 
[2026-03-31 17:55:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6616,"item_index":3,"menu_item_id":50} 
[2026-03-31 17:55:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6616,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6616}} 
[2026-03-31 17:55:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6616,"item_index":4,"menu_item_id":396} 
[2026-03-31 17:55:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6616,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6616}} 
[2026-03-31 17:55:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6616,"item_index":5,"menu_item_id":61} 
[2026-03-31 17:55:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6616,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6616}} 
[2026-03-31 17:55:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6616,"item_index":6,"menu_item_id":56} 
[2026-03-31 17:55:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6616,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6616}} 
[2026-03-31 17:55:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6616,"item_index":7,"menu_item_id":5} 
[2026-03-31 17:55:51] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6614,"new_order_id":6616,"order_number":"AZS-310326-014"} 
[2026-03-31 17:56:35] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6607,"order_number":"AZS-310326-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 17:56:35"} 
[2026-03-31 17:56:35] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6607,"order_number":"AZS-310326-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 17:56:35"} 
[2026-03-31 17:56:35] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6607,"order_number":"AZS-310326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 17:56:35"} 
[2026-03-31 17:56:35] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6607,"order_number":"AZS-310326-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 17:56:35"} 
[2026-03-31 17:56:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":6607,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":31389},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31390},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":31391},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31393},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31394},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":31395}],"validated_items":[{"id":31389,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":31390,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":31391,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":31393,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31394,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31395,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-31 17:56:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6607,"items_count":6} 
[2026-03-31 17:56:35] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[31392],"items":[{"id":31389,"menu_item_id":85,"quantity":1},{"id":31390,"menu_item_id":105,"quantity":1},{"id":31391,"menu_item_id":50,"quantity":2},{"id":31393,"menu_item_id":56,"quantity":1},{"id":31394,"menu_item_id":5,"quantity":1},{"id":31395,"menu_item_id":2,"quantity":3}]} 
[2026-03-31 17:56:35] local.INFO: PosOrderController::update - Item changes check {"order_id":6607,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["85|1|","105|1|","50|2|","61|1|","56|1|","5|1|","2|3|"],"new_items_map_keys":["85|1|","105|1|","50|2|","56|1|","5|1|","2|3|"]} 
[2026-03-31 17:56:35] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6607,"order_number":"AZS-310326-009","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":4000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-31 17:56:35","original_payment_amount":"0.00","grand_total":3915.0,"timestamp":"2026-03-31 17:56:35"} 
[2026-03-31 17:56:35] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6607,"order_number":"AZS-310326-009"} 
[2026-03-31 17:56:35] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-009","replaced_order_id":6607} 
[2026-03-31 17:56:35] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6607,"new_order_id":6617,"order_number":"AZS-310326-009","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"4000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-31 17:56:35","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-31 17:56:35"} 
[2026-03-31 17:56:35] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6617,"items_count":6,"items":[{"menu_item_id":85,"quantity":1,"price":699.0},{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":50,"quantity":2,"price":129.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":2,"quantity":3,"price":130.0}]} 
[2026-03-31 17:56:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6617,"item_index":0,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":1,"price":699.0,"discount_percent":0.0,"discount_amount":0.0,"total":699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6617}} 
[2026-03-31 17:56:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6617,"item_index":0,"menu_item_id":85} 
[2026-03-31 17:56:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6617,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6617}} 
[2026-03-31 17:56:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6617,"item_index":1,"menu_item_id":105} 
[2026-03-31 17:56:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6617,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6617}} 
[2026-03-31 17:56:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6617,"item_index":2,"menu_item_id":50} 
[2026-03-31 17:56:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6617,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6617}} 
[2026-03-31 17:56:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6617,"item_index":3,"menu_item_id":56} 
[2026-03-31 17:56:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6617,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6617}} 
[2026-03-31 17:56:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6617,"item_index":4,"menu_item_id":5} 
[2026-03-31 17:56:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6617,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6617}} 
[2026-03-31 17:56:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6617,"item_index":5,"menu_item_id":2} 
[2026-03-31 17:56:35] local.ERROR: Error tracking recipe usage for order 6617: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6617, 85, 80, 1, 15, 0.00, Order #AZS-310326-009 - 1x Loaded Fries, 2026-03-31 17:56:35, 2026-03-31 17:56:35))  
[2026-03-31 17:56:35] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6607,"new_order_id":6617,"order_number":"AZS-310326-009"} 
[2026-03-31 17:56:36] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6607,"new_order_id":6617,"order_number":"AZS-310326-009","route":"api/orders/6607"} 
[2026-03-31 17:58:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T05:58:00.781Z","date_to":"2026-03-31T17:58:00.781Z","per_page":"100"} 
[2026-03-31 17:58:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T05:58:00.793Z","date_to":"2026-03-31T17:58:00.793Z","per_page":"100"} 
[2026-03-31 17:58:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","pending","pending","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":8,"unique_order_numbers":15} 
[2026-03-31 17:58:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","pending","pending","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":8,"unique_order_numbers":15} 
[2026-03-31 17:58:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T05:58:00.781Z","date_to":"2026-03-31T17:58:00.781Z","per_page":"100"} 
[2026-03-31 17:58:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","pending","pending","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":8,"unique_order_numbers":15} 
[2026-03-31 18:03:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6615,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31437},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31438},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31439},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null,"id":31440},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":31441}],"validated_items":[{"id":31437,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":31438,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":31439,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31440,"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null},{"id":31441,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-31 18:03:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6615,"items_count":5} 
[2026-03-31 18:03:16] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31437,"menu_item_id":105,"quantity":1},{"id":31438,"menu_item_id":396,"quantity":2},{"id":31439,"menu_item_id":61,"quantity":1},{"id":31440,"menu_item_id":4,"quantity":2},{"id":31441,"menu_item_id":2,"quantity":2}]} 
[2026-03-31 18:03:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6615,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","396|2|","61|1|","4|2|","2|2|"],"new_items_map_keys":["105|1|","396|2|","61|1|","4|2|","2|2|"]} 
[2026-03-31 18:03:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6615,"order_number":"AZS-310326-010"} 
[2026-03-31 18:03:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6615,"order_number":"AZS-310326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-31 18:03:16"} 
[2026-03-31 18:04:07] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-31 18:10:47] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6615,"order_number":"AZS-310326-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 18:10:47"} 
[2026-03-31 18:10:47] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6615,"order_number":"AZS-310326-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 18:10:47"} 
[2026-03-31 18:10:47] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6615,"order_number":"AZS-310326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 18:10:47"} 
[2026-03-31 18:10:47] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6615,"order_number":"AZS-310326-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 18:10:47"} 
[2026-03-31 18:10:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6615,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31437},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31438},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31439},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null,"id":31440},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":31441}],"validated_items":[{"id":31437,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":31438,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":31439,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31440,"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null},{"id":31441,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-31 18:10:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6615,"items_count":5} 
[2026-03-31 18:10:47] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31437,"menu_item_id":105,"quantity":1},{"id":31438,"menu_item_id":396,"quantity":2},{"id":31439,"menu_item_id":61,"quantity":1},{"id":31440,"menu_item_id":4,"quantity":2},{"id":31441,"menu_item_id":2,"quantity":2}]} 
[2026-03-31 18:10:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6615,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","396|2|","61|1|","4|2|","2|2|"],"new_items_map_keys":["105|1|","396|2|","61|1|","4|2|","2|2|"]} 
[2026-03-31 18:10:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6615,"order_number":"AZS-310326-010"} 
[2026-03-31 18:10:47] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6615,"order_number":"AZS-310326-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-31 18:10:47","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-31 18:10:47"} 
[2026-03-31 18:10:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6615,"order_number":"AZS-310326-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-31 18:10:47"} 
[2026-03-31 18:10:47] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6615,"order_number":"AZS-310326-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-31 18:10:47","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-03-31 18:10:47"} 
[2026-03-31 18:10:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6618,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":15,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":31456}],"validated_items":[{"id":31456,"menu_item_id":15,"quantity":2,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-31 18:10:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6618,"items_count":1} 
[2026-03-31 18:10:59] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31456,"menu_item_id":15,"quantity":2}]} 
[2026-03-31 18:10:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6618,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["15|2|"],"new_items_map_keys":["15|2|"]} 
[2026-03-31 18:10:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6618,"order_number":"AZS-310326-015"} 
[2026-03-31 18:10:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6618,"order_number":"AZS-310326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-31 18:10:59"} 
[2026-03-31 18:12:15] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6618,"order_number":"AZS-310326-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1050,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 18:12:15"} 
[2026-03-31 18:12:15] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6618,"order_number":"AZS-310326-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1050,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 18:12:15"} 
[2026-03-31 18:12:15] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6618,"order_number":"AZS-310326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1050,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 18:12:15"} 
[2026-03-31 18:12:15] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6618,"order_number":"AZS-310326-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1050,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 18:12:15"} 
[2026-03-31 18:12:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6618,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":15,"quantity":2,"price":499,"discount_percent":0,"notes":null,"id":31456}],"validated_items":[{"id":31456,"menu_item_id":15,"quantity":2,"price":499,"discount_percent":0,"notes":null}]} 
[2026-03-31 18:12:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6618,"items_count":1} 
[2026-03-31 18:12:15] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31456,"menu_item_id":15,"quantity":2}]} 
[2026-03-31 18:12:15] local.INFO: PosOrderController::update - Item changes check {"order_id":6618,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["15|2|"],"new_items_map_keys":["15|2|"]} 
[2026-03-31 18:12:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6618,"order_number":"AZS-310326-015"} 
[2026-03-31 18:12:15] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6618,"order_number":"AZS-310326-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1050,"update_data_payment_mode":"online","update_data_paid_at":"2026-03-31 18:12:15","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-31 18:12:15"} 
[2026-03-31 18:12:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6618,"order_number":"AZS-310326-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-31 18:12:15"} 
[2026-03-31 18:12:15] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6618,"order_number":"AZS-310326-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1050.00","payment_mode_after_update":"online","paid_at_after_update":"2026-03-31 18:12:15","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1050,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1050.00","database_verification_match":true,"timestamp":"2026-03-31 18:12:15"} 
[2026-03-31 18:15:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6612,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":31427},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":31428},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31427,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":31428,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-31 18:15:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6612,"items_count":3} 
[2026-03-31 18:15:56] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31427,"menu_item_id":113,"quantity":1},{"id":31428,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-31 18:15:56] local.INFO: PosOrderController::update - Item changes check {"order_id":6612,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["113|1|","396|2|"],"new_items_map_keys":["113|1|","396|2|","3|1|"]} 
[2026-03-31 18:15:56] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6612,"order_number":"AZS-310326-013"} 
[2026-03-31 18:15:56] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-013","replaced_order_id":6612} 
[2026-03-31 18:15:56] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6620,"items_count":3,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-31 18:15:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6620,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6620}} 
[2026-03-31 18:15:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6620,"item_index":0,"menu_item_id":113} 
[2026-03-31 18:15:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6620,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6620}} 
[2026-03-31 18:15:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6620,"item_index":1,"menu_item_id":396} 
[2026-03-31 18:15:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6620,"item_index":2,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6620}} 
[2026-03-31 18:15:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6620,"item_index":2,"menu_item_id":3} 
[2026-03-31 18:15:56] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6612,"new_order_id":6620,"order_number":"AZS-310326-013"} 
[2026-03-31 18:16:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6613,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null,"id":31429},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":31430},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":31431},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31432},{"menu_item_id":286,"quantity":10,"discount_percent":0,"notes":null,"id":31433},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31434},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":31435},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":31429,"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null},{"id":31430,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":31431,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":31432,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31433,"menu_item_id":286,"quantity":10,"discount_percent":0,"notes":null},{"id":31434,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":31435,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-31 18:16:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6613,"items_count":8} 
[2026-03-31 18:16:18] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31429,"menu_item_id":113,"quantity":2},{"id":31430,"menu_item_id":98,"quantity":1},{"id":31431,"menu_item_id":96,"quantity":1},{"id":31432,"menu_item_id":61,"quantity":2},{"id":31433,"menu_item_id":286,"quantity":10},{"id":31434,"menu_item_id":5,"quantity":1},{"id":31435,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-03-31 18:16:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6613,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["113|2|","98|1|","96|1|","61|2|","286|10|","5|1|","56|2|"],"new_items_map_keys":["113|2|","98|1|","96|1|","61|2|","286|10|","5|1|","56|2|","3|2|"]} 
[2026-03-31 18:16:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6613,"order_number":"AZS-310326-011"} 
[2026-03-31 18:16:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-011","replaced_order_id":6613} 
[2026-03-31 18:16:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6621,"items_count":8,"items":[{"menu_item_id":113,"quantity":2,"price":"1199.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":286,"quantity":10,"price":"15.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-03-31 18:16:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6621,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6621}} 
[2026-03-31 18:16:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6621,"item_index":0,"menu_item_id":113} 
[2026-03-31 18:16:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6621,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6621}} 
[2026-03-31 18:16:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6621,"item_index":1,"menu_item_id":98} 
[2026-03-31 18:16:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6621,"item_index":2,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6621}} 
[2026-03-31 18:16:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6621,"item_index":2,"menu_item_id":96} 
[2026-03-31 18:16:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6621,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6621}} 
[2026-03-31 18:16:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6621,"item_index":3,"menu_item_id":61} 
[2026-03-31 18:16:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6621,"item_index":4,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":10,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":150.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6621}} 
[2026-03-31 18:16:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6621,"item_index":4,"menu_item_id":286} 
[2026-03-31 18:16:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6621,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6621}} 
[2026-03-31 18:16:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6621,"item_index":5,"menu_item_id":5} 
[2026-03-31 18:16:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6621,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6621}} 
[2026-03-31 18:16:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6621,"item_index":6,"menu_item_id":56} 
[2026-03-31 18:16:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6621,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6621}} 
[2026-03-31 18:16:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6621,"item_index":7,"menu_item_id":3} 
[2026-03-31 18:16:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6613,"new_order_id":6621,"order_number":"AZS-310326-011"} 
[2026-03-31 18:29:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6620,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":31458},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":31459},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":31460},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31458,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":31459,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":31460,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-31 18:29:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6620,"items_count":4} 
[2026-03-31 18:29:21] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31458,"menu_item_id":113,"quantity":1},{"id":31459,"menu_item_id":396,"quantity":1},{"id":31460,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1}]} 
[2026-03-31 18:29:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6620,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["113|1|","396|2|","3|1|"],"new_items_map_keys":["113|1|","396|1|","3|1|","50|1|"]} 
[2026-03-31 18:29:21] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6620,"order_number":"AZS-310326-013"} 
[2026-03-31 18:29:21] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-013","replaced_order_id":6620} 
[2026-03-31 18:29:21] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6622,"items_count":4,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"}]} 
[2026-03-31 18:29:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6622,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6622}} 
[2026-03-31 18:29:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6622,"item_index":0,"menu_item_id":113} 
[2026-03-31 18:29:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6622,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6622}} 
[2026-03-31 18:29:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6622,"item_index":1,"menu_item_id":396} 
[2026-03-31 18:29:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6622,"item_index":2,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6622}} 
[2026-03-31 18:29:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6622,"item_index":2,"menu_item_id":3} 
[2026-03-31 18:29:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6622,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6622}} 
[2026-03-31 18:29:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6622,"item_index":3,"menu_item_id":50} 
[2026-03-31 18:29:21] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6620,"new_order_id":6622,"order_number":"AZS-310326-013"} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6616,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":31442},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":31443},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":31444},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":31445},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":31446},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31447},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31448},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31449},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":31442,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"id":31443,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":31444,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":31445,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":31446,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":31447,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31448,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31449,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6616,"items_count":9} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31442,"menu_item_id":403,"quantity":1},{"id":31443,"menu_item_id":95,"quantity":1},{"id":31444,"menu_item_id":62,"quantity":1},{"id":31445,"menu_item_id":50,"quantity":2},{"id":31446,"menu_item_id":396,"quantity":1},{"id":31447,"menu_item_id":61,"quantity":1},{"id":31448,"menu_item_id":56,"quantity":1},{"id":31449,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6616,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["403|1|","95|1|","62|1|","50|2|","396|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["403|1|","95|1|","62|1|","50|2|","396|1|","61|1|","56|1|","5|1|","2|3|"]} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6616,"order_number":"AZS-310326-014"} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-014","replaced_order_id":6616} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6623,"items_count":9,"items":[{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"}]} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6623,"item_index":0,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6623}} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6623,"item_index":0,"menu_item_id":403} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6623,"item_index":1,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6623}} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6623,"item_index":1,"menu_item_id":95} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6623,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6623}} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6623,"item_index":2,"menu_item_id":62} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6623,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6623}} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6623,"item_index":3,"menu_item_id":50} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6623,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6623}} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6623,"item_index":4,"menu_item_id":396} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6623,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6623}} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6623,"item_index":5,"menu_item_id":61} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6623,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6623}} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6623,"item_index":6,"menu_item_id":56} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6623,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6623}} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6623,"item_index":7,"menu_item_id":5} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6623,"item_index":8,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6623}} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6623,"item_index":8,"menu_item_id":2} 
[2026-03-31 18:30:14] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6616,"new_order_id":6623,"order_number":"AZS-310326-014"} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6609,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":31405},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":31406},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":31407},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31408},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31409},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":31410},{"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null,"id":31411},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":31412},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31413},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31405,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"id":31406,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":31407,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":31408,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31409,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31410,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":31411,"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null},{"id":31412,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":31413,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6609,"items_count":10} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31405,"menu_item_id":63,"quantity":1},{"id":31406,"menu_item_id":64,"quantity":1},{"id":31407,"menu_item_id":113,"quantity":1},{"id":31408,"menu_item_id":61,"quantity":1},{"id":31409,"menu_item_id":56,"quantity":1},{"id":31410,"menu_item_id":50,"quantity":1},{"id":31411,"menu_item_id":55,"quantity":1},{"id":31412,"menu_item_id":396,"quantity":2},{"id":31413,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6609,"has_item_changes":true,"old_items_count":9,"new_items_count":10,"old_items_map_keys":["63|1|","64|1|","113|1|","61|1|","56|1|","50|1|","55|1|","396|2|","5|1|"],"new_items_map_keys":["63|1|","64|1|","113|1|","61|1|","56|1|","50|1|","55|1|","396|2|","5|1|","3|1|"]} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6609,"order_number":"AZS-310326-012"} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-012","replaced_order_id":6609} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6624,"items_count":10,"items":[{"menu_item_id":63,"quantity":1,"price":"1099.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":55,"quantity":1,"price":"159.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6624,"item_index":0,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6624}} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6624,"item_index":0,"menu_item_id":63} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6624,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6624}} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6624,"item_index":1,"menu_item_id":64} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6624,"item_index":2,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6624}} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6624,"item_index":2,"menu_item_id":113} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6624,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6624}} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6624,"item_index":3,"menu_item_id":61} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6624,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6624}} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6624,"item_index":4,"menu_item_id":56} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6624,"item_index":5,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6624}} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6624,"item_index":5,"menu_item_id":50} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6624,"item_index":6,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6624}} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6624,"item_index":6,"menu_item_id":55} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6624,"item_index":7,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6624}} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6624,"item_index":7,"menu_item_id":396} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6624,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6624}} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6624,"item_index":8,"menu_item_id":5} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6624,"item_index":9,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6624}} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6624,"item_index":9,"menu_item_id":3} 
[2026-03-31 18:30:37] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6609,"new_order_id":6624,"order_number":"AZS-310326-012"} 
[2026-03-31 18:33:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6621,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":31461},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31462},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31463},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31464},{"menu_item_id":286,"quantity":10,"price":15,"discount_percent":0,"notes":null,"id":31465},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31466},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31467},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":31468}],"validated_items":[{"id":31461,"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":31462,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31463,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31464,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31465,"menu_item_id":286,"quantity":10,"price":15,"discount_percent":0,"notes":null},{"id":31466,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31467,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31468,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-31 18:33:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6621,"items_count":8} 
[2026-03-31 18:33:03] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31461,"menu_item_id":113,"quantity":2},{"id":31462,"menu_item_id":98,"quantity":1},{"id":31463,"menu_item_id":96,"quantity":1},{"id":31464,"menu_item_id":61,"quantity":2},{"id":31465,"menu_item_id":286,"quantity":10},{"id":31466,"menu_item_id":5,"quantity":1},{"id":31467,"menu_item_id":56,"quantity":2},{"id":31468,"menu_item_id":3,"quantity":2}]} 
[2026-03-31 18:33:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6621,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["113|2|","98|1|","96|1|","61|2|","286|10|","5|1|","56|2|","3|2|"],"new_items_map_keys":["113|2|","98|1|","96|1|","61|2|","286|10|","5|1|","56|2|","3|2|"]} 
[2026-03-31 18:33:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6621,"order_number":"AZS-310326-011"} 
[2026-03-31 18:33:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6621,"order_number":"AZS-310326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-31 18:33:03"} 
[2026-03-31 18:35:49] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6621,"order_number":"AZS-310326-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 18:35:49"} 
[2026-03-31 18:35:49] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6621,"order_number":"AZS-310326-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 18:35:49"} 
[2026-03-31 18:35:49] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6621,"order_number":"AZS-310326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 18:35:49"} 
[2026-03-31 18:35:49] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6621,"order_number":"AZS-310326-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 18:35:49"} 
[2026-03-31 18:35:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6621,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":31461},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31462},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31463},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31464},{"menu_item_id":286,"quantity":10,"price":15,"discount_percent":0,"notes":null,"id":31465},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31466},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31467},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":31468}],"validated_items":[{"id":31461,"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":31462,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31463,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31464,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31465,"menu_item_id":286,"quantity":10,"price":15,"discount_percent":0,"notes":null},{"id":31466,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31467,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31468,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-31 18:35:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6621,"items_count":8} 
[2026-03-31 18:35:49] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31461,"menu_item_id":113,"quantity":2},{"id":31462,"menu_item_id":98,"quantity":1},{"id":31463,"menu_item_id":96,"quantity":1},{"id":31464,"menu_item_id":61,"quantity":2},{"id":31465,"menu_item_id":286,"quantity":10},{"id":31466,"menu_item_id":5,"quantity":1},{"id":31467,"menu_item_id":56,"quantity":2},{"id":31468,"menu_item_id":3,"quantity":2}]} 
[2026-03-31 18:35:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6621,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["113|2|","98|1|","96|1|","61|2|","286|10|","5|1|","56|2|","3|2|"],"new_items_map_keys":["113|2|","98|1|","96|1|","61|2|","286|10|","5|1|","56|2|","3|2|"]} 
[2026-03-31 18:35:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6621,"order_number":"AZS-310326-011"} 
[2026-03-31 18:35:49] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6621,"order_number":"AZS-310326-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":6500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-31 18:35:49","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-31 18:35:49"} 
[2026-03-31 18:35:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6621,"order_number":"AZS-310326-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-31 18:35:49"} 
[2026-03-31 18:35:49] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6621,"order_number":"AZS-310326-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"6500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-31 18:35:49","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"6500.00","database_verification_match":true,"timestamp":"2026-03-31 18:35:49"} 
[2026-03-31 18:36:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6619,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31457}],"validated_items":[{"id":31457,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-31 18:36:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6619,"items_count":1} 
[2026-03-31 18:36:08] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31457,"menu_item_id":6,"quantity":2}]} 
[2026-03-31 18:36:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6619,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-31 18:36:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6619,"order_number":"AZS-310326-016"} 
[2026-03-31 18:36:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6619,"order_number":"AZS-310326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-31 18:36:08"} 
[2026-03-31 18:40:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6622,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31469},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":31470},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31471},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":31472}],"validated_items":[{"id":31469,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31470,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":31471,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":31472,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-31 18:40:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6622,"items_count":4} 
[2026-03-31 18:40:42] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31469,"menu_item_id":113,"quantity":1},{"id":31470,"menu_item_id":396,"quantity":1},{"id":31471,"menu_item_id":3,"quantity":1},{"id":31472,"menu_item_id":50,"quantity":1}]} 
[2026-03-31 18:40:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6622,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","396|1|","3|1|","50|1|"],"new_items_map_keys":["113|1|","396|1|","3|1|","50|1|"]} 
[2026-03-31 18:40:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6622,"order_number":"AZS-310326-013"} 
[2026-03-31 18:40:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6622,"order_number":"AZS-310326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-31 18:40:42"} 
[2026-03-31 18:41:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T06:41:48.337Z","date_to":"2026-03-31T18:41:48.337Z","per_page":"100"} 
[2026-03-31 18:41:49] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T06:41:48.322Z","date_to":"2026-03-31T18:41:48.322Z","per_page":"100"} 
[2026-03-31 18:41:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","paid","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending","pending","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":6,"unique_order_numbers":16} 
[2026-03-31 18:41:49] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","paid","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending","pending","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":6,"unique_order_numbers":16} 
[2026-03-31 18:41:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T06:41:48.322Z","date_to":"2026-03-31T18:41:48.322Z","per_page":"100"} 
[2026-03-31 18:41:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","paid","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending","pending","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":6,"unique_order_numbers":16} 
[2026-03-31 18:43:48] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6619,"order_number":"AZS-310326-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 18:43:48"} 
[2026-03-31 18:43:48] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6619,"order_number":"AZS-310326-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 18:43:48"} 
[2026-03-31 18:43:48] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6619,"order_number":"AZS-310326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 18:43:48"} 
[2026-03-31 18:43:48] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6619,"order_number":"AZS-310326-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 18:43:48"} 
[2026-03-31 18:43:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6619,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31457}],"validated_items":[{"id":31457,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-31 18:43:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6619,"items_count":1} 
[2026-03-31 18:43:48] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31457,"menu_item_id":6,"quantity":2}]} 
[2026-03-31 18:43:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6619,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-03-31 18:43:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6619,"order_number":"AZS-310326-016"} 
[2026-03-31 18:43:48] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6619,"order_number":"AZS-310326-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-31 18:43:48","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-31 18:43:48"} 
[2026-03-31 18:43:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6619,"order_number":"AZS-310326-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-31 18:43:48"} 
[2026-03-31 18:43:48] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6619,"order_number":"AZS-310326-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-31 18:43:48","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-31 18:43:48"} 
[2026-03-31 18:44:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6624,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":31482},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":31483},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31484},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31485},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31486},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":31487},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":31488},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31489},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31490},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31491}],"validated_items":[{"id":31482,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":31483,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":31484,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31485,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31486,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31487,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":31488,"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":31489,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":31490,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31491,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-31 18:44:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6624,"items_count":10} 
[2026-03-31 18:44:03] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31482,"menu_item_id":63,"quantity":1},{"id":31483,"menu_item_id":64,"quantity":1},{"id":31484,"menu_item_id":113,"quantity":1},{"id":31485,"menu_item_id":61,"quantity":1},{"id":31486,"menu_item_id":56,"quantity":1},{"id":31487,"menu_item_id":50,"quantity":1},{"id":31488,"menu_item_id":55,"quantity":1},{"id":31489,"menu_item_id":396,"quantity":2},{"id":31490,"menu_item_id":5,"quantity":1},{"id":31491,"menu_item_id":3,"quantity":1}]} 
[2026-03-31 18:44:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6624,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["63|1|","64|1|","113|1|","61|1|","56|1|","50|1|","55|1|","396|2|","5|1|","3|1|"],"new_items_map_keys":["63|1|","64|1|","113|1|","61|1|","56|1|","50|1|","55|1|","396|2|","5|1|","3|1|"]} 
[2026-03-31 18:44:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6624,"order_number":"AZS-310326-012"} 
[2026-03-31 18:44:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6624,"order_number":"AZS-310326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-31 18:44:03"} 
[2026-03-31 18:44:52] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6622,"order_number":"AZS-310326-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1800,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 18:44:52"} 
[2026-03-31 18:44:52] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6622,"order_number":"AZS-310326-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1800,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 18:44:52"} 
[2026-03-31 18:44:52] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6622,"order_number":"AZS-310326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1800,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 18:44:52"} 
[2026-03-31 18:44:52] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6622,"order_number":"AZS-310326-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1800,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 18:44:52"} 
[2026-03-31 18:44:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6622,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31469},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":31470},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31471},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":31472}],"validated_items":[{"id":31469,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31470,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":31471,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":31472,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null}]} 
[2026-03-31 18:44:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6622,"items_count":4} 
[2026-03-31 18:44:52] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31469,"menu_item_id":113,"quantity":1},{"id":31470,"menu_item_id":396,"quantity":1},{"id":31471,"menu_item_id":3,"quantity":1},{"id":31472,"menu_item_id":50,"quantity":1}]} 
[2026-03-31 18:44:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6622,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","396|1|","3|1|","50|1|"],"new_items_map_keys":["113|1|","396|1|","3|1|","50|1|"]} 
[2026-03-31 18:44:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6622,"order_number":"AZS-310326-013"} 
[2026-03-31 18:44:52] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6622,"order_number":"AZS-310326-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1800,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-31 18:44:52","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-31 18:44:52"} 
[2026-03-31 18:44:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6622,"order_number":"AZS-310326-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-31 18:44:52"} 
[2026-03-31 18:44:52] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6622,"order_number":"AZS-310326-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1800.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-31 18:44:52","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1800,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1800.00","database_verification_match":true,"timestamp":"2026-03-31 18:44:52"} 
[2026-03-31 18:45:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6623,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":31473},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":31474},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":31475},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":31476},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":31477},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31478},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31479},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31480},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":31481}],"validated_items":[{"id":31473,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":31474,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":31475,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":31476,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":31477,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":31478,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31479,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31480,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31481,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-31 18:45:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6623,"items_count":9} 
[2026-03-31 18:45:01] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31473,"menu_item_id":403,"quantity":1},{"id":31474,"menu_item_id":95,"quantity":1},{"id":31475,"menu_item_id":62,"quantity":1},{"id":31476,"menu_item_id":50,"quantity":2},{"id":31477,"menu_item_id":396,"quantity":1},{"id":31478,"menu_item_id":61,"quantity":1},{"id":31479,"menu_item_id":56,"quantity":1},{"id":31480,"menu_item_id":5,"quantity":1},{"id":31481,"menu_item_id":2,"quantity":3}]} 
[2026-03-31 18:45:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6623,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["403|1|","95|1|","62|1|","50|2|","396|1|","61|1|","56|1|","5|1|","2|3|"],"new_items_map_keys":["403|1|","95|1|","62|1|","50|2|","396|1|","61|1|","56|1|","5|1|","2|3|"]} 
[2026-03-31 18:45:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6623,"order_number":"AZS-310326-014"} 
[2026-03-31 18:45:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6623,"order_number":"AZS-310326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-31 18:45:01"} 
[2026-03-31 18:51:03] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6588,"order_number":"AZS-310326-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1199,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 18:51:03"} 
[2026-03-31 18:51:03] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6588,"order_number":"AZS-310326-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1199,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 18:51:03"} 
[2026-03-31 18:51:03] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6588,"order_number":"AZS-310326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1199,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 18:51:03"} 
[2026-03-31 18:51:03] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6588,"order_number":"AZS-310326-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1199,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 18:51:03"} 
[2026-03-31 18:51:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6588,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31304}],"validated_items":[{"id":31304,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null}]} 
[2026-03-31 18:51:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6588,"items_count":1} 
[2026-03-31 18:51:03] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31304,"menu_item_id":96,"quantity":1}]} 
[2026-03-31 18:51:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6588,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["96|1|"],"new_items_map_keys":["96|1|"]} 
[2026-03-31 18:51:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6588,"order_number":"AZS-310326-002"} 
[2026-03-31 18:51:03] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6588,"order_number":"AZS-310326-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1199,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-31 18:51:03","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-31 18:51:03"} 
[2026-03-31 18:51:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6588,"order_number":"AZS-310326-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-31 18:51:03"} 
[2026-03-31 18:51:03] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6588,"order_number":"AZS-310326-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1199.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-31 18:51:03","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1199,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1199.00","database_verification_match":true,"timestamp":"2026-03-31 18:51:03"} 
[2026-03-31 18:51:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T06:51:12.450Z","date_to":"2026-03-31T18:51:12.450Z","per_page":"100"} 
[2026-03-31 18:51:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T06:51:12.463Z","date_to":"2026-03-31T18:51:12.463Z","per_page":"100"} 
[2026-03-31 18:51:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":3,"unique_order_numbers":16} 
[2026-03-31 18:51:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":3,"unique_order_numbers":16} 
[2026-03-31 18:51:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T06:51:12.450Z","date_to":"2026-03-31T18:51:12.450Z","per_page":"100"} 
[2026-03-31 18:51:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["paid","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":3,"unique_order_numbers":16} 
[2026-03-31 18:51:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6624,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":31482},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":31483},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31484},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31485},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31486},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":31487},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":31488},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31489},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31490},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31491}],"validated_items":[{"id":31482,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":31483,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":31484,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31485,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31486,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31487,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":31488,"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":31489,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":31490,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31491,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-31 18:51:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6624,"items_count":10} 
[2026-03-31 18:51:26] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31482,"menu_item_id":63,"quantity":1},{"id":31483,"menu_item_id":64,"quantity":1},{"id":31484,"menu_item_id":113,"quantity":1},{"id":31485,"menu_item_id":61,"quantity":1},{"id":31486,"menu_item_id":56,"quantity":1},{"id":31487,"menu_item_id":50,"quantity":1},{"id":31488,"menu_item_id":55,"quantity":1},{"id":31489,"menu_item_id":396,"quantity":2},{"id":31490,"menu_item_id":5,"quantity":1},{"id":31491,"menu_item_id":3,"quantity":1}]} 
[2026-03-31 18:51:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6624,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["63|1|","64|1|","113|1|","61|1|","56|1|","50|1|","55|1|","396|2|","5|1|","3|1|"],"new_items_map_keys":["63|1|","64|1|","113|1|","61|1|","56|1|","50|1|","55|1|","396|2|","5|1|","3|1|"]} 
[2026-03-31 18:51:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6624,"order_number":"AZS-310326-012"} 
[2026-03-31 18:51:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6624,"order_number":"AZS-310326-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-31 18:51:26"} 
[2026-03-31 18:52:05] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6624,"order_number":"AZS-310326-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 18:52:05"} 
[2026-03-31 18:52:05] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6624,"order_number":"AZS-310326-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 18:52:05"} 
[2026-03-31 18:52:05] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6624,"order_number":"AZS-310326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 18:52:05"} 
[2026-03-31 18:52:05] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6624,"order_number":"AZS-310326-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 18:52:05"} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":1,"order_id":6624,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":31482},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":31483},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31484},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31486},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":31487},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":31488},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31489},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31490},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31491}],"validated_items":[{"id":31482,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":31483,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":31484,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31486,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31487,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":31488,"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":31489,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":31490,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31491,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6624,"items_count":9} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":1,"items_to_remove":[31485],"items":[{"id":31482,"menu_item_id":63,"quantity":1},{"id":31483,"menu_item_id":64,"quantity":1},{"id":31484,"menu_item_id":113,"quantity":1},{"id":31486,"menu_item_id":56,"quantity":1},{"id":31487,"menu_item_id":50,"quantity":1},{"id":31488,"menu_item_id":55,"quantity":1},{"id":31489,"menu_item_id":396,"quantity":2},{"id":31490,"menu_item_id":5,"quantity":1},{"id":31491,"menu_item_id":3,"quantity":1}]} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6624,"has_item_changes":true,"old_items_count":10,"new_items_count":9,"old_items_map_keys":["63|1|","64|1|","113|1|","61|1|","56|1|","50|1|","55|1|","396|2|","5|1|","3|1|"],"new_items_map_keys":["63|1|","64|1|","113|1|","56|1|","50|1|","55|1|","396|2|","5|1|","3|1|"]} 
[2026-03-31 18:52:05] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6624,"order_number":"AZS-310326-012","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-31 18:52:05","original_payment_amount":"0.00","grand_total":4422.0,"timestamp":"2026-03-31 18:52:05"} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6624,"order_number":"AZS-310326-012"} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-012","replaced_order_id":6624} 
[2026-03-31 18:52:05] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6624,"new_order_id":6625,"order_number":"AZS-310326-012","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-31 18:52:05","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-31 18:52:05"} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6625,"items_count":9,"items":[{"menu_item_id":63,"quantity":1,"price":1099.0},{"menu_item_id":64,"quantity":1,"price":999.0},{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":50,"quantity":1,"price":129.0},{"menu_item_id":55,"quantity":1,"price":159.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6625,"item_index":0,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":1099.0,"discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6625}} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6625,"item_index":0,"menu_item_id":63} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6625,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":999.0,"discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6625}} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6625,"item_index":1,"menu_item_id":64} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6625,"item_index":2,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6625}} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6625,"item_index":2,"menu_item_id":113} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6625,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6625}} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6625,"item_index":3,"menu_item_id":56} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6625,"item_index":4,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6625}} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6625,"item_index":4,"menu_item_id":50} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6625,"item_index":5,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":1,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6625}} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6625,"item_index":5,"menu_item_id":55} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6625,"item_index":6,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6625}} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6625,"item_index":6,"menu_item_id":396} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6625,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6625}} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6625,"item_index":7,"menu_item_id":5} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6625,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6625}} 
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6625,"item_index":8,"menu_item_id":3} 
[2026-03-31 18:52:05] local.ERROR: Error tracking recipe usage for order 6625: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6625, 63, 17, 1, 5000, 0.00, Order #AZS-310326-012 - 1x Chicken Tikka Boti (10 pcs), 2026-03-31 18:52:05, 2026-03-31 18:52:05))  
[2026-03-31 18:52:05] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6624,"new_order_id":6625,"order_number":"AZS-310326-012"} 
[2026-03-31 18:52:06] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6624,"new_order_id":6625,"order_number":"AZS-310326-012","route":"api/orders/6624"} 
[2026-03-31 18:52:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T06:52:38.071Z","date_to":"2026-03-31T18:52:38.071Z","per_page":"100"} 
[2026-03-31 18:52:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T06:52:38.080Z","date_to":"2026-03-31T18:52:38.080Z","per_page":"100"} 
[2026-03-31 18:52:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":2,"unique_order_numbers":16} 
[2026-03-31 18:52:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":2,"unique_order_numbers":16} 
[2026-03-31 18:52:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T06:52:38.071Z","date_to":"2026-03-31T18:52:38.071Z","per_page":"100"} 
[2026-03-31 18:52:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":2,"unique_order_numbers":16} 
[2026-03-31 18:52:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6623,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":31473},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":31474},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":31475},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":31476},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":31477},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31478},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31479},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31480},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":31481}],"validated_items":[{"id":31473,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":31474,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":31475,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":31476,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":31477,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":31478,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31479,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31480,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31481,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-31 18:52:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6623,"items_count":9} 
[2026-03-31 18:52:46] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31473,"menu_item_id":403,"quantity":1},{"id":31474,"menu_item_id":95,"quantity":1},{"id":31475,"menu_item_id":62,"quantity":1},{"id":31476,"menu_item_id":50,"quantity":2},{"id":31477,"menu_item_id":396,"quantity":1},{"id":31478,"menu_item_id":61,"quantity":1},{"id":31479,"menu_item_id":56,"quantity":1},{"id":31480,"menu_item_id":5,"quantity":1},{"id":31481,"menu_item_id":2,"quantity":3}]} 
[2026-03-31 18:52:46] local.INFO: PosOrderController::update - Item changes check {"order_id":6623,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["403|1|","95|1|","62|1|","50|2|","396|1|","61|1|","56|1|","5|1|","2|3|"],"new_items_map_keys":["403|1|","95|1|","62|1|","50|2|","396|1|","61|1|","56|1|","5|1|","2|3|"]} 
[2026-03-31 18:52:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6623,"order_number":"AZS-310326-014"} 
[2026-03-31 18:52:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6623,"order_number":"AZS-310326-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-31 18:52:46"} 
[2026-03-31 18:53:26] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6623,"order_number":"AZS-310326-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 18:53:26"} 
[2026-03-31 18:53:26] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6623,"order_number":"AZS-310326-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 18:53:26"} 
[2026-03-31 18:53:26] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6623,"order_number":"AZS-310326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 18:53:26"} 
[2026-03-31 18:53:26] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6623,"order_number":"AZS-310326-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 18:53:26"} 
[2026-03-31 18:53:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":1,"order_id":6623,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":31473},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":31474},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":31475},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":31476},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":31477},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31478},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31480},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":31481}],"validated_items":[{"id":31473,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":31474,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":31475,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":31476,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":31477,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":31478,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31480,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31481,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-03-31 18:53:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6623,"items_count":8} 
[2026-03-31 18:53:26] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":1,"items_to_remove":[31479],"items":[{"id":31473,"menu_item_id":403,"quantity":1},{"id":31474,"menu_item_id":95,"quantity":1},{"id":31475,"menu_item_id":62,"quantity":1},{"id":31476,"menu_item_id":50,"quantity":2},{"id":31477,"menu_item_id":396,"quantity":1},{"id":31478,"menu_item_id":61,"quantity":1},{"id":31480,"menu_item_id":5,"quantity":1},{"id":31481,"menu_item_id":2,"quantity":3}]} 
[2026-03-31 18:53:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6623,"has_item_changes":true,"old_items_count":9,"new_items_count":8,"old_items_map_keys":["403|1|","95|1|","62|1|","50|2|","396|1|","61|1|","56|1|","5|1|","2|3|"],"new_items_map_keys":["403|1|","95|1|","62|1|","50|2|","396|1|","61|1|","5|1|","2|3|"]} 
[2026-03-31 18:53:26] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6623,"order_number":"AZS-310326-014","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5500,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-03-31 18:53:26","original_payment_amount":"0.00","grand_total":5211.0,"timestamp":"2026-03-31 18:53:26"} 
[2026-03-31 18:53:26] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6623,"order_number":"AZS-310326-014"} 
[2026-03-31 18:53:26] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-014","replaced_order_id":6623} 
[2026-03-31 18:53:26] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6623,"new_order_id":6626,"order_number":"AZS-310326-014","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5500.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-03-31 18:53:26","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-03-31 18:53:26"} 
[2026-03-31 18:53:26] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6626,"items_count":8,"items":[{"menu_item_id":403,"quantity":1,"price":349.0},{"menu_item_id":95,"quantity":1,"price":1999.0},{"menu_item_id":62,"quantity":1,"price":1499.0},{"menu_item_id":50,"quantity":2,"price":129.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":2,"quantity":3,"price":130.0}]} 
[2026-03-31 18:53:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6626,"item_index":0,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":349.0,"discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6626}} 
[2026-03-31 18:53:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6626,"item_index":0,"menu_item_id":403} 
[2026-03-31 18:53:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6626,"item_index":1,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":1999.0,"discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6626}} 
[2026-03-31 18:53:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6626,"item_index":1,"menu_item_id":95} 
[2026-03-31 18:53:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6626,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":1499.0,"discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6626}} 
[2026-03-31 18:53:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6626,"item_index":2,"menu_item_id":62} 
[2026-03-31 18:53:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6626,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6626}} 
[2026-03-31 18:53:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6626,"item_index":3,"menu_item_id":50} 
[2026-03-31 18:53:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6626,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6626}} 
[2026-03-31 18:53:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6626,"item_index":4,"menu_item_id":396} 
[2026-03-31 18:53:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6626,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6626}} 
[2026-03-31 18:53:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6626,"item_index":5,"menu_item_id":61} 
[2026-03-31 18:53:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6626,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6626}} 
[2026-03-31 18:53:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6626,"item_index":6,"menu_item_id":5} 
[2026-03-31 18:53:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6626,"item_index":7,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6626}} 
[2026-03-31 18:53:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6626,"item_index":7,"menu_item_id":2} 
[2026-03-31 18:53:26] local.ERROR: Error tracking recipe usage for order 6626: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6626, 95, 184, 1, 500, 0.00, Order #AZS-310326-014 - 1x Chicken Makhni Handi, 2026-03-31 18:53:26, 2026-03-31 18:53:26))  
[2026-03-31 18:53:26] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6623,"new_order_id":6626,"order_number":"AZS-310326-014"} 
[2026-03-31 18:53:27] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6623,"new_order_id":6626,"order_number":"AZS-310326-014","route":"api/orders/6623"} 
[2026-03-31 18:53:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T06:53:47.043Z","date_to":"2026-03-31T18:53:47.043Z","per_page":"100"} 
[2026-03-31 18:53:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T06:53:47.059Z","date_to":"2026-03-31T18:53:47.059Z","per_page":"100"} 
[2026-03-31 18:53:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":1,"unique_order_numbers":16} 
[2026-03-31 18:53:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":1,"unique_order_numbers":16} 
[2026-03-31 18:53:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T06:53:47.043Z","date_to":"2026-03-31T18:53:47.043Z","per_page":"100"} 
[2026-03-31 18:53:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":1,"unique_order_numbers":16} 
[2026-03-31 18:54:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T06:54:13.463Z","date_to":"2026-03-31T18:54:13.463Z","per_page":"100"} 
[2026-03-31 18:54:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":1,"unique_order_numbers":16} 
[2026-03-31 18:54:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T06:54:34.369Z","date_to":"2026-03-31T18:54:34.369Z","per_page":"100"} 
[2026-03-31 18:54:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":1,"unique_order_numbers":16} 
[2026-03-31 18:54:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T06:54:34.352Z","date_to":"2026-03-31T18:54:34.352Z","per_page":"100"} 
[2026-03-31 18:54:35] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":1,"unique_order_numbers":16} 
[2026-03-31 18:54:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T06:54:34.352Z","date_to":"2026-03-31T18:54:34.352Z","per_page":"100"} 
[2026-03-31 18:54:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":1,"unique_order_numbers":16} 
[2026-03-31 19:12:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T07:12:06.511Z","date_to":"2026-03-31T19:12:06.511Z","per_page":"100"} 
[2026-03-31 19:12:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T07:12:06.495Z","date_to":"2026-03-31T19:12:06.495Z","per_page":"100"} 
[2026-03-31 19:12:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-017","AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":2,"unique_order_numbers":17} 
[2026-03-31 19:12:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-017","AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":2,"unique_order_numbers":17} 
[2026-03-31 19:12:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T07:12:06.495Z","date_to":"2026-03-31T19:12:06.495Z","per_page":"100"} 
[2026-03-31 19:12:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-017","AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":2,"unique_order_numbers":17} 
[2026-03-31 19:33:53] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-31 19:42:37] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-03-31 19:48:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6627,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":31509},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31510},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31511},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31512},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31513},{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":31509,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":31510,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":31511,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31512,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31513,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-03-31 19:48:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6627,"items_count":6} 
[2026-03-31 19:48:49] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31509,"menu_item_id":98,"quantity":1},{"id":31510,"menu_item_id":396,"quantity":3},{"id":31511,"menu_item_id":61,"quantity":1},{"id":31512,"menu_item_id":56,"quantity":1},{"id":31513,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":6,"quantity":3}]} 
[2026-03-31 19:48:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6627,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["98|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["98|1|","396|3|","61|1|","56|1|","5|1|","6|3|"]} 
[2026-03-31 19:48:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6627,"order_number":"AZS-310326-017"} 
[2026-03-31 19:48:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-310326-017","replaced_order_id":6627} 
[2026-03-31 19:48:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6630,"items_count":6,"items":[{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":6,"quantity":3,"price":"199.00"}]} 
[2026-03-31 19:48:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6630,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6630}} 
[2026-03-31 19:48:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6630,"item_index":0,"menu_item_id":98} 
[2026-03-31 19:48:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6630,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6630}} 
[2026-03-31 19:48:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6630,"item_index":1,"menu_item_id":396} 
[2026-03-31 19:48:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6630,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6630}} 
[2026-03-31 19:48:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6630,"item_index":2,"menu_item_id":61} 
[2026-03-31 19:48:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6630,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6630}} 
[2026-03-31 19:48:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6630,"item_index":3,"menu_item_id":56} 
[2026-03-31 19:48:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6630,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6630}} 
[2026-03-31 19:48:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6630,"item_index":4,"menu_item_id":5} 
[2026-03-31 19:48:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6630,"item_index":5,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6630}} 
[2026-03-31 19:48:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6630,"item_index":5,"menu_item_id":6} 
[2026-03-31 19:48:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6627,"new_order_id":6630,"order_number":"AZS-310326-017"} 
[2026-03-31 20:08:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6629,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":31516}],"validated_items":[{"id":31516,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-31 20:08:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6629,"items_count":1} 
[2026-03-31 20:08:36] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31516,"menu_item_id":6,"quantity":3}]} 
[2026-03-31 20:08:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6629,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|3|"],"new_items_map_keys":["6|3|"]} 
[2026-03-31 20:08:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6629,"order_number":"AZS-310326-019"} 
[2026-03-31 20:08:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6629,"order_number":"AZS-310326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-31 20:08:36"} 
[2026-03-31 20:10:34] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6629,"order_number":"AZS-310326-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":650,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 20:10:34"} 
[2026-03-31 20:10:34] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6629,"order_number":"AZS-310326-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":650,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 20:10:34"} 
[2026-03-31 20:10:34] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6629,"order_number":"AZS-310326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":650,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 20:10:34"} 
[2026-03-31 20:10:34] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6629,"order_number":"AZS-310326-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":650,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 20:10:34"} 
[2026-03-31 20:10:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6629,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":31516}],"validated_items":[{"id":31516,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-31 20:10:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6629,"items_count":1} 
[2026-03-31 20:10:34] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31516,"menu_item_id":6,"quantity":3}]} 
[2026-03-31 20:10:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6629,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|3|"],"new_items_map_keys":["6|3|"]} 
[2026-03-31 20:10:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6629,"order_number":"AZS-310326-019"} 
[2026-03-31 20:10:34] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6629,"order_number":"AZS-310326-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":650,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-31 20:10:34","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-31 20:10:34"} 
[2026-03-31 20:10:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6629,"order_number":"AZS-310326-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-31 20:10:34"} 
[2026-03-31 20:10:34] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6629,"order_number":"AZS-310326-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"650.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-31 20:10:34","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":650,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"650.00","database_verification_match":true,"timestamp":"2026-03-31 20:10:34"} 
[2026-03-31 20:10:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6628,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31514},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":31515}],"validated_items":[{"id":31514,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31515,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-31 20:10:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6628,"items_count":2} 
[2026-03-31 20:10:48] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31514,"menu_item_id":6,"quantity":2},{"id":31515,"menu_item_id":286,"quantity":2}]} 
[2026-03-31 20:10:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6628,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|2|","286|2|"],"new_items_map_keys":["6|2|","286|2|"]} 
[2026-03-31 20:10:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6628,"order_number":"AZS-310326-018"} 
[2026-03-31 20:10:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6628,"order_number":"AZS-310326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-31 20:10:48"} 
[2026-03-31 20:12:12] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6628,"order_number":"AZS-310326-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 20:12:12"} 
[2026-03-31 20:12:12] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6628,"order_number":"AZS-310326-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 20:12:12"} 
[2026-03-31 20:12:12] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6628,"order_number":"AZS-310326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 20:12:12"} 
[2026-03-31 20:12:12] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6628,"order_number":"AZS-310326-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 20:12:12"} 
[2026-03-31 20:12:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6628,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31514},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":31515}],"validated_items":[{"id":31514,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31515,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null}]} 
[2026-03-31 20:12:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6628,"items_count":2} 
[2026-03-31 20:12:12] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31514,"menu_item_id":6,"quantity":2},{"id":31515,"menu_item_id":286,"quantity":2}]} 
[2026-03-31 20:12:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6628,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|2|","286|2|"],"new_items_map_keys":["6|2|","286|2|"]} 
[2026-03-31 20:12:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6628,"order_number":"AZS-310326-018"} 
[2026-03-31 20:12:12] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6628,"order_number":"AZS-310326-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-31 20:12:12","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-31 20:12:12"} 
[2026-03-31 20:12:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6628,"order_number":"AZS-310326-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-31 20:12:12"} 
[2026-03-31 20:12:12] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6628,"order_number":"AZS-310326-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-31 20:12:12","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-03-31 20:12:12"} 
[2026-03-31 20:13:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6630,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31517},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":31518},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31519},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31520},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31521},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":31522}],"validated_items":[{"id":31517,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31518,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":31519,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31520,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31521,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31522,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-31 20:13:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6630,"items_count":6} 
[2026-03-31 20:13:18] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31517,"menu_item_id":98,"quantity":1},{"id":31518,"menu_item_id":396,"quantity":3},{"id":31519,"menu_item_id":61,"quantity":1},{"id":31520,"menu_item_id":56,"quantity":1},{"id":31521,"menu_item_id":5,"quantity":1},{"id":31522,"menu_item_id":6,"quantity":3}]} 
[2026-03-31 20:13:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6630,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["98|1|","396|3|","61|1|","56|1|","5|1|","6|3|"],"new_items_map_keys":["98|1|","396|3|","61|1|","56|1|","5|1|","6|3|"]} 
[2026-03-31 20:13:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6630,"order_number":"AZS-310326-017"} 
[2026-03-31 20:13:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6630,"order_number":"AZS-310326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-03-31 20:13:18"} 
[2026-03-31 20:15:49] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6630,"order_number":"AZS-310326-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2800,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 20:15:49"} 
[2026-03-31 20:15:49] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6630,"order_number":"AZS-310326-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2800,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 20:15:49"} 
[2026-03-31 20:15:49] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6630,"order_number":"AZS-310326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2800,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 20:15:49"} 
[2026-03-31 20:15:49] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6630,"order_number":"AZS-310326-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2800,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 20:15:49"} 
[2026-03-31 20:15:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6630,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31517},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":31518},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31519},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31520},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31521},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":31522}],"validated_items":[{"id":31517,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31518,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":31519,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31520,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31521,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31522,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-03-31 20:15:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6630,"items_count":6} 
[2026-03-31 20:15:49] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31517,"menu_item_id":98,"quantity":1},{"id":31518,"menu_item_id":396,"quantity":3},{"id":31519,"menu_item_id":61,"quantity":1},{"id":31520,"menu_item_id":56,"quantity":1},{"id":31521,"menu_item_id":5,"quantity":1},{"id":31522,"menu_item_id":6,"quantity":3}]} 
[2026-03-31 20:15:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6630,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["98|1|","396|3|","61|1|","56|1|","5|1|","6|3|"],"new_items_map_keys":["98|1|","396|3|","61|1|","56|1|","5|1|","6|3|"]} 
[2026-03-31 20:15:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6630,"order_number":"AZS-310326-017"} 
[2026-03-31 20:15:49] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6630,"order_number":"AZS-310326-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2800,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-31 20:15:49","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-31 20:15:49"} 
[2026-03-31 20:15:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6630,"order_number":"AZS-310326-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-31 20:15:49"} 
[2026-03-31 20:15:49] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6630,"order_number":"AZS-310326-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2800.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-31 20:15:49","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2800,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2800.00","database_verification_match":true,"timestamp":"2026-03-31 20:15:49"} 
[2026-03-31 20:17:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T08:17:35.568Z","date_to":"2026-03-31T20:17:35.568Z","per_page":"100"} 
[2026-03-31 20:17:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T08:17:35.588Z","date_to":"2026-03-31T20:17:35.588Z","per_page":"100"} 
[2026-03-31 20:17:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-020","AZS-310326-019","AZS-310326-018","AZS-310326-017","AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":2,"unique_order_numbers":20} 
[2026-03-31 20:17:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-020","AZS-310326-019","AZS-310326-018","AZS-310326-017","AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":2,"unique_order_numbers":20} 
[2026-03-31 20:17:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T08:17:35.568Z","date_to":"2026-03-31T20:17:35.568Z","per_page":"100"} 
[2026-03-31 20:17:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-020","AZS-310326-019","AZS-310326-018","AZS-310326-017","AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":2,"unique_order_numbers":20} 
[2026-03-31 20:25:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6589,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":31305},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":31306},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":31307}],"validated_items":[{"id":31305,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"id":31306,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":31307,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-03-31 20:25:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6589,"items_count":3} 
[2026-03-31 20:25:03] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31305,"menu_item_id":137,"quantity":1},{"id":31306,"menu_item_id":96,"quantity":1},{"id":31307,"menu_item_id":396,"quantity":2}]} 
[2026-03-31 20:25:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6589,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["137|1|","96|1|","396|2|"],"new_items_map_keys":["137|1|","96|1|","396|2|"]} 
[2026-03-31 20:25:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6589,"order_number":"AZS-310326-003"} 
[2026-03-31 20:25:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6589,"order_number":"AZS-310326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-31 20:25:03"} 
[2026-03-31 20:25:14] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6589,"order_number":"AZS-310326-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2696,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 20:25:14"} 
[2026-03-31 20:25:14] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6589,"order_number":"AZS-310326-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2696,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 20:25:14"} 
[2026-03-31 20:25:14] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6589,"order_number":"AZS-310326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2696,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 20:25:14"} 
[2026-03-31 20:25:14] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6589,"order_number":"AZS-310326-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2696,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 20:25:14"} 
[2026-03-31 20:25:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6589,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":31305},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31306},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31307}],"validated_items":[{"id":31305,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":31306,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31307,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null}]} 
[2026-03-31 20:25:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6589,"items_count":3} 
[2026-03-31 20:25:14] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31305,"menu_item_id":137,"quantity":1},{"id":31306,"menu_item_id":96,"quantity":1},{"id":31307,"menu_item_id":396,"quantity":2}]} 
[2026-03-31 20:25:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6589,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["137|1|","96|1|","396|2|"],"new_items_map_keys":["137|1|","96|1|","396|2|"]} 
[2026-03-31 20:25:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6589,"order_number":"AZS-310326-003"} 
[2026-03-31 20:25:14] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6589,"order_number":"AZS-310326-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2696,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-31 20:25:14","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-31 20:25:14"} 
[2026-03-31 20:25:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6589,"order_number":"AZS-310326-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-31 20:25:14"} 
[2026-03-31 20:25:14] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6589,"order_number":"AZS-310326-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2696.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-31 20:25:14","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2696,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2696.00","database_verification_match":true,"timestamp":"2026-03-31 20:25:14"} 
[2026-03-31 20:25:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T08:25:26.626Z","date_to":"2026-03-31T20:25:26.626Z","per_page":"100"} 
[2026-03-31 20:25:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T08:25:26.613Z","date_to":"2026-03-31T20:25:26.613Z","per_page":"100"} 
[2026-03-31 20:25:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-020","AZS-310326-019","AZS-310326-018","AZS-310326-017","AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":1,"unique_order_numbers":20} 
[2026-03-31 20:25:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-020","AZS-310326-019","AZS-310326-018","AZS-310326-017","AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":1,"unique_order_numbers":20} 
[2026-03-31 20:25:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T08:25:26.613Z","date_to":"2026-03-31T20:25:26.613Z","per_page":"100"} 
[2026-03-31 20:25:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-020","AZS-310326-019","AZS-310326-018","AZS-310326-017","AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":1,"unique_order_numbers":20} 
[2026-03-31 20:44:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6631,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":7,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":31523}],"validated_items":[{"id":31523,"menu_item_id":7,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-31 20:44:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6631,"items_count":1} 
[2026-03-31 20:44:20] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31523,"menu_item_id":7,"quantity":1}]} 
[2026-03-31 20:44:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6631,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["7|1|"],"new_items_map_keys":["7|1|"]} 
[2026-03-31 20:44:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6631,"order_number":"AZS-310326-020"} 
[2026-03-31 20:44:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6631,"order_number":"AZS-310326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-03-31 20:44:20"} 
[2026-03-31 20:46:24] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6631,"order_number":"AZS-310326-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":250,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 20:46:24"} 
[2026-03-31 20:46:24] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6631,"order_number":"AZS-310326-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":250,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-03-31 20:46:24"} 
[2026-03-31 20:46:24] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6631,"order_number":"AZS-310326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":250,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 20:46:24"} 
[2026-03-31 20:46:24] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6631,"order_number":"AZS-310326-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":250,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-03-31 20:46:24"} 
[2026-03-31 20:46:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6631,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":7,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":31523}],"validated_items":[{"id":31523,"menu_item_id":7,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-03-31 20:46:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6631,"items_count":1} 
[2026-03-31 20:46:24] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31523,"menu_item_id":7,"quantity":1}]} 
[2026-03-31 20:46:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6631,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["7|1|"],"new_items_map_keys":["7|1|"]} 
[2026-03-31 20:46:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6631,"order_number":"AZS-310326-020"} 
[2026-03-31 20:46:24] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6631,"order_number":"AZS-310326-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":250,"update_data_payment_mode":"cash","update_data_paid_at":"2026-03-31 20:46:24","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-03-31 20:46:24"} 
[2026-03-31 20:46:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6631,"order_number":"AZS-310326-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-03-31 20:46:24"} 
[2026-03-31 20:46:24] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6631,"order_number":"AZS-310326-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"250.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-03-31 20:46:24","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":250,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"250.00","database_verification_match":true,"timestamp":"2026-03-31 20:46:24"} 
[2026-03-31 20:46:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T08:46:32.171Z","date_to":"2026-03-31T20:46:32.171Z","per_page":"100"} 
[2026-03-31 20:46:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T08:46:32.188Z","date_to":"2026-03-31T20:46:32.188Z","per_page":"100"} 
[2026-03-31 20:46:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-020","AZS-310326-019","AZS-310326-018","AZS-310326-017","AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":0,"unique_order_numbers":20} 
[2026-03-31 20:46:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-020","AZS-310326-019","AZS-310326-018","AZS-310326-017","AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":0,"unique_order_numbers":20} 
[2026-03-31 20:46:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-03-31T08:46:32.171Z","date_to":"2026-03-31T20:46:32.171Z","per_page":"100"} 
[2026-03-31 20:46:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-310326-020","AZS-310326-019","AZS-310326-018","AZS-310326-017","AZS-310326-016","AZS-310326-015","AZS-310326-014","AZS-310326-013","AZS-310326-012","AZS-310326-011","AZS-310326-010","AZS-310326-009","AZS-310326-008","AZS-310326-007","AZS-310326-006","AZS-310326-005","AZS-310326-004","AZS-310326-003","AZS-310326-002","AZS-310326-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":0,"unique_order_numbers":20} 
[2026-04-01 12:54:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T00:54:25.705Z","date_to":"2026-04-01T12:54:25.705Z","per_page":"100"} 
[2026-04-01 12:54:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T00:54:25.734Z","date_to":"2026-04-01T12:54:25.734Z","per_page":"100"} 
[2026-04-01 12:54:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-04-01 12:54:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-04-01 12:54:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T00:54:25.705Z","date_to":"2026-04-01T12:54:25.705Z","per_page":"100"} 
[2026-04-01 12:54:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-04-01 14:27:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6632,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":31524},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31525}],"validated_items":[{"id":31524,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":31525,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null}]} 
[2026-04-01 14:27:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6632,"items_count":2} 
[2026-04-01 14:27:39] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31524,"menu_item_id":106,"quantity":1},{"id":31525,"menu_item_id":105,"quantity":1}]} 
[2026-04-01 14:27:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6632,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["106|1|","105|1|"],"new_items_map_keys":["106|1|","105|1|"]} 
[2026-04-01 14:27:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6632,"order_number":"AZS-010426-001"} 
[2026-04-01 14:27:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6632,"order_number":"AZS-010426-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-04-01 14:27:39"} 
[2026-04-01 14:50:51] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6632,"order_number":"AZS-010426-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 14:50:51"} 
[2026-04-01 14:50:51] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6632,"order_number":"AZS-010426-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 14:50:51"} 
[2026-04-01 14:50:51] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6632,"order_number":"AZS-010426-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 14:50:51"} 
[2026-04-01 14:50:51] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6632,"order_number":"AZS-010426-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 14:50:51"} 
[2026-04-01 14:50:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6632,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":31524},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31525}],"validated_items":[{"id":31524,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":31525,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null}]} 
[2026-04-01 14:50:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6632,"items_count":2} 
[2026-04-01 14:50:51] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31524,"menu_item_id":106,"quantity":1},{"id":31525,"menu_item_id":105,"quantity":1}]} 
[2026-04-01 14:50:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6632,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["106|1|","105|1|"],"new_items_map_keys":["106|1|","105|1|"]} 
[2026-04-01 14:50:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6632,"order_number":"AZS-010426-001"} 
[2026-04-01 14:50:51] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6632,"order_number":"AZS-010426-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":10000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-01 14:50:51","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-01 14:50:51"} 
[2026-04-01 14:50:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6632,"order_number":"AZS-010426-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-01 14:50:51"} 
[2026-04-01 14:50:51] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6632,"order_number":"AZS-010426-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"10000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-01 14:50:51","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"10000.00","database_verification_match":true,"timestamp":"2026-04-01 14:50:51"} 
[2026-04-01 14:57:18] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-04-01 15:06:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6635,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"discount_percent":0,"notes":null,"id":31533},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31534},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31535},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31536},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31537},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31533,"menu_item_id":100,"quantity":1,"discount_percent":0,"notes":null},{"id":31534,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":31535,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31536,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31537,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-01 15:06:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6635,"items_count":6} 
[2026-04-01 15:06:03] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31533,"menu_item_id":100,"quantity":1},{"id":31534,"menu_item_id":396,"quantity":3},{"id":31535,"menu_item_id":61,"quantity":1},{"id":31536,"menu_item_id":56,"quantity":1},{"id":31537,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":64,"quantity":1}]} 
[2026-04-01 15:06:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6635,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["100|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["100|1|","396|3|","61|1|","56|1|","5|1|","64|1|"]} 
[2026-04-01 15:06:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6635,"order_number":"AZS-010426-004"} 
[2026-04-01 15:06:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-004","replaced_order_id":6635} 
[2026-04-01 15:06:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6636,"items_count":6,"items":[{"menu_item_id":100,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"}]} 
[2026-04-01 15:06:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6636,"item_index":0,"item_data":{"menu_item_id":100,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Half","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6636}} 
[2026-04-01 15:06:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6636,"item_index":0,"menu_item_id":100} 
[2026-04-01 15:06:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6636,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6636}} 
[2026-04-01 15:06:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6636,"item_index":1,"menu_item_id":396} 
[2026-04-01 15:06:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6636,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6636}} 
[2026-04-01 15:06:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6636,"item_index":2,"menu_item_id":61} 
[2026-04-01 15:06:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6636,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6636}} 
[2026-04-01 15:06:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6636,"item_index":3,"menu_item_id":56} 
[2026-04-01 15:06:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6636,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6636}} 
[2026-04-01 15:06:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6636,"item_index":4,"menu_item_id":5} 
[2026-04-01 15:06:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6636,"item_index":5,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6636}} 
[2026-04-01 15:06:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6636,"item_index":5,"menu_item_id":64} 
[2026-04-01 15:06:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6635,"new_order_id":6636,"order_number":"AZS-010426-004"} 
[2026-04-01 15:07:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6633,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":31526},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":31527},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31528},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null,"id":31529},{"menu_item_id":29,"quantity":3,"discount_percent":0,"notes":null,"id":31530},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":31531}],"validated_items":[{"id":31526,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":31527,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"id":31528,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31529,"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null},{"id":31530,"menu_item_id":29,"quantity":3,"discount_percent":0,"notes":null},{"id":31531,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-01 15:07:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6633,"items_count":6} 
[2026-04-01 15:07:25] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31526,"menu_item_id":62,"quantity":1},{"id":31527,"menu_item_id":63,"quantity":1},{"id":31528,"menu_item_id":61,"quantity":1},{"id":31529,"menu_item_id":4,"quantity":1},{"id":31530,"menu_item_id":29,"quantity":3},{"id":31531,"menu_item_id":396,"quantity":1}]} 
[2026-04-01 15:07:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6633,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["62|1|","63|1|","61|1|","4|1|","29|2|","396|1|"],"new_items_map_keys":["62|1|","63|1|","61|1|","4|1|","29|3|","396|1|"]} 
[2026-04-01 15:07:25] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6633,"order_number":"AZS-010426-002"} 
[2026-04-01 15:07:25] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-002","replaced_order_id":6633} 
[2026-04-01 15:07:25] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6637,"items_count":6,"items":[{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":63,"quantity":1,"price":"1099.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"},{"menu_item_id":29,"quantity":3,"price":"250.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"}]} 
[2026-04-01 15:07:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6637,"item_index":0,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6637}} 
[2026-04-01 15:07:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6637,"item_index":0,"menu_item_id":62} 
[2026-04-01 15:07:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6637,"item_index":1,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6637}} 
[2026-04-01 15:07:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6637,"item_index":1,"menu_item_id":63} 
[2026-04-01 15:07:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6637,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6637}} 
[2026-04-01 15:07:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6637,"item_index":2,"menu_item_id":61} 
[2026-04-01 15:07:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6637,"item_index":3,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6637}} 
[2026-04-01 15:07:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6637,"item_index":3,"menu_item_id":4} 
[2026-04-01 15:07:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6637,"item_index":4,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":3,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":750.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6637}} 
[2026-04-01 15:07:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6637,"item_index":4,"menu_item_id":29} 
[2026-04-01 15:07:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6637,"item_index":5,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6637}} 
[2026-04-01 15:07:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6637,"item_index":5,"menu_item_id":396} 
[2026-04-01 15:07:25] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6633,"new_order_id":6637,"order_number":"AZS-010426-002"} 
[2026-04-01 15:10:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6637,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":31544},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":31545},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31546},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":31547},{"menu_item_id":29,"quantity":3,"price":250,"discount_percent":0,"notes":null,"id":31548},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":31549}],"validated_items":[{"id":31544,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":31545,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":31546,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31547,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"id":31548,"menu_item_id":29,"quantity":3,"price":250,"discount_percent":0,"notes":null},{"id":31549,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-04-01 15:10:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6637,"items_count":6} 
[2026-04-01 15:10:02] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31544,"menu_item_id":62,"quantity":1},{"id":31545,"menu_item_id":63,"quantity":1},{"id":31546,"menu_item_id":61,"quantity":1},{"id":31547,"menu_item_id":4,"quantity":1},{"id":31548,"menu_item_id":29,"quantity":3},{"id":31549,"menu_item_id":396,"quantity":1}]} 
[2026-04-01 15:10:02] local.INFO: PosOrderController::update - Item changes check {"order_id":6637,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["62|1|","63|1|","61|1|","4|1|","29|3|","396|1|"],"new_items_map_keys":["62|1|","63|1|","61|1|","4|1|","29|3|","396|1|"]} 
[2026-04-01 15:10:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6637,"order_number":"AZS-010426-002"} 
[2026-04-01 15:10:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6637,"order_number":"AZS-010426-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 15:10:02"} 
[2026-04-01 15:19:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6637,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":31544},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":31545},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31546},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":31547},{"menu_item_id":29,"quantity":3,"price":250,"discount_percent":0,"notes":null,"id":31548},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":31549}],"validated_items":[{"id":31544,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":31545,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":31546,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31547,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"id":31548,"menu_item_id":29,"quantity":3,"price":250,"discount_percent":0,"notes":null},{"id":31549,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-04-01 15:19:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6637,"items_count":6} 
[2026-04-01 15:19:47] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31544,"menu_item_id":62,"quantity":1},{"id":31545,"menu_item_id":63,"quantity":1},{"id":31546,"menu_item_id":61,"quantity":1},{"id":31547,"menu_item_id":4,"quantity":1},{"id":31548,"menu_item_id":29,"quantity":3},{"id":31549,"menu_item_id":396,"quantity":1}]} 
[2026-04-01 15:19:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6637,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["62|1|","63|1|","61|1|","4|1|","29|3|","396|1|"],"new_items_map_keys":["62|1|","63|1|","61|1|","4|1|","29|3|","396|1|"]} 
[2026-04-01 15:19:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6637,"order_number":"AZS-010426-002"} 
[2026-04-01 15:19:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6637,"order_number":"AZS-010426-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 15:19:47"} 
[2026-04-01 15:20:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T03:20:26.481Z","date_to":"2026-04-01T15:20:26.481Z","per_page":"100"} 
[2026-04-01 15:20:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T03:20:26.468Z","date_to":"2026-04-01T15:20:26.468Z","per_page":"100"} 
[2026-04-01 15:20:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":5,"unique_order_numbers":6} 
[2026-04-01 15:20:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":5,"unique_order_numbers":6} 
[2026-04-01 15:20:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T03:20:26.468Z","date_to":"2026-04-01T15:20:26.468Z","per_page":"100"} 
[2026-04-01 15:20:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":5,"unique_order_numbers":6} 
[2026-04-01 15:41:23] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6634,"order_number":"AZS-010426-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 15:41:23"} 
[2026-04-01 15:41:23] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6634,"order_number":"AZS-010426-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 15:41:23"} 
[2026-04-01 15:41:23] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6634,"order_number":"AZS-010426-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 15:41:23"} 
[2026-04-01 15:41:23] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6634,"order_number":"AZS-010426-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 15:41:23"} 
[2026-04-01 15:41:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6634,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31532}],"validated_items":[{"id":31532,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-01 15:41:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6634,"items_count":1} 
[2026-04-01 15:41:23] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31532,"menu_item_id":6,"quantity":1}]} 
[2026-04-01 15:41:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6634,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-04-01 15:41:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6634,"order_number":"AZS-010426-003"} 
[2026-04-01 15:41:23] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6634,"order_number":"AZS-010426-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-01 15:41:23","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-01 15:41:23"} 
[2026-04-01 15:41:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6634,"order_number":"AZS-010426-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-01 15:41:23"} 
[2026-04-01 15:41:23] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6634,"order_number":"AZS-010426-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-01 15:41:23","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"200.00","database_verification_match":true,"timestamp":"2026-04-01 15:41:23"} 
[2026-04-01 15:41:40] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-04-01 15:46:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6636,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"discount_percent":0,"notes":null,"id":31538},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31539},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31540},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31541},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31542},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":31543},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":31538,"menu_item_id":100,"quantity":1,"discount_percent":0,"notes":null},{"id":31539,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":31540,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31541,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31542,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":31543,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-04-01 15:46:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6636,"items_count":7} 
[2026-04-01 15:46:58] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31538,"menu_item_id":100,"quantity":1},{"id":31539,"menu_item_id":396,"quantity":3},{"id":31540,"menu_item_id":61,"quantity":1},{"id":31541,"menu_item_id":56,"quantity":1},{"id":31542,"menu_item_id":5,"quantity":1},{"id":31543,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-04-01 15:46:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6636,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["100|1|","396|3|","61|1|","56|1|","5|1|","64|1|"],"new_items_map_keys":["100|1|","396|3|","61|1|","56|1|","5|1|","64|1|","2|3|"]} 
[2026-04-01 15:46:58] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6636,"order_number":"AZS-010426-004"} 
[2026-04-01 15:46:58] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-004","replaced_order_id":6636} 
[2026-04-01 15:46:58] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6642,"items_count":7,"items":[{"menu_item_id":100,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"}]} 
[2026-04-01 15:46:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6642,"item_index":0,"item_data":{"menu_item_id":100,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Half","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6642}} 
[2026-04-01 15:46:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6642,"item_index":0,"menu_item_id":100} 
[2026-04-01 15:46:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6642,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6642}} 
[2026-04-01 15:46:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6642,"item_index":1,"menu_item_id":396} 
[2026-04-01 15:46:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6642,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6642}} 
[2026-04-01 15:46:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6642,"item_index":2,"menu_item_id":61} 
[2026-04-01 15:46:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6642,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6642}} 
[2026-04-01 15:46:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6642,"item_index":3,"menu_item_id":56} 
[2026-04-01 15:46:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6642,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6642}} 
[2026-04-01 15:46:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6642,"item_index":4,"menu_item_id":5} 
[2026-04-01 15:46:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6642,"item_index":5,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6642}} 
[2026-04-01 15:46:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6642,"item_index":5,"menu_item_id":64} 
[2026-04-01 15:46:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6642,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6642}} 
[2026-04-01 15:46:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6642,"item_index":6,"menu_item_id":2} 
[2026-04-01 15:46:58] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6636,"new_order_id":6642,"order_number":"AZS-010426-004"} 
[2026-04-01 15:47:56] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6637,"order_number":"AZS-010426-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 15:47:56"} 
[2026-04-01 15:47:56] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6637,"order_number":"AZS-010426-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 15:47:56"} 
[2026-04-01 15:47:56] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6637,"order_number":"AZS-010426-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 15:47:56"} 
[2026-04-01 15:47:56] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6637,"order_number":"AZS-010426-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 15:47:56"} 
[2026-04-01 15:47:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6637,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":31544},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":31545},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":31547},{"menu_item_id":29,"quantity":3,"price":250,"discount_percent":0,"notes":null,"id":31548},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":31549}],"validated_items":[{"id":31544,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":31545,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":31547,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"id":31548,"menu_item_id":29,"quantity":3,"price":250,"discount_percent":0,"notes":null},{"id":31549,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-04-01 15:47:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6637,"items_count":5} 
[2026-04-01 15:47:56] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[31546],"items":[{"id":31544,"menu_item_id":62,"quantity":1},{"id":31545,"menu_item_id":63,"quantity":1},{"id":31547,"menu_item_id":4,"quantity":1},{"id":31548,"menu_item_id":29,"quantity":3},{"id":31549,"menu_item_id":396,"quantity":1}]} 
[2026-04-01 15:47:56] local.INFO: PosOrderController::update - Item changes check {"order_id":6637,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["62|1|","63|1|","61|1|","4|1|","29|3|","396|1|"],"new_items_map_keys":["62|1|","63|1|","4|1|","29|3|","396|1|"]} 
[2026-04-01 15:47:56] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6637,"order_number":"AZS-010426-002","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":4000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-01 15:47:56","original_payment_amount":"0.00","grand_total":3537.0,"timestamp":"2026-04-01 15:47:56"} 
[2026-04-01 15:47:56] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6637,"order_number":"AZS-010426-002"} 
[2026-04-01 15:47:56] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-002","replaced_order_id":6637} 
[2026-04-01 15:47:56] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6637,"new_order_id":6643,"order_number":"AZS-010426-002","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"4000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-01 15:47:56","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-01 15:47:56"} 
[2026-04-01 15:47:56] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6643,"items_count":5,"items":[{"menu_item_id":62,"quantity":1,"price":1499.0},{"menu_item_id":63,"quantity":1,"price":1099.0},{"menu_item_id":4,"quantity":1,"price":90.0},{"menu_item_id":29,"quantity":3,"price":250.0},{"menu_item_id":396,"quantity":1,"price":99.0}]} 
[2026-04-01 15:47:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6643,"item_index":0,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":1499.0,"discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6643}} 
[2026-04-01 15:47:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6643,"item_index":0,"menu_item_id":62} 
[2026-04-01 15:47:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6643,"item_index":1,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":1099.0,"discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6643}} 
[2026-04-01 15:47:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6643,"item_index":1,"menu_item_id":63} 
[2026-04-01 15:47:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6643,"item_index":2,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":90.0,"discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6643}} 
[2026-04-01 15:47:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6643,"item_index":2,"menu_item_id":4} 
[2026-04-01 15:47:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6643,"item_index":3,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":3,"price":250.0,"discount_percent":0.0,"discount_amount":0.0,"total":750.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6643}} 
[2026-04-01 15:47:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6643,"item_index":3,"menu_item_id":29} 
[2026-04-01 15:47:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6643,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6643}} 
[2026-04-01 15:47:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6643,"item_index":4,"menu_item_id":396} 
[2026-04-01 15:47:56] local.ERROR: Error tracking recipe usage for order 6643: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6643, 62, 184, 1, 5000, 0.00, Order #AZS-010426-002 - 1x Chicken Malai Boti (10 pcs), 2026-04-01 15:47:56, 2026-04-01 15:47:56))  
[2026-04-01 15:47:56] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6637,"new_order_id":6643,"order_number":"AZS-010426-002"} 
[2026-04-01 15:47:57] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6637,"new_order_id":6643,"order_number":"AZS-010426-002","route":"api/orders/6637"} 
[2026-04-01 15:48:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":6641,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":31558},{"menu_item_id":397,"quantity":300,"discount_percent":0,"notes":null,"id":31559},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":31560},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":31561},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":31562},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":31563},{"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null,"id":31564},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31565},{"menu_item_id":57,"quantity":1,"discount_percent":0,"notes":null,"id":31566},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31567},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31568}],"validated_items":[{"id":31558,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":31559,"menu_item_id":397,"quantity":300,"discount_percent":0,"notes":null},{"id":31560,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":31561,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":31562,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":31563,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":31564,"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null},{"id":31565,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31566,"menu_item_id":57,"quantity":1,"discount_percent":0,"notes":null},{"id":31567,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31568,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-01 15:48:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6641,"items_count":11} 
[2026-04-01 15:48:15] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31558,"menu_item_id":106,"quantity":1},{"id":31559,"menu_item_id":397,"quantity":300},{"id":31560,"menu_item_id":105,"quantity":1},{"id":31561,"menu_item_id":65,"quantity":1},{"id":31562,"menu_item_id":396,"quantity":2},{"id":31563,"menu_item_id":50,"quantity":2},{"id":31564,"menu_item_id":54,"quantity":1},{"id":31565,"menu_item_id":56,"quantity":1},{"id":31566,"menu_item_id":57,"quantity":1},{"id":31567,"menu_item_id":61,"quantity":2},{"id":31568,"menu_item_id":5,"quantity":1}]} 
[2026-04-01 15:48:15] local.INFO: PosOrderController::update - Item changes check {"order_id":6641,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["106|1|","397|300|","105|1|","65|1|","396|2|","50|2|","54|1|","56|1|","57|1|","61|2|","5|1|"],"new_items_map_keys":["106|1|","397|300|","105|1|","65|1|","396|2|","50|2|","54|1|","56|1|","57|1|","61|2|","5|1|"]} 
[2026-04-01 15:48:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6641,"order_number":"AZS-010426-008"} 
[2026-04-01 15:48:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6641,"order_number":"AZS-010426-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-01 15:48:15"} 
[2026-04-01 15:48:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T03:48:21.317Z","date_to":"2026-04-01T15:48:21.317Z","per_page":"100"} 
[2026-04-01 15:48:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":5,"unique_order_numbers":8} 
[2026-04-01 15:48:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T03:48:21.335Z","date_to":"2026-04-01T15:48:21.335Z","per_page":"100"} 
[2026-04-01 15:48:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":5,"unique_order_numbers":8} 
[2026-04-01 15:48:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T03:48:21.317Z","date_to":"2026-04-01T15:48:21.317Z","per_page":"100"} 
[2026-04-01 15:48:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":5,"unique_order_numbers":8} 
[2026-04-01 15:55:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T03:55:47.728Z","date_to":"2026-04-01T15:55:47.728Z","per_page":"100"} 
[2026-04-01 15:55:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T03:55:47.744Z","date_to":"2026-04-01T15:55:47.744Z","per_page":"100"} 
[2026-04-01 15:55:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":5,"unique_order_numbers":8} 
[2026-04-01 15:55:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":5,"unique_order_numbers":8} 
[2026-04-01 15:55:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T03:55:47.728Z","date_to":"2026-04-01T15:55:47.728Z","per_page":"100"} 
[2026-04-01 15:55:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":5,"unique_order_numbers":8} 
[2026-04-01 16:02:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6642,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":31569},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":31570},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31571},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31572},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31573},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":31574},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":31575}],"validated_items":[{"id":31569,"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":31570,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":31571,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31572,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31573,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31574,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":31575,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-01 16:02:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6642,"items_count":7} 
[2026-04-01 16:02:35] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31569,"menu_item_id":100,"quantity":1},{"id":31570,"menu_item_id":396,"quantity":3},{"id":31571,"menu_item_id":61,"quantity":1},{"id":31572,"menu_item_id":56,"quantity":1},{"id":31573,"menu_item_id":5,"quantity":1},{"id":31574,"menu_item_id":64,"quantity":1},{"id":31575,"menu_item_id":2,"quantity":3}]} 
[2026-04-01 16:02:35] local.INFO: PosOrderController::update - Item changes check {"order_id":6642,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["100|1|","396|3|","61|1|","56|1|","5|1|","64|1|","2|3|"],"new_items_map_keys":["100|1|","396|3|","61|1|","56|1|","5|1|","64|1|","2|3|"]} 
[2026-04-01 16:02:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6642,"order_number":"AZS-010426-004"} 
[2026-04-01 16:02:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6642,"order_number":"AZS-010426-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 16:02:35"} 
[2026-04-01 16:07:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6640,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31556},{"menu_item_id":7,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":31557}],"validated_items":[{"id":31556,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31557,"menu_item_id":7,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-01 16:07:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6640,"items_count":2} 
[2026-04-01 16:07:14] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31556,"menu_item_id":6,"quantity":1},{"id":31557,"menu_item_id":7,"quantity":2}]} 
[2026-04-01 16:07:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6640,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|1|","7|2|"],"new_items_map_keys":["6|1|","7|2|"]} 
[2026-04-01 16:07:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6640,"order_number":"AZS-010426-007"} 
[2026-04-01 16:07:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6640,"order_number":"AZS-010426-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 16:07:14"} 
[2026-04-01 16:09:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T04:08:54.912Z","date_to":"2026-04-01T16:08:54.912Z","per_page":"100"} 
[2026-04-01 16:09:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":5,"unique_order_numbers":8} 
[2026-04-01 16:09:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T04:08:54.934Z","date_to":"2026-04-01T16:08:54.934Z","per_page":"100"} 
[2026-04-01 16:09:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":5,"unique_order_numbers":8} 
[2026-04-01 16:09:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T04:08:54.912Z","date_to":"2026-04-01T16:08:54.912Z","per_page":"100"} 
[2026-04-01 16:09:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":5,"unique_order_numbers":8} 
[2026-04-01 16:09:32] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6642,"order_number":"AZS-010426-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3731,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 16:09:32"} 
[2026-04-01 16:09:32] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6642,"order_number":"AZS-010426-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3731,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 16:09:32"} 
[2026-04-01 16:09:32] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6642,"order_number":"AZS-010426-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3731,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 16:09:32"} 
[2026-04-01 16:09:32] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6642,"order_number":"AZS-010426-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3731,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 16:09:32"} 
[2026-04-01 16:09:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6642,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":31569},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":31570},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31571},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31572},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31573},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":31574},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":31575}],"validated_items":[{"id":31569,"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":31570,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":31571,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31572,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31573,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31574,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":31575,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-01 16:09:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6642,"items_count":7} 
[2026-04-01 16:09:32] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31569,"menu_item_id":100,"quantity":1},{"id":31570,"menu_item_id":396,"quantity":3},{"id":31571,"menu_item_id":61,"quantity":1},{"id":31572,"menu_item_id":56,"quantity":1},{"id":31573,"menu_item_id":5,"quantity":1},{"id":31574,"menu_item_id":64,"quantity":1},{"id":31575,"menu_item_id":2,"quantity":3}]} 
[2026-04-01 16:09:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6642,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["100|1|","396|3|","61|1|","56|1|","5|1|","64|1|","2|3|"],"new_items_map_keys":["100|1|","396|3|","61|1|","56|1|","5|1|","64|1|","2|3|"]} 
[2026-04-01 16:09:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6642,"order_number":"AZS-010426-004"} 
[2026-04-01 16:09:32] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6642,"order_number":"AZS-010426-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3731,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-01 16:09:32","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-01 16:09:32"} 
[2026-04-01 16:09:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6642,"order_number":"AZS-010426-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-01 16:09:32"} 
[2026-04-01 16:09:32] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6642,"order_number":"AZS-010426-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3731.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-01 16:09:32","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3731,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3731.00","database_verification_match":true,"timestamp":"2026-04-01 16:09:32"} 
[2026-04-01 16:12:19] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6640,"order_number":"AZS-010426-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":732,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 16:12:19"} 
[2026-04-01 16:12:19] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6640,"order_number":"AZS-010426-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":732,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 16:12:19"} 
[2026-04-01 16:12:19] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6640,"order_number":"AZS-010426-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":732,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 16:12:19"} 
[2026-04-01 16:12:19] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6640,"order_number":"AZS-010426-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":732,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 16:12:19"} 
[2026-04-01 16:12:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6640,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31556},{"menu_item_id":7,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":31557}],"validated_items":[{"id":31556,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31557,"menu_item_id":7,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-01 16:12:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6640,"items_count":2} 
[2026-04-01 16:12:19] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31556,"menu_item_id":6,"quantity":1},{"id":31557,"menu_item_id":7,"quantity":2}]} 
[2026-04-01 16:12:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6640,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|1|","7|2|"],"new_items_map_keys":["6|1|","7|2|"]} 
[2026-04-01 16:12:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6640,"order_number":"AZS-010426-007"} 
[2026-04-01 16:12:19] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6640,"order_number":"AZS-010426-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":732,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-01 16:12:19","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-01 16:12:19"} 
[2026-04-01 16:12:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6640,"order_number":"AZS-010426-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-01 16:12:19"} 
[2026-04-01 16:12:19] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6640,"order_number":"AZS-010426-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"732.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-01 16:12:19","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":732,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"732.00","database_verification_match":true,"timestamp":"2026-04-01 16:12:19"} 
[2026-04-01 16:18:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6639,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":31552},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":31553},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":31554},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31555},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31552,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":31553,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":31554,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":31555,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-01 16:18:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6639,"items_count":6} 
[2026-04-01 16:18:26] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31552,"menu_item_id":114,"quantity":1},{"id":31553,"menu_item_id":113,"quantity":1},{"id":31554,"menu_item_id":396,"quantity":5},{"id":31555,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-01 16:18:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6639,"has_item_changes":true,"old_items_count":4,"new_items_count":6,"old_items_map_keys":["114|1|","113|1|","396|5|","5|1|"],"new_items_map_keys":["114|1|","113|1|","396|5|","5|1|","61|2|","3|1|"]} 
[2026-04-01 16:18:26] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6639,"order_number":"AZS-010426-006"} 
[2026-04-01 16:18:26] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-006","replaced_order_id":6639} 
[2026-04-01 16:18:26] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6644,"items_count":6,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-01 16:18:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6644,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6644}} 
[2026-04-01 16:18:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6644,"item_index":0,"menu_item_id":114} 
[2026-04-01 16:18:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6644,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6644}} 
[2026-04-01 16:18:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6644,"item_index":1,"menu_item_id":113} 
[2026-04-01 16:18:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6644,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6644}} 
[2026-04-01 16:18:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6644,"item_index":2,"menu_item_id":396} 
[2026-04-01 16:18:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6644,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6644}} 
[2026-04-01 16:18:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6644,"item_index":3,"menu_item_id":5} 
[2026-04-01 16:18:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6644,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6644}} 
[2026-04-01 16:18:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6644,"item_index":4,"menu_item_id":61} 
[2026-04-01 16:18:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6644,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6644}} 
[2026-04-01 16:18:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6644,"item_index":5,"menu_item_id":3} 
[2026-04-01 16:18:26] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6639,"new_order_id":6644,"order_number":"AZS-010426-006"} 
[2026-04-01 16:28:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6645,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":31587},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":31588},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":31589},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31587,"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"id":31588,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":31589,"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-01 16:28:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6645,"items_count":4} 
[2026-04-01 16:28:58] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31587,"menu_item_id":52,"quantity":3},{"id":31588,"menu_item_id":113,"quantity":1},{"id":31589,"menu_item_id":2,"quantity":3},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-04-01 16:28:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6645,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["52|3|","113|1|","2|3|"],"new_items_map_keys":["52|3|","113|1|","2|3|","56|1|"]} 
[2026-04-01 16:28:58] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6645,"order_number":"AZS-010426-009"} 
[2026-04-01 16:28:58] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-009","replaced_order_id":6645} 
[2026-04-01 16:28:58] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6647,"items_count":4,"items":[{"menu_item_id":52,"quantity":3,"price":"70.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"}]} 
[2026-04-01 16:28:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6647,"item_index":0,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6647}} 
[2026-04-01 16:28:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6647,"item_index":0,"menu_item_id":52} 
[2026-04-01 16:28:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6647,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6647}} 
[2026-04-01 16:28:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6647,"item_index":1,"menu_item_id":113} 
[2026-04-01 16:28:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6647,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6647}} 
[2026-04-01 16:28:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6647,"item_index":2,"menu_item_id":2} 
[2026-04-01 16:28:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6647,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6647}} 
[2026-04-01 16:28:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6647,"item_index":3,"menu_item_id":56} 
[2026-04-01 16:28:59] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6645,"new_order_id":6647,"order_number":"AZS-010426-009"} 
[2026-04-01 16:29:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6638,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"discount_percent":0,"notes":null,"id":31550},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":31551},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":31550,"menu_item_id":100,"quantity":1,"discount_percent":0,"notes":null},{"id":31551,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-01 16:29:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6638,"items_count":3} 
[2026-04-01 16:29:19] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31550,"menu_item_id":100,"quantity":1},{"id":31551,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-04-01 16:29:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6638,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["100|1|","396|2|"],"new_items_map_keys":["100|1|","396|2|","6|2|"]} 
[2026-04-01 16:29:19] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6638,"order_number":"AZS-010426-005"} 
[2026-04-01 16:29:19] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-005","replaced_order_id":6638} 
[2026-04-01 16:29:19] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6648,"items_count":3,"items":[{"menu_item_id":100,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-04-01 16:29:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6648,"item_index":0,"item_data":{"menu_item_id":100,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Half","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6648}} 
[2026-04-01 16:29:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6648,"item_index":0,"menu_item_id":100} 
[2026-04-01 16:29:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6648,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6648}} 
[2026-04-01 16:29:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6648,"item_index":1,"menu_item_id":396} 
[2026-04-01 16:29:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6648,"item_index":2,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6648}} 
[2026-04-01 16:29:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6648,"item_index":2,"menu_item_id":6} 
[2026-04-01 16:29:19] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6638,"new_order_id":6648,"order_number":"AZS-010426-005"} 
[2026-04-01 16:34:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6649,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":31602},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":31603},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":31604},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":31605},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31606},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31607},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31608}],"validated_items":[{"id":31602,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":31603,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":31604,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":31605,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":31606,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31607,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31608,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-01 16:34:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6649,"items_count":7} 
[2026-04-01 16:34:07] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31602,"menu_item_id":106,"quantity":1},{"id":31603,"menu_item_id":65,"quantity":1},{"id":31604,"menu_item_id":396,"quantity":2},{"id":31605,"menu_item_id":50,"quantity":2},{"id":31606,"menu_item_id":61,"quantity":1},{"id":31607,"menu_item_id":56,"quantity":1},{"id":31608,"menu_item_id":5,"quantity":1}]} 
[2026-04-01 16:34:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6649,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","65|1|","396|2|","50|2|","61|2|","56|1|","5|1|"],"new_items_map_keys":["106|1|","65|1|","396|2|","50|2|","61|1|","56|1|","5|1|"]} 
[2026-04-01 16:34:07] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6649,"order_number":"AZS-010426-011"} 
[2026-04-01 16:34:07] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-011","replaced_order_id":6649} 
[2026-04-01 16:34:07] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6650,"items_count":7,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-01 16:34:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6650,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6650}} 
[2026-04-01 16:34:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6650,"item_index":0,"menu_item_id":106} 
[2026-04-01 16:34:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6650,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6650}} 
[2026-04-01 16:34:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6650,"item_index":1,"menu_item_id":65} 
[2026-04-01 16:34:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6650,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6650}} 
[2026-04-01 16:34:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6650,"item_index":2,"menu_item_id":396} 
[2026-04-01 16:34:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6650,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6650}} 
[2026-04-01 16:34:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6650,"item_index":3,"menu_item_id":50} 
[2026-04-01 16:34:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6650,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6650}} 
[2026-04-01 16:34:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6650,"item_index":4,"menu_item_id":61} 
[2026-04-01 16:34:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6650,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6650}} 
[2026-04-01 16:34:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6650,"item_index":5,"menu_item_id":56} 
[2026-04-01 16:34:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6650,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6650}} 
[2026-04-01 16:34:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6650,"item_index":6,"menu_item_id":5} 
[2026-04-01 16:34:07] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6649,"new_order_id":6650,"order_number":"AZS-010426-011"} 
[2026-04-01 16:34:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T04:34:17.843Z","date_to":"2026-04-01T16:34:17.843Z","per_page":"100"} 
[2026-04-01 16:34:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","pending","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":6,"unique_order_numbers":11} 
[2026-04-01 16:34:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T04:34:17.852Z","date_to":"2026-04-01T16:34:17.852Z","per_page":"100"} 
[2026-04-01 16:34:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","pending","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":6,"unique_order_numbers":11} 
[2026-04-01 16:34:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T04:34:17.843Z","date_to":"2026-04-01T16:34:17.843Z","per_page":"100"} 
[2026-04-01 16:34:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","pending","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":6,"unique_order_numbers":11} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":6641,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":31558},{"menu_item_id":397,"quantity":300,"discount_percent":0,"notes":null,"id":31559},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":31560},{"menu_item_id":65,"quantity":2,"discount_percent":0,"notes":null,"id":31561},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":31562},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":31563},{"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null,"id":31564},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31565},{"menu_item_id":57,"quantity":1,"discount_percent":0,"notes":null,"id":31566},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31567},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31568}],"validated_items":[{"id":31558,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":31559,"menu_item_id":397,"quantity":300,"discount_percent":0,"notes":null},{"id":31560,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":31561,"menu_item_id":65,"quantity":2,"discount_percent":0,"notes":null},{"id":31562,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":31563,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":31564,"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null},{"id":31565,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31566,"menu_item_id":57,"quantity":1,"discount_percent":0,"notes":null},{"id":31567,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31568,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6641,"items_count":11} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31558,"menu_item_id":106,"quantity":1},{"id":31559,"menu_item_id":397,"quantity":300},{"id":31560,"menu_item_id":105,"quantity":1},{"id":31561,"menu_item_id":65,"quantity":2},{"id":31562,"menu_item_id":396,"quantity":2},{"id":31563,"menu_item_id":50,"quantity":2},{"id":31564,"menu_item_id":54,"quantity":1},{"id":31565,"menu_item_id":56,"quantity":1},{"id":31566,"menu_item_id":57,"quantity":1},{"id":31567,"menu_item_id":61,"quantity":2},{"id":31568,"menu_item_id":5,"quantity":1}]} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6641,"has_item_changes":true,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["106|1|","397|300|","105|1|","65|1|","396|2|","50|2|","54|1|","56|1|","57|1|","61|2|","5|1|"],"new_items_map_keys":["106|1|","397|300|","105|1|","65|2|","396|2|","50|2|","54|1|","56|1|","57|1|","61|2|","5|1|"]} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6641,"order_number":"AZS-010426-008"} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-008","replaced_order_id":6641} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6651,"items_count":11,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":397,"quantity":300,"price":"4.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":65,"quantity":2,"price":"1299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":54,"quantity":1,"price":"159.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":57,"quantity":1,"price":"299.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6651,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6651}} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6651,"item_index":0,"menu_item_id":106} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6651,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":300,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":1200.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6651}} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6651,"item_index":1,"menu_item_id":397} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6651,"item_index":2,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6651}} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6651,"item_index":2,"menu_item_id":105} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6651,"item_index":3,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":2,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":2598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6651}} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6651,"item_index":3,"menu_item_id":65} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6651,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6651}} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6651,"item_index":4,"menu_item_id":396} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6651,"item_index":5,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6651}} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6651,"item_index":5,"menu_item_id":50} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6651,"item_index":6,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6651}} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6651,"item_index":6,"menu_item_id":54} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6651,"item_index":7,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6651}} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6651,"item_index":7,"menu_item_id":56} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6651,"item_index":8,"item_data":{"menu_item_id":57,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Cachumber Salad","quantity":1,"price":"299.00","discount_percent":0.0,"discount_amount":0.0,"total":299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6651}} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6651,"item_index":8,"menu_item_id":57} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6651,"item_index":9,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6651}} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6651,"item_index":9,"menu_item_id":61} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6651,"item_index":10,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6651}} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6651,"item_index":10,"menu_item_id":5} 
[2026-04-01 16:34:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6641,"new_order_id":6651,"order_number":"AZS-010426-008"} 
[2026-04-01 16:38:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6644,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":31581},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31582},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":31583},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31584},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31585},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31586}],"validated_items":[{"id":31581,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":31582,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31583,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":31584,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31585,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31586,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-01 16:38:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6644,"items_count":6} 
[2026-04-01 16:38:07] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31581,"menu_item_id":114,"quantity":1},{"id":31582,"menu_item_id":113,"quantity":1},{"id":31583,"menu_item_id":396,"quantity":5},{"id":31584,"menu_item_id":5,"quantity":1},{"id":31585,"menu_item_id":61,"quantity":2},{"id":31586,"menu_item_id":3,"quantity":1}]} 
[2026-04-01 16:38:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6644,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","113|1|","396|5|","5|1|","61|2|","3|1|"],"new_items_map_keys":["114|1|","113|1|","396|5|","5|1|","61|2|","3|1|"]} 
[2026-04-01 16:38:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6644,"order_number":"AZS-010426-006"} 
[2026-04-01 16:38:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6644,"order_number":"AZS-010426-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 16:38:07"} 
[2026-04-01 16:44:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6648,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"discount_percent":0,"notes":null,"id":31599},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":31600},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":31601},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31599,"menu_item_id":100,"quantity":1,"discount_percent":0,"notes":null},{"id":31600,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":31601,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-01 16:44:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6648,"items_count":4} 
[2026-04-01 16:44:07] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31599,"menu_item_id":100,"quantity":1},{"id":31600,"menu_item_id":396,"quantity":2},{"id":31601,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-01 16:44:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6648,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["100|1|","396|2|","6|2|"],"new_items_map_keys":["100|1|","396|2|","6|2|","5|1|"]} 
[2026-04-01 16:44:07] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6648,"order_number":"AZS-010426-005"} 
[2026-04-01 16:44:07] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-005","replaced_order_id":6648} 
[2026-04-01 16:44:07] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6652,"items_count":4,"items":[{"menu_item_id":100,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-01 16:44:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6652,"item_index":0,"item_data":{"menu_item_id":100,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Half","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6652}} 
[2026-04-01 16:44:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6652,"item_index":0,"menu_item_id":100} 
[2026-04-01 16:44:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6652,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6652}} 
[2026-04-01 16:44:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6652,"item_index":1,"menu_item_id":396} 
[2026-04-01 16:44:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6652,"item_index":2,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6652}} 
[2026-04-01 16:44:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6652,"item_index":2,"menu_item_id":6} 
[2026-04-01 16:44:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6652,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6652}} 
[2026-04-01 16:44:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6652,"item_index":3,"menu_item_id":5} 
[2026-04-01 16:44:07] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6648,"new_order_id":6652,"order_number":"AZS-010426-005"} 
[2026-04-01 16:44:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6652,"item_index":0,"item_id":31599} 
[2026-04-01 16:44:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6652,"item_index":1,"item_id":31600} 
[2026-04-01 16:44:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6652,"item_index":2,"item_id":31601} 
[2026-04-01 16:44:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6652,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":31599},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31600},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31601},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-01 16:44:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6652,"items_count":4} 
[2026-04-01 16:44:13] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[31627,31628,31629,31630],"items":[{"id":null,"menu_item_id":100,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-01 16:44:13] local.INFO: PosOrderController::update - Item changes check {"order_id":6652,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["100|1|","396|2|","6|2|","5|1|"],"new_items_map_keys":["100|1|","396|2|","6|2|","5|1|"]} 
[2026-04-01 16:44:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6652,"order_number":"AZS-010426-005"} 
[2026-04-01 16:44:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6652,"order_number":"AZS-010426-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 16:44:13"} 
[2026-04-01 16:50:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6646,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":31590},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31591},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31592},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31593},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31594},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31590,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":31591,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":31592,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31593,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31594,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-01 16:50:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6646,"items_count":6} 
[2026-04-01 16:50:53] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31590,"menu_item_id":99,"quantity":1},{"id":31591,"menu_item_id":396,"quantity":3},{"id":31592,"menu_item_id":61,"quantity":1},{"id":31593,"menu_item_id":56,"quantity":1},{"id":31594,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-01 16:50:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6646,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["99|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["99|1|","396|3|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-04-01 16:50:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6646,"order_number":"AZS-010426-010"} 
[2026-04-01 16:50:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-010","replaced_order_id":6646} 
[2026-04-01 16:50:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6653,"items_count":6,"items":[{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-01 16:50:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6653,"item_index":0,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6653}} 
[2026-04-01 16:50:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6653,"item_index":0,"menu_item_id":99} 
[2026-04-01 16:50:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6653,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6653}} 
[2026-04-01 16:50:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6653,"item_index":1,"menu_item_id":396} 
[2026-04-01 16:50:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6653,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6653}} 
[2026-04-01 16:50:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6653,"item_index":2,"menu_item_id":61} 
[2026-04-01 16:50:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6653,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6653}} 
[2026-04-01 16:50:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6653,"item_index":3,"menu_item_id":56} 
[2026-04-01 16:50:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6653,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6653}} 
[2026-04-01 16:50:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6653,"item_index":4,"menu_item_id":5} 
[2026-04-01 16:50:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6653,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6653}} 
[2026-04-01 16:50:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6653,"item_index":5,"menu_item_id":3} 
[2026-04-01 16:50:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6646,"new_order_id":6653,"order_number":"AZS-010426-010"} 
[2026-04-01 17:05:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6647,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":31595},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31596},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":31597},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31598}],"validated_items":[{"id":31595,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":31596,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31597,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":31598,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-01 17:05:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6647,"items_count":4} 
[2026-04-01 17:05:16] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31595,"menu_item_id":52,"quantity":3},{"id":31596,"menu_item_id":113,"quantity":1},{"id":31597,"menu_item_id":2,"quantity":3},{"id":31598,"menu_item_id":56,"quantity":1}]} 
[2026-04-01 17:05:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6647,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["52|3|","113|1|","2|3|","56|1|"],"new_items_map_keys":["52|3|","113|1|","2|3|","56|1|"]} 
[2026-04-01 17:05:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6647,"order_number":"AZS-010426-009"} 
[2026-04-01 17:05:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6647,"order_number":"AZS-010426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 17:05:16"} 
[2026-04-01 17:06:48] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6644,"order_number":"AZS-010426-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5073,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 17:06:48"} 
[2026-04-01 17:06:48] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6644,"order_number":"AZS-010426-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5073,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 17:06:48"} 
[2026-04-01 17:06:48] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6644,"order_number":"AZS-010426-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5073,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 17:06:48"} 
[2026-04-01 17:06:48] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6644,"order_number":"AZS-010426-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5073,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 17:06:48"} 
[2026-04-01 17:06:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6644,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":31581},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31582},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":31583},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31584},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31585},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31586}],"validated_items":[{"id":31581,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":31582,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31583,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":31584,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31585,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31586,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-01 17:06:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6644,"items_count":6} 
[2026-04-01 17:06:48] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31581,"menu_item_id":114,"quantity":1},{"id":31582,"menu_item_id":113,"quantity":1},{"id":31583,"menu_item_id":396,"quantity":5},{"id":31584,"menu_item_id":5,"quantity":1},{"id":31585,"menu_item_id":61,"quantity":2},{"id":31586,"menu_item_id":3,"quantity":1}]} 
[2026-04-01 17:06:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6644,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","113|1|","396|5|","5|1|","61|2|","3|1|"],"new_items_map_keys":["114|1|","113|1|","396|5|","5|1|","61|2|","3|1|"]} 
[2026-04-01 17:06:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6644,"order_number":"AZS-010426-006"} 
[2026-04-01 17:06:48] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6644,"order_number":"AZS-010426-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5073,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-01 17:06:48","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-01 17:06:48"} 
[2026-04-01 17:06:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6644,"order_number":"AZS-010426-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-01 17:06:48"} 
[2026-04-01 17:06:48] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6644,"order_number":"AZS-010426-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5073.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-01 17:06:48","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5073,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5073.00","database_verification_match":true,"timestamp":"2026-04-01 17:06:48"} 
[2026-04-01 17:08:31] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6647,"order_number":"AZS-010426-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2098,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 17:08:31"} 
[2026-04-01 17:08:31] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6647,"order_number":"AZS-010426-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2098,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 17:08:31"} 
[2026-04-01 17:08:31] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6647,"order_number":"AZS-010426-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2098,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 17:08:31"} 
[2026-04-01 17:08:31] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6647,"order_number":"AZS-010426-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2098,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 17:08:31"} 
[2026-04-01 17:08:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6647,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":31595},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31596},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":31597},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31598}],"validated_items":[{"id":31595,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":31596,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31597,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":31598,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-01 17:08:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6647,"items_count":4} 
[2026-04-01 17:08:31] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31595,"menu_item_id":52,"quantity":3},{"id":31596,"menu_item_id":113,"quantity":1},{"id":31597,"menu_item_id":2,"quantity":3},{"id":31598,"menu_item_id":56,"quantity":1}]} 
[2026-04-01 17:08:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6647,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["52|3|","113|1|","2|3|","56|1|"],"new_items_map_keys":["52|3|","113|1|","2|3|","56|1|"]} 
[2026-04-01 17:08:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6647,"order_number":"AZS-010426-009"} 
[2026-04-01 17:08:31] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6647,"order_number":"AZS-010426-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2098,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-01 17:08:31","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-01 17:08:31"} 
[2026-04-01 17:08:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6647,"order_number":"AZS-010426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-01 17:08:31"} 
[2026-04-01 17:08:31] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6647,"order_number":"AZS-010426-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2098.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-01 17:08:31","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2098,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2098.00","database_verification_match":true,"timestamp":"2026-04-01 17:08:31"} 
[2026-04-01 17:11:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6653,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":31631},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31632},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31633},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31634},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31635},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":31636},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":31631,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":31632,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":31633,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31634,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31635,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":31636,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-04-01 17:11:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6653,"items_count":7} 
[2026-04-01 17:11:40] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31631,"menu_item_id":99,"quantity":1},{"id":31632,"menu_item_id":396,"quantity":3},{"id":31633,"menu_item_id":61,"quantity":1},{"id":31634,"menu_item_id":56,"quantity":1},{"id":31635,"menu_item_id":5,"quantity":1},{"id":31636,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":13,"quantity":3}]} 
[2026-04-01 17:11:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6653,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["99|1|","396|3|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["99|1|","396|3|","61|1|","56|1|","5|1|","3|1|","13|3|"]} 
[2026-04-01 17:11:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6653,"order_number":"AZS-010426-010"} 
[2026-04-01 17:11:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-010","replaced_order_id":6653} 
[2026-04-01 17:11:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6655,"items_count":7,"items":[{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":13,"quantity":3,"price":"249.00"}]} 
[2026-04-01 17:11:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6655,"item_index":0,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6655}} 
[2026-04-01 17:11:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6655,"item_index":0,"menu_item_id":99} 
[2026-04-01 17:11:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6655,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6655}} 
[2026-04-01 17:11:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6655,"item_index":1,"menu_item_id":396} 
[2026-04-01 17:11:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6655,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6655}} 
[2026-04-01 17:11:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6655,"item_index":2,"menu_item_id":61} 
[2026-04-01 17:11:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6655,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6655}} 
[2026-04-01 17:11:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6655,"item_index":3,"menu_item_id":56} 
[2026-04-01 17:11:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6655,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6655}} 
[2026-04-01 17:11:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6655,"item_index":4,"menu_item_id":5} 
[2026-04-01 17:11:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6655,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6655}} 
[2026-04-01 17:11:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6655,"item_index":5,"menu_item_id":3} 
[2026-04-01 17:11:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6655,"item_index":6,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6655}} 
[2026-04-01 17:11:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6655,"item_index":6,"menu_item_id":13} 
[2026-04-01 17:11:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6653,"new_order_id":6655,"order_number":"AZS-010426-010"} 
[2026-04-01 17:12:56] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6652,"order_number":"AZS-010426-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 17:12:56"} 
[2026-04-01 17:12:56] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6652,"order_number":"AZS-010426-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 17:12:56"} 
[2026-04-01 17:12:56] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6652,"order_number":"AZS-010426-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 17:12:56"} 
[2026-04-01 17:12:56] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6652,"order_number":"AZS-010426-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 17:12:56"} 
[2026-04-01 17:12:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6652,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":31627},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31628},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31629},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31630}],"validated_items":[{"id":31627,"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":31628,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":31629,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31630,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-01 17:12:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6652,"items_count":4} 
[2026-04-01 17:12:56] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31627,"menu_item_id":100,"quantity":1},{"id":31628,"menu_item_id":396,"quantity":2},{"id":31629,"menu_item_id":6,"quantity":2},{"id":31630,"menu_item_id":5,"quantity":1}]} 
[2026-04-01 17:12:56] local.INFO: PosOrderController::update - Item changes check {"order_id":6652,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["100|1|","396|2|","6|2|","5|1|"],"new_items_map_keys":["100|1|","396|2|","6|2|","5|1|"]} 
[2026-04-01 17:12:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6652,"order_number":"AZS-010426-005"} 
[2026-04-01 17:12:56] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6652,"order_number":"AZS-010426-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-01 17:12:56","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-01 17:12:56"} 
[2026-04-01 17:12:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6652,"order_number":"AZS-010426-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-01 17:12:56"} 
[2026-04-01 17:12:56] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6652,"order_number":"AZS-010426-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-01 17:12:56","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-04-01 17:12:56"} 
[2026-04-01 17:13:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T05:13:44.048Z","date_to":"2026-04-01T17:13:44.048Z","per_page":"100"} 
[2026-04-01 17:13:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T05:13:44.062Z","date_to":"2026-04-01T17:13:44.062Z","per_page":"100"} 
[2026-04-01 17:13:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":4,"unique_order_numbers":12} 
[2026-04-01 17:13:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":4,"unique_order_numbers":12} 
[2026-04-01 17:13:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T05:13:44.048Z","date_to":"2026-04-01T17:13:44.048Z","per_page":"100"} 
[2026-04-01 17:13:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":4,"unique_order_numbers":12} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":6651,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":31616},{"menu_item_id":397,"quantity":300,"discount_percent":0,"notes":null,"id":31617},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":31618},{"menu_item_id":65,"quantity":2,"discount_percent":0,"notes":null,"id":31619},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":31620},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":31621},{"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null,"id":31622},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31623},{"menu_item_id":57,"quantity":1,"discount_percent":0,"notes":null,"id":31624},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31625},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31626},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31616,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":31617,"menu_item_id":397,"quantity":300,"discount_percent":0,"notes":null},{"id":31618,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":31619,"menu_item_id":65,"quantity":2,"discount_percent":0,"notes":null},{"id":31620,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":31621,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":31622,"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null},{"id":31623,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31624,"menu_item_id":57,"quantity":1,"discount_percent":0,"notes":null},{"id":31625,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31626,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6651,"items_count":12} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31616,"menu_item_id":106,"quantity":1},{"id":31617,"menu_item_id":397,"quantity":300},{"id":31618,"menu_item_id":105,"quantity":1},{"id":31619,"menu_item_id":65,"quantity":2},{"id":31620,"menu_item_id":396,"quantity":2},{"id":31621,"menu_item_id":50,"quantity":2},{"id":31622,"menu_item_id":54,"quantity":1},{"id":31623,"menu_item_id":56,"quantity":1},{"id":31624,"menu_item_id":57,"quantity":1},{"id":31625,"menu_item_id":61,"quantity":2},{"id":31626,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":1}]} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6651,"has_item_changes":true,"old_items_count":11,"new_items_count":12,"old_items_map_keys":["106|1|","397|300|","105|1|","65|2|","396|2|","50|2|","54|1|","56|1|","57|1|","61|2|","5|1|"],"new_items_map_keys":["106|1|","397|300|","105|1|","65|2|","396|2|","50|2|","54|1|","56|1|","57|1|","61|2|","5|1|","13|1|"]} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6651,"order_number":"AZS-010426-008"} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-008","replaced_order_id":6651} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6657,"items_count":12,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":397,"quantity":300,"price":"4.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":65,"quantity":2,"price":"1299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":54,"quantity":1,"price":"159.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":57,"quantity":1,"price":"299.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":1,"price":"249.00"}]} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6657,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6657}} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6657,"item_index":0,"menu_item_id":106} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6657,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":300,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":1200.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6657}} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6657,"item_index":1,"menu_item_id":397} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6657,"item_index":2,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6657}} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6657,"item_index":2,"menu_item_id":105} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6657,"item_index":3,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":2,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":2598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6657}} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6657,"item_index":3,"menu_item_id":65} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6657,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6657}} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6657,"item_index":4,"menu_item_id":396} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6657,"item_index":5,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6657}} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6657,"item_index":5,"menu_item_id":50} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6657,"item_index":6,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6657}} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6657,"item_index":6,"menu_item_id":54} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6657,"item_index":7,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6657}} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6657,"item_index":7,"menu_item_id":56} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6657,"item_index":8,"item_data":{"menu_item_id":57,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Cachumber Salad","quantity":1,"price":"299.00","discount_percent":0.0,"discount_amount":0.0,"total":299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6657}} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6657,"item_index":8,"menu_item_id":57} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6657,"item_index":9,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6657}} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6657,"item_index":9,"menu_item_id":61} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6657,"item_index":10,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6657}} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6657,"item_index":10,"menu_item_id":5} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6657,"item_index":11,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6657}} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6657,"item_index":11,"menu_item_id":13} 
[2026-04-01 17:18:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6651,"new_order_id":6657,"order_number":"AZS-010426-008"} 
[2026-04-01 17:24:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T05:24:28.925Z","date_to":"2026-04-01T17:24:28.925Z","per_page":"100"} 
[2026-04-01 17:24:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T05:24:28.944Z","date_to":"2026-04-01T17:24:28.944Z","per_page":"100"} 
[2026-04-01 17:24:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":5,"unique_order_numbers":13} 
[2026-04-01 17:24:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":5,"unique_order_numbers":13} 
[2026-04-01 17:24:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T05:24:28.925Z","date_to":"2026-04-01T17:24:28.925Z","per_page":"100"} 
[2026-04-01 17:24:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":5,"unique_order_numbers":13} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":13,"items_to_remove_count":0,"order_id":6657,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":31657},{"menu_item_id":397,"quantity":300,"discount_percent":0,"notes":null,"id":31658},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":31659},{"menu_item_id":65,"quantity":2,"discount_percent":0,"notes":null,"id":31660},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":31661},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":31662},{"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null,"id":31663},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31664},{"menu_item_id":57,"quantity":1,"discount_percent":0,"notes":null,"id":31665},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31666},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31667},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null,"id":31668},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31657,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":31658,"menu_item_id":397,"quantity":300,"discount_percent":0,"notes":null},{"id":31659,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":31660,"menu_item_id":65,"quantity":2,"discount_percent":0,"notes":null},{"id":31661,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":31662,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":31663,"menu_item_id":54,"quantity":1,"discount_percent":0,"notes":null},{"id":31664,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31665,"menu_item_id":57,"quantity":1,"discount_percent":0,"notes":null},{"id":31666,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31667,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":31668,"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6657,"items_count":13} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Processing items {"items_count":13,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31657,"menu_item_id":106,"quantity":1},{"id":31658,"menu_item_id":397,"quantity":300},{"id":31659,"menu_item_id":105,"quantity":1},{"id":31660,"menu_item_id":65,"quantity":2},{"id":31661,"menu_item_id":396,"quantity":2},{"id":31662,"menu_item_id":50,"quantity":2},{"id":31663,"menu_item_id":54,"quantity":1},{"id":31664,"menu_item_id":56,"quantity":1},{"id":31665,"menu_item_id":57,"quantity":1},{"id":31666,"menu_item_id":61,"quantity":2},{"id":31667,"menu_item_id":5,"quantity":1},{"id":31668,"menu_item_id":13,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6657,"has_item_changes":true,"old_items_count":12,"new_items_count":13,"old_items_map_keys":["106|1|","397|300|","105|1|","65|2|","396|2|","50|2|","54|1|","56|1|","57|1|","61|2|","5|1|","13|1|"],"new_items_map_keys":["106|1|","397|300|","105|1|","65|2|","396|2|","50|2|","54|1|","56|1|","57|1|","61|2|","5|1|","13|1|","3|1|"]} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6657,"order_number":"AZS-010426-008"} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-008","replaced_order_id":6657} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6658,"items_count":13,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":397,"quantity":300,"price":"4.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":65,"quantity":2,"price":"1299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":54,"quantity":1,"price":"159.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":57,"quantity":1,"price":"299.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":1,"price":"249.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6658,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6658}} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6658,"item_index":0,"menu_item_id":106} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6658,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":300,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":1200.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6658}} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6658,"item_index":1,"menu_item_id":397} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6658,"item_index":2,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6658}} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6658,"item_index":2,"menu_item_id":105} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6658,"item_index":3,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":2,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":2598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6658}} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6658,"item_index":3,"menu_item_id":65} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6658,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6658}} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6658,"item_index":4,"menu_item_id":396} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6658,"item_index":5,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6658}} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6658,"item_index":5,"menu_item_id":50} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6658,"item_index":6,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6658}} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6658,"item_index":6,"menu_item_id":54} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6658,"item_index":7,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6658}} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6658,"item_index":7,"menu_item_id":56} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6658,"item_index":8,"item_data":{"menu_item_id":57,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Cachumber Salad","quantity":1,"price":"299.00","discount_percent":0.0,"discount_amount":0.0,"total":299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6658}} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6658,"item_index":8,"menu_item_id":57} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6658,"item_index":9,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6658}} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6658,"item_index":9,"menu_item_id":61} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6658,"item_index":10,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6658}} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6658,"item_index":10,"menu_item_id":5} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6658,"item_index":11,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6658}} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6658,"item_index":11,"menu_item_id":13} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6658,"item_index":12,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6658}} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6658,"item_index":12,"menu_item_id":3} 
[2026-04-01 17:32:12] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6657,"new_order_id":6658,"order_number":"AZS-010426-008"} 
[2026-04-01 17:33:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6655,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":31643},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":31644},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31645},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31646},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31647},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31648},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":31649}],"validated_items":[{"id":31643,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":31644,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":31645,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31646,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31647,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31648,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":31649,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-01 17:33:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6655,"items_count":7} 
[2026-04-01 17:33:34] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31643,"menu_item_id":99,"quantity":1},{"id":31644,"menu_item_id":396,"quantity":3},{"id":31645,"menu_item_id":61,"quantity":1},{"id":31646,"menu_item_id":56,"quantity":1},{"id":31647,"menu_item_id":5,"quantity":1},{"id":31648,"menu_item_id":3,"quantity":1},{"id":31649,"menu_item_id":13,"quantity":3}]} 
[2026-04-01 17:33:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6655,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["99|1|","396|3|","61|1|","56|1|","5|1|","3|1|","13|3|"],"new_items_map_keys":["99|1|","396|3|","61|1|","56|1|","5|1|","3|1|","13|3|"]} 
[2026-04-01 17:33:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6655,"order_number":"AZS-010426-010"} 
[2026-04-01 17:33:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6655,"order_number":"AZS-010426-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 17:33:34"} 
[2026-04-01 17:35:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T05:35:07.195Z","date_to":"2026-04-01T17:35:07.195Z","per_page":"100"} 
[2026-04-01 17:35:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T05:35:07.210Z","date_to":"2026-04-01T17:35:07.210Z","per_page":"100"} 
[2026-04-01 17:35:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":5,"unique_order_numbers":13} 
[2026-04-01 17:35:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":5,"unique_order_numbers":13} 
[2026-04-01 17:35:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T05:35:07.195Z","date_to":"2026-04-01T17:35:07.195Z","per_page":"100"} 
[2026-04-01 17:35:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":5,"unique_order_numbers":13} 
[2026-04-01 17:36:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T05:36:17.541Z","date_to":"2026-04-01T17:36:17.541Z","per_page":"100"} 
[2026-04-01 17:36:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T05:36:17.520Z","date_to":"2026-04-01T17:36:17.520Z","per_page":"100"} 
[2026-04-01 17:36:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":5,"unique_order_numbers":13} 
[2026-04-01 17:36:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":5,"unique_order_numbers":13} 
[2026-04-01 17:36:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T05:36:17.520Z","date_to":"2026-04-01T17:36:17.520Z","per_page":"100"} 
[2026-04-01 17:36:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":5,"unique_order_numbers":13} 
[2026-04-01 17:37:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6655,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":31643},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":31644},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31645},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31646},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31647},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31648},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":31649}],"validated_items":[{"id":31643,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":31644,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":31645,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31646,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31647,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31648,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":31649,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-01 17:37:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6655,"items_count":7} 
[2026-04-01 17:37:02] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31643,"menu_item_id":99,"quantity":1},{"id":31644,"menu_item_id":396,"quantity":3},{"id":31645,"menu_item_id":61,"quantity":1},{"id":31646,"menu_item_id":56,"quantity":1},{"id":31647,"menu_item_id":5,"quantity":1},{"id":31648,"menu_item_id":3,"quantity":1},{"id":31649,"menu_item_id":13,"quantity":3}]} 
[2026-04-01 17:37:02] local.INFO: PosOrderController::update - Item changes check {"order_id":6655,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["99|1|","396|3|","61|1|","56|1|","5|1|","3|1|","13|3|"],"new_items_map_keys":["99|1|","396|3|","61|1|","56|1|","5|1|","3|1|","13|3|"]} 
[2026-04-01 17:37:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6655,"order_number":"AZS-010426-010"} 
[2026-04-01 17:37:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6655,"order_number":"AZS-010426-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 17:37:02"} 
[2026-04-01 17:45:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T05:45:31.816Z","date_to":"2026-04-01T17:45:31.816Z","per_page":"100"} 
[2026-04-01 17:45:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T05:45:31.832Z","date_to":"2026-04-01T17:45:31.832Z","per_page":"100"} 
[2026-04-01 17:45:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":5,"unique_order_numbers":13} 
[2026-04-01 17:45:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":5,"unique_order_numbers":13} 
[2026-04-01 17:45:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T05:45:31.816Z","date_to":"2026-04-01T17:45:31.816Z","per_page":"100"} 
[2026-04-01 17:45:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":5,"unique_order_numbers":13} 
[2026-04-01 17:45:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":13,"items_to_remove_count":0,"order_id":6658,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":31669},{"menu_item_id":397,"quantity":300,"price":4,"discount_percent":0,"notes":null,"id":31670},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31671},{"menu_item_id":65,"quantity":2,"price":1299,"discount_percent":0,"notes":null,"id":31672},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31673},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":31674},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":31675},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31676},{"menu_item_id":57,"quantity":1,"price":299,"discount_percent":0,"notes":null,"id":31677},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31678},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31679},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":31680},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31681}],"validated_items":[{"id":31669,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":31670,"menu_item_id":397,"quantity":300,"price":4,"discount_percent":0,"notes":null},{"id":31671,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":31672,"menu_item_id":65,"quantity":2,"price":1299,"discount_percent":0,"notes":null},{"id":31673,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":31674,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":31675,"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":31676,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31677,"menu_item_id":57,"quantity":1,"price":299,"discount_percent":0,"notes":null},{"id":31678,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31679,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31680,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":31681,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-01 17:45:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6658,"items_count":13} 
[2026-04-01 17:45:51] local.INFO: PosOrderController::update - Processing items {"items_count":13,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31669,"menu_item_id":106,"quantity":1},{"id":31670,"menu_item_id":397,"quantity":300},{"id":31671,"menu_item_id":105,"quantity":1},{"id":31672,"menu_item_id":65,"quantity":2},{"id":31673,"menu_item_id":396,"quantity":2},{"id":31674,"menu_item_id":50,"quantity":2},{"id":31675,"menu_item_id":54,"quantity":1},{"id":31676,"menu_item_id":56,"quantity":1},{"id":31677,"menu_item_id":57,"quantity":1},{"id":31678,"menu_item_id":61,"quantity":2},{"id":31679,"menu_item_id":5,"quantity":1},{"id":31680,"menu_item_id":13,"quantity":1},{"id":31681,"menu_item_id":3,"quantity":1}]} 
[2026-04-01 17:45:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6658,"has_item_changes":false,"old_items_count":13,"new_items_count":13,"old_items_map_keys":["106|1|","397|300|","105|1|","65|2|","396|2|","50|2|","54|1|","56|1|","57|1|","61|2|","5|1|","13|1|","3|1|"],"new_items_map_keys":["106|1|","397|300|","105|1|","65|2|","396|2|","50|2|","54|1|","56|1|","57|1|","61|2|","5|1|","13|1|","3|1|"]} 
[2026-04-01 17:45:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6658,"order_number":"AZS-010426-008"} 
[2026-04-01 17:45:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6658,"order_number":"AZS-010426-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 17:45:51"} 
[2026-04-01 17:46:57] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6655,"order_number":"AZS-010426-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 17:46:57"} 
[2026-04-01 17:46:57] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6655,"order_number":"AZS-010426-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 17:46:57"} 
[2026-04-01 17:46:57] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6655,"order_number":"AZS-010426-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 17:46:57"} 
[2026-04-01 17:46:57] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6655,"order_number":"AZS-010426-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 17:46:57"} 
[2026-04-01 17:46:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":6655,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":31643},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":31644},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31646},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31647},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31648},{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":31649}],"validated_items":[{"id":31643,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":31644,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":31646,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31647,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31648,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":31649,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-01 17:46:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6655,"items_count":6} 
[2026-04-01 17:46:57] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[31645],"items":[{"id":31643,"menu_item_id":99,"quantity":1},{"id":31644,"menu_item_id":396,"quantity":3},{"id":31646,"menu_item_id":56,"quantity":1},{"id":31647,"menu_item_id":5,"quantity":1},{"id":31648,"menu_item_id":3,"quantity":1},{"id":31649,"menu_item_id":13,"quantity":3}]} 
[2026-04-01 17:46:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6655,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["99|1|","396|3|","61|1|","56|1|","5|1|","3|1|","13|3|"],"new_items_map_keys":["99|1|","396|3|","56|1|","5|1|","3|1|","13|3|"]} 
[2026-04-01 17:46:57] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6655,"order_number":"AZS-010426-010","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":4000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-01 17:46:57","original_payment_amount":"0.00","grand_total":3982.0,"timestamp":"2026-04-01 17:46:57"} 
[2026-04-01 17:46:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6655,"order_number":"AZS-010426-010"} 
[2026-04-01 17:46:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-010","replaced_order_id":6655} 
[2026-04-01 17:46:57] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6655,"new_order_id":6659,"order_number":"AZS-010426-010","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"4000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-01 17:46:57","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-01 17:46:57"} 
[2026-04-01 17:46:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6659,"items_count":6,"items":[{"menu_item_id":99,"quantity":1,"price":2299.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0},{"menu_item_id":13,"quantity":3,"price":249.0}]} 
[2026-04-01 17:46:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6659,"item_index":0,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6659}} 
[2026-04-01 17:46:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6659,"item_index":0,"menu_item_id":99} 
[2026-04-01 17:46:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6659,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6659}} 
[2026-04-01 17:46:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6659,"item_index":1,"menu_item_id":396} 
[2026-04-01 17:46:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6659,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6659}} 
[2026-04-01 17:46:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6659,"item_index":2,"menu_item_id":56} 
[2026-04-01 17:46:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6659,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6659}} 
[2026-04-01 17:46:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6659,"item_index":3,"menu_item_id":5} 
[2026-04-01 17:46:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6659,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6659}} 
[2026-04-01 17:46:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6659,"item_index":4,"menu_item_id":3} 
[2026-04-01 17:46:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6659,"item_index":5,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6659}} 
[2026-04-01 17:46:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6659,"item_index":5,"menu_item_id":13} 
[2026-04-01 17:46:58] local.ERROR: Error tracking recipe usage for order 6659: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6659, 99, 77, 1, 1, 0.00, Order #AZS-010426-010 - 1x Chicken White - Full, 2026-04-01 17:46:58, 2026-04-01 17:46:58))  
[2026-04-01 17:46:58] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6655,"new_order_id":6659,"order_number":"AZS-010426-010"} 
[2026-04-01 17:46:58] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6655,"new_order_id":6659,"order_number":"AZS-010426-010","route":"api/orders/6655"} 
[2026-04-01 17:47:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T05:47:03.421Z","date_to":"2026-04-01T17:47:03.421Z","per_page":"100"} 
[2026-04-01 17:47:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T05:47:03.401Z","date_to":"2026-04-01T17:47:03.401Z","per_page":"100"} 
[2026-04-01 17:47:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":4,"unique_order_numbers":13} 
[2026-04-01 17:47:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":4,"unique_order_numbers":13} 
[2026-04-01 17:47:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T05:47:03.401Z","date_to":"2026-04-01T17:47:03.401Z","per_page":"100"} 
[2026-04-01 17:47:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":4,"unique_order_numbers":13} 
[2026-04-01 17:52:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6650,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":31609},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":31610},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":31611},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":31612},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31613},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31614},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31615},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":31609,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":31610,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":31611,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":31612,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":31613,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31614,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31615,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-01 17:52:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6650,"items_count":8} 
[2026-04-01 17:52:54] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31609,"menu_item_id":106,"quantity":1},{"id":31610,"menu_item_id":65,"quantity":1},{"id":31611,"menu_item_id":396,"quantity":2},{"id":31612,"menu_item_id":50,"quantity":2},{"id":31613,"menu_item_id":61,"quantity":1},{"id":31614,"menu_item_id":56,"quantity":1},{"id":31615,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-04-01 17:52:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6650,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["106|1|","65|1|","396|2|","50|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["106|1|","65|1|","396|2|","50|2|","61|1|","56|1|","5|1|","13|2|"]} 
[2026-04-01 17:52:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6650,"order_number":"AZS-010426-011"} 
[2026-04-01 17:52:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-011","replaced_order_id":6650} 
[2026-04-01 17:52:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6662,"items_count":8,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"}]} 
[2026-04-01 17:52:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6662,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6662}} 
[2026-04-01 17:52:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6662,"item_index":0,"menu_item_id":106} 
[2026-04-01 17:52:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6662,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6662}} 
[2026-04-01 17:52:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6662,"item_index":1,"menu_item_id":65} 
[2026-04-01 17:52:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6662,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6662}} 
[2026-04-01 17:52:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6662,"item_index":2,"menu_item_id":396} 
[2026-04-01 17:52:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6662,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6662}} 
[2026-04-01 17:52:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6662,"item_index":3,"menu_item_id":50} 
[2026-04-01 17:52:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6662,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6662}} 
[2026-04-01 17:52:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6662,"item_index":4,"menu_item_id":61} 
[2026-04-01 17:52:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6662,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6662}} 
[2026-04-01 17:52:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6662,"item_index":5,"menu_item_id":56} 
[2026-04-01 17:52:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6662,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6662}} 
[2026-04-01 17:52:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6662,"item_index":6,"menu_item_id":5} 
[2026-04-01 17:52:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6662,"item_index":7,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6662}} 
[2026-04-01 17:52:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6662,"item_index":7,"menu_item_id":13} 
[2026-04-01 17:52:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6650,"new_order_id":6662,"order_number":"AZS-010426-011"} 
[2026-04-01 17:57:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6654,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":31637},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31638},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":31639},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31640},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31641},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31642}],"validated_items":[{"id":31637,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null},{"id":31638,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31639,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":31640,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31641,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31642,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-01 17:57:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6654,"items_count":6} 
[2026-04-01 17:57:49] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31637,"menu_item_id":385,"quantity":1},{"id":31638,"menu_item_id":96,"quantity":1},{"id":31639,"menu_item_id":50,"quantity":2},{"id":31640,"menu_item_id":61,"quantity":1},{"id":31641,"menu_item_id":56,"quantity":1},{"id":31642,"menu_item_id":5,"quantity":1}]} 
[2026-04-01 17:57:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6654,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["385|1|","96|1|","50|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["385|1|","96|1|","50|2|","61|1|","56|1|","5|1|"]} 
[2026-04-01 17:57:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6654,"order_number":"AZS-010426-012"} 
[2026-04-01 17:57:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6654,"order_number":"AZS-010426-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 17:57:49"} 
[2026-04-01 18:00:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6654,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":31637},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31638},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":31639},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31640},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31641},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31642}],"validated_items":[{"id":31637,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null},{"id":31638,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31639,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":31640,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31641,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31642,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-01 18:00:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6654,"items_count":6} 
[2026-04-01 18:00:06] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31637,"menu_item_id":385,"quantity":1},{"id":31638,"menu_item_id":96,"quantity":1},{"id":31639,"menu_item_id":50,"quantity":2},{"id":31640,"menu_item_id":61,"quantity":1},{"id":31641,"menu_item_id":56,"quantity":1},{"id":31642,"menu_item_id":5,"quantity":1}]} 
[2026-04-01 18:00:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6654,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["385|1|","96|1|","50|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["385|1|","96|1|","50|2|","61|1|","56|1|","5|1|"]} 
[2026-04-01 18:00:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6654,"order_number":"AZS-010426-012"} 
[2026-04-01 18:00:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6654,"order_number":"AZS-010426-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 18:00:06"} 
[2026-04-01 18:01:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6656,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":31650},{"menu_item_id":71,"quantity":1,"discount_percent":0,"notes":null,"id":31651},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":31652},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":31653},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31654},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31655},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31656},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31650,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":31651,"menu_item_id":71,"quantity":1,"discount_percent":0,"notes":null},{"id":31652,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":31653,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":31654,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31655,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31656,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-01 18:01:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6656,"items_count":8} 
[2026-04-01 18:01:04] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31650,"menu_item_id":95,"quantity":1},{"id":31651,"menu_item_id":71,"quantity":1},{"id":31652,"menu_item_id":396,"quantity":1},{"id":31653,"menu_item_id":50,"quantity":2},{"id":31654,"menu_item_id":61,"quantity":1},{"id":31655,"menu_item_id":56,"quantity":1},{"id":31656,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-01 18:01:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6656,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["95|1|","71|1|","396|1|","50|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["95|1|","71|1|","396|1|","50|2|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-04-01 18:01:04] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6656,"order_number":"AZS-010426-013"} 
[2026-04-01 18:01:04] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-013","replaced_order_id":6656} 
[2026-04-01 18:01:04] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6663,"items_count":8,"items":[{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":71,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-01 18:01:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6663,"item_index":0,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6663}} 
[2026-04-01 18:01:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6663,"item_index":0,"menu_item_id":95} 
[2026-04-01 18:01:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6663,"item_index":1,"item_data":{"menu_item_id":71,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Special Afghani Boti (10 pcs)","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6663}} 
[2026-04-01 18:01:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6663,"item_index":1,"menu_item_id":71} 
[2026-04-01 18:01:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6663,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6663}} 
[2026-04-01 18:01:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6663,"item_index":2,"menu_item_id":396} 
[2026-04-01 18:01:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6663,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6663}} 
[2026-04-01 18:01:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6663,"item_index":3,"menu_item_id":50} 
[2026-04-01 18:01:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6663,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6663}} 
[2026-04-01 18:01:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6663,"item_index":4,"menu_item_id":61} 
[2026-04-01 18:01:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6663,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6663}} 
[2026-04-01 18:01:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6663,"item_index":5,"menu_item_id":56} 
[2026-04-01 18:01:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6663,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6663}} 
[2026-04-01 18:01:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6663,"item_index":6,"menu_item_id":5} 
[2026-04-01 18:01:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6663,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6663}} 
[2026-04-01 18:01:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6663,"item_index":7,"menu_item_id":3} 
[2026-04-01 18:01:04] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6656,"new_order_id":6663,"order_number":"AZS-010426-013"} 
[2026-04-01 18:01:26] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6654,"order_number":"AZS-010426-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 18:01:26"} 
[2026-04-01 18:01:26] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6654,"order_number":"AZS-010426-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 18:01:26"} 
[2026-04-01 18:01:26] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6654,"order_number":"AZS-010426-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 18:01:26"} 
[2026-04-01 18:01:26] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6654,"order_number":"AZS-010426-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 18:01:26"} 
[2026-04-01 18:01:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6654,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":31637},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31638},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":31639},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31641},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31642}],"validated_items":[{"id":31637,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null},{"id":31638,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31639,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":31641,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31642,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-01 18:01:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6654,"items_count":5} 
[2026-04-01 18:01:26] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[31640],"items":[{"id":31637,"menu_item_id":385,"quantity":1},{"id":31638,"menu_item_id":96,"quantity":1},{"id":31639,"menu_item_id":50,"quantity":2},{"id":31641,"menu_item_id":56,"quantity":1},{"id":31642,"menu_item_id":5,"quantity":1}]} 
[2026-04-01 18:01:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6654,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["385|1|","96|1|","50|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["385|1|","96|1|","50|2|","56|1|","5|1|"]} 
[2026-04-01 18:01:26] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6654,"order_number":"AZS-010426-012","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-01 18:01:26","original_payment_amount":"0.00","grand_total":4725.0,"timestamp":"2026-04-01 18:01:26"} 
[2026-04-01 18:01:26] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6654,"order_number":"AZS-010426-012"} 
[2026-04-01 18:01:26] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-012","replaced_order_id":6654} 
[2026-04-01 18:01:26] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6654,"new_order_id":6664,"order_number":"AZS-010426-012","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-01 18:01:26","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-01 18:01:26"} 
[2026-04-01 18:01:26] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6664,"items_count":5,"items":[{"menu_item_id":385,"quantity":1,"price":2899.0},{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":50,"quantity":2,"price":129.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-04-01 18:01:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6664,"item_index":0,"item_data":{"menu_item_id":385,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 02","quantity":1,"price":2899.0,"discount_percent":0.0,"discount_amount":0.0,"total":2899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6664}} 
[2026-04-01 18:01:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6664,"item_index":0,"menu_item_id":385} 
[2026-04-01 18:01:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6664,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6664}} 
[2026-04-01 18:01:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6664,"item_index":1,"menu_item_id":96} 
[2026-04-01 18:01:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6664,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6664}} 
[2026-04-01 18:01:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6664,"item_index":2,"menu_item_id":50} 
[2026-04-01 18:01:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6664,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6664}} 
[2026-04-01 18:01:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6664,"item_index":3,"menu_item_id":56} 
[2026-04-01 18:01:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6664,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6664}} 
[2026-04-01 18:01:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6664,"item_index":4,"menu_item_id":5} 
[2026-04-01 18:01:26] local.ERROR: Error tracking recipe usage for order 6664: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6664, 96, 77, 1, 1, 0.00, Order #AZS-010426-012 - 1x Chicken Karahi - Half, 2026-04-01 18:01:26, 2026-04-01 18:01:26))  
[2026-04-01 18:01:26] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6654,"new_order_id":6664,"order_number":"AZS-010426-012"} 
[2026-04-01 18:01:27] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6654,"new_order_id":6664,"order_number":"AZS-010426-012","route":"api/orders/6654"} 
[2026-04-01 18:02:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6662,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":31704},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":31705},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31706},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":31707},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31708},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31709},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31710},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":31711}],"validated_items":[{"id":31704,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":31705,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":31706,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":31707,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":31708,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31709,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31710,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31711,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-01 18:02:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6662,"items_count":8} 
[2026-04-01 18:02:36] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31704,"menu_item_id":106,"quantity":1},{"id":31705,"menu_item_id":65,"quantity":1},{"id":31706,"menu_item_id":396,"quantity":2},{"id":31707,"menu_item_id":50,"quantity":2},{"id":31708,"menu_item_id":61,"quantity":1},{"id":31709,"menu_item_id":56,"quantity":1},{"id":31710,"menu_item_id":5,"quantity":1},{"id":31711,"menu_item_id":13,"quantity":2}]} 
[2026-04-01 18:02:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6662,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["106|1|","65|1|","396|2|","50|2|","61|1|","56|1|","5|1|","13|2|"],"new_items_map_keys":["106|1|","65|1|","396|2|","50|2|","61|1|","56|1|","5|1|","13|2|"]} 
[2026-04-01 18:02:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6662,"order_number":"AZS-010426-011"} 
[2026-04-01 18:02:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6662,"order_number":"AZS-010426-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 18:02:36"} 
[2026-04-01 18:02:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":13,"items_to_remove_count":0,"order_id":6658,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":31669},{"menu_item_id":397,"quantity":300,"price":4,"discount_percent":0,"notes":null,"id":31670},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31671},{"menu_item_id":65,"quantity":2,"price":1299,"discount_percent":0,"notes":null,"id":31672},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31673},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":31674},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":31675},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31676},{"menu_item_id":57,"quantity":1,"price":299,"discount_percent":0,"notes":null,"id":31677},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31678},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31679},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":31680},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31681}],"validated_items":[{"id":31669,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":31670,"menu_item_id":397,"quantity":300,"price":4,"discount_percent":0,"notes":null},{"id":31671,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":31672,"menu_item_id":65,"quantity":2,"price":1299,"discount_percent":0,"notes":null},{"id":31673,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":31674,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":31675,"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":31676,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31677,"menu_item_id":57,"quantity":1,"price":299,"discount_percent":0,"notes":null},{"id":31678,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31679,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31680,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":31681,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-01 18:02:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6658,"items_count":13} 
[2026-04-01 18:02:58] local.INFO: PosOrderController::update - Processing items {"items_count":13,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31669,"menu_item_id":106,"quantity":1},{"id":31670,"menu_item_id":397,"quantity":300},{"id":31671,"menu_item_id":105,"quantity":1},{"id":31672,"menu_item_id":65,"quantity":2},{"id":31673,"menu_item_id":396,"quantity":2},{"id":31674,"menu_item_id":50,"quantity":2},{"id":31675,"menu_item_id":54,"quantity":1},{"id":31676,"menu_item_id":56,"quantity":1},{"id":31677,"menu_item_id":57,"quantity":1},{"id":31678,"menu_item_id":61,"quantity":2},{"id":31679,"menu_item_id":5,"quantity":1},{"id":31680,"menu_item_id":13,"quantity":1},{"id":31681,"menu_item_id":3,"quantity":1}]} 
[2026-04-01 18:02:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6658,"has_item_changes":false,"old_items_count":13,"new_items_count":13,"old_items_map_keys":["106|1|","397|300|","105|1|","65|2|","396|2|","50|2|","54|1|","56|1|","57|1|","61|2|","5|1|","13|1|","3|1|"],"new_items_map_keys":["106|1|","397|300|","105|1|","65|2|","396|2|","50|2|","54|1|","56|1|","57|1|","61|2|","5|1|","13|1|","3|1|"]} 
[2026-04-01 18:02:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6658,"order_number":"AZS-010426-008"} 
[2026-04-01 18:02:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6658,"order_number":"AZS-010426-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 18:02:58"} 
[2026-04-01 18:11:56] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6658,"order_number":"AZS-010426-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":13000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 18:11:56"} 
[2026-04-01 18:11:56] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6658,"order_number":"AZS-010426-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":13000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 18:11:56"} 
[2026-04-01 18:11:56] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6658,"order_number":"AZS-010426-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":13000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 18:11:56"} 
[2026-04-01 18:11:56] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6658,"order_number":"AZS-010426-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":13000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 18:11:56"} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":13,"items_to_remove_count":0,"order_id":6658,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":31669},{"menu_item_id":397,"quantity":300,"price":4,"discount_percent":0,"notes":null,"id":31670},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31671},{"menu_item_id":65,"quantity":2,"price":1299,"discount_percent":0,"notes":null,"id":31672},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31673},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":31674},{"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":31675},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31676},{"menu_item_id":57,"quantity":1,"price":299,"discount_percent":0,"notes":null,"id":31677},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31678},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31679},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":31680},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31681}],"validated_items":[{"id":31669,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":31670,"menu_item_id":397,"quantity":300,"price":4,"discount_percent":0,"notes":null},{"id":31671,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":31672,"menu_item_id":65,"quantity":2,"price":1299,"discount_percent":0,"notes":null},{"id":31673,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":31674,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":31675,"menu_item_id":54,"quantity":1,"price":159,"discount_percent":0,"notes":null},{"id":31676,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31677,"menu_item_id":57,"quantity":1,"price":299,"discount_percent":0,"notes":null},{"id":31678,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31679,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31680,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":31681,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6658,"items_count":13} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Processing items {"items_count":13,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31669,"menu_item_id":106,"quantity":1},{"id":31670,"menu_item_id":397,"quantity":300},{"id":31671,"menu_item_id":105,"quantity":1},{"id":31672,"menu_item_id":65,"quantity":2},{"id":31673,"menu_item_id":396,"quantity":2},{"id":31674,"menu_item_id":50,"quantity":2},{"id":31675,"menu_item_id":54,"quantity":1},{"id":31676,"menu_item_id":56,"quantity":1},{"id":31677,"menu_item_id":57,"quantity":1},{"id":31678,"menu_item_id":61,"quantity":1},{"id":31679,"menu_item_id":5,"quantity":1},{"id":31680,"menu_item_id":13,"quantity":1},{"id":31681,"menu_item_id":3,"quantity":1}]} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Item changes check {"order_id":6658,"has_item_changes":true,"old_items_count":13,"new_items_count":13,"old_items_map_keys":["106|1|","397|300|","105|1|","65|2|","396|2|","50|2|","54|1|","56|1|","57|1|","61|2|","5|1|","13|1|","3|1|"],"new_items_map_keys":["106|1|","397|300|","105|1|","65|2|","396|2|","50|2|","54|1|","56|1|","57|1|","61|1|","5|1|","13|1|","3|1|"]} 
[2026-04-01 18:11:56] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6658,"order_number":"AZS-010426-008","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":13000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-01 18:11:56","original_payment_amount":"0.00","grand_total":12197.0,"timestamp":"2026-04-01 18:11:56"} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6658,"order_number":"AZS-010426-008"} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-008","replaced_order_id":6658} 
[2026-04-01 18:11:56] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6658,"new_order_id":6666,"order_number":"AZS-010426-008","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"13000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-01 18:11:56","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":13000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-01 18:11:56"} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6666,"items_count":13,"items":[{"menu_item_id":106,"quantity":1,"price":4199.0},{"menu_item_id":397,"quantity":300,"price":4.0},{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":65,"quantity":2,"price":1299.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":50,"quantity":2,"price":129.0},{"menu_item_id":54,"quantity":1,"price":159.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":57,"quantity":1,"price":299.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":13,"quantity":1,"price":249.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6666,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":4199.0,"discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6666}} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6666,"item_index":0,"menu_item_id":106} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6666,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":300,"price":4.0,"discount_percent":0.0,"discount_amount":0.0,"total":1200.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6666}} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6666,"item_index":1,"menu_item_id":397} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6666,"item_index":2,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6666}} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6666,"item_index":2,"menu_item_id":105} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6666,"item_index":3,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":2,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6666}} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6666,"item_index":3,"menu_item_id":65} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6666,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6666}} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6666,"item_index":4,"menu_item_id":396} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6666,"item_index":5,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6666}} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6666,"item_index":5,"menu_item_id":50} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6666,"item_index":6,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":1,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6666}} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6666,"item_index":6,"menu_item_id":54} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6666,"item_index":7,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6666}} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6666,"item_index":7,"menu_item_id":56} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6666,"item_index":8,"item_data":{"menu_item_id":57,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Cachumber Salad","quantity":1,"price":299.0,"discount_percent":0.0,"discount_amount":0.0,"total":299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6666}} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6666,"item_index":8,"menu_item_id":57} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6666,"item_index":9,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6666}} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6666,"item_index":9,"menu_item_id":61} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6666,"item_index":10,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6666}} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6666,"item_index":10,"menu_item_id":5} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6666,"item_index":11,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6666}} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6666,"item_index":11,"menu_item_id":13} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6666,"item_index":12,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6666}} 
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6666,"item_index":12,"menu_item_id":3} 
[2026-04-01 18:11:56] local.ERROR: Error tracking recipe usage for order 6666: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6666, 106, 196, 1, 1, 0.00, Order #AZS-010426-008 - 1x Mutton Shinwari - Full, 2026-04-01 18:11:56, 2026-04-01 18:11:56))  
[2026-04-01 18:11:56] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6658,"new_order_id":6666,"order_number":"AZS-010426-008"} 
[2026-04-01 18:11:56] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6658,"new_order_id":6666,"order_number":"AZS-010426-008","route":"api/orders/6658"} 
[2026-04-01 18:12:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6660,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":2,"discount_percent":0,"notes":null,"id":31688},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":31689},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":31690},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null,"id":31691},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31692},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":31693},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31694},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":31688,"menu_item_id":97,"quantity":2,"discount_percent":0,"notes":null},{"id":31689,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":31690,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":31691,"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null},{"id":31692,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31693,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":31694,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-01 18:12:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6660,"items_count":8} 
[2026-04-01 18:12:55] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31688,"menu_item_id":97,"quantity":2},{"id":31689,"menu_item_id":62,"quantity":1},{"id":31690,"menu_item_id":396,"quantity":4},{"id":31691,"menu_item_id":50,"quantity":4},{"id":31692,"menu_item_id":61,"quantity":2},{"id":31693,"menu_item_id":56,"quantity":2},{"id":31694,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":29,"quantity":2}]} 
[2026-04-01 18:12:55] local.INFO: PosOrderController::update - Item changes check {"order_id":6660,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["97|2|","62|1|","396|4|","50|4|","61|2|","56|2|","5|1|"],"new_items_map_keys":["97|2|","62|1|","396|4|","50|4|","61|2|","56|2|","5|1|","29|2|"]} 
[2026-04-01 18:12:55] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6660,"order_number":"AZS-010426-014"} 
[2026-04-01 18:12:55] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-014","replaced_order_id":6660} 
[2026-04-01 18:12:55] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6668,"items_count":8,"items":[{"menu_item_id":97,"quantity":2,"price":"2299.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":50,"quantity":4,"price":"129.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":29,"quantity":2,"price":"250.00"}]} 
[2026-04-01 18:12:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6668,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6668}} 
[2026-04-01 18:12:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6668,"item_index":0,"menu_item_id":97} 
[2026-04-01 18:12:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6668,"item_index":1,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6668}} 
[2026-04-01 18:12:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6668,"item_index":1,"menu_item_id":62} 
[2026-04-01 18:12:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6668,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6668}} 
[2026-04-01 18:12:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6668,"item_index":2,"menu_item_id":396} 
[2026-04-01 18:12:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6668,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6668}} 
[2026-04-01 18:12:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6668,"item_index":3,"menu_item_id":50} 
[2026-04-01 18:12:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6668,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6668}} 
[2026-04-01 18:12:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6668,"item_index":4,"menu_item_id":61} 
[2026-04-01 18:12:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6668,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6668}} 
[2026-04-01 18:12:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6668,"item_index":5,"menu_item_id":56} 
[2026-04-01 18:12:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6668,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6668}} 
[2026-04-01 18:12:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6668,"item_index":6,"menu_item_id":5} 
[2026-04-01 18:12:55] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6668,"item_index":7,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6668}} 
[2026-04-01 18:12:55] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6668,"item_index":7,"menu_item_id":29} 
[2026-04-01 18:12:55] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6660,"new_order_id":6668,"order_number":"AZS-010426-014"} 
[2026-04-01 18:16:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6669,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":136,"quantity":1,"discount_percent":0,"notes":null,"id":31752}],"validated_items":[{"id":31752,"menu_item_id":136,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-01 18:16:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6669,"items_count":1} 
[2026-04-01 18:16:16] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31752,"menu_item_id":136,"quantity":1}]} 
[2026-04-01 18:16:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6669,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["136|1|"],"new_items_map_keys":["136|1|"]} 
[2026-04-01 18:16:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6669,"order_number":"AZS-010426-018"} 
[2026-04-01 18:16:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6669,"order_number":"AZS-010426-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-04-01 18:16:16"} 
[2026-04-01 18:20:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6662,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":31704},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":31705},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31706},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":31707},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31708},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31709},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31710},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":31711}],"validated_items":[{"id":31704,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":31705,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":31706,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":31707,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":31708,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31709,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31710,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31711,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-01 18:20:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6662,"items_count":8} 
[2026-04-01 18:20:37] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31704,"menu_item_id":106,"quantity":1},{"id":31705,"menu_item_id":65,"quantity":1},{"id":31706,"menu_item_id":396,"quantity":2},{"id":31707,"menu_item_id":50,"quantity":2},{"id":31708,"menu_item_id":61,"quantity":1},{"id":31709,"menu_item_id":56,"quantity":1},{"id":31710,"menu_item_id":5,"quantity":1},{"id":31711,"menu_item_id":13,"quantity":2}]} 
[2026-04-01 18:20:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6662,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["106|1|","65|1|","396|2|","50|2|","61|1|","56|1|","5|1|","13|2|"],"new_items_map_keys":["106|1|","65|1|","396|2|","50|2|","61|1|","56|1|","5|1|","13|2|"]} 
[2026-04-01 18:20:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6662,"order_number":"AZS-010426-011"} 
[2026-04-01 18:20:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6662,"order_number":"AZS-010426-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 18:20:37"} 
[2026-04-01 18:21:12] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6662,"order_number":"AZS-010426-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 18:21:12"} 
[2026-04-01 18:21:12] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6662,"order_number":"AZS-010426-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 18:21:12"} 
[2026-04-01 18:21:12] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6662,"order_number":"AZS-010426-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 18:21:12"} 
[2026-04-01 18:21:12] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6662,"order_number":"AZS-010426-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 18:21:12"} 
[2026-04-01 18:21:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":1,"order_id":6662,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":31704},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":31705},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31706},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":31707},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31709},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31710},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":31711}],"validated_items":[{"id":31704,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":31705,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":31706,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":31707,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":31709,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31710,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31711,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-01 18:21:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6662,"items_count":7} 
[2026-04-01 18:21:12] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":1,"items_to_remove":[31708],"items":[{"id":31704,"menu_item_id":106,"quantity":1},{"id":31705,"menu_item_id":65,"quantity":1},{"id":31706,"menu_item_id":396,"quantity":2},{"id":31707,"menu_item_id":50,"quantity":2},{"id":31709,"menu_item_id":56,"quantity":1},{"id":31710,"menu_item_id":5,"quantity":1},{"id":31711,"menu_item_id":13,"quantity":2}]} 
[2026-04-01 18:21:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6662,"has_item_changes":true,"old_items_count":8,"new_items_count":7,"old_items_map_keys":["106|1|","65|1|","396|2|","50|2|","61|1|","56|1|","5|1|","13|2|"],"new_items_map_keys":["106|1|","65|1|","396|2|","50|2|","56|1|","5|1|","13|2|"]} 
[2026-04-01 18:21:12] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6662,"order_number":"AZS-010426-011","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":10000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-01 18:21:12","original_payment_amount":"0.00","grand_total":6821.0,"timestamp":"2026-04-01 18:21:12"} 
[2026-04-01 18:21:12] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6662,"order_number":"AZS-010426-011"} 
[2026-04-01 18:21:12] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-011","replaced_order_id":6662} 
[2026-04-01 18:21:12] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6662,"new_order_id":6671,"order_number":"AZS-010426-011","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"10000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-01 18:21:12","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-01 18:21:12"} 
[2026-04-01 18:21:12] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6671,"items_count":7,"items":[{"menu_item_id":106,"quantity":1,"price":4199.0},{"menu_item_id":65,"quantity":1,"price":1299.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":50,"quantity":2,"price":129.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":13,"quantity":2,"price":249.0}]} 
[2026-04-01 18:21:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6671,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":4199.0,"discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6671}} 
[2026-04-01 18:21:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6671,"item_index":0,"menu_item_id":106} 
[2026-04-01 18:21:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6671,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6671}} 
[2026-04-01 18:21:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6671,"item_index":1,"menu_item_id":65} 
[2026-04-01 18:21:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6671,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6671}} 
[2026-04-01 18:21:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6671,"item_index":2,"menu_item_id":396} 
[2026-04-01 18:21:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6671,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6671}} 
[2026-04-01 18:21:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6671,"item_index":3,"menu_item_id":50} 
[2026-04-01 18:21:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6671,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6671}} 
[2026-04-01 18:21:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6671,"item_index":4,"menu_item_id":56} 
[2026-04-01 18:21:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6671,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6671}} 
[2026-04-01 18:21:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6671,"item_index":5,"menu_item_id":5} 
[2026-04-01 18:21:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6671,"item_index":6,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6671}} 
[2026-04-01 18:21:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6671,"item_index":6,"menu_item_id":13} 
[2026-04-01 18:21:12] local.ERROR: Error tracking recipe usage for order 6671: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6671, 106, 196, 1, 1, 0.00, Order #AZS-010426-011 - 1x Mutton Shinwari - Full, 2026-04-01 18:21:12, 2026-04-01 18:21:12))  
[2026-04-01 18:21:12] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6662,"new_order_id":6671,"order_number":"AZS-010426-011"} 
[2026-04-01 18:21:13] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6662,"new_order_id":6671,"order_number":"AZS-010426-011","route":"api/orders/6662"} 
[2026-04-01 18:21:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T06:21:19.035Z","date_to":"2026-04-01T18:21:19.035Z","per_page":"100"} 
[2026-04-01 18:21:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":7,"unique_order_numbers":19} 
[2026-04-01 18:21:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T06:21:19.020Z","date_to":"2026-04-01T18:21:19.020Z","per_page":"100"} 
[2026-04-01 18:21:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":7,"unique_order_numbers":19} 
[2026-04-01 18:21:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T06:21:19.020Z","date_to":"2026-04-01T18:21:19.020Z","per_page":"100"} 
[2026-04-01 18:21:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":7,"unique_order_numbers":19} 
[2026-04-01 18:23:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T06:23:34.164Z","date_to":"2026-04-01T18:23:34.164Z","per_page":"100"} 
[2026-04-01 18:23:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T06:23:34.177Z","date_to":"2026-04-01T18:23:34.177Z","per_page":"100"} 
[2026-04-01 18:23:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":8,"unique_order_numbers":20} 
[2026-04-01 18:23:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":8,"unique_order_numbers":20} 
[2026-04-01 18:23:35] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T06:23:34.164Z","date_to":"2026-04-01T18:23:34.164Z","per_page":"100"} 
[2026-04-01 18:23:35] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":8,"unique_order_numbers":20} 
[2026-04-01 18:26:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6663,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":31712},{"menu_item_id":71,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31713},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":31714},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":31715},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31716},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31717},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31718},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31719}],"validated_items":[{"id":31712,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":31713,"menu_item_id":71,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31714,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":31715,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":31716,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31717,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31718,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31719,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-01 18:26:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6663,"items_count":8} 
[2026-04-01 18:26:16] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31712,"menu_item_id":95,"quantity":1},{"id":31713,"menu_item_id":71,"quantity":1},{"id":31714,"menu_item_id":396,"quantity":1},{"id":31715,"menu_item_id":50,"quantity":1},{"id":31716,"menu_item_id":61,"quantity":1},{"id":31717,"menu_item_id":56,"quantity":1},{"id":31718,"menu_item_id":5,"quantity":1},{"id":31719,"menu_item_id":3,"quantity":1}]} 
[2026-04-01 18:26:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6663,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["95|1|","71|1|","396|1|","50|2|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["95|1|","71|1|","396|1|","50|1|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-04-01 18:26:16] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6663,"order_number":"AZS-010426-013"} 
[2026-04-01 18:26:16] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-013","replaced_order_id":6663} 
[2026-04-01 18:26:16] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6673,"items_count":8,"items":[{"menu_item_id":95,"quantity":1,"price":1999.0},{"menu_item_id":71,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":50,"quantity":1,"price":129.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-04-01 18:26:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6673,"item_index":0,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":1999.0,"discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6673}} 
[2026-04-01 18:26:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6673,"item_index":0,"menu_item_id":95} 
[2026-04-01 18:26:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6673,"item_index":1,"item_data":{"menu_item_id":71,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Special Afghani Boti (10 pcs)","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6673}} 
[2026-04-01 18:26:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6673,"item_index":1,"menu_item_id":71} 
[2026-04-01 18:26:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6673,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6673}} 
[2026-04-01 18:26:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6673,"item_index":2,"menu_item_id":396} 
[2026-04-01 18:26:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6673,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6673}} 
[2026-04-01 18:26:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6673,"item_index":3,"menu_item_id":50} 
[2026-04-01 18:26:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6673,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6673}} 
[2026-04-01 18:26:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6673,"item_index":4,"menu_item_id":61} 
[2026-04-01 18:26:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6673,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6673}} 
[2026-04-01 18:26:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6673,"item_index":5,"menu_item_id":56} 
[2026-04-01 18:26:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6673,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6673}} 
[2026-04-01 18:26:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6673,"item_index":6,"menu_item_id":5} 
[2026-04-01 18:26:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6673,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6673}} 
[2026-04-01 18:26:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6673,"item_index":7,"menu_item_id":3} 
[2026-04-01 18:26:16] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6663,"new_order_id":6673,"order_number":"AZS-010426-013"} 
[2026-04-01 18:26:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6673,"item_index":0,"item_id":31712} 
[2026-04-01 18:26:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6673,"item_index":1,"item_id":31713} 
[2026-04-01 18:26:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6673,"item_index":2,"item_id":31714} 
[2026-04-01 18:26:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6673,"item_index":3,"item_id":31715} 
[2026-04-01 18:26:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6673,"item_index":4,"item_id":31716} 
[2026-04-01 18:26:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6673,"item_index":5,"item_id":31717} 
[2026-04-01 18:26:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6673,"item_index":6,"item_id":31718} 
[2026-04-01 18:26:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6673,"item_index":7,"item_id":31719} 
[2026-04-01 18:26:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":8,"order_id":6673,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":31712},{"menu_item_id":71,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31713},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":31714},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":31715},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31716},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31717},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31718},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31719}],"validated_items":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":71,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-01 18:26:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6673,"items_count":8} 
[2026-04-01 18:26:27] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":8,"items_to_remove":[31774,31775,31776,31777,31778,31779,31780,31781],"items":[{"id":null,"menu_item_id":95,"quantity":1},{"id":null,"menu_item_id":71,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-01 18:26:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6673,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["95|1|","71|1|","396|1|","50|1|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["95|1|","71|1|","396|1|","50|1|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-04-01 18:26:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6673,"order_number":"AZS-010426-013"} 
[2026-04-01 18:26:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6673,"order_number":"AZS-010426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 18:26:27"} 
[2026-04-01 18:28:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6673,"item_index":0,"item_id":31712} 
[2026-04-01 18:28:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6673,"item_index":1,"item_id":31713} 
[2026-04-01 18:28:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6673,"item_index":2,"item_id":31714} 
[2026-04-01 18:28:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6673,"item_index":3,"item_id":31715} 
[2026-04-01 18:28:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6673,"item_index":4,"item_id":31716} 
[2026-04-01 18:28:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6673,"item_index":5,"item_id":31717} 
[2026-04-01 18:28:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6673,"item_index":6,"item_id":31718} 
[2026-04-01 18:28:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6673,"item_index":7,"item_id":31719} 
[2026-04-01 18:28:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":8,"order_id":6673,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":31712},{"menu_item_id":71,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31713},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":31714},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":31715},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31716},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31717},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31718},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31719}],"validated_items":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":71,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-01 18:28:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6673,"items_count":8} 
[2026-04-01 18:28:05] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":8,"items_to_remove":[31774,31775,31776,31777,31778,31779,31780,31781],"items":[{"id":null,"menu_item_id":95,"quantity":1},{"id":null,"menu_item_id":71,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-01 18:28:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6673,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["95|1|","71|1|","396|1|","50|1|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["95|1|","71|1|","396|1|","50|1|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-04-01 18:28:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6673,"order_number":"AZS-010426-013"} 
[2026-04-01 18:28:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6673,"order_number":"AZS-010426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 18:28:05"} 
[2026-04-01 18:31:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6673,"item_index":0,"item_id":31712} 
[2026-04-01 18:31:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6673,"item_index":1,"item_id":31713} 
[2026-04-01 18:31:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6673,"item_index":2,"item_id":31714} 
[2026-04-01 18:31:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6673,"item_index":3,"item_id":31715} 
[2026-04-01 18:31:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6673,"item_index":4,"item_id":31716} 
[2026-04-01 18:31:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6673,"item_index":5,"item_id":31717} 
[2026-04-01 18:31:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6673,"item_index":6,"item_id":31718} 
[2026-04-01 18:31:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6673,"item_index":7,"item_id":31719} 
[2026-04-01 18:31:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6673,"order_number":"AZS-010426-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4264,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 18:31:27"} 
[2026-04-01 18:31:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6673,"order_number":"AZS-010426-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4264,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 18:31:27"} 
[2026-04-01 18:31:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6673,"order_number":"AZS-010426-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4264,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 18:31:27"} 
[2026-04-01 18:31:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6673,"order_number":"AZS-010426-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4264,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 18:31:27"} 
[2026-04-01 18:31:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":8,"order_id":6673,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":31712},{"menu_item_id":71,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31713},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":31714},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":31715},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31716},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31717},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31718},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31719}],"validated_items":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":71,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-01 18:31:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6673,"items_count":8} 
[2026-04-01 18:31:27] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":8,"items_to_remove":[31774,31775,31776,31777,31778,31779,31780,31781],"items":[{"id":null,"menu_item_id":95,"quantity":1},{"id":null,"menu_item_id":71,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-01 18:31:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6673,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["95|1|","71|1|","396|1|","50|1|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["95|1|","71|1|","396|1|","50|1|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-04-01 18:31:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6673,"order_number":"AZS-010426-013"} 
[2026-04-01 18:31:27] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6673,"order_number":"AZS-010426-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4264,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-01 18:31:27","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-01 18:31:27"} 
[2026-04-01 18:31:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6673,"order_number":"AZS-010426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-01 18:31:27"} 
[2026-04-01 18:31:27] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6673,"order_number":"AZS-010426-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4264.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-01 18:31:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4264,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4264.00","database_verification_match":true,"timestamp":"2026-04-01 18:31:27"} 
[2026-04-01 18:31:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T06:31:33.033Z","date_to":"2026-04-01T18:31:33.033Z","per_page":"100"} 
[2026-04-01 18:31:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T06:31:33.053Z","date_to":"2026-04-01T18:31:33.053Z","per_page":"100"} 
[2026-04-01 18:31:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":7,"unique_order_numbers":20} 
[2026-04-01 18:31:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":7,"unique_order_numbers":20} 
[2026-04-01 18:31:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T06:31:33.033Z","date_to":"2026-04-01T18:31:33.033Z","per_page":"100"} 
[2026-04-01 18:31:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":7,"unique_order_numbers":20} 
[2026-04-01 18:40:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6667,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":9,"quantity":3,"price":229,"discount_percent":0,"notes":null,"id":31742},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":31743}],"validated_items":[{"id":31742,"menu_item_id":9,"quantity":3,"price":229,"discount_percent":0,"notes":null},{"id":31743,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-01 18:40:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6667,"items_count":2} 
[2026-04-01 18:40:58] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31742,"menu_item_id":9,"quantity":3},{"id":31743,"menu_item_id":13,"quantity":1}]} 
[2026-04-01 18:40:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6667,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["9|3|","13|1|"],"new_items_map_keys":["9|3|","13|1|"]} 
[2026-04-01 18:40:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6667,"order_number":"AZS-010426-017"} 
[2026-04-01 18:40:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6667,"order_number":"AZS-010426-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 18:40:58"} 
[2026-04-01 18:42:10] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6667,"order_number":"AZS-010426-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 18:42:10"} 
[2026-04-01 18:42:10] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6667,"order_number":"AZS-010426-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 18:42:10"} 
[2026-04-01 18:42:10] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6667,"order_number":"AZS-010426-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 18:42:10"} 
[2026-04-01 18:42:10] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6667,"order_number":"AZS-010426-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 18:42:10"} 
[2026-04-01 18:42:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6667,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":9,"quantity":3,"price":229,"discount_percent":0,"notes":null,"id":31742},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":31743}],"validated_items":[{"id":31742,"menu_item_id":9,"quantity":3,"price":229,"discount_percent":0,"notes":null},{"id":31743,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-01 18:42:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6667,"items_count":2} 
[2026-04-01 18:42:10] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31742,"menu_item_id":9,"quantity":3},{"id":31743,"menu_item_id":13,"quantity":1}]} 
[2026-04-01 18:42:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6667,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["9|3|","13|1|"],"new_items_map_keys":["9|3|","13|1|"]} 
[2026-04-01 18:42:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6667,"order_number":"AZS-010426-017"} 
[2026-04-01 18:42:10] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6667,"order_number":"AZS-010426-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-01 18:42:10","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-01 18:42:10"} 
[2026-04-01 18:42:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6667,"order_number":"AZS-010426-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-01 18:42:10"} 
[2026-04-01 18:42:10] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6667,"order_number":"AZS-010426-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-01 18:42:10","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-04-01 18:42:10"} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6668,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":2,"discount_percent":0,"notes":null,"id":31744},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":31745},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":31746},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null,"id":31747},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31748},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":31749},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31750},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null,"id":31751},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31744,"menu_item_id":97,"quantity":2,"discount_percent":0,"notes":null},{"id":31745,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":31746,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":31747,"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null},{"id":31748,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31749,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":31750,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":31751,"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6668,"items_count":9} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31744,"menu_item_id":97,"quantity":2},{"id":31745,"menu_item_id":62,"quantity":1},{"id":31746,"menu_item_id":396,"quantity":4},{"id":31747,"menu_item_id":50,"quantity":4},{"id":31748,"menu_item_id":61,"quantity":2},{"id":31749,"menu_item_id":56,"quantity":2},{"id":31750,"menu_item_id":5,"quantity":1},{"id":31751,"menu_item_id":29,"quantity":2},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6668,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["97|2|","62|1|","396|4|","50|4|","61|2|","56|2|","5|1|","29|2|"],"new_items_map_keys":["97|2|","62|1|","396|4|","50|4|","61|2|","56|2|","5|1|","29|2|","3|1|"]} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6668,"order_number":"AZS-010426-014"} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-014","replaced_order_id":6668} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6674,"items_count":9,"items":[{"menu_item_id":97,"quantity":2,"price":"2299.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":50,"quantity":4,"price":"129.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":29,"quantity":2,"price":"250.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6674,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6674}} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6674,"item_index":0,"menu_item_id":97} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6674,"item_index":1,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6674}} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6674,"item_index":1,"menu_item_id":62} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6674,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6674}} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6674,"item_index":2,"menu_item_id":396} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6674,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6674}} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6674,"item_index":3,"menu_item_id":50} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6674,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6674}} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6674,"item_index":4,"menu_item_id":61} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6674,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6674}} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6674,"item_index":5,"menu_item_id":56} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6674,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6674}} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6674,"item_index":6,"menu_item_id":5} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6674,"item_index":7,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6674}} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6674,"item_index":7,"menu_item_id":29} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6674,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6674}} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6674,"item_index":8,"menu_item_id":3} 
[2026-04-01 18:50:08] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6668,"new_order_id":6674,"order_number":"AZS-010426-014"} 
[2026-04-01 18:57:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6674,"item_index":0,"item_id":31744} 
[2026-04-01 18:57:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6674,"item_index":1,"item_id":31745} 
[2026-04-01 18:57:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6674,"item_index":2,"item_id":31746} 
[2026-04-01 18:57:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6674,"item_index":3,"item_id":31747} 
[2026-04-01 18:57:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6674,"item_index":4,"item_id":31748} 
[2026-04-01 18:57:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6674,"item_index":5,"item_id":31749} 
[2026-04-01 18:57:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6674,"item_index":6,"item_id":31750} 
[2026-04-01 18:57:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6674,"item_index":7,"item_id":31751} 
[2026-04-01 18:57:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":9,"order_id":6674,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":31744},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":31745},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":31746},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":31747},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31748},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31749},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31750},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":31751},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":97,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-01 18:57:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6674,"items_count":9} 
[2026-04-01 18:57:21] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":9,"items_to_remove":[31782,31783,31784,31785,31786,31787,31788,31789,31790],"items":[{"id":null,"menu_item_id":97,"quantity":2},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":50,"quantity":4},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":29,"quantity":2},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-01 18:57:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6674,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["97|2|","62|1|","396|4|","50|4|","61|2|","56|2|","5|1|","29|2|","3|1|"],"new_items_map_keys":["97|2|","62|1|","396|4|","50|4|","61|2|","56|2|","5|1|","29|2|","3|1|"]} 
[2026-04-01 18:57:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6674,"order_number":"AZS-010426-014"} 
[2026-04-01 18:57:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6674,"order_number":"AZS-010426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 18:57:21"} 
[2026-04-01 19:01:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6665,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31725},{"menu_item_id":286,"quantity":4,"price":15,"discount_percent":0,"notes":null,"id":31726},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31727},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31728}],"validated_items":[{"id":31725,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31726,"menu_item_id":286,"quantity":4,"price":15,"discount_percent":0,"notes":null},{"id":31727,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31728,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-01 19:01:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6665,"items_count":4} 
[2026-04-01 19:01:21] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31725,"menu_item_id":96,"quantity":1},{"id":31726,"menu_item_id":286,"quantity":4},{"id":31727,"menu_item_id":61,"quantity":1},{"id":31728,"menu_item_id":56,"quantity":1}]} 
[2026-04-01 19:01:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6665,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","286|4|","61|1|","56|1|"],"new_items_map_keys":["96|1|","286|4|","61|1|","56|1|"]} 
[2026-04-01 19:01:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6665,"order_number":"AZS-010426-016"} 
[2026-04-01 19:01:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6665,"order_number":"AZS-010426-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 19:01:21"} 
[2026-04-01 19:02:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6670,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31753},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":31754},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":31755},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":31756},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31757},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31758},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31759}],"validated_items":[{"id":31753,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31754,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":31755,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":31756,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":31757,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31758,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31759,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-01 19:02:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6670,"items_count":7} 
[2026-04-01 19:02:38] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31753,"menu_item_id":96,"quantity":1},{"id":31754,"menu_item_id":65,"quantity":1},{"id":31755,"menu_item_id":396,"quantity":1},{"id":31756,"menu_item_id":50,"quantity":1},{"id":31757,"menu_item_id":61,"quantity":1},{"id":31758,"menu_item_id":56,"quantity":1},{"id":31759,"menu_item_id":5,"quantity":1}]} 
[2026-04-01 19:02:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6670,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["96|1|","65|1|","396|1|","50|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["96|1|","65|1|","396|1|","50|1|","61|1|","56|1|","5|1|"]} 
[2026-04-01 19:02:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6670,"order_number":"AZS-010426-019"} 
[2026-04-01 19:02:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6670,"order_number":"AZS-010426-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 19:02:38"} 
[2026-04-01 19:03:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6670,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":31753},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":31754},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":31755},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":31756},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31757},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31758},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31759},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":31753,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":31754,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":31755,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":31756,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":31757,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31758,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31759,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-01 19:03:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6670,"items_count":8} 
[2026-04-01 19:03:17] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31753,"menu_item_id":96,"quantity":1},{"id":31754,"menu_item_id":65,"quantity":1},{"id":31755,"menu_item_id":396,"quantity":1},{"id":31756,"menu_item_id":50,"quantity":1},{"id":31757,"menu_item_id":61,"quantity":1},{"id":31758,"menu_item_id":56,"quantity":1},{"id":31759,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-04-01 19:03:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6670,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["96|1|","65|1|","396|1|","50|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["96|1|","65|1|","396|1|","50|1|","61|1|","56|1|","5|1|","2|2|"]} 
[2026-04-01 19:03:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6670,"order_number":"AZS-010426-019"} 
[2026-04-01 19:03:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-019","replaced_order_id":6670} 
[2026-04-01 19:03:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6675,"items_count":8,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-04-01 19:03:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6675,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6675}} 
[2026-04-01 19:03:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6675,"item_index":0,"menu_item_id":96} 
[2026-04-01 19:03:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6675,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6675}} 
[2026-04-01 19:03:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6675,"item_index":1,"menu_item_id":65} 
[2026-04-01 19:03:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6675,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6675}} 
[2026-04-01 19:03:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6675,"item_index":2,"menu_item_id":396} 
[2026-04-01 19:03:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6675,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6675}} 
[2026-04-01 19:03:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6675,"item_index":3,"menu_item_id":50} 
[2026-04-01 19:03:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6675,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6675}} 
[2026-04-01 19:03:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6675,"item_index":4,"menu_item_id":61} 
[2026-04-01 19:03:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6675,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6675}} 
[2026-04-01 19:03:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6675,"item_index":5,"menu_item_id":56} 
[2026-04-01 19:03:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6675,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6675}} 
[2026-04-01 19:03:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6675,"item_index":6,"menu_item_id":5} 
[2026-04-01 19:03:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6675,"item_index":7,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6675}} 
[2026-04-01 19:03:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6675,"item_index":7,"menu_item_id":2} 
[2026-04-01 19:03:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6670,"new_order_id":6675,"order_number":"AZS-010426-019"} 
[2026-04-01 19:03:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6675,"item_index":0,"item_id":31753} 
[2026-04-01 19:03:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6675,"item_index":1,"item_id":31754} 
[2026-04-01 19:03:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6675,"item_index":2,"item_id":31755} 
[2026-04-01 19:03:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6675,"item_index":3,"item_id":31756} 
[2026-04-01 19:03:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6675,"item_index":4,"item_id":31757} 
[2026-04-01 19:03:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6675,"item_index":5,"item_id":31758} 
[2026-04-01 19:03:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6675,"item_index":6,"item_id":31759} 
[2026-04-01 19:03:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":8,"order_id":6675,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31753},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":31754},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":31755},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":31756},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31757},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31758},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31759},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-01 19:03:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6675,"items_count":8} 
[2026-04-01 19:03:23] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":8,"items_to_remove":[31791,31792,31793,31794,31795,31796,31797,31798],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-04-01 19:03:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6675,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["96|1|","65|1|","396|1|","50|1|","61|1|","56|1|","5|1|","2|2|"],"new_items_map_keys":["96|1|","65|1|","396|1|","50|1|","61|1|","56|1|","5|1|","2|2|"]} 
[2026-04-01 19:03:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6675,"order_number":"AZS-010426-019"} 
[2026-04-01 19:03:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6675,"order_number":"AZS-010426-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 19:03:23"} 
[2026-04-01 19:05:19] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6665,"order_number":"AZS-010426-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1660,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 19:05:19"} 
[2026-04-01 19:05:19] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6665,"order_number":"AZS-010426-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1660,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 19:05:19"} 
[2026-04-01 19:05:19] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6665,"order_number":"AZS-010426-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1660,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 19:05:19"} 
[2026-04-01 19:05:19] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6665,"order_number":"AZS-010426-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1660,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 19:05:19"} 
[2026-04-01 19:05:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6665,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31725},{"menu_item_id":286,"quantity":4,"price":15,"discount_percent":0,"notes":null,"id":31726},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31727},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31728}],"validated_items":[{"id":31725,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31726,"menu_item_id":286,"quantity":4,"price":15,"discount_percent":0,"notes":null},{"id":31727,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31728,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-01 19:05:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6665,"items_count":4} 
[2026-04-01 19:05:19] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31725,"menu_item_id":96,"quantity":1},{"id":31726,"menu_item_id":286,"quantity":4},{"id":31727,"menu_item_id":61,"quantity":1},{"id":31728,"menu_item_id":56,"quantity":1}]} 
[2026-04-01 19:05:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6665,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","286|4|","61|1|","56|1|"],"new_items_map_keys":["96|1|","286|4|","61|1|","56|1|"]} 
[2026-04-01 19:05:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6665,"order_number":"AZS-010426-016"} 
[2026-04-01 19:05:19] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6665,"order_number":"AZS-010426-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1660,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-01 19:05:19","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-01 19:05:19"} 
[2026-04-01 19:05:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6665,"order_number":"AZS-010426-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-01 19:05:19"} 
[2026-04-01 19:05:19] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6665,"order_number":"AZS-010426-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1660.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-01 19:05:19","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1660,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1660.00","database_verification_match":true,"timestamp":"2026-04-01 19:05:19"} 
[2026-04-01 19:07:02] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6674,"order_number":"AZS-010426-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 19:07:02"} 
[2026-04-01 19:07:02] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6674,"order_number":"AZS-010426-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 19:07:02"} 
[2026-04-01 19:07:02] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6674,"order_number":"AZS-010426-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 19:07:02"} 
[2026-04-01 19:07:02] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6674,"order_number":"AZS-010426-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 19:07:02"} 
[2026-04-01 19:07:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6674,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":31782},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":31783},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":31784},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":31785},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31786},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31787},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31788},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":31789},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31790}],"validated_items":[{"id":31782,"menu_item_id":97,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"id":31783,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":31784,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":31785,"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"id":31786,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31787,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31788,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31789,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":31790,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-01 19:07:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6674,"items_count":9} 
[2026-04-01 19:07:02] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31782,"menu_item_id":97,"quantity":2},{"id":31783,"menu_item_id":62,"quantity":1},{"id":31784,"menu_item_id":396,"quantity":4},{"id":31785,"menu_item_id":50,"quantity":4},{"id":31786,"menu_item_id":61,"quantity":2},{"id":31787,"menu_item_id":56,"quantity":2},{"id":31788,"menu_item_id":5,"quantity":1},{"id":31789,"menu_item_id":29,"quantity":2},{"id":31790,"menu_item_id":3,"quantity":1}]} 
[2026-04-01 19:07:02] local.INFO: PosOrderController::update - Item changes check {"order_id":6674,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["97|2|","62|1|","396|4|","50|4|","61|2|","56|2|","5|1|","29|2|","3|1|"],"new_items_map_keys":["97|2|","62|1|","396|4|","50|4|","61|2|","56|2|","5|1|","29|2|","3|1|"]} 
[2026-04-01 19:07:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6674,"order_number":"AZS-010426-014"} 
[2026-04-01 19:07:02] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6674,"order_number":"AZS-010426-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":10000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-01 19:07:02","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-01 19:07:02"} 
[2026-04-01 19:07:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6674,"order_number":"AZS-010426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-01 19:07:02"} 
[2026-04-01 19:07:02] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6674,"order_number":"AZS-010426-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"10000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-01 19:07:02","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"10000.00","database_verification_match":true,"timestamp":"2026-04-01 19:07:02"} 
[2026-04-01 19:09:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6675,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31791},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":31792},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":31793},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":31794},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31795},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31796},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31797},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":31798}],"validated_items":[{"id":31791,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31792,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":31793,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":31794,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":31795,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31796,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31797,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31798,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-01 19:09:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6675,"items_count":8} 
[2026-04-01 19:09:45] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31791,"menu_item_id":96,"quantity":1},{"id":31792,"menu_item_id":65,"quantity":1},{"id":31793,"menu_item_id":396,"quantity":1},{"id":31794,"menu_item_id":50,"quantity":1},{"id":31795,"menu_item_id":61,"quantity":1},{"id":31796,"menu_item_id":56,"quantity":1},{"id":31797,"menu_item_id":5,"quantity":1},{"id":31798,"menu_item_id":2,"quantity":2}]} 
[2026-04-01 19:09:45] local.INFO: PosOrderController::update - Item changes check {"order_id":6675,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["96|1|","65|1|","396|1|","50|1|","61|1|","56|1|","5|1|","2|2|"],"new_items_map_keys":["96|1|","65|1|","396|1|","50|1|","61|1|","56|1|","5|1|","2|2|"]} 
[2026-04-01 19:09:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6675,"order_number":"AZS-010426-019"} 
[2026-04-01 19:09:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6675,"order_number":"AZS-010426-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 19:09:45"} 
[2026-04-01 19:18:11] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6675,"order_number":"AZS-010426-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 19:18:11"} 
[2026-04-01 19:18:11] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6675,"order_number":"AZS-010426-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 19:18:11"} 
[2026-04-01 19:18:11] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6675,"order_number":"AZS-010426-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 19:18:11"} 
[2026-04-01 19:18:11] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6675,"order_number":"AZS-010426-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 19:18:11"} 
[2026-04-01 19:18:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":1,"order_id":6675,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31791},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":31792},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":31793},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":31794},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31795},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31797},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":31798}],"validated_items":[{"id":31791,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31792,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":31793,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":31794,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":31795,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31797,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31798,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-01 19:18:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6675,"items_count":7} 
[2026-04-01 19:18:11] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":1,"items_to_remove":[31796],"items":[{"id":31791,"menu_item_id":96,"quantity":1},{"id":31792,"menu_item_id":65,"quantity":1},{"id":31793,"menu_item_id":396,"quantity":1},{"id":31794,"menu_item_id":50,"quantity":1},{"id":31795,"menu_item_id":61,"quantity":1},{"id":31797,"menu_item_id":5,"quantity":1},{"id":31798,"menu_item_id":2,"quantity":2}]} 
[2026-04-01 19:18:11] local.INFO: PosOrderController::update - Item changes check {"order_id":6675,"has_item_changes":true,"old_items_count":8,"new_items_count":7,"old_items_map_keys":["96|1|","65|1|","396|1|","50|1|","61|1|","56|1|","5|1|","2|2|"],"new_items_map_keys":["96|1|","65|1|","396|1|","50|1|","61|1|","5|1|","2|2|"]} 
[2026-04-01 19:18:11] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6675,"order_number":"AZS-010426-019","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":4000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-01 19:18:11","original_payment_amount":"0.00","grand_total":3355.0,"timestamp":"2026-04-01 19:18:11"} 
[2026-04-01 19:18:11] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6675,"order_number":"AZS-010426-019"} 
[2026-04-01 19:18:11] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-019","replaced_order_id":6675} 
[2026-04-01 19:18:11] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6675,"new_order_id":6676,"order_number":"AZS-010426-019","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"4000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-01 19:18:11","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-01 19:18:11"} 
[2026-04-01 19:18:11] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6676,"items_count":7,"items":[{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":65,"quantity":1,"price":1299.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":50,"quantity":1,"price":129.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":2,"quantity":2,"price":130.0}]} 
[2026-04-01 19:18:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6676,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6676}} 
[2026-04-01 19:18:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6676,"item_index":0,"menu_item_id":96} 
[2026-04-01 19:18:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6676,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6676}} 
[2026-04-01 19:18:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6676,"item_index":1,"menu_item_id":65} 
[2026-04-01 19:18:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6676,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6676}} 
[2026-04-01 19:18:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6676,"item_index":2,"menu_item_id":396} 
[2026-04-01 19:18:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6676,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6676}} 
[2026-04-01 19:18:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6676,"item_index":3,"menu_item_id":50} 
[2026-04-01 19:18:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6676,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6676}} 
[2026-04-01 19:18:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6676,"item_index":4,"menu_item_id":61} 
[2026-04-01 19:18:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6676,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6676}} 
[2026-04-01 19:18:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6676,"item_index":5,"menu_item_id":5} 
[2026-04-01 19:18:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6676,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6676}} 
[2026-04-01 19:18:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6676,"item_index":6,"menu_item_id":2} 
[2026-04-01 19:18:11] local.ERROR: Error tracking recipe usage for order 6676: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6676, 96, 77, 1, 1, 0.00, Order #AZS-010426-019 - 1x Chicken Karahi - Half, 2026-04-01 19:18:11, 2026-04-01 19:18:11))  
[2026-04-01 19:18:11] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6675,"new_order_id":6676,"order_number":"AZS-010426-019"} 
[2026-04-01 19:18:13] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6675,"new_order_id":6676,"order_number":"AZS-010426-019","route":"api/orders/6675"} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6661,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":31695},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":31696},{"menu_item_id":397,"quantity":250,"discount_percent":0,"notes":null,"id":31697},{"menu_item_id":76,"quantity":2,"discount_percent":0,"notes":null,"id":31698},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31699},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null,"id":31700},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31701},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":31702},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31703},{"menu_item_id":29,"quantity":6,"discount_percent":0,"notes":null}],"validated_items":[{"id":31695,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":31696,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":31697,"menu_item_id":397,"quantity":250,"discount_percent":0,"notes":null},{"id":31698,"menu_item_id":76,"quantity":2,"discount_percent":0,"notes":null},{"id":31699,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":31700,"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"id":31701,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31702,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":31703,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":6,"discount_percent":0,"notes":null}]} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6661,"items_count":10} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31695,"menu_item_id":106,"quantity":1},{"id":31696,"menu_item_id":105,"quantity":1},{"id":31697,"menu_item_id":397,"quantity":250},{"id":31698,"menu_item_id":76,"quantity":2},{"id":31699,"menu_item_id":396,"quantity":3},{"id":31700,"menu_item_id":50,"quantity":3},{"id":31701,"menu_item_id":61,"quantity":2},{"id":31702,"menu_item_id":56,"quantity":2},{"id":31703,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":29,"quantity":6}]} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6661,"has_item_changes":true,"old_items_count":9,"new_items_count":10,"old_items_map_keys":["106|1|","105|1|","397|250|","76|2|","396|3|","50|3|","61|2|","56|2|","5|1|"],"new_items_map_keys":["106|1|","105|1|","397|250|","76|2|","396|3|","50|3|","61|2|","56|2|","5|1|","29|6|"]} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6661,"order_number":"AZS-010426-015"} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-015","replaced_order_id":6661} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6677,"items_count":10,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":397,"quantity":250,"price":"4.00"},{"menu_item_id":76,"quantity":2,"price":"1594.99"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":3,"price":"129.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":29,"quantity":6,"price":"250.00"}]} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6677,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6677}} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6677,"item_index":0,"menu_item_id":106} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6677,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6677}} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6677,"item_index":1,"menu_item_id":105} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6677,"item_index":2,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":250,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":1000.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6677}} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6677,"item_index":2,"menu_item_id":397} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6677,"item_index":3,"item_data":{"menu_item_id":76,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Mutton Seekh Kabab (4 pcs)","quantity":2,"price":"1594.99","discount_percent":0.0,"discount_amount":0.0,"total":3189.98000000000001818989403545856475830078125,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6677}} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6677,"item_index":3,"menu_item_id":76} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6677,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6677}} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6677,"item_index":4,"menu_item_id":396} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6677,"item_index":5,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6677}} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6677,"item_index":5,"menu_item_id":50} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6677,"item_index":6,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6677}} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6677,"item_index":6,"menu_item_id":61} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6677,"item_index":7,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6677}} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6677,"item_index":7,"menu_item_id":56} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6677,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6677}} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6677,"item_index":8,"menu_item_id":5} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6677,"item_index":9,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":6,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6677}} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6677,"item_index":9,"menu_item_id":29} 
[2026-04-01 19:22:04] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6661,"new_order_id":6677,"order_number":"AZS-010426-015"} 
[2026-04-01 19:29:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6678,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":140,"quantity":1,"discount_percent":0,"notes":null,"id":31816}],"validated_items":[{"id":31816,"menu_item_id":140,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-01 19:29:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6678,"items_count":1} 
[2026-04-01 19:29:55] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31816,"menu_item_id":140,"quantity":1}]} 
[2026-04-01 19:29:55] local.INFO: PosOrderController::update - Item changes check {"order_id":6678,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["140|1|"],"new_items_map_keys":["140|1|"]} 
[2026-04-01 19:29:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6678,"order_number":"AZS-010426-021"} 
[2026-04-01 19:29:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6678,"order_number":"AZS-010426-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-04-01 19:29:55"} 
[2026-04-01 19:30:00] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6678,"order_number":"AZS-010426-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 19:30:00"} 
[2026-04-01 19:30:00] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6678,"order_number":"AZS-010426-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 19:30:00"} 
[2026-04-01 19:30:00] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6678,"order_number":"AZS-010426-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 19:30:00"} 
[2026-04-01 19:30:00] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6678,"order_number":"AZS-010426-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 19:30:00"} 
[2026-04-01 19:30:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6678,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":140,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":31816}],"validated_items":[{"id":31816,"menu_item_id":140,"quantity":1,"price":1099,"discount_percent":0,"notes":null}]} 
[2026-04-01 19:30:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6678,"items_count":1} 
[2026-04-01 19:30:00] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31816,"menu_item_id":140,"quantity":1}]} 
[2026-04-01 19:30:00] local.INFO: PosOrderController::update - Item changes check {"order_id":6678,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["140|1|"],"new_items_map_keys":["140|1|"]} 
[2026-04-01 19:30:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6678,"order_number":"AZS-010426-021"} 
[2026-04-01 19:30:00] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6678,"order_number":"AZS-010426-021","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-01 19:30:00","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-01 19:30:00"} 
[2026-04-01 19:30:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6678,"order_number":"AZS-010426-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-01 19:30:00"} 
[2026-04-01 19:30:00] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6678,"order_number":"AZS-010426-021","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-01 19:30:00","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1100.00","database_verification_match":true,"timestamp":"2026-04-01 19:30:00"} 
[2026-04-01 19:30:12] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6669,"order_number":"AZS-010426-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":899,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 19:30:12"} 
[2026-04-01 19:30:12] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6669,"order_number":"AZS-010426-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":899,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 19:30:12"} 
[2026-04-01 19:30:12] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6669,"order_number":"AZS-010426-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":899,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 19:30:12"} 
[2026-04-01 19:30:12] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6669,"order_number":"AZS-010426-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":899,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 19:30:12"} 
[2026-04-01 19:30:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6669,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null,"id":31752}],"validated_items":[{"id":31752,"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null}]} 
[2026-04-01 19:30:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6669,"items_count":1} 
[2026-04-01 19:30:12] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31752,"menu_item_id":136,"quantity":1}]} 
[2026-04-01 19:30:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6669,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["136|1|"],"new_items_map_keys":["136|1|"]} 
[2026-04-01 19:30:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6669,"order_number":"AZS-010426-018"} 
[2026-04-01 19:30:12] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6669,"order_number":"AZS-010426-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":899,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-01 19:30:12","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-01 19:30:12"} 
[2026-04-01 19:30:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6669,"order_number":"AZS-010426-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-01 19:30:12"} 
[2026-04-01 19:30:12] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6669,"order_number":"AZS-010426-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"899.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-01 19:30:12","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":899,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"899.00","database_verification_match":true,"timestamp":"2026-04-01 19:30:12"} 
[2026-04-01 19:30:35] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T07:30:36.042Z","date_to":"2026-04-01T19:30:36.042Z","per_page":"100"} 
[2026-04-01 19:30:35] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T07:30:36.061Z","date_to":"2026-04-01T19:30:36.061Z","per_page":"100"} 
[2026-04-01 19:30:35] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-022","AZS-010426-021","AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":3,"unique_order_numbers":22} 
[2026-04-01 19:30:35] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-022","AZS-010426-021","AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":3,"unique_order_numbers":22} 
[2026-04-01 19:30:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T07:30:36.042Z","date_to":"2026-04-01T19:30:36.042Z","per_page":"100"} 
[2026-04-01 19:30:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-022","AZS-010426-021","AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":3,"unique_order_numbers":22} 
[2026-04-01 19:31:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6672,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31767},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31768},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":31769},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":31770},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31771},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31772},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31773}],"validated_items":[{"id":31767,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31768,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31769,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":31770,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":31771,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31772,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31773,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-01 19:31:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6672,"items_count":7} 
[2026-04-01 19:31:10] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31767,"menu_item_id":98,"quantity":1},{"id":31768,"menu_item_id":96,"quantity":1},{"id":31769,"menu_item_id":65,"quantity":1},{"id":31770,"menu_item_id":396,"quantity":4},{"id":31771,"menu_item_id":61,"quantity":2},{"id":31772,"menu_item_id":56,"quantity":2},{"id":31773,"menu_item_id":5,"quantity":1}]} 
[2026-04-01 19:31:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6672,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["98|1|","96|1|","65|1|","396|4|","61|2|","56|2|","5|1|"],"new_items_map_keys":["98|1|","96|1|","65|1|","396|4|","61|2|","56|2|","5|1|"]} 
[2026-04-01 19:31:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6672,"order_number":"AZS-010426-020"} 
[2026-04-01 19:31:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6672,"order_number":"AZS-010426-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 19:31:10"} 
[2026-04-01 19:31:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6672,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":31767},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":31768},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":31769},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":31770},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31771},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":31772},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31773},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31767,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":31768,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":31769,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":31770,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":31771,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31772,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":31773,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-01 19:31:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6672,"items_count":8} 
[2026-04-01 19:31:38] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31767,"menu_item_id":98,"quantity":1},{"id":31768,"menu_item_id":96,"quantity":1},{"id":31769,"menu_item_id":65,"quantity":1},{"id":31770,"menu_item_id":396,"quantity":4},{"id":31771,"menu_item_id":61,"quantity":2},{"id":31772,"menu_item_id":56,"quantity":2},{"id":31773,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-01 19:31:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6672,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["98|1|","96|1|","65|1|","396|4|","61|2|","56|2|","5|1|"],"new_items_map_keys":["98|1|","96|1|","65|1|","396|4|","61|2|","56|2|","5|1|","3|1|"]} 
[2026-04-01 19:31:38] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6672,"order_number":"AZS-010426-020"} 
[2026-04-01 19:31:38] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-020","replaced_order_id":6672} 
[2026-04-01 19:31:38] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6680,"items_count":8,"items":[{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-01 19:31:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6680,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6680}} 
[2026-04-01 19:31:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6680,"item_index":0,"menu_item_id":98} 
[2026-04-01 19:31:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6680,"item_index":1,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6680}} 
[2026-04-01 19:31:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6680,"item_index":1,"menu_item_id":96} 
[2026-04-01 19:31:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6680,"item_index":2,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6680}} 
[2026-04-01 19:31:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6680,"item_index":2,"menu_item_id":65} 
[2026-04-01 19:31:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6680,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6680}} 
[2026-04-01 19:31:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6680,"item_index":3,"menu_item_id":396} 
[2026-04-01 19:31:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6680,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6680}} 
[2026-04-01 19:31:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6680,"item_index":4,"menu_item_id":61} 
[2026-04-01 19:31:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6680,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6680}} 
[2026-04-01 19:31:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6680,"item_index":5,"menu_item_id":56} 
[2026-04-01 19:31:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6680,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6680}} 
[2026-04-01 19:31:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6680,"item_index":6,"menu_item_id":5} 
[2026-04-01 19:31:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6680,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6680}} 
[2026-04-01 19:31:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6680,"item_index":7,"menu_item_id":3} 
[2026-04-01 19:31:38] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6672,"new_order_id":6680,"order_number":"AZS-010426-020"} 
[2026-04-01 19:31:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6680,"item_index":0,"item_id":31767} 
[2026-04-01 19:31:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6680,"item_index":1,"item_id":31768} 
[2026-04-01 19:31:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6680,"item_index":2,"item_id":31769} 
[2026-04-01 19:31:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6680,"item_index":3,"item_id":31770} 
[2026-04-01 19:31:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6680,"item_index":4,"item_id":31771} 
[2026-04-01 19:31:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6680,"item_index":5,"item_id":31772} 
[2026-04-01 19:31:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6680,"item_index":6,"item_id":31773} 
[2026-04-01 19:31:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":8,"order_id":6680,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31767},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31768},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":31769},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":31770},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31771},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31772},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31773},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-01 19:31:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6680,"items_count":8} 
[2026-04-01 19:31:49] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":8,"items_to_remove":[31822,31823,31824,31825,31826,31827,31828,31829],"items":[{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-01 19:31:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6680,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["98|1|","96|1|","65|1|","396|4|","61|2|","56|2|","5|1|","3|1|"],"new_items_map_keys":["98|1|","96|1|","65|1|","396|4|","61|2|","56|2|","5|1|","3|1|"]} 
[2026-04-01 19:31:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6680,"order_number":"AZS-010426-020"} 
[2026-04-01 19:31:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6680,"order_number":"AZS-010426-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 19:31:49"} 
[2026-04-01 19:32:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6679,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":31817},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31818},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31819},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":31821},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":31817,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"id":31818,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31819,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31821,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-01 19:32:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6679,"items_count":5} 
[2026-04-01 19:32:38] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[31820],"items":[{"id":31817,"menu_item_id":48,"quantity":1},{"id":31818,"menu_item_id":61,"quantity":1},{"id":31819,"menu_item_id":56,"quantity":1},{"id":31821,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":4,"quantity":2}]} 
[2026-04-01 19:32:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6679,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["48|1|","61|1|","56|1|","5|1|","105|1|"],"new_items_map_keys":["48|1|","61|1|","56|1|","105|1|","4|2|"]} 
[2026-04-01 19:32:38] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6679,"order_number":"AZS-010426-022"} 
[2026-04-01 19:32:38] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-022","replaced_order_id":6679} 
[2026-04-01 19:32:38] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6681,"items_count":5,"items":[{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":4,"quantity":2,"price":"90.00"}]} 
[2026-04-01 19:32:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6681,"item_index":0,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6681}} 
[2026-04-01 19:32:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6681,"item_index":0,"menu_item_id":48} 
[2026-04-01 19:32:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6681,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6681}} 
[2026-04-01 19:32:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6681,"item_index":1,"menu_item_id":61} 
[2026-04-01 19:32:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6681,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6681}} 
[2026-04-01 19:32:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6681,"item_index":2,"menu_item_id":56} 
[2026-04-01 19:32:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6681,"item_index":3,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6681}} 
[2026-04-01 19:32:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6681,"item_index":3,"menu_item_id":105} 
[2026-04-01 19:32:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6681,"item_index":4,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":2,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":180.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6681}} 
[2026-04-01 19:32:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6681,"item_index":4,"menu_item_id":4} 
[2026-04-01 19:32:38] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6679,"new_order_id":6681,"order_number":"AZS-010426-022"} 
[2026-04-01 19:33:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6677,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":31806},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31807},{"menu_item_id":397,"quantity":250,"price":4,"discount_percent":0,"notes":null,"id":31808},{"menu_item_id":76,"quantity":2,"price":1594.990000000000009094947017729282379150390625,"discount_percent":0,"notes":null,"id":31809},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":31810},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":31811},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31812},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31813},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31814},{"menu_item_id":29,"quantity":6,"price":250,"discount_percent":0,"notes":null,"id":31815}],"validated_items":[{"id":31806,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":31807,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":31808,"menu_item_id":397,"quantity":250,"price":4,"discount_percent":0,"notes":null},{"id":31809,"menu_item_id":76,"quantity":2,"price":1594.990000000000009094947017729282379150390625,"discount_percent":0,"notes":null},{"id":31810,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":31811,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"id":31812,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31813,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31814,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31815,"menu_item_id":29,"quantity":6,"price":250,"discount_percent":0,"notes":null}]} 
[2026-04-01 19:33:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6677,"items_count":10} 
[2026-04-01 19:33:31] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31806,"menu_item_id":106,"quantity":1},{"id":31807,"menu_item_id":105,"quantity":1},{"id":31808,"menu_item_id":397,"quantity":250},{"id":31809,"menu_item_id":76,"quantity":2},{"id":31810,"menu_item_id":396,"quantity":3},{"id":31811,"menu_item_id":50,"quantity":3},{"id":31812,"menu_item_id":61,"quantity":2},{"id":31813,"menu_item_id":56,"quantity":2},{"id":31814,"menu_item_id":5,"quantity":1},{"id":31815,"menu_item_id":29,"quantity":6}]} 
[2026-04-01 19:33:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6677,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["106|1|","105|1|","397|250|","76|2|","396|3|","50|3|","61|2|","56|2|","5|1|","29|6|"],"new_items_map_keys":["106|1|","105|1|","397|250|","76|2|","396|3|","50|3|","61|2|","56|2|","5|1|","29|6|"]} 
[2026-04-01 19:33:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6677,"order_number":"AZS-010426-015"} 
[2026-04-01 19:33:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6677,"order_number":"AZS-010426-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 19:33:31"} 
[2026-04-01 19:33:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T07:33:52.209Z","date_to":"2026-04-01T19:33:52.209Z","per_page":"100"} 
[2026-04-01 19:33:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T07:33:52.220Z","date_to":"2026-04-01T19:33:52.220Z","per_page":"100"} 
[2026-04-01 19:33:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-022","AZS-010426-021","AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":3,"unique_order_numbers":22} 
[2026-04-01 19:33:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-022","AZS-010426-021","AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":3,"unique_order_numbers":22} 
[2026-04-01 19:33:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T07:33:52.209Z","date_to":"2026-04-01T19:33:52.209Z","per_page":"100"} 
[2026-04-01 19:33:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-022","AZS-010426-021","AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":3,"unique_order_numbers":22} 
[2026-04-01 19:36:15] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6677,"order_number":"AZS-010426-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":15000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 19:36:15"} 
[2026-04-01 19:36:15] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6677,"order_number":"AZS-010426-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":15000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 19:36:15"} 
[2026-04-01 19:36:15] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6677,"order_number":"AZS-010426-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":15000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 19:36:15"} 
[2026-04-01 19:36:15] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6677,"order_number":"AZS-010426-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":15000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 19:36:15"} 
[2026-04-01 19:36:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6677,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":31806},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31807},{"menu_item_id":397,"quantity":250,"price":4,"discount_percent":0,"notes":null,"id":31808},{"menu_item_id":76,"quantity":2,"price":1594.990000000000009094947017729282379150390625,"discount_percent":0,"notes":null,"id":31809},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":31810},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":31811},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31812},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31813},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31814},{"menu_item_id":29,"quantity":6,"price":250,"discount_percent":0,"notes":null,"id":31815}],"validated_items":[{"id":31806,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":31807,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":31808,"menu_item_id":397,"quantity":250,"price":4,"discount_percent":0,"notes":null},{"id":31809,"menu_item_id":76,"quantity":2,"price":1594.990000000000009094947017729282379150390625,"discount_percent":0,"notes":null},{"id":31810,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":31811,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"id":31812,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31813,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31814,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31815,"menu_item_id":29,"quantity":6,"price":250,"discount_percent":0,"notes":null}]} 
[2026-04-01 19:36:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6677,"items_count":10} 
[2026-04-01 19:36:15] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31806,"menu_item_id":106,"quantity":1},{"id":31807,"menu_item_id":105,"quantity":1},{"id":31808,"menu_item_id":397,"quantity":250},{"id":31809,"menu_item_id":76,"quantity":2},{"id":31810,"menu_item_id":396,"quantity":3},{"id":31811,"menu_item_id":50,"quantity":3},{"id":31812,"menu_item_id":61,"quantity":2},{"id":31813,"menu_item_id":56,"quantity":2},{"id":31814,"menu_item_id":5,"quantity":1},{"id":31815,"menu_item_id":29,"quantity":6}]} 
[2026-04-01 19:36:15] local.INFO: PosOrderController::update - Item changes check {"order_id":6677,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["106|1|","105|1|","397|250|","76|2|","396|3|","50|3|","61|2|","56|2|","5|1|","29|6|"],"new_items_map_keys":["106|1|","105|1|","397|250|","76|2|","396|3|","50|3|","61|2|","56|2|","5|1|","29|6|"]} 
[2026-04-01 19:36:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6677,"order_number":"AZS-010426-015"} 
[2026-04-01 19:36:15] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6677,"order_number":"AZS-010426-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":15000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-01 19:36:15","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-01 19:36:15"} 
[2026-04-01 19:36:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6677,"order_number":"AZS-010426-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-01 19:36:15"} 
[2026-04-01 19:36:15] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6677,"order_number":"AZS-010426-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"15000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-01 19:36:15","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":15000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"15000.00","database_verification_match":true,"timestamp":"2026-04-01 19:36:15"} 
[2026-04-01 19:37:11] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6680,"order_number":"AZS-010426-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5600,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 19:37:11"} 
[2026-04-01 19:37:11] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6680,"order_number":"AZS-010426-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 19:37:11"} 
[2026-04-01 19:37:11] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6680,"order_number":"AZS-010426-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5600,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 19:37:11"} 
[2026-04-01 19:37:11] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6680,"order_number":"AZS-010426-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5600,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 19:37:11"} 
[2026-04-01 19:37:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6680,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31822},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31823},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":31824},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":31825},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31826},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":31827},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31828},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":31829}],"validated_items":[{"id":31822,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31823,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31824,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":31825,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":31826,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31827,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":31828,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31829,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-01 19:37:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6680,"items_count":8} 
[2026-04-01 19:37:11] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31822,"menu_item_id":98,"quantity":1},{"id":31823,"menu_item_id":96,"quantity":1},{"id":31824,"menu_item_id":65,"quantity":1},{"id":31825,"menu_item_id":396,"quantity":4},{"id":31826,"menu_item_id":61,"quantity":2},{"id":31827,"menu_item_id":56,"quantity":2},{"id":31828,"menu_item_id":5,"quantity":1},{"id":31829,"menu_item_id":3,"quantity":1}]} 
[2026-04-01 19:37:11] local.INFO: PosOrderController::update - Item changes check {"order_id":6680,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["98|1|","96|1|","65|1|","396|4|","61|2|","56|2|","5|1|","3|1|"],"new_items_map_keys":["98|1|","96|1|","65|1|","396|4|","61|2|","56|2|","5|1|","3|1|"]} 
[2026-04-01 19:37:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6680,"order_number":"AZS-010426-020"} 
[2026-04-01 19:37:11] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6680,"order_number":"AZS-010426-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5600,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-01 19:37:11","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-01 19:37:11"} 
[2026-04-01 19:37:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6680,"order_number":"AZS-010426-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-01 19:37:11"} 
[2026-04-01 19:37:11] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6680,"order_number":"AZS-010426-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5600.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-01 19:37:11","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5600.00","database_verification_match":true,"timestamp":"2026-04-01 19:37:11"} 
[2026-04-01 19:37:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T07:37:17.887Z","date_to":"2026-04-01T19:37:17.887Z","per_page":"100"} 
[2026-04-01 19:37:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T07:37:17.902Z","date_to":"2026-04-01T19:37:17.902Z","per_page":"100"} 
[2026-04-01 19:37:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-022","AZS-010426-021","AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":1,"unique_order_numbers":22} 
[2026-04-01 19:37:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-022","AZS-010426-021","AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":1,"unique_order_numbers":22} 
[2026-04-01 19:37:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T07:37:17.887Z","date_to":"2026-04-01T19:37:17.887Z","per_page":"100"} 
[2026-04-01 19:37:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-022","AZS-010426-021","AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":1,"unique_order_numbers":22} 
[2026-04-01 19:46:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T07:46:20.613Z","date_to":"2026-04-01T19:46:20.613Z","per_page":"100"} 
[2026-04-01 19:46:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T07:46:20.626Z","date_to":"2026-04-01T19:46:20.626Z","per_page":"100"} 
[2026-04-01 19:46:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-022","AZS-010426-021","AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":1,"unique_order_numbers":22} 
[2026-04-01 19:46:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-022","AZS-010426-021","AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":1,"unique_order_numbers":22} 
[2026-04-01 19:46:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T07:46:20.613Z","date_to":"2026-04-01T19:46:20.613Z","per_page":"100"} 
[2026-04-01 19:46:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-022","AZS-010426-021","AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":1,"unique_order_numbers":22} 
[2026-04-01 19:58:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6681,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":31830},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31831},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31832},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":31833},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null,"id":31834},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31830,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"id":31831,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31832,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31833,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":31834,"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-01 19:58:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6681,"items_count":6} 
[2026-04-01 19:58:40] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31830,"menu_item_id":48,"quantity":1},{"id":31831,"menu_item_id":61,"quantity":1},{"id":31832,"menu_item_id":56,"quantity":1},{"id":31833,"menu_item_id":105,"quantity":1},{"id":31834,"menu_item_id":4,"quantity":2},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-04-01 19:58:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6681,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["48|1|","61|1|","56|1|","105|1|","4|2|"],"new_items_map_keys":["48|1|","61|1|","56|1|","105|1|","4|2|","2|1|"]} 
[2026-04-01 19:58:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6681,"order_number":"AZS-010426-022"} 
[2026-04-01 19:58:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-022","replaced_order_id":6681} 
[2026-04-01 19:58:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6682,"items_count":6,"items":[{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":4,"quantity":2,"price":"90.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-04-01 19:58:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6682,"item_index":0,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6682}} 
[2026-04-01 19:58:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6682,"item_index":0,"menu_item_id":48} 
[2026-04-01 19:58:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6682,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6682}} 
[2026-04-01 19:58:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6682,"item_index":1,"menu_item_id":61} 
[2026-04-01 19:58:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6682,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6682}} 
[2026-04-01 19:58:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6682,"item_index":2,"menu_item_id":56} 
[2026-04-01 19:58:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6682,"item_index":3,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6682}} 
[2026-04-01 19:58:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6682,"item_index":3,"menu_item_id":105} 
[2026-04-01 19:58:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6682,"item_index":4,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":2,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":180.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6682}} 
[2026-04-01 19:58:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6682,"item_index":4,"menu_item_id":4} 
[2026-04-01 19:58:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6682,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6682}} 
[2026-04-01 19:58:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6682,"item_index":5,"menu_item_id":2} 
[2026-04-01 19:58:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6681,"new_order_id":6682,"order_number":"AZS-010426-022"} 
[2026-04-01 20:02:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6682,"item_index":0,"item_id":31830} 
[2026-04-01 20:02:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6682,"item_index":1,"item_id":31831} 
[2026-04-01 20:02:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6682,"item_index":2,"item_id":31832} 
[2026-04-01 20:02:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6682,"item_index":3,"item_id":31833} 
[2026-04-01 20:02:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6682,"item_index":4,"item_id":31834} 
[2026-04-01 20:02:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6682,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":31830},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31831},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31832},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31833},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":31834},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-01 20:02:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6682,"items_count":6} 
[2026-04-01 20:02:18] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[31835,31836,31837,31838,31839,31840],"items":[{"id":null,"menu_item_id":48,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-04-01 20:02:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6682,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["48|1|","61|1|","56|1|","105|1|","4|2|","2|1|"],"new_items_map_keys":["48|1|","61|1|","56|1|","105|1|","4|1|","2|1|"]} 
[2026-04-01 20:02:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6682,"order_number":"AZS-010426-022"} 
[2026-04-01 20:02:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-010426-022","replaced_order_id":6682} 
[2026-04-01 20:02:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6683,"items_count":6,"items":[{"menu_item_id":48,"quantity":1,"price":250.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":4,"quantity":1,"price":90.0},{"menu_item_id":2,"quantity":1,"price":130.0}]} 
[2026-04-01 20:02:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6683,"item_index":0,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":250.0,"discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6683}} 
[2026-04-01 20:02:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6683,"item_index":0,"menu_item_id":48} 
[2026-04-01 20:02:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6683,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6683}} 
[2026-04-01 20:02:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6683,"item_index":1,"menu_item_id":61} 
[2026-04-01 20:02:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6683,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6683}} 
[2026-04-01 20:02:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6683,"item_index":2,"menu_item_id":56} 
[2026-04-01 20:02:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6683,"item_index":3,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6683}} 
[2026-04-01 20:02:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6683,"item_index":3,"menu_item_id":105} 
[2026-04-01 20:02:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6683,"item_index":4,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":90.0,"discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6683}} 
[2026-04-01 20:02:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6683,"item_index":4,"menu_item_id":4} 
[2026-04-01 20:02:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6683,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6683}} 
[2026-04-01 20:02:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6683,"item_index":5,"menu_item_id":2} 
[2026-04-01 20:02:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6682,"new_order_id":6683,"order_number":"AZS-010426-022"} 
[2026-04-01 20:02:19] local.INFO: RouteServiceProvider: Found direct replacement order {"old_order_id":6682,"new_order_id":6683,"order_number":"AZS-010426-022","method":"PUT","route":"api/orders/6682"} 
[2026-04-01 20:02:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6683,"item_index":0,"item_id":31830} 
[2026-04-01 20:02:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6683,"item_index":1,"item_id":31831} 
[2026-04-01 20:02:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6683,"item_index":2,"item_id":31832} 
[2026-04-01 20:02:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6683,"item_index":3,"item_id":31833} 
[2026-04-01 20:02:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6683,"item_index":4,"item_id":31834} 
[2026-04-01 20:02:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6683,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":31830},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31831},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31832},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31833},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":31834},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-01 20:02:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6683,"items_count":6} 
[2026-04-01 20:02:19] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[31835,31836,31837,31838,31839,31840],"items":[{"id":null,"menu_item_id":48,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-04-01 20:02:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6683,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["48|1|","61|1|","56|1|","105|1|","4|1|","2|1|"],"new_items_map_keys":["48|1|","61|1|","56|1|","105|1|","4|1|","2|1|"]} 
[2026-04-01 20:02:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6683,"order_number":"AZS-010426-022"} 
[2026-04-01 20:02:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6683,"order_number":"AZS-010426-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 20:02:19"} 
[2026-04-01 20:02:19] local.INFO: RouteServiceProvider: Found direct replacement order {"old_order_id":6682,"new_order_id":6683,"order_number":"AZS-010426-022","method":"PUT","route":"api/orders/6682"} 
[2026-04-01 20:02:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6683,"item_index":0,"item_id":31830} 
[2026-04-01 20:02:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6683,"item_index":1,"item_id":31831} 
[2026-04-01 20:02:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6683,"item_index":2,"item_id":31832} 
[2026-04-01 20:02:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6683,"item_index":3,"item_id":31833} 
[2026-04-01 20:02:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6683,"item_index":4,"item_id":31834} 
[2026-04-01 20:02:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6683,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":31830},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31831},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31832},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31833},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":31834},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-01 20:02:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6683,"items_count":6} 
[2026-04-01 20:02:19] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[31835,31836,31837,31838,31839,31840],"items":[{"id":null,"menu_item_id":48,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-04-01 20:02:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6683,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["48|1|","61|1|","56|1|","105|1|","4|1|","2|1|"],"new_items_map_keys":["48|1|","61|1|","56|1|","105|1|","4|1|","2|1|"]} 
[2026-04-01 20:02:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6683,"order_number":"AZS-010426-022"} 
[2026-04-01 20:02:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6683,"order_number":"AZS-010426-022","user_id":15,"user_role":"branch_cashier","update_result":0,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-01 20:02:19"} 
[2026-04-01 20:03:43] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6683,"item_index":0,"item_id":31830} 
[2026-04-01 20:03:43] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6683,"item_index":1,"item_id":31831} 
[2026-04-01 20:03:43] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6683,"item_index":2,"item_id":31832} 
[2026-04-01 20:03:43] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6683,"item_index":3,"item_id":31833} 
[2026-04-01 20:03:43] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6683,"item_index":4,"item_id":31834} 
[2026-04-01 20:03:43] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6683,"order_number":"AZS-010426-022","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3220,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 20:03:43"} 
[2026-04-01 20:03:43] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6683,"order_number":"AZS-010426-022","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3220,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 20:03:43"} 
[2026-04-01 20:03:43] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6683,"order_number":"AZS-010426-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3220,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 20:03:43"} 
[2026-04-01 20:03:43] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6683,"order_number":"AZS-010426-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3220,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 20:03:43"} 
[2026-04-01 20:03:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6683,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":31830},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31831},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31832},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31833},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":31834},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-01 20:03:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6683,"items_count":6} 
[2026-04-01 20:03:43] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[31841,31842,31843,31844,31845,31846],"items":[{"id":null,"menu_item_id":48,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-04-01 20:03:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6683,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["48|1|","61|1|","56|1|","105|1|","4|1|","2|1|"],"new_items_map_keys":["48|1|","61|1|","56|1|","105|1|","4|1|","2|1|"]} 
[2026-04-01 20:03:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6683,"order_number":"AZS-010426-022"} 
[2026-04-01 20:03:43] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6683,"order_number":"AZS-010426-022","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3220,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-01 20:03:43","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-01 20:03:43"} 
[2026-04-01 20:03:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6683,"order_number":"AZS-010426-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-01 20:03:43"} 
[2026-04-01 20:03:43] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6683,"order_number":"AZS-010426-022","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3220.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-01 20:03:43","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3220,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3220.00","database_verification_match":true,"timestamp":"2026-04-01 20:03:43"} 
[2026-04-01 20:03:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T08:03:48.330Z","date_to":"2026-04-01T20:03:48.330Z","per_page":"100"} 
[2026-04-01 20:03:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T08:03:48.315Z","date_to":"2026-04-01T20:03:48.315Z","per_page":"100"} 
[2026-04-01 20:03:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-022","AZS-010426-021","AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":22,"unpaid_count":0,"unique_order_numbers":22} 
[2026-04-01 20:03:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-022","AZS-010426-021","AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":22,"unpaid_count":0,"unique_order_numbers":22} 
[2026-04-01 20:03:48] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T08:03:48.315Z","date_to":"2026-04-01T20:03:48.315Z","per_page":"100"} 
[2026-04-01 20:03:48] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-022","AZS-010426-021","AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":22,"unpaid_count":0,"unique_order_numbers":22} 
[2026-04-01 20:26:08] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6684,"order_number":"AZS-010426-023","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1199,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 20:26:08"} 
[2026-04-01 20:26:08] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6684,"order_number":"AZS-010426-023","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1199,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 20:26:08"} 
[2026-04-01 20:26:08] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6684,"order_number":"AZS-010426-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1199,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 20:26:08"} 
[2026-04-01 20:26:08] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6684,"order_number":"AZS-010426-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1199,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 20:26:08"} 
[2026-04-01 20:26:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6684,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":134,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31847}],"validated_items":[{"id":31847,"menu_item_id":134,"quantity":1,"price":1199,"discount_percent":0,"notes":null}]} 
[2026-04-01 20:26:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6684,"items_count":1} 
[2026-04-01 20:26:08] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31847,"menu_item_id":134,"quantity":1}]} 
[2026-04-01 20:26:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6684,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["134|1|"],"new_items_map_keys":["134|1|"]} 
[2026-04-01 20:26:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6684,"order_number":"AZS-010426-023"} 
[2026-04-01 20:26:08] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6684,"order_number":"AZS-010426-023","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1199,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-01 20:26:08","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-01 20:26:08"} 
[2026-04-01 20:26:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6684,"order_number":"AZS-010426-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-01 20:26:08"} 
[2026-04-01 20:26:08] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6684,"order_number":"AZS-010426-023","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1199.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-01 20:26:08","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1199,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1199.00","database_verification_match":true,"timestamp":"2026-04-01 20:26:08"} 
[2026-04-01 20:26:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T08:26:37.312Z","date_to":"2026-04-01T20:26:37.312Z","per_page":"100"} 
[2026-04-01 20:26:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T08:26:37.325Z","date_to":"2026-04-01T20:26:37.325Z","per_page":"100"} 
[2026-04-01 20:26:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-023","AZS-010426-022","AZS-010426-021","AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":0,"unique_order_numbers":23} 
[2026-04-01 20:26:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-023","AZS-010426-022","AZS-010426-021","AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":0,"unique_order_numbers":23} 
[2026-04-01 20:26:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T08:26:37.312Z","date_to":"2026-04-01T20:26:37.312Z","per_page":"100"} 
[2026-04-01 20:26:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-023","AZS-010426-022","AZS-010426-021","AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":0,"unique_order_numbers":23} 
[2026-04-01 20:53:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T08:53:35.142Z","date_to":"2026-04-01T20:53:35.142Z","per_page":"100"} 
[2026-04-01 20:53:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-024","AZS-010426-023","AZS-010426-022","AZS-010426-021","AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":1,"unique_order_numbers":24} 
[2026-04-01 20:53:35] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T08:53:35.123Z","date_to":"2026-04-01T20:53:35.123Z","per_page":"100"} 
[2026-04-01 20:53:35] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-024","AZS-010426-023","AZS-010426-022","AZS-010426-021","AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":1,"unique_order_numbers":24} 
[2026-04-01 20:53:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T08:53:35.123Z","date_to":"2026-04-01T20:53:35.123Z","per_page":"100"} 
[2026-04-01 20:53:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-024","AZS-010426-023","AZS-010426-022","AZS-010426-021","AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":1,"unique_order_numbers":24} 
[2026-04-01 21:19:25] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6685,"order_number":"AZS-010426-024","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1199,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 21:19:25"} 
[2026-04-01 21:19:25] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6685,"order_number":"AZS-010426-024","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1199,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-01 21:19:25"} 
[2026-04-01 21:19:25] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6685,"order_number":"AZS-010426-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1199,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 21:19:25"} 
[2026-04-01 21:19:25] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6685,"order_number":"AZS-010426-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1199,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-01 21:19:25"} 
[2026-04-01 21:19:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6685,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31848}],"validated_items":[{"id":31848,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null}]} 
[2026-04-01 21:19:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6685,"items_count":1} 
[2026-04-01 21:19:25] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31848,"menu_item_id":96,"quantity":1}]} 
[2026-04-01 21:19:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6685,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["96|1|"],"new_items_map_keys":["96|1|"]} 
[2026-04-01 21:19:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6685,"order_number":"AZS-010426-024"} 
[2026-04-01 21:19:25] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6685,"order_number":"AZS-010426-024","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1199,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-01 21:19:25","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-01 21:19:25"} 
[2026-04-01 21:19:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6685,"order_number":"AZS-010426-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-01 21:19:25"} 
[2026-04-01 21:19:25] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6685,"order_number":"AZS-010426-024","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1199.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-01 21:19:25","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1199,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1199.00","database_verification_match":true,"timestamp":"2026-04-01 21:19:25"} 
[2026-04-01 21:19:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T09:19:30.612Z","date_to":"2026-04-01T21:19:30.612Z","per_page":"100"} 
[2026-04-01 21:19:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T09:19:30.592Z","date_to":"2026-04-01T21:19:30.592Z","per_page":"100"} 
[2026-04-01 21:19:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-024","AZS-010426-023","AZS-010426-022","AZS-010426-021","AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":24,"unpaid_count":0,"unique_order_numbers":24} 
[2026-04-01 21:19:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-024","AZS-010426-023","AZS-010426-022","AZS-010426-021","AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":24,"unpaid_count":0,"unique_order_numbers":24} 
[2026-04-01 21:19:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-01T09:19:30.592Z","date_to":"2026-04-01T21:19:30.592Z","per_page":"100"} 
[2026-04-01 21:19:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-010426-024","AZS-010426-023","AZS-010426-022","AZS-010426-021","AZS-010426-020","AZS-010426-019","AZS-010426-018","AZS-010426-017","AZS-010426-016","AZS-010426-015","AZS-010426-014","AZS-010426-013","AZS-010426-012","AZS-010426-011","AZS-010426-010","AZS-010426-009","AZS-010426-008","AZS-010426-007","AZS-010426-006","AZS-010426-005","AZS-010426-004","AZS-010426-003","AZS-010426-002","AZS-010426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":24,"unpaid_count":0,"unique_order_numbers":24} 
[2026-04-02 13:55:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T01:55:07.139Z","date_to":"2026-04-02T13:55:07.139Z","per_page":"100"} 
[2026-04-02 13:55:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T01:55:07.165Z","date_to":"2026-04-02T13:55:07.165Z","per_page":"100"} 
[2026-04-02 13:55:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-04-02 13:55:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-04-02 13:55:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T01:55:07.139Z","date_to":"2026-04-02T13:55:07.139Z","per_page":"100"} 
[2026-04-02 13:55:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-04-02 13:57:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T01:56:57.902Z","date_to":"2026-04-02T13:56:57.902Z","per_page":"100"} 
[2026-04-02 13:57:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T01:56:57.915Z","date_to":"2026-04-02T13:56:57.915Z","per_page":"100"} 
[2026-04-02 13:57:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-04-02 13:57:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-04-02 13:57:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T01:56:57.902Z","date_to":"2026-04-02T13:56:57.902Z","per_page":"100"} 
[2026-04-02 13:57:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-04-02 14:00:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6686,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":31849},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":31850},{"menu_item_id":60,"quantity":4,"discount_percent":0,"notes":null,"id":31851},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31852},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31853},{"menu_item_id":29,"quantity":4,"discount_percent":0,"notes":null}],"validated_items":[{"id":31849,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":31850,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":31851,"menu_item_id":60,"quantity":4,"discount_percent":0,"notes":null},{"id":31852,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31853,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-04-02 14:00:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6686,"items_count":6} 
[2026-04-02 14:00:25] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31849,"menu_item_id":99,"quantity":1},{"id":31850,"menu_item_id":396,"quantity":4},{"id":31851,"menu_item_id":60,"quantity":4},{"id":31852,"menu_item_id":56,"quantity":1},{"id":31853,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":29,"quantity":4}]} 
[2026-04-02 14:00:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6686,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["99|1|","396|4|","60|4|","56|1|","5|1|"],"new_items_map_keys":["99|1|","396|4|","60|4|","56|1|","5|1|","29|4|"]} 
[2026-04-02 14:00:25] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6686,"order_number":"AZS-020426-001"} 
[2026-04-02 14:00:25] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-001","replaced_order_id":6686} 
[2026-04-02 14:00:25] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6688,"items_count":6,"items":[{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":60,"quantity":4,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":29,"quantity":4,"price":"250.00"}]} 
[2026-04-02 14:00:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6688,"item_index":0,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6688}} 
[2026-04-02 14:00:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6688,"item_index":0,"menu_item_id":99} 
[2026-04-02 14:00:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6688,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6688}} 
[2026-04-02 14:00:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6688,"item_index":1,"menu_item_id":396} 
[2026-04-02 14:00:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6688,"item_index":2,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6688}} 
[2026-04-02 14:00:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6688,"item_index":2,"menu_item_id":60} 
[2026-04-02 14:00:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6688,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6688}} 
[2026-04-02 14:00:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6688,"item_index":3,"menu_item_id":56} 
[2026-04-02 14:00:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6688,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6688}} 
[2026-04-02 14:00:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6688,"item_index":4,"menu_item_id":5} 
[2026-04-02 14:00:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6688,"item_index":5,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":4,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1000.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6688}} 
[2026-04-02 14:00:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6688,"item_index":5,"menu_item_id":29} 
[2026-04-02 14:00:25] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6686,"new_order_id":6688,"order_number":"AZS-020426-001"} 
[2026-04-02 14:00:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T02:00:55.309Z","date_to":"2026-04-02T14:00:55.309Z","per_page":"100"} 
[2026-04-02 14:00:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-04-02 14:00:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T02:00:55.315Z","date_to":"2026-04-02T14:00:55.315Z","per_page":"100"} 
[2026-04-02 14:00:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-04-02 14:00:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T02:00:55.309Z","date_to":"2026-04-02T14:00:55.309Z","per_page":"100"} 
[2026-04-02 14:00:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-04-02 14:04:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T02:03:59.816Z","date_to":"2026-04-02T14:03:59.816Z","per_page":"100"} 
[2026-04-02 14:04:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T02:03:59.797Z","date_to":"2026-04-02T14:03:59.797Z","per_page":"100"} 
[2026-04-02 14:04:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-04-02 14:04:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-04-02 14:04:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T02:03:59.797Z","date_to":"2026-04-02T14:03:59.797Z","per_page":"100"} 
[2026-04-02 14:04:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-04-02 14:07:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T02:07:41.308Z","date_to":"2026-04-02T14:07:41.308Z","per_page":"100"} 
[2026-04-02 14:07:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T02:07:41.320Z","date_to":"2026-04-02T14:07:41.320Z","per_page":"100"} 
[2026-04-02 14:07:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-04-02 14:07:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-04-02 14:07:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T02:07:41.308Z","date_to":"2026-04-02T14:07:41.308Z","per_page":"100"} 
[2026-04-02 14:07:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":2,"count":2,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":2,"unique_order_numbers":2} 
[2026-04-02 14:20:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6688,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":31856},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":31857},{"menu_item_id":60,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":31858},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31859},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31860},{"menu_item_id":29,"quantity":4,"price":250,"discount_percent":0,"notes":null,"id":31861}],"validated_items":[{"id":31856,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":31857,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":31858,"menu_item_id":60,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":31859,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31860,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31861,"menu_item_id":29,"quantity":4,"price":250,"discount_percent":0,"notes":null}]} 
[2026-04-02 14:20:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6688,"items_count":6} 
[2026-04-02 14:20:39] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31856,"menu_item_id":99,"quantity":1},{"id":31857,"menu_item_id":396,"quantity":4},{"id":31858,"menu_item_id":60,"quantity":4},{"id":31859,"menu_item_id":56,"quantity":1},{"id":31860,"menu_item_id":5,"quantity":1},{"id":31861,"menu_item_id":29,"quantity":4}]} 
[2026-04-02 14:20:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6688,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["99|1|","396|4|","60|4|","56|1|","5|1|","29|4|"],"new_items_map_keys":["99|1|","396|4|","60|4|","56|1|","5|1|","29|4|"]} 
[2026-04-02 14:20:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6688,"order_number":"AZS-020426-001"} 
[2026-04-02 14:20:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6688,"order_number":"AZS-020426-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 14:20:39"} 
[2026-04-02 14:20:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6687,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":41,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":31854},{"menu_item_id":27,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":31855}],"validated_items":[{"id":31854,"menu_item_id":41,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":31855,"menu_item_id":27,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-02 14:20:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6687,"items_count":2} 
[2026-04-02 14:20:58] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31854,"menu_item_id":41,"quantity":1},{"id":31855,"menu_item_id":27,"quantity":2}]} 
[2026-04-02 14:20:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6687,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["41|1|","27|2|"],"new_items_map_keys":["41|1|","27|2|"]} 
[2026-04-02 14:20:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6687,"order_number":"AZS-020426-002"} 
[2026-04-02 14:20:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6687,"order_number":"AZS-020426-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 14:20:58"} 
[2026-04-02 14:21:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6688,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":31856},{"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null,"id":31857},{"menu_item_id":60,"quantity":4,"discount_percent":0,"notes":null,"id":31858},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31859},{"menu_item_id":29,"quantity":4,"discount_percent":0,"notes":null,"id":31861}],"validated_items":[{"id":31856,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":31857,"menu_item_id":396,"quantity":4,"discount_percent":0,"notes":null},{"id":31858,"menu_item_id":60,"quantity":4,"discount_percent":0,"notes":null},{"id":31859,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31861,"menu_item_id":29,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-04-02 14:21:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6688,"items_count":5} 
[2026-04-02 14:21:13] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[31860],"items":[{"id":31856,"menu_item_id":99,"quantity":1},{"id":31857,"menu_item_id":396,"quantity":4},{"id":31858,"menu_item_id":60,"quantity":4},{"id":31859,"menu_item_id":56,"quantity":1},{"id":31861,"menu_item_id":29,"quantity":4}]} 
[2026-04-02 14:21:13] local.INFO: PosOrderController::update - Item changes check {"order_id":6688,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["99|1|","396|4|","60|4|","56|1|","5|1|","29|4|"],"new_items_map_keys":["99|1|","396|4|","60|4|","56|1|","29|4|"]} 
[2026-04-02 14:21:13] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6688,"order_number":"AZS-020426-001"} 
[2026-04-02 14:21:13] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-001","replaced_order_id":6688} 
[2026-04-02 14:21:13] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6689,"items_count":5,"items":[{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":4,"price":"99.00"},{"menu_item_id":60,"quantity":4,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":29,"quantity":4,"price":"250.00"}]} 
[2026-04-02 14:21:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6689,"item_index":0,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6689}} 
[2026-04-02 14:21:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6689,"item_index":0,"menu_item_id":99} 
[2026-04-02 14:21:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6689,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":4,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":396.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6689}} 
[2026-04-02 14:21:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6689,"item_index":1,"menu_item_id":396} 
[2026-04-02 14:21:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6689,"item_index":2,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6689}} 
[2026-04-02 14:21:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6689,"item_index":2,"menu_item_id":60} 
[2026-04-02 14:21:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6689,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6689}} 
[2026-04-02 14:21:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6689,"item_index":3,"menu_item_id":56} 
[2026-04-02 14:21:13] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6689,"item_index":4,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":4,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1000.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6689}} 
[2026-04-02 14:21:13] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6689,"item_index":4,"menu_item_id":29} 
[2026-04-02 14:21:13] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6688,"new_order_id":6689,"order_number":"AZS-020426-001"} 
[2026-04-02 14:21:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6689,"item_index":0,"item_id":31856} 
[2026-04-02 14:21:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6689,"item_index":1,"item_id":31857} 
[2026-04-02 14:21:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6689,"item_index":2,"item_id":31858} 
[2026-04-02 14:21:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6689,"item_index":3,"item_id":31859} 
[2026-04-02 14:21:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6689,"item_index":4,"item_id":31861} 
[2026-04-02 14:21:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6689,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":31856},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":31857},{"menu_item_id":60,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":31858},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31859},{"menu_item_id":29,"quantity":4,"price":250,"discount_percent":0,"notes":null,"id":31861}],"validated_items":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":60,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":4,"price":250,"discount_percent":0,"notes":null}]} 
[2026-04-02 14:21:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6689,"items_count":5} 
[2026-04-02 14:21:35] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[31862,31863,31864,31865,31866],"items":[{"id":null,"menu_item_id":99,"quantity":1},{"id":null,"menu_item_id":396,"quantity":4},{"id":null,"menu_item_id":60,"quantity":4},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":29,"quantity":4}]} 
[2026-04-02 14:21:35] local.INFO: PosOrderController::update - Item changes check {"order_id":6689,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["99|1|","396|4|","60|4|","56|1|","29|4|"],"new_items_map_keys":["99|1|","396|4|","60|4|","56|1|","29|4|"]} 
[2026-04-02 14:21:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6689,"order_number":"AZS-020426-001"} 
[2026-04-02 14:21:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6689,"order_number":"AZS-020426-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 14:21:35"} 
[2026-04-02 14:24:09] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6687,"order_number":"AZS-020426-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 14:24:09"} 
[2026-04-02 14:24:09] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6687,"order_number":"AZS-020426-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 14:24:09"} 
[2026-04-02 14:24:09] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6687,"order_number":"AZS-020426-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 14:24:09"} 
[2026-04-02 14:24:09] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6687,"order_number":"AZS-020426-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 14:24:09"} 
[2026-04-02 14:24:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6687,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":41,"quantity":1,"price":599,"discount_percent":0,"notes":null,"id":31854},{"menu_item_id":27,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":31855}],"validated_items":[{"id":31854,"menu_item_id":41,"quantity":1,"price":599,"discount_percent":0,"notes":null},{"id":31855,"menu_item_id":27,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-02 14:24:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6687,"items_count":2} 
[2026-04-02 14:24:09] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31854,"menu_item_id":41,"quantity":1},{"id":31855,"menu_item_id":27,"quantity":2}]} 
[2026-04-02 14:24:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6687,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["41|1|","27|2|"],"new_items_map_keys":["41|1|","27|2|"]} 
[2026-04-02 14:24:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6687,"order_number":"AZS-020426-002"} 
[2026-04-02 14:24:09] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6687,"order_number":"AZS-020426-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-02 14:24:09","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-02 14:24:09"} 
[2026-04-02 14:24:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6687,"order_number":"AZS-020426-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-02 14:24:09"} 
[2026-04-02 14:24:09] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6687,"order_number":"AZS-020426-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-02 14:24:09","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1200.00","database_verification_match":true,"timestamp":"2026-04-02 14:24:09"} 
[2026-04-02 14:27:47] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6689,"order_number":"AZS-020426-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4930,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 14:27:47"} 
[2026-04-02 14:27:47] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6689,"order_number":"AZS-020426-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4930,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 14:27:47"} 
[2026-04-02 14:27:47] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6689,"order_number":"AZS-020426-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4930,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 14:27:47"} 
[2026-04-02 14:27:47] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6689,"order_number":"AZS-020426-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4930,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 14:27:47"} 
[2026-04-02 14:27:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6689,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":31862},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":31863},{"menu_item_id":60,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":31864},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31865},{"menu_item_id":29,"quantity":4,"price":250,"discount_percent":0,"notes":null,"id":31866}],"validated_items":[{"id":31862,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":31863,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":31864,"menu_item_id":60,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":31865,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31866,"menu_item_id":29,"quantity":4,"price":250,"discount_percent":0,"notes":null}]} 
[2026-04-02 14:27:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6689,"items_count":5} 
[2026-04-02 14:27:47] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31862,"menu_item_id":99,"quantity":1},{"id":31863,"menu_item_id":396,"quantity":4},{"id":31864,"menu_item_id":60,"quantity":4},{"id":31865,"menu_item_id":56,"quantity":1},{"id":31866,"menu_item_id":29,"quantity":4}]} 
[2026-04-02 14:27:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6689,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["99|1|","396|4|","60|4|","56|1|","29|4|"],"new_items_map_keys":["99|1|","396|4|","60|4|","56|1|","29|4|"]} 
[2026-04-02 14:27:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6689,"order_number":"AZS-020426-001"} 
[2026-04-02 14:27:47] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6689,"order_number":"AZS-020426-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4930,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-02 14:27:47","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-02 14:27:47"} 
[2026-04-02 14:27:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6689,"order_number":"AZS-020426-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-02 14:27:47"} 
[2026-04-02 14:27:47] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6689,"order_number":"AZS-020426-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4930.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-02 14:27:47","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4930,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4930.00","database_verification_match":true,"timestamp":"2026-04-02 14:27:47"} 
[2026-04-02 14:40:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T02:40:51.208Z","date_to":"2026-04-02T14:40:51.208Z","per_page":"100"} 
[2026-04-02 14:40:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T02:40:51.222Z","date_to":"2026-04-02T14:40:51.222Z","per_page":"100"} 
[2026-04-02 14:40:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","paid","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":1,"unique_order_numbers":3} 
[2026-04-02 14:40:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","paid","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":1,"unique_order_numbers":3} 
[2026-04-02 14:40:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T02:40:51.208Z","date_to":"2026-04-02T14:40:51.208Z","per_page":"100"} 
[2026-04-02 14:40:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","paid","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":1,"unique_order_numbers":3} 
[2026-04-02 14:41:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T02:41:04.366Z","date_to":"2026-04-02T14:41:04.366Z","per_page":"100"} 
[2026-04-02 14:41:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T02:41:04.384Z","date_to":"2026-04-02T14:41:04.384Z","per_page":"100"} 
[2026-04-02 14:41:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","paid","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":1,"unique_order_numbers":3} 
[2026-04-02 14:41:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","paid","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":1,"unique_order_numbers":3} 
[2026-04-02 14:41:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T02:41:04.366Z","date_to":"2026-04-02T14:41:04.366Z","per_page":"100"} 
[2026-04-02 14:41:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":3,"count":3,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","paid","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":1,"unique_order_numbers":3} 
[2026-04-02 14:56:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T02:56:17.484Z","date_to":"2026-04-02T14:56:17.484Z","per_page":"100"} 
[2026-04-02 14:56:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T02:56:17.469Z","date_to":"2026-04-02T14:56:17.469Z","per_page":"100"} 
[2026-04-02 14:56:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending","pending","paid","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":3,"unique_order_numbers":5} 
[2026-04-02 14:56:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending","pending","paid","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":3,"unique_order_numbers":5} 
[2026-04-02 14:56:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T02:56:17.469Z","date_to":"2026-04-02T14:56:17.469Z","per_page":"100"} 
[2026-04-02 14:56:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending","pending","paid","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":3,"unique_order_numbers":5} 
[2026-04-02 15:03:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T03:03:53.100Z","date_to":"2026-04-02T15:03:53.100Z","per_page":"100"} 
[2026-04-02 15:03:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T03:03:53.112Z","date_to":"2026-04-02T15:03:53.112Z","per_page":"100"} 
[2026-04-02 15:03:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending","pending","pending","paid","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":4,"unique_order_numbers":6} 
[2026-04-02 15:03:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending","pending","pending","paid","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":4,"unique_order_numbers":6} 
[2026-04-02 15:03:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T03:03:53.100Z","date_to":"2026-04-02T15:03:53.100Z","per_page":"100"} 
[2026-04-02 15:03:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending","pending","pending","paid","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":4,"unique_order_numbers":6} 
[2026-04-02 15:04:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T03:04:29.347Z","date_to":"2026-04-02T15:04:29.347Z","per_page":"100"} 
[2026-04-02 15:04:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T03:04:29.351Z","date_to":"2026-04-02T15:04:29.351Z","per_page":"100"} 
[2026-04-02 15:04:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending","pending","pending","paid","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":4,"unique_order_numbers":6} 
[2026-04-02 15:04:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending","pending","pending","paid","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":4,"unique_order_numbers":6} 
[2026-04-02 15:04:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T03:04:29.347Z","date_to":"2026-04-02T15:04:29.347Z","per_page":"100"} 
[2026-04-02 15:04:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":6,"count":6,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending","pending","pending","paid","paid"],"deleted_count":0,"paid_count":2,"unpaid_count":4,"unique_order_numbers":6} 
[2026-04-02 15:15:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6690,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31867}],"validated_items":[{"id":31867,"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null}]} 
[2026-04-02 15:15:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6690,"items_count":1} 
[2026-04-02 15:15:07] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31867,"menu_item_id":138,"quantity":1}]} 
[2026-04-02 15:15:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6690,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["138|1|"],"new_items_map_keys":["138|1|"]} 
[2026-04-02 15:15:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6690,"order_number":"AZS-020426-003"} 
[2026-04-02 15:15:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6690,"order_number":"AZS-020426-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 15:15:07"} 
[2026-04-02 15:15:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6690,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null,"id":31867},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31867,"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 15:15:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6690,"items_count":2} 
[2026-04-02 15:15:22] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31867,"menu_item_id":138,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-02 15:15:22] local.INFO: PosOrderController::update - Item changes check {"order_id":6690,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["138|1|"],"new_items_map_keys":["138|1|","5|1|"]} 
[2026-04-02 15:15:22] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6690,"order_number":"AZS-020426-003"} 
[2026-04-02 15:15:22] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-003","replaced_order_id":6690} 
[2026-04-02 15:15:22] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6694,"items_count":2,"items":[{"menu_item_id":138,"quantity":1,"price":"2199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-02 15:15:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6694,"item_index":0,"item_data":{"menu_item_id":138,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Large","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6694}} 
[2026-04-02 15:15:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6694,"item_index":0,"menu_item_id":138} 
[2026-04-02 15:15:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6694,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6694}} 
[2026-04-02 15:15:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6694,"item_index":1,"menu_item_id":5} 
[2026-04-02 15:15:22] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6690,"new_order_id":6694,"order_number":"AZS-020426-003"} 
[2026-04-02 15:15:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6694,"item_index":0,"item_id":31867} 
[2026-04-02 15:15:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":6694,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31867},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-02 15:15:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6694,"items_count":2} 
[2026-04-02 15:15:27] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[31881,31882],"items":[{"id":null,"menu_item_id":138,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-02 15:15:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6694,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["138|1|","5|1|"],"new_items_map_keys":["138|1|","5|1|"]} 
[2026-04-02 15:15:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6694,"order_number":"AZS-020426-003"} 
[2026-04-02 15:15:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6694,"order_number":"AZS-020426-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 15:15:27"} 
[2026-04-02 15:18:24] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6694,"item_index":0,"item_id":31867} 
[2026-04-02 15:18:24] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6694,"order_number":"AZS-020426-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 15:18:24"} 
[2026-04-02 15:18:24] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6694,"order_number":"AZS-020426-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 15:18:24"} 
[2026-04-02 15:18:24] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6694,"order_number":"AZS-020426-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 15:18:24"} 
[2026-04-02 15:18:24] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6694,"order_number":"AZS-020426-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 15:18:24"} 
[2026-04-02 15:18:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":6694,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31867},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-02 15:18:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6694,"items_count":2} 
[2026-04-02 15:18:24] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[31881,31882],"items":[{"id":null,"menu_item_id":138,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-02 15:18:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6694,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["138|1|","5|1|"],"new_items_map_keys":["138|1|","5|1|"]} 
[2026-04-02 15:18:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6694,"order_number":"AZS-020426-003"} 
[2026-04-02 15:18:24] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6694,"order_number":"AZS-020426-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-02 15:18:24","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-02 15:18:24"} 
[2026-04-02 15:18:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6694,"order_number":"AZS-020426-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-02 15:18:24"} 
[2026-04-02 15:18:24] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6694,"order_number":"AZS-020426-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-02 15:18:24","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2500.00","database_verification_match":true,"timestamp":"2026-04-02 15:18:24"} 
[2026-04-02 15:39:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6696,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":31885},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":31886},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31887},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31888},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31889},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31890},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31885,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":31886,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":31887,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":31888,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31889,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31890,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 15:39:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6696,"items_count":7} 
[2026-04-02 15:39:24] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31885,"menu_item_id":106,"quantity":1},{"id":31886,"menu_item_id":50,"quantity":2},{"id":31887,"menu_item_id":396,"quantity":3},{"id":31888,"menu_item_id":61,"quantity":2},{"id":31889,"menu_item_id":56,"quantity":1},{"id":31890,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":65,"quantity":1}]} 
[2026-04-02 15:39:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6696,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["106|1|","50|2|","396|3|","61|2|","56|1|","5|1|"],"new_items_map_keys":["106|1|","50|2|","396|3|","61|2|","56|1|","5|1|","65|1|"]} 
[2026-04-02 15:39:24] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6696,"order_number":"AZS-020426-008"} 
[2026-04-02 15:39:24] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-008","replaced_order_id":6696} 
[2026-04-02 15:39:24] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6698,"items_count":7,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"}]} 
[2026-04-02 15:39:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6698,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6698}} 
[2026-04-02 15:39:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6698,"item_index":0,"menu_item_id":106} 
[2026-04-02 15:39:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6698,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6698}} 
[2026-04-02 15:39:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6698,"item_index":1,"menu_item_id":50} 
[2026-04-02 15:39:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6698,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6698}} 
[2026-04-02 15:39:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6698,"item_index":2,"menu_item_id":396} 
[2026-04-02 15:39:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6698,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6698}} 
[2026-04-02 15:39:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6698,"item_index":3,"menu_item_id":61} 
[2026-04-02 15:39:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6698,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6698}} 
[2026-04-02 15:39:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6698,"item_index":4,"menu_item_id":56} 
[2026-04-02 15:39:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6698,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6698}} 
[2026-04-02 15:39:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6698,"item_index":5,"menu_item_id":5} 
[2026-04-02 15:39:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6698,"item_index":6,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6698}} 
[2026-04-02 15:39:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6698,"item_index":6,"menu_item_id":65} 
[2026-04-02 15:39:24] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6696,"new_order_id":6698,"order_number":"AZS-020426-008"} 
[2026-04-02 15:42:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":1,"order_id":6693,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":31874},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31876},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":31877},{"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null,"id":31878},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":31879},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31880},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31874,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":31876,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":31877,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":31878,"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null},{"id":31879,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":31880,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 15:42:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6693,"items_count":7} 
[2026-04-02 15:42:37] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":1,"items_to_remove":[31875],"items":[{"id":31874,"menu_item_id":105,"quantity":1},{"id":31876,"menu_item_id":396,"quantity":3},{"id":31877,"menu_item_id":50,"quantity":2},{"id":31878,"menu_item_id":60,"quantity":2},{"id":31879,"menu_item_id":56,"quantity":2},{"id":31880,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":106,"quantity":1}]} 
[2026-04-02 15:42:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6693,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["105|1|","113|1|","396|3|","50|2|","60|2|","56|2|","5|1|"],"new_items_map_keys":["105|1|","396|3|","50|2|","60|2|","56|2|","5|1|","106|1|"]} 
[2026-04-02 15:42:37] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6693,"order_number":"AZS-020426-006"} 
[2026-04-02 15:42:37] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-006","replaced_order_id":6693} 
[2026-04-02 15:42:37] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6699,"items_count":7,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":60,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"}]} 
[2026-04-02 15:42:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6699,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6699}} 
[2026-04-02 15:42:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6699,"item_index":0,"menu_item_id":105} 
[2026-04-02 15:42:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6699,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6699}} 
[2026-04-02 15:42:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6699,"item_index":1,"menu_item_id":396} 
[2026-04-02 15:42:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6699,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6699}} 
[2026-04-02 15:42:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6699,"item_index":2,"menu_item_id":50} 
[2026-04-02 15:42:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6699,"item_index":3,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6699}} 
[2026-04-02 15:42:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6699,"item_index":3,"menu_item_id":60} 
[2026-04-02 15:42:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6699,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6699}} 
[2026-04-02 15:42:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6699,"item_index":4,"menu_item_id":56} 
[2026-04-02 15:42:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6699,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6699}} 
[2026-04-02 15:42:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6699,"item_index":5,"menu_item_id":5} 
[2026-04-02 15:42:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6699,"item_index":6,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6699}} 
[2026-04-02 15:42:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6699,"item_index":6,"menu_item_id":106} 
[2026-04-02 15:42:37] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6693,"new_order_id":6699,"order_number":"AZS-020426-006"} 
[2026-04-02 15:47:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6695,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":31883},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":31884},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":31883,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":31884,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-02 15:47:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6695,"items_count":3} 
[2026-04-02 15:47:43] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31883,"menu_item_id":96,"quantity":1},{"id":31884,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":29,"quantity":2}]} 
[2026-04-02 15:47:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6695,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["96|1|","396|2|"],"new_items_map_keys":["96|1|","396|2|","29|2|"]} 
[2026-04-02 15:47:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6695,"order_number":"AZS-020426-007"} 
[2026-04-02 15:47:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-007","replaced_order_id":6695} 
[2026-04-02 15:47:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6702,"items_count":3,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":29,"quantity":2,"price":"250.00"}]} 
[2026-04-02 15:47:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6702,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6702}} 
[2026-04-02 15:47:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6702,"item_index":0,"menu_item_id":96} 
[2026-04-02 15:47:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6702,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6702}} 
[2026-04-02 15:47:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6702,"item_index":1,"menu_item_id":396} 
[2026-04-02 15:47:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6702,"item_index":2,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6702}} 
[2026-04-02 15:47:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6702,"item_index":2,"menu_item_id":29} 
[2026-04-02 15:47:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6695,"new_order_id":6702,"order_number":"AZS-020426-007"} 
[2026-04-02 15:52:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6700,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":31906},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31906,"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 15:52:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6700,"items_count":8} 
[2026-04-02 15:52:42] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31906,"menu_item_id":56,"quantity":3},{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":97,"quantity":1},{"id":null,"menu_item_id":50,"quantity":3},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":83,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-02 15:52:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6700,"has_item_changes":true,"old_items_count":1,"new_items_count":8,"old_items_map_keys":["56|1|"],"new_items_map_keys":["56|3|","106|1|","97|1|","50|3|","396|3|","61|3|","83|1|","5|1|"]} 
[2026-04-02 15:52:42] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6700,"order_number":"AZS-020426-010"} 
[2026-04-02 15:52:42] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-010","replaced_order_id":6700} 
[2026-04-02 15:52:42] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6703,"items_count":8,"items":[{"menu_item_id":56,"quantity":3,"price":"199.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":50,"quantity":3,"price":"129.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":83,"quantity":1,"price":"649.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-02 15:52:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6703,"item_index":0,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6703}} 
[2026-04-02 15:52:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6703,"item_index":0,"menu_item_id":56} 
[2026-04-02 15:52:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6703,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6703}} 
[2026-04-02 15:52:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6703,"item_index":1,"menu_item_id":106} 
[2026-04-02 15:52:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6703,"item_index":2,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6703}} 
[2026-04-02 15:52:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6703,"item_index":2,"menu_item_id":97} 
[2026-04-02 15:52:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6703,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6703}} 
[2026-04-02 15:52:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6703,"item_index":3,"menu_item_id":50} 
[2026-04-02 15:52:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6703,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6703}} 
[2026-04-02 15:52:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6703,"item_index":4,"menu_item_id":396} 
[2026-04-02 15:52:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6703,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6703}} 
[2026-04-02 15:52:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6703,"item_index":5,"menu_item_id":61} 
[2026-04-02 15:52:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6703,"item_index":6,"item_data":{"menu_item_id":83,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Chicken Nuggets","quantity":1,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":649.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6703}} 
[2026-04-02 15:52:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6703,"item_index":6,"menu_item_id":83} 
[2026-04-02 15:52:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6703,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6703}} 
[2026-04-02 15:52:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6703,"item_index":7,"menu_item_id":5} 
[2026-04-02 15:52:42] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6700,"new_order_id":6703,"order_number":"AZS-020426-010"} 
[2026-04-02 16:03:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6703,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":56,"quantity":4,"discount_percent":0,"notes":null,"id":31911},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":31912},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":31913},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null,"id":31914},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31915},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":31916},{"menu_item_id":83,"quantity":2,"discount_percent":0,"notes":null,"id":31917},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31918}],"validated_items":[{"id":31911,"menu_item_id":56,"quantity":4,"discount_percent":0,"notes":null},{"id":31912,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":31913,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":31914,"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"id":31915,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":31916,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":31917,"menu_item_id":83,"quantity":2,"discount_percent":0,"notes":null},{"id":31918,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 16:03:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6703,"items_count":8} 
[2026-04-02 16:03:21] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31911,"menu_item_id":56,"quantity":4},{"id":31912,"menu_item_id":106,"quantity":1},{"id":31913,"menu_item_id":97,"quantity":1},{"id":31914,"menu_item_id":50,"quantity":3},{"id":31915,"menu_item_id":396,"quantity":3},{"id":31916,"menu_item_id":61,"quantity":3},{"id":31917,"menu_item_id":83,"quantity":2},{"id":31918,"menu_item_id":5,"quantity":1}]} 
[2026-04-02 16:03:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6703,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["56|3|","106|1|","97|1|","50|3|","396|3|","61|3|","83|1|","5|1|"],"new_items_map_keys":["56|4|","106|1|","97|1|","50|3|","396|3|","61|3|","83|2|","5|1|"]} 
[2026-04-02 16:03:21] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6703,"order_number":"AZS-020426-010"} 
[2026-04-02 16:03:21] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-010","replaced_order_id":6703} 
[2026-04-02 16:03:21] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6705,"items_count":8,"items":[{"menu_item_id":56,"quantity":4,"price":"199.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":50,"quantity":3,"price":"129.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":83,"quantity":2,"price":"649.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-02 16:03:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6705,"item_index":0,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6705}} 
[2026-04-02 16:03:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6705,"item_index":0,"menu_item_id":56} 
[2026-04-02 16:03:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6705,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6705}} 
[2026-04-02 16:03:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6705,"item_index":1,"menu_item_id":106} 
[2026-04-02 16:03:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6705,"item_index":2,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6705}} 
[2026-04-02 16:03:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6705,"item_index":2,"menu_item_id":97} 
[2026-04-02 16:03:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6705,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6705}} 
[2026-04-02 16:03:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6705,"item_index":3,"menu_item_id":50} 
[2026-04-02 16:03:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6705,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6705}} 
[2026-04-02 16:03:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6705,"item_index":4,"menu_item_id":396} 
[2026-04-02 16:03:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6705,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6705}} 
[2026-04-02 16:03:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6705,"item_index":5,"menu_item_id":61} 
[2026-04-02 16:03:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6705,"item_index":6,"item_data":{"menu_item_id":83,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Chicken Nuggets","quantity":2,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":1298.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6705}} 
[2026-04-02 16:03:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6705,"item_index":6,"menu_item_id":83} 
[2026-04-02 16:03:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6705,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6705}} 
[2026-04-02 16:03:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6705,"item_index":7,"menu_item_id":5} 
[2026-04-02 16:03:21] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6703,"new_order_id":6705,"order_number":"AZS-020426-010"} 
[2026-04-02 16:06:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6701,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31907},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31907,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 16:06:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6701,"items_count":3} 
[2026-04-02 16:06:53] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31907,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":87,"quantity":1}]} 
[2026-04-02 16:06:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6701,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["56|1|"],"new_items_map_keys":["56|1|","52|3|","87|1|"]} 
[2026-04-02 16:06:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6701,"order_number":"AZS-020426-011"} 
[2026-04-02 16:06:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-011","replaced_order_id":6701} 
[2026-04-02 16:06:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6706,"items_count":3,"items":[{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":52,"quantity":3,"price":"70.00"},{"menu_item_id":87,"quantity":1,"price":"1999.00"}]} 
[2026-04-02 16:06:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6706,"item_index":0,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6706}} 
[2026-04-02 16:06:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6706,"item_index":0,"menu_item_id":56} 
[2026-04-02 16:06:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6706,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6706}} 
[2026-04-02 16:06:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6706,"item_index":1,"menu_item_id":52} 
[2026-04-02 16:06:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6706,"item_index":2,"item_data":{"menu_item_id":87,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6706}} 
[2026-04-02 16:06:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6706,"item_index":2,"menu_item_id":87} 
[2026-04-02 16:06:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6701,"new_order_id":6706,"order_number":"AZS-020426-011"} 
[2026-04-02 16:15:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6704,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":11,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":31919}],"validated_items":[{"id":31919,"menu_item_id":11,"quantity":2,"price":159,"discount_percent":0,"notes":null}]} 
[2026-04-02 16:15:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6704,"items_count":1} 
[2026-04-02 16:15:59] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31919,"menu_item_id":11,"quantity":2}]} 
[2026-04-02 16:15:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6704,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["11|2|"],"new_items_map_keys":["11|2|"]} 
[2026-04-02 16:15:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6704,"order_number":"AZS-020426-012"} 
[2026-04-02 16:15:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6704,"order_number":"AZS-020426-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 16:15:59"} 
[2026-04-02 16:16:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6692,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null,"id":31869},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":31870},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":31871},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31872},{"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null,"id":31873},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":23,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":31869,"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null},{"id":31870,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":31871,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":31872,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":31873,"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":23,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-04-02 16:16:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6692,"items_count":7} 
[2026-04-02 16:16:23] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31869,"menu_item_id":87,"quantity":1},{"id":31870,"menu_item_id":65,"quantity":1},{"id":31871,"menu_item_id":396,"quantity":1},{"id":31872,"menu_item_id":5,"quantity":1},{"id":31873,"menu_item_id":60,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":23,"quantity":3}]} 
[2026-04-02 16:16:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6692,"has_item_changes":true,"old_items_count":5,"new_items_count":7,"old_items_map_keys":["87|1|","65|1|","396|1|","5|1|","60|1|"],"new_items_map_keys":["87|1|","65|1|","396|1|","5|1|","60|1|","2|1|","23|3|"]} 
[2026-04-02 16:16:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6692,"order_number":"AZS-020426-005"} 
[2026-04-02 16:16:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-005","replaced_order_id":6692} 
[2026-04-02 16:16:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6707,"items_count":7,"items":[{"menu_item_id":87,"quantity":1,"price":"1999.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":60,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":23,"quantity":3,"price":"249.00"}]} 
[2026-04-02 16:16:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6707,"item_index":0,"item_data":{"menu_item_id":87,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6707}} 
[2026-04-02 16:16:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6707,"item_index":0,"menu_item_id":87} 
[2026-04-02 16:16:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6707,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6707}} 
[2026-04-02 16:16:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6707,"item_index":1,"menu_item_id":65} 
[2026-04-02 16:16:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6707,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6707}} 
[2026-04-02 16:16:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6707,"item_index":2,"menu_item_id":396} 
[2026-04-02 16:16:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6707,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6707}} 
[2026-04-02 16:16:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6707,"item_index":3,"menu_item_id":5} 
[2026-04-02 16:16:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6707,"item_index":4,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6707}} 
[2026-04-02 16:16:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6707,"item_index":4,"menu_item_id":60} 
[2026-04-02 16:16:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6707,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6707}} 
[2026-04-02 16:16:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6707,"item_index":5,"menu_item_id":2} 
[2026-04-02 16:16:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6707,"item_index":6,"item_data":{"menu_item_id":23,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Vanilla","quantity":3,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6707}} 
[2026-04-02 16:16:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6707,"item_index":6,"menu_item_id":23} 
[2026-04-02 16:16:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6692,"new_order_id":6707,"order_number":"AZS-020426-005"} 
[2026-04-02 16:16:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6707,"item_index":0,"item_id":31869} 
[2026-04-02 16:16:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6707,"item_index":1,"item_id":31870} 
[2026-04-02 16:16:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6707,"item_index":2,"item_id":31871} 
[2026-04-02 16:16:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6707,"item_index":3,"item_id":31872} 
[2026-04-02 16:16:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6707,"item_index":4,"item_id":31873} 
[2026-04-02 16:16:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":6707,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":31869},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":31870},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":31871},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31872},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31873},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":23,"quantity":3,"price":249,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":23,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-02 16:16:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6707,"items_count":7} 
[2026-04-02 16:16:31] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[31931,31932,31933,31934,31935,31936,31937],"items":[{"id":null,"menu_item_id":87,"quantity":1},{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":60,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":23,"quantity":3}]} 
[2026-04-02 16:16:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6707,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["87|1|","65|1|","396|1|","5|1|","60|1|","2|1|","23|3|"],"new_items_map_keys":["87|1|","65|1|","396|1|","5|1|","60|1|","2|1|","23|3|"]} 
[2026-04-02 16:16:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6707,"order_number":"AZS-020426-005"} 
[2026-04-02 16:16:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6707,"order_number":"AZS-020426-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 16:16:31"} 
[2026-04-02 16:16:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6702,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31908},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31909},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":31910}],"validated_items":[{"id":31908,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31909,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":31910,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null}]} 
[2026-04-02 16:16:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6702,"items_count":3} 
[2026-04-02 16:16:48] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31908,"menu_item_id":96,"quantity":1},{"id":31909,"menu_item_id":396,"quantity":2},{"id":31910,"menu_item_id":29,"quantity":2}]} 
[2026-04-02 16:16:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6702,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["96|1|","396|2|","29|2|"],"new_items_map_keys":["96|1|","396|2|","29|2|"]} 
[2026-04-02 16:16:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6702,"order_number":"AZS-020426-007"} 
[2026-04-02 16:16:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6702,"order_number":"AZS-020426-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 16:16:48"} 
[2026-04-02 16:17:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T04:17:34.201Z","date_to":"2026-04-02T16:17:34.201Z","per_page":"100"} 
[2026-04-02 16:17:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T04:17:34.214Z","date_to":"2026-04-02T16:17:34.214Z","per_page":"100"} 
[2026-04-02 16:17:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":9,"unique_order_numbers":12} 
[2026-04-02 16:17:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":9,"unique_order_numbers":12} 
[2026-04-02 16:17:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T04:17:34.201Z","date_to":"2026-04-02T16:17:34.201Z","per_page":"100"} 
[2026-04-02 16:17:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":9,"unique_order_numbers":12} 
[2026-04-02 16:18:58] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6704,"order_number":"AZS-020426-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":340,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 16:18:58"} 
[2026-04-02 16:18:58] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6704,"order_number":"AZS-020426-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":340,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 16:18:58"} 
[2026-04-02 16:18:58] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6704,"order_number":"AZS-020426-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":340,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 16:18:58"} 
[2026-04-02 16:18:58] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6704,"order_number":"AZS-020426-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":340,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 16:18:58"} 
[2026-04-02 16:18:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6704,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":11,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":31919}],"validated_items":[{"id":31919,"menu_item_id":11,"quantity":2,"price":159,"discount_percent":0,"notes":null}]} 
[2026-04-02 16:18:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6704,"items_count":1} 
[2026-04-02 16:18:58] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31919,"menu_item_id":11,"quantity":2}]} 
[2026-04-02 16:18:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6704,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["11|2|"],"new_items_map_keys":["11|2|"]} 
[2026-04-02 16:18:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6704,"order_number":"AZS-020426-012"} 
[2026-04-02 16:18:58] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6704,"order_number":"AZS-020426-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":340,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-02 16:18:58","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-02 16:18:58"} 
[2026-04-02 16:18:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6704,"order_number":"AZS-020426-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-02 16:18:58"} 
[2026-04-02 16:18:58] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6704,"order_number":"AZS-020426-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"340.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-02 16:18:58","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":340,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"340.00","database_verification_match":true,"timestamp":"2026-04-02 16:18:58"} 
[2026-04-02 16:19:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6698,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":31892},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":31893},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31894},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31895},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31896},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31897},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":31898}],"validated_items":[{"id":31892,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":31893,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":31894,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":31895,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31896,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31897,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":31898,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 16:19:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6698,"items_count":7} 
[2026-04-02 16:19:11] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31892,"menu_item_id":106,"quantity":1},{"id":31893,"menu_item_id":50,"quantity":2},{"id":31894,"menu_item_id":396,"quantity":3},{"id":31895,"menu_item_id":61,"quantity":2},{"id":31896,"menu_item_id":56,"quantity":1},{"id":31897,"menu_item_id":5,"quantity":1},{"id":31898,"menu_item_id":65,"quantity":1}]} 
[2026-04-02 16:19:11] local.INFO: PosOrderController::update - Item changes check {"order_id":6698,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["106|1|","50|2|","396|3|","61|2|","56|1|","5|1|","65|1|"],"new_items_map_keys":["106|1|","50|2|","396|3|","61|2|","56|1|","5|1|","65|1|"]} 
[2026-04-02 16:19:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6698,"order_number":"AZS-020426-008"} 
[2026-04-02 16:19:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6698,"order_number":"AZS-020426-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-02 16:19:11"} 
[2026-04-02 16:19:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T04:19:50.553Z","date_to":"2026-04-02T16:19:50.553Z","per_page":"100"} 
[2026-04-02 16:19:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["paid","pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":8,"unique_order_numbers":12} 
[2026-04-02 16:19:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T04:19:50.568Z","date_to":"2026-04-02T16:19:50.568Z","per_page":"100"} 
[2026-04-02 16:19:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["paid","pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":8,"unique_order_numbers":12} 
[2026-04-02 16:19:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T04:19:50.553Z","date_to":"2026-04-02T16:19:50.553Z","per_page":"100"} 
[2026-04-02 16:19:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["paid","pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":8,"unique_order_numbers":12} 
[2026-04-02 16:20:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6702,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31908},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31909},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":31910}],"validated_items":[{"id":31908,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31909,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":31910,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null}]} 
[2026-04-02 16:20:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6702,"items_count":3} 
[2026-04-02 16:20:21] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31908,"menu_item_id":96,"quantity":1},{"id":31909,"menu_item_id":396,"quantity":2},{"id":31910,"menu_item_id":29,"quantity":2}]} 
[2026-04-02 16:20:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6702,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["96|1|","396|2|","29|2|"],"new_items_map_keys":["96|1|","396|2|","29|2|"]} 
[2026-04-02 16:20:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6702,"order_number":"AZS-020426-007"} 
[2026-04-02 16:20:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6702,"order_number":"AZS-020426-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 16:20:21"} 
[2026-04-02 16:31:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6707,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":31931},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":31932},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":31933},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31934},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31935},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":31936},{"menu_item_id":23,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":31937}],"validated_items":[{"id":31931,"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":31932,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":31933,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":31934,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31935,"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31936,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":31937,"menu_item_id":23,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-02 16:31:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6707,"items_count":7} 
[2026-04-02 16:31:49] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31931,"menu_item_id":87,"quantity":1},{"id":31932,"menu_item_id":65,"quantity":1},{"id":31933,"menu_item_id":396,"quantity":1},{"id":31934,"menu_item_id":5,"quantity":1},{"id":31935,"menu_item_id":60,"quantity":1},{"id":31936,"menu_item_id":2,"quantity":1},{"id":31937,"menu_item_id":23,"quantity":3}]} 
[2026-04-02 16:31:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6707,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["87|1|","65|1|","396|1|","5|1|","60|1|","2|1|","23|3|"],"new_items_map_keys":["87|1|","65|1|","396|1|","5|1|","60|1|","2|1|","23|3|"]} 
[2026-04-02 16:31:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6707,"order_number":"AZS-020426-005"} 
[2026-04-02 16:31:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6707,"order_number":"AZS-020426-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 16:31:49"} 
[2026-04-02 16:32:19] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6707,"order_number":"AZS-020426-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 16:32:19"} 
[2026-04-02 16:32:19] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6707,"order_number":"AZS-020426-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 16:32:19"} 
[2026-04-02 16:32:19] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6707,"order_number":"AZS-020426-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 16:32:19"} 
[2026-04-02 16:32:19] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6707,"order_number":"AZS-020426-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 16:32:19"} 
[2026-04-02 16:32:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":6707,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":31931},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":31932},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":31933},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31934},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":31936},{"menu_item_id":23,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":31937}],"validated_items":[{"id":31931,"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":31932,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":31933,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":31934,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":31936,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":31937,"menu_item_id":23,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-02 16:32:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6707,"items_count":6} 
[2026-04-02 16:32:19] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[31935],"items":[{"id":31931,"menu_item_id":87,"quantity":1},{"id":31932,"menu_item_id":65,"quantity":1},{"id":31933,"menu_item_id":396,"quantity":1},{"id":31934,"menu_item_id":5,"quantity":1},{"id":31936,"menu_item_id":2,"quantity":1},{"id":31937,"menu_item_id":23,"quantity":3}]} 
[2026-04-02 16:32:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6707,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["87|1|","65|1|","396|1|","5|1|","60|1|","2|1|","23|3|"],"new_items_map_keys":["87|1|","65|1|","396|1|","5|1|","2|1|","23|3|"]} 
[2026-04-02 16:32:19] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6707,"order_number":"AZS-020426-005","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-02 16:32:19","original_payment_amount":"0.00","grand_total":4444.0,"timestamp":"2026-04-02 16:32:19"} 
[2026-04-02 16:32:19] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6707,"order_number":"AZS-020426-005"} 
[2026-04-02 16:32:19] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-005","replaced_order_id":6707} 
[2026-04-02 16:32:19] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6707,"new_order_id":6708,"order_number":"AZS-020426-005","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-02 16:32:19","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-02 16:32:19"} 
[2026-04-02 16:32:19] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6708,"items_count":6,"items":[{"menu_item_id":87,"quantity":1,"price":1999.0},{"menu_item_id":65,"quantity":1,"price":1299.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":2,"quantity":1,"price":130.0},{"menu_item_id":23,"quantity":3,"price":249.0}]} 
[2026-04-02 16:32:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6708,"item_index":0,"item_data":{"menu_item_id":87,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Handi","quantity":1,"price":1999.0,"discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6708}} 
[2026-04-02 16:32:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6708,"item_index":0,"menu_item_id":87} 
[2026-04-02 16:32:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6708,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6708}} 
[2026-04-02 16:32:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6708,"item_index":1,"menu_item_id":65} 
[2026-04-02 16:32:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6708,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6708}} 
[2026-04-02 16:32:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6708,"item_index":2,"menu_item_id":396} 
[2026-04-02 16:32:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6708,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6708}} 
[2026-04-02 16:32:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6708,"item_index":3,"menu_item_id":5} 
[2026-04-02 16:32:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6708,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6708}} 
[2026-04-02 16:32:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6708,"item_index":4,"menu_item_id":2} 
[2026-04-02 16:32:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6708,"item_index":5,"item_data":{"menu_item_id":23,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Vanilla","quantity":3,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6708}} 
[2026-04-02 16:32:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6708,"item_index":5,"menu_item_id":23} 
[2026-04-02 16:32:19] local.ERROR: Error tracking recipe usage for order 6708: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6708, 87, 184, 1, 0.5, 0.00, Order #AZS-020426-005 - 1x Chicken Handi, 2026-04-02 16:32:19, 2026-04-02 16:32:19))  
[2026-04-02 16:32:19] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6707,"new_order_id":6708,"order_number":"AZS-020426-005"} 
[2026-04-02 16:32:19] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6707,"new_order_id":6708,"order_number":"AZS-020426-005","route":"api/orders/6707"} 
[2026-04-02 16:32:39] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6702,"order_number":"AZS-020426-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 16:32:39"} 
[2026-04-02 16:32:39] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6702,"order_number":"AZS-020426-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 16:32:39"} 
[2026-04-02 16:32:39] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6702,"order_number":"AZS-020426-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 16:32:39"} 
[2026-04-02 16:32:39] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6702,"order_number":"AZS-020426-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 16:32:39"} 
[2026-04-02 16:32:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6702,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":31908},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":31909},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":31910}],"validated_items":[{"id":31908,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":31909,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":31910,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null}]} 
[2026-04-02 16:32:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6702,"items_count":3} 
[2026-04-02 16:32:39] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31908,"menu_item_id":96,"quantity":1},{"id":31909,"menu_item_id":396,"quantity":2},{"id":31910,"menu_item_id":29,"quantity":2}]} 
[2026-04-02 16:32:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6702,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["96|1|","396|2|","29|2|"],"new_items_map_keys":["96|1|","396|2|","29|2|"]} 
[2026-04-02 16:32:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6702,"order_number":"AZS-020426-007"} 
[2026-04-02 16:32:39] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6702,"order_number":"AZS-020426-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-02 16:32:39","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-02 16:32:39"} 
[2026-04-02 16:32:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6702,"order_number":"AZS-020426-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-02 16:32:39"} 
[2026-04-02 16:32:39] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6702,"order_number":"AZS-020426-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-02 16:32:39","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-04-02 16:32:39"} 
[2026-04-02 16:33:29] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-04-02 16:35:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6711,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 16:35:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6711,"items_count":4} 
[2026-04-02 16:35:25] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[31950,31951,31952,31953],"items":[{"id":null,"menu_item_id":97,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-04-02 16:35:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6711,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["97|1|","396|3|","61|1|","56|1|"],"new_items_map_keys":["97|1|","396|3|","61|1|","56|1|"]} 
[2026-04-02 16:35:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6711,"order_number":"AZS-020426-015"} 
[2026-04-02 16:35:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6711,"order_number":"AZS-020426-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-02 16:35:25"} 
[2026-04-02 16:42:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":4,"order_id":6711,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-04-02 16:42:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6711,"items_count":1} 
[2026-04-02 16:42:26] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":4,"items_to_remove":[31950,31951,31952,31953],"items":[{"id":null,"menu_item_id":6,"quantity":3}]} 
[2026-04-02 16:42:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6711,"has_item_changes":true,"old_items_count":4,"new_items_count":1,"old_items_map_keys":["97|1|","396|3|","61|1|","56|1|"],"new_items_map_keys":["6|3|"]} 
[2026-04-02 16:42:26] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6711,"order_number":"AZS-020426-015"} 
[2026-04-02 16:42:26] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-015","replaced_order_id":6711} 
[2026-04-02 16:42:26] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6712,"items_count":1,"items":[{"menu_item_id":6,"quantity":3,"price":"199.00"}]} 
[2026-04-02 16:42:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6712,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6712}} 
[2026-04-02 16:42:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6712,"item_index":0,"menu_item_id":6} 
[2026-04-02 16:42:26] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6711,"new_order_id":6712,"order_number":"AZS-020426-015"} 
[2026-04-02 16:49:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6712,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null,"id":31954}],"validated_items":[{"id":31954,"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-04-02 16:49:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6712,"items_count":1} 
[2026-04-02 16:49:17] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31954,"menu_item_id":6,"quantity":3}]} 
[2026-04-02 16:49:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6712,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|3|"],"new_items_map_keys":["6|3|"]} 
[2026-04-02 16:49:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6712,"order_number":"AZS-020426-015"} 
[2026-04-02 16:49:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6712,"order_number":"AZS-020426-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-02 16:49:17"} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6705,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":56,"quantity":4,"discount_percent":0,"notes":null,"id":31920},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":31921},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":31922},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null,"id":31923},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31924},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":31925},{"menu_item_id":83,"quantity":2,"discount_percent":0,"notes":null,"id":31926},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31927},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31920,"menu_item_id":56,"quantity":4,"discount_percent":0,"notes":null},{"id":31921,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":31922,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":31923,"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"id":31924,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":31925,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":31926,"menu_item_id":83,"quantity":2,"discount_percent":0,"notes":null},{"id":31927,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6705,"items_count":9} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31920,"menu_item_id":56,"quantity":4},{"id":31921,"menu_item_id":106,"quantity":1},{"id":31922,"menu_item_id":97,"quantity":1},{"id":31923,"menu_item_id":50,"quantity":3},{"id":31924,"menu_item_id":396,"quantity":3},{"id":31925,"menu_item_id":61,"quantity":3},{"id":31926,"menu_item_id":83,"quantity":2},{"id":31927,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1}]} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Item changes check {"order_id":6705,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["56|4|","106|1|","97|1|","50|3|","396|3|","61|3|","83|2|","5|1|"],"new_items_map_keys":["56|4|","106|1|","97|1|","50|3|","396|3|","61|3|","83|2|","5|1|","403|1|"]} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6705,"order_number":"AZS-020426-010"} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-010","replaced_order_id":6705} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6714,"items_count":9,"items":[{"menu_item_id":56,"quantity":4,"price":"199.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":50,"quantity":3,"price":"129.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":83,"quantity":2,"price":"649.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"}]} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6714,"item_index":0,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6714}} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6714,"item_index":0,"menu_item_id":56} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6714,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6714}} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6714,"item_index":1,"menu_item_id":106} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6714,"item_index":2,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6714}} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6714,"item_index":2,"menu_item_id":97} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6714,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6714}} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6714,"item_index":3,"menu_item_id":50} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6714,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6714}} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6714,"item_index":4,"menu_item_id":396} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6714,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6714}} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6714,"item_index":5,"menu_item_id":61} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6714,"item_index":6,"item_data":{"menu_item_id":83,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Chicken Nuggets","quantity":2,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":1298.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6714}} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6714,"item_index":6,"menu_item_id":83} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6714,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6714}} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6714,"item_index":7,"menu_item_id":5} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6714,"item_index":8,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6714}} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6714,"item_index":8,"menu_item_id":403} 
[2026-04-02 16:50:02] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6705,"new_order_id":6714,"order_number":"AZS-020426-010"} 
[2026-04-02 16:51:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6710,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":31945},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":31946},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":31947},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31948},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31949}],"validated_items":[{"id":31945,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":31946,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":31947,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":31948,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31949,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 16:51:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6710,"items_count":5} 
[2026-04-02 16:51:50] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31945,"menu_item_id":396,"quantity":2},{"id":31946,"menu_item_id":50,"quantity":2},{"id":31947,"menu_item_id":95,"quantity":1},{"id":31948,"menu_item_id":61,"quantity":2},{"id":31949,"menu_item_id":5,"quantity":1}]} 
[2026-04-02 16:51:50] local.INFO: PosOrderController::update - Item changes check {"order_id":6710,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["396|2|","50|2|","95|1|","61|2|","5|1|"],"new_items_map_keys":["396|2|","50|2|","95|1|","61|2|","5|1|"]} 
[2026-04-02 16:51:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6710,"order_number":"AZS-020426-014"} 
[2026-04-02 16:51:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6710,"order_number":"AZS-020426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-02 16:51:50"} 
[2026-04-02 16:52:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6709,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":31944}],"validated_items":[{"id":31944,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-02 16:52:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6709,"items_count":1} 
[2026-04-02 16:52:38] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31944,"menu_item_id":6,"quantity":4}]} 
[2026-04-02 16:52:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6709,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|4|"],"new_items_map_keys":["6|4|"]} 
[2026-04-02 16:52:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6709,"order_number":"AZS-020426-013"} 
[2026-04-02 16:52:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6709,"order_number":"AZS-020426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 16:52:38"} 
[2026-04-02 16:54:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6698,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":31892},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":31893},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31894},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31895},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31896},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31897},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":31898},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":31892,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":31893,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":31894,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":31895,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31896,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31897,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":31898,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-02 16:54:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6698,"items_count":8} 
[2026-04-02 16:54:08] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31892,"menu_item_id":106,"quantity":1},{"id":31893,"menu_item_id":50,"quantity":2},{"id":31894,"menu_item_id":396,"quantity":3},{"id":31895,"menu_item_id":61,"quantity":2},{"id":31896,"menu_item_id":56,"quantity":1},{"id":31897,"menu_item_id":5,"quantity":1},{"id":31898,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-04-02 16:54:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6698,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["106|1|","50|2|","396|3|","61|2|","56|1|","5|1|","65|1|"],"new_items_map_keys":["106|1|","50|2|","396|3|","61|2|","56|1|","5|1|","65|1|","6|2|"]} 
[2026-04-02 16:54:08] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6698,"order_number":"AZS-020426-008"} 
[2026-04-02 16:54:08] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-008","replaced_order_id":6698} 
[2026-04-02 16:54:08] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6716,"items_count":8,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-04-02 16:54:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6716,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6716}} 
[2026-04-02 16:54:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6716,"item_index":0,"menu_item_id":106} 
[2026-04-02 16:54:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6716,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6716}} 
[2026-04-02 16:54:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6716,"item_index":1,"menu_item_id":50} 
[2026-04-02 16:54:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6716,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6716}} 
[2026-04-02 16:54:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6716,"item_index":2,"menu_item_id":396} 
[2026-04-02 16:54:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6716,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6716}} 
[2026-04-02 16:54:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6716,"item_index":3,"menu_item_id":61} 
[2026-04-02 16:54:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6716,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6716}} 
[2026-04-02 16:54:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6716,"item_index":4,"menu_item_id":56} 
[2026-04-02 16:54:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6716,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6716}} 
[2026-04-02 16:54:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6716,"item_index":5,"menu_item_id":5} 
[2026-04-02 16:54:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6716,"item_index":6,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6716}} 
[2026-04-02 16:54:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6716,"item_index":6,"menu_item_id":65} 
[2026-04-02 16:54:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6716,"item_index":7,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6716}} 
[2026-04-02 16:54:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6716,"item_index":7,"menu_item_id":6} 
[2026-04-02 16:54:08] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6698,"new_order_id":6716,"order_number":"AZS-020426-008"} 
[2026-04-02 16:54:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6712,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null,"id":31954}],"validated_items":[{"id":31954,"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-04-02 16:54:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6712,"items_count":1} 
[2026-04-02 16:54:27] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31954,"menu_item_id":6,"quantity":3}]} 
[2026-04-02 16:54:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6712,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|3|"],"new_items_map_keys":["6|3|"]} 
[2026-04-02 16:54:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6712,"order_number":"AZS-020426-015"} 
[2026-04-02 16:54:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6712,"order_number":"AZS-020426-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-02 16:54:27"} 
[2026-04-02 16:54:43] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6715,"order_number":"AZS-020426-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1050,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 16:54:43"} 
[2026-04-02 16:54:43] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6715,"order_number":"AZS-020426-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1050,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 16:54:43"} 
[2026-04-02 16:54:43] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6715,"order_number":"AZS-020426-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1050,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 16:54:43"} 
[2026-04-02 16:54:43] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6715,"order_number":"AZS-020426-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1050,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 16:54:43"} 
[2026-04-02 16:54:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6715,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":31969}],"validated_items":[{"id":31969,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-02 16:54:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6715,"items_count":1} 
[2026-04-02 16:54:43] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31969,"menu_item_id":13,"quantity":4}]} 
[2026-04-02 16:54:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6715,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|4|"],"new_items_map_keys":["13|4|"]} 
[2026-04-02 16:54:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6715,"order_number":"AZS-020426-017"} 
[2026-04-02 16:54:43] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6715,"order_number":"AZS-020426-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1050,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-02 16:54:43","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-02 16:54:43"} 
[2026-04-02 16:54:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6715,"order_number":"AZS-020426-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-02 16:54:43"} 
[2026-04-02 16:54:43] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6715,"order_number":"AZS-020426-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1050.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-02 16:54:43","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1050,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1050.00","database_verification_match":true,"timestamp":"2026-04-02 16:54:43"} 
[2026-04-02 16:59:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6714,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":56,"quantity":4,"discount_percent":0,"notes":null,"id":31960},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":31961},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":31962},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null,"id":31963},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31964},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":31965},{"menu_item_id":83,"quantity":2,"discount_percent":0,"notes":null,"id":31966},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31967},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":31968}],"validated_items":[{"id":31960,"menu_item_id":56,"quantity":4,"discount_percent":0,"notes":null},{"id":31961,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":31962,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":31963,"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"id":31964,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":31965,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":31966,"menu_item_id":83,"quantity":2,"discount_percent":0,"notes":null},{"id":31967,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":31968,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 16:59:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6714,"items_count":9} 
[2026-04-02 16:59:18] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31960,"menu_item_id":56,"quantity":4},{"id":31961,"menu_item_id":106,"quantity":1},{"id":31962,"menu_item_id":97,"quantity":1},{"id":31963,"menu_item_id":50,"quantity":3},{"id":31964,"menu_item_id":396,"quantity":3},{"id":31965,"menu_item_id":61,"quantity":3},{"id":31966,"menu_item_id":83,"quantity":2},{"id":31967,"menu_item_id":5,"quantity":1},{"id":31968,"menu_item_id":403,"quantity":1}]} 
[2026-04-02 16:59:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6714,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["56|4|","106|1|","97|1|","50|3|","396|3|","61|3|","83|2|","5|1|","403|1|"],"new_items_map_keys":["56|4|","106|1|","97|1|","50|3|","396|3|","61|3|","83|2|","5|1|","403|1|"]} 
[2026-04-02 16:59:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6714,"order_number":"AZS-020426-010"} 
[2026-04-02 16:59:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6714,"order_number":"AZS-020426-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-02 16:59:18"} 
[2026-04-02 16:59:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6706,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31928},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":31929},{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":31930}],"validated_items":[{"id":31928,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31929,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":31930,"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null}]} 
[2026-04-02 16:59:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6706,"items_count":3} 
[2026-04-02 16:59:51] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31928,"menu_item_id":56,"quantity":1},{"id":31929,"menu_item_id":52,"quantity":3},{"id":31930,"menu_item_id":87,"quantity":1}]} 
[2026-04-02 16:59:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6706,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["56|1|","52|3|","87|1|"],"new_items_map_keys":["56|1|","52|3|","87|1|"]} 
[2026-04-02 16:59:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6706,"order_number":"AZS-020426-011"} 
[2026-04-02 16:59:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6706,"order_number":"AZS-020426-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 16:59:51"} 
[2026-04-02 17:00:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6706,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31928},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":31929},{"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null,"id":31930},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31928,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31929,"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"id":31930,"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:00:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6706,"items_count":4} 
[2026-04-02 17:00:09] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31928,"menu_item_id":56,"quantity":1},{"id":31929,"menu_item_id":52,"quantity":3},{"id":31930,"menu_item_id":87,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-02 17:00:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6706,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["56|1|","52|3|","87|1|"],"new_items_map_keys":["56|1|","52|3|","87|1|","5|1|"]} 
[2026-04-02 17:00:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6706,"order_number":"AZS-020426-011"} 
[2026-04-02 17:00:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-011","replaced_order_id":6706} 
[2026-04-02 17:00:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6718,"items_count":4,"items":[{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":52,"quantity":3,"price":"70.00"},{"menu_item_id":87,"quantity":1,"price":"1999.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-02 17:00:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6718,"item_index":0,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6718}} 
[2026-04-02 17:00:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6718,"item_index":0,"menu_item_id":56} 
[2026-04-02 17:00:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6718,"item_index":1,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6718}} 
[2026-04-02 17:00:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6718,"item_index":1,"menu_item_id":52} 
[2026-04-02 17:00:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6718,"item_index":2,"item_data":{"menu_item_id":87,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6718}} 
[2026-04-02 17:00:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6718,"item_index":2,"menu_item_id":87} 
[2026-04-02 17:00:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6718,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6718}} 
[2026-04-02 17:00:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6718,"item_index":3,"menu_item_id":5} 
[2026-04-02 17:00:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6706,"new_order_id":6718,"order_number":"AZS-020426-011"} 
[2026-04-02 17:00:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6718,"item_index":0,"item_id":31928} 
[2026-04-02 17:00:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6718,"item_index":1,"item_id":31929} 
[2026-04-02 17:00:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6718,"item_index":2,"item_id":31930} 
[2026-04-02 17:00:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6718,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31928},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":31929},{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":31930},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:00:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6718,"items_count":4} 
[2026-04-02 17:00:14] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[31984,31985,31986,31987],"items":[{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":87,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-02 17:00:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6718,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["56|1|","52|3|","87|1|","5|1|"],"new_items_map_keys":["56|1|","52|3|","87|1|","5|1|"]} 
[2026-04-02 17:00:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6718,"order_number":"AZS-020426-011"} 
[2026-04-02 17:00:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6718,"order_number":"AZS-020426-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 17:00:14"} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6691,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":108,"quantity":1,"discount_percent":0,"notes":null,"id":31868},{"menu_item_id":29,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31868,"menu_item_id":108,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6691,"items_count":10} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31868,"menu_item_id":108,"quantity":1},{"id":null,"menu_item_id":29,"quantity":5},{"id":null,"menu_item_id":13,"quantity":4},{"id":null,"menu_item_id":9,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":51,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1}]} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6691,"has_item_changes":true,"old_items_count":1,"new_items_count":10,"old_items_map_keys":["108|1|"],"new_items_map_keys":["108|1|","29|5|","13|4|","9|2|","61|1|","56|2|","5|1|","3|1|","51|1|","396|1|"]} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6691,"order_number":"AZS-020426-004"} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-004","replaced_order_id":6691} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6719,"items_count":10,"items":[{"menu_item_id":108,"quantity":1,"price":"4199.00"},{"menu_item_id":29,"quantity":5,"price":"250.00"},{"menu_item_id":13,"quantity":4,"price":"249.00"},{"menu_item_id":9,"quantity":2,"price":"229.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":51,"quantity":1,"price":"199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"}]} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6719,"item_index":0,"item_data":{"menu_item_id":108,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Sulemani - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6719}} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6719,"item_index":0,"menu_item_id":108} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6719,"item_index":1,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":5,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6719}} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6719,"item_index":1,"menu_item_id":29} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6719,"item_index":2,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":4,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6719}} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6719,"item_index":2,"menu_item_id":13} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6719,"item_index":3,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":2,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":458.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6719}} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6719,"item_index":3,"menu_item_id":9} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6719,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6719}} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6719,"item_index":4,"menu_item_id":61} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6719,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6719}} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6719,"item_index":5,"menu_item_id":56} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6719,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6719}} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6719,"item_index":6,"menu_item_id":5} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6719,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6719}} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6719,"item_index":7,"menu_item_id":3} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6719,"item_index":8,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6719}} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6719,"item_index":8,"menu_item_id":51} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6719,"item_index":9,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6719}} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6719,"item_index":9,"menu_item_id":396} 
[2026-04-02 17:01:04] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6691,"new_order_id":6719,"order_number":"AZS-020426-004"} 
[2026-04-02 17:01:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6718,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31984},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":31985},{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":31986},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31987}],"validated_items":[{"id":31984,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":31985,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":31986,"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":31987,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:01:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6718,"items_count":4} 
[2026-04-02 17:01:58] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31984,"menu_item_id":56,"quantity":1},{"id":31985,"menu_item_id":52,"quantity":3},{"id":31986,"menu_item_id":87,"quantity":1},{"id":31987,"menu_item_id":5,"quantity":1}]} 
[2026-04-02 17:01:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6718,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["56|1|","52|3|","87|1|","5|1|"],"new_items_map_keys":["56|1|","52|3|","87|1|","5|1|"]} 
[2026-04-02 17:01:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6718,"order_number":"AZS-020426-011"} 
[2026-04-02 17:01:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6718,"order_number":"AZS-020426-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 17:01:58"} 
[2026-04-02 17:02:48] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6718,"order_number":"AZS-020426-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 17:02:48"} 
[2026-04-02 17:02:48] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6718,"order_number":"AZS-020426-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 17:02:48"} 
[2026-04-02 17:02:48] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6718,"order_number":"AZS-020426-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 17:02:48"} 
[2026-04-02 17:02:48] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6718,"order_number":"AZS-020426-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 17:02:48"} 
[2026-04-02 17:02:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":1,"order_id":6718,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":31985},{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":31986},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":31987}],"validated_items":[{"id":31985,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":31986,"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":31987,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:02:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6718,"items_count":3} 
[2026-04-02 17:02:48] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":1,"items_to_remove":[31984],"items":[{"id":31985,"menu_item_id":52,"quantity":3},{"id":31986,"menu_item_id":87,"quantity":1},{"id":31987,"menu_item_id":5,"quantity":1}]} 
[2026-04-02 17:02:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6718,"has_item_changes":true,"old_items_count":4,"new_items_count":3,"old_items_map_keys":["56|1|","52|3|","87|1|","5|1|"],"new_items_map_keys":["52|3|","87|1|","5|1|"]} 
[2026-04-02 17:02:48] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6718,"order_number":"AZS-020426-011","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-02 17:02:48","original_payment_amount":"0.00","grand_total":2379.0,"timestamp":"2026-04-02 17:02:48"} 
[2026-04-02 17:02:48] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6718,"order_number":"AZS-020426-011"} 
[2026-04-02 17:02:48] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-011","replaced_order_id":6718} 
[2026-04-02 17:02:48] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6718,"new_order_id":6720,"order_number":"AZS-020426-011","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-02 17:02:48","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-02 17:02:48"} 
[2026-04-02 17:02:48] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6720,"items_count":3,"items":[{"menu_item_id":52,"quantity":3,"price":70.0},{"menu_item_id":87,"quantity":1,"price":1999.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-04-02 17:02:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6720,"item_index":0,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6720}} 
[2026-04-02 17:02:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6720,"item_index":0,"menu_item_id":52} 
[2026-04-02 17:02:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6720,"item_index":1,"item_data":{"menu_item_id":87,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Handi","quantity":1,"price":1999.0,"discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6720}} 
[2026-04-02 17:02:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6720,"item_index":1,"menu_item_id":87} 
[2026-04-02 17:02:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6720,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6720}} 
[2026-04-02 17:02:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6720,"item_index":2,"menu_item_id":5} 
[2026-04-02 17:02:48] local.ERROR: Error tracking recipe usage for order 6720: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6720, 52, 102, 1, 30, 0.00, Order #AZS-020426-011 - 3x Khamiri Roti, 2026-04-02 17:02:48, 2026-04-02 17:02:48))  
[2026-04-02 17:02:48] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6718,"new_order_id":6720,"order_number":"AZS-020426-011"} 
[2026-04-02 17:02:48] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6718,"new_order_id":6720,"order_number":"AZS-020426-011","route":"api/orders/6718"} 
[2026-04-02 17:04:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6710,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":31945},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":31946},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":31947},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31948},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31949}],"validated_items":[{"id":31945,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":31946,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":31947,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":31948,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31949,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:04:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6710,"items_count":5} 
[2026-04-02 17:04:46] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31945,"menu_item_id":396,"quantity":2},{"id":31946,"menu_item_id":50,"quantity":2},{"id":31947,"menu_item_id":95,"quantity":1},{"id":31948,"menu_item_id":61,"quantity":2},{"id":31949,"menu_item_id":5,"quantity":1}]} 
[2026-04-02 17:04:46] local.INFO: PosOrderController::update - Item changes check {"order_id":6710,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["396|2|","50|2|","95|1|","61|2|","5|1|"],"new_items_map_keys":["396|2|","50|2|","95|1|","61|2|","5|1|"]} 
[2026-04-02 17:04:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6710,"order_number":"AZS-020426-014"} 
[2026-04-02 17:04:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6710,"order_number":"AZS-020426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-02 17:04:46"} 
[2026-04-02 17:07:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":6717,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":31978},{"menu_item_id":136,"quantity":1,"discount_percent":0,"notes":null,"id":31980},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31981},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":31982},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":31983},{"menu_item_id":66,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31978,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":31980,"menu_item_id":136,"quantity":1,"discount_percent":0,"notes":null},{"id":31981,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31982,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":31983,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":66,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:07:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6717,"items_count":6} 
[2026-04-02 17:07:10] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[31979],"items":[{"id":31978,"menu_item_id":96,"quantity":1},{"id":31980,"menu_item_id":136,"quantity":1},{"id":31981,"menu_item_id":61,"quantity":1},{"id":31982,"menu_item_id":50,"quantity":2},{"id":31983,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":66,"quantity":1}]} 
[2026-04-02 17:07:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6717,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["96|1|","65|1|","136|1|","61|1|","50|2|","396|1|"],"new_items_map_keys":["96|1|","136|1|","61|1|","50|2|","396|1|","66|1|"]} 
[2026-04-02 17:07:10] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6717,"order_number":"AZS-020426-018"} 
[2026-04-02 17:07:10] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-018","replaced_order_id":6717} 
[2026-04-02 17:07:10] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6721,"items_count":6,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":136,"quantity":1,"price":"899.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":66,"quantity":1,"price":"1399.00"}]} 
[2026-04-02 17:07:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6721,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6721}} 
[2026-04-02 17:07:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6721,"item_index":0,"menu_item_id":96} 
[2026-04-02 17:07:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6721,"item_index":1,"item_data":{"menu_item_id":136,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Small","quantity":1,"price":"899.00","discount_percent":0.0,"discount_amount":0.0,"total":899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6721}} 
[2026-04-02 17:07:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6721,"item_index":1,"menu_item_id":136} 
[2026-04-02 17:07:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6721,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6721}} 
[2026-04-02 17:07:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6721,"item_index":2,"menu_item_id":61} 
[2026-04-02 17:07:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6721,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6721}} 
[2026-04-02 17:07:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6721,"item_index":3,"menu_item_id":50} 
[2026-04-02 17:07:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6721,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6721}} 
[2026-04-02 17:07:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6721,"item_index":4,"menu_item_id":396} 
[2026-04-02 17:07:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6721,"item_index":5,"item_data":{"menu_item_id":66,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Cheese Kabab (4 pcs)","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6721}} 
[2026-04-02 17:07:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6721,"item_index":5,"menu_item_id":66} 
[2026-04-02 17:07:10] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6717,"new_order_id":6721,"order_number":"AZS-020426-018"} 
[2026-04-02 17:08:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6713,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":31955},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31956},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31957},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31958},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":31959}],"validated_items":[{"id":31955,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":31956,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":31957,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31958,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31959,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:08:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6713,"items_count":5} 
[2026-04-02 17:08:24] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31955,"menu_item_id":114,"quantity":1},{"id":31956,"menu_item_id":396,"quantity":3},{"id":31957,"menu_item_id":61,"quantity":1},{"id":31958,"menu_item_id":56,"quantity":1},{"id":31959,"menu_item_id":5,"quantity":2}]} 
[2026-04-02 17:08:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6713,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["114|1|","396|3|","61|1|","56|1|","5|2|"]} 
[2026-04-02 17:08:24] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6713,"order_number":"AZS-020426-016"} 
[2026-04-02 17:08:24] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-016","replaced_order_id":6713} 
[2026-04-02 17:08:24] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6722,"items_count":5,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"}]} 
[2026-04-02 17:08:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6722,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6722}} 
[2026-04-02 17:08:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6722,"item_index":0,"menu_item_id":114} 
[2026-04-02 17:08:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6722,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6722}} 
[2026-04-02 17:08:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6722,"item_index":1,"menu_item_id":396} 
[2026-04-02 17:08:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6722,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6722}} 
[2026-04-02 17:08:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6722,"item_index":2,"menu_item_id":61} 
[2026-04-02 17:08:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6722,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6722}} 
[2026-04-02 17:08:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6722,"item_index":3,"menu_item_id":56} 
[2026-04-02 17:08:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6722,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6722}} 
[2026-04-02 17:08:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6722,"item_index":4,"menu_item_id":5} 
[2026-04-02 17:08:24] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6713,"new_order_id":6722,"order_number":"AZS-020426-016"} 
[2026-04-02 17:08:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6722,"item_index":0,"item_id":31955} 
[2026-04-02 17:08:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6722,"item_index":1,"item_id":31956} 
[2026-04-02 17:08:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6722,"item_index":2,"item_id":31957} 
[2026-04-02 17:08:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6722,"item_index":3,"item_id":31958} 
[2026-04-02 17:08:32] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6722,"item_index":4,"item_id":31959} 
[2026-04-02 17:08:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":5,"order_id":6722,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":31955},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31956},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31957},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31958},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":31959},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:08:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6722,"items_count":6} 
[2026-04-02 17:08:32] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":5,"items_to_remove":[32007,32008,32009,32010,32011],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-04-02 17:08:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6722,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["114|1|","396|3|","61|1|","56|1|","5|2|"],"new_items_map_keys":["114|1|","396|3|","61|1|","56|1|","5|2|","2|2|"]} 
[2026-04-02 17:08:32] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6722,"order_number":"AZS-020426-016"} 
[2026-04-02 17:08:32] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-016","replaced_order_id":6722} 
[2026-04-02 17:08:32] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6723,"items_count":6,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-04-02 17:08:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6723,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6723}} 
[2026-04-02 17:08:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6723,"item_index":0,"menu_item_id":114} 
[2026-04-02 17:08:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6723,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6723}} 
[2026-04-02 17:08:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6723,"item_index":1,"menu_item_id":396} 
[2026-04-02 17:08:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6723,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6723}} 
[2026-04-02 17:08:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6723,"item_index":2,"menu_item_id":61} 
[2026-04-02 17:08:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6723,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6723}} 
[2026-04-02 17:08:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6723,"item_index":3,"menu_item_id":56} 
[2026-04-02 17:08:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6723,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6723}} 
[2026-04-02 17:08:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6723,"item_index":4,"menu_item_id":5} 
[2026-04-02 17:08:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6723,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6723}} 
[2026-04-02 17:08:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6723,"item_index":5,"menu_item_id":2} 
[2026-04-02 17:08:32] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6722,"new_order_id":6723,"order_number":"AZS-020426-016"} 
[2026-04-02 17:08:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6723,"item_index":0,"item_id":31955} 
[2026-04-02 17:08:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6723,"item_index":1,"item_id":31956} 
[2026-04-02 17:08:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6723,"item_index":2,"item_id":31957} 
[2026-04-02 17:08:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6723,"item_index":3,"item_id":31958} 
[2026-04-02 17:08:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6723,"item_index":4,"item_id":31959} 
[2026-04-02 17:08:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6723,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":31955},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":31956},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31957},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31958},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":31959},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:08:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6723,"items_count":6} 
[2026-04-02 17:08:38] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[32012,32013,32014,32015,32016,32017],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-04-02 17:08:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6723,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","396|3|","61|1|","56|1|","5|2|","2|2|"],"new_items_map_keys":["114|1|","396|3|","61|1|","56|1|","5|2|","2|2|"]} 
[2026-04-02 17:08:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6723,"order_number":"AZS-020426-016"} 
[2026-04-02 17:08:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6723,"order_number":"AZS-020426-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 17:08:38"} 
[2026-04-02 17:09:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6723,"item_index":0,"item_id":31955} 
[2026-04-02 17:09:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6723,"item_index":1,"item_id":31956} 
[2026-04-02 17:09:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6723,"item_index":2,"item_id":31957} 
[2026-04-02 17:09:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6723,"item_index":3,"item_id":31958} 
[2026-04-02 17:09:06] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6723,"item_index":4,"item_id":31959} 
[2026-04-02 17:09:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":6,"order_id":6723,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":31955},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31956},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31957},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31958},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":31959},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:09:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6723,"items_count":7} 
[2026-04-02 17:09:06] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":6,"items_to_remove":[32012,32013,32014,32015,32016,32017],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":62,"quantity":1}]} 
[2026-04-02 17:09:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6723,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["114|1|","396|3|","61|1|","56|1|","5|2|","2|2|"],"new_items_map_keys":["114|1|","396|3|","61|1|","56|1|","5|2|","2|2|","62|1|"]} 
[2026-04-02 17:09:06] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6723,"order_number":"AZS-020426-016"} 
[2026-04-02 17:09:06] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-016","replaced_order_id":6723} 
[2026-04-02 17:09:06] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6724,"items_count":7,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"}]} 
[2026-04-02 17:09:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6724,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6724}} 
[2026-04-02 17:09:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6724,"item_index":0,"menu_item_id":114} 
[2026-04-02 17:09:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6724,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6724}} 
[2026-04-02 17:09:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6724,"item_index":1,"menu_item_id":396} 
[2026-04-02 17:09:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6724,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6724}} 
[2026-04-02 17:09:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6724,"item_index":2,"menu_item_id":61} 
[2026-04-02 17:09:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6724,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6724}} 
[2026-04-02 17:09:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6724,"item_index":3,"menu_item_id":56} 
[2026-04-02 17:09:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6724,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6724}} 
[2026-04-02 17:09:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6724,"item_index":4,"menu_item_id":5} 
[2026-04-02 17:09:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6724,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6724}} 
[2026-04-02 17:09:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6724,"item_index":5,"menu_item_id":2} 
[2026-04-02 17:09:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6724,"item_index":6,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6724}} 
[2026-04-02 17:09:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6724,"item_index":6,"menu_item_id":62} 
[2026-04-02 17:09:06] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6723,"new_order_id":6724,"order_number":"AZS-020426-016"} 
[2026-04-02 17:09:11] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6724,"item_index":0,"item_id":31955} 
[2026-04-02 17:09:11] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6724,"item_index":1,"item_id":31956} 
[2026-04-02 17:09:11] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6724,"item_index":2,"item_id":31957} 
[2026-04-02 17:09:11] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6724,"item_index":3,"item_id":31958} 
[2026-04-02 17:09:11] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6724,"item_index":4,"item_id":31959} 
[2026-04-02 17:09:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":6724,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":31955},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":31956},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31957},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":31958},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":31959},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:09:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6724,"items_count":7} 
[2026-04-02 17:09:11] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[32018,32019,32020,32021,32022,32023,32024],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":62,"quantity":1}]} 
[2026-04-02 17:09:11] local.INFO: PosOrderController::update - Item changes check {"order_id":6724,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|1|","396|3|","61|1|","56|1|","5|2|","2|2|","62|1|"],"new_items_map_keys":["114|1|","396|3|","61|1|","56|1|","5|2|","2|2|","62|1|"]} 
[2026-04-02 17:09:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6724,"order_number":"AZS-020426-016"} 
[2026-04-02 17:09:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6724,"order_number":"AZS-020426-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 17:09:11"} 
[2026-04-02 17:09:24] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6724,"item_index":0,"item_id":31955} 
[2026-04-02 17:09:24] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6724,"item_index":1,"item_id":31956} 
[2026-04-02 17:09:24] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6724,"item_index":2,"item_id":31957} 
[2026-04-02 17:09:24] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6724,"item_index":3,"item_id":31958} 
[2026-04-02 17:09:24] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6724,"item_index":4,"item_id":31959} 
[2026-04-02 17:09:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":6724,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":31955},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31956},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31957},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31958},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":31959},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:09:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6724,"items_count":7} 
[2026-04-02 17:09:24] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[32018,32019,32020,32021,32022,32023,32024],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":62,"quantity":1}]} 
[2026-04-02 17:09:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6724,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|1|","396|3|","61|1|","56|1|","5|2|","2|2|","62|1|"],"new_items_map_keys":["114|1|","396|3|","61|1|","56|1|","5|2|","2|2|","62|1|"]} 
[2026-04-02 17:09:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6724,"order_number":"AZS-020426-016"} 
[2026-04-02 17:09:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6724,"order_number":"AZS-020426-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-02 17:09:24"} 
[2026-04-02 17:09:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6712,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":31954}],"validated_items":[{"id":31954,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:09:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6712,"items_count":1} 
[2026-04-02 17:09:41] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31954,"menu_item_id":6,"quantity":3}]} 
[2026-04-02 17:09:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6712,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|3|"],"new_items_map_keys":["6|3|"]} 
[2026-04-02 17:09:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6712,"order_number":"AZS-020426-015"} 
[2026-04-02 17:09:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6712,"order_number":"AZS-020426-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 17:09:41"} 
[2026-04-02 17:10:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T05:10:14.945Z","date_to":"2026-04-02T17:10:14.945Z","per_page":"100"} 
[2026-04-02 17:10:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T05:10:14.959Z","date_to":"2026-04-02T17:10:14.959Z","per_page":"100"} 
[2026-04-02 17:10:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","paid","pending","pending","pending","pending","paid","paid","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":10,"unique_order_numbers":18} 
[2026-04-02 17:10:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","paid","pending","pending","pending","pending","paid","paid","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":10,"unique_order_numbers":18} 
[2026-04-02 17:10:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T05:10:14.945Z","date_to":"2026-04-02T17:10:14.945Z","per_page":"100"} 
[2026-04-02 17:10:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","paid","pending","pending","pending","pending","paid","paid","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":10,"unique_order_numbers":18} 
[2026-04-02 17:11:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6724,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32018},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32019},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32020},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32021},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":32022},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":32023},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":32024}],"validated_items":[{"id":32018,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32019,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32020,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32021,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32022,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":32023,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":32024,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:11:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6724,"items_count":7} 
[2026-04-02 17:11:05] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32018,"menu_item_id":114,"quantity":1},{"id":32019,"menu_item_id":396,"quantity":3},{"id":32020,"menu_item_id":61,"quantity":1},{"id":32021,"menu_item_id":56,"quantity":1},{"id":32022,"menu_item_id":5,"quantity":2},{"id":32023,"menu_item_id":2,"quantity":2},{"id":32024,"menu_item_id":62,"quantity":1}]} 
[2026-04-02 17:11:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6724,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|1|","396|3|","61|1|","56|1|","5|2|","2|2|","62|1|"],"new_items_map_keys":["114|1|","396|3|","61|1|","56|1|","5|2|","2|2|","62|1|"]} 
[2026-04-02 17:11:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6724,"order_number":"AZS-020426-016"} 
[2026-04-02 17:11:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6724,"order_number":"AZS-020426-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 17:11:05"} 
[2026-04-02 17:12:06] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6724,"order_number":"AZS-020426-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 17:12:06"} 
[2026-04-02 17:12:06] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6724,"order_number":"AZS-020426-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 17:12:06"} 
[2026-04-02 17:12:06] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6724,"order_number":"AZS-020426-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 17:12:06"} 
[2026-04-02 17:12:06] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6724,"order_number":"AZS-020426-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 17:12:06"} 
[2026-04-02 17:12:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":6724,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32018},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32019},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32021},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":32022},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":32023},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":32024}],"validated_items":[{"id":32018,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32019,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32021,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32022,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":32023,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":32024,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:12:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6724,"items_count":6} 
[2026-04-02 17:12:06] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[32020],"items":[{"id":32018,"menu_item_id":114,"quantity":1},{"id":32019,"menu_item_id":396,"quantity":3},{"id":32021,"menu_item_id":56,"quantity":1},{"id":32022,"menu_item_id":5,"quantity":2},{"id":32023,"menu_item_id":2,"quantity":2},{"id":32024,"menu_item_id":62,"quantity":1}]} 
[2026-04-02 17:12:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6724,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["114|1|","396|3|","61|1|","56|1|","5|2|","2|2|","62|1|"],"new_items_map_keys":["114|1|","396|3|","56|1|","5|2|","2|2|","62|1|"]} 
[2026-04-02 17:12:06] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6724,"order_number":"AZS-020426-016","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-02 17:12:06","original_payment_amount":"0.00","grand_total":4894.0,"timestamp":"2026-04-02 17:12:06"} 
[2026-04-02 17:12:06] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6724,"order_number":"AZS-020426-016"} 
[2026-04-02 17:12:06] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-016","replaced_order_id":6724} 
[2026-04-02 17:12:06] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6724,"new_order_id":6725,"order_number":"AZS-020426-016","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-02 17:12:06","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-02 17:12:06"} 
[2026-04-02 17:12:06] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6725,"items_count":6,"items":[{"menu_item_id":114,"quantity":1,"price":2299.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":2,"price":170.0},{"menu_item_id":2,"quantity":2,"price":130.0},{"menu_item_id":62,"quantity":1,"price":1499.0}]} 
[2026-04-02 17:12:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6725,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6725}} 
[2026-04-02 17:12:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6725,"item_index":0,"menu_item_id":114} 
[2026-04-02 17:12:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6725,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6725}} 
[2026-04-02 17:12:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6725,"item_index":1,"menu_item_id":396} 
[2026-04-02 17:12:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6725,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6725}} 
[2026-04-02 17:12:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6725,"item_index":2,"menu_item_id":56} 
[2026-04-02 17:12:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6725,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6725}} 
[2026-04-02 17:12:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6725,"item_index":3,"menu_item_id":5} 
[2026-04-02 17:12:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6725,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6725}} 
[2026-04-02 17:12:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6725,"item_index":4,"menu_item_id":2} 
[2026-04-02 17:12:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6725,"item_index":5,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":1499.0,"discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6725}} 
[2026-04-02 17:12:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6725,"item_index":5,"menu_item_id":62} 
[2026-04-02 17:12:06] local.ERROR: Error tracking recipe usage for order 6725: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6725, 114, 77, 1, 100, 0.00, Order #AZS-020426-016 - 1x Chicken Shinwari - Full, 2026-04-02 17:12:06, 2026-04-02 17:12:06))  
[2026-04-02 17:12:06] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6724,"new_order_id":6725,"order_number":"AZS-020426-016"} 
[2026-04-02 17:12:06] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6724,"new_order_id":6725,"order_number":"AZS-020426-016","route":"api/orders/6724"} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6714,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":56,"quantity":4,"discount_percent":0,"notes":null,"id":31960},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":31961},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":31962},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null,"id":31963},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31964},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":31965},{"menu_item_id":83,"quantity":2,"discount_percent":0,"notes":null,"id":31966},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31967},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":31968},{"menu_item_id":29,"quantity":5,"discount_percent":0,"notes":null}],"validated_items":[{"id":31960,"menu_item_id":56,"quantity":4,"discount_percent":0,"notes":null},{"id":31961,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":31962,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":31963,"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"id":31964,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":31965,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":31966,"menu_item_id":83,"quantity":2,"discount_percent":0,"notes":null},{"id":31967,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":31968,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":5,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6714,"items_count":10} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31960,"menu_item_id":56,"quantity":4},{"id":31961,"menu_item_id":106,"quantity":1},{"id":31962,"menu_item_id":97,"quantity":1},{"id":31963,"menu_item_id":50,"quantity":3},{"id":31964,"menu_item_id":396,"quantity":3},{"id":31965,"menu_item_id":61,"quantity":3},{"id":31966,"menu_item_id":83,"quantity":2},{"id":31967,"menu_item_id":5,"quantity":1},{"id":31968,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":29,"quantity":5}]} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6714,"has_item_changes":true,"old_items_count":9,"new_items_count":10,"old_items_map_keys":["56|4|","106|1|","97|1|","50|3|","396|3|","61|3|","83|2|","5|1|","403|1|"],"new_items_map_keys":["56|4|","106|1|","97|1|","50|3|","396|3|","61|3|","83|2|","5|1|","403|1|","29|5|"]} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6714,"order_number":"AZS-020426-010"} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-010","replaced_order_id":6714} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6728,"items_count":10,"items":[{"menu_item_id":56,"quantity":4,"price":"199.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":50,"quantity":3,"price":"129.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":83,"quantity":2,"price":"649.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":29,"quantity":5,"price":"250.00"}]} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6728,"item_index":0,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6728}} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6728,"item_index":0,"menu_item_id":56} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6728,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6728}} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6728,"item_index":1,"menu_item_id":106} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6728,"item_index":2,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6728}} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6728,"item_index":2,"menu_item_id":97} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6728,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6728}} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6728,"item_index":3,"menu_item_id":50} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6728,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6728}} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6728,"item_index":4,"menu_item_id":396} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6728,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6728}} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6728,"item_index":5,"menu_item_id":61} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6728,"item_index":6,"item_data":{"menu_item_id":83,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Chicken Nuggets","quantity":2,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":1298.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6728}} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6728,"item_index":6,"menu_item_id":83} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6728,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6728}} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6728,"item_index":7,"menu_item_id":5} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6728,"item_index":8,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6728}} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6728,"item_index":8,"menu_item_id":403} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6728,"item_index":9,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":5,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6728}} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6728,"item_index":9,"menu_item_id":29} 
[2026-04-02 17:21:07] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6714,"new_order_id":6728,"order_number":"AZS-020426-010"} 
[2026-04-02 17:25:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6721,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32001},{"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null,"id":32002},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32003},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32004},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":32005},{"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":32006}],"validated_items":[{"id":32001,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32002,"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null},{"id":32003,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32004,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32005,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":32006,"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:25:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6721,"items_count":6} 
[2026-04-02 17:25:14] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32001,"menu_item_id":96,"quantity":1},{"id":32002,"menu_item_id":136,"quantity":1},{"id":32003,"menu_item_id":61,"quantity":1},{"id":32004,"menu_item_id":50,"quantity":2},{"id":32005,"menu_item_id":396,"quantity":1},{"id":32006,"menu_item_id":66,"quantity":1}]} 
[2026-04-02 17:25:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6721,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["96|1|","136|1|","61|1|","50|2|","396|1|","66|1|"],"new_items_map_keys":["96|1|","136|1|","61|1|","50|2|","396|1|","66|1|"]} 
[2026-04-02 17:25:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6721,"order_number":"AZS-020426-018"} 
[2026-04-02 17:25:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6721,"order_number":"AZS-020426-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 17:25:14"} 
[2026-04-02 17:25:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6721,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":32001},{"menu_item_id":136,"quantity":1,"discount_percent":0,"notes":null,"id":32002},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32003},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":32004},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":32005},{"menu_item_id":66,"quantity":1,"discount_percent":0,"notes":null,"id":32006}],"validated_items":[{"id":32001,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":32002,"menu_item_id":136,"quantity":1,"discount_percent":0,"notes":null},{"id":32003,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32004,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":32005,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":32006,"menu_item_id":66,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:25:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6721,"items_count":6} 
[2026-04-02 17:25:22] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32001,"menu_item_id":96,"quantity":1},{"id":32002,"menu_item_id":136,"quantity":1},{"id":32003,"menu_item_id":61,"quantity":1},{"id":32004,"menu_item_id":50,"quantity":2},{"id":32005,"menu_item_id":396,"quantity":1},{"id":32006,"menu_item_id":66,"quantity":1}]} 
[2026-04-02 17:25:22] local.INFO: PosOrderController::update - Item changes check {"order_id":6721,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["96|1|","136|1|","61|1|","50|2|","396|1|","66|1|"],"new_items_map_keys":["96|1|","136|1|","61|1|","50|2|","396|1|","66|1|"]} 
[2026-04-02 17:25:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6721,"order_number":"AZS-020426-018"} 
[2026-04-02 17:25:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6721,"order_number":"AZS-020426-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-02 17:25:22"} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6699,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":31899},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31900},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":31901},{"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null,"id":31902},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":31903},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31904},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":31905},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31899,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":31900,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":31901,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":31902,"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null},{"id":31903,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":31904,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":31905,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6699,"items_count":9} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31899,"menu_item_id":105,"quantity":1},{"id":31900,"menu_item_id":396,"quantity":3},{"id":31901,"menu_item_id":50,"quantity":2},{"id":31902,"menu_item_id":60,"quantity":2},{"id":31903,"menu_item_id":56,"quantity":2},{"id":31904,"menu_item_id":5,"quantity":1},{"id":31905,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":52,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Item changes check {"order_id":6699,"has_item_changes":true,"old_items_count":7,"new_items_count":9,"old_items_map_keys":["105|1|","396|3|","50|2|","60|2|","56|2|","5|1|","106|1|"],"new_items_map_keys":["105|1|","396|3|","50|2|","60|2|","56|2|","5|1|","106|1|","52|2|","61|1|"]} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6699,"order_number":"AZS-020426-006"} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-006","replaced_order_id":6699} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6729,"items_count":9,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":60,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":52,"quantity":2,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"}]} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6729,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6729}} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6729,"item_index":0,"menu_item_id":105} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6729,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6729}} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6729,"item_index":1,"menu_item_id":396} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6729,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6729}} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6729,"item_index":2,"menu_item_id":50} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6729,"item_index":3,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6729}} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6729,"item_index":3,"menu_item_id":60} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6729,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6729}} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6729,"item_index":4,"menu_item_id":56} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6729,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6729}} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6729,"item_index":5,"menu_item_id":5} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6729,"item_index":6,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6729}} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6729,"item_index":6,"menu_item_id":106} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6729,"item_index":7,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6729}} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6729,"item_index":7,"menu_item_id":52} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6729,"item_index":8,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6729}} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6729,"item_index":8,"menu_item_id":61} 
[2026-04-02 17:31:56] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6699,"new_order_id":6729,"order_number":"AZS-020426-006"} 
[2026-04-02 17:33:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6710,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":31945},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":31946},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":31947},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31948},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31949},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31945,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":31946,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":31947,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":31948,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31949,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:33:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6710,"items_count":6} 
[2026-04-02 17:33:09] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31945,"menu_item_id":396,"quantity":2},{"id":31946,"menu_item_id":50,"quantity":2},{"id":31947,"menu_item_id":95,"quantity":1},{"id":31948,"menu_item_id":61,"quantity":2},{"id":31949,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-02 17:33:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6710,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["396|2|","50|2|","95|1|","61|2|","5|1|"],"new_items_map_keys":["396|2|","50|2|","95|1|","61|2|","5|1|","3|1|"]} 
[2026-04-02 17:33:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6710,"order_number":"AZS-020426-014"} 
[2026-04-02 17:33:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-014","replaced_order_id":6710} 
[2026-04-02 17:33:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6730,"items_count":6,"items":[{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-02 17:33:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6730,"item_index":0,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6730}} 
[2026-04-02 17:33:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6730,"item_index":0,"menu_item_id":396} 
[2026-04-02 17:33:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6730,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6730}} 
[2026-04-02 17:33:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6730,"item_index":1,"menu_item_id":50} 
[2026-04-02 17:33:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6730,"item_index":2,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6730}} 
[2026-04-02 17:33:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6730,"item_index":2,"menu_item_id":95} 
[2026-04-02 17:33:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6730,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6730}} 
[2026-04-02 17:33:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6730,"item_index":3,"menu_item_id":61} 
[2026-04-02 17:33:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6730,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6730}} 
[2026-04-02 17:33:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6730,"item_index":4,"menu_item_id":5} 
[2026-04-02 17:33:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6730,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6730}} 
[2026-04-02 17:33:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6730,"item_index":5,"menu_item_id":3} 
[2026-04-02 17:33:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6710,"new_order_id":6730,"order_number":"AZS-020426-014"} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6729,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":32051},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":32052},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":32053},{"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null,"id":32054},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":32055},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32056},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":32057},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null,"id":32058},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32059},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32051,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":32052,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":32053,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":32054,"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null},{"id":32055,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":32056,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32057,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":32058,"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null},{"id":32059,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6729,"items_count":10} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32051,"menu_item_id":105,"quantity":1},{"id":32052,"menu_item_id":396,"quantity":3},{"id":32053,"menu_item_id":50,"quantity":2},{"id":32054,"menu_item_id":60,"quantity":2},{"id":32055,"menu_item_id":56,"quantity":2},{"id":32056,"menu_item_id":5,"quantity":1},{"id":32057,"menu_item_id":106,"quantity":1},{"id":32058,"menu_item_id":52,"quantity":2},{"id":32059,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6729,"has_item_changes":true,"old_items_count":9,"new_items_count":10,"old_items_map_keys":["105|1|","396|3|","50|2|","60|2|","56|2|","5|1|","106|1|","52|2|","61|1|"],"new_items_map_keys":["105|1|","396|3|","50|2|","60|2|","56|2|","5|1|","106|1|","52|2|","61|1|","3|1|"]} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6729,"order_number":"AZS-020426-006"} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-006","replaced_order_id":6729} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6732,"items_count":10,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":60,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":52,"quantity":2,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6732,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6732}} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6732,"item_index":0,"menu_item_id":105} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6732,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6732}} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6732,"item_index":1,"menu_item_id":396} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6732,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6732}} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6732,"item_index":2,"menu_item_id":50} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6732,"item_index":3,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6732}} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6732,"item_index":3,"menu_item_id":60} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6732,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6732}} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6732,"item_index":4,"menu_item_id":56} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6732,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6732}} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6732,"item_index":5,"menu_item_id":5} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6732,"item_index":6,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6732}} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6732,"item_index":6,"menu_item_id":106} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6732,"item_index":7,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6732}} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6732,"item_index":7,"menu_item_id":52} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6732,"item_index":8,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6732}} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6732,"item_index":8,"menu_item_id":61} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6732,"item_index":9,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6732}} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6732,"item_index":9,"menu_item_id":3} 
[2026-04-02 17:34:26] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6729,"new_order_id":6732,"order_number":"AZS-020426-006"} 
[2026-04-02 17:34:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6721,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":32001},{"menu_item_id":136,"quantity":1,"discount_percent":0,"notes":null,"id":32002},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32003},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":32004},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":32005},{"menu_item_id":66,"quantity":1,"discount_percent":0,"notes":null,"id":32006},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":32001,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":32002,"menu_item_id":136,"quantity":1,"discount_percent":0,"notes":null},{"id":32003,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32004,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":32005,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":32006,"menu_item_id":66,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:34:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6721,"items_count":7} 
[2026-04-02 17:34:57] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32001,"menu_item_id":96,"quantity":1},{"id":32002,"menu_item_id":136,"quantity":1},{"id":32003,"menu_item_id":61,"quantity":1},{"id":32004,"menu_item_id":50,"quantity":2},{"id":32005,"menu_item_id":396,"quantity":1},{"id":32006,"menu_item_id":66,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-04-02 17:34:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6721,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["96|1|","136|1|","61|1|","50|2|","396|1|","66|1|"],"new_items_map_keys":["96|1|","136|1|","61|1|","50|2|","396|1|","66|1|","2|2|"]} 
[2026-04-02 17:34:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6721,"order_number":"AZS-020426-018"} 
[2026-04-02 17:34:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-018","replaced_order_id":6721} 
[2026-04-02 17:34:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6733,"items_count":7,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":136,"quantity":1,"price":"899.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":66,"quantity":1,"price":"1399.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-04-02 17:34:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6733,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6733}} 
[2026-04-02 17:34:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6733,"item_index":0,"menu_item_id":96} 
[2026-04-02 17:34:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6733,"item_index":1,"item_data":{"menu_item_id":136,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Small","quantity":1,"price":"899.00","discount_percent":0.0,"discount_amount":0.0,"total":899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6733}} 
[2026-04-02 17:34:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6733,"item_index":1,"menu_item_id":136} 
[2026-04-02 17:34:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6733,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6733}} 
[2026-04-02 17:34:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6733,"item_index":2,"menu_item_id":61} 
[2026-04-02 17:34:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6733,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6733}} 
[2026-04-02 17:34:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6733,"item_index":3,"menu_item_id":50} 
[2026-04-02 17:34:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6733,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6733}} 
[2026-04-02 17:34:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6733,"item_index":4,"menu_item_id":396} 
[2026-04-02 17:34:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6733,"item_index":5,"item_data":{"menu_item_id":66,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Cheese Kabab (4 pcs)","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6733}} 
[2026-04-02 17:34:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6733,"item_index":5,"menu_item_id":66} 
[2026-04-02 17:34:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6733,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6733}} 
[2026-04-02 17:34:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6733,"item_index":6,"menu_item_id":2} 
[2026-04-02 17:34:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6721,"new_order_id":6733,"order_number":"AZS-020426-018"} 
[2026-04-02 17:35:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6727,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":32036},{"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null,"id":32037},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":32038},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":32039},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32040},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32036,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":32037,"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null},{"id":32038,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":32039,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":32040,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:35:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6727,"items_count":6} 
[2026-04-02 17:35:26] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32036,"menu_item_id":114,"quantity":1},{"id":32037,"menu_item_id":49,"quantity":2},{"id":32038,"menu_item_id":396,"quantity":2},{"id":32039,"menu_item_id":61,"quantity":2},{"id":32040,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-02 17:35:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6727,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["114|1|","49|2|","396|2|","61|2|","5|1|"],"new_items_map_keys":["114|1|","49|2|","396|2|","61|2|","5|1|","3|1|"]} 
[2026-04-02 17:35:26] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6727,"order_number":"AZS-020426-020"} 
[2026-04-02 17:35:26] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-020","replaced_order_id":6727} 
[2026-04-02 17:35:26] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6734,"items_count":6,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":49,"quantity":2,"price":"70.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-02 17:35:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6734,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6734}} 
[2026-04-02 17:35:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6734,"item_index":0,"menu_item_id":114} 
[2026-04-02 17:35:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6734,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6734}} 
[2026-04-02 17:35:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6734,"item_index":1,"menu_item_id":49} 
[2026-04-02 17:35:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6734,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6734}} 
[2026-04-02 17:35:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6734,"item_index":2,"menu_item_id":396} 
[2026-04-02 17:35:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6734,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6734}} 
[2026-04-02 17:35:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6734,"item_index":3,"menu_item_id":61} 
[2026-04-02 17:35:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6734,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6734}} 
[2026-04-02 17:35:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6734,"item_index":4,"menu_item_id":5} 
[2026-04-02 17:35:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6734,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6734}} 
[2026-04-02 17:35:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6734,"item_index":5,"menu_item_id":3} 
[2026-04-02 17:35:26] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6727,"new_order_id":6734,"order_number":"AZS-020426-020"} 
[2026-04-02 17:35:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6733,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":32081},{"menu_item_id":136,"quantity":1,"discount_percent":0,"notes":null,"id":32082},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32083},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":32084},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":32085},{"menu_item_id":66,"quantity":1,"discount_percent":0,"notes":null,"id":32086},{"menu_item_id":2,"quantity":4,"discount_percent":0,"notes":null,"id":32087}],"validated_items":[{"id":32081,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":32082,"menu_item_id":136,"quantity":1,"discount_percent":0,"notes":null},{"id":32083,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32084,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":32085,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":32086,"menu_item_id":66,"quantity":1,"discount_percent":0,"notes":null},{"id":32087,"menu_item_id":2,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:35:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6733,"items_count":7} 
[2026-04-02 17:35:45] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32081,"menu_item_id":96,"quantity":1},{"id":32082,"menu_item_id":136,"quantity":1},{"id":32083,"menu_item_id":61,"quantity":1},{"id":32084,"menu_item_id":50,"quantity":2},{"id":32085,"menu_item_id":396,"quantity":1},{"id":32086,"menu_item_id":66,"quantity":1},{"id":32087,"menu_item_id":2,"quantity":4}]} 
[2026-04-02 17:35:45] local.INFO: PosOrderController::update - Item changes check {"order_id":6733,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["96|1|","136|1|","61|1|","50|2|","396|1|","66|1|","2|2|"],"new_items_map_keys":["96|1|","136|1|","61|1|","50|2|","396|1|","66|1|","2|4|"]} 
[2026-04-02 17:35:45] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6733,"order_number":"AZS-020426-018"} 
[2026-04-02 17:35:45] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-018","replaced_order_id":6733} 
[2026-04-02 17:35:45] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6735,"items_count":7,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":136,"quantity":1,"price":"899.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":66,"quantity":1,"price":"1399.00"},{"menu_item_id":2,"quantity":4,"price":"130.00"}]} 
[2026-04-02 17:35:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6735,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6735}} 
[2026-04-02 17:35:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6735,"item_index":0,"menu_item_id":96} 
[2026-04-02 17:35:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6735,"item_index":1,"item_data":{"menu_item_id":136,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Small","quantity":1,"price":"899.00","discount_percent":0.0,"discount_amount":0.0,"total":899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6735}} 
[2026-04-02 17:35:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6735,"item_index":1,"menu_item_id":136} 
[2026-04-02 17:35:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6735,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6735}} 
[2026-04-02 17:35:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6735,"item_index":2,"menu_item_id":61} 
[2026-04-02 17:35:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6735,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6735}} 
[2026-04-02 17:35:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6735,"item_index":3,"menu_item_id":50} 
[2026-04-02 17:35:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6735,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6735}} 
[2026-04-02 17:35:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6735,"item_index":4,"menu_item_id":396} 
[2026-04-02 17:35:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6735,"item_index":5,"item_data":{"menu_item_id":66,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Cheese Kabab (4 pcs)","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6735}} 
[2026-04-02 17:35:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6735,"item_index":5,"menu_item_id":66} 
[2026-04-02 17:35:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6735,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":4,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":520.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6735}} 
[2026-04-02 17:35:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6735,"item_index":6,"menu_item_id":2} 
[2026-04-02 17:35:45] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6733,"new_order_id":6735,"order_number":"AZS-020426-018"} 
[2026-04-02 17:35:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6734,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":32088},{"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null,"id":32089},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":32090},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":32091},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32092},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":32093}],"validated_items":[{"id":32088,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":32089,"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null},{"id":32090,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":32091,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":32092,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32093,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:35:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6734,"items_count":6} 
[2026-04-02 17:35:58] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32088,"menu_item_id":114,"quantity":1},{"id":32089,"menu_item_id":49,"quantity":2},{"id":32090,"menu_item_id":396,"quantity":2},{"id":32091,"menu_item_id":61,"quantity":2},{"id":32092,"menu_item_id":5,"quantity":1},{"id":32093,"menu_item_id":3,"quantity":1}]} 
[2026-04-02 17:35:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6734,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","49|2|","396|2|","61|2|","5|1|","3|1|"],"new_items_map_keys":["114|1|","49|2|","396|2|","61|2|","5|1|","3|1|"]} 
[2026-04-02 17:35:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6734,"order_number":"AZS-020426-020"} 
[2026-04-02 17:35:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6734,"order_number":"AZS-020426-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-02 17:35:58"} 
[2026-04-02 17:37:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T05:37:48.621Z","date_to":"2026-04-02T17:37:48.621Z","per_page":"100"} 
[2026-04-02 17:37:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T05:37:48.637Z","date_to":"2026-04-02T17:37:48.637Z","per_page":"100"} 
[2026-04-02 17:37:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","pending","pending","pending","paid","paid","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":12,"unique_order_numbers":21} 
[2026-04-02 17:37:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","pending","pending","pending","paid","paid","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":12,"unique_order_numbers":21} 
[2026-04-02 17:37:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T05:37:48.621Z","date_to":"2026-04-02T17:37:48.621Z","per_page":"100"} 
[2026-04-02 17:37:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","pending","pending","pending","paid","paid","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":12,"unique_order_numbers":21} 
[2026-04-02 17:38:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T05:38:29.779Z","date_to":"2026-04-02T17:38:29.779Z","per_page":"100"} 
[2026-04-02 17:38:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T05:38:29.765Z","date_to":"2026-04-02T17:38:29.765Z","per_page":"100"} 
[2026-04-02 17:38:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","pending","pending","pending","paid","paid","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":12,"unique_order_numbers":21} 
[2026-04-02 17:38:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","pending","pending","pending","paid","paid","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":12,"unique_order_numbers":21} 
[2026-04-02 17:38:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T05:38:29.765Z","date_to":"2026-04-02T17:38:29.765Z","per_page":"100"} 
[2026-04-02 17:38:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","pending","pending","pending","paid","paid","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":12,"unique_order_numbers":21} 
[2026-04-02 17:38:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T05:38:41.980Z","date_to":"2026-04-02T17:38:41.980Z","per_page":"100"} 
[2026-04-02 17:38:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T05:38:41.999Z","date_to":"2026-04-02T17:38:41.999Z","per_page":"100"} 
[2026-04-02 17:38:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","pending","pending","pending","paid","paid","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":12,"unique_order_numbers":21} 
[2026-04-02 17:38:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","pending","pending","pending","paid","paid","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":12,"unique_order_numbers":21} 
[2026-04-02 17:38:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T05:38:41.980Z","date_to":"2026-04-02T17:38:41.980Z","per_page":"100"} 
[2026-04-02 17:38:45] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","pending","pending","pending","paid","paid","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":12,"unique_order_numbers":21} 
[2026-04-02 17:41:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6728,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":56,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":32041},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":32042},{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32043},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":32044},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32045},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":32046},{"menu_item_id":83,"quantity":2,"price":649,"discount_percent":0,"notes":null,"id":32047},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32048},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":32049},{"menu_item_id":29,"quantity":5,"price":250,"discount_percent":0,"notes":null,"id":32050}],"validated_items":[{"id":32041,"menu_item_id":56,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":32042,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":32043,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32044,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"id":32045,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32046,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":32047,"menu_item_id":83,"quantity":2,"price":649,"discount_percent":0,"notes":null},{"id":32048,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32049,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":32050,"menu_item_id":29,"quantity":5,"price":250,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:41:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6728,"items_count":10} 
[2026-04-02 17:41:35] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32041,"menu_item_id":56,"quantity":4},{"id":32042,"menu_item_id":106,"quantity":1},{"id":32043,"menu_item_id":97,"quantity":1},{"id":32044,"menu_item_id":50,"quantity":3},{"id":32045,"menu_item_id":396,"quantity":3},{"id":32046,"menu_item_id":61,"quantity":3},{"id":32047,"menu_item_id":83,"quantity":2},{"id":32048,"menu_item_id":5,"quantity":1},{"id":32049,"menu_item_id":403,"quantity":1},{"id":32050,"menu_item_id":29,"quantity":5}]} 
[2026-04-02 17:41:35] local.INFO: PosOrderController::update - Item changes check {"order_id":6728,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["56|4|","106|1|","97|1|","50|3|","396|3|","61|3|","83|2|","5|1|","403|1|","29|5|"],"new_items_map_keys":["56|4|","106|1|","97|1|","50|3|","396|3|","61|3|","83|2|","5|1|","403|1|","29|5|"]} 
[2026-04-02 17:41:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6728,"order_number":"AZS-020426-010"} 
[2026-04-02 17:41:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6728,"order_number":"AZS-020426-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 17:41:35"} 
[2026-04-02 17:42:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6735,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32094},{"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null,"id":32095},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32096},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32097},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":32098},{"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":32099},{"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null,"id":32100}],"validated_items":[{"id":32094,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32095,"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null},{"id":32096,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32097,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32098,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":32099,"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":32100,"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:42:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6735,"items_count":7} 
[2026-04-02 17:42:09] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32094,"menu_item_id":96,"quantity":1},{"id":32095,"menu_item_id":136,"quantity":1},{"id":32096,"menu_item_id":61,"quantity":1},{"id":32097,"menu_item_id":50,"quantity":2},{"id":32098,"menu_item_id":396,"quantity":1},{"id":32099,"menu_item_id":66,"quantity":1},{"id":32100,"menu_item_id":2,"quantity":4}]} 
[2026-04-02 17:42:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6735,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["96|1|","136|1|","61|1|","50|2|","396|1|","66|1|","2|4|"],"new_items_map_keys":["96|1|","136|1|","61|1|","50|2|","396|1|","66|1|","2|4|"]} 
[2026-04-02 17:42:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6735,"order_number":"AZS-020426-018"} 
[2026-04-02 17:42:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6735,"order_number":"AZS-020426-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 17:42:09"} 
[2026-04-02 17:44:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6730,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32060},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32061},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":32062},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32063},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32064},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32065}],"validated_items":[{"id":32060,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32061,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32062,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":32063,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32064,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32065,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:44:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6730,"items_count":6} 
[2026-04-02 17:44:30] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32060,"menu_item_id":396,"quantity":2},{"id":32061,"menu_item_id":50,"quantity":2},{"id":32062,"menu_item_id":95,"quantity":1},{"id":32063,"menu_item_id":61,"quantity":2},{"id":32064,"menu_item_id":5,"quantity":1},{"id":32065,"menu_item_id":3,"quantity":1}]} 
[2026-04-02 17:44:30] local.INFO: PosOrderController::update - Item changes check {"order_id":6730,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["396|2|","50|2|","95|1|","61|2|","5|1|","3|1|"],"new_items_map_keys":["396|2|","50|2|","95|1|","61|2|","5|1|","3|1|"]} 
[2026-04-02 17:44:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6730,"order_number":"AZS-020426-014"} 
[2026-04-02 17:44:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6730,"order_number":"AZS-020426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 17:44:30"} 
[2026-04-02 17:47:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T05:47:03.900Z","date_to":"2026-04-02T17:47:03.900Z","per_page":"100"} 
[2026-04-02 17:47:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","paid","pending","pending","pending","paid","paid","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":14,"unique_order_numbers":23} 
[2026-04-02 17:47:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T05:47:03.914Z","date_to":"2026-04-02T17:47:03.914Z","per_page":"100"} 
[2026-04-02 17:47:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","paid","pending","pending","pending","paid","paid","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":14,"unique_order_numbers":23} 
[2026-04-02 17:47:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T05:47:03.900Z","date_to":"2026-04-02T17:47:03.900Z","per_page":"100"} 
[2026-04-02 17:47:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":23,"count":23,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","paid","pending","pending","pending","paid","paid","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":9,"unpaid_count":14,"unique_order_numbers":23} 
[2026-04-02 17:48:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":6730,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32060},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32061},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32063},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32064},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32065},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null}],"validated_items":[{"id":32060,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32061,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32063,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32064,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32065,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:48:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6730,"items_count":6} 
[2026-04-02 17:48:32] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[32062],"items":[{"id":32060,"menu_item_id":396,"quantity":2},{"id":32061,"menu_item_id":50,"quantity":2},{"id":32063,"menu_item_id":61,"quantity":2},{"id":32064,"menu_item_id":5,"quantity":1},{"id":32065,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":98,"quantity":1}]} 
[2026-04-02 17:48:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6730,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["396|2|","50|2|","95|1|","61|2|","5|1|","3|1|"],"new_items_map_keys":["396|2|","50|2|","61|2|","5|1|","3|1|","98|1|"]} 
[2026-04-02 17:48:32] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6730,"order_number":"AZS-020426-014"} 
[2026-04-02 17:48:32] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-014","replaced_order_id":6730} 
[2026-04-02 17:48:32] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6738,"items_count":6,"items":[{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":50,"quantity":2,"price":129.0},{"menu_item_id":61,"quantity":2,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0},{"menu_item_id":98,"quantity":1,"price":1199.0}]} 
[2026-04-02 17:48:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6738,"item_index":0,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6738}} 
[2026-04-02 17:48:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6738,"item_index":0,"menu_item_id":396} 
[2026-04-02 17:48:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6738,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6738}} 
[2026-04-02 17:48:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6738,"item_index":1,"menu_item_id":50} 
[2026-04-02 17:48:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6738,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6738}} 
[2026-04-02 17:48:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6738,"item_index":2,"menu_item_id":61} 
[2026-04-02 17:48:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6738,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6738}} 
[2026-04-02 17:48:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6738,"item_index":3,"menu_item_id":5} 
[2026-04-02 17:48:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6738,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6738}} 
[2026-04-02 17:48:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6738,"item_index":4,"menu_item_id":3} 
[2026-04-02 17:48:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6738,"item_index":5,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6738}} 
[2026-04-02 17:48:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6738,"item_index":5,"menu_item_id":98} 
[2026-04-02 17:48:32] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6730,"new_order_id":6738,"order_number":"AZS-020426-014"} 
[2026-04-02 17:48:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6738,"item_index":0,"item_id":32060} 
[2026-04-02 17:48:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6738,"item_index":1,"item_id":32061} 
[2026-04-02 17:48:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6738,"item_index":2,"item_id":32063} 
[2026-04-02 17:48:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6738,"item_index":3,"item_id":32064} 
[2026-04-02 17:48:39] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6738,"item_index":4,"item_id":32065} 
[2026-04-02 17:48:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6738,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32060},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32061},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32063},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32064},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32065},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:48:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6738,"items_count":6} 
[2026-04-02 17:48:39] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[32107,32108,32109,32110,32111,32112],"items":[{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":98,"quantity":1}]} 
[2026-04-02 17:48:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6738,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["396|2|","50|2|","61|2|","5|1|","3|1|","98|1|"],"new_items_map_keys":["396|2|","50|2|","61|2|","5|1|","3|1|","98|1|"]} 
[2026-04-02 17:48:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6738,"order_number":"AZS-020426-014"} 
[2026-04-02 17:48:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6738,"order_number":"AZS-020426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 17:48:39"} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":6732,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":32071},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":32072},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":32073},{"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null,"id":32074},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":32075},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32076},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":32077},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null,"id":32078},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32079},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":32080},{"menu_item_id":9,"quantity":4,"discount_percent":0,"notes":null}],"validated_items":[{"id":32071,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":32072,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":32073,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":32074,"menu_item_id":60,"quantity":2,"discount_percent":0,"notes":null},{"id":32075,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":32076,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32077,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":32078,"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null},{"id":32079,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32080,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6732,"items_count":11} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32071,"menu_item_id":105,"quantity":1},{"id":32072,"menu_item_id":396,"quantity":3},{"id":32073,"menu_item_id":50,"quantity":2},{"id":32074,"menu_item_id":60,"quantity":2},{"id":32075,"menu_item_id":56,"quantity":2},{"id":32076,"menu_item_id":5,"quantity":1},{"id":32077,"menu_item_id":106,"quantity":1},{"id":32078,"menu_item_id":52,"quantity":2},{"id":32079,"menu_item_id":61,"quantity":1},{"id":32080,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":9,"quantity":4}]} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6732,"has_item_changes":true,"old_items_count":10,"new_items_count":11,"old_items_map_keys":["105|1|","396|3|","50|2|","60|2|","56|2|","5|1|","106|1|","52|2|","61|1|","3|1|"],"new_items_map_keys":["105|1|","396|3|","50|2|","60|2|","56|2|","5|1|","106|1|","52|2|","61|1|","3|1|","9|4|"]} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6732,"order_number":"AZS-020426-006"} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-006","replaced_order_id":6732} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6739,"items_count":11,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":60,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":52,"quantity":2,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":9,"quantity":4,"price":"229.00"}]} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6739,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6739}} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6739,"item_index":0,"menu_item_id":105} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6739,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6739}} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6739,"item_index":1,"menu_item_id":396} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6739,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6739}} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6739,"item_index":2,"menu_item_id":50} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6739,"item_index":3,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6739}} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6739,"item_index":3,"menu_item_id":60} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6739,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6739}} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6739,"item_index":4,"menu_item_id":56} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6739,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6739}} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6739,"item_index":5,"menu_item_id":5} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6739,"item_index":6,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6739}} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6739,"item_index":6,"menu_item_id":106} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6739,"item_index":7,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6739}} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6739,"item_index":7,"menu_item_id":52} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6739,"item_index":8,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6739}} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6739,"item_index":8,"menu_item_id":61} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6739,"item_index":9,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6739}} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6739,"item_index":9,"menu_item_id":3} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6739,"item_index":10,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":4,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":916.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6739}} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6739,"item_index":10,"menu_item_id":9} 
[2026-04-02 17:50:58] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6732,"new_order_id":6739,"order_number":"AZS-020426-006"} 
[2026-04-02 17:56:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6734,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32088},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":32089},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32090},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32091},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32092},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32093}],"validated_items":[{"id":32088,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32089,"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":32090,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32091,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32092,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32093,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:56:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6734,"items_count":6} 
[2026-04-02 17:56:51] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32088,"menu_item_id":114,"quantity":1},{"id":32089,"menu_item_id":49,"quantity":2},{"id":32090,"menu_item_id":396,"quantity":2},{"id":32091,"menu_item_id":61,"quantity":2},{"id":32092,"menu_item_id":5,"quantity":1},{"id":32093,"menu_item_id":3,"quantity":1}]} 
[2026-04-02 17:56:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6734,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","49|2|","396|2|","61|2|","5|1|","3|1|"],"new_items_map_keys":["114|1|","49|2|","396|2|","61|2|","5|1|","3|1|"]} 
[2026-04-02 17:56:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6734,"order_number":"AZS-020426-020"} 
[2026-04-02 17:56:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6734,"order_number":"AZS-020426-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 17:56:51"} 
[2026-04-02 17:58:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6734,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32088},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32090},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32091},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32092},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32093}],"validated_items":[{"id":32088,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32090,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32091,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32092,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32093,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:58:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6734,"items_count":5} 
[2026-04-02 17:58:43] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[32089],"items":[{"id":32088,"menu_item_id":114,"quantity":1},{"id":32090,"menu_item_id":396,"quantity":2},{"id":32091,"menu_item_id":61,"quantity":2},{"id":32092,"menu_item_id":5,"quantity":1},{"id":32093,"menu_item_id":3,"quantity":1}]} 
[2026-04-02 17:58:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6734,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["114|1|","49|2|","396|2|","61|2|","5|1|","3|1|"],"new_items_map_keys":["114|1|","396|2|","61|2|","5|1|","3|1|"]} 
[2026-04-02 17:58:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6734,"order_number":"AZS-020426-020"} 
[2026-04-02 17:58:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-020","replaced_order_id":6734} 
[2026-04-02 17:58:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6740,"items_count":5,"items":[{"menu_item_id":114,"quantity":1,"price":2299.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":61,"quantity":2,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-04-02 17:58:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6740,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6740}} 
[2026-04-02 17:58:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6740,"item_index":0,"menu_item_id":114} 
[2026-04-02 17:58:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6740,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6740}} 
[2026-04-02 17:58:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6740,"item_index":1,"menu_item_id":396} 
[2026-04-02 17:58:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6740,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6740}} 
[2026-04-02 17:58:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6740,"item_index":2,"menu_item_id":61} 
[2026-04-02 17:58:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6740,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6740}} 
[2026-04-02 17:58:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6740,"item_index":3,"menu_item_id":5} 
[2026-04-02 17:58:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6740,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6740}} 
[2026-04-02 17:58:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6740,"item_index":4,"menu_item_id":3} 
[2026-04-02 17:58:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6734,"new_order_id":6740,"order_number":"AZS-020426-020"} 
[2026-04-02 17:58:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6740,"item_index":0,"item_id":32088} 
[2026-04-02 17:58:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6740,"item_index":1,"item_id":32090} 
[2026-04-02 17:58:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6740,"item_index":2,"item_id":32091} 
[2026-04-02 17:58:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6740,"item_index":3,"item_id":32092} 
[2026-04-02 17:58:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6740,"item_index":4,"item_id":32093} 
[2026-04-02 17:58:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6740,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32088},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32090},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32091},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32092},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32093}],"validated_items":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:58:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6740,"items_count":5} 
[2026-04-02 17:58:50] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[32124,32125,32126,32127,32128],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-02 17:58:50] local.INFO: PosOrderController::update - Item changes check {"order_id":6740,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|1|","396|2|","61|2|","5|1|","3|1|"],"new_items_map_keys":["114|1|","396|2|","61|2|","5|1|","3|1|"]} 
[2026-04-02 17:58:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6740,"order_number":"AZS-020426-020"} 
[2026-04-02 17:58:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6740,"order_number":"AZS-020426-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 17:58:50"} 
[2026-04-02 17:59:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6740,"item_index":0,"item_id":32088} 
[2026-04-02 17:59:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6740,"item_index":1,"item_id":32090} 
[2026-04-02 17:59:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6740,"item_index":2,"item_id":32091} 
[2026-04-02 17:59:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6740,"item_index":3,"item_id":32092} 
[2026-04-02 17:59:37] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6740,"item_index":4,"item_id":32093} 
[2026-04-02 17:59:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6740,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32088},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32090},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32091},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32092},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32093}],"validated_items":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-02 17:59:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6740,"items_count":5} 
[2026-04-02 17:59:37] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[32124,32125,32126,32127,32128],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-02 17:59:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6740,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|1|","396|2|","61|2|","5|1|","3|1|"],"new_items_map_keys":["114|1|","396|2|","61|2|","5|1|","3|1|"]} 
[2026-04-02 17:59:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6740,"order_number":"AZS-020426-020"} 
[2026-04-02 17:59:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6740,"order_number":"AZS-020426-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 17:59:37"} 
[2026-04-02 18:00:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6740,"item_index":0,"item_id":32088} 
[2026-04-02 18:00:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6740,"item_index":1,"item_id":32090} 
[2026-04-02 18:00:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6740,"item_index":2,"item_id":32091} 
[2026-04-02 18:00:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6740,"item_index":3,"item_id":32092} 
[2026-04-02 18:00:15] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6740,"item_index":4,"item_id":32093} 
[2026-04-02 18:00:15] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6740,"order_number":"AZS-020426-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 18:00:15"} 
[2026-04-02 18:00:15] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6740,"order_number":"AZS-020426-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 18:00:15"} 
[2026-04-02 18:00:15] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6740,"order_number":"AZS-020426-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 18:00:15"} 
[2026-04-02 18:00:15] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6740,"order_number":"AZS-020426-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 18:00:15"} 
[2026-04-02 18:00:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6740,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32088},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32090},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32091},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32092},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32093}],"validated_items":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:00:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6740,"items_count":5} 
[2026-04-02 18:00:15] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[32124,32125,32126,32127,32128],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-02 18:00:15] local.INFO: PosOrderController::update - Item changes check {"order_id":6740,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|1|","396|2|","61|2|","5|1|","3|1|"],"new_items_map_keys":["114|1|","396|2|","61|1|","5|1|","3|1|"]} 
[2026-04-02 18:00:15] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6740,"order_number":"AZS-020426-020","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-02 18:00:15","original_payment_amount":"0.00","grand_total":3136.0,"timestamp":"2026-04-02 18:00:15"} 
[2026-04-02 18:00:15] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6740,"order_number":"AZS-020426-020"} 
[2026-04-02 18:00:15] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-020","replaced_order_id":6740} 
[2026-04-02 18:00:15] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6740,"new_order_id":6741,"order_number":"AZS-020426-020","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-02 18:00:15","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-02 18:00:15"} 
[2026-04-02 18:00:15] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6741,"items_count":5,"items":[{"menu_item_id":114,"quantity":1,"price":2299.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-04-02 18:00:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6741,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6741}} 
[2026-04-02 18:00:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6741,"item_index":0,"menu_item_id":114} 
[2026-04-02 18:00:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6741,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6741}} 
[2026-04-02 18:00:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6741,"item_index":1,"menu_item_id":396} 
[2026-04-02 18:00:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6741,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6741}} 
[2026-04-02 18:00:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6741,"item_index":2,"menu_item_id":61} 
[2026-04-02 18:00:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6741,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6741}} 
[2026-04-02 18:00:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6741,"item_index":3,"menu_item_id":5} 
[2026-04-02 18:00:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6741,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6741}} 
[2026-04-02 18:00:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6741,"item_index":4,"menu_item_id":3} 
[2026-04-02 18:00:15] local.ERROR: Error tracking recipe usage for order 6741: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6741, 114, 77, 1, 100, 0.00, Order #AZS-020426-020 - 1x Chicken Shinwari - Full, 2026-04-02 18:00:15, 2026-04-02 18:00:15))  
[2026-04-02 18:00:15] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6740,"new_order_id":6741,"order_number":"AZS-020426-020"} 
[2026-04-02 18:00:16] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6740,"new_order_id":6741,"order_number":"AZS-020426-020","route":"api/orders/6740"} 
[2026-04-02 18:00:42] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6728,"order_number":"AZS-020426-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":12224,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 18:00:42"} 
[2026-04-02 18:00:42] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6728,"order_number":"AZS-020426-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":12224,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 18:00:42"} 
[2026-04-02 18:00:42] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6728,"order_number":"AZS-020426-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":12224,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 18:00:42"} 
[2026-04-02 18:00:42] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6728,"order_number":"AZS-020426-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":12224,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 18:00:42"} 
[2026-04-02 18:00:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6728,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":56,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":32041},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":32042},{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32043},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":32044},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32045},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":32046},{"menu_item_id":83,"quantity":2,"price":649,"discount_percent":0,"notes":null,"id":32047},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32048},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":32049},{"menu_item_id":29,"quantity":5,"price":250,"discount_percent":0,"notes":null,"id":32050}],"validated_items":[{"id":32041,"menu_item_id":56,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":32042,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":32043,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32044,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"id":32045,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32046,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":32047,"menu_item_id":83,"quantity":2,"price":649,"discount_percent":0,"notes":null},{"id":32048,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32049,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":32050,"menu_item_id":29,"quantity":5,"price":250,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:00:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6728,"items_count":10} 
[2026-04-02 18:00:42] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32041,"menu_item_id":56,"quantity":4},{"id":32042,"menu_item_id":106,"quantity":1},{"id":32043,"menu_item_id":97,"quantity":1},{"id":32044,"menu_item_id":50,"quantity":3},{"id":32045,"menu_item_id":396,"quantity":3},{"id":32046,"menu_item_id":61,"quantity":3},{"id":32047,"menu_item_id":83,"quantity":2},{"id":32048,"menu_item_id":5,"quantity":1},{"id":32049,"menu_item_id":403,"quantity":1},{"id":32050,"menu_item_id":29,"quantity":5}]} 
[2026-04-02 18:00:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6728,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["56|4|","106|1|","97|1|","50|3|","396|3|","61|3|","83|2|","5|1|","403|1|","29|5|"],"new_items_map_keys":["56|4|","106|1|","97|1|","50|3|","396|3|","61|3|","83|2|","5|1|","403|1|","29|5|"]} 
[2026-04-02 18:00:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6728,"order_number":"AZS-020426-010"} 
[2026-04-02 18:00:42] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6728,"order_number":"AZS-020426-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":12224,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-02 18:00:42","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-02 18:00:42"} 
[2026-04-02 18:00:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6728,"order_number":"AZS-020426-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-02 18:00:42"} 
[2026-04-02 18:00:42] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6728,"order_number":"AZS-020426-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"12224.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-02 18:00:42","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":12224,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"12224.00","database_verification_match":true,"timestamp":"2026-04-02 18:00:42"} 
[2026-04-02 18:01:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6738,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32107},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32108},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32109},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32110},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32111},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32112}],"validated_items":[{"id":32107,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32108,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32109,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32110,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32111,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":32112,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:01:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6738,"items_count":6} 
[2026-04-02 18:01:09] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32107,"menu_item_id":396,"quantity":2},{"id":32108,"menu_item_id":50,"quantity":2},{"id":32109,"menu_item_id":61,"quantity":2},{"id":32110,"menu_item_id":5,"quantity":1},{"id":32111,"menu_item_id":3,"quantity":1},{"id":32112,"menu_item_id":98,"quantity":1}]} 
[2026-04-02 18:01:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6738,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["396|2|","50|2|","61|2|","5|1|","3|1|","98|1|"],"new_items_map_keys":["396|2|","50|2|","61|2|","5|1|","3|1|","98|1|"]} 
[2026-04-02 18:01:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6738,"order_number":"AZS-020426-014"} 
[2026-04-02 18:01:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6738,"order_number":"AZS-020426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 18:01:09"} 
[2026-04-02 18:01:39] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6738,"order_number":"AZS-020426-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 18:01:39"} 
[2026-04-02 18:01:39] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6738,"order_number":"AZS-020426-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 18:01:39"} 
[2026-04-02 18:01:39] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6738,"order_number":"AZS-020426-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 18:01:39"} 
[2026-04-02 18:01:39] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6738,"order_number":"AZS-020426-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 18:01:39"} 
[2026-04-02 18:01:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6738,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32107},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32108},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32109},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32110},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32111},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32112}],"validated_items":[{"id":32107,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32108,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32109,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32110,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32111,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":32112,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:01:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6738,"items_count":6} 
[2026-04-02 18:01:39] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32107,"menu_item_id":396,"quantity":2},{"id":32108,"menu_item_id":50,"quantity":2},{"id":32109,"menu_item_id":61,"quantity":1},{"id":32110,"menu_item_id":5,"quantity":1},{"id":32111,"menu_item_id":3,"quantity":1},{"id":32112,"menu_item_id":98,"quantity":1}]} 
[2026-04-02 18:01:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6738,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["396|2|","50|2|","61|2|","5|1|","3|1|","98|1|"],"new_items_map_keys":["396|2|","50|2|","61|1|","5|1|","3|1|","98|1|"]} 
[2026-04-02 18:01:39] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6738,"order_number":"AZS-020426-014","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":2500,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-02 18:01:39","original_payment_amount":"0.00","grand_total":2294.0,"timestamp":"2026-04-02 18:01:39"} 
[2026-04-02 18:01:39] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6738,"order_number":"AZS-020426-014"} 
[2026-04-02 18:01:39] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-014","replaced_order_id":6738} 
[2026-04-02 18:01:39] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6738,"new_order_id":6742,"order_number":"AZS-020426-014","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"2500.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-02 18:01:39","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-02 18:01:39"} 
[2026-04-02 18:01:39] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6742,"items_count":6,"items":[{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":50,"quantity":2,"price":129.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0},{"menu_item_id":98,"quantity":1,"price":1199.0}]} 
[2026-04-02 18:01:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6742,"item_index":0,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6742}} 
[2026-04-02 18:01:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6742,"item_index":0,"menu_item_id":396} 
[2026-04-02 18:01:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6742,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6742}} 
[2026-04-02 18:01:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6742,"item_index":1,"menu_item_id":50} 
[2026-04-02 18:01:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6742,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6742}} 
[2026-04-02 18:01:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6742,"item_index":2,"menu_item_id":61} 
[2026-04-02 18:01:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6742,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6742}} 
[2026-04-02 18:01:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6742,"item_index":3,"menu_item_id":5} 
[2026-04-02 18:01:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6742,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6742}} 
[2026-04-02 18:01:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6742,"item_index":4,"menu_item_id":3} 
[2026-04-02 18:01:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6742,"item_index":5,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6742}} 
[2026-04-02 18:01:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6742,"item_index":5,"menu_item_id":98} 
[2026-04-02 18:01:39] local.ERROR: Error tracking recipe usage for order 6742: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6742, 50, 102, 1, 20, 0.00, Order #AZS-020426-014 - 2x Roghni Naan, 2026-04-02 18:01:39, 2026-04-02 18:01:39))  
[2026-04-02 18:01:39] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6738,"new_order_id":6742,"order_number":"AZS-020426-014"} 
[2026-04-02 18:01:40] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6738,"new_order_id":6742,"order_number":"AZS-020426-014","route":"api/orders/6738"} 
[2026-04-02 18:02:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6735,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32094},{"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null,"id":32095},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32096},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32097},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":32098},{"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":32099},{"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null,"id":32100}],"validated_items":[{"id":32094,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32095,"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null},{"id":32096,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32097,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32098,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":32099,"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":32100,"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:02:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6735,"items_count":7} 
[2026-04-02 18:02:02] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32094,"menu_item_id":96,"quantity":1},{"id":32095,"menu_item_id":136,"quantity":1},{"id":32096,"menu_item_id":61,"quantity":1},{"id":32097,"menu_item_id":50,"quantity":2},{"id":32098,"menu_item_id":396,"quantity":1},{"id":32099,"menu_item_id":66,"quantity":1},{"id":32100,"menu_item_id":2,"quantity":4}]} 
[2026-04-02 18:02:02] local.INFO: PosOrderController::update - Item changes check {"order_id":6735,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["96|1|","136|1|","61|1|","50|2|","396|1|","66|1|","2|4|"],"new_items_map_keys":["96|1|","136|1|","61|1|","50|2|","396|1|","66|1|","2|4|"]} 
[2026-04-02 18:02:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6735,"order_number":"AZS-020426-018"} 
[2026-04-02 18:02:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6735,"order_number":"AZS-020426-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 18:02:02"} 
[2026-04-02 18:03:07] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6735,"order_number":"AZS-020426-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 18:03:07"} 
[2026-04-02 18:03:07] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6735,"order_number":"AZS-020426-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 18:03:07"} 
[2026-04-02 18:03:07] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6735,"order_number":"AZS-020426-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 18:03:07"} 
[2026-04-02 18:03:07] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6735,"order_number":"AZS-020426-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 18:03:07"} 
[2026-04-02 18:03:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":6735,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32094},{"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null,"id":32095},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32097},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":32098},{"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":32099},{"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null,"id":32100}],"validated_items":[{"id":32094,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32095,"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null},{"id":32097,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32098,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":32099,"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":32100,"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:03:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6735,"items_count":6} 
[2026-04-02 18:03:07] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[32096],"items":[{"id":32094,"menu_item_id":96,"quantity":1},{"id":32095,"menu_item_id":136,"quantity":1},{"id":32097,"menu_item_id":50,"quantity":2},{"id":32098,"menu_item_id":396,"quantity":1},{"id":32099,"menu_item_id":66,"quantity":1},{"id":32100,"menu_item_id":2,"quantity":4}]} 
[2026-04-02 18:03:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6735,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["96|1|","136|1|","61|1|","50|2|","396|1|","66|1|","2|4|"],"new_items_map_keys":["96|1|","136|1|","50|2|","396|1|","66|1|","2|4|"]} 
[2026-04-02 18:03:07] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6735,"order_number":"AZS-020426-018","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-02 18:03:07","original_payment_amount":"0.00","grand_total":4374.0,"timestamp":"2026-04-02 18:03:07"} 
[2026-04-02 18:03:07] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6735,"order_number":"AZS-020426-018"} 
[2026-04-02 18:03:07] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-018","replaced_order_id":6735} 
[2026-04-02 18:03:07] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6735,"new_order_id":6743,"order_number":"AZS-020426-018","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-02 18:03:07","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-02 18:03:07"} 
[2026-04-02 18:03:07] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6743,"items_count":6,"items":[{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":136,"quantity":1,"price":899.0},{"menu_item_id":50,"quantity":2,"price":129.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":66,"quantity":1,"price":1399.0},{"menu_item_id":2,"quantity":4,"price":130.0}]} 
[2026-04-02 18:03:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6743,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6743}} 
[2026-04-02 18:03:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6743,"item_index":0,"menu_item_id":96} 
[2026-04-02 18:03:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6743,"item_index":1,"item_data":{"menu_item_id":136,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Small","quantity":1,"price":899.0,"discount_percent":0.0,"discount_amount":0.0,"total":899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6743}} 
[2026-04-02 18:03:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6743,"item_index":1,"menu_item_id":136} 
[2026-04-02 18:03:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6743,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6743}} 
[2026-04-02 18:03:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6743,"item_index":2,"menu_item_id":50} 
[2026-04-02 18:03:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6743,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6743}} 
[2026-04-02 18:03:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6743,"item_index":3,"menu_item_id":396} 
[2026-04-02 18:03:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6743,"item_index":4,"item_data":{"menu_item_id":66,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Cheese Kabab (4 pcs)","quantity":1,"price":1399.0,"discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6743}} 
[2026-04-02 18:03:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6743,"item_index":4,"menu_item_id":66} 
[2026-04-02 18:03:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6743,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":4,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":520.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6743}} 
[2026-04-02 18:03:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6743,"item_index":5,"menu_item_id":2} 
[2026-04-02 18:03:07] local.ERROR: Error tracking recipe usage for order 6743: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6743, 96, 77, 1, 1, 0.00, Order #AZS-020426-018 - 1x Chicken Karahi - Half, 2026-04-02 18:03:07, 2026-04-02 18:03:07))  
[2026-04-02 18:03:07] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6735,"new_order_id":6743,"order_number":"AZS-020426-018"} 
[2026-04-02 18:03:07] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6735,"new_order_id":6743,"order_number":"AZS-020426-018","route":"api/orders/6735"} 
[2026-04-02 18:04:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6697,"order_number":"AZS-020426-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 18:04:27"} 
[2026-04-02 18:04:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6697,"order_number":"AZS-020426-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 18:04:27"} 
[2026-04-02 18:04:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6697,"order_number":"AZS-020426-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 18:04:27"} 
[2026-04-02 18:04:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6697,"order_number":"AZS-020426-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 18:04:27"} 
[2026-04-02 18:04:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6697,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":31891}],"validated_items":[{"id":31891,"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:04:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6697,"items_count":1} 
[2026-04-02 18:04:27] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31891,"menu_item_id":138,"quantity":1}]} 
[2026-04-02 18:04:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6697,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["138|1|"],"new_items_map_keys":["138|1|"]} 
[2026-04-02 18:04:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6697,"order_number":"AZS-020426-009"} 
[2026-04-02 18:04:27] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6697,"order_number":"AZS-020426-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-02 18:04:27","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-02 18:04:27"} 
[2026-04-02 18:04:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6697,"order_number":"AZS-020426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-02 18:04:27"} 
[2026-04-02 18:04:27] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6697,"order_number":"AZS-020426-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-02 18:04:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2200.00","database_verification_match":true,"timestamp":"2026-04-02 18:04:27"} 
[2026-04-02 18:07:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":6731,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":32066},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":32067},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32068},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32070},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32066,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":32067,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":32068,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32070,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:07:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6731,"items_count":6} 
[2026-04-02 18:07:01] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[32069],"items":[{"id":32066,"menu_item_id":97,"quantity":1},{"id":32067,"menu_item_id":396,"quantity":3},{"id":32068,"menu_item_id":61,"quantity":1},{"id":32070,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":29,"quantity":1}]} 
[2026-04-02 18:07:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6731,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["97|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["97|1|","396|3|","61|1|","5|1|","3|1|","29|1|"]} 
[2026-04-02 18:07:01] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6731,"order_number":"AZS-020426-021"} 
[2026-04-02 18:07:01] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-021","replaced_order_id":6731} 
[2026-04-02 18:07:01] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6745,"items_count":6,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":29,"quantity":1,"price":"250.00"}]} 
[2026-04-02 18:07:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6745,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6745}} 
[2026-04-02 18:07:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6745,"item_index":0,"menu_item_id":97} 
[2026-04-02 18:07:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6745,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6745}} 
[2026-04-02 18:07:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6745,"item_index":1,"menu_item_id":396} 
[2026-04-02 18:07:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6745,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6745}} 
[2026-04-02 18:07:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6745,"item_index":2,"menu_item_id":61} 
[2026-04-02 18:07:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6745,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6745}} 
[2026-04-02 18:07:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6745,"item_index":3,"menu_item_id":5} 
[2026-04-02 18:07:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6745,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6745}} 
[2026-04-02 18:07:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6745,"item_index":4,"menu_item_id":3} 
[2026-04-02 18:07:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6745,"item_index":5,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6745}} 
[2026-04-02 18:07:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6745,"item_index":5,"menu_item_id":29} 
[2026-04-02 18:07:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6731,"new_order_id":6745,"order_number":"AZS-020426-021"} 
[2026-04-02 18:09:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":6739,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32113},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32114},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32115},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32116},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32117},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32118},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":32119},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":32120},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32121},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32122},{"menu_item_id":9,"quantity":4,"price":229,"discount_percent":0,"notes":null,"id":32123}],"validated_items":[{"id":32113,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32114,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32115,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32116,"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32117,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32118,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32119,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":32120,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":32121,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32122,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":32123,"menu_item_id":9,"quantity":4,"price":229,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:09:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6739,"items_count":11} 
[2026-04-02 18:09:08] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32113,"menu_item_id":105,"quantity":1},{"id":32114,"menu_item_id":396,"quantity":3},{"id":32115,"menu_item_id":50,"quantity":2},{"id":32116,"menu_item_id":60,"quantity":2},{"id":32117,"menu_item_id":56,"quantity":2},{"id":32118,"menu_item_id":5,"quantity":1},{"id":32119,"menu_item_id":106,"quantity":1},{"id":32120,"menu_item_id":52,"quantity":2},{"id":32121,"menu_item_id":61,"quantity":1},{"id":32122,"menu_item_id":3,"quantity":1},{"id":32123,"menu_item_id":9,"quantity":4}]} 
[2026-04-02 18:09:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6739,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["105|1|","396|3|","50|2|","60|2|","56|2|","5|1|","106|1|","52|2|","61|1|","3|1|","9|4|"],"new_items_map_keys":["105|1|","396|3|","50|2|","60|2|","56|2|","5|1|","106|1|","52|2|","61|1|","3|1|","9|4|"]} 
[2026-04-02 18:09:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6739,"order_number":"AZS-020426-006"} 
[2026-04-02 18:09:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6739,"order_number":"AZS-020426-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 18:09:08"} 
[2026-04-02 18:12:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6726,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":2,"discount_percent":0,"notes":null,"id":32031},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null,"id":32032},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":32033},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32034},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32035}],"validated_items":[{"id":32031,"menu_item_id":106,"quantity":2,"discount_percent":0,"notes":null},{"id":32032,"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"id":32033,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":32034,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32035,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:12:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6726,"items_count":5} 
[2026-04-02 18:12:22] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32031,"menu_item_id":106,"quantity":2},{"id":32032,"menu_item_id":50,"quantity":3},{"id":32033,"menu_item_id":396,"quantity":2},{"id":32034,"menu_item_id":61,"quantity":1},{"id":32035,"menu_item_id":56,"quantity":1}]} 
[2026-04-02 18:12:22] local.INFO: PosOrderController::update - Item changes check {"order_id":6726,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["106|2|","50|3|","396|2|","61|1|","56|1|"],"new_items_map_keys":["106|2|","50|3|","396|2|","61|1|","56|1|"]} 
[2026-04-02 18:12:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6726,"order_number":"AZS-020426-019"} 
[2026-04-02 18:12:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6726,"order_number":"AZS-020426-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-04-02 18:12:22"} 
[2026-04-02 18:13:26] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6739,"order_number":"AZS-020426-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 18:13:26"} 
[2026-04-02 18:13:26] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6739,"order_number":"AZS-020426-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 18:13:26"} 
[2026-04-02 18:13:26] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6739,"order_number":"AZS-020426-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 18:13:26"} 
[2026-04-02 18:13:26] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6739,"order_number":"AZS-020426-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 18:13:26"} 
[2026-04-02 18:13:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":6739,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32113},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32114},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32115},{"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32116},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32117},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32118},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":32119},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":32120},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32121},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32122},{"menu_item_id":9,"quantity":4,"price":229,"discount_percent":0,"notes":null,"id":32123}],"validated_items":[{"id":32113,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32114,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32115,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32116,"menu_item_id":60,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32117,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32118,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32119,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":32120,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":32121,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32122,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":32123,"menu_item_id":9,"quantity":4,"price":229,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:13:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6739,"items_count":11} 
[2026-04-02 18:13:26] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32113,"menu_item_id":105,"quantity":1},{"id":32114,"menu_item_id":396,"quantity":3},{"id":32115,"menu_item_id":50,"quantity":2},{"id":32116,"menu_item_id":60,"quantity":2},{"id":32117,"menu_item_id":56,"quantity":2},{"id":32118,"menu_item_id":5,"quantity":1},{"id":32119,"menu_item_id":106,"quantity":1},{"id":32120,"menu_item_id":52,"quantity":2},{"id":32121,"menu_item_id":61,"quantity":1},{"id":32122,"menu_item_id":3,"quantity":1},{"id":32123,"menu_item_id":9,"quantity":4}]} 
[2026-04-02 18:13:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6739,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["105|1|","396|3|","50|2|","60|2|","56|2|","5|1|","106|1|","52|2|","61|1|","3|1|","9|4|"],"new_items_map_keys":["105|1|","396|3|","50|2|","60|2|","56|2|","5|1|","106|1|","52|2|","61|1|","3|1|","9|4|"]} 
[2026-04-02 18:13:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6739,"order_number":"AZS-020426-006"} 
[2026-04-02 18:13:26] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6739,"order_number":"AZS-020426-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":10000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-02 18:13:26","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-02 18:13:26"} 
[2026-04-02 18:13:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6739,"order_number":"AZS-020426-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-02 18:13:26"} 
[2026-04-02 18:13:26] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6739,"order_number":"AZS-020426-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"10000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-02 18:13:26","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"10000.00","database_verification_match":true,"timestamp":"2026-04-02 18:13:26"} 
[2026-04-02 18:18:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6745,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32148},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32149},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32150},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32151},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32152},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":32153}],"validated_items":[{"id":32148,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32149,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32150,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32151,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32152,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":32153,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:18:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6745,"items_count":6} 
[2026-04-02 18:18:47] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32148,"menu_item_id":97,"quantity":1},{"id":32149,"menu_item_id":396,"quantity":3},{"id":32150,"menu_item_id":61,"quantity":1},{"id":32151,"menu_item_id":5,"quantity":1},{"id":32152,"menu_item_id":3,"quantity":1},{"id":32153,"menu_item_id":29,"quantity":1}]} 
[2026-04-02 18:18:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6745,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["97|1|","396|3|","61|1|","5|1|","3|1|","29|1|"],"new_items_map_keys":["97|1|","396|3|","61|1|","5|1|","3|1|","29|1|"]} 
[2026-04-02 18:18:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6745,"order_number":"AZS-020426-021"} 
[2026-04-02 18:18:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6745,"order_number":"AZS-020426-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 18:18:47"} 
[2026-04-02 18:19:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6736,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":32101}],"validated_items":[{"id":32101,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:19:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6736,"items_count":1} 
[2026-04-02 18:19:29] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32101,"menu_item_id":13,"quantity":4}]} 
[2026-04-02 18:19:29] local.INFO: PosOrderController::update - Item changes check {"order_id":6736,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|4|"],"new_items_map_keys":["13|4|"]} 
[2026-04-02 18:19:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6736,"order_number":"AZS-020426-022"} 
[2026-04-02 18:19:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6736,"order_number":"AZS-020426-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 18:19:29"} 
[2026-04-02 18:23:40] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6745,"order_number":"AZS-020426-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 18:23:40"} 
[2026-04-02 18:23:40] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6745,"order_number":"AZS-020426-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 18:23:40"} 
[2026-04-02 18:23:40] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6745,"order_number":"AZS-020426-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 18:23:40"} 
[2026-04-02 18:23:40] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6745,"order_number":"AZS-020426-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 18:23:40"} 
[2026-04-02 18:23:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6745,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32148},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32149},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32150},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32151},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32152},{"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":32153}],"validated_items":[{"id":32148,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32149,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32150,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32151,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32152,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":32153,"menu_item_id":29,"quantity":1,"price":250,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:23:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6745,"items_count":6} 
[2026-04-02 18:23:40] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32148,"menu_item_id":97,"quantity":1},{"id":32149,"menu_item_id":396,"quantity":3},{"id":32150,"menu_item_id":61,"quantity":1},{"id":32151,"menu_item_id":5,"quantity":1},{"id":32152,"menu_item_id":3,"quantity":1},{"id":32153,"menu_item_id":29,"quantity":1}]} 
[2026-04-02 18:23:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6745,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["97|1|","396|3|","61|1|","5|1|","3|1|","29|1|"],"new_items_map_keys":["97|1|","396|3|","61|1|","5|1|","3|1|","29|1|"]} 
[2026-04-02 18:23:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6745,"order_number":"AZS-020426-021"} 
[2026-04-02 18:23:40] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6745,"order_number":"AZS-020426-021","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-02 18:23:40","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-02 18:23:40"} 
[2026-04-02 18:23:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6745,"order_number":"AZS-020426-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-02 18:23:40"} 
[2026-04-02 18:23:40] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6745,"order_number":"AZS-020426-021","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-02 18:23:40","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4000.00","database_verification_match":true,"timestamp":"2026-04-02 18:23:40"} 
[2026-04-02 18:30:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6736,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null,"id":32101},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32101,"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:30:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6736,"items_count":2} 
[2026-04-02 18:30:44] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32101,"menu_item_id":13,"quantity":4},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-04-02 18:30:44] local.INFO: PosOrderController::update - Item changes check {"order_id":6736,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["13|4|"],"new_items_map_keys":["13|4|","4|1|"]} 
[2026-04-02 18:30:44] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6736,"order_number":"AZS-020426-022"} 
[2026-04-02 18:30:44] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-022","replaced_order_id":6736} 
[2026-04-02 18:30:44] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6746,"items_count":2,"items":[{"menu_item_id":13,"quantity":4,"price":"249.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-04-02 18:30:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6746,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":4,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6746}} 
[2026-04-02 18:30:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6746,"item_index":0,"menu_item_id":13} 
[2026-04-02 18:30:44] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6746,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6746}} 
[2026-04-02 18:30:44] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6746,"item_index":1,"menu_item_id":4} 
[2026-04-02 18:30:44] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6736,"new_order_id":6746,"order_number":"AZS-020426-022"} 
[2026-04-02 18:31:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6746,"item_index":0,"item_id":32101} 
[2026-04-02 18:31:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":6746,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":32101},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:31:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6746,"items_count":2} 
[2026-04-02 18:31:09] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[32154,32155],"items":[{"id":null,"menu_item_id":13,"quantity":4},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-04-02 18:31:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6746,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|4|","4|1|"],"new_items_map_keys":["13|4|","4|1|"]} 
[2026-04-02 18:31:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6746,"order_number":"AZS-020426-022"} 
[2026-04-02 18:31:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6746,"order_number":"AZS-020426-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 18:31:09"} 
[2026-04-02 18:35:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6726,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":2,"price":4199,"discount_percent":0,"notes":null,"id":32031},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":32032},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32033},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32034},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32035}],"validated_items":[{"id":32031,"menu_item_id":106,"quantity":2,"price":4199,"discount_percent":0,"notes":null},{"id":32032,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"id":32033,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32034,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32035,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:35:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6726,"items_count":5} 
[2026-04-02 18:35:15] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32031,"menu_item_id":106,"quantity":2},{"id":32032,"menu_item_id":50,"quantity":3},{"id":32033,"menu_item_id":396,"quantity":2},{"id":32034,"menu_item_id":61,"quantity":1},{"id":32035,"menu_item_id":56,"quantity":1}]} 
[2026-04-02 18:35:15] local.INFO: PosOrderController::update - Item changes check {"order_id":6726,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["106|2|","50|3|","396|2|","61|1|","56|1|"],"new_items_map_keys":["106|2|","50|3|","396|2|","61|1|","56|1|"]} 
[2026-04-02 18:35:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6726,"order_number":"AZS-020426-019"} 
[2026-04-02 18:35:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6726,"order_number":"AZS-020426-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-04-02 18:35:15"} 
[2026-04-02 18:36:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6744,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":32146},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null,"id":32147},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":32146,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"id":32147,"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:36:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6744,"items_count":3} 
[2026-04-02 18:36:27] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32146,"menu_item_id":137,"quantity":1},{"id":32147,"menu_item_id":4,"quantity":2},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-04-02 18:36:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6744,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["137|1|","4|2|"],"new_items_map_keys":["137|1|","4|2|","2|2|"]} 
[2026-04-02 18:36:27] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6744,"order_number":"AZS-020426-024"} 
[2026-04-02 18:36:27] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-024","replaced_order_id":6744} 
[2026-04-02 18:36:27] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6747,"items_count":3,"items":[{"menu_item_id":137,"quantity":1,"price":"1299.00"},{"menu_item_id":4,"quantity":2,"price":"90.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-04-02 18:36:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6747,"item_index":0,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6747}} 
[2026-04-02 18:36:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6747,"item_index":0,"menu_item_id":137} 
[2026-04-02 18:36:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6747,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":2,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":180.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6747}} 
[2026-04-02 18:36:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6747,"item_index":1,"menu_item_id":4} 
[2026-04-02 18:36:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6747,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6747}} 
[2026-04-02 18:36:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6747,"item_index":2,"menu_item_id":2} 
[2026-04-02 18:36:27] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6744,"new_order_id":6747,"order_number":"AZS-020426-024"} 
[2026-04-02 18:39:08] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6746,"order_number":"AZS-020426-022","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1140,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 18:39:08"} 
[2026-04-02 18:39:08] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6746,"order_number":"AZS-020426-022","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1140,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 18:39:08"} 
[2026-04-02 18:39:08] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6746,"order_number":"AZS-020426-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1140,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 18:39:08"} 
[2026-04-02 18:39:08] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6746,"order_number":"AZS-020426-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1140,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 18:39:08"} 
[2026-04-02 18:39:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6746,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":32154},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":32155}],"validated_items":[{"id":32154,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null},{"id":32155,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:39:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6746,"items_count":2} 
[2026-04-02 18:39:08] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32154,"menu_item_id":13,"quantity":4},{"id":32155,"menu_item_id":4,"quantity":1}]} 
[2026-04-02 18:39:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6746,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|4|","4|1|"],"new_items_map_keys":["13|4|","4|1|"]} 
[2026-04-02 18:39:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6746,"order_number":"AZS-020426-022"} 
[2026-04-02 18:39:08] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6746,"order_number":"AZS-020426-022","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1140,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-02 18:39:08","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-02 18:39:08"} 
[2026-04-02 18:39:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6746,"order_number":"AZS-020426-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-02 18:39:08"} 
[2026-04-02 18:39:08] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6746,"order_number":"AZS-020426-022","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1140.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-02 18:39:08","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1140,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1140.00","database_verification_match":true,"timestamp":"2026-04-02 18:39:08"} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6716,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":31970},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":31971},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":31972},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":31973},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":31974},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31975},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":31976},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":31977},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31970,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":31971,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":31972,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":31973,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":31974,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":31975,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":31976,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":31977,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6716,"items_count":9} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31970,"menu_item_id":106,"quantity":1},{"id":31971,"menu_item_id":50,"quantity":2},{"id":31972,"menu_item_id":396,"quantity":3},{"id":31973,"menu_item_id":61,"quantity":2},{"id":31974,"menu_item_id":56,"quantity":1},{"id":31975,"menu_item_id":5,"quantity":1},{"id":31976,"menu_item_id":65,"quantity":1},{"id":31977,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":105,"quantity":1}]} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6716,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["106|1|","50|2|","396|3|","61|2|","56|1|","5|1|","65|1|","6|2|"],"new_items_map_keys":["106|1|","50|2|","396|3|","61|2|","56|1|","5|1|","65|1|","6|2|","105|1|"]} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6716,"order_number":"AZS-020426-008"} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-008","replaced_order_id":6716} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6748,"items_count":9,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"}]} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6748,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6748}} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6748,"item_index":0,"menu_item_id":106} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6748,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6748}} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6748,"item_index":1,"menu_item_id":50} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6748,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6748}} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6748,"item_index":2,"menu_item_id":396} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6748,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6748}} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6748,"item_index":3,"menu_item_id":61} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6748,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6748}} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6748,"item_index":4,"menu_item_id":56} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6748,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6748}} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6748,"item_index":5,"menu_item_id":5} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6748,"item_index":6,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6748}} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6748,"item_index":6,"menu_item_id":65} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6748,"item_index":7,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6748}} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6748,"item_index":7,"menu_item_id":6} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6748,"item_index":8,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6748}} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6748,"item_index":8,"menu_item_id":105} 
[2026-04-02 18:42:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6716,"new_order_id":6748,"order_number":"AZS-020426-008"} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":6719,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":108,"quantity":1,"discount_percent":0,"notes":null,"id":31988},{"menu_item_id":29,"quantity":5,"discount_percent":0,"notes":null,"id":31989},{"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null,"id":31990},{"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null,"id":31991},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":31992},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":31993},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":31994},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":31995},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null,"id":31996},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":31997},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":31988,"menu_item_id":108,"quantity":1,"discount_percent":0,"notes":null},{"id":31989,"menu_item_id":29,"quantity":5,"discount_percent":0,"notes":null},{"id":31990,"menu_item_id":13,"quantity":4,"discount_percent":0,"notes":null},{"id":31991,"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null},{"id":31992,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":31993,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":31994,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":31995,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"id":31996,"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null},{"id":31997,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6719,"items_count":11} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31988,"menu_item_id":108,"quantity":1},{"id":31989,"menu_item_id":29,"quantity":5},{"id":31990,"menu_item_id":13,"quantity":4},{"id":31991,"menu_item_id":9,"quantity":2},{"id":31992,"menu_item_id":61,"quantity":1},{"id":31993,"menu_item_id":56,"quantity":2},{"id":31994,"menu_item_id":5,"quantity":1},{"id":31995,"menu_item_id":3,"quantity":1},{"id":31996,"menu_item_id":51,"quantity":1},{"id":31997,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":63,"quantity":1}]} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6719,"has_item_changes":true,"old_items_count":10,"new_items_count":11,"old_items_map_keys":["108|1|","29|5|","13|4|","9|2|","61|1|","56|2|","5|1|","3|1|","51|1|","396|1|"],"new_items_map_keys":["108|1|","29|5|","13|4|","9|2|","61|1|","56|2|","5|1|","3|1|","51|1|","396|1|","63|1|"]} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6719,"order_number":"AZS-020426-004"} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-004","replaced_order_id":6719} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6749,"items_count":11,"items":[{"menu_item_id":108,"quantity":1,"price":"4199.00"},{"menu_item_id":29,"quantity":5,"price":"250.00"},{"menu_item_id":13,"quantity":4,"price":"249.00"},{"menu_item_id":9,"quantity":2,"price":"229.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":51,"quantity":1,"price":"199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":63,"quantity":1,"price":"1099.00"}]} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6749,"item_index":0,"item_data":{"menu_item_id":108,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Sulemani - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6749}} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6749,"item_index":0,"menu_item_id":108} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6749,"item_index":1,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":5,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6749}} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6749,"item_index":1,"menu_item_id":29} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6749,"item_index":2,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":4,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":996.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6749}} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6749,"item_index":2,"menu_item_id":13} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6749,"item_index":3,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":2,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":458.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6749}} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6749,"item_index":3,"menu_item_id":9} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6749,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6749}} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6749,"item_index":4,"menu_item_id":61} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6749,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6749}} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6749,"item_index":5,"menu_item_id":56} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6749,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6749}} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6749,"item_index":6,"menu_item_id":5} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6749,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6749}} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6749,"item_index":7,"menu_item_id":3} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6749,"item_index":8,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6749}} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6749,"item_index":8,"menu_item_id":51} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6749,"item_index":9,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6749}} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6749,"item_index":9,"menu_item_id":396} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6749,"item_index":10,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6749}} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6749,"item_index":10,"menu_item_id":63} 
[2026-04-02 18:43:12] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6719,"new_order_id":6749,"order_number":"AZS-020426-004"} 
[2026-04-02 18:44:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6747,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":32156},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null,"id":32157},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":32158}],"validated_items":[{"id":32156,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":32157,"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null},{"id":32158,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:44:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6747,"items_count":3} 
[2026-04-02 18:44:48] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32156,"menu_item_id":137,"quantity":1},{"id":32157,"menu_item_id":4,"quantity":2},{"id":32158,"menu_item_id":2,"quantity":2}]} 
[2026-04-02 18:44:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6747,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["137|1|","4|2|","2|2|"],"new_items_map_keys":["137|1|","4|2|","2|2|"]} 
[2026-04-02 18:44:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6747,"order_number":"AZS-020426-024"} 
[2026-04-02 18:44:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6747,"order_number":"AZS-020426-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 18:44:48"} 
[2026-04-02 18:47:05] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6747,"order_number":"AZS-020426-024","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 18:47:05"} 
[2026-04-02 18:47:05] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6747,"order_number":"AZS-020426-024","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 18:47:05"} 
[2026-04-02 18:47:05] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6747,"order_number":"AZS-020426-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 18:47:05"} 
[2026-04-02 18:47:05] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6747,"order_number":"AZS-020426-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 18:47:05"} 
[2026-04-02 18:47:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6747,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":32156},{"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null,"id":32157},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":32158}],"validated_items":[{"id":32156,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":32157,"menu_item_id":4,"quantity":2,"price":90,"discount_percent":0,"notes":null},{"id":32158,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:47:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6747,"items_count":3} 
[2026-04-02 18:47:05] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32156,"menu_item_id":137,"quantity":1},{"id":32157,"menu_item_id":4,"quantity":2},{"id":32158,"menu_item_id":2,"quantity":2}]} 
[2026-04-02 18:47:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6747,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["137|1|","4|2|","2|2|"],"new_items_map_keys":["137|1|","4|2|","2|2|"]} 
[2026-04-02 18:47:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6747,"order_number":"AZS-020426-024"} 
[2026-04-02 18:47:05] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6747,"order_number":"AZS-020426-024","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-02 18:47:05","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-02 18:47:05"} 
[2026-04-02 18:47:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6747,"order_number":"AZS-020426-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-02 18:47:05"} 
[2026-04-02 18:47:05] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6747,"order_number":"AZS-020426-024","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-02 18:47:05","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-04-02 18:47:05"} 
[2026-04-02 18:50:47] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6726,"order_number":"AZS-020426-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":9381,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 18:50:47"} 
[2026-04-02 18:50:47] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6726,"order_number":"AZS-020426-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":9381,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 18:50:47"} 
[2026-04-02 18:50:47] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6726,"order_number":"AZS-020426-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":9381,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 18:50:47"} 
[2026-04-02 18:50:47] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6726,"order_number":"AZS-020426-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":9381,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 18:50:47"} 
[2026-04-02 18:50:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6726,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":2,"price":4199,"discount_percent":0,"notes":null,"id":32031},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":32032},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32033},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32034},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32035}],"validated_items":[{"id":32031,"menu_item_id":106,"quantity":2,"price":4199,"discount_percent":0,"notes":null},{"id":32032,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"id":32033,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32034,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32035,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:50:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6726,"items_count":5} 
[2026-04-02 18:50:47] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32031,"menu_item_id":106,"quantity":2},{"id":32032,"menu_item_id":50,"quantity":3},{"id":32033,"menu_item_id":396,"quantity":2},{"id":32034,"menu_item_id":61,"quantity":1},{"id":32035,"menu_item_id":56,"quantity":1}]} 
[2026-04-02 18:50:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6726,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["106|2|","50|3|","396|2|","61|1|","56|1|"],"new_items_map_keys":["106|2|","50|3|","396|2|","61|1|","56|1|"]} 
[2026-04-02 18:50:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6726,"order_number":"AZS-020426-019"} 
[2026-04-02 18:50:47] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6726,"order_number":"AZS-020426-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":9381,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-02 18:50:47","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-02 18:50:47"} 
[2026-04-02 18:50:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6726,"order_number":"AZS-020426-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-02 18:50:47"} 
[2026-04-02 18:50:47] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6726,"order_number":"AZS-020426-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"9381.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-02 18:50:47","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":9381,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"9381.00","database_verification_match":true,"timestamp":"2026-04-02 18:50:47"} 
[2026-04-02 18:54:05] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6712,"order_number":"AZS-020426-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":650,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 18:54:05"} 
[2026-04-02 18:54:05] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6712,"order_number":"AZS-020426-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":650,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 18:54:05"} 
[2026-04-02 18:54:05] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6712,"order_number":"AZS-020426-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":650,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 18:54:05"} 
[2026-04-02 18:54:05] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6712,"order_number":"AZS-020426-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":650,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 18:54:05"} 
[2026-04-02 18:54:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6712,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":31954}],"validated_items":[{"id":31954,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-02 18:54:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6712,"items_count":1} 
[2026-04-02 18:54:05] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":31954,"menu_item_id":6,"quantity":3}]} 
[2026-04-02 18:54:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6712,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|3|"],"new_items_map_keys":["6|3|"]} 
[2026-04-02 18:54:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6712,"order_number":"AZS-020426-015"} 
[2026-04-02 18:54:05] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6712,"order_number":"AZS-020426-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":650,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-02 18:54:05","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-02 18:54:05"} 
[2026-04-02 18:54:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6712,"order_number":"AZS-020426-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-02 18:54:05"} 
[2026-04-02 18:54:05] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6712,"order_number":"AZS-020426-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"650.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-02 18:54:05","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":650,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"650.00","database_verification_match":true,"timestamp":"2026-04-02 18:54:05"} 
[2026-04-02 18:56:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T06:56:09.145Z","date_to":"2026-04-02T18:56:09.145Z","per_page":"100"} 
[2026-04-02 18:56:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T06:56:09.129Z","date_to":"2026-04-02T18:56:09.129Z","per_page":"100"} 
[2026-04-02 18:56:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-024","AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":4,"unique_order_numbers":24} 
[2026-04-02 18:56:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-024","AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":4,"unique_order_numbers":24} 
[2026-04-02 18:56:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T06:56:09.129Z","date_to":"2026-04-02T18:56:09.129Z","per_page":"100"} 
[2026-04-02 18:56:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-024","AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":4,"unique_order_numbers":24} 
[2026-04-02 19:13:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":5,"order_id":6737,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":383,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":383,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 19:13:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6737,"items_count":1} 
[2026-04-02 19:13:33] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":5,"items_to_remove":[32102,32103,32104,32105,32106],"items":[{"id":null,"menu_item_id":383,"quantity":1}]} 
[2026-04-02 19:13:33] local.INFO: PosOrderController::update - Item changes check {"order_id":6737,"has_item_changes":true,"old_items_count":5,"new_items_count":1,"old_items_map_keys":["105|1|","396|2|","61|1|","29|1|","5|1|"],"new_items_map_keys":["383|1|"]} 
[2026-04-02 19:13:33] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6737,"order_number":"AZS-020426-023"} 
[2026-04-02 19:13:33] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-023","replaced_order_id":6737} 
[2026-04-02 19:13:33] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6750,"items_count":1,"items":[{"menu_item_id":383,"quantity":1,"price":"1999.00"}]} 
[2026-04-02 19:13:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6750,"item_index":0,"item_data":{"menu_item_id":383,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 04","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6750}} 
[2026-04-02 19:13:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6750,"item_index":0,"menu_item_id":383} 
[2026-04-02 19:13:33] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6737,"new_order_id":6750,"order_number":"AZS-020426-023"} 
[2026-04-02 19:14:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":6750,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":383,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":383,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 19:14:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6750,"items_count":1} 
[2026-04-02 19:14:18] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[32179],"items":[{"id":null,"menu_item_id":383,"quantity":1}]} 
[2026-04-02 19:14:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6750,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["383|1|"],"new_items_map_keys":["383|1|"]} 
[2026-04-02 19:14:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6750,"order_number":"AZS-020426-023"} 
[2026-04-02 19:14:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6750,"order_number":"AZS-020426-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-02 19:14:18"} 
[2026-04-02 19:23:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":6750,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":383,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":383,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 19:23:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6750,"items_count":1} 
[2026-04-02 19:23:41] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[32179],"items":[{"id":null,"menu_item_id":383,"quantity":1}]} 
[2026-04-02 19:23:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6750,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["383|1|"],"new_items_map_keys":["383|1|"]} 
[2026-04-02 19:23:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6750,"order_number":"AZS-020426-023"} 
[2026-04-02 19:23:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6750,"order_number":"AZS-020426-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-02 19:23:41"} 
[2026-04-02 19:53:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6709,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":397,"quantity":250,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":7,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":397,"quantity":250,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":7,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 19:53:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6709,"items_count":5} 
[2026-04-02 19:53:16] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[31944],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":397,"quantity":250},{"id":null,"menu_item_id":286,"quantity":7},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-04-02 19:53:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6709,"has_item_changes":true,"old_items_count":1,"new_items_count":5,"old_items_map_keys":["6|4|"],"new_items_map_keys":["105|1|","397|250|","286|7|","61|1|","56|1|"]} 
[2026-04-02 19:53:16] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6709,"order_number":"AZS-020426-013"} 
[2026-04-02 19:53:16] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-013","replaced_order_id":6709} 
[2026-04-02 19:53:16] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6751,"items_count":5,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":397,"quantity":250,"price":"4.00"},{"menu_item_id":286,"quantity":7,"price":"15.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"}]} 
[2026-04-02 19:53:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6751,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6751}} 
[2026-04-02 19:53:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6751,"item_index":0,"menu_item_id":105} 
[2026-04-02 19:53:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6751,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":250,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":1000.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6751}} 
[2026-04-02 19:53:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6751,"item_index":1,"menu_item_id":397} 
[2026-04-02 19:53:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6751,"item_index":2,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":7,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":105.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6751}} 
[2026-04-02 19:53:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6751,"item_index":2,"menu_item_id":286} 
[2026-04-02 19:53:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6751,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6751}} 
[2026-04-02 19:53:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6751,"item_index":3,"menu_item_id":61} 
[2026-04-02 19:53:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6751,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6751}} 
[2026-04-02 19:53:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6751,"item_index":4,"menu_item_id":56} 
[2026-04-02 19:53:16] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6709,"new_order_id":6751,"order_number":"AZS-020426-013"} 
[2026-04-02 19:53:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6751,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":397,"quantity":250,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":7,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":397,"quantity":250,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":7,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 19:53:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6751,"items_count":5} 
[2026-04-02 19:53:25] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[32180,32181,32182,32183,32184],"items":[{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":397,"quantity":250},{"id":null,"menu_item_id":286,"quantity":7},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-04-02 19:53:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6751,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","397|250|","286|7|","61|1|","56|1|"],"new_items_map_keys":["105|1|","397|250|","286|7|","61|1|","56|1|"]} 
[2026-04-02 19:53:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6751,"order_number":"AZS-020426-013"} 
[2026-04-02 19:53:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6751,"order_number":"AZS-020426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-02 19:53:25"} 
[2026-04-02 19:56:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6750,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":383,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":32179}],"validated_items":[{"id":32179,"menu_item_id":383,"quantity":1,"price":1999,"discount_percent":0,"notes":null}]} 
[2026-04-02 19:56:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6750,"items_count":1} 
[2026-04-02 19:56:28] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32179,"menu_item_id":383,"quantity":1}]} 
[2026-04-02 19:56:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6750,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["383|1|"],"new_items_map_keys":["383|1|"]} 
[2026-04-02 19:56:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6750,"order_number":"AZS-020426-023"} 
[2026-04-02 19:56:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6750,"order_number":"AZS-020426-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 19:56:28"} 
[2026-04-02 20:22:06] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6749,"order_number":"AZS-020426-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 20:22:06"} 
[2026-04-02 20:22:06] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6749,"order_number":"AZS-020426-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 20:22:06"} 
[2026-04-02 20:22:06] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6749,"order_number":"AZS-020426-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 20:22:06"} 
[2026-04-02 20:22:06] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6749,"order_number":"AZS-020426-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 20:22:06"} 
[2026-04-02 20:22:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":6749,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":108,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":32168},{"menu_item_id":29,"quantity":5,"price":250,"discount_percent":0,"notes":null,"id":32169},{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":32170},{"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null,"id":32171},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32172},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32173},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32174},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32175},{"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32176},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":32177},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":32178}],"validated_items":[{"id":32168,"menu_item_id":108,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":32169,"menu_item_id":29,"quantity":5,"price":250,"discount_percent":0,"notes":null},{"id":32170,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null},{"id":32171,"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null},{"id":32172,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32173,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32174,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32175,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":32176,"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32177,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":32178,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null}]} 
[2026-04-02 20:22:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6749,"items_count":11} 
[2026-04-02 20:22:06] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32168,"menu_item_id":108,"quantity":1},{"id":32169,"menu_item_id":29,"quantity":5},{"id":32170,"menu_item_id":13,"quantity":4},{"id":32171,"menu_item_id":9,"quantity":2},{"id":32172,"menu_item_id":61,"quantity":1},{"id":32173,"menu_item_id":56,"quantity":2},{"id":32174,"menu_item_id":5,"quantity":1},{"id":32175,"menu_item_id":3,"quantity":1},{"id":32176,"menu_item_id":51,"quantity":1},{"id":32177,"menu_item_id":396,"quantity":1},{"id":32178,"menu_item_id":63,"quantity":1}]} 
[2026-04-02 20:22:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6749,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["108|1|","29|5|","13|4|","9|2|","61|1|","56|2|","5|1|","3|1|","51|1|","396|1|","63|1|"],"new_items_map_keys":["108|1|","29|5|","13|4|","9|2|","61|1|","56|2|","5|1|","3|1|","51|1|","396|1|","63|1|"]} 
[2026-04-02 20:22:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6749,"order_number":"AZS-020426-004"} 
[2026-04-02 20:22:06] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6749,"order_number":"AZS-020426-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":10000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-02 20:22:06","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-02 20:22:06"} 
[2026-04-02 20:22:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6749,"order_number":"AZS-020426-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-02 20:22:07"} 
[2026-04-02 20:22:07] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6749,"order_number":"AZS-020426-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"10000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-02 20:22:06","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"10000.00","database_verification_match":true,"timestamp":"2026-04-02 20:22:07"} 
[2026-04-02 20:22:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T08:22:12.900Z","date_to":"2026-04-02T20:22:12.900Z","per_page":"100"} 
[2026-04-02 20:22:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T08:22:12.916Z","date_to":"2026-04-02T20:22:12.916Z","per_page":"100"} 
[2026-04-02 20:22:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-024","AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":3,"unique_order_numbers":24} 
[2026-04-02 20:22:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-024","AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":3,"unique_order_numbers":24} 
[2026-04-02 20:22:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T08:22:12.900Z","date_to":"2026-04-02T20:22:12.900Z","per_page":"100"} 
[2026-04-02 20:22:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-024","AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":3,"unique_order_numbers":24} 
[2026-04-02 20:22:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6748,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":32159},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":32160},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":32161},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":32162},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32163},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32164},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":32165},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":32166},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":32167}],"validated_items":[{"id":32159,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":32160,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":32161,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":32162,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":32163,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32164,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32165,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":32166,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"id":32167,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 20:22:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6748,"items_count":9} 
[2026-04-02 20:22:41] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32159,"menu_item_id":106,"quantity":1},{"id":32160,"menu_item_id":50,"quantity":2},{"id":32161,"menu_item_id":396,"quantity":3},{"id":32162,"menu_item_id":61,"quantity":2},{"id":32163,"menu_item_id":56,"quantity":1},{"id":32164,"menu_item_id":5,"quantity":1},{"id":32165,"menu_item_id":65,"quantity":1},{"id":32166,"menu_item_id":6,"quantity":2},{"id":32167,"menu_item_id":105,"quantity":1}]} 
[2026-04-02 20:22:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6748,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["106|1|","50|2|","396|3|","61|2|","56|1|","5|1|","65|1|","6|2|","105|1|"],"new_items_map_keys":["106|1|","50|2|","396|3|","61|2|","56|1|","5|1|","65|1|","6|2|","105|1|"]} 
[2026-04-02 20:22:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6748,"order_number":"AZS-020426-008"} 
[2026-04-02 20:22:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6748,"order_number":"AZS-020426-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-02 20:22:41"} 
[2026-04-02 20:22:54] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6748,"order_number":"AZS-020426-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 20:22:54"} 
[2026-04-02 20:22:54] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6748,"order_number":"AZS-020426-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 20:22:54"} 
[2026-04-02 20:22:54] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6748,"order_number":"AZS-020426-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 20:22:54"} 
[2026-04-02 20:22:54] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6748,"order_number":"AZS-020426-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 20:22:54"} 
[2026-04-02 20:22:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6748,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":32159},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32160},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32161},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32162},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32163},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32164},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":32165},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32166},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32167}],"validated_items":[{"id":32159,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":32160,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32161,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32162,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32163,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32164,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32165,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":32166,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32167,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null}]} 
[2026-04-02 20:22:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6748,"items_count":9} 
[2026-04-02 20:22:54] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32159,"menu_item_id":106,"quantity":1},{"id":32160,"menu_item_id":50,"quantity":2},{"id":32161,"menu_item_id":396,"quantity":3},{"id":32162,"menu_item_id":61,"quantity":2},{"id":32163,"menu_item_id":56,"quantity":1},{"id":32164,"menu_item_id":5,"quantity":1},{"id":32165,"menu_item_id":65,"quantity":1},{"id":32166,"menu_item_id":6,"quantity":2},{"id":32167,"menu_item_id":105,"quantity":1}]} 
[2026-04-02 20:22:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6748,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["106|1|","50|2|","396|3|","61|2|","56|1|","5|1|","65|1|","6|2|","105|1|"],"new_items_map_keys":["106|1|","50|2|","396|3|","61|2|","56|1|","5|1|","65|1|","6|2|","105|1|"]} 
[2026-04-02 20:22:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6748,"order_number":"AZS-020426-008"} 
[2026-04-02 20:22:54] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6748,"order_number":"AZS-020426-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":10000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-02 20:22:54","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-02 20:22:54"} 
[2026-04-02 20:22:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6748,"order_number":"AZS-020426-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-02 20:22:54"} 
[2026-04-02 20:22:54] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6748,"order_number":"AZS-020426-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"10000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-02 20:22:54","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"10000.00","database_verification_match":true,"timestamp":"2026-04-02 20:22:54"} 
[2026-04-02 20:23:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T08:22:58.644Z","date_to":"2026-04-02T20:22:58.644Z","per_page":"100"} 
[2026-04-02 20:23:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T08:22:58.658Z","date_to":"2026-04-02T20:22:58.658Z","per_page":"100"} 
[2026-04-02 20:23:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-024","AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":22,"unpaid_count":2,"unique_order_numbers":24} 
[2026-04-02 20:23:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-024","AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":22,"unpaid_count":2,"unique_order_numbers":24} 
[2026-04-02 20:23:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T08:22:58.644Z","date_to":"2026-04-02T20:22:58.644Z","per_page":"100"} 
[2026-04-02 20:23:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-024","AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":22,"unpaid_count":2,"unique_order_numbers":24} 
[2026-04-02 20:23:17] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6750,"order_number":"AZS-020426-023","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 20:23:17"} 
[2026-04-02 20:23:17] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6750,"order_number":"AZS-020426-023","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 20:23:17"} 
[2026-04-02 20:23:17] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6750,"order_number":"AZS-020426-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 20:23:17"} 
[2026-04-02 20:23:17] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6750,"order_number":"AZS-020426-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 20:23:17"} 
[2026-04-02 20:23:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6750,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":383,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":32179}],"validated_items":[{"id":32179,"menu_item_id":383,"quantity":1,"price":1999,"discount_percent":0,"notes":null}]} 
[2026-04-02 20:23:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6750,"items_count":1} 
[2026-04-02 20:23:17] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32179,"menu_item_id":383,"quantity":1}]} 
[2026-04-02 20:23:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6750,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["383|1|"],"new_items_map_keys":["383|1|"]} 
[2026-04-02 20:23:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6750,"order_number":"AZS-020426-023"} 
[2026-04-02 20:23:17] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6750,"order_number":"AZS-020426-023","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-02 20:23:17","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-02 20:23:17"} 
[2026-04-02 20:23:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6750,"order_number":"AZS-020426-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-02 20:23:17"} 
[2026-04-02 20:23:17] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6750,"order_number":"AZS-020426-023","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-02 20:23:17","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2100.00","database_verification_match":true,"timestamp":"2026-04-02 20:23:17"} 
[2026-04-02 20:23:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T08:23:27.045Z","date_to":"2026-04-02T20:23:27.045Z","per_page":"100"} 
[2026-04-02 20:23:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T08:23:27.058Z","date_to":"2026-04-02T20:23:27.058Z","per_page":"100"} 
[2026-04-02 20:23:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-024","AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":1,"unique_order_numbers":24} 
[2026-04-02 20:23:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-024","AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":1,"unique_order_numbers":24} 
[2026-04-02 20:23:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T08:23:27.045Z","date_to":"2026-04-02T20:23:27.045Z","per_page":"100"} 
[2026-04-02 20:23:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-024","AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":1,"unique_order_numbers":24} 
[2026-04-02 20:49:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6752,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":32185},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":32186},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":32187},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32188},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32189},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":32190},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":32185,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":32186,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"id":32187,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"id":32188,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32189,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32190,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-04-02 20:49:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6752,"items_count":7} 
[2026-04-02 20:49:02] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32185,"menu_item_id":96,"quantity":1},{"id":32186,"menu_item_id":137,"quantity":1},{"id":32187,"menu_item_id":403,"quantity":1},{"id":32188,"menu_item_id":61,"quantity":1},{"id":32189,"menu_item_id":56,"quantity":1},{"id":32190,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-04-02 20:49:02] local.INFO: PosOrderController::update - Item changes check {"order_id":6752,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["96|1|","137|1|","403|1|","61|1|","56|1|","396|2|"],"new_items_map_keys":["96|1|","137|1|","403|1|","61|1|","56|1|","396|2|","2|3|"]} 
[2026-04-02 20:49:02] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6752,"order_number":"AZS-020426-025"} 
[2026-04-02 20:49:02] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-025","replaced_order_id":6752} 
[2026-04-02 20:49:02] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6753,"items_count":7,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":137,"quantity":1,"price":"1299.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"}]} 
[2026-04-02 20:49:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6753,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6753}} 
[2026-04-02 20:49:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6753,"item_index":0,"menu_item_id":96} 
[2026-04-02 20:49:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6753,"item_index":1,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6753}} 
[2026-04-02 20:49:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6753,"item_index":1,"menu_item_id":137} 
[2026-04-02 20:49:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6753,"item_index":2,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6753}} 
[2026-04-02 20:49:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6753,"item_index":2,"menu_item_id":403} 
[2026-04-02 20:49:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6753,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6753}} 
[2026-04-02 20:49:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6753,"item_index":3,"menu_item_id":61} 
[2026-04-02 20:49:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6753,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6753}} 
[2026-04-02 20:49:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6753,"item_index":4,"menu_item_id":56} 
[2026-04-02 20:49:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6753,"item_index":5,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6753}} 
[2026-04-02 20:49:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6753,"item_index":5,"menu_item_id":396} 
[2026-04-02 20:49:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6753,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6753}} 
[2026-04-02 20:49:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6753,"item_index":6,"menu_item_id":2} 
[2026-04-02 20:49:02] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6752,"new_order_id":6753,"order_number":"AZS-020426-025"} 
[2026-04-02 20:49:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T08:49:25.693Z","date_to":"2026-04-02T20:49:25.693Z","per_page":"100"} 
[2026-04-02 20:49:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T08:49:25.672Z","date_to":"2026-04-02T20:49:25.672Z","per_page":"100"} 
[2026-04-02 20:49:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-025","AZS-020426-024","AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-04-02 20:49:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-025","AZS-020426-024","AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-04-02 20:49:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T08:49:25.672Z","date_to":"2026-04-02T20:49:25.672Z","per_page":"100"} 
[2026-04-02 20:49:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":25,"count":25,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-025","AZS-020426-024","AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":2,"unique_order_numbers":25} 
[2026-04-02 21:17:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6751,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32180},{"menu_item_id":397,"quantity":250,"price":4,"discount_percent":0,"notes":null,"id":32181},{"menu_item_id":286,"quantity":7,"price":15,"discount_percent":0,"notes":null,"id":32182},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32183},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32184}],"validated_items":[{"id":32180,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32181,"menu_item_id":397,"quantity":250,"price":4,"discount_percent":0,"notes":null},{"id":32182,"menu_item_id":286,"quantity":7,"price":15,"discount_percent":0,"notes":null},{"id":32183,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32184,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-02 21:17:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6751,"items_count":5} 
[2026-04-02 21:17:06] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32180,"menu_item_id":105,"quantity":1},{"id":32181,"menu_item_id":397,"quantity":250},{"id":32182,"menu_item_id":286,"quantity":7},{"id":32183,"menu_item_id":61,"quantity":1},{"id":32184,"menu_item_id":56,"quantity":1}]} 
[2026-04-02 21:17:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6751,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","397|250|","286|7|","61|1|","56|1|"],"new_items_map_keys":["105|1|","397|250|","286|7|","61|1|","56|1|"]} 
[2026-04-02 21:17:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6751,"order_number":"AZS-020426-013"} 
[2026-04-02 21:17:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6751,"order_number":"AZS-020426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 21:17:06"} 
[2026-04-02 21:17:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6751,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32180},{"menu_item_id":397,"quantity":250,"price":4,"discount_percent":0,"notes":null,"id":32181},{"menu_item_id":286,"quantity":7,"price":15,"discount_percent":0,"notes":null,"id":32182},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32183},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32184}],"validated_items":[{"id":32180,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32181,"menu_item_id":397,"quantity":250,"price":4,"discount_percent":0,"notes":null},{"id":32182,"menu_item_id":286,"quantity":7,"price":15,"discount_percent":0,"notes":null},{"id":32183,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32184,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-02 21:17:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6751,"items_count":5} 
[2026-04-02 21:17:16] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32180,"menu_item_id":105,"quantity":1},{"id":32181,"menu_item_id":397,"quantity":250},{"id":32182,"menu_item_id":286,"quantity":7},{"id":32183,"menu_item_id":61,"quantity":1},{"id":32184,"menu_item_id":56,"quantity":1}]} 
[2026-04-02 21:17:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6751,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","397|250|","286|7|","61|1|","56|1|"],"new_items_map_keys":["105|1|","397|250|","286|7|","61|1|","56|1|"]} 
[2026-04-02 21:17:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6751,"order_number":"AZS-020426-013"} 
[2026-04-02 21:17:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6751,"order_number":"AZS-020426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 21:17:16"} 
[2026-04-02 21:18:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6753,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32191},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":32192},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":32193},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32194},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32195},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32196},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":32197}],"validated_items":[{"id":32191,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32192,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":32193,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":32194,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32195,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32196,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32197,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-02 21:18:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6753,"items_count":7} 
[2026-04-02 21:18:38] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32191,"menu_item_id":96,"quantity":1},{"id":32192,"menu_item_id":137,"quantity":1},{"id":32193,"menu_item_id":403,"quantity":1},{"id":32194,"menu_item_id":61,"quantity":1},{"id":32195,"menu_item_id":56,"quantity":1},{"id":32196,"menu_item_id":396,"quantity":2},{"id":32197,"menu_item_id":2,"quantity":3}]} 
[2026-04-02 21:18:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6753,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["96|1|","137|1|","403|1|","61|1|","56|1|","396|2|","2|3|"],"new_items_map_keys":["96|1|","137|1|","403|1|","61|1|","56|1|","396|2|","2|3|"]} 
[2026-04-02 21:18:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6753,"order_number":"AZS-020426-025"} 
[2026-04-02 21:18:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6753,"order_number":"AZS-020426-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 21:18:38"} 
[2026-04-02 21:18:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6751,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32180},{"menu_item_id":397,"quantity":250,"price":4,"discount_percent":0,"notes":null,"id":32181},{"menu_item_id":286,"quantity":7,"price":15,"discount_percent":0,"notes":null,"id":32182},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32183},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32184}],"validated_items":[{"id":32180,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32181,"menu_item_id":397,"quantity":250,"price":4,"discount_percent":0,"notes":null},{"id":32182,"menu_item_id":286,"quantity":7,"price":15,"discount_percent":0,"notes":null},{"id":32183,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32184,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-02 21:18:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6751,"items_count":5} 
[2026-04-02 21:18:58] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32180,"menu_item_id":105,"quantity":1},{"id":32181,"menu_item_id":397,"quantity":250},{"id":32182,"menu_item_id":286,"quantity":7},{"id":32183,"menu_item_id":61,"quantity":1},{"id":32184,"menu_item_id":56,"quantity":1}]} 
[2026-04-02 21:18:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6751,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","397|250|","286|7|","61|1|","56|1|"],"new_items_map_keys":["105|1|","397|250|","286|7|","61|1|","56|1|"]} 
[2026-04-02 21:18:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6751,"order_number":"AZS-020426-013"} 
[2026-04-02 21:18:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6751,"order_number":"AZS-020426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 21:18:58"} 
[2026-04-02 21:28:33] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6751,"order_number":"AZS-020426-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3600,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 21:28:33"} 
[2026-04-02 21:28:33] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6751,"order_number":"AZS-020426-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3600,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 21:28:33"} 
[2026-04-02 21:28:33] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6751,"order_number":"AZS-020426-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 21:28:33"} 
[2026-04-02 21:28:33] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6751,"order_number":"AZS-020426-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3600,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 21:28:33"} 
[2026-04-02 21:28:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6751,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32180},{"menu_item_id":397,"quantity":250,"price":4,"discount_percent":0,"notes":null,"id":32181},{"menu_item_id":286,"quantity":7,"price":15,"discount_percent":0,"notes":null,"id":32182},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32183},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32184}],"validated_items":[{"id":32180,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32181,"menu_item_id":397,"quantity":250,"price":4,"discount_percent":0,"notes":null},{"id":32182,"menu_item_id":286,"quantity":7,"price":15,"discount_percent":0,"notes":null},{"id":32183,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32184,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-02 21:28:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6751,"items_count":5} 
[2026-04-02 21:28:33] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32180,"menu_item_id":105,"quantity":1},{"id":32181,"menu_item_id":397,"quantity":250},{"id":32182,"menu_item_id":286,"quantity":7},{"id":32183,"menu_item_id":61,"quantity":1},{"id":32184,"menu_item_id":56,"quantity":1}]} 
[2026-04-02 21:28:33] local.INFO: PosOrderController::update - Item changes check {"order_id":6751,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","397|250|","286|7|","61|1|","56|1|"],"new_items_map_keys":["105|1|","397|250|","286|7|","61|1|","56|1|"]} 
[2026-04-02 21:28:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6751,"order_number":"AZS-020426-013"} 
[2026-04-02 21:28:33] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6751,"order_number":"AZS-020426-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3600,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-02 21:28:33","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-02 21:28:33"} 
[2026-04-02 21:28:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6751,"order_number":"AZS-020426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-02 21:28:33"} 
[2026-04-02 21:28:33] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6751,"order_number":"AZS-020426-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3600.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-02 21:28:33","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3600,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3600.00","database_verification_match":true,"timestamp":"2026-04-02 21:28:33"} 
[2026-04-02 21:28:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6753,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32191},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":32192},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":32193},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32194},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32195},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32196},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":32197}],"validated_items":[{"id":32191,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32192,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":32193,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":32194,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32195,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32196,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32197,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-02 21:28:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6753,"items_count":7} 
[2026-04-02 21:28:48] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32191,"menu_item_id":96,"quantity":1},{"id":32192,"menu_item_id":137,"quantity":1},{"id":32193,"menu_item_id":403,"quantity":1},{"id":32194,"menu_item_id":61,"quantity":1},{"id":32195,"menu_item_id":56,"quantity":1},{"id":32196,"menu_item_id":396,"quantity":2},{"id":32197,"menu_item_id":2,"quantity":3}]} 
[2026-04-02 21:28:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6753,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["96|1|","137|1|","403|1|","61|1|","56|1|","396|2|","2|3|"],"new_items_map_keys":["96|1|","137|1|","403|1|","61|1|","56|1|","396|2|","2|3|"]} 
[2026-04-02 21:28:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6753,"order_number":"AZS-020426-025"} 
[2026-04-02 21:28:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6753,"order_number":"AZS-020426-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 21:28:48"} 
[2026-04-02 21:30:07] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6753,"order_number":"AZS-020426-025","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 21:30:07"} 
[2026-04-02 21:30:07] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6753,"order_number":"AZS-020426-025","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 21:30:07"} 
[2026-04-02 21:30:07] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6753,"order_number":"AZS-020426-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 21:30:07"} 
[2026-04-02 21:30:07] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6753,"order_number":"AZS-020426-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 21:30:07"} 
[2026-04-02 21:30:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":6753,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32191},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":32192},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":32193},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32194},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32196},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":32197}],"validated_items":[{"id":32191,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32192,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":32193,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":32194,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32196,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32197,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-02 21:30:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6753,"items_count":6} 
[2026-04-02 21:30:07] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[32195],"items":[{"id":32191,"menu_item_id":96,"quantity":1},{"id":32192,"menu_item_id":137,"quantity":1},{"id":32193,"menu_item_id":403,"quantity":1},{"id":32194,"menu_item_id":61,"quantity":1},{"id":32196,"menu_item_id":396,"quantity":2},{"id":32197,"menu_item_id":2,"quantity":3}]} 
[2026-04-02 21:30:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6753,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["96|1|","137|1|","403|1|","61|1|","56|1|","396|2|","2|3|"],"new_items_map_keys":["96|1|","137|1|","403|1|","61|1|","396|2|","2|3|"]} 
[2026-04-02 21:30:07] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6753,"order_number":"AZS-020426-025","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":4000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-02 21:30:07","original_payment_amount":"0.00","grand_total":3634.0,"timestamp":"2026-04-02 21:30:07"} 
[2026-04-02 21:30:07] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6753,"order_number":"AZS-020426-025"} 
[2026-04-02 21:30:07] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-025","replaced_order_id":6753} 
[2026-04-02 21:30:07] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6753,"new_order_id":6755,"order_number":"AZS-020426-025","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"4000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-02 21:30:07","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-02 21:30:07"} 
[2026-04-02 21:30:07] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6755,"items_count":6,"items":[{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":137,"quantity":1,"price":1299.0},{"menu_item_id":403,"quantity":1,"price":349.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":2,"quantity":3,"price":130.0}]} 
[2026-04-02 21:30:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6755,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6755}} 
[2026-04-02 21:30:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6755,"item_index":0,"menu_item_id":96} 
[2026-04-02 21:30:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6755,"item_index":1,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6755}} 
[2026-04-02 21:30:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6755,"item_index":1,"menu_item_id":137} 
[2026-04-02 21:30:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6755,"item_index":2,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":349.0,"discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6755}} 
[2026-04-02 21:30:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6755,"item_index":2,"menu_item_id":403} 
[2026-04-02 21:30:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6755,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6755}} 
[2026-04-02 21:30:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6755,"item_index":3,"menu_item_id":61} 
[2026-04-02 21:30:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6755,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6755}} 
[2026-04-02 21:30:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6755,"item_index":4,"menu_item_id":396} 
[2026-04-02 21:30:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6755,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6755}} 
[2026-04-02 21:30:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6755,"item_index":5,"menu_item_id":2} 
[2026-04-02 21:30:07] local.ERROR: Error tracking recipe usage for order 6755: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6755, 96, 77, 1, 1, 0.00, Order #AZS-020426-025 - 1x Chicken Karahi - Half, 2026-04-02 21:30:07, 2026-04-02 21:30:07))  
[2026-04-02 21:30:07] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6753,"new_order_id":6755,"order_number":"AZS-020426-025"} 
[2026-04-02 21:30:08] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6753,"new_order_id":6755,"order_number":"AZS-020426-025","route":"api/orders/6753"} 
[2026-04-02 21:33:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T09:33:49.349Z","date_to":"2026-04-02T21:33:49.349Z","per_page":"100"} 
[2026-04-02 21:33:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T09:33:49.366Z","date_to":"2026-04-02T21:33:49.366Z","per_page":"100"} 
[2026-04-02 21:33:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-026","AZS-020426-025","AZS-020426-024","AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":1,"unique_order_numbers":26} 
[2026-04-02 21:33:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-026","AZS-020426-025","AZS-020426-024","AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":1,"unique_order_numbers":26} 
[2026-04-02 21:33:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T09:33:49.349Z","date_to":"2026-04-02T21:33:49.349Z","per_page":"100"} 
[2026-04-02 21:33:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-026","AZS-020426-025","AZS-020426-024","AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":1,"unique_order_numbers":26} 
[2026-04-02 21:42:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6754,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":32198},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":32199},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":32200},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":32201},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32202}],"validated_items":[{"id":32198,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":32199,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":32200,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":32201,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":32202,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 21:42:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6754,"items_count":5} 
[2026-04-02 21:42:45] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32198,"menu_item_id":114,"quantity":1},{"id":32199,"menu_item_id":112,"quantity":1},{"id":32200,"menu_item_id":396,"quantity":5},{"id":32201,"menu_item_id":61,"quantity":3},{"id":32202,"menu_item_id":5,"quantity":1}]} 
[2026-04-02 21:42:45] local.INFO: PosOrderController::update - Item changes check {"order_id":6754,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|1|","112|1|","396|5|","61|1|","5|1|"],"new_items_map_keys":["114|1|","112|1|","396|5|","61|3|","5|1|"]} 
[2026-04-02 21:42:45] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6754,"order_number":"AZS-020426-026"} 
[2026-04-02 21:42:45] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-026","replaced_order_id":6754} 
[2026-04-02 21:42:45] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6756,"items_count":5,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-02 21:42:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6756,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6756}} 
[2026-04-02 21:42:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6756,"item_index":0,"menu_item_id":114} 
[2026-04-02 21:42:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6756,"item_index":1,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6756}} 
[2026-04-02 21:42:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6756,"item_index":1,"menu_item_id":112} 
[2026-04-02 21:42:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6756,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6756}} 
[2026-04-02 21:42:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6756,"item_index":2,"menu_item_id":396} 
[2026-04-02 21:42:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6756,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6756}} 
[2026-04-02 21:42:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6756,"item_index":3,"menu_item_id":61} 
[2026-04-02 21:42:45] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6756,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6756}} 
[2026-04-02 21:42:45] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6756,"item_index":4,"menu_item_id":5} 
[2026-04-02 21:42:45] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6754,"new_order_id":6756,"order_number":"AZS-020426-026"} 
[2026-04-02 21:43:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6756,"item_index":0,"item_id":32198} 
[2026-04-02 21:43:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6756,"item_index":1,"item_id":32199} 
[2026-04-02 21:43:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6756,"item_index":2,"item_id":32200} 
[2026-04-02 21:43:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6756,"item_index":3,"item_id":32201} 
[2026-04-02 21:43:41] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6756,"item_index":4,"item_id":32202} 
[2026-04-02 21:43:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":5,"order_id":6756,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":32198},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":32199},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":32200},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":32201},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32202},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 21:43:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6756,"items_count":6} 
[2026-04-02 21:43:41] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":5,"items_to_remove":[32209,32210,32211,32212,32213],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":112,"quantity":1},{"id":null,"menu_item_id":396,"quantity":5},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-02 21:43:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6756,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["114|1|","112|1|","396|5|","61|3|","5|1|"],"new_items_map_keys":["114|1|","112|1|","396|5|","61|2|","5|1|","3|1|"]} 
[2026-04-02 21:43:41] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6756,"order_number":"AZS-020426-026"} 
[2026-04-02 21:43:41] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-026","replaced_order_id":6756} 
[2026-04-02 21:43:41] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6757,"items_count":6,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-02 21:43:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6757,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6757}} 
[2026-04-02 21:43:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6757,"item_index":0,"menu_item_id":114} 
[2026-04-02 21:43:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6757,"item_index":1,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6757}} 
[2026-04-02 21:43:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6757,"item_index":1,"menu_item_id":112} 
[2026-04-02 21:43:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6757,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6757}} 
[2026-04-02 21:43:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6757,"item_index":2,"menu_item_id":396} 
[2026-04-02 21:43:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6757,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6757}} 
[2026-04-02 21:43:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6757,"item_index":3,"menu_item_id":61} 
[2026-04-02 21:43:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6757,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6757}} 
[2026-04-02 21:43:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6757,"item_index":4,"menu_item_id":5} 
[2026-04-02 21:43:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6757,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6757}} 
[2026-04-02 21:43:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6757,"item_index":5,"menu_item_id":3} 
[2026-04-02 21:43:41] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6756,"new_order_id":6757,"order_number":"AZS-020426-026"} 
[2026-04-02 21:44:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6757,"item_index":0,"item_id":32198} 
[2026-04-02 21:44:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6757,"item_index":1,"item_id":32199} 
[2026-04-02 21:44:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6757,"item_index":2,"item_id":32200} 
[2026-04-02 21:44:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6757,"item_index":3,"item_id":32201} 
[2026-04-02 21:44:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6757,"item_index":4,"item_id":32202} 
[2026-04-02 21:44:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6757,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":32198},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":32199},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":32200},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":32201},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32202},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-02 21:44:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6757,"items_count":6} 
[2026-04-02 21:44:17] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[32214,32215,32216,32217,32218,32219],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":112,"quantity":1},{"id":null,"menu_item_id":396,"quantity":5},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-02 21:44:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6757,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","112|1|","396|5|","61|2|","5|1|","3|1|"],"new_items_map_keys":["114|1|","112|1|","396|5|","61|3|","5|1|","3|1|"]} 
[2026-04-02 21:44:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6757,"order_number":"AZS-020426-026"} 
[2026-04-02 21:44:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-020426-026","replaced_order_id":6757} 
[2026-04-02 21:44:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6758,"items_count":6,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-02 21:44:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6758,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6758}} 
[2026-04-02 21:44:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6758,"item_index":0,"menu_item_id":114} 
[2026-04-02 21:44:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6758,"item_index":1,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6758}} 
[2026-04-02 21:44:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6758,"item_index":1,"menu_item_id":112} 
[2026-04-02 21:44:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6758,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6758}} 
[2026-04-02 21:44:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6758,"item_index":2,"menu_item_id":396} 
[2026-04-02 21:44:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6758,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6758}} 
[2026-04-02 21:44:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6758,"item_index":3,"menu_item_id":61} 
[2026-04-02 21:44:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6758,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6758}} 
[2026-04-02 21:44:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6758,"item_index":4,"menu_item_id":5} 
[2026-04-02 21:44:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6758,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6758}} 
[2026-04-02 21:44:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6758,"item_index":5,"menu_item_id":3} 
[2026-04-02 21:44:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6757,"new_order_id":6758,"order_number":"AZS-020426-026"} 
[2026-04-02 21:52:10] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6758,"item_index":0,"item_id":32198} 
[2026-04-02 21:52:10] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6758,"item_index":1,"item_id":32199} 
[2026-04-02 21:52:10] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6758,"item_index":2,"item_id":32200} 
[2026-04-02 21:52:10] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6758,"item_index":3,"item_id":32201} 
[2026-04-02 21:52:10] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6758,"item_index":4,"item_id":32202} 
[2026-04-02 21:52:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6758,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32198},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":32199},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":32200},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":32201},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32202},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-02 21:52:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6758,"items_count":6} 
[2026-04-02 21:52:10] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[32220,32221,32222,32223,32224,32225],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":112,"quantity":1},{"id":null,"menu_item_id":396,"quantity":5},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-02 21:52:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6758,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","112|1|","396|5|","61|3|","5|1|","3|1|"],"new_items_map_keys":["114|1|","112|1|","396|5|","61|3|","5|1|","3|1|"]} 
[2026-04-02 21:52:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6758,"order_number":"AZS-020426-026"} 
[2026-04-02 21:52:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6758,"order_number":"AZS-020426-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 21:52:10"} 
[2026-04-02 21:56:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T09:56:06.280Z","date_to":"2026-04-02T21:56:06.280Z","per_page":"100"} 
[2026-04-02 21:56:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T09:56:06.271Z","date_to":"2026-04-02T21:56:06.271Z","per_page":"100"} 
[2026-04-02 21:56:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-026","AZS-020426-025","AZS-020426-024","AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":1,"unique_order_numbers":26} 
[2026-04-02 21:56:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-026","AZS-020426-025","AZS-020426-024","AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":1,"unique_order_numbers":26} 
[2026-04-02 21:56:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T09:56:06.271Z","date_to":"2026-04-02T21:56:06.271Z","per_page":"100"} 
[2026-04-02 21:56:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-026","AZS-020426-025","AZS-020426-024","AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":1,"unique_order_numbers":26} 
[2026-04-02 21:57:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6758,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32220},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":32221},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":32222},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":32223},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32224},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32225}],"validated_items":[{"id":32220,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32221,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":32222,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":32223,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":32224,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32225,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-02 21:57:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6758,"items_count":6} 
[2026-04-02 21:57:25] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32220,"menu_item_id":114,"quantity":1},{"id":32221,"menu_item_id":112,"quantity":1},{"id":32222,"menu_item_id":396,"quantity":5},{"id":32223,"menu_item_id":61,"quantity":3},{"id":32224,"menu_item_id":5,"quantity":1},{"id":32225,"menu_item_id":3,"quantity":1}]} 
[2026-04-02 21:57:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6758,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","112|1|","396|5|","61|3|","5|1|","3|1|"],"new_items_map_keys":["114|1|","112|1|","396|5|","61|3|","5|1|","3|1|"]} 
[2026-04-02 21:57:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6758,"order_number":"AZS-020426-026"} 
[2026-04-02 21:57:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6758,"order_number":"AZS-020426-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-02 21:57:25"} 
[2026-04-02 21:58:25] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6758,"order_number":"AZS-020426-026","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 21:58:25"} 
[2026-04-02 21:58:25] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6758,"order_number":"AZS-020426-026","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-02 21:58:25"} 
[2026-04-02 21:58:25] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6758,"order_number":"AZS-020426-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 21:58:25"} 
[2026-04-02 21:58:25] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6758,"order_number":"AZS-020426-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-02 21:58:25"} 
[2026-04-02 21:58:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6758,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32220},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":32221},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":32222},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":32223},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32224},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32225}],"validated_items":[{"id":32220,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32221,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":32222,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":32223,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":32224,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32225,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-02 21:58:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6758,"items_count":6} 
[2026-04-02 21:58:25] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32220,"menu_item_id":114,"quantity":1},{"id":32221,"menu_item_id":112,"quantity":1},{"id":32222,"menu_item_id":396,"quantity":5},{"id":32223,"menu_item_id":61,"quantity":3},{"id":32224,"menu_item_id":5,"quantity":1},{"id":32225,"menu_item_id":3,"quantity":1}]} 
[2026-04-02 21:58:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6758,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","112|1|","396|5|","61|3|","5|1|","3|1|"],"new_items_map_keys":["114|1|","112|1|","396|5|","61|3|","5|1|","3|1|"]} 
[2026-04-02 21:58:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6758,"order_number":"AZS-020426-026"} 
[2026-04-02 21:58:25] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6758,"order_number":"AZS-020426-026","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":6000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-02 21:58:25","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-02 21:58:25"} 
[2026-04-02 21:58:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6758,"order_number":"AZS-020426-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-02 21:58:25"} 
[2026-04-02 21:58:25] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6758,"order_number":"AZS-020426-026","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"6000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-02 21:58:25","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"6000.00","database_verification_match":true,"timestamp":"2026-04-02 21:58:25"} 
[2026-04-02 21:58:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T09:58:28.816Z","date_to":"2026-04-02T21:58:28.816Z","per_page":"100"} 
[2026-04-02 21:58:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T09:58:28.834Z","date_to":"2026-04-02T21:58:28.834Z","per_page":"100"} 
[2026-04-02 21:58:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-026","AZS-020426-025","AZS-020426-024","AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":26,"unpaid_count":0,"unique_order_numbers":26} 
[2026-04-02 21:58:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-026","AZS-020426-025","AZS-020426-024","AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":26,"unpaid_count":0,"unique_order_numbers":26} 
[2026-04-02 21:58:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-02T09:58:28.816Z","date_to":"2026-04-02T21:58:28.816Z","per_page":"100"} 
[2026-04-02 21:58:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":26,"count":26,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-020426-026","AZS-020426-025","AZS-020426-024","AZS-020426-023","AZS-020426-022","AZS-020426-021","AZS-020426-020","AZS-020426-019","AZS-020426-018","AZS-020426-017","AZS-020426-016","AZS-020426-015","AZS-020426-014","AZS-020426-013","AZS-020426-012","AZS-020426-011","AZS-020426-010","AZS-020426-009","AZS-020426-008","AZS-020426-007","AZS-020426-006","AZS-020426-005","AZS-020426-004","AZS-020426-003","AZS-020426-002","AZS-020426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":26,"unpaid_count":0,"unique_order_numbers":26} 
[2026-04-03 13:34:05] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-04-03 13:41:23] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-04-03 13:58:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6760,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":32231},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":32232}],"validated_items":[{"id":32231,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":32232,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null}]} 
[2026-04-03 13:58:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6760,"items_count":2} 
[2026-04-03 13:58:29] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32231,"menu_item_id":6,"quantity":4},{"id":32232,"menu_item_id":403,"quantity":1}]} 
[2026-04-03 13:58:29] local.INFO: PosOrderController::update - Item changes check {"order_id":6760,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|4|","403|1|"],"new_items_map_keys":["6|4|","403|1|"]} 
[2026-04-03 13:58:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6760,"order_number":"AZS-030426-002"} 
[2026-04-03 13:58:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6760,"order_number":"AZS-030426-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 13:58:29"} 
[2026-04-03 13:59:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6760,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"discount_percent":0,"notes":null,"id":32231},{"menu_item_id":403,"quantity":2,"discount_percent":0,"notes":null,"id":32232}],"validated_items":[{"id":32231,"menu_item_id":6,"quantity":4,"discount_percent":0,"notes":null},{"id":32232,"menu_item_id":403,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-03 13:59:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6760,"items_count":2} 
[2026-04-03 13:59:46] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32231,"menu_item_id":6,"quantity":4},{"id":32232,"menu_item_id":403,"quantity":2}]} 
[2026-04-03 13:59:46] local.INFO: PosOrderController::update - Item changes check {"order_id":6760,"has_item_changes":true,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|4|","403|1|"],"new_items_map_keys":["6|4|","403|2|"]} 
[2026-04-03 13:59:46] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6760,"order_number":"AZS-030426-002"} 
[2026-04-03 13:59:46] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-002","replaced_order_id":6760} 
[2026-04-03 13:59:46] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6763,"items_count":2,"items":[{"menu_item_id":6,"quantity":4,"price":"199.00"},{"menu_item_id":403,"quantity":2,"price":"349.00"}]} 
[2026-04-03 13:59:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6763,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6763}} 
[2026-04-03 13:59:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6763,"item_index":0,"menu_item_id":6} 
[2026-04-03 13:59:46] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6763,"item_index":1,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":2,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":698.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6763}} 
[2026-04-03 13:59:46] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6763,"item_index":1,"menu_item_id":403} 
[2026-04-03 13:59:46] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6760,"new_order_id":6763,"order_number":"AZS-030426-002"} 
[2026-04-03 14:16:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6761,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":32233},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":32234},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null,"id":32235},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32233,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":32234,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":32235,"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-03 14:16:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6761,"items_count":4} 
[2026-04-03 14:16:48] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32233,"menu_item_id":64,"quantity":1},{"id":32234,"menu_item_id":396,"quantity":1},{"id":32235,"menu_item_id":13,"quantity":2},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-04-03 14:16:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6761,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["64|1|","396|1|","13|2|"],"new_items_map_keys":["64|1|","396|1|","13|2|","4|1|"]} 
[2026-04-03 14:16:48] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6761,"order_number":"AZS-030426-003"} 
[2026-04-03 14:16:48] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-003","replaced_order_id":6761} 
[2026-04-03 14:16:48] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6765,"items_count":4,"items":[{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-04-03 14:16:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6765,"item_index":0,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6765}} 
[2026-04-03 14:16:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6765,"item_index":0,"menu_item_id":64} 
[2026-04-03 14:16:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6765,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6765}} 
[2026-04-03 14:16:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6765,"item_index":1,"menu_item_id":396} 
[2026-04-03 14:16:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6765,"item_index":2,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6765}} 
[2026-04-03 14:16:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6765,"item_index":2,"menu_item_id":13} 
[2026-04-03 14:16:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6765,"item_index":3,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6765}} 
[2026-04-03 14:16:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6765,"item_index":3,"menu_item_id":4} 
[2026-04-03 14:16:48] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6761,"new_order_id":6765,"order_number":"AZS-030426-003"} 
[2026-04-03 14:17:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6762,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":164,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":32236},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32237},{"menu_item_id":7,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":32238}],"validated_items":[{"id":32236,"menu_item_id":164,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":32237,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32238,"menu_item_id":7,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-03 14:17:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6762,"items_count":3} 
[2026-04-03 14:17:09] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32236,"menu_item_id":164,"quantity":1},{"id":32237,"menu_item_id":6,"quantity":1},{"id":32238,"menu_item_id":7,"quantity":1}]} 
[2026-04-03 14:17:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6762,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["164|1|","6|1|","7|1|"],"new_items_map_keys":["164|1|","6|1|","7|1|"]} 
[2026-04-03 14:17:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6762,"order_number":"AZS-030426-004"} 
[2026-04-03 14:17:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6762,"order_number":"AZS-030426-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 14:17:09"} 
[2026-04-03 14:26:56] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6762,"order_number":"AZS-030426-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1152,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 14:26:56"} 
[2026-04-03 14:26:56] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6762,"order_number":"AZS-030426-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1152,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 14:26:56"} 
[2026-04-03 14:26:56] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6762,"order_number":"AZS-030426-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1152,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 14:26:56"} 
[2026-04-03 14:26:56] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6762,"order_number":"AZS-030426-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1152,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 14:26:56"} 
[2026-04-03 14:26:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6762,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":164,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":32236},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32237},{"menu_item_id":7,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":32238}],"validated_items":[{"id":32236,"menu_item_id":164,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":32237,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32238,"menu_item_id":7,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-03 14:26:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6762,"items_count":3} 
[2026-04-03 14:26:56] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32236,"menu_item_id":164,"quantity":1},{"id":32237,"menu_item_id":6,"quantity":1},{"id":32238,"menu_item_id":7,"quantity":1}]} 
[2026-04-03 14:26:56] local.INFO: PosOrderController::update - Item changes check {"order_id":6762,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["164|1|","6|1|","7|1|"],"new_items_map_keys":["164|1|","6|1|","7|1|"]} 
[2026-04-03 14:26:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6762,"order_number":"AZS-030426-004"} 
[2026-04-03 14:26:56] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6762,"order_number":"AZS-030426-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1152,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-03 14:26:56","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-03 14:26:56"} 
[2026-04-03 14:26:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6762,"order_number":"AZS-030426-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-03 14:26:56"} 
[2026-04-03 14:26:56] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6762,"order_number":"AZS-030426-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1152.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-03 14:26:56","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1152,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1152.00","database_verification_match":true,"timestamp":"2026-04-03 14:26:56"} 
[2026-04-03 14:29:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6763,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":32239},{"menu_item_id":403,"quantity":2,"price":349,"discount_percent":0,"notes":null,"id":32240}],"validated_items":[{"id":32239,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":32240,"menu_item_id":403,"quantity":2,"price":349,"discount_percent":0,"notes":null}]} 
[2026-04-03 14:29:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6763,"items_count":2} 
[2026-04-03 14:29:37] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32239,"menu_item_id":6,"quantity":4},{"id":32240,"menu_item_id":403,"quantity":2}]} 
[2026-04-03 14:29:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6763,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|4|","403|2|"],"new_items_map_keys":["6|4|","403|2|"]} 
[2026-04-03 14:29:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6763,"order_number":"AZS-030426-002"} 
[2026-04-03 14:29:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6763,"order_number":"AZS-030426-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 14:29:37"} 
[2026-04-03 14:33:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6765,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":32244},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":32245},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":32246},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":32247}],"validated_items":[{"id":32244,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":32245,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":32246,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":32247,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-04-03 14:33:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6765,"items_count":4} 
[2026-04-03 14:33:39] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32244,"menu_item_id":64,"quantity":1},{"id":32245,"menu_item_id":396,"quantity":1},{"id":32246,"menu_item_id":13,"quantity":2},{"id":32247,"menu_item_id":4,"quantity":1}]} 
[2026-04-03 14:33:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6765,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["64|1|","396|1|","13|2|","4|1|"],"new_items_map_keys":["64|1|","396|1|","13|2|","4|1|"]} 
[2026-04-03 14:33:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6765,"order_number":"AZS-030426-003"} 
[2026-04-03 14:33:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6765,"order_number":"AZS-030426-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 14:33:39"} 
[2026-04-03 14:38:45] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6763,"order_number":"AZS-030426-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1570,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 14:38:45"} 
[2026-04-03 14:38:45] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6763,"order_number":"AZS-030426-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1570,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 14:38:45"} 
[2026-04-03 14:38:45] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6763,"order_number":"AZS-030426-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1570,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 14:38:45"} 
[2026-04-03 14:38:45] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6763,"order_number":"AZS-030426-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1570,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 14:38:45"} 
[2026-04-03 14:38:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6763,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":32239},{"menu_item_id":403,"quantity":2,"price":349,"discount_percent":0,"notes":null,"id":32240}],"validated_items":[{"id":32239,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":32240,"menu_item_id":403,"quantity":2,"price":349,"discount_percent":0,"notes":null}]} 
[2026-04-03 14:38:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6763,"items_count":2} 
[2026-04-03 14:38:45] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32239,"menu_item_id":6,"quantity":4},{"id":32240,"menu_item_id":403,"quantity":2}]} 
[2026-04-03 14:38:45] local.INFO: PosOrderController::update - Item changes check {"order_id":6763,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["6|4|","403|2|"],"new_items_map_keys":["6|4|","403|2|"]} 
[2026-04-03 14:38:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6763,"order_number":"AZS-030426-002"} 
[2026-04-03 14:38:45] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6763,"order_number":"AZS-030426-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1570,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-03 14:38:45","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-03 14:38:45"} 
[2026-04-03 14:38:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6763,"order_number":"AZS-030426-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-03 14:38:45"} 
[2026-04-03 14:38:45] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6763,"order_number":"AZS-030426-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1570.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-03 14:38:45","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1570,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1570.00","database_verification_match":true,"timestamp":"2026-04-03 14:38:45"} 
[2026-04-03 14:43:01] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6765,"order_number":"AZS-030426-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1970,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 14:43:01"} 
[2026-04-03 14:43:01] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6765,"order_number":"AZS-030426-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1970,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 14:43:01"} 
[2026-04-03 14:43:01] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6765,"order_number":"AZS-030426-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1970,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 14:43:01"} 
[2026-04-03 14:43:01] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6765,"order_number":"AZS-030426-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1970,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 14:43:01"} 
[2026-04-03 14:43:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6765,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":32244},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":32245},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":32246},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":32247}],"validated_items":[{"id":32244,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":32245,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":32246,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":32247,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-04-03 14:43:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6765,"items_count":4} 
[2026-04-03 14:43:01] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32244,"menu_item_id":64,"quantity":1},{"id":32245,"menu_item_id":396,"quantity":1},{"id":32246,"menu_item_id":13,"quantity":2},{"id":32247,"menu_item_id":4,"quantity":1}]} 
[2026-04-03 14:43:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6765,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["64|1|","396|1|","13|2|","4|1|"],"new_items_map_keys":["64|1|","396|1|","13|2|","4|1|"]} 
[2026-04-03 14:43:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6765,"order_number":"AZS-030426-003"} 
[2026-04-03 14:43:01] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6765,"order_number":"AZS-030426-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1970,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-03 14:43:01","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-03 14:43:01"} 
[2026-04-03 14:43:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6765,"order_number":"AZS-030426-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-03 14:43:01"} 
[2026-04-03 14:43:01] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6765,"order_number":"AZS-030426-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1970.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-03 14:43:01","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1970,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1970.00","database_verification_match":true,"timestamp":"2026-04-03 14:43:01"} 
[2026-04-03 14:43:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T02:43:05.529Z","date_to":"2026-04-03T14:43:05.529Z","per_page":"100"} 
[2026-04-03 14:43:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["pending","paid","paid","paid","pending"],"deleted_count":0,"paid_count":3,"unpaid_count":2,"unique_order_numbers":5} 
[2026-04-03 14:43:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T02:43:05.552Z","date_to":"2026-04-03T14:43:05.552Z","per_page":"100"} 
[2026-04-03 14:43:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["pending","paid","paid","paid","pending"],"deleted_count":0,"paid_count":3,"unpaid_count":2,"unique_order_numbers":5} 
[2026-04-03 14:43:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T02:43:05.529Z","date_to":"2026-04-03T14:43:05.529Z","per_page":"100"} 
[2026-04-03 14:43:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["pending","paid","paid","paid","pending"],"deleted_count":0,"paid_count":3,"unpaid_count":2,"unique_order_numbers":5} 
[2026-04-03 15:05:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6759,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":32226},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null,"id":32227},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":32228},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32229},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32230},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":32226,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":32227,"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null},{"id":32228,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":32229,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32230,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-03 15:05:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6759,"items_count":7} 
[2026-04-03 15:05:15] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32226,"menu_item_id":96,"quantity":1},{"id":32227,"menu_item_id":51,"quantity":1},{"id":32228,"menu_item_id":396,"quantity":1},{"id":32229,"menu_item_id":61,"quantity":1},{"id":32230,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":4,"quantity":2}]} 
[2026-04-03 15:05:15] local.INFO: PosOrderController::update - Item changes check {"order_id":6759,"has_item_changes":true,"old_items_count":5,"new_items_count":7,"old_items_map_keys":["96|1|","51|1|","396|1|","61|1|","56|1|"],"new_items_map_keys":["96|1|","51|1|","396|1|","61|1|","56|1|","5|1|","4|2|"]} 
[2026-04-03 15:05:15] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6759,"order_number":"AZS-030426-001"} 
[2026-04-03 15:05:15] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-001","replaced_order_id":6759} 
[2026-04-03 15:05:15] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6766,"items_count":7,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":51,"quantity":1,"price":"199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":4,"quantity":2,"price":"90.00"}]} 
[2026-04-03 15:05:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6766,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6766}} 
[2026-04-03 15:05:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6766,"item_index":0,"menu_item_id":96} 
[2026-04-03 15:05:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6766,"item_index":1,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6766}} 
[2026-04-03 15:05:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6766,"item_index":1,"menu_item_id":51} 
[2026-04-03 15:05:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6766,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6766}} 
[2026-04-03 15:05:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6766,"item_index":2,"menu_item_id":396} 
[2026-04-03 15:05:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6766,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6766}} 
[2026-04-03 15:05:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6766,"item_index":3,"menu_item_id":61} 
[2026-04-03 15:05:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6766,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6766}} 
[2026-04-03 15:05:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6766,"item_index":4,"menu_item_id":56} 
[2026-04-03 15:05:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6766,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6766}} 
[2026-04-03 15:05:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6766,"item_index":5,"menu_item_id":5} 
[2026-04-03 15:05:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6766,"item_index":6,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":2,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":180.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6766}} 
[2026-04-03 15:05:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6766,"item_index":6,"menu_item_id":4} 
[2026-04-03 15:05:15] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6759,"new_order_id":6766,"order_number":"AZS-030426-001"} 
[2026-04-03 15:05:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6766,"item_index":0,"item_id":32226} 
[2026-04-03 15:05:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6766,"item_index":1,"item_id":32227} 
[2026-04-03 15:05:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6766,"item_index":2,"item_id":32228} 
[2026-04-03 15:05:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6766,"item_index":3,"item_id":32229} 
[2026-04-03 15:05:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6766,"item_index":4,"item_id":32230} 
[2026-04-03 15:05:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":7,"order_id":6766,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":32226},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null,"id":32227},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":32228},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32229},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32230},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-03 15:05:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6766,"items_count":8} 
[2026-04-03 15:05:26] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":7,"items_to_remove":[32248,32249,32250,32251,32252,32253,32254],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":51,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":4,"quantity":2},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-04-03 15:05:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6766,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["96|1|","51|1|","396|1|","61|1|","56|1|","5|1|","4|2|"],"new_items_map_keys":["96|1|","51|1|","396|1|","61|1|","56|1|","5|1|","4|2|","13|2|"]} 
[2026-04-03 15:05:26] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6766,"order_number":"AZS-030426-001"} 
[2026-04-03 15:05:26] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-001","replaced_order_id":6766} 
[2026-04-03 15:05:26] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6767,"items_count":8,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":51,"quantity":1,"price":"199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":4,"quantity":2,"price":"90.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"}]} 
[2026-04-03 15:05:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6767,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6767}} 
[2026-04-03 15:05:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6767,"item_index":0,"menu_item_id":96} 
[2026-04-03 15:05:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6767,"item_index":1,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6767}} 
[2026-04-03 15:05:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6767,"item_index":1,"menu_item_id":51} 
[2026-04-03 15:05:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6767,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6767}} 
[2026-04-03 15:05:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6767,"item_index":2,"menu_item_id":396} 
[2026-04-03 15:05:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6767,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6767}} 
[2026-04-03 15:05:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6767,"item_index":3,"menu_item_id":61} 
[2026-04-03 15:05:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6767,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6767}} 
[2026-04-03 15:05:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6767,"item_index":4,"menu_item_id":56} 
[2026-04-03 15:05:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6767,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6767}} 
[2026-04-03 15:05:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6767,"item_index":5,"menu_item_id":5} 
[2026-04-03 15:05:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6767,"item_index":6,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":2,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":180.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6767}} 
[2026-04-03 15:05:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6767,"item_index":6,"menu_item_id":4} 
[2026-04-03 15:05:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6767,"item_index":7,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6767}} 
[2026-04-03 15:05:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6767,"item_index":7,"menu_item_id":13} 
[2026-04-03 15:05:26] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6766,"new_order_id":6767,"order_number":"AZS-030426-001"} 
[2026-04-03 15:05:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6767,"item_index":0,"item_id":32226} 
[2026-04-03 15:05:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6767,"item_index":1,"item_id":32227} 
[2026-04-03 15:05:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6767,"item_index":2,"item_id":32228} 
[2026-04-03 15:05:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6767,"item_index":3,"item_id":32229} 
[2026-04-03 15:05:31] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6767,"item_index":4,"item_id":32230} 
[2026-04-03 15:05:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":8,"order_id":6767,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":32226},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null,"id":32227},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":32228},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32229},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32230},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-03 15:05:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6767,"items_count":8} 
[2026-04-03 15:05:31] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":8,"items_to_remove":[32255,32256,32257,32258,32259,32260,32261,32262],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":51,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":4,"quantity":2},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-04-03 15:05:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6767,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["96|1|","51|1|","396|1|","61|1|","56|1|","5|1|","4|2|","13|2|"],"new_items_map_keys":["96|1|","51|1|","396|1|","61|1|","56|1|","5|1|","4|2|","13|2|"]} 
[2026-04-03 15:05:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6767,"order_number":"AZS-030426-001"} 
[2026-04-03 15:05:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6767,"order_number":"AZS-030426-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-04-03 15:05:31"} 
[2026-04-03 15:07:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6764,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":32241},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":32242},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":32243}],"validated_items":[{"id":32241,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":32242,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":32243,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-03 15:07:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6764,"items_count":3} 
[2026-04-03 15:07:08] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32241,"menu_item_id":96,"quantity":1},{"id":32242,"menu_item_id":396,"quantity":2},{"id":32243,"menu_item_id":2,"quantity":1}]} 
[2026-04-03 15:07:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6764,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["96|1|","396|2|","2|1|"],"new_items_map_keys":["96|1|","396|2|","2|1|"]} 
[2026-04-03 15:07:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6764,"order_number":"AZS-030426-005"} 
[2026-04-03 15:07:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6764,"order_number":"AZS-030426-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-03 15:07:08"} 
[2026-04-03 15:13:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6768,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":32263},{"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":32263,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-03 15:13:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6768,"items_count":2} 
[2026-04-03 15:13:59] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32263,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":286,"quantity":2}]} 
[2026-04-03 15:13:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6768,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["96|1|"],"new_items_map_keys":["96|1|","286|2|"]} 
[2026-04-03 15:13:59] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6768,"order_number":"AZS-030426-006"} 
[2026-04-03 15:13:59] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-006","replaced_order_id":6768} 
[2026-04-03 15:13:59] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6769,"items_count":2,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":286,"quantity":2,"price":"15.00"}]} 
[2026-04-03 15:13:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6769,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6769}} 
[2026-04-03 15:13:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6769,"item_index":0,"menu_item_id":96} 
[2026-04-03 15:13:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6769,"item_index":1,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":2,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":30.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6769}} 
[2026-04-03 15:13:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6769,"item_index":1,"menu_item_id":286} 
[2026-04-03 15:13:59] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6768,"new_order_id":6769,"order_number":"AZS-030426-006"} 
[2026-04-03 15:14:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6769,"item_index":0,"item_id":32263} 
[2026-04-03 15:14:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":6769,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":32263},{"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-03 15:14:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6769,"items_count":2} 
[2026-04-03 15:14:05] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[32264,32265],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":286,"quantity":2}]} 
[2026-04-03 15:14:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6769,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["96|1|","286|2|"],"new_items_map_keys":["96|1|","286|2|"]} 
[2026-04-03 15:14:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6769,"order_number":"AZS-030426-006"} 
[2026-04-03 15:14:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6769,"order_number":"AZS-030426-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-04-03 15:14:05"} 
[2026-04-03 15:36:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6764,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32241},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32242},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":32243}],"validated_items":[{"id":32241,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32242,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32243,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-03 15:36:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6764,"items_count":3} 
[2026-04-03 15:36:44] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32241,"menu_item_id":96,"quantity":1},{"id":32242,"menu_item_id":396,"quantity":2},{"id":32243,"menu_item_id":2,"quantity":1}]} 
[2026-04-03 15:36:44] local.INFO: PosOrderController::update - Item changes check {"order_id":6764,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["96|1|","396|2|","2|1|"],"new_items_map_keys":["96|1|","396|2|","2|1|"]} 
[2026-04-03 15:36:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6764,"order_number":"AZS-030426-005"} 
[2026-04-03 15:36:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6764,"order_number":"AZS-030426-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 15:36:44"} 
[2026-04-03 15:42:32] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6764,"order_number":"AZS-030426-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1603,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 15:42:32"} 
[2026-04-03 15:42:32] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6764,"order_number":"AZS-030426-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1603,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 15:42:32"} 
[2026-04-03 15:42:32] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6764,"order_number":"AZS-030426-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1603,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 15:42:32"} 
[2026-04-03 15:42:32] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6764,"order_number":"AZS-030426-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1603,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 15:42:32"} 
[2026-04-03 15:42:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6764,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32241},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32242},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":32243}],"validated_items":[{"id":32241,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32242,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32243,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-03 15:42:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6764,"items_count":3} 
[2026-04-03 15:42:32] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32241,"menu_item_id":96,"quantity":1},{"id":32242,"menu_item_id":396,"quantity":2},{"id":32243,"menu_item_id":2,"quantity":1}]} 
[2026-04-03 15:42:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6764,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["96|1|","396|2|","2|1|"],"new_items_map_keys":["96|1|","396|2|","2|1|"]} 
[2026-04-03 15:42:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6764,"order_number":"AZS-030426-005"} 
[2026-04-03 15:42:32] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6764,"order_number":"AZS-030426-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1603,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-03 15:42:32","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-03 15:42:32"} 
[2026-04-03 15:42:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6764,"order_number":"AZS-030426-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-03 15:42:32"} 
[2026-04-03 15:42:32] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6764,"order_number":"AZS-030426-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1603.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-03 15:42:32","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1603,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1603.00","database_verification_match":true,"timestamp":"2026-04-03 15:42:32"} 
[2026-04-03 16:04:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T04:03:56.891Z","date_to":"2026-04-03T16:03:56.891Z","per_page":"100"} 
[2026-04-03 16:04:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T04:03:56.876Z","date_to":"2026-04-03T16:03:56.876Z","per_page":"100"} 
[2026-04-03 16:04:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":5,"unique_order_numbers":9} 
[2026-04-03 16:04:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":5,"unique_order_numbers":9} 
[2026-04-03 16:04:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T04:03:56.876Z","date_to":"2026-04-03T16:03:56.876Z","per_page":"100"} 
[2026-04-03 16:04:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":5,"unique_order_numbers":9} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6767,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":32255},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null,"id":32256},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":32257},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32258},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32259},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32260},{"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null,"id":32261},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null,"id":32262},{"menu_item_id":397,"quantity":600,"discount_percent":0,"notes":null}],"validated_items":[{"id":32255,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":32256,"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null},{"id":32257,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":32258,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32259,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32260,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32261,"menu_item_id":4,"quantity":2,"discount_percent":0,"notes":null},{"id":32262,"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":397,"quantity":600,"discount_percent":0,"notes":null}]} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6767,"items_count":9} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32255,"menu_item_id":96,"quantity":1},{"id":32256,"menu_item_id":51,"quantity":1},{"id":32257,"menu_item_id":396,"quantity":1},{"id":32258,"menu_item_id":61,"quantity":1},{"id":32259,"menu_item_id":56,"quantity":1},{"id":32260,"menu_item_id":5,"quantity":1},{"id":32261,"menu_item_id":4,"quantity":2},{"id":32262,"menu_item_id":13,"quantity":2},{"id":null,"menu_item_id":397,"quantity":600}]} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6767,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["96|1|","51|1|","396|1|","61|1|","56|1|","5|1|","4|2|","13|2|"],"new_items_map_keys":["96|1|","51|1|","396|1|","61|1|","56|1|","5|1|","4|2|","13|2|","397|600|"]} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6767,"order_number":"AZS-030426-001"} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-001","replaced_order_id":6767} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6774,"items_count":9,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":51,"quantity":1,"price":"199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":4,"quantity":2,"price":"90.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":397,"quantity":600,"price":"4.00"}]} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6774,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6774}} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6774,"item_index":0,"menu_item_id":96} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6774,"item_index":1,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6774}} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6774,"item_index":1,"menu_item_id":51} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6774,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6774}} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6774,"item_index":2,"menu_item_id":396} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6774,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6774}} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6774,"item_index":3,"menu_item_id":61} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6774,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6774}} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6774,"item_index":4,"menu_item_id":56} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6774,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6774}} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6774,"item_index":5,"menu_item_id":5} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6774,"item_index":6,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":2,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":180.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6774}} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6774,"item_index":6,"menu_item_id":4} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6774,"item_index":7,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6774}} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6774,"item_index":7,"menu_item_id":13} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6774,"item_index":8,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":600,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":2400.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6774}} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6774,"item_index":8,"menu_item_id":397} 
[2026-04-03 16:10:06] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6767,"new_order_id":6774,"order_number":"AZS-030426-001"} 
[2026-04-03 16:12:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6770,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":392,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":32266},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":32267}],"validated_items":[{"id":32266,"menu_item_id":392,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":32267,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-03 16:12:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6770,"items_count":2} 
[2026-04-03 16:12:15] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32266,"menu_item_id":392,"quantity":1},{"id":32267,"menu_item_id":2,"quantity":1}]} 
[2026-04-03 16:12:15] local.INFO: PosOrderController::update - Item changes check {"order_id":6770,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["392|1|","2|1|"],"new_items_map_keys":["392|1|","2|1|"]} 
[2026-04-03 16:12:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6770,"order_number":"AZS-030426-007"} 
[2026-04-03 16:12:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6770,"order_number":"AZS-030426-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 16:12:15"} 
[2026-04-03 16:13:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6770,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":392,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":32266},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":32267}],"validated_items":[{"id":32266,"menu_item_id":392,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":32267,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-03 16:13:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6770,"items_count":2} 
[2026-04-03 16:13:11] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32266,"menu_item_id":392,"quantity":1},{"id":32267,"menu_item_id":2,"quantity":1}]} 
[2026-04-03 16:13:11] local.INFO: PosOrderController::update - Item changes check {"order_id":6770,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["392|1|","2|1|"],"new_items_map_keys":["392|1|","2|1|"]} 
[2026-04-03 16:13:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6770,"order_number":"AZS-030426-007"} 
[2026-04-03 16:13:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6770,"order_number":"AZS-030426-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 16:13:11"} 
[2026-04-03 16:13:29] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6770,"order_number":"AZS-030426-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 16:13:29"} 
[2026-04-03 16:13:29] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6770,"order_number":"AZS-030426-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 16:13:29"} 
[2026-04-03 16:13:29] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6770,"order_number":"AZS-030426-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 16:13:29"} 
[2026-04-03 16:13:29] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6770,"order_number":"AZS-030426-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 16:13:29"} 
[2026-04-03 16:13:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6770,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":392,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":32266},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":32267}],"validated_items":[{"id":32266,"menu_item_id":392,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":32267,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-03 16:13:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6770,"items_count":2} 
[2026-04-03 16:13:29] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32266,"menu_item_id":392,"quantity":1},{"id":32267,"menu_item_id":2,"quantity":1}]} 
[2026-04-03 16:13:29] local.INFO: PosOrderController::update - Item changes check {"order_id":6770,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["392|1|","2|1|"],"new_items_map_keys":["392|1|","2|1|"]} 
[2026-04-03 16:13:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6770,"order_number":"AZS-030426-007"} 
[2026-04-03 16:13:29] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6770,"order_number":"AZS-030426-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-03 16:13:29","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-03 16:13:29"} 
[2026-04-03 16:13:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6770,"order_number":"AZS-030426-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-03 16:13:29"} 
[2026-04-03 16:13:29] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6770,"order_number":"AZS-030426-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-03 16:13:29","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1500.00","database_verification_match":true,"timestamp":"2026-04-03 16:13:29"} 
[2026-04-03 16:13:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T04:13:54.895Z","date_to":"2026-04-03T16:13:54.895Z","per_page":"100"} 
[2026-04-03 16:13:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T04:13:54.923Z","date_to":"2026-04-03T16:13:54.923Z","per_page":"100"} 
[2026-04-03 16:13:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["pending","pending","pending","paid","pending","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":5,"unpaid_count":5,"unique_order_numbers":10} 
[2026-04-03 16:13:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["pending","pending","pending","paid","pending","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":5,"unpaid_count":5,"unique_order_numbers":10} 
[2026-04-03 16:13:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T04:13:54.895Z","date_to":"2026-04-03T16:13:54.895Z","per_page":"100"} 
[2026-04-03 16:13:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["pending","pending","pending","paid","pending","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":5,"unpaid_count":5,"unique_order_numbers":10} 
[2026-04-03 16:18:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6771,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null,"id":32268},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":400,"quantity":100,"discount_percent":0,"notes":null}],"validated_items":[{"id":32268,"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":400,"quantity":100,"discount_percent":0,"notes":null}]} 
[2026-04-03 16:18:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6771,"items_count":3} 
[2026-04-03 16:18:47] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32268,"menu_item_id":386,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":400,"quantity":100}]} 
[2026-04-03 16:18:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6771,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|","3|1|","400|100|"]} 
[2026-04-03 16:18:47] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6771,"order_number":"AZS-030426-008"} 
[2026-04-03 16:18:47] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-008","replaced_order_id":6771} 
[2026-04-03 16:18:47] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6775,"items_count":3,"items":[{"menu_item_id":386,"quantity":1,"price":"2099.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":400,"quantity":100,"price":"1.00"}]} 
[2026-04-03 16:18:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6775,"item_index":0,"item_data":{"menu_item_id":386,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 01","quantity":1,"price":"2099.00","discount_percent":0.0,"discount_amount":0.0,"total":2099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6775}} 
[2026-04-03 16:18:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6775,"item_index":0,"menu_item_id":386} 
[2026-04-03 16:18:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6775,"item_index":1,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6775}} 
[2026-04-03 16:18:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6775,"item_index":1,"menu_item_id":3} 
[2026-04-03 16:18:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6775,"item_index":2,"item_data":{"menu_item_id":400,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL ITEMS","quantity":100,"price":"1.00","discount_percent":0.0,"discount_amount":0.0,"total":100.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6775}} 
[2026-04-03 16:18:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6775,"item_index":2,"menu_item_id":400} 
[2026-04-03 16:18:47] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6771,"new_order_id":6775,"order_number":"AZS-030426-008"} 
[2026-04-03 16:24:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6772,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32269},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32270},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":32271},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":32272}],"validated_items":[{"id":32269,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32270,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32271,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":32272,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-03 16:24:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6772,"items_count":4} 
[2026-04-03 16:24:20] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32269,"menu_item_id":61,"quantity":1},{"id":32270,"menu_item_id":56,"quantity":1},{"id":32271,"menu_item_id":50,"quantity":2},{"id":32272,"menu_item_id":105,"quantity":1}]} 
[2026-04-03 16:24:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6772,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["61|1|","56|1|","50|2|","105|1|"],"new_items_map_keys":["61|1|","56|1|","50|2|","105|1|"]} 
[2026-04-03 16:24:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6772,"order_number":"AZS-030426-009"} 
[2026-04-03 16:24:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6772,"order_number":"AZS-030426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-03 16:24:20"} 
[2026-04-03 16:45:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6772,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32269},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32270},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":32271},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":32272},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32269,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32270,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32271,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":32272,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-03 16:45:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6772,"items_count":5} 
[2026-04-03 16:45:33] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32269,"menu_item_id":61,"quantity":1},{"id":32270,"menu_item_id":56,"quantity":1},{"id":32271,"menu_item_id":50,"quantity":2},{"id":32272,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-03 16:45:33] local.INFO: PosOrderController::update - Item changes check {"order_id":6772,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["61|1|","56|1|","50|2|","105|1|"],"new_items_map_keys":["61|1|","56|1|","50|2|","105|1|","3|1|"]} 
[2026-04-03 16:45:33] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6772,"order_number":"AZS-030426-009"} 
[2026-04-03 16:45:33] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-009","replaced_order_id":6772} 
[2026-04-03 16:45:33] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6776,"items_count":5,"items":[{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-03 16:45:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6776,"item_index":0,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6776}} 
[2026-04-03 16:45:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6776,"item_index":0,"menu_item_id":61} 
[2026-04-03 16:45:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6776,"item_index":1,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6776}} 
[2026-04-03 16:45:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6776,"item_index":1,"menu_item_id":56} 
[2026-04-03 16:45:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6776,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6776}} 
[2026-04-03 16:45:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6776,"item_index":2,"menu_item_id":50} 
[2026-04-03 16:45:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6776,"item_index":3,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6776}} 
[2026-04-03 16:45:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6776,"item_index":3,"menu_item_id":105} 
[2026-04-03 16:45:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6776,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6776}} 
[2026-04-03 16:45:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6776,"item_index":4,"menu_item_id":3} 
[2026-04-03 16:45:33] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6772,"new_order_id":6776,"order_number":"AZS-030426-009"} 
[2026-04-03 16:56:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T04:56:51.454Z","date_to":"2026-04-03T16:56:51.454Z","per_page":"100"} 
[2026-04-03 16:56:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["pending","pending","pending","paid","pending","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":5,"unpaid_count":5,"unique_order_numbers":10} 
[2026-04-03 16:56:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T04:56:51.437Z","date_to":"2026-04-03T16:56:51.437Z","per_page":"100"} 
[2026-04-03 16:56:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["pending","pending","pending","paid","pending","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":5,"unpaid_count":5,"unique_order_numbers":10} 
[2026-04-03 16:56:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T04:56:51.437Z","date_to":"2026-04-03T16:56:51.437Z","per_page":"100"} 
[2026-04-03 16:56:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":10,"count":10,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["pending","pending","pending","paid","pending","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":5,"unpaid_count":5,"unique_order_numbers":10} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":1,"order_id":6774,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":32280},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null,"id":32281},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":32282},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":32283},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":32284},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32285},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null,"id":32287},{"menu_item_id":397,"quantity":600,"discount_percent":0,"notes":null,"id":32288},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32280,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":32281,"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"id":32282,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":32283,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":32284,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":32285,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32287,"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"id":32288,"menu_item_id":397,"quantity":600,"discount_percent":0,"notes":null},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6774,"items_count":9} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":1,"items_to_remove":[32286],"items":[{"id":32280,"menu_item_id":96,"quantity":1},{"id":32281,"menu_item_id":51,"quantity":2},{"id":32282,"menu_item_id":396,"quantity":2},{"id":32283,"menu_item_id":61,"quantity":2},{"id":32284,"menu_item_id":56,"quantity":2},{"id":32285,"menu_item_id":5,"quantity":1},{"id":32287,"menu_item_id":13,"quantity":2},{"id":32288,"menu_item_id":397,"quantity":600},{"id":null,"menu_item_id":97,"quantity":1}]} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6774,"has_item_changes":true,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["96|1|","51|1|","396|1|","61|1|","56|1|","5|1|","4|2|","13|2|","397|600|"],"new_items_map_keys":["96|1|","51|2|","396|2|","61|2|","56|2|","5|1|","13|2|","397|600|","97|1|"]} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6774,"order_number":"AZS-030426-001"} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-001","replaced_order_id":6774} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6777,"items_count":9,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":51,"quantity":2,"price":"199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":397,"quantity":600,"price":"4.00"},{"menu_item_id":97,"quantity":1,"price":"2299.00"}]} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6777,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6777}} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6777,"item_index":0,"menu_item_id":96} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6777,"item_index":1,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6777}} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6777,"item_index":1,"menu_item_id":51} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6777,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6777}} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6777,"item_index":2,"menu_item_id":396} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6777,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6777}} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6777,"item_index":3,"menu_item_id":61} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6777,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6777}} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6777,"item_index":4,"menu_item_id":56} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6777,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6777}} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6777,"item_index":5,"menu_item_id":5} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6777,"item_index":6,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6777}} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6777,"item_index":6,"menu_item_id":13} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6777,"item_index":7,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":600,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":2400.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6777}} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6777,"item_index":7,"menu_item_id":397} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6777,"item_index":8,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6777}} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6777,"item_index":8,"menu_item_id":97} 
[2026-04-03 16:58:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6774,"new_order_id":6777,"order_number":"AZS-030426-001"} 
[2026-04-03 16:59:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6777,"item_index":0,"item_id":32280} 
[2026-04-03 16:59:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6777,"item_index":1,"item_id":32281} 
[2026-04-03 16:59:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6777,"item_index":2,"item_id":32282} 
[2026-04-03 16:59:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6777,"item_index":3,"item_id":32283} 
[2026-04-03 16:59:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6777,"item_index":4,"item_id":32284} 
[2026-04-03 16:59:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6777,"item_index":5,"item_id":32285} 
[2026-04-03 16:59:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6777,"item_index":6,"item_id":32287} 
[2026-04-03 16:59:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6777,"item_index":7,"item_id":32288} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":9,"order_id":6777,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":32280},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null,"id":32281},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":32282},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":32283},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":32284},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32285},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null,"id":32287},{"menu_item_id":397,"quantity":600,"discount_percent":0,"notes":null,"id":32288},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":397,"quantity":600,"discount_percent":0,"notes":null},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6777,"items_count":10} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":9,"items_to_remove":[32297,32298,32299,32300,32301,32302,32303,32304,32305],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":51,"quantity":2},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":2},{"id":null,"menu_item_id":397,"quantity":600},{"id":null,"menu_item_id":97,"quantity":1},{"id":null,"menu_item_id":163,"quantity":2}]} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6777,"has_item_changes":true,"old_items_count":9,"new_items_count":10,"old_items_map_keys":["96|1|","51|2|","396|2|","61|2|","56|2|","5|1|","13|2|","397|600|","97|1|"],"new_items_map_keys":["96|1|","51|2|","396|2|","61|2|","56|2|","5|1|","13|2|","397|600|","97|1|","163|2|"]} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6777,"order_number":"AZS-030426-001"} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-001","replaced_order_id":6777} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6778,"items_count":10,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":51,"quantity":2,"price":"199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":397,"quantity":600,"price":"4.00"},{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":163,"quantity":2,"price":"1050.00"}]} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6778,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6778}} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6778,"item_index":0,"menu_item_id":96} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6778,"item_index":1,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6778}} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6778,"item_index":1,"menu_item_id":51} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6778,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6778}} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6778,"item_index":2,"menu_item_id":396} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6778,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6778}} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6778,"item_index":3,"menu_item_id":61} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6778,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6778}} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6778,"item_index":4,"menu_item_id":56} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6778,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6778}} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6778,"item_index":5,"menu_item_id":5} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6778,"item_index":6,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6778}} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6778,"item_index":6,"menu_item_id":13} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6778,"item_index":7,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":600,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":2400.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6778}} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6778,"item_index":7,"menu_item_id":397} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6778,"item_index":8,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6778}} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6778,"item_index":8,"menu_item_id":97} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6778,"item_index":9,"item_data":{"menu_item_id":163,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Azan Special Sandwich","quantity":2,"price":"1050.00","discount_percent":0.0,"discount_amount":0.0,"total":2100.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6778}} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6778,"item_index":9,"menu_item_id":163} 
[2026-04-03 16:59:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6777,"new_order_id":6778,"order_number":"AZS-030426-001"} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6773,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":32273},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":32274},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null,"id":32275},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":32276},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32277},{"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null,"id":32278},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":32279},{"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32273,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":32274,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":32275,"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"id":32276,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":32277,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32278,"menu_item_id":102,"quantity":1,"discount_percent":0,"notes":null},{"id":32279,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6773,"items_count":9} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32273,"menu_item_id":64,"quantity":1},{"id":32274,"menu_item_id":50,"quantity":2},{"id":32275,"menu_item_id":55,"quantity":2},{"id":32276,"menu_item_id":61,"quantity":3},{"id":32277,"menu_item_id":56,"quantity":1},{"id":32278,"menu_item_id":102,"quantity":1},{"id":32279,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":286,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Item changes check {"order_id":6773,"has_item_changes":true,"old_items_count":7,"new_items_count":9,"old_items_map_keys":["64|1|","50|2|","55|2|","61|3|","56|1|","102|1|","3|1|"],"new_items_map_keys":["64|1|","50|2|","55|2|","61|3|","56|1|","102|1|","3|1|","286|2|","5|1|"]} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6773,"order_number":"AZS-030426-010"} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-010","replaced_order_id":6773} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6779,"items_count":9,"items":[{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":102,"quantity":1,"price":"1399.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":286,"quantity":2,"price":"15.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6779,"item_index":0,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6779}} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6779,"item_index":0,"menu_item_id":64} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6779,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6779}} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6779,"item_index":1,"menu_item_id":50} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6779,"item_index":2,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6779}} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6779,"item_index":2,"menu_item_id":55} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6779,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6779}} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6779,"item_index":3,"menu_item_id":61} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6779,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6779}} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6779,"item_index":4,"menu_item_id":56} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6779,"item_index":5,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6779}} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6779,"item_index":5,"menu_item_id":102} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6779,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6779}} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6779,"item_index":6,"menu_item_id":3} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6779,"item_index":7,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":2,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":30.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6779}} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6779,"item_index":7,"menu_item_id":286} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6779,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6779}} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6779,"item_index":8,"menu_item_id":5} 
[2026-04-03 17:00:30] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6773,"new_order_id":6779,"order_number":"AZS-030426-010"} 
[2026-04-03 17:02:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6779,"item_index":0,"item_id":32273} 
[2026-04-03 17:02:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6779,"item_index":1,"item_id":32274} 
[2026-04-03 17:02:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6779,"item_index":2,"item_id":32275} 
[2026-04-03 17:02:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6779,"item_index":3,"item_id":32276} 
[2026-04-03 17:02:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6779,"item_index":4,"item_id":32277} 
[2026-04-03 17:02:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6779,"item_index":5,"item_id":32278} 
[2026-04-03 17:02:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6779,"item_index":6,"item_id":32279} 
[2026-04-03 17:02:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":9,"order_id":6779,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":32273},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32274},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":32275},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":32276},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32277},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":32278},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32279},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-03 17:02:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6779,"items_count":9} 
[2026-04-03 17:02:21] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":9,"items_to_remove":[32316,32317,32318,32319,32320,32321,32322,32323,32324],"items":[{"id":null,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":55,"quantity":2},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":102,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":286,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-03 17:02:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6779,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["64|1|","50|2|","55|2|","61|3|","56|1|","102|1|","3|1|","286|2|","5|1|"],"new_items_map_keys":["64|1|","50|2|","55|2|","61|3|","56|1|","102|1|","3|1|","286|2|","5|1|"]} 
[2026-04-03 17:02:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6779,"order_number":"AZS-030426-010"} 
[2026-04-03 17:02:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6779,"order_number":"AZS-030426-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 17:02:21"} 
[2026-04-03 17:04:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6776,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32292},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32293},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32294},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32295},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32296}],"validated_items":[{"id":32292,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32293,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32294,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32295,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32296,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-03 17:04:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6776,"items_count":5} 
[2026-04-03 17:04:06] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32292,"menu_item_id":61,"quantity":1},{"id":32293,"menu_item_id":56,"quantity":1},{"id":32294,"menu_item_id":50,"quantity":2},{"id":32295,"menu_item_id":105,"quantity":1},{"id":32296,"menu_item_id":3,"quantity":1}]} 
[2026-04-03 17:04:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6776,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["61|1|","56|1|","50|2|","105|1|","3|1|"],"new_items_map_keys":["61|1|","56|1|","50|2|","105|1|","3|1|"]} 
[2026-04-03 17:04:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6776,"order_number":"AZS-030426-009"} 
[2026-04-03 17:04:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6776,"order_number":"AZS-030426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 17:04:06"} 
[2026-04-03 17:14:40] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-04-03 17:15:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6776,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32292},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32293},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32294},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32295},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32296}],"validated_items":[{"id":32292,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32293,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32294,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32295,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32296,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-03 17:15:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6776,"items_count":5} 
[2026-04-03 17:15:23] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32292,"menu_item_id":61,"quantity":1},{"id":32293,"menu_item_id":56,"quantity":1},{"id":32294,"menu_item_id":50,"quantity":2},{"id":32295,"menu_item_id":105,"quantity":1},{"id":32296,"menu_item_id":3,"quantity":1}]} 
[2026-04-03 17:15:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6776,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["61|1|","56|1|","50|2|","105|1|","3|1|"],"new_items_map_keys":["61|1|","56|1|","50|2|","105|1|","3|1|"]} 
[2026-04-03 17:15:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6776,"order_number":"AZS-030426-009"} 
[2026-04-03 17:15:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6776,"order_number":"AZS-030426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 17:15:23"} 
[2026-04-03 17:15:54] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6776,"order_number":"AZS-030426-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 17:15:54"} 
[2026-04-03 17:15:54] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6776,"order_number":"AZS-030426-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 17:15:54"} 
[2026-04-03 17:15:54] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6776,"order_number":"AZS-030426-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 17:15:54"} 
[2026-04-03 17:15:54] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6776,"order_number":"AZS-030426-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 17:15:54"} 
[2026-04-03 17:15:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":2,"order_id":6776,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32294},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32295},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32296}],"validated_items":[{"id":32294,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32295,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32296,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-03 17:15:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6776,"items_count":3} 
[2026-04-03 17:15:54] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":2,"items_to_remove":[32292,32293],"items":[{"id":32294,"menu_item_id":50,"quantity":2},{"id":32295,"menu_item_id":105,"quantity":1},{"id":32296,"menu_item_id":3,"quantity":1}]} 
[2026-04-03 17:15:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6776,"has_item_changes":true,"old_items_count":5,"new_items_count":3,"old_items_map_keys":["61|1|","56|1|","50|2|","105|1|","3|1|"],"new_items_map_keys":["50|2|","105|1|","3|1|"]} 
[2026-04-03 17:15:54] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6776,"order_number":"AZS-030426-009","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-03 17:15:54","original_payment_amount":"0.00","grand_total":2727.0,"timestamp":"2026-04-03 17:15:54"} 
[2026-04-03 17:15:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6776,"order_number":"AZS-030426-009"} 
[2026-04-03 17:15:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-009","replaced_order_id":6776} 
[2026-04-03 17:15:54] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6776,"new_order_id":6781,"order_number":"AZS-030426-009","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-03 17:15:54","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-03 17:15:54"} 
[2026-04-03 17:15:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6781,"items_count":3,"items":[{"menu_item_id":50,"quantity":2,"price":129.0},{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-04-03 17:15:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6781,"item_index":0,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6781}} 
[2026-04-03 17:15:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6781,"item_index":0,"menu_item_id":50} 
[2026-04-03 17:15:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6781,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6781}} 
[2026-04-03 17:15:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6781,"item_index":1,"menu_item_id":105} 
[2026-04-03 17:15:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6781,"item_index":2,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6781}} 
[2026-04-03 17:15:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6781,"item_index":2,"menu_item_id":3} 
[2026-04-03 17:15:54] local.ERROR: Error tracking recipe usage for order 6781: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6781, 50, 102, 1, 20, 0.00, Order #AZS-030426-009 - 2x Roghni Naan, 2026-04-03 17:15:54, 2026-04-03 17:15:54))  
[2026-04-03 17:15:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6776,"new_order_id":6781,"order_number":"AZS-030426-009"} 
[2026-04-03 17:15:54] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6776,"new_order_id":6781,"order_number":"AZS-030426-009","route":"api/orders/6776"} 
[2026-04-03 17:17:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6779,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":32316},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32317},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":32318},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":32319},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32320},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":32321},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32322},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":32323},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32324}],"validated_items":[{"id":32316,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":32317,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32318,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":32319,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":32320,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32321,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":32322,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":32323,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"id":32324,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-03 17:17:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6779,"items_count":9} 
[2026-04-03 17:17:38] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32316,"menu_item_id":64,"quantity":1},{"id":32317,"menu_item_id":50,"quantity":2},{"id":32318,"menu_item_id":55,"quantity":2},{"id":32319,"menu_item_id":61,"quantity":3},{"id":32320,"menu_item_id":56,"quantity":1},{"id":32321,"menu_item_id":102,"quantity":1},{"id":32322,"menu_item_id":3,"quantity":1},{"id":32323,"menu_item_id":286,"quantity":2},{"id":32324,"menu_item_id":5,"quantity":1}]} 
[2026-04-03 17:17:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6779,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["64|1|","50|2|","55|2|","61|3|","56|1|","102|1|","3|1|","286|2|","5|1|"],"new_items_map_keys":["64|1|","50|2|","55|2|","61|3|","56|1|","102|1|","3|1|","286|2|","5|1|"]} 
[2026-04-03 17:17:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6779,"order_number":"AZS-030426-010"} 
[2026-04-03 17:17:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6779,"order_number":"AZS-030426-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 17:17:38"} 
[2026-04-03 17:19:14] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6779,"order_number":"AZS-030426-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 17:19:14"} 
[2026-04-03 17:19:14] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6779,"order_number":"AZS-030426-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 17:19:14"} 
[2026-04-03 17:19:14] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6779,"order_number":"AZS-030426-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 17:19:14"} 
[2026-04-03 17:19:14] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6779,"order_number":"AZS-030426-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 17:19:14"} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6779,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":32316},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32317},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":32318},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32319},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32320},{"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":32321},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32322},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":32323},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32324}],"validated_items":[{"id":32316,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":32317,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32318,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":32319,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32320,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32321,"menu_item_id":102,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":32322,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":32323,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"id":32324,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6779,"items_count":9} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32316,"menu_item_id":64,"quantity":1},{"id":32317,"menu_item_id":50,"quantity":2},{"id":32318,"menu_item_id":55,"quantity":2},{"id":32319,"menu_item_id":61,"quantity":1},{"id":32320,"menu_item_id":56,"quantity":1},{"id":32321,"menu_item_id":102,"quantity":1},{"id":32322,"menu_item_id":3,"quantity":1},{"id":32323,"menu_item_id":286,"quantity":2},{"id":32324,"menu_item_id":5,"quantity":1}]} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6779,"has_item_changes":true,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["64|1|","50|2|","55|2|","61|3|","56|1|","102|1|","3|1|","286|2|","5|1|"],"new_items_map_keys":["64|1|","50|2|","55|2|","61|1|","56|1|","102|1|","3|1|","286|2|","5|1|"]} 
[2026-04-03 17:19:14] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6779,"order_number":"AZS-030426-010","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-03 17:19:14","original_payment_amount":"0.00","grand_total":3842.0,"timestamp":"2026-04-03 17:19:14"} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6779,"order_number":"AZS-030426-010"} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-010","replaced_order_id":6779} 
[2026-04-03 17:19:14] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6779,"new_order_id":6782,"order_number":"AZS-030426-010","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-03 17:19:14","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-03 17:19:14"} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6782,"items_count":9,"items":[{"menu_item_id":64,"quantity":1,"price":999.0},{"menu_item_id":50,"quantity":2,"price":129.0},{"menu_item_id":55,"quantity":2,"price":159.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":102,"quantity":1,"price":1399.0},{"menu_item_id":3,"quantity":1,"price":270.0},{"menu_item_id":286,"quantity":2,"price":15.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6782,"item_index":0,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":999.0,"discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6782}} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6782,"item_index":0,"menu_item_id":64} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6782,"item_index":1,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6782}} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6782,"item_index":1,"menu_item_id":50} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6782,"item_index":2,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6782}} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6782,"item_index":2,"menu_item_id":55} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6782,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6782}} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6782,"item_index":3,"menu_item_id":61} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6782,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6782}} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6782,"item_index":4,"menu_item_id":56} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6782,"item_index":5,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":1,"price":1399.0,"discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6782}} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6782,"item_index":5,"menu_item_id":102} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6782,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6782}} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6782,"item_index":6,"menu_item_id":3} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6782,"item_index":7,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":2,"price":15.0,"discount_percent":0.0,"discount_amount":0.0,"total":30.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6782}} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6782,"item_index":7,"menu_item_id":286} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6782,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6782}} 
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6782,"item_index":8,"menu_item_id":5} 
[2026-04-03 17:19:14] local.ERROR: Error tracking recipe usage for order 6782: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6782, 50, 102, 1, 20, 0.00, Order #AZS-030426-010 - 2x Roghni Naan, 2026-04-03 17:19:14, 2026-04-03 17:19:14))  
[2026-04-03 17:19:14] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6779,"new_order_id":6782,"order_number":"AZS-030426-010"} 
[2026-04-03 17:19:14] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6779,"new_order_id":6782,"order_number":"AZS-030426-010","route":"api/orders/6779"} 
[2026-04-03 17:19:27] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-04-03 17:27:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6775,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":32289},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32290},{"menu_item_id":400,"quantity":100,"price":1,"discount_percent":0,"notes":null,"id":32291}],"validated_items":[{"id":32289,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null},{"id":32290,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":32291,"menu_item_id":400,"quantity":100,"price":1,"discount_percent":0,"notes":null}]} 
[2026-04-03 17:27:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6775,"items_count":3} 
[2026-04-03 17:27:27] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32289,"menu_item_id":386,"quantity":1},{"id":32290,"menu_item_id":3,"quantity":1},{"id":32291,"menu_item_id":400,"quantity":100}]} 
[2026-04-03 17:27:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6775,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["386|1|","3|1|","400|100|"],"new_items_map_keys":["386|1|","3|1|","400|100|"]} 
[2026-04-03 17:27:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6775,"order_number":"AZS-030426-008"} 
[2026-04-03 17:27:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6775,"order_number":"AZS-030426-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 17:27:27"} 
[2026-04-03 17:27:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6775,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":32289},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32290},{"menu_item_id":400,"quantity":100,"price":1,"discount_percent":0,"notes":null,"id":32291}],"validated_items":[{"id":32289,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null},{"id":32290,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":32291,"menu_item_id":400,"quantity":100,"price":1,"discount_percent":0,"notes":null}]} 
[2026-04-03 17:27:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6775,"items_count":3} 
[2026-04-03 17:27:44] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32289,"menu_item_id":386,"quantity":1},{"id":32290,"menu_item_id":3,"quantity":1},{"id":32291,"menu_item_id":400,"quantity":100}]} 
[2026-04-03 17:27:44] local.INFO: PosOrderController::update - Item changes check {"order_id":6775,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["386|1|","3|1|","400|100|"],"new_items_map_keys":["386|1|","3|1|","400|100|"]} 
[2026-04-03 17:27:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6775,"order_number":"AZS-030426-008"} 
[2026-04-03 17:27:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6775,"order_number":"AZS-030426-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 17:27:44"} 
[2026-04-03 17:27:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6775,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":32289},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32290},{"menu_item_id":400,"quantity":100,"price":1,"discount_percent":0,"notes":null,"id":32291}],"validated_items":[{"id":32289,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null},{"id":32290,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":32291,"menu_item_id":400,"quantity":100,"price":1,"discount_percent":0,"notes":null}]} 
[2026-04-03 17:27:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6775,"items_count":3} 
[2026-04-03 17:27:48] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32289,"menu_item_id":386,"quantity":1},{"id":32290,"menu_item_id":3,"quantity":1},{"id":32291,"menu_item_id":400,"quantity":100}]} 
[2026-04-03 17:27:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6775,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["386|1|","3|1|","400|100|"],"new_items_map_keys":["386|1|","3|1|","400|100|"]} 
[2026-04-03 17:27:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6775,"order_number":"AZS-030426-008"} 
[2026-04-03 17:27:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6775,"order_number":"AZS-030426-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 17:27:48"} 
[2026-04-03 17:36:35] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6783,"order_number":"AZS-030426-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 17:36:35"} 
[2026-04-03 17:36:35] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6783,"order_number":"AZS-030426-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 17:36:35"} 
[2026-04-03 17:36:35] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6783,"order_number":"AZS-030426-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 17:36:35"} 
[2026-04-03 17:36:35] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6783,"order_number":"AZS-030426-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 17:36:35"} 
[2026-04-03 17:36:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6783,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32338}],"validated_items":[{"id":32338,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-03 17:36:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6783,"items_count":1} 
[2026-04-03 17:36:35] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32338,"menu_item_id":6,"quantity":2}]} 
[2026-04-03 17:36:35] local.INFO: PosOrderController::update - Item changes check {"order_id":6783,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-04-03 17:36:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6783,"order_number":"AZS-030426-012"} 
[2026-04-03 17:36:35] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6783,"order_number":"AZS-030426-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-03 17:36:35","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-03 17:36:35"} 
[2026-04-03 17:36:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6783,"order_number":"AZS-030426-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-03 17:36:35"} 
[2026-04-03 17:36:35] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6783,"order_number":"AZS-030426-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-03 17:36:35","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-04-03 17:36:35"} 
[2026-04-03 17:36:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6780,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32325}],"validated_items":[{"id":32325,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-03 17:36:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6780,"items_count":1} 
[2026-04-03 17:36:56] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32325,"menu_item_id":6,"quantity":1}]} 
[2026-04-03 17:36:56] local.INFO: PosOrderController::update - Item changes check {"order_id":6780,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-04-03 17:36:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6780,"order_number":"AZS-030426-011"} 
[2026-04-03 17:36:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6780,"order_number":"AZS-030426-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 17:36:56"} 
[2026-04-03 17:37:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6775,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":32289},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32290},{"menu_item_id":400,"quantity":100,"price":1,"discount_percent":0,"notes":null,"id":32291}],"validated_items":[{"id":32289,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null},{"id":32290,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":32291,"menu_item_id":400,"quantity":100,"price":1,"discount_percent":0,"notes":null}]} 
[2026-04-03 17:37:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6775,"items_count":3} 
[2026-04-03 17:37:17] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32289,"menu_item_id":386,"quantity":1},{"id":32290,"menu_item_id":3,"quantity":1},{"id":32291,"menu_item_id":400,"quantity":100}]} 
[2026-04-03 17:37:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6775,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["386|1|","3|1|","400|100|"],"new_items_map_keys":["386|1|","3|1|","400|100|"]} 
[2026-04-03 17:37:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6775,"order_number":"AZS-030426-008"} 
[2026-04-03 17:37:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6775,"order_number":"AZS-030426-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 17:37:17"} 
[2026-04-03 17:39:14] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6775,"order_number":"AZS-030426-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 17:39:14"} 
[2026-04-03 17:39:14] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6775,"order_number":"AZS-030426-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 17:39:14"} 
[2026-04-03 17:39:14] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6775,"order_number":"AZS-030426-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 17:39:14"} 
[2026-04-03 17:39:14] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6775,"order_number":"AZS-030426-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 17:39:14"} 
[2026-04-03 17:39:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6775,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":32289},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32290},{"menu_item_id":400,"quantity":100,"price":1,"discount_percent":0,"notes":null,"id":32291}],"validated_items":[{"id":32289,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null},{"id":32290,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":32291,"menu_item_id":400,"quantity":100,"price":1,"discount_percent":0,"notes":null}]} 
[2026-04-03 17:39:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6775,"items_count":3} 
[2026-04-03 17:39:14] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32289,"menu_item_id":386,"quantity":1},{"id":32290,"menu_item_id":3,"quantity":1},{"id":32291,"menu_item_id":400,"quantity":100}]} 
[2026-04-03 17:39:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6775,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["386|1|","3|1|","400|100|"],"new_items_map_keys":["386|1|","3|1|","400|100|"]} 
[2026-04-03 17:39:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6775,"order_number":"AZS-030426-008"} 
[2026-04-03 17:39:14] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6775,"order_number":"AZS-030426-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-03 17:39:14","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-03 17:39:14"} 
[2026-04-03 17:39:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6775,"order_number":"AZS-030426-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-03 17:39:14"} 
[2026-04-03 17:39:14] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6775,"order_number":"AZS-030426-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-03 17:39:14","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-04-03 17:39:14"} 
[2026-04-03 17:39:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T05:39:18.532Z","date_to":"2026-04-03T17:39:18.532Z","per_page":"100"} 
[2026-04-03 17:39:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T05:39:18.510Z","date_to":"2026-04-03T17:39:18.510Z","per_page":"100"} 
[2026-04-03 17:39:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":9,"unpaid_count":3,"unique_order_numbers":12} 
[2026-04-03 17:39:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":9,"unpaid_count":3,"unique_order_numbers":12} 
[2026-04-03 17:39:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T05:39:18.510Z","date_to":"2026-04-03T17:39:18.510Z","per_page":"100"} 
[2026-04-03 17:39:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":9,"unpaid_count":3,"unique_order_numbers":12} 
[2026-04-03 17:39:38] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6780,"order_number":"AZS-030426-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 17:39:38"} 
[2026-04-03 17:39:38] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6780,"order_number":"AZS-030426-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 17:39:38"} 
[2026-04-03 17:39:38] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6780,"order_number":"AZS-030426-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 17:39:38"} 
[2026-04-03 17:39:38] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6780,"order_number":"AZS-030426-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 17:39:38"} 
[2026-04-03 17:39:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6780,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32325}],"validated_items":[{"id":32325,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-03 17:39:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6780,"items_count":1} 
[2026-04-03 17:39:38] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32325,"menu_item_id":6,"quantity":1}]} 
[2026-04-03 17:39:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6780,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-04-03 17:39:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6780,"order_number":"AZS-030426-011"} 
[2026-04-03 17:39:38] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6780,"order_number":"AZS-030426-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-03 17:39:38","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-03 17:39:38"} 
[2026-04-03 17:39:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6780,"order_number":"AZS-030426-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-03 17:39:38"} 
[2026-04-03 17:39:38] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6780,"order_number":"AZS-030426-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-03 17:39:38","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"200.00","database_verification_match":true,"timestamp":"2026-04-03 17:39:38"} 
[2026-04-03 17:41:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T05:41:18.933Z","date_to":"2026-04-03T17:41:18.933Z","per_page":"100"} 
[2026-04-03 17:41:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T05:41:18.920Z","date_to":"2026-04-03T17:41:18.920Z","per_page":"100"} 
[2026-04-03 17:41:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":10,"unpaid_count":2,"unique_order_numbers":12} 
[2026-04-03 17:41:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":10,"unpaid_count":2,"unique_order_numbers":12} 
[2026-04-03 17:41:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T05:41:18.920Z","date_to":"2026-04-03T17:41:18.920Z","per_page":"100"} 
[2026-04-03 17:41:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":10,"unpaid_count":2,"unique_order_numbers":12} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":6778,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":2,"discount_percent":0,"notes":null,"id":32306},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null,"id":32307},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":32308},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":32309},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":32310},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32311},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null,"id":32312},{"menu_item_id":397,"quantity":600,"discount_percent":0,"notes":null,"id":32313},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":32314},{"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null,"id":32315},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32306,"menu_item_id":96,"quantity":2,"discount_percent":0,"notes":null},{"id":32307,"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"id":32308,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":32309,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":32310,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":32311,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32312,"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"id":32313,"menu_item_id":397,"quantity":600,"discount_percent":0,"notes":null},{"id":32314,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":32315,"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6778,"items_count":11} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32306,"menu_item_id":96,"quantity":2},{"id":32307,"menu_item_id":51,"quantity":2},{"id":32308,"menu_item_id":396,"quantity":2},{"id":32309,"menu_item_id":61,"quantity":2},{"id":32310,"menu_item_id":56,"quantity":2},{"id":32311,"menu_item_id":5,"quantity":1},{"id":32312,"menu_item_id":13,"quantity":2},{"id":32313,"menu_item_id":397,"quantity":600},{"id":32314,"menu_item_id":97,"quantity":1},{"id":32315,"menu_item_id":163,"quantity":2},{"id":null,"menu_item_id":64,"quantity":1}]} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6778,"has_item_changes":true,"old_items_count":10,"new_items_count":11,"old_items_map_keys":["96|1|","51|2|","396|2|","61|2|","56|2|","5|1|","13|2|","397|600|","97|1|","163|2|"],"new_items_map_keys":["96|2|","51|2|","396|2|","61|2|","56|2|","5|1|","13|2|","397|600|","97|1|","163|2|","64|1|"]} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6778,"order_number":"AZS-030426-001"} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-001","replaced_order_id":6778} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6784,"items_count":11,"items":[{"menu_item_id":96,"quantity":2,"price":"1199.00"},{"menu_item_id":51,"quantity":2,"price":"199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":397,"quantity":600,"price":"4.00"},{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":163,"quantity":2,"price":"1050.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"}]} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6784,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6784}} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6784,"item_index":0,"menu_item_id":96} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6784,"item_index":1,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6784}} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6784,"item_index":1,"menu_item_id":51} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6784,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6784}} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6784,"item_index":2,"menu_item_id":396} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6784,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6784}} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6784,"item_index":3,"menu_item_id":61} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6784,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6784}} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6784,"item_index":4,"menu_item_id":56} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6784,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6784}} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6784,"item_index":5,"menu_item_id":5} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6784,"item_index":6,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6784}} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6784,"item_index":6,"menu_item_id":13} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6784,"item_index":7,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":600,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":2400.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6784}} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6784,"item_index":7,"menu_item_id":397} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6784,"item_index":8,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6784}} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6784,"item_index":8,"menu_item_id":97} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6784,"item_index":9,"item_data":{"menu_item_id":163,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Azan Special Sandwich","quantity":2,"price":"1050.00","discount_percent":0.0,"discount_amount":0.0,"total":2100.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6784}} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6784,"item_index":9,"menu_item_id":163} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6784,"item_index":10,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6784}} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6784,"item_index":10,"menu_item_id":64} 
[2026-04-03 17:50:06] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6778,"new_order_id":6784,"order_number":"AZS-030426-001"} 
[2026-04-03 17:58:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T05:58:59.012Z","date_to":"2026-04-03T17:58:59.012Z","per_page":"100"} 
[2026-04-03 17:58:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T05:58:58.997Z","date_to":"2026-04-03T17:58:58.997Z","per_page":"100"} 
[2026-04-03 17:58:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":10,"unpaid_count":2,"unique_order_numbers":12} 
[2026-04-03 17:58:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":10,"unpaid_count":2,"unique_order_numbers":12} 
[2026-04-03 17:59:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T05:58:58.997Z","date_to":"2026-04-03T17:58:58.997Z","per_page":"100"} 
[2026-04-03 17:59:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":12,"count":12,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":10,"unpaid_count":2,"unique_order_numbers":12} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":6784,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":2,"discount_percent":0,"notes":null,"id":32339},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null,"id":32340},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":32341},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":32342},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":32343},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32344},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null,"id":32345},{"menu_item_id":397,"quantity":600,"discount_percent":0,"notes":null,"id":32346},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":32347},{"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null,"id":32348},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":32349},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32339,"menu_item_id":96,"quantity":2,"discount_percent":0,"notes":null},{"id":32340,"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"id":32341,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":32342,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":32343,"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"id":32344,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32345,"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"id":32346,"menu_item_id":397,"quantity":600,"discount_percent":0,"notes":null},{"id":32347,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":32348,"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null},{"id":32349,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6784,"items_count":12} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32339,"menu_item_id":96,"quantity":2},{"id":32340,"menu_item_id":51,"quantity":2},{"id":32341,"menu_item_id":396,"quantity":2},{"id":32342,"menu_item_id":61,"quantity":3},{"id":32343,"menu_item_id":56,"quantity":3},{"id":32344,"menu_item_id":5,"quantity":1},{"id":32345,"menu_item_id":13,"quantity":2},{"id":32346,"menu_item_id":397,"quantity":600},{"id":32347,"menu_item_id":97,"quantity":1},{"id":32348,"menu_item_id":163,"quantity":2},{"id":32349,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6784,"has_item_changes":true,"old_items_count":11,"new_items_count":12,"old_items_map_keys":["96|2|","51|2|","396|2|","61|2|","56|2|","5|1|","13|2|","397|600|","97|1|","163|2|","64|1|"],"new_items_map_keys":["96|2|","51|2|","396|2|","61|3|","56|3|","5|1|","13|2|","397|600|","97|1|","163|2|","64|1|","3|1|"]} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6784,"order_number":"AZS-030426-001"} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-001","replaced_order_id":6784} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6786,"items_count":12,"items":[{"menu_item_id":96,"quantity":2,"price":"1199.00"},{"menu_item_id":51,"quantity":2,"price":"199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":3,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":397,"quantity":600,"price":"4.00"},{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":163,"quantity":2,"price":"1050.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6786,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6786}} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6786,"item_index":0,"menu_item_id":96} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6786,"item_index":1,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6786}} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6786,"item_index":1,"menu_item_id":51} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6786,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6786}} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6786,"item_index":2,"menu_item_id":396} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6786,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6786}} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6786,"item_index":3,"menu_item_id":61} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6786,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6786}} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6786,"item_index":4,"menu_item_id":56} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6786,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6786}} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6786,"item_index":5,"menu_item_id":5} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6786,"item_index":6,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6786}} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6786,"item_index":6,"menu_item_id":13} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6786,"item_index":7,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":600,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":2400.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6786}} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6786,"item_index":7,"menu_item_id":397} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6786,"item_index":8,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6786}} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6786,"item_index":8,"menu_item_id":97} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6786,"item_index":9,"item_data":{"menu_item_id":163,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Azan Special Sandwich","quantity":2,"price":"1050.00","discount_percent":0.0,"discount_amount":0.0,"total":2100.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6786}} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6786,"item_index":9,"menu_item_id":163} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6786,"item_index":10,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6786}} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6786,"item_index":10,"menu_item_id":64} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6786,"item_index":11,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6786}} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6786,"item_index":11,"menu_item_id":3} 
[2026-04-03 18:00:51] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6784,"new_order_id":6786,"order_number":"AZS-030426-001"} 
[2026-04-03 18:07:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6786,"item_index":0,"item_id":32339} 
[2026-04-03 18:07:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6786,"item_index":1,"item_id":32340} 
[2026-04-03 18:07:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6786,"item_index":2,"item_id":32341} 
[2026-04-03 18:07:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6786,"item_index":3,"item_id":32342} 
[2026-04-03 18:07:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6786,"item_index":4,"item_id":32343} 
[2026-04-03 18:07:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6786,"item_index":5,"item_id":32344} 
[2026-04-03 18:07:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6786,"item_index":6,"item_id":32345} 
[2026-04-03 18:07:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6786,"item_index":7,"item_id":32346} 
[2026-04-03 18:07:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6786,"item_index":8,"item_id":32347} 
[2026-04-03 18:07:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6786,"item_index":9,"item_id":32348} 
[2026-04-03 18:07:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6786,"item_index":10,"item_id":32349} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":12,"order_id":6786,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":2,"discount_percent":0,"notes":null,"id":32339},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null,"id":32340},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":32341},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":32342},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":32343},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32344},{"menu_item_id":13,"quantity":11,"discount_percent":0,"notes":null,"id":32345},{"menu_item_id":397,"quantity":600,"discount_percent":0,"notes":null,"id":32346},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":32347},{"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null,"id":32348},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":32349},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":11,"discount_percent":0,"notes":null},{"menu_item_id":397,"quantity":600,"discount_percent":0,"notes":null},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6786,"items_count":12} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":12,"items_to_remove":[32353,32354,32355,32356,32357,32358,32359,32360,32361,32362,32363,32364],"items":[{"id":null,"menu_item_id":96,"quantity":2},{"id":null,"menu_item_id":51,"quantity":2},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":11},{"id":null,"menu_item_id":397,"quantity":600},{"id":null,"menu_item_id":97,"quantity":1},{"id":null,"menu_item_id":163,"quantity":2},{"id":null,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6786,"has_item_changes":true,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["96|2|","51|2|","396|2|","61|3|","56|3|","5|1|","13|2|","397|600|","97|1|","163|2|","64|1|","3|1|"],"new_items_map_keys":["96|2|","51|2|","396|2|","61|3|","56|3|","5|1|","13|11|","397|600|","97|1|","163|2|","64|1|","3|1|"]} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6786,"order_number":"AZS-030426-001"} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-001","replaced_order_id":6786} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6787,"items_count":12,"items":[{"menu_item_id":96,"quantity":2,"price":"1199.00"},{"menu_item_id":51,"quantity":2,"price":"199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":3,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":11,"price":"249.00"},{"menu_item_id":397,"quantity":600,"price":"4.00"},{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":163,"quantity":2,"price":"1050.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6787,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6787}} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6787,"item_index":0,"menu_item_id":96} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6787,"item_index":1,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6787}} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6787,"item_index":1,"menu_item_id":51} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6787,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6787}} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6787,"item_index":2,"menu_item_id":396} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6787,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6787}} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6787,"item_index":3,"menu_item_id":61} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6787,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6787}} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6787,"item_index":4,"menu_item_id":56} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6787,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6787}} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6787,"item_index":5,"menu_item_id":5} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6787,"item_index":6,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":11,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":2739.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6787}} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6787,"item_index":6,"menu_item_id":13} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6787,"item_index":7,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":600,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":2400.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6787}} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6787,"item_index":7,"menu_item_id":397} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6787,"item_index":8,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6787}} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6787,"item_index":8,"menu_item_id":97} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6787,"item_index":9,"item_data":{"menu_item_id":163,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Azan Special Sandwich","quantity":2,"price":"1050.00","discount_percent":0.0,"discount_amount":0.0,"total":2100.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6787}} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6787,"item_index":9,"menu_item_id":163} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6787,"item_index":10,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6787}} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6787,"item_index":10,"menu_item_id":64} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6787,"item_index":11,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6787}} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6787,"item_index":11,"menu_item_id":3} 
[2026-04-03 18:07:05] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6786,"new_order_id":6787,"order_number":"AZS-030426-001"} 
[2026-04-03 18:09:55] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6769,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":32264},{"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null,"id":32265}],"validated_items":[{"id":32264,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":32265,"menu_item_id":286,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-03 18:09:55] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6769,"items_count":2} 
[2026-04-03 18:09:55] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32264,"menu_item_id":96,"quantity":1},{"id":32265,"menu_item_id":286,"quantity":2}]} 
[2026-04-03 18:09:55] local.INFO: PosOrderController::update - Item changes check {"order_id":6769,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["96|1|","286|2|"],"new_items_map_keys":["96|1|","286|2|"]} 
[2026-04-03 18:09:55] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6769,"order_number":"AZS-030426-006"} 
[2026-04-03 18:09:55] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6769,"order_number":"AZS-030426-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-04-03 18:09:55"} 
[2026-04-03 18:10:08] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6769,"order_number":"AZS-030426-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1229,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 18:10:08"} 
[2026-04-03 18:10:08] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6769,"order_number":"AZS-030426-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1229,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 18:10:08"} 
[2026-04-03 18:10:08] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6769,"order_number":"AZS-030426-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1229,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 18:10:08"} 
[2026-04-03 18:10:08] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6769,"order_number":"AZS-030426-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1229,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 18:10:08"} 
[2026-04-03 18:10:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6769,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32264},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":32265}],"validated_items":[{"id":32264,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32265,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null}]} 
[2026-04-03 18:10:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6769,"items_count":2} 
[2026-04-03 18:10:08] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32264,"menu_item_id":96,"quantity":1},{"id":32265,"menu_item_id":286,"quantity":2}]} 
[2026-04-03 18:10:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6769,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["96|1|","286|2|"],"new_items_map_keys":["96|1|","286|2|"]} 
[2026-04-03 18:10:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6769,"order_number":"AZS-030426-006"} 
[2026-04-03 18:10:08] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6769,"order_number":"AZS-030426-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1229,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-03 18:10:08","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-03 18:10:08"} 
[2026-04-03 18:10:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6769,"order_number":"AZS-030426-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-03 18:10:08"} 
[2026-04-03 18:10:08] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6769,"order_number":"AZS-030426-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1229.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-03 18:10:08","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1229,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1229.00","database_verification_match":true,"timestamp":"2026-04-03 18:10:08"} 
[2026-04-03 18:26:30] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-04-03 18:57:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6785,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null,"id":32350},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32351},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":32352},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":32350,"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null},{"id":32351,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32352,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-03 18:57:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6785,"items_count":4} 
[2026-04-03 18:57:59] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32350,"menu_item_id":87,"quantity":1},{"id":32351,"menu_item_id":61,"quantity":1},{"id":32352,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-04-03 18:57:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6785,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["87|1|","61|1|","396|2|"],"new_items_map_keys":["87|1|","61|1|","396|2|","13|2|"]} 
[2026-04-03 18:57:59] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6785,"order_number":"AZS-030426-013"} 
[2026-04-03 18:57:59] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-013","replaced_order_id":6785} 
[2026-04-03 18:57:59] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6792,"items_count":4,"items":[{"menu_item_id":87,"quantity":1,"price":"1999.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"}]} 
[2026-04-03 18:57:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6792,"item_index":0,"item_data":{"menu_item_id":87,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6792}} 
[2026-04-03 18:57:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6792,"item_index":0,"menu_item_id":87} 
[2026-04-03 18:57:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6792,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6792}} 
[2026-04-03 18:57:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6792,"item_index":1,"menu_item_id":61} 
[2026-04-03 18:57:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6792,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6792}} 
[2026-04-03 18:57:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6792,"item_index":2,"menu_item_id":396} 
[2026-04-03 18:57:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6792,"item_index":3,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6792}} 
[2026-04-03 18:57:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6792,"item_index":3,"menu_item_id":13} 
[2026-04-03 18:57:59] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6785,"new_order_id":6792,"order_number":"AZS-030426-013"} 
[2026-04-03 18:58:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6790,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":32385}],"validated_items":[{"id":32385,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-03 18:58:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6790,"items_count":1} 
[2026-04-03 18:58:13] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32385,"menu_item_id":6,"quantity":3}]} 
[2026-04-03 18:58:13] local.INFO: PosOrderController::update - Item changes check {"order_id":6790,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|3|"],"new_items_map_keys":["6|3|"]} 
[2026-04-03 18:58:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6790,"order_number":"AZS-030426-016"} 
[2026-04-03 18:58:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6790,"order_number":"AZS-030426-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 18:58:13"} 
[2026-04-03 19:15:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6792,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":32390},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32391},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32392},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":32393}],"validated_items":[{"id":32390,"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":32391,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32392,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32393,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-03 19:15:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6792,"items_count":4} 
[2026-04-03 19:15:13] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32390,"menu_item_id":87,"quantity":1},{"id":32391,"menu_item_id":61,"quantity":1},{"id":32392,"menu_item_id":396,"quantity":2},{"id":32393,"menu_item_id":13,"quantity":2}]} 
[2026-04-03 19:15:13] local.INFO: PosOrderController::update - Item changes check {"order_id":6792,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["87|1|","61|1|","396|2|","13|2|"],"new_items_map_keys":["87|1|","61|1|","396|2|","13|2|"]} 
[2026-04-03 19:15:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6792,"order_number":"AZS-030426-013"} 
[2026-04-03 19:15:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6792,"order_number":"AZS-030426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 19:15:13"} 
[2026-04-03 19:17:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6790,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":32385}],"validated_items":[{"id":32385,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-03 19:17:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6790,"items_count":1} 
[2026-04-03 19:17:23] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32385,"menu_item_id":6,"quantity":3}]} 
[2026-04-03 19:17:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6790,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|3|"],"new_items_map_keys":["6|3|"]} 
[2026-04-03 19:17:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6790,"order_number":"AZS-030426-016"} 
[2026-04-03 19:17:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6790,"order_number":"AZS-030426-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 19:17:23"} 
[2026-04-03 19:17:40] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6790,"order_number":"AZS-030426-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 19:17:40"} 
[2026-04-03 19:17:40] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6790,"order_number":"AZS-030426-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 19:17:40"} 
[2026-04-03 19:17:40] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6790,"order_number":"AZS-030426-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 19:17:40"} 
[2026-04-03 19:17:40] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6790,"order_number":"AZS-030426-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 19:17:40"} 
[2026-04-03 19:17:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6790,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32385}],"validated_items":[{"id":32385,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-03 19:17:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6790,"items_count":1} 
[2026-04-03 19:17:40] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32385,"menu_item_id":6,"quantity":2}]} 
[2026-04-03 19:17:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6790,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|3|"],"new_items_map_keys":["6|2|"]} 
[2026-04-03 19:17:40] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6790,"order_number":"AZS-030426-016","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":500,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-03 19:17:40","original_payment_amount":"0.00","grand_total":418.0,"timestamp":"2026-04-03 19:17:40"} 
[2026-04-03 19:17:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6790,"order_number":"AZS-030426-016"} 
[2026-04-03 19:17:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-016","replaced_order_id":6790} 
[2026-04-03 19:17:40] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6790,"new_order_id":6793,"order_number":"AZS-030426-016","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"500.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-03 19:17:40","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-03 19:17:40"} 
[2026-04-03 19:17:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6793,"items_count":1,"items":[{"menu_item_id":6,"quantity":2,"price":199.0}]} 
[2026-04-03 19:17:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6793,"item_index":0,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6793}} 
[2026-04-03 19:17:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6793,"item_index":0,"menu_item_id":6} 
[2026-04-03 19:17:40] local.ERROR: Error tracking recipe usage for order 6793: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6793, 6, 177, 1, 666, 0.00, Order #AZS-030426-016 - 2x Karak Tea, 2026-04-03 19:17:40, 2026-04-03 19:17:40))  
[2026-04-03 19:17:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6790,"new_order_id":6793,"order_number":"AZS-030426-016"} 
[2026-04-03 19:17:41] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6790,"new_order_id":6793,"order_number":"AZS-030426-016","route":"api/orders/6790"} 
[2026-04-03 19:17:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6792,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":32390},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32391},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32392},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":32393}],"validated_items":[{"id":32390,"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":32391,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32392,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32393,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-03 19:17:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6792,"items_count":4} 
[2026-04-03 19:17:49] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32390,"menu_item_id":87,"quantity":1},{"id":32391,"menu_item_id":61,"quantity":1},{"id":32392,"menu_item_id":396,"quantity":2},{"id":32393,"menu_item_id":13,"quantity":2}]} 
[2026-04-03 19:17:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6792,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["87|1|","61|1|","396|2|","13|2|"],"new_items_map_keys":["87|1|","61|1|","396|2|","13|2|"]} 
[2026-04-03 19:17:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6792,"order_number":"AZS-030426-013"} 
[2026-04-03 19:17:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6792,"order_number":"AZS-030426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 19:17:49"} 
[2026-04-03 19:18:29] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6792,"order_number":"AZS-030426-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 19:18:29"} 
[2026-04-03 19:18:29] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6792,"order_number":"AZS-030426-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 19:18:29"} 
[2026-04-03 19:18:29] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6792,"order_number":"AZS-030426-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 19:18:29"} 
[2026-04-03 19:18:29] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6792,"order_number":"AZS-030426-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 19:18:29"} 
[2026-04-03 19:18:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":1,"order_id":6792,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":32390},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32392},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":32393}],"validated_items":[{"id":32390,"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":32392,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32393,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-03 19:18:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6792,"items_count":3} 
[2026-04-03 19:18:29] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":1,"items_to_remove":[32391],"items":[{"id":32390,"menu_item_id":87,"quantity":1},{"id":32392,"menu_item_id":396,"quantity":2},{"id":32393,"menu_item_id":13,"quantity":2}]} 
[2026-04-03 19:18:29] local.INFO: PosOrderController::update - Item changes check {"order_id":6792,"has_item_changes":true,"old_items_count":4,"new_items_count":3,"old_items_map_keys":["87|1|","61|1|","396|2|","13|2|"],"new_items_map_keys":["87|1|","396|2|","13|2|"]} 
[2026-04-03 19:18:29] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6792,"order_number":"AZS-030426-013","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-03 19:18:29","original_payment_amount":"0.00","grand_total":2695.0,"timestamp":"2026-04-03 19:18:29"} 
[2026-04-03 19:18:29] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6792,"order_number":"AZS-030426-013"} 
[2026-04-03 19:18:29] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-013","replaced_order_id":6792} 
[2026-04-03 19:18:29] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6792,"new_order_id":6794,"order_number":"AZS-030426-013","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-03 19:18:29","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-03 19:18:29"} 
[2026-04-03 19:18:29] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6794,"items_count":3,"items":[{"menu_item_id":87,"quantity":1,"price":1999.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":13,"quantity":2,"price":249.0}]} 
[2026-04-03 19:18:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6794,"item_index":0,"item_data":{"menu_item_id":87,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Handi","quantity":1,"price":1999.0,"discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6794}} 
[2026-04-03 19:18:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6794,"item_index":0,"menu_item_id":87} 
[2026-04-03 19:18:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6794,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6794}} 
[2026-04-03 19:18:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6794,"item_index":1,"menu_item_id":396} 
[2026-04-03 19:18:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6794,"item_index":2,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6794}} 
[2026-04-03 19:18:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6794,"item_index":2,"menu_item_id":13} 
[2026-04-03 19:18:29] local.ERROR: Error tracking recipe usage for order 6794: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6794, 87, 184, 1, 0.5, 0.00, Order #AZS-030426-013 - 1x Chicken Handi, 2026-04-03 19:18:29, 2026-04-03 19:18:29))  
[2026-04-03 19:18:29] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6792,"new_order_id":6794,"order_number":"AZS-030426-013"} 
[2026-04-03 19:18:30] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6792,"new_order_id":6794,"order_number":"AZS-030426-013","route":"api/orders/6792"} 
[2026-04-03 19:18:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T07:18:36.451Z","date_to":"2026-04-03T19:18:36.451Z","per_page":"100"} 
[2026-04-03 19:18:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T07:18:36.433Z","date_to":"2026-04-03T19:18:36.433Z","per_page":"100"} 
[2026-04-03 19:18:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":13,"unpaid_count":4,"unique_order_numbers":17} 
[2026-04-03 19:18:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":13,"unpaid_count":4,"unique_order_numbers":17} 
[2026-04-03 19:18:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T07:18:36.433Z","date_to":"2026-04-03T19:18:36.433Z","per_page":"100"} 
[2026-04-03 19:18:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":13,"unpaid_count":4,"unique_order_numbers":17} 
[2026-04-03 19:18:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6789,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":32381},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":32382},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32383},{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null,"id":32384},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":32381,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":32382,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"id":32383,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32384,"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-03 19:18:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6789,"items_count":5} 
[2026-04-03 19:18:49] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32381,"menu_item_id":113,"quantity":1},{"id":32382,"menu_item_id":48,"quantity":1},{"id":32383,"menu_item_id":61,"quantity":1},{"id":32384,"menu_item_id":85,"quantity":1},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-04-03 19:18:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6789,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["113|1|","48|1|","61|1|","85|1|"],"new_items_map_keys":["113|1|","48|1|","61|1|","85|1|","6|2|"]} 
[2026-04-03 19:18:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6789,"order_number":"AZS-030426-015"} 
[2026-04-03 19:18:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-015","replaced_order_id":6789} 
[2026-04-03 19:18:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6795,"items_count":5,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":85,"quantity":1,"price":"699.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-04-03 19:18:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6795,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6795}} 
[2026-04-03 19:18:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6795,"item_index":0,"menu_item_id":113} 
[2026-04-03 19:18:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6795,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6795}} 
[2026-04-03 19:18:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6795,"item_index":1,"menu_item_id":48} 
[2026-04-03 19:18:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6795,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6795}} 
[2026-04-03 19:18:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6795,"item_index":2,"menu_item_id":61} 
[2026-04-03 19:18:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6795,"item_index":3,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":1,"price":"699.00","discount_percent":0.0,"discount_amount":0.0,"total":699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6795}} 
[2026-04-03 19:18:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6795,"item_index":3,"menu_item_id":85} 
[2026-04-03 19:18:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6795,"item_index":4,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6795}} 
[2026-04-03 19:18:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6795,"item_index":4,"menu_item_id":6} 
[2026-04-03 19:18:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6789,"new_order_id":6795,"order_number":"AZS-030426-015"} 
[2026-04-03 19:19:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T07:19:03.920Z","date_to":"2026-04-03T19:19:03.920Z","per_page":"100"} 
[2026-04-03 19:19:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T07:19:03.906Z","date_to":"2026-04-03T19:19:03.906Z","per_page":"100"} 
[2026-04-03 19:19:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":13,"unpaid_count":4,"unique_order_numbers":17} 
[2026-04-03 19:19:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":13,"unpaid_count":4,"unique_order_numbers":17} 
[2026-04-03 19:19:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T07:19:03.906Z","date_to":"2026-04-03T19:19:03.906Z","per_page":"100"} 
[2026-04-03 19:19:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":13,"unpaid_count":4,"unique_order_numbers":17} 
[2026-04-03 19:22:18] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-04-03 19:31:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6795,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":32398},{"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null,"id":32399},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32400},{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null,"id":32401},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":32402},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":32398,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":32399,"menu_item_id":48,"quantity":1,"discount_percent":0,"notes":null},{"id":32400,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32401,"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null},{"id":32402,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-03 19:31:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6795,"items_count":6} 
[2026-04-03 19:31:03] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32398,"menu_item_id":113,"quantity":1},{"id":32399,"menu_item_id":48,"quantity":1},{"id":32400,"menu_item_id":61,"quantity":1},{"id":32401,"menu_item_id":85,"quantity":1},{"id":32402,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-04-03 19:31:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6795,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["113|1|","48|1|","61|1|","85|1|","6|2|"],"new_items_map_keys":["113|1|","48|1|","61|1|","85|1|","6|2|","2|2|"]} 
[2026-04-03 19:31:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6795,"order_number":"AZS-030426-015"} 
[2026-04-03 19:31:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-015","replaced_order_id":6795} 
[2026-04-03 19:31:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6797,"items_count":6,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":48,"quantity":1,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":85,"quantity":1,"price":"699.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-04-03 19:31:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6797,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6797}} 
[2026-04-03 19:31:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6797,"item_index":0,"menu_item_id":113} 
[2026-04-03 19:31:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6797,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6797}} 
[2026-04-03 19:31:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6797,"item_index":1,"menu_item_id":48} 
[2026-04-03 19:31:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6797,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6797}} 
[2026-04-03 19:31:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6797,"item_index":2,"menu_item_id":61} 
[2026-04-03 19:31:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6797,"item_index":3,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":1,"price":"699.00","discount_percent":0.0,"discount_amount":0.0,"total":699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6797}} 
[2026-04-03 19:31:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6797,"item_index":3,"menu_item_id":85} 
[2026-04-03 19:31:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6797,"item_index":4,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6797}} 
[2026-04-03 19:31:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6797,"item_index":4,"menu_item_id":6} 
[2026-04-03 19:31:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6797,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6797}} 
[2026-04-03 19:31:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6797,"item_index":5,"menu_item_id":2} 
[2026-04-03 19:31:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6795,"new_order_id":6797,"order_number":"AZS-030426-015"} 
[2026-04-03 19:31:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6797,"item_index":0,"item_id":32398} 
[2026-04-03 19:31:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6797,"item_index":1,"item_id":32399} 
[2026-04-03 19:31:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6797,"item_index":2,"item_id":32400} 
[2026-04-03 19:31:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6797,"item_index":3,"item_id":32401} 
[2026-04-03 19:31:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6797,"item_index":4,"item_id":32402} 
[2026-04-03 19:31:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6797,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32398},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":32399},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32400},{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":32401},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32402},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-03 19:31:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6797,"items_count":6} 
[2026-04-03 19:31:12] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[32404,32405,32406,32407,32408,32409],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":48,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":85,"quantity":1},{"id":null,"menu_item_id":6,"quantity":2},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-04-03 19:31:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6797,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","48|1|","61|1|","85|1|","6|2|","2|2|"],"new_items_map_keys":["113|1|","48|1|","61|1|","85|1|","6|2|","2|2|"]} 
[2026-04-03 19:31:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6797,"order_number":"AZS-030426-015"} 
[2026-04-03 19:31:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6797,"order_number":"AZS-030426-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 19:31:12"} 
[2026-04-03 19:43:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6796,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":32403}],"validated_items":[{"id":32403,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-03 19:43:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6796,"items_count":1} 
[2026-04-03 19:43:59] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32403,"menu_item_id":6,"quantity":4}]} 
[2026-04-03 19:43:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6796,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|4|"],"new_items_map_keys":["6|4|"]} 
[2026-04-03 19:43:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6796,"order_number":"AZS-030426-018"} 
[2026-04-03 19:43:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6796,"order_number":"AZS-030426-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 19:43:59"} 
[2026-04-03 19:51:51] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6796,"order_number":"AZS-030426-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 19:51:51"} 
[2026-04-03 19:51:51] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6796,"order_number":"AZS-030426-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 19:51:51"} 
[2026-04-03 19:51:51] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6796,"order_number":"AZS-030426-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 19:51:51"} 
[2026-04-03 19:51:51] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6796,"order_number":"AZS-030426-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 19:51:51"} 
[2026-04-03 19:51:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6796,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":32403}],"validated_items":[{"id":32403,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-03 19:51:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6796,"items_count":1} 
[2026-04-03 19:51:51] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32403,"menu_item_id":6,"quantity":4}]} 
[2026-04-03 19:51:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6796,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|4|"],"new_items_map_keys":["6|4|"]} 
[2026-04-03 19:51:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6796,"order_number":"AZS-030426-018"} 
[2026-04-03 19:51:51] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6796,"order_number":"AZS-030426-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-03 19:51:51","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-03 19:51:51"} 
[2026-04-03 19:51:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6796,"order_number":"AZS-030426-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-03 19:51:51"} 
[2026-04-03 19:51:51] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6796,"order_number":"AZS-030426-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-03 19:51:51","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-04-03 19:51:51"} 
[2026-04-03 19:52:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6788,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":32377},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":32378},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":32379},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":32380},{"menu_item_id":6,"quantity":4,"discount_percent":0,"notes":null}],"validated_items":[{"id":32377,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":32378,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":32379,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":32380,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-04-03 19:52:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6788,"items_count":5} 
[2026-04-03 19:52:03] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32377,"menu_item_id":112,"quantity":1},{"id":32378,"menu_item_id":105,"quantity":1},{"id":32379,"menu_item_id":396,"quantity":3},{"id":32380,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":6,"quantity":4}]} 
[2026-04-03 19:52:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6788,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["112|1|","105|1|","396|3|","61|2|"],"new_items_map_keys":["112|1|","105|1|","396|3|","61|2|","6|4|"]} 
[2026-04-03 19:52:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6788,"order_number":"AZS-030426-014"} 
[2026-04-03 19:52:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-014","replaced_order_id":6788} 
[2026-04-03 19:52:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6798,"items_count":5,"items":[{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":6,"quantity":4,"price":"199.00"}]} 
[2026-04-03 19:52:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6798,"item_index":0,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6798}} 
[2026-04-03 19:52:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6798,"item_index":0,"menu_item_id":112} 
[2026-04-03 19:52:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6798,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6798}} 
[2026-04-03 19:52:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6798,"item_index":1,"menu_item_id":105} 
[2026-04-03 19:52:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6798,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6798}} 
[2026-04-03 19:52:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6798,"item_index":2,"menu_item_id":396} 
[2026-04-03 19:52:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6798,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6798}} 
[2026-04-03 19:52:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6798,"item_index":3,"menu_item_id":61} 
[2026-04-03 19:52:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6798,"item_index":4,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6798}} 
[2026-04-03 19:52:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6798,"item_index":4,"menu_item_id":6} 
[2026-04-03 19:52:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6788,"new_order_id":6798,"order_number":"AZS-030426-014"} 
[2026-04-03 19:52:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6798,"item_index":0,"item_id":32377} 
[2026-04-03 19:52:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6798,"item_index":1,"item_id":32378} 
[2026-04-03 19:52:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6798,"item_index":2,"item_id":32379} 
[2026-04-03 19:52:22] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6798,"item_index":3,"item_id":32380} 
[2026-04-03 19:52:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6798,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":32377},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32378},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32379},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32380},{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-03 19:52:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6798,"items_count":5} 
[2026-04-03 19:52:22] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[32410,32411,32412,32413,32414],"items":[{"id":null,"menu_item_id":112,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":6,"quantity":4}]} 
[2026-04-03 19:52:22] local.INFO: PosOrderController::update - Item changes check {"order_id":6798,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["112|1|","105|1|","396|3|","61|2|","6|4|"],"new_items_map_keys":["112|1|","105|1|","396|3|","61|2|","6|4|"]} 
[2026-04-03 19:52:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6798,"order_number":"AZS-030426-014"} 
[2026-04-03 19:52:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6798,"order_number":"AZS-030426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 19:52:22"} 
[2026-04-03 19:53:08] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6798,"item_index":0,"item_id":32377} 
[2026-04-03 19:53:08] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6798,"item_index":1,"item_id":32378} 
[2026-04-03 19:53:08] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6798,"item_index":2,"item_id":32379} 
[2026-04-03 19:53:08] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6798,"item_index":3,"item_id":32380} 
[2026-04-03 19:53:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6798,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":32377},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32378},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32379},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32380},{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-03 19:53:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6798,"items_count":5} 
[2026-04-03 19:53:08] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[32410,32411,32412,32413,32414],"items":[{"id":null,"menu_item_id":112,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":6,"quantity":4}]} 
[2026-04-03 19:53:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6798,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["112|1|","105|1|","396|3|","61|2|","6|4|"],"new_items_map_keys":["112|1|","105|1|","396|3|","61|2|","6|4|"]} 
[2026-04-03 19:53:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6798,"order_number":"AZS-030426-014"} 
[2026-04-03 19:53:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6798,"order_number":"AZS-030426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 19:53:08"} 
[2026-04-03 19:53:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6797,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32404},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":32405},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32406},{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":32407},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32408},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":32409}],"validated_items":[{"id":32404,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32405,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":32406,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32407,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":32408,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32409,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-03 19:53:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6797,"items_count":6} 
[2026-04-03 19:53:49] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32404,"menu_item_id":113,"quantity":1},{"id":32405,"menu_item_id":48,"quantity":1},{"id":32406,"menu_item_id":61,"quantity":1},{"id":32407,"menu_item_id":85,"quantity":1},{"id":32408,"menu_item_id":6,"quantity":2},{"id":32409,"menu_item_id":2,"quantity":2}]} 
[2026-04-03 19:53:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6797,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","48|1|","61|1|","85|1|","6|2|","2|2|"],"new_items_map_keys":["113|1|","48|1|","61|1|","85|1|","6|2|","2|2|"]} 
[2026-04-03 19:53:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6797,"order_number":"AZS-030426-015"} 
[2026-04-03 19:53:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6797,"order_number":"AZS-030426-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 19:53:49"} 
[2026-04-03 19:55:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6791,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32386},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":32387},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":32388},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32389}],"validated_items":[{"id":32386,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32387,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":32388,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":32389,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-03 19:55:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6791,"items_count":4} 
[2026-04-03 19:55:25] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32386,"menu_item_id":113,"quantity":1},{"id":32387,"menu_item_id":396,"quantity":1},{"id":32388,"menu_item_id":52,"quantity":2},{"id":32389,"menu_item_id":61,"quantity":1}]} 
[2026-04-03 19:55:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6791,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","396|1|","52|2|","61|1|"],"new_items_map_keys":["113|1|","396|1|","52|2|","61|1|"]} 
[2026-04-03 19:55:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6791,"order_number":"AZS-030426-017"} 
[2026-04-03 19:55:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6791,"order_number":"AZS-030426-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 19:55:25"} 
[2026-04-03 19:57:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6791,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32386},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":32387},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":32388},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32389},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"id":32386,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32387,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":32388,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":32389,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-03 19:57:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6791,"items_count":5} 
[2026-04-03 19:57:24] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32386,"menu_item_id":113,"quantity":1},{"id":32387,"menu_item_id":396,"quantity":1},{"id":32388,"menu_item_id":52,"quantity":2},{"id":32389,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-03 19:57:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6791,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["113|1|","396|1|","52|2|","61|1|"],"new_items_map_keys":["113|1|","396|1|","52|2|","61|1|","5|1|"]} 
[2026-04-03 19:57:24] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6791,"order_number":"AZS-030426-017"} 
[2026-04-03 19:57:24] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-017","replaced_order_id":6791} 
[2026-04-03 19:57:24] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6799,"items_count":5,"items":[{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":52,"quantity":2,"price":70.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-04-03 19:57:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6799,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6799}} 
[2026-04-03 19:57:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6799,"item_index":0,"menu_item_id":113} 
[2026-04-03 19:57:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6799,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6799}} 
[2026-04-03 19:57:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6799,"item_index":1,"menu_item_id":396} 
[2026-04-03 19:57:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6799,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6799}} 
[2026-04-03 19:57:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6799,"item_index":2,"menu_item_id":52} 
[2026-04-03 19:57:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6799,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6799}} 
[2026-04-03 19:57:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6799,"item_index":3,"menu_item_id":61} 
[2026-04-03 19:57:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6799,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6799}} 
[2026-04-03 19:57:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6799,"item_index":4,"menu_item_id":5} 
[2026-04-03 19:57:24] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6791,"new_order_id":6799,"order_number":"AZS-030426-017"} 
[2026-04-03 19:57:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6799,"item_index":0,"item_id":32386} 
[2026-04-03 19:57:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6799,"item_index":1,"item_id":32387} 
[2026-04-03 19:57:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6799,"item_index":2,"item_id":32388} 
[2026-04-03 19:57:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6799,"item_index":3,"item_id":32389} 
[2026-04-03 19:57:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6799,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32386},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":32387},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":32388},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32389},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-03 19:57:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6799,"items_count":5} 
[2026-04-03 19:57:30] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[32415,32416,32417,32418,32419],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":52,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-03 19:57:30] local.INFO: PosOrderController::update - Item changes check {"order_id":6799,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["113|1|","396|1|","52|2|","61|1|","5|1|"],"new_items_map_keys":["113|1|","396|1|","52|2|","61|1|","5|1|"]} 
[2026-04-03 19:57:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6799,"order_number":"AZS-030426-017"} 
[2026-04-03 19:57:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6799,"order_number":"AZS-030426-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 19:57:30"} 
[2026-04-03 19:57:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T07:57:40.014Z","date_to":"2026-04-03T19:57:40.014Z","per_page":"100"} 
[2026-04-03 19:57:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T07:57:40.031Z","date_to":"2026-04-03T19:57:40.031Z","per_page":"100"} 
[2026-04-03 19:57:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-018","AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["paid","pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":14,"unpaid_count":4,"unique_order_numbers":18} 
[2026-04-03 19:57:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-018","AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["paid","pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":14,"unpaid_count":4,"unique_order_numbers":18} 
[2026-04-03 19:57:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T07:57:40.014Z","date_to":"2026-04-03T19:57:40.014Z","per_page":"100"} 
[2026-04-03 19:57:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-018","AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["paid","pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":14,"unpaid_count":4,"unique_order_numbers":18} 
[2026-04-03 19:57:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6798,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":32410},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":32411},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":32412},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":32413},{"menu_item_id":6,"quantity":4,"discount_percent":0,"notes":null,"id":32414},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32410,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":32411,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":32412,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":32413,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":32414,"menu_item_id":6,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-03 19:57:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6798,"items_count":6} 
[2026-04-03 19:57:54] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32410,"menu_item_id":112,"quantity":1},{"id":32411,"menu_item_id":105,"quantity":1},{"id":32412,"menu_item_id":396,"quantity":3},{"id":32413,"menu_item_id":61,"quantity":2},{"id":32414,"menu_item_id":6,"quantity":4},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-03 19:57:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6798,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["112|1|","105|1|","396|3|","61|2|","6|4|"],"new_items_map_keys":["112|1|","105|1|","396|3|","61|2|","6|4|","5|1|"]} 
[2026-04-03 19:57:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6798,"order_number":"AZS-030426-014"} 
[2026-04-03 19:57:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-014","replaced_order_id":6798} 
[2026-04-03 19:57:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6800,"items_count":6,"items":[{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":6,"quantity":4,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-03 19:57:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6800,"item_index":0,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6800}} 
[2026-04-03 19:57:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6800,"item_index":0,"menu_item_id":112} 
[2026-04-03 19:57:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6800,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6800}} 
[2026-04-03 19:57:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6800,"item_index":1,"menu_item_id":105} 
[2026-04-03 19:57:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6800,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6800}} 
[2026-04-03 19:57:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6800,"item_index":2,"menu_item_id":396} 
[2026-04-03 19:57:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6800,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6800}} 
[2026-04-03 19:57:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6800,"item_index":3,"menu_item_id":61} 
[2026-04-03 19:57:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6800,"item_index":4,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6800}} 
[2026-04-03 19:57:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6800,"item_index":4,"menu_item_id":6} 
[2026-04-03 19:57:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6800,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6800}} 
[2026-04-03 19:57:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6800,"item_index":5,"menu_item_id":5} 
[2026-04-03 19:57:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6798,"new_order_id":6800,"order_number":"AZS-030426-014"} 
[2026-04-03 19:58:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":6799,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":32415},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":32416},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null,"id":32417},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32418}],"validated_items":[{"id":32415,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":32416,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":32417,"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null},{"id":32418,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-03 19:58:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6799,"items_count":4} 
[2026-04-03 19:58:12] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[32419],"items":[{"id":32415,"menu_item_id":113,"quantity":1},{"id":32416,"menu_item_id":396,"quantity":1},{"id":32417,"menu_item_id":52,"quantity":2},{"id":32418,"menu_item_id":61,"quantity":1}]} 
[2026-04-03 19:58:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6799,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["113|1|","396|1|","52|2|","61|1|","5|1|"],"new_items_map_keys":["113|1|","396|1|","52|2|","61|1|"]} 
[2026-04-03 19:58:12] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6799,"order_number":"AZS-030426-017"} 
[2026-04-03 19:58:12] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-017","replaced_order_id":6799} 
[2026-04-03 19:58:12] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6801,"items_count":4,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":52,"quantity":2,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"}]} 
[2026-04-03 19:58:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6801,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6801}} 
[2026-04-03 19:58:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6801,"item_index":0,"menu_item_id":113} 
[2026-04-03 19:58:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6801,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6801}} 
[2026-04-03 19:58:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6801,"item_index":1,"menu_item_id":396} 
[2026-04-03 19:58:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6801,"item_index":2,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6801}} 
[2026-04-03 19:58:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6801,"item_index":2,"menu_item_id":52} 
[2026-04-03 19:58:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6801,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6801}} 
[2026-04-03 19:58:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6801,"item_index":3,"menu_item_id":61} 
[2026-04-03 19:58:12] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6799,"new_order_id":6801,"order_number":"AZS-030426-017"} 
[2026-04-03 19:58:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6800,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":32420},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32421},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32422},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32423},{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":32424},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32425}],"validated_items":[{"id":32420,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":32421,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32422,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32423,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32424,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":32425,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-03 19:58:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6800,"items_count":6} 
[2026-04-03 19:58:24] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32420,"menu_item_id":112,"quantity":1},{"id":32421,"menu_item_id":105,"quantity":1},{"id":32422,"menu_item_id":396,"quantity":3},{"id":32423,"menu_item_id":61,"quantity":2},{"id":32424,"menu_item_id":6,"quantity":4},{"id":32425,"menu_item_id":5,"quantity":1}]} 
[2026-04-03 19:58:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6800,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["112|1|","105|1|","396|3|","61|2|","6|4|","5|1|"],"new_items_map_keys":["112|1|","105|1|","396|3|","61|2|","6|4|","5|1|"]} 
[2026-04-03 19:58:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6800,"order_number":"AZS-030426-014"} 
[2026-04-03 19:58:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6800,"order_number":"AZS-030426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 19:58:24"} 
[2026-04-03 19:59:11] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6797,"order_number":"AZS-030426-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 19:59:11"} 
[2026-04-03 19:59:11] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6797,"order_number":"AZS-030426-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 19:59:11"} 
[2026-04-03 19:59:11] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6797,"order_number":"AZS-030426-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 19:59:11"} 
[2026-04-03 19:59:11] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6797,"order_number":"AZS-030426-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 19:59:11"} 
[2026-04-03 19:59:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6797,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32404},{"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null,"id":32405},{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":32407},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32408},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":32409}],"validated_items":[{"id":32404,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32405,"menu_item_id":48,"quantity":1,"price":250,"discount_percent":0,"notes":null},{"id":32407,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":32408,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32409,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-03 19:59:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6797,"items_count":5} 
[2026-04-03 19:59:11] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[32406],"items":[{"id":32404,"menu_item_id":113,"quantity":1},{"id":32405,"menu_item_id":48,"quantity":1},{"id":32407,"menu_item_id":85,"quantity":1},{"id":32408,"menu_item_id":6,"quantity":2},{"id":32409,"menu_item_id":2,"quantity":2}]} 
[2026-04-03 19:59:11] local.INFO: PosOrderController::update - Item changes check {"order_id":6797,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["113|1|","48|1|","61|1|","85|1|","6|2|","2|2|"],"new_items_map_keys":["113|1|","48|1|","85|1|","6|2|","2|2|"]} 
[2026-04-03 19:59:11] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6797,"order_number":"AZS-030426-015","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-03 19:59:11","original_payment_amount":"0.00","grand_total":2806.0,"timestamp":"2026-04-03 19:59:11"} 
[2026-04-03 19:59:11] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6797,"order_number":"AZS-030426-015"} 
[2026-04-03 19:59:11] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-015","replaced_order_id":6797} 
[2026-04-03 19:59:11] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6797,"new_order_id":6802,"order_number":"AZS-030426-015","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-03 19:59:11","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-03 19:59:11"} 
[2026-04-03 19:59:11] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6802,"items_count":5,"items":[{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":48,"quantity":1,"price":250.0},{"menu_item_id":85,"quantity":1,"price":699.0},{"menu_item_id":6,"quantity":2,"price":199.0},{"menu_item_id":2,"quantity":2,"price":130.0}]} 
[2026-04-03 19:59:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6802,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6802}} 
[2026-04-03 19:59:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6802,"item_index":0,"menu_item_id":113} 
[2026-04-03 19:59:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6802,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":1,"price":250.0,"discount_percent":0.0,"discount_amount":0.0,"total":250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6802}} 
[2026-04-03 19:59:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6802,"item_index":1,"menu_item_id":48} 
[2026-04-03 19:59:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6802,"item_index":2,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":1,"price":699.0,"discount_percent":0.0,"discount_amount":0.0,"total":699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6802}} 
[2026-04-03 19:59:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6802,"item_index":2,"menu_item_id":85} 
[2026-04-03 19:59:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6802,"item_index":3,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6802}} 
[2026-04-03 19:59:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6802,"item_index":3,"menu_item_id":6} 
[2026-04-03 19:59:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6802,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6802}} 
[2026-04-03 19:59:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6802,"item_index":4,"menu_item_id":2} 
[2026-04-03 19:59:11] local.ERROR: Error tracking recipe usage for order 6802: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6802, 48, 152, 1, 5, 0.00, Order #AZS-030426-015 - 1x Qandhari Naan, 2026-04-03 19:59:11, 2026-04-03 19:59:11))  
[2026-04-03 19:59:11] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6797,"new_order_id":6802,"order_number":"AZS-030426-015"} 
[2026-04-03 19:59:11] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6797,"new_order_id":6802,"order_number":"AZS-030426-015","route":"api/orders/6797"} 
[2026-04-03 19:59:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T07:59:17.496Z","date_to":"2026-04-03T19:59:17.496Z","per_page":"100"} 
[2026-04-03 19:59:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T07:59:17.485Z","date_to":"2026-04-03T19:59:17.485Z","per_page":"100"} 
[2026-04-03 19:59:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-018","AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-04-03 19:59:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-018","AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-04-03 19:59:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T07:59:17.485Z","date_to":"2026-04-03T19:59:17.485Z","per_page":"100"} 
[2026-04-03 19:59:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-018","AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":15,"unpaid_count":3,"unique_order_numbers":18} 
[2026-04-03 20:02:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6800,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":32420},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32421},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32422},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32423},{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":32424},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32425}],"validated_items":[{"id":32420,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":32421,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32422,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32423,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32424,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":32425,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-03 20:02:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6800,"items_count":6} 
[2026-04-03 20:02:56] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32420,"menu_item_id":112,"quantity":1},{"id":32421,"menu_item_id":105,"quantity":1},{"id":32422,"menu_item_id":396,"quantity":3},{"id":32423,"menu_item_id":61,"quantity":2},{"id":32424,"menu_item_id":6,"quantity":4},{"id":32425,"menu_item_id":5,"quantity":1}]} 
[2026-04-03 20:02:56] local.INFO: PosOrderController::update - Item changes check {"order_id":6800,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["112|1|","105|1|","396|3|","61|2|","6|4|","5|1|"],"new_items_map_keys":["112|1|","105|1|","396|3|","61|2|","6|4|","5|1|"]} 
[2026-04-03 20:02:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6800,"order_number":"AZS-030426-014"} 
[2026-04-03 20:02:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6800,"order_number":"AZS-030426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 20:02:56"} 
[2026-04-03 20:11:01] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6800,"order_number":"AZS-030426-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 20:11:01"} 
[2026-04-03 20:11:01] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6800,"order_number":"AZS-030426-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 20:11:01"} 
[2026-04-03 20:11:01] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6800,"order_number":"AZS-030426-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 20:11:01"} 
[2026-04-03 20:11:01] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6800,"order_number":"AZS-030426-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 20:11:01"} 
[2026-04-03 20:11:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6800,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":32420},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32421},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32422},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32423},{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":32424},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32425}],"validated_items":[{"id":32420,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":32421,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32422,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32423,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32424,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":32425,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-03 20:11:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6800,"items_count":6} 
[2026-04-03 20:11:01] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32420,"menu_item_id":112,"quantity":1},{"id":32421,"menu_item_id":105,"quantity":1},{"id":32422,"menu_item_id":396,"quantity":3},{"id":32423,"menu_item_id":61,"quantity":1},{"id":32424,"menu_item_id":6,"quantity":4},{"id":32425,"menu_item_id":5,"quantity":1}]} 
[2026-04-03 20:11:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6800,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["112|1|","105|1|","396|3|","61|2|","6|4|","5|1|"],"new_items_map_keys":["112|1|","105|1|","396|3|","61|1|","6|4|","5|1|"]} 
[2026-04-03 20:11:01] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6800,"order_number":"AZS-030426-014","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":10000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-03 20:11:01","original_payment_amount":"0.00","grand_total":5360.0,"timestamp":"2026-04-03 20:11:01"} 
[2026-04-03 20:11:01] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6800,"order_number":"AZS-030426-014"} 
[2026-04-03 20:11:01] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-030426-014","replaced_order_id":6800} 
[2026-04-03 20:11:01] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6800,"new_order_id":6803,"order_number":"AZS-030426-014","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"10000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-03 20:11:01","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-03 20:11:01"} 
[2026-04-03 20:11:01] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6803,"items_count":6,"items":[{"menu_item_id":112,"quantity":1,"price":1699.0},{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":6,"quantity":4,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-04-03 20:11:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6803,"item_index":0,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":1699.0,"discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6803}} 
[2026-04-03 20:11:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6803,"item_index":0,"menu_item_id":112} 
[2026-04-03 20:11:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6803,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6803}} 
[2026-04-03 20:11:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6803,"item_index":1,"menu_item_id":105} 
[2026-04-03 20:11:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6803,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6803}} 
[2026-04-03 20:11:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6803,"item_index":2,"menu_item_id":396} 
[2026-04-03 20:11:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6803,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6803}} 
[2026-04-03 20:11:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6803,"item_index":3,"menu_item_id":61} 
[2026-04-03 20:11:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6803,"item_index":4,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":4,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6803}} 
[2026-04-03 20:11:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6803,"item_index":4,"menu_item_id":6} 
[2026-04-03 20:11:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6803,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6803}} 
[2026-04-03 20:11:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6803,"item_index":5,"menu_item_id":5} 
[2026-04-03 20:11:01] local.ERROR: Error tracking recipe usage for order 6803: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6803, 112, 10, 1, 2, 0.00, Order #AZS-030426-014 - 1x Kabli Pulao, 2026-04-03 20:11:01, 2026-04-03 20:11:01))  
[2026-04-03 20:11:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6800,"new_order_id":6803,"order_number":"AZS-030426-014"} 
[2026-04-03 20:11:01] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6800,"new_order_id":6803,"order_number":"AZS-030426-014","route":"api/orders/6800"} 
[2026-04-03 20:29:10] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6801,"order_number":"AZS-030426-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1719,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 20:29:10"} 
[2026-04-03 20:29:10] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6801,"order_number":"AZS-030426-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1719,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 20:29:10"} 
[2026-04-03 20:29:10] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6801,"order_number":"AZS-030426-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1719,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 20:29:10"} 
[2026-04-03 20:29:10] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6801,"order_number":"AZS-030426-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1719,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 20:29:10"} 
[2026-04-03 20:29:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6801,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32426},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":32427},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":32428},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32429}],"validated_items":[{"id":32426,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32427,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":32428,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":32429,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-03 20:29:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6801,"items_count":4} 
[2026-04-03 20:29:10] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32426,"menu_item_id":113,"quantity":1},{"id":32427,"menu_item_id":396,"quantity":1},{"id":32428,"menu_item_id":52,"quantity":2},{"id":32429,"menu_item_id":61,"quantity":1}]} 
[2026-04-03 20:29:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6801,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","396|1|","52|2|","61|1|"],"new_items_map_keys":["113|1|","396|1|","52|2|","61|1|"]} 
[2026-04-03 20:29:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6801,"order_number":"AZS-030426-017"} 
[2026-04-03 20:29:10] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6801,"order_number":"AZS-030426-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1719,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-03 20:29:10","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-03 20:29:10"} 
[2026-04-03 20:29:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6801,"order_number":"AZS-030426-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-03 20:29:10"} 
[2026-04-03 20:29:10] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6801,"order_number":"AZS-030426-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1719.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-03 20:29:10","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1719,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1719.00","database_verification_match":true,"timestamp":"2026-04-03 20:29:10"} 
[2026-04-03 20:52:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T08:52:31.389Z","date_to":"2026-04-03T20:52:31.389Z","per_page":"100"} 
[2026-04-03 20:52:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T08:52:31.411Z","date_to":"2026-04-03T20:52:31.411Z","per_page":"100"} 
[2026-04-03 20:52:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-019","AZS-030426-018","AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":17,"unpaid_count":2,"unique_order_numbers":19} 
[2026-04-03 20:52:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-019","AZS-030426-018","AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":17,"unpaid_count":2,"unique_order_numbers":19} 
[2026-04-03 20:52:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T08:52:31.389Z","date_to":"2026-04-03T20:52:31.389Z","per_page":"100"} 
[2026-04-03 20:52:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-019","AZS-030426-018","AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":17,"unpaid_count":2,"unique_order_numbers":19} 
[2026-04-03 20:54:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":6787,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":2,"discount_percent":0,"notes":null,"id":32365},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null,"id":32366},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":32367},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":32368},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":32369},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32370},{"menu_item_id":13,"quantity":11,"discount_percent":0,"notes":null,"id":32371},{"menu_item_id":397,"quantity":600,"discount_percent":0,"notes":null,"id":32372},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":32373},{"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null,"id":32374},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":32375},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":32376}],"validated_items":[{"id":32365,"menu_item_id":96,"quantity":2,"discount_percent":0,"notes":null},{"id":32366,"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"id":32367,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":32368,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":32369,"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"id":32370,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32371,"menu_item_id":13,"quantity":11,"discount_percent":0,"notes":null},{"id":32372,"menu_item_id":397,"quantity":600,"discount_percent":0,"notes":null},{"id":32373,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":32374,"menu_item_id":163,"quantity":2,"discount_percent":0,"notes":null},{"id":32375,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":32376,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-03 20:54:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6787,"items_count":12} 
[2026-04-03 20:54:56] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32365,"menu_item_id":96,"quantity":2},{"id":32366,"menu_item_id":51,"quantity":2},{"id":32367,"menu_item_id":396,"quantity":2},{"id":32368,"menu_item_id":61,"quantity":3},{"id":32369,"menu_item_id":56,"quantity":3},{"id":32370,"menu_item_id":5,"quantity":1},{"id":32371,"menu_item_id":13,"quantity":11},{"id":32372,"menu_item_id":397,"quantity":600},{"id":32373,"menu_item_id":97,"quantity":1},{"id":32374,"menu_item_id":163,"quantity":2},{"id":32375,"menu_item_id":64,"quantity":1},{"id":32376,"menu_item_id":3,"quantity":1}]} 
[2026-04-03 20:54:56] local.INFO: PosOrderController::update - Item changes check {"order_id":6787,"has_item_changes":false,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["96|2|","51|2|","396|2|","61|3|","56|3|","5|1|","13|11|","397|600|","97|1|","163|2|","64|1|","3|1|"],"new_items_map_keys":["96|2|","51|2|","396|2|","61|3|","56|3|","5|1|","13|11|","397|600|","97|1|","163|2|","64|1|","3|1|"]} 
[2026-04-03 20:54:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6787,"order_number":"AZS-030426-001"} 
[2026-04-03 20:54:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6787,"order_number":"AZS-030426-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-04-03 20:54:56"} 
[2026-04-03 20:55:18] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6787,"order_number":"AZS-030426-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":15165,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 20:55:18"} 
[2026-04-03 20:55:18] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6787,"order_number":"AZS-030426-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":15165,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 20:55:18"} 
[2026-04-03 20:55:18] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6787,"order_number":"AZS-030426-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":15165,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 20:55:18"} 
[2026-04-03 20:55:18] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6787,"order_number":"AZS-030426-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":15165,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 20:55:18"} 
[2026-04-03 20:55:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":6787,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":32365},{"menu_item_id":51,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32366},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32367},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":32368},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":32369},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32370},{"menu_item_id":13,"quantity":11,"price":249,"discount_percent":0,"notes":null,"id":32371},{"menu_item_id":397,"quantity":600,"price":4,"discount_percent":0,"notes":null,"id":32372},{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32373},{"menu_item_id":163,"quantity":2,"price":1050,"discount_percent":0,"notes":null,"id":32374},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":32375},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32376}],"validated_items":[{"id":32365,"menu_item_id":96,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":32366,"menu_item_id":51,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32367,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32368,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":32369,"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":32370,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32371,"menu_item_id":13,"quantity":11,"price":249,"discount_percent":0,"notes":null},{"id":32372,"menu_item_id":397,"quantity":600,"price":4,"discount_percent":0,"notes":null},{"id":32373,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32374,"menu_item_id":163,"quantity":2,"price":1050,"discount_percent":0,"notes":null},{"id":32375,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":32376,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-03 20:55:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6787,"items_count":12} 
[2026-04-03 20:55:18] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32365,"menu_item_id":96,"quantity":2},{"id":32366,"menu_item_id":51,"quantity":2},{"id":32367,"menu_item_id":396,"quantity":2},{"id":32368,"menu_item_id":61,"quantity":3},{"id":32369,"menu_item_id":56,"quantity":3},{"id":32370,"menu_item_id":5,"quantity":1},{"id":32371,"menu_item_id":13,"quantity":11},{"id":32372,"menu_item_id":397,"quantity":600},{"id":32373,"menu_item_id":97,"quantity":1},{"id":32374,"menu_item_id":163,"quantity":2},{"id":32375,"menu_item_id":64,"quantity":1},{"id":32376,"menu_item_id":3,"quantity":1}]} 
[2026-04-03 20:55:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6787,"has_item_changes":false,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["96|2|","51|2|","396|2|","61|3|","56|3|","5|1|","13|11|","397|600|","97|1|","163|2|","64|1|","3|1|"],"new_items_map_keys":["96|2|","51|2|","396|2|","61|3|","56|3|","5|1|","13|11|","397|600|","97|1|","163|2|","64|1|","3|1|"]} 
[2026-04-03 20:55:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6787,"order_number":"AZS-030426-001"} 
[2026-04-03 20:55:18] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6787,"order_number":"AZS-030426-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":15165,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-03 20:55:18","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-03 20:55:18"} 
[2026-04-03 20:55:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6787,"order_number":"AZS-030426-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-03 20:55:18"} 
[2026-04-03 20:55:18] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6787,"order_number":"AZS-030426-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"15165.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-03 20:55:18","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":15165,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"15165.00","database_verification_match":true,"timestamp":"2026-04-03 20:55:18"} 
[2026-04-03 20:55:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T08:55:22.083Z","date_to":"2026-04-03T20:55:22.083Z","per_page":"100"} 
[2026-04-03 20:55:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T08:55:22.100Z","date_to":"2026-04-03T20:55:22.100Z","per_page":"100"} 
[2026-04-03 20:55:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-019","AZS-030426-018","AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":1,"unique_order_numbers":19} 
[2026-04-03 20:55:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-019","AZS-030426-018","AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":1,"unique_order_numbers":19} 
[2026-04-03 20:55:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T08:55:22.083Z","date_to":"2026-04-03T20:55:22.083Z","per_page":"100"} 
[2026-04-03 20:55:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-019","AZS-030426-018","AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":1,"unique_order_numbers":19} 
[2026-04-03 21:13:03] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6805,"order_number":"AZS-030426-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2099,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 21:13:03"} 
[2026-04-03 21:13:03] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6805,"order_number":"AZS-030426-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2099,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 21:13:03"} 
[2026-04-03 21:13:03] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6805,"order_number":"AZS-030426-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2099,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 21:13:03"} 
[2026-04-03 21:13:03] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6805,"order_number":"AZS-030426-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2099,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 21:13:03"} 
[2026-04-03 21:13:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6805,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":32446}],"validated_items":[{"id":32446,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null}]} 
[2026-04-03 21:13:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6805,"items_count":1} 
[2026-04-03 21:13:03] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32446,"menu_item_id":386,"quantity":1}]} 
[2026-04-03 21:13:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6805,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|"]} 
[2026-04-03 21:13:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6805,"order_number":"AZS-030426-020"} 
[2026-04-03 21:13:03] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6805,"order_number":"AZS-030426-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2099,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-03 21:13:03","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-03 21:13:03"} 
[2026-04-03 21:13:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6805,"order_number":"AZS-030426-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-03 21:13:03"} 
[2026-04-03 21:13:03] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6805,"order_number":"AZS-030426-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2099.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-03 21:13:03","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2099,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2099.00","database_verification_match":true,"timestamp":"2026-04-03 21:13:03"} 
[2026-04-03 21:13:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T09:13:16.288Z","date_to":"2026-04-03T21:13:16.288Z","per_page":"100"} 
[2026-04-03 21:13:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T09:13:16.273Z","date_to":"2026-04-03T21:13:16.273Z","per_page":"100"} 
[2026-04-03 21:13:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-020","AZS-030426-019","AZS-030426-018","AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":1,"unique_order_numbers":20} 
[2026-04-03 21:13:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-020","AZS-030426-019","AZS-030426-018","AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":1,"unique_order_numbers":20} 
[2026-04-03 21:13:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T09:13:16.273Z","date_to":"2026-04-03T21:13:16.273Z","per_page":"100"} 
[2026-04-03 21:13:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-020","AZS-030426-019","AZS-030426-018","AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":1,"unique_order_numbers":20} 
[2026-04-03 21:24:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6804,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":32441},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32442},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32443},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32444},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32445}],"validated_items":[{"id":32441,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":32442,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32443,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32444,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32445,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-03 21:24:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6804,"items_count":5} 
[2026-04-03 21:24:34] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32441,"menu_item_id":106,"quantity":1},{"id":32442,"menu_item_id":396,"quantity":3},{"id":32443,"menu_item_id":61,"quantity":1},{"id":32444,"menu_item_id":56,"quantity":1},{"id":32445,"menu_item_id":5,"quantity":1}]} 
[2026-04-03 21:24:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6804,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["106|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["106|1|","396|3|","61|1|","56|1|","5|1|"]} 
[2026-04-03 21:24:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6804,"order_number":"AZS-030426-019"} 
[2026-04-03 21:24:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6804,"order_number":"AZS-030426-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 21:24:34"} 
[2026-04-03 21:27:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T09:27:32.546Z","date_to":"2026-04-03T21:27:32.546Z","per_page":"100"} 
[2026-04-03 21:27:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T09:27:32.553Z","date_to":"2026-04-03T21:27:32.553Z","per_page":"100"} 
[2026-04-03 21:27:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-020","AZS-030426-019","AZS-030426-018","AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":1,"unique_order_numbers":20} 
[2026-04-03 21:27:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-020","AZS-030426-019","AZS-030426-018","AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":1,"unique_order_numbers":20} 
[2026-04-03 21:27:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T09:27:32.546Z","date_to":"2026-04-03T21:27:32.546Z","per_page":"100"} 
[2026-04-03 21:27:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-020","AZS-030426-019","AZS-030426-018","AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":1,"unique_order_numbers":20} 
[2026-04-03 21:27:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6804,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":32441},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32442},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32443},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32444},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32445}],"validated_items":[{"id":32441,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":32442,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32443,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32444,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32445,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-03 21:27:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6804,"items_count":5} 
[2026-04-03 21:27:41] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32441,"menu_item_id":106,"quantity":1},{"id":32442,"menu_item_id":396,"quantity":3},{"id":32443,"menu_item_id":61,"quantity":1},{"id":32444,"menu_item_id":56,"quantity":1},{"id":32445,"menu_item_id":5,"quantity":1}]} 
[2026-04-03 21:27:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6804,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["106|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["106|1|","396|3|","61|1|","56|1|","5|1|"]} 
[2026-04-03 21:27:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6804,"order_number":"AZS-030426-019"} 
[2026-04-03 21:27:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6804,"order_number":"AZS-030426-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-03 21:27:41"} 
[2026-04-03 21:28:26] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6804,"order_number":"AZS-030426-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 21:28:26"} 
[2026-04-03 21:28:26] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6804,"order_number":"AZS-030426-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-03 21:28:26"} 
[2026-04-03 21:28:26] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6804,"order_number":"AZS-030426-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 21:28:26"} 
[2026-04-03 21:28:26] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6804,"order_number":"AZS-030426-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-03 21:28:26"} 
[2026-04-03 21:28:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6804,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":32441},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32442},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32443},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32444},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32445}],"validated_items":[{"id":32441,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":32442,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32443,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32444,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32445,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-03 21:28:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6804,"items_count":5} 
[2026-04-03 21:28:26] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32441,"menu_item_id":106,"quantity":1},{"id":32442,"menu_item_id":396,"quantity":3},{"id":32443,"menu_item_id":61,"quantity":1},{"id":32444,"menu_item_id":56,"quantity":1},{"id":32445,"menu_item_id":5,"quantity":1}]} 
[2026-04-03 21:28:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6804,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["106|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["106|1|","396|3|","61|1|","56|1|","5|1|"]} 
[2026-04-03 21:28:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6804,"order_number":"AZS-030426-019"} 
[2026-04-03 21:28:26] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6804,"order_number":"AZS-030426-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-03 21:28:26","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-03 21:28:26"} 
[2026-04-03 21:28:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6804,"order_number":"AZS-030426-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-03 21:28:26"} 
[2026-04-03 21:28:26] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6804,"order_number":"AZS-030426-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-03 21:28:26","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5100.00","database_verification_match":true,"timestamp":"2026-04-03 21:28:26"} 
[2026-04-03 21:28:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T09:28:33.760Z","date_to":"2026-04-03T21:28:33.760Z","per_page":"100"} 
[2026-04-03 21:28:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T09:28:33.747Z","date_to":"2026-04-03T21:28:33.747Z","per_page":"100"} 
[2026-04-03 21:28:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-020","AZS-030426-019","AZS-030426-018","AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":0,"unique_order_numbers":20} 
[2026-04-03 21:28:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-020","AZS-030426-019","AZS-030426-018","AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":0,"unique_order_numbers":20} 
[2026-04-03 21:28:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-03T09:28:33.747Z","date_to":"2026-04-03T21:28:33.747Z","per_page":"100"} 
[2026-04-03 21:28:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-030426-020","AZS-030426-019","AZS-030426-018","AZS-030426-017","AZS-030426-016","AZS-030426-015","AZS-030426-014","AZS-030426-013","AZS-030426-012","AZS-030426-011","AZS-030426-010","AZS-030426-009","AZS-030426-008","AZS-030426-007","AZS-030426-006","AZS-030426-005","AZS-030426-004","AZS-030426-003","AZS-030426-002","AZS-030426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":0,"unique_order_numbers":20} 
[2026-04-04 14:16:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6807,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"discount_percent":0,"notes":null,"id":32453},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":32454},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":32455},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32456},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32457},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32458},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":32453,"menu_item_id":100,"quantity":1,"discount_percent":0,"notes":null},{"id":32454,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":32455,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":32456,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32457,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32458,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-04-04 14:16:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6807,"items_count":7} 
[2026-04-04 14:16:06] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32453,"menu_item_id":100,"quantity":1},{"id":32454,"menu_item_id":98,"quantity":1},{"id":32455,"menu_item_id":396,"quantity":3},{"id":32456,"menu_item_id":61,"quantity":1},{"id":32457,"menu_item_id":56,"quantity":1},{"id":32458,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-04-04 14:16:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6807,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["100|1|","98|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["100|1|","98|1|","396|3|","61|1|","56|1|","5|1|","2|3|"]} 
[2026-04-04 14:16:06] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6807,"order_number":"AZS-040426-002"} 
[2026-04-04 14:16:06] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-002","replaced_order_id":6807} 
[2026-04-04 14:16:06] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6809,"items_count":7,"items":[{"menu_item_id":100,"quantity":1,"price":"1299.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"}]} 
[2026-04-04 14:16:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6809,"item_index":0,"item_data":{"menu_item_id":100,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Half","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6809}} 
[2026-04-04 14:16:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6809,"item_index":0,"menu_item_id":100} 
[2026-04-04 14:16:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6809,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6809}} 
[2026-04-04 14:16:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6809,"item_index":1,"menu_item_id":98} 
[2026-04-04 14:16:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6809,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6809}} 
[2026-04-04 14:16:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6809,"item_index":2,"menu_item_id":396} 
[2026-04-04 14:16:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6809,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6809}} 
[2026-04-04 14:16:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6809,"item_index":3,"menu_item_id":61} 
[2026-04-04 14:16:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6809,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6809}} 
[2026-04-04 14:16:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6809,"item_index":4,"menu_item_id":56} 
[2026-04-04 14:16:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6809,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6809}} 
[2026-04-04 14:16:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6809,"item_index":5,"menu_item_id":5} 
[2026-04-04 14:16:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6809,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6809}} 
[2026-04-04 14:16:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6809,"item_index":6,"menu_item_id":2} 
[2026-04-04 14:16:06] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6807,"new_order_id":6809,"order_number":"AZS-040426-002"} 
[2026-04-04 14:18:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6806,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":32447},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":32448},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":32449},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32450},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32451},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32452}],"validated_items":[{"id":32447,"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":32448,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":32449,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":32450,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32451,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32452,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-04 14:18:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6806,"items_count":6} 
[2026-04-04 14:18:32] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32447,"menu_item_id":100,"quantity":1},{"id":32448,"menu_item_id":396,"quantity":1},{"id":32449,"menu_item_id":50,"quantity":1},{"id":32450,"menu_item_id":61,"quantity":1},{"id":32451,"menu_item_id":56,"quantity":1},{"id":32452,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 14:18:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6806,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["100|1|","396|1|","50|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["100|1|","396|1|","50|1|","61|1|","56|1|","5|1|"]} 
[2026-04-04 14:18:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6806,"order_number":"AZS-040426-001"} 
[2026-04-04 14:18:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6806,"order_number":"AZS-040426-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 14:18:32"} 
[2026-04-04 14:29:34] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6806,"order_number":"AZS-040426-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 14:29:34"} 
[2026-04-04 14:29:34] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6806,"order_number":"AZS-040426-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 14:29:34"} 
[2026-04-04 14:29:34] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6806,"order_number":"AZS-040426-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 14:29:34"} 
[2026-04-04 14:29:34] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6806,"order_number":"AZS-040426-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 14:29:34"} 
[2026-04-04 14:29:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6806,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":32447},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":32448},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":32449},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32450},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32451},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32452}],"validated_items":[{"id":32447,"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":32448,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":32449,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":32450,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32451,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32452,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-04 14:29:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6806,"items_count":6} 
[2026-04-04 14:29:34] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32447,"menu_item_id":100,"quantity":1},{"id":32448,"menu_item_id":396,"quantity":1},{"id":32449,"menu_item_id":50,"quantity":1},{"id":32450,"menu_item_id":61,"quantity":1},{"id":32451,"menu_item_id":56,"quantity":1},{"id":32452,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 14:29:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6806,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["100|1|","396|1|","50|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["100|1|","396|1|","50|1|","61|1|","56|1|","5|1|"]} 
[2026-04-04 14:29:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6806,"order_number":"AZS-040426-001"} 
[2026-04-04 14:29:34] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6806,"order_number":"AZS-040426-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-04 14:29:34","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-04 14:29:34"} 
[2026-04-04 14:29:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6806,"order_number":"AZS-040426-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-04 14:29:34"} 
[2026-04-04 14:29:34] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6806,"order_number":"AZS-040426-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-04 14:29:34","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2200.00","database_verification_match":true,"timestamp":"2026-04-04 14:29:34"} 
[2026-04-04 14:49:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6809,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":32464},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32465},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32466},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32467},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32468},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32469},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":32470}],"validated_items":[{"id":32464,"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":32465,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32466,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32467,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32468,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32469,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32470,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-04 14:49:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6809,"items_count":7} 
[2026-04-04 14:49:01] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32464,"menu_item_id":100,"quantity":1},{"id":32465,"menu_item_id":98,"quantity":1},{"id":32466,"menu_item_id":396,"quantity":3},{"id":32467,"menu_item_id":61,"quantity":1},{"id":32468,"menu_item_id":56,"quantity":1},{"id":32469,"menu_item_id":5,"quantity":1},{"id":32470,"menu_item_id":2,"quantity":3}]} 
[2026-04-04 14:49:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6809,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["100|1|","98|1|","396|3|","61|1|","56|1|","5|1|","2|3|"],"new_items_map_keys":["100|1|","98|1|","396|3|","61|1|","56|1|","5|1|","2|3|"]} 
[2026-04-04 14:49:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6809,"order_number":"AZS-040426-002"} 
[2026-04-04 14:49:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6809,"order_number":"AZS-040426-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 14:49:01"} 
[2026-04-04 14:49:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":6810,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-04 14:49:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6810,"items_count":1} 
[2026-04-04 14:49:20] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[32471],"items":[{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-04-04 14:49:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6810,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["29|1|"],"new_items_map_keys":["2|1|"]} 
[2026-04-04 14:49:20] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6810,"order_number":"AZS-040426-004"} 
[2026-04-04 14:49:20] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-004","replaced_order_id":6810} 
[2026-04-04 14:49:20] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6811,"items_count":1,"items":[{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-04-04 14:49:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6811,"item_index":0,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6811}} 
[2026-04-04 14:49:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6811,"item_index":0,"menu_item_id":2} 
[2026-04-04 14:49:20] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6810,"new_order_id":6811,"order_number":"AZS-040426-004"} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":6811,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":32472},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":32472,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6811,"items_count":11} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32472,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":99,"quantity":1},{"id":null,"menu_item_id":97,"quantity":1},{"id":null,"menu_item_id":62,"quantity":3},{"id":null,"menu_item_id":65,"quantity":3},{"id":null,"menu_item_id":50,"quantity":3},{"id":null,"menu_item_id":54,"quantity":3},{"id":null,"menu_item_id":396,"quantity":5},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":3},{"id":null,"menu_item_id":5,"quantity":2}]} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6811,"has_item_changes":true,"old_items_count":1,"new_items_count":11,"old_items_map_keys":["2|1|"],"new_items_map_keys":["2|1|","99|1|","97|1|","62|3|","65|3|","50|3|","54|3|","396|5|","61|3|","56|3|","5|2|"]} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6811,"order_number":"AZS-040426-004"} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-004","replaced_order_id":6811} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6812,"items_count":11,"items":[{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":62,"quantity":3,"price":"1499.00"},{"menu_item_id":65,"quantity":3,"price":"1299.00"},{"menu_item_id":50,"quantity":3,"price":"129.00"},{"menu_item_id":54,"quantity":3,"price":"159.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":3,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"}]} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6812,"item_index":0,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6812}} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6812,"item_index":0,"menu_item_id":2} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6812,"item_index":1,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6812}} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6812,"item_index":1,"menu_item_id":99} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6812,"item_index":2,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6812}} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6812,"item_index":2,"menu_item_id":97} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6812,"item_index":3,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":3,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":4497.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6812}} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6812,"item_index":3,"menu_item_id":62} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6812,"item_index":4,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":3,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":3897.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6812}} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6812,"item_index":4,"menu_item_id":65} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6812,"item_index":5,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6812}} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6812,"item_index":5,"menu_item_id":50} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6812,"item_index":6,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":3,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":477.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6812}} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6812,"item_index":6,"menu_item_id":54} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6812,"item_index":7,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6812}} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6812,"item_index":7,"menu_item_id":396} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6812,"item_index":8,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6812}} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6812,"item_index":8,"menu_item_id":61} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6812,"item_index":9,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6812}} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6812,"item_index":9,"menu_item_id":56} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6812,"item_index":10,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6812}} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6812,"item_index":10,"menu_item_id":5} 
[2026-04-04 14:54:59] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6811,"new_order_id":6812,"order_number":"AZS-040426-004"} 
[2026-04-04 14:59:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6808,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null,"id":32459},{"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null,"id":32460},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":32461},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":32462},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32463}],"validated_items":[{"id":32459,"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null},{"id":32460,"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null},{"id":32461,"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"id":32462,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":32463,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-04 14:59:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6808,"items_count":5} 
[2026-04-04 14:59:09] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32459,"menu_item_id":114,"quantity":2},{"id":32460,"menu_item_id":396,"quantity":7},{"id":32461,"menu_item_id":61,"quantity":4},{"id":32462,"menu_item_id":56,"quantity":2},{"id":32463,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 14:59:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6808,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["114|2|","396|7|","61|2|","56|2|","5|1|"],"new_items_map_keys":["114|2|","396|7|","61|4|","56|2|","5|1|"]} 
[2026-04-04 14:59:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6808,"order_number":"AZS-040426-003"} 
[2026-04-04 14:59:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-003","replaced_order_id":6808} 
[2026-04-04 14:59:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6813,"items_count":5,"items":[{"menu_item_id":114,"quantity":2,"price":"2299.00"},{"menu_item_id":396,"quantity":7,"price":"99.00"},{"menu_item_id":61,"quantity":4,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-04 14:59:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6813,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6813}} 
[2026-04-04 14:59:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6813,"item_index":0,"menu_item_id":114} 
[2026-04-04 14:59:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6813,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":7,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":693.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6813}} 
[2026-04-04 14:59:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6813,"item_index":1,"menu_item_id":396} 
[2026-04-04 14:59:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6813,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6813}} 
[2026-04-04 14:59:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6813,"item_index":2,"menu_item_id":61} 
[2026-04-04 14:59:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6813,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6813}} 
[2026-04-04 14:59:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6813,"item_index":3,"menu_item_id":56} 
[2026-04-04 14:59:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6813,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6813}} 
[2026-04-04 14:59:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6813,"item_index":4,"menu_item_id":5} 
[2026-04-04 14:59:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6808,"new_order_id":6813,"order_number":"AZS-040426-003"} 
[2026-04-04 15:10:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6813,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null,"id":32484},{"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null,"id":32485},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":32486},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":32487},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32488},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":6,"discount_percent":0,"notes":null}],"validated_items":[{"id":32484,"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null},{"id":32485,"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null},{"id":32486,"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"id":32487,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":32488,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":6,"discount_percent":0,"notes":null}]} 
[2026-04-04 15:10:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6813,"items_count":7} 
[2026-04-04 15:10:04] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32484,"menu_item_id":114,"quantity":2},{"id":32485,"menu_item_id":396,"quantity":7},{"id":32486,"menu_item_id":61,"quantity":4},{"id":32487,"menu_item_id":56,"quantity":2},{"id":32488,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":6,"quantity":6}]} 
[2026-04-04 15:10:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6813,"has_item_changes":true,"old_items_count":5,"new_items_count":7,"old_items_map_keys":["114|2|","396|7|","61|4|","56|2|","5|1|"],"new_items_map_keys":["114|2|","396|7|","61|4|","56|2|","5|1|","2|1|","6|6|"]} 
[2026-04-04 15:10:04] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6813,"order_number":"AZS-040426-003"} 
[2026-04-04 15:10:04] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-003","replaced_order_id":6813} 
[2026-04-04 15:10:04] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6815,"items_count":7,"items":[{"menu_item_id":114,"quantity":2,"price":"2299.00"},{"menu_item_id":396,"quantity":7,"price":"99.00"},{"menu_item_id":61,"quantity":4,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":6,"quantity":6,"price":"199.00"}]} 
[2026-04-04 15:10:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6815,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6815}} 
[2026-04-04 15:10:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6815,"item_index":0,"menu_item_id":114} 
[2026-04-04 15:10:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6815,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":7,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":693.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6815}} 
[2026-04-04 15:10:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6815,"item_index":1,"menu_item_id":396} 
[2026-04-04 15:10:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6815,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6815}} 
[2026-04-04 15:10:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6815,"item_index":2,"menu_item_id":61} 
[2026-04-04 15:10:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6815,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6815}} 
[2026-04-04 15:10:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6815,"item_index":3,"menu_item_id":56} 
[2026-04-04 15:10:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6815,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6815}} 
[2026-04-04 15:10:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6815,"item_index":4,"menu_item_id":5} 
[2026-04-04 15:10:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6815,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6815}} 
[2026-04-04 15:10:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6815,"item_index":5,"menu_item_id":2} 
[2026-04-04 15:10:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6815,"item_index":6,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":6,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":1194.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6815}} 
[2026-04-04 15:10:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6815,"item_index":6,"menu_item_id":6} 
[2026-04-04 15:10:04] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6813,"new_order_id":6815,"order_number":"AZS-040426-003"} 
[2026-04-04 15:17:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T03:17:47.003Z","date_to":"2026-04-04T15:17:47.003Z","per_page":"100"} 
[2026-04-04 15:17:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T03:17:47.028Z","date_to":"2026-04-04T15:17:47.028Z","per_page":"100"} 
[2026-04-04 15:17:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":4,"unique_order_numbers":5} 
[2026-04-04 15:17:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":4,"unique_order_numbers":5} 
[2026-04-04 15:17:46] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T03:17:47.003Z","date_to":"2026-04-04T15:17:47.003Z","per_page":"100"} 
[2026-04-04 15:17:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":5,"count":5,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","pending","pending","pending","paid"],"deleted_count":0,"paid_count":1,"unpaid_count":4,"unique_order_numbers":5} 
[2026-04-04 15:18:07] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6809,"order_number":"AZS-040426-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 15:18:07"} 
[2026-04-04 15:18:07] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6809,"order_number":"AZS-040426-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 15:18:07"} 
[2026-04-04 15:18:07] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6809,"order_number":"AZS-040426-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 15:18:07"} 
[2026-04-04 15:18:07] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6809,"order_number":"AZS-040426-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 15:18:07"} 
[2026-04-04 15:18:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6809,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":32464},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32465},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32466},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32467},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32468},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32469},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":32470}],"validated_items":[{"id":32464,"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":32465,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32466,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32467,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32468,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32469,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32470,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-04 15:18:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6809,"items_count":7} 
[2026-04-04 15:18:07] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32464,"menu_item_id":100,"quantity":1},{"id":32465,"menu_item_id":98,"quantity":1},{"id":32466,"menu_item_id":396,"quantity":3},{"id":32467,"menu_item_id":61,"quantity":1},{"id":32468,"menu_item_id":56,"quantity":1},{"id":32469,"menu_item_id":5,"quantity":1},{"id":32470,"menu_item_id":2,"quantity":3}]} 
[2026-04-04 15:18:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6809,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["100|1|","98|1|","396|3|","61|1|","56|1|","5|1|","2|3|"],"new_items_map_keys":["100|1|","98|1|","396|3|","61|1|","56|1|","5|1|","2|3|"]} 
[2026-04-04 15:18:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6809,"order_number":"AZS-040426-002"} 
[2026-04-04 15:18:07] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6809,"order_number":"AZS-040426-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4000,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-04 15:18:07","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-04 15:18:07"} 
[2026-04-04 15:18:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6809,"order_number":"AZS-040426-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-04 15:18:07"} 
[2026-04-04 15:18:07] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6809,"order_number":"AZS-040426-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4000.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-04 15:18:07","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4000.00","database_verification_match":true,"timestamp":"2026-04-04 15:18:07"} 
[2026-04-04 15:27:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6815,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null,"id":32495},{"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null,"id":32496},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":32497},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":32498},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32499},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":32500},{"menu_item_id":6,"quantity":8,"discount_percent":0,"notes":null,"id":32501}],"validated_items":[{"id":32495,"menu_item_id":114,"quantity":2,"discount_percent":0,"notes":null},{"id":32496,"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null},{"id":32497,"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"id":32498,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":32499,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32500,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":32501,"menu_item_id":6,"quantity":8,"discount_percent":0,"notes":null}]} 
[2026-04-04 15:27:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6815,"items_count":7} 
[2026-04-04 15:27:29] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32495,"menu_item_id":114,"quantity":2},{"id":32496,"menu_item_id":396,"quantity":7},{"id":32497,"menu_item_id":61,"quantity":4},{"id":32498,"menu_item_id":56,"quantity":2},{"id":32499,"menu_item_id":5,"quantity":1},{"id":32500,"menu_item_id":2,"quantity":1},{"id":32501,"menu_item_id":6,"quantity":8}]} 
[2026-04-04 15:27:29] local.INFO: PosOrderController::update - Item changes check {"order_id":6815,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|2|","396|7|","61|4|","56|2|","5|1|","2|1|","6|6|"],"new_items_map_keys":["114|2|","396|7|","61|4|","56|2|","5|1|","2|1|","6|8|"]} 
[2026-04-04 15:27:29] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6815,"order_number":"AZS-040426-003"} 
[2026-04-04 15:27:29] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-003","replaced_order_id":6815} 
[2026-04-04 15:27:29] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6818,"items_count":7,"items":[{"menu_item_id":114,"quantity":2,"price":"2299.00"},{"menu_item_id":396,"quantity":7,"price":"99.00"},{"menu_item_id":61,"quantity":4,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":6,"quantity":8,"price":"199.00"}]} 
[2026-04-04 15:27:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6818,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6818}} 
[2026-04-04 15:27:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6818,"item_index":0,"menu_item_id":114} 
[2026-04-04 15:27:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6818,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":7,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":693.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6818}} 
[2026-04-04 15:27:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6818,"item_index":1,"menu_item_id":396} 
[2026-04-04 15:27:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6818,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6818}} 
[2026-04-04 15:27:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6818,"item_index":2,"menu_item_id":61} 
[2026-04-04 15:27:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6818,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6818}} 
[2026-04-04 15:27:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6818,"item_index":3,"menu_item_id":56} 
[2026-04-04 15:27:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6818,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6818}} 
[2026-04-04 15:27:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6818,"item_index":4,"menu_item_id":5} 
[2026-04-04 15:27:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6818,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6818}} 
[2026-04-04 15:27:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6818,"item_index":5,"menu_item_id":2} 
[2026-04-04 15:27:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6818,"item_index":6,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":8,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":1592.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6818}} 
[2026-04-04 15:27:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6818,"item_index":6,"menu_item_id":6} 
[2026-04-04 15:27:29] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6815,"new_order_id":6818,"order_number":"AZS-040426-003"} 
[2026-04-04 15:32:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6818,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":32504},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null,"id":32505},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":32506},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32507},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32508},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":32509},{"menu_item_id":6,"quantity":8,"price":199,"discount_percent":0,"notes":null,"id":32510}],"validated_items":[{"id":32504,"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"id":32505,"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null},{"id":32506,"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":32507,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32508,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32509,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":32510,"menu_item_id":6,"quantity":8,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-04 15:32:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6818,"items_count":7} 
[2026-04-04 15:32:31] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32504,"menu_item_id":114,"quantity":2},{"id":32505,"menu_item_id":396,"quantity":7},{"id":32506,"menu_item_id":61,"quantity":4},{"id":32507,"menu_item_id":56,"quantity":2},{"id":32508,"menu_item_id":5,"quantity":1},{"id":32509,"menu_item_id":2,"quantity":1},{"id":32510,"menu_item_id":6,"quantity":8}]} 
[2026-04-04 15:32:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6818,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|2|","396|7|","61|4|","56|2|","5|1|","2|1|","6|8|"],"new_items_map_keys":["114|2|","396|7|","61|4|","56|2|","5|1|","2|1|","6|8|"]} 
[2026-04-04 15:32:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6818,"order_number":"AZS-040426-003"} 
[2026-04-04 15:32:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6818,"order_number":"AZS-040426-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 15:32:31"} 
[2026-04-04 15:32:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6818,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":32504},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null,"id":32505},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":32506},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32507},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32508},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":32509},{"menu_item_id":6,"quantity":7,"price":199,"discount_percent":0,"notes":null,"id":32510}],"validated_items":[{"id":32504,"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"id":32505,"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null},{"id":32506,"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":32507,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32508,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32509,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":32510,"menu_item_id":6,"quantity":7,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-04 15:32:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6818,"items_count":7} 
[2026-04-04 15:32:40] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32504,"menu_item_id":114,"quantity":2},{"id":32505,"menu_item_id":396,"quantity":7},{"id":32506,"menu_item_id":61,"quantity":4},{"id":32507,"menu_item_id":56,"quantity":2},{"id":32508,"menu_item_id":5,"quantity":1},{"id":32509,"menu_item_id":2,"quantity":1},{"id":32510,"menu_item_id":6,"quantity":7}]} 
[2026-04-04 15:32:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6818,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|2|","396|7|","61|4|","56|2|","5|1|","2|1|","6|8|"],"new_items_map_keys":["114|2|","396|7|","61|4|","56|2|","5|1|","2|1|","6|7|"]} 
[2026-04-04 15:32:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6818,"order_number":"AZS-040426-003"} 
[2026-04-04 15:32:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-003","replaced_order_id":6818} 
[2026-04-04 15:32:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6819,"items_count":7,"items":[{"menu_item_id":114,"quantity":2,"price":2299.0},{"menu_item_id":396,"quantity":7,"price":99.0},{"menu_item_id":61,"quantity":4,"price":199.0},{"menu_item_id":56,"quantity":2,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":2,"quantity":1,"price":130.0},{"menu_item_id":6,"quantity":7,"price":199.0}]} 
[2026-04-04 15:32:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6819,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6819}} 
[2026-04-04 15:32:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6819,"item_index":0,"menu_item_id":114} 
[2026-04-04 15:32:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6819,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":7,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":693.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6819}} 
[2026-04-04 15:32:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6819,"item_index":1,"menu_item_id":396} 
[2026-04-04 15:32:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6819,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":4,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6819}} 
[2026-04-04 15:32:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6819,"item_index":2,"menu_item_id":61} 
[2026-04-04 15:32:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6819,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6819}} 
[2026-04-04 15:32:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6819,"item_index":3,"menu_item_id":56} 
[2026-04-04 15:32:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6819,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6819}} 
[2026-04-04 15:32:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6819,"item_index":4,"menu_item_id":5} 
[2026-04-04 15:32:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6819,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6819}} 
[2026-04-04 15:32:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6819,"item_index":5,"menu_item_id":2} 
[2026-04-04 15:32:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6819,"item_index":6,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":7,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1393.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6819}} 
[2026-04-04 15:32:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6819,"item_index":6,"menu_item_id":6} 
[2026-04-04 15:32:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6818,"new_order_id":6819,"order_number":"AZS-040426-003"} 
[2026-04-04 15:32:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6819,"item_index":0,"item_id":32504} 
[2026-04-04 15:32:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6819,"item_index":1,"item_id":32505} 
[2026-04-04 15:32:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6819,"item_index":2,"item_id":32506} 
[2026-04-04 15:32:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6819,"item_index":3,"item_id":32507} 
[2026-04-04 15:32:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6819,"item_index":4,"item_id":32508} 
[2026-04-04 15:32:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6819,"item_index":5,"item_id":32509} 
[2026-04-04 15:32:45] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6819,"item_index":6,"item_id":32510} 
[2026-04-04 15:32:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":6819,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":32504},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null,"id":32505},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":32506},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32507},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32508},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":32509},{"menu_item_id":6,"quantity":7,"price":199,"discount_percent":0,"notes":null,"id":32510}],"validated_items":[{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":7,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-04 15:32:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6819,"items_count":7} 
[2026-04-04 15:32:45] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[32511,32512,32513,32514,32515,32516,32517],"items":[{"id":null,"menu_item_id":114,"quantity":2},{"id":null,"menu_item_id":396,"quantity":7},{"id":null,"menu_item_id":61,"quantity":4},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":6,"quantity":7}]} 
[2026-04-04 15:32:45] local.INFO: PosOrderController::update - Item changes check {"order_id":6819,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|2|","396|7|","61|4|","56|2|","5|1|","2|1|","6|7|"],"new_items_map_keys":["114|2|","396|7|","61|4|","56|2|","5|1|","2|1|","6|7|"]} 
[2026-04-04 15:32:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6819,"order_number":"AZS-040426-003"} 
[2026-04-04 15:32:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6819,"order_number":"AZS-040426-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 15:32:45"} 
[2026-04-04 15:38:58] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6819,"item_index":0,"item_id":32504} 
[2026-04-04 15:38:58] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6819,"item_index":1,"item_id":32505} 
[2026-04-04 15:38:58] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6819,"item_index":2,"item_id":32506} 
[2026-04-04 15:38:58] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6819,"item_index":3,"item_id":32507} 
[2026-04-04 15:38:58] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6819,"item_index":4,"item_id":32508} 
[2026-04-04 15:38:58] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6819,"item_index":5,"item_id":32509} 
[2026-04-04 15:38:58] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6819,"item_index":6,"item_id":32510} 
[2026-04-04 15:38:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":6819,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":32504},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null,"id":32505},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":32506},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32507},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32508},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":32509},{"menu_item_id":6,"quantity":7,"price":199,"discount_percent":0,"notes":null,"id":32510}],"validated_items":[{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":7,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-04 15:38:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6819,"items_count":7} 
[2026-04-04 15:38:58] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[32511,32512,32513,32514,32515,32516,32517],"items":[{"id":null,"menu_item_id":114,"quantity":2},{"id":null,"menu_item_id":396,"quantity":7},{"id":null,"menu_item_id":61,"quantity":4},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":6,"quantity":7}]} 
[2026-04-04 15:38:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6819,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|2|","396|7|","61|4|","56|2|","5|1|","2|1|","6|7|"],"new_items_map_keys":["114|2|","396|7|","61|4|","56|2|","5|1|","2|1|","6|7|"]} 
[2026-04-04 15:38:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6819,"order_number":"AZS-040426-003"} 
[2026-04-04 15:38:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6819,"order_number":"AZS-040426-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 15:38:58"} 
[2026-04-04 15:52:53] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6819,"order_number":"AZS-040426-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 15:52:53"} 
[2026-04-04 15:52:53] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6819,"order_number":"AZS-040426-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 15:52:53"} 
[2026-04-04 15:52:53] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6819,"order_number":"AZS-040426-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 15:52:53"} 
[2026-04-04 15:52:53] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6819,"order_number":"AZS-040426-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 15:52:53"} 
[2026-04-04 15:52:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6819,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null,"id":32511},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null,"id":32512},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32513},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32514},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32515},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":32516},{"menu_item_id":6,"quantity":7,"price":199,"discount_percent":0,"notes":null,"id":32517}],"validated_items":[{"id":32511,"menu_item_id":114,"quantity":2,"price":2299,"discount_percent":0,"notes":null},{"id":32512,"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null},{"id":32513,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32514,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32515,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32516,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":32517,"menu_item_id":6,"quantity":7,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-04 15:52:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6819,"items_count":7} 
[2026-04-04 15:52:53] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32511,"menu_item_id":114,"quantity":2},{"id":32512,"menu_item_id":396,"quantity":7},{"id":32513,"menu_item_id":61,"quantity":2},{"id":32514,"menu_item_id":56,"quantity":2},{"id":32515,"menu_item_id":5,"quantity":1},{"id":32516,"menu_item_id":2,"quantity":1},{"id":32517,"menu_item_id":6,"quantity":7}]} 
[2026-04-04 15:52:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6819,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|2|","396|7|","61|4|","56|2|","5|1|","2|1|","6|7|"],"new_items_map_keys":["114|2|","396|7|","61|2|","56|2|","5|1|","2|1|","6|7|"]} 
[2026-04-04 15:52:53] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6819,"order_number":"AZS-040426-003","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":10000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-04 15:52:53","original_payment_amount":"0.00","grand_total":7780.0,"timestamp":"2026-04-04 15:52:53"} 
[2026-04-04 15:52:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6819,"order_number":"AZS-040426-003"} 
[2026-04-04 15:52:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-003","replaced_order_id":6819} 
[2026-04-04 15:52:53] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6819,"new_order_id":6820,"order_number":"AZS-040426-003","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"10000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-04 15:52:53","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-04 15:52:53"} 
[2026-04-04 15:52:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6820,"items_count":7,"items":[{"menu_item_id":114,"quantity":2,"price":2299.0},{"menu_item_id":396,"quantity":7,"price":99.0},{"menu_item_id":61,"quantity":2,"price":199.0},{"menu_item_id":56,"quantity":2,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":2,"quantity":1,"price":130.0},{"menu_item_id":6,"quantity":7,"price":199.0}]} 
[2026-04-04 15:52:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6820,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":2,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":4598.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6820}} 
[2026-04-04 15:52:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6820,"item_index":0,"menu_item_id":114} 
[2026-04-04 15:52:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6820,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":7,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":693.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6820}} 
[2026-04-04 15:52:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6820,"item_index":1,"menu_item_id":396} 
[2026-04-04 15:52:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6820,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6820}} 
[2026-04-04 15:52:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6820,"item_index":2,"menu_item_id":61} 
[2026-04-04 15:52:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6820,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6820}} 
[2026-04-04 15:52:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6820,"item_index":3,"menu_item_id":56} 
[2026-04-04 15:52:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6820,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6820}} 
[2026-04-04 15:52:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6820,"item_index":4,"menu_item_id":5} 
[2026-04-04 15:52:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6820,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6820}} 
[2026-04-04 15:52:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6820,"item_index":5,"menu_item_id":2} 
[2026-04-04 15:52:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6820,"item_index":6,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":7,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1393.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6820}} 
[2026-04-04 15:52:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6820,"item_index":6,"menu_item_id":6} 
[2026-04-04 15:52:53] local.ERROR: Error tracking recipe usage for order 6820: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6820, 114, 77, 1, 200, 0.00, Order #AZS-040426-003 - 2x Chicken Shinwari - Full, 2026-04-04 15:52:53, 2026-04-04 15:52:53))  
[2026-04-04 15:52:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6819,"new_order_id":6820,"order_number":"AZS-040426-003"} 
[2026-04-04 15:52:53] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6819,"new_order_id":6820,"order_number":"AZS-040426-003","route":"api/orders/6819"} 
[2026-04-04 15:53:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":6812,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":32473},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":32474},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":32475},{"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null,"id":32476},{"menu_item_id":65,"quantity":3,"discount_percent":0,"notes":null,"id":32477},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null,"id":32478},{"menu_item_id":54,"quantity":3,"discount_percent":0,"notes":null,"id":32479},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":32480},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":32481},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":32482},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":32483}],"validated_items":[{"id":32473,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":32474,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":32475,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":32476,"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null},{"id":32477,"menu_item_id":65,"quantity":3,"discount_percent":0,"notes":null},{"id":32478,"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"id":32479,"menu_item_id":54,"quantity":3,"discount_percent":0,"notes":null},{"id":32480,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":32481,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":32482,"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"id":32483,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-04 15:53:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6812,"items_count":11} 
[2026-04-04 15:53:02] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32473,"menu_item_id":2,"quantity":1},{"id":32474,"menu_item_id":99,"quantity":1},{"id":32475,"menu_item_id":97,"quantity":1},{"id":32476,"menu_item_id":62,"quantity":3},{"id":32477,"menu_item_id":65,"quantity":3},{"id":32478,"menu_item_id":50,"quantity":3},{"id":32479,"menu_item_id":54,"quantity":3},{"id":32480,"menu_item_id":396,"quantity":5},{"id":32481,"menu_item_id":61,"quantity":3},{"id":32482,"menu_item_id":56,"quantity":3},{"id":32483,"menu_item_id":5,"quantity":2}]} 
[2026-04-04 15:53:02] local.INFO: PosOrderController::update - Item changes check {"order_id":6812,"has_item_changes":false,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["2|1|","99|1|","97|1|","62|3|","65|3|","50|3|","54|3|","396|5|","61|3|","56|3|","5|2|"],"new_items_map_keys":["2|1|","99|1|","97|1|","62|3|","65|3|","50|3|","54|3|","396|5|","61|3|","56|3|","5|2|"]} 
[2026-04-04 15:53:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6812,"order_number":"AZS-040426-004"} 
[2026-04-04 15:53:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6812,"order_number":"AZS-040426-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-04 15:53:02"} 
[2026-04-04 15:53:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T03:53:08.859Z","date_to":"2026-04-04T15:53:08.859Z","per_page":"100"} 
[2026-04-04 15:53:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T03:53:08.873Z","date_to":"2026-04-04T15:53:08.873Z","per_page":"100"} 
[2026-04-04 15:53:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":4,"unique_order_numbers":7} 
[2026-04-04 15:53:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":4,"unique_order_numbers":7} 
[2026-04-04 15:53:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T03:53:08.859Z","date_to":"2026-04-04T15:53:08.859Z","per_page":"100"} 
[2026-04-04 15:53:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","pending","pending","pending","paid","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":4,"unique_order_numbers":7} 
[2026-04-04 15:57:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6814,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32489},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32490},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":32491},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32492},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32493},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32494}],"validated_items":[{"id":32489,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32490,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32491,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"id":32492,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32493,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32494,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-04 15:57:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6814,"items_count":6} 
[2026-04-04 15:57:08] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32489,"menu_item_id":113,"quantity":1},{"id":32490,"menu_item_id":50,"quantity":2},{"id":32491,"menu_item_id":286,"quantity":2},{"id":32492,"menu_item_id":61,"quantity":1},{"id":32493,"menu_item_id":56,"quantity":1},{"id":32494,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 15:57:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6814,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","50|2|","286|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["113|1|","50|2|","286|2|","61|1|","56|1|","5|1|"]} 
[2026-04-04 15:57:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6814,"order_number":"AZS-040426-005"} 
[2026-04-04 15:57:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6814,"order_number":"AZS-040426-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 15:57:08"} 
[2026-04-04 15:59:29] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6814,"order_number":"AZS-040426-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2160,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 15:59:29"} 
[2026-04-04 15:59:29] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6814,"order_number":"AZS-040426-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2160,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 15:59:29"} 
[2026-04-04 15:59:29] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6814,"order_number":"AZS-040426-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2160,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 15:59:29"} 
[2026-04-04 15:59:29] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6814,"order_number":"AZS-040426-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2160,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 15:59:29"} 
[2026-04-04 15:59:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6814,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32489},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32490},{"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null,"id":32491},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32492},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32493},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32494}],"validated_items":[{"id":32489,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32490,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32491,"menu_item_id":286,"quantity":2,"price":15,"discount_percent":0,"notes":null},{"id":32492,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32493,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32494,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-04 15:59:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6814,"items_count":6} 
[2026-04-04 15:59:29] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32489,"menu_item_id":113,"quantity":1},{"id":32490,"menu_item_id":50,"quantity":2},{"id":32491,"menu_item_id":286,"quantity":2},{"id":32492,"menu_item_id":61,"quantity":1},{"id":32493,"menu_item_id":56,"quantity":1},{"id":32494,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 15:59:29] local.INFO: PosOrderController::update - Item changes check {"order_id":6814,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","50|2|","286|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["113|1|","50|2|","286|2|","61|1|","56|1|","5|1|"]} 
[2026-04-04 15:59:29] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6814,"order_number":"AZS-040426-005"} 
[2026-04-04 15:59:29] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6814,"order_number":"AZS-040426-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2160,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-04 15:59:29","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-04 15:59:29"} 
[2026-04-04 15:59:29] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6814,"order_number":"AZS-040426-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-04 15:59:29"} 
[2026-04-04 15:59:29] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6814,"order_number":"AZS-040426-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2160.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-04 15:59:29","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2160,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2160.00","database_verification_match":true,"timestamp":"2026-04-04 15:59:29"} 
[2026-04-04 16:15:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T04:15:15.928Z","date_to":"2026-04-04T16:15:15.928Z","per_page":"100"} 
[2026-04-04 16:15:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T04:15:15.913Z","date_to":"2026-04-04T16:15:15.913Z","per_page":"100"} 
[2026-04-04 16:15:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":5,"unique_order_numbers":9} 
[2026-04-04 16:15:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":5,"unique_order_numbers":9} 
[2026-04-04 16:15:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T04:15:15.913Z","date_to":"2026-04-04T16:15:15.913Z","per_page":"100"} 
[2026-04-04 16:15:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":9,"count":9,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":5,"unique_order_numbers":9} 
[2026-04-04 16:17:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6816,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":32502}],"validated_items":[{"id":32502,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null}]} 
[2026-04-04 16:17:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6816,"items_count":1} 
[2026-04-04 16:17:47] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32502,"menu_item_id":386,"quantity":1}]} 
[2026-04-04 16:17:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6816,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|"]} 
[2026-04-04 16:17:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6816,"order_number":"AZS-040426-006"} 
[2026-04-04 16:17:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6816,"order_number":"AZS-040426-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 16:17:47"} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":6812,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":32473},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":32474},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":32475},{"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null,"id":32476},{"menu_item_id":65,"quantity":3,"discount_percent":0,"notes":null,"id":32477},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null,"id":32478},{"menu_item_id":54,"quantity":3,"discount_percent":0,"notes":null,"id":32479},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":32480},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":32481},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":32482},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":32483},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":32473,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":32474,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":32475,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":32476,"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null},{"id":32477,"menu_item_id":65,"quantity":3,"discount_percent":0,"notes":null},{"id":32478,"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"id":32479,"menu_item_id":54,"quantity":3,"discount_percent":0,"notes":null},{"id":32480,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":32481,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":32482,"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"id":32483,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6812,"items_count":12} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32473,"menu_item_id":2,"quantity":1},{"id":32474,"menu_item_id":99,"quantity":1},{"id":32475,"menu_item_id":97,"quantity":1},{"id":32476,"menu_item_id":62,"quantity":3},{"id":32477,"menu_item_id":65,"quantity":3},{"id":32478,"menu_item_id":50,"quantity":3},{"id":32479,"menu_item_id":54,"quantity":3},{"id":32480,"menu_item_id":396,"quantity":5},{"id":32481,"menu_item_id":61,"quantity":3},{"id":32482,"menu_item_id":56,"quantity":3},{"id":32483,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6812,"has_item_changes":true,"old_items_count":11,"new_items_count":12,"old_items_map_keys":["2|1|","99|1|","97|1|","62|3|","65|3|","50|3|","54|3|","396|5|","61|3|","56|3|","5|2|"],"new_items_map_keys":["2|1|","99|1|","97|1|","62|3|","65|3|","50|3|","54|3|","396|5|","61|3|","56|3|","5|2|","3|2|"]} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6812,"order_number":"AZS-040426-004"} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-004","replaced_order_id":6812} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6825,"items_count":12,"items":[{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":62,"quantity":3,"price":"1499.00"},{"menu_item_id":65,"quantity":3,"price":"1299.00"},{"menu_item_id":50,"quantity":3,"price":"129.00"},{"menu_item_id":54,"quantity":3,"price":"159.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":3,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6825,"item_index":0,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6825}} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6825,"item_index":0,"menu_item_id":2} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6825,"item_index":1,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6825}} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6825,"item_index":1,"menu_item_id":99} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6825,"item_index":2,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6825}} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6825,"item_index":2,"menu_item_id":97} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6825,"item_index":3,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":3,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":4497.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6825}} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6825,"item_index":3,"menu_item_id":62} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6825,"item_index":4,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":3,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":3897.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6825}} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6825,"item_index":4,"menu_item_id":65} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6825,"item_index":5,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6825}} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6825,"item_index":5,"menu_item_id":50} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6825,"item_index":6,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":3,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":477.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6825}} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6825,"item_index":6,"menu_item_id":54} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6825,"item_index":7,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6825}} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6825,"item_index":7,"menu_item_id":396} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6825,"item_index":8,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6825}} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6825,"item_index":8,"menu_item_id":61} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6825,"item_index":9,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6825}} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6825,"item_index":9,"menu_item_id":56} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6825,"item_index":10,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6825}} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6825,"item_index":10,"menu_item_id":5} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6825,"item_index":11,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6825}} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6825,"item_index":11,"menu_item_id":3} 
[2026-04-04 16:27:32] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6812,"new_order_id":6825,"order_number":"AZS-040426-004"} 
[2026-04-04 16:28:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6816,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":32502}],"validated_items":[{"id":32502,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null}]} 
[2026-04-04 16:28:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6816,"items_count":1} 
[2026-04-04 16:28:21] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32502,"menu_item_id":386,"quantity":1}]} 
[2026-04-04 16:28:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6816,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|"]} 
[2026-04-04 16:28:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6816,"order_number":"AZS-040426-006"} 
[2026-04-04 16:28:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6816,"order_number":"AZS-040426-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 16:28:21"} 
[2026-04-04 16:28:45] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6816,"order_number":"AZS-040426-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 16:28:45"} 
[2026-04-04 16:28:45] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6816,"order_number":"AZS-040426-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 16:28:45"} 
[2026-04-04 16:28:45] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6816,"order_number":"AZS-040426-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 16:28:45"} 
[2026-04-04 16:28:45] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6816,"order_number":"AZS-040426-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 16:28:45"} 
[2026-04-04 16:28:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6816,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":32502}],"validated_items":[{"id":32502,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null}]} 
[2026-04-04 16:28:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6816,"items_count":1} 
[2026-04-04 16:28:45] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32502,"menu_item_id":386,"quantity":1}]} 
[2026-04-04 16:28:45] local.INFO: PosOrderController::update - Item changes check {"order_id":6816,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|"]} 
[2026-04-04 16:28:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6816,"order_number":"AZS-040426-006"} 
[2026-04-04 16:28:45] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6816,"order_number":"AZS-040426-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-04 16:28:45","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-04 16:28:45"} 
[2026-04-04 16:28:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6816,"order_number":"AZS-040426-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-04 16:28:45"} 
[2026-04-04 16:28:45] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6816,"order_number":"AZS-040426-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-04 16:28:45","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2100.00","database_verification_match":true,"timestamp":"2026-04-04 16:28:45"} 
[2026-04-04 16:29:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T04:29:25.708Z","date_to":"2026-04-04T16:29:25.708Z","per_page":"100"} 
[2026-04-04 16:29:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T04:29:25.687Z","date_to":"2026-04-04T16:29:25.687Z","per_page":"100"} 
[2026-04-04 16:29:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":6,"unique_order_numbers":11} 
[2026-04-04 16:29:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":6,"unique_order_numbers":11} 
[2026-04-04 16:29:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T04:29:25.687Z","date_to":"2026-04-04T16:29:25.687Z","per_page":"100"} 
[2026-04-04 16:29:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":6,"unique_order_numbers":11} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":13,"items_to_remove_count":0,"order_id":6825,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":32549},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":32550},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":32551},{"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null,"id":32552},{"menu_item_id":65,"quantity":3,"discount_percent":0,"notes":null,"id":32553},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null,"id":32554},{"menu_item_id":54,"quantity":3,"discount_percent":0,"notes":null,"id":32555},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":32556},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":32557},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":32558},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":32559},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":32560},{"menu_item_id":402,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":32549,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":32550,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":32551,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":32552,"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null},{"id":32553,"menu_item_id":65,"quantity":3,"discount_percent":0,"notes":null},{"id":32554,"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"id":32555,"menu_item_id":54,"quantity":3,"discount_percent":0,"notes":null},{"id":32556,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":32557,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":32558,"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"id":32559,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":32560,"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":402,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6825,"items_count":13} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Processing items {"items_count":13,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32549,"menu_item_id":2,"quantity":1},{"id":32550,"menu_item_id":99,"quantity":1},{"id":32551,"menu_item_id":97,"quantity":1},{"id":32552,"menu_item_id":62,"quantity":3},{"id":32553,"menu_item_id":65,"quantity":3},{"id":32554,"menu_item_id":50,"quantity":3},{"id":32555,"menu_item_id":54,"quantity":3},{"id":32556,"menu_item_id":396,"quantity":5},{"id":32557,"menu_item_id":61,"quantity":3},{"id":32558,"menu_item_id":56,"quantity":3},{"id":32559,"menu_item_id":5,"quantity":2},{"id":32560,"menu_item_id":3,"quantity":2},{"id":null,"menu_item_id":402,"quantity":3}]} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Item changes check {"order_id":6825,"has_item_changes":true,"old_items_count":12,"new_items_count":13,"old_items_map_keys":["2|1|","99|1|","97|1|","62|3|","65|3|","50|3|","54|3|","396|5|","61|3|","56|3|","5|2|","3|2|"],"new_items_map_keys":["2|1|","99|1|","97|1|","62|3|","65|3|","50|3|","54|3|","396|5|","61|3|","56|3|","5|2|","3|2|","402|3|"]} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6825,"order_number":"AZS-040426-004"} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-004","replaced_order_id":6825} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6826,"items_count":13,"items":[{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":62,"quantity":3,"price":"1499.00"},{"menu_item_id":65,"quantity":3,"price":"1299.00"},{"menu_item_id":50,"quantity":3,"price":"129.00"},{"menu_item_id":54,"quantity":3,"price":"159.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":3,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"},{"menu_item_id":402,"quantity":3,"price":"325.00"}]} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6826,"item_index":0,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6826}} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6826,"item_index":0,"menu_item_id":2} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6826,"item_index":1,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6826}} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6826,"item_index":1,"menu_item_id":99} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6826,"item_index":2,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6826}} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6826,"item_index":2,"menu_item_id":97} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6826,"item_index":3,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":3,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":4497.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6826}} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6826,"item_index":3,"menu_item_id":62} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6826,"item_index":4,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":3,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":3897.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6826}} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6826,"item_index":4,"menu_item_id":65} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6826,"item_index":5,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6826}} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6826,"item_index":5,"menu_item_id":50} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6826,"item_index":6,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":3,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":477.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6826}} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6826,"item_index":6,"menu_item_id":54} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6826,"item_index":7,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6826}} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6826,"item_index":7,"menu_item_id":396} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6826,"item_index":8,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6826}} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6826,"item_index":8,"menu_item_id":61} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6826,"item_index":9,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6826}} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6826,"item_index":9,"menu_item_id":56} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6826,"item_index":10,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6826}} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6826,"item_index":10,"menu_item_id":5} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6826,"item_index":11,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6826}} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6826,"item_index":11,"menu_item_id":3} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6826,"item_index":12,"item_data":{"menu_item_id":402,"restaurant_category_id":39,"restaurant_category_name":"DESSERT BAR","item_name":"HOT GULAB JAMUN","quantity":3,"price":"325.00","discount_percent":0.0,"discount_amount":0.0,"total":975.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6826}} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6826,"item_index":12,"menu_item_id":402} 
[2026-04-04 16:33:56] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6825,"new_order_id":6826,"order_number":"AZS-040426-004"} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":14,"items_to_remove_count":0,"order_id":6826,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":32561},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":32562},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":32563},{"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null,"id":32564},{"menu_item_id":65,"quantity":3,"discount_percent":0,"notes":null,"id":32565},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null,"id":32566},{"menu_item_id":54,"quantity":3,"discount_percent":0,"notes":null,"id":32567},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":32568},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":32569},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":32570},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":32571},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":32572},{"menu_item_id":402,"quantity":3,"discount_percent":0,"notes":null,"id":32573},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":32561,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":32562,"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"id":32563,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":32564,"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null},{"id":32565,"menu_item_id":65,"quantity":3,"discount_percent":0,"notes":null},{"id":32566,"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"id":32567,"menu_item_id":54,"quantity":3,"discount_percent":0,"notes":null},{"id":32568,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":32569,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":32570,"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"id":32571,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":32572,"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null},{"id":32573,"menu_item_id":402,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6826,"items_count":14} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Processing items {"items_count":14,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32561,"menu_item_id":2,"quantity":1},{"id":32562,"menu_item_id":99,"quantity":1},{"id":32563,"menu_item_id":97,"quantity":1},{"id":32564,"menu_item_id":62,"quantity":3},{"id":32565,"menu_item_id":65,"quantity":3},{"id":32566,"menu_item_id":50,"quantity":3},{"id":32567,"menu_item_id":54,"quantity":3},{"id":32568,"menu_item_id":396,"quantity":5},{"id":32569,"menu_item_id":61,"quantity":3},{"id":32570,"menu_item_id":56,"quantity":3},{"id":32571,"menu_item_id":5,"quantity":2},{"id":32572,"menu_item_id":3,"quantity":2},{"id":32573,"menu_item_id":402,"quantity":3},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6826,"has_item_changes":true,"old_items_count":13,"new_items_count":14,"old_items_map_keys":["2|1|","99|1|","97|1|","62|3|","65|3|","50|3|","54|3|","396|5|","61|3|","56|3|","5|2|","3|2|","402|3|"],"new_items_map_keys":["2|1|","99|1|","97|1|","62|3|","65|3|","50|3|","54|3|","396|5|","61|3|","56|3|","5|2|","3|2|","402|3|","6|2|"]} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6826,"order_number":"AZS-040426-004"} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-004","replaced_order_id":6826} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6828,"items_count":14,"items":[{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":62,"quantity":3,"price":"1499.00"},{"menu_item_id":65,"quantity":3,"price":"1299.00"},{"menu_item_id":50,"quantity":3,"price":"129.00"},{"menu_item_id":54,"quantity":3,"price":"159.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":3,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"},{"menu_item_id":402,"quantity":3,"price":"325.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6828,"item_index":0,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6828}} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6828,"item_index":0,"menu_item_id":2} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6828,"item_index":1,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6828}} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6828,"item_index":1,"menu_item_id":99} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6828,"item_index":2,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6828}} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6828,"item_index":2,"menu_item_id":97} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6828,"item_index":3,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":3,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":4497.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6828}} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6828,"item_index":3,"menu_item_id":62} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6828,"item_index":4,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":3,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":3897.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6828}} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6828,"item_index":4,"menu_item_id":65} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6828,"item_index":5,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6828}} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6828,"item_index":5,"menu_item_id":50} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6828,"item_index":6,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":3,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":477.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6828}} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6828,"item_index":6,"menu_item_id":54} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6828,"item_index":7,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6828}} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6828,"item_index":7,"menu_item_id":396} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6828,"item_index":8,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6828}} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6828,"item_index":8,"menu_item_id":61} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6828,"item_index":9,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6828}} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6828,"item_index":9,"menu_item_id":56} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6828,"item_index":10,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6828}} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6828,"item_index":10,"menu_item_id":5} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6828,"item_index":11,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6828}} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6828,"item_index":11,"menu_item_id":3} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6828,"item_index":12,"item_data":{"menu_item_id":402,"restaurant_category_id":39,"restaurant_category_name":"DESSERT BAR","item_name":"HOT GULAB JAMUN","quantity":3,"price":"325.00","discount_percent":0.0,"discount_amount":0.0,"total":975.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6828}} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6828,"item_index":12,"menu_item_id":402} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6828,"item_index":13,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6828}} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6828,"item_index":13,"menu_item_id":6} 
[2026-04-04 16:39:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6826,"new_order_id":6828,"order_number":"AZS-040426-004"} 
[2026-04-04 16:39:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6828,"item_index":0,"item_id":32561} 
[2026-04-04 16:39:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6828,"item_index":1,"item_id":32562} 
[2026-04-04 16:39:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6828,"item_index":2,"item_id":32563} 
[2026-04-04 16:39:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6828,"item_index":3,"item_id":32564} 
[2026-04-04 16:39:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6828,"item_index":4,"item_id":32565} 
[2026-04-04 16:39:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6828,"item_index":5,"item_id":32566} 
[2026-04-04 16:39:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6828,"item_index":6,"item_id":32567} 
[2026-04-04 16:39:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6828,"item_index":7,"item_id":32568} 
[2026-04-04 16:39:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6828,"item_index":8,"item_id":32569} 
[2026-04-04 16:39:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6828,"item_index":9,"item_id":32570} 
[2026-04-04 16:39:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6828,"item_index":10,"item_id":32571} 
[2026-04-04 16:39:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6828,"item_index":11,"item_id":32572} 
[2026-04-04 16:39:49] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6828,"item_index":12,"item_id":32573} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":14,"items_to_remove_count":14,"order_id":6828,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":32561},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":32562},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":32563},{"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null,"id":32564},{"menu_item_id":65,"quantity":3,"discount_percent":0,"notes":null,"id":32565},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null,"id":32566},{"menu_item_id":54,"quantity":3,"discount_percent":0,"notes":null,"id":32567},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":32568},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":32569},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":32570},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":32571},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":32572},{"menu_item_id":402,"quantity":3,"discount_percent":0,"notes":null,"id":32573},{"menu_item_id":6,"quantity":9,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":402,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":9,"discount_percent":0,"notes":null}]} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6828,"items_count":14} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Processing items {"items_count":14,"items_to_remove_count":14,"items_to_remove":[32579,32580,32581,32582,32583,32584,32585,32586,32587,32588,32589,32590,32591,32592],"items":[{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":99,"quantity":1},{"id":null,"menu_item_id":97,"quantity":1},{"id":null,"menu_item_id":62,"quantity":3},{"id":null,"menu_item_id":65,"quantity":3},{"id":null,"menu_item_id":50,"quantity":3},{"id":null,"menu_item_id":54,"quantity":3},{"id":null,"menu_item_id":396,"quantity":5},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":3},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":2},{"id":null,"menu_item_id":402,"quantity":3},{"id":null,"menu_item_id":6,"quantity":9}]} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6828,"has_item_changes":true,"old_items_count":14,"new_items_count":14,"old_items_map_keys":["2|1|","99|1|","97|1|","62|3|","65|3|","50|3|","54|3|","396|5|","61|3|","56|3|","5|2|","3|2|","402|3|","6|2|"],"new_items_map_keys":["2|1|","99|1|","97|1|","62|3|","65|3|","50|3|","54|3|","396|5|","61|3|","56|3|","5|2|","3|2|","402|3|","6|9|"]} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6828,"order_number":"AZS-040426-004"} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-004","replaced_order_id":6828} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6829,"items_count":14,"items":[{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":99,"quantity":1,"price":"2299.00"},{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":62,"quantity":3,"price":"1499.00"},{"menu_item_id":65,"quantity":3,"price":"1299.00"},{"menu_item_id":50,"quantity":3,"price":"129.00"},{"menu_item_id":54,"quantity":3,"price":"159.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":3,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"},{"menu_item_id":402,"quantity":3,"price":"325.00"},{"menu_item_id":6,"quantity":9,"price":"199.00"}]} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6829,"item_index":0,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6829}} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6829,"item_index":0,"menu_item_id":2} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6829,"item_index":1,"item_data":{"menu_item_id":99,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6829}} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6829,"item_index":1,"menu_item_id":99} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6829,"item_index":2,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6829}} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6829,"item_index":2,"menu_item_id":97} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6829,"item_index":3,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":3,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":4497.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6829}} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6829,"item_index":3,"menu_item_id":62} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6829,"item_index":4,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":3,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":3897.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6829}} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6829,"item_index":4,"menu_item_id":65} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6829,"item_index":5,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":3,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":387.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6829}} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6829,"item_index":5,"menu_item_id":50} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6829,"item_index":6,"item_data":{"menu_item_id":54,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Kalwanji Naan","quantity":3,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":477.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6829}} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6829,"item_index":6,"menu_item_id":54} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6829,"item_index":7,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6829}} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6829,"item_index":7,"menu_item_id":396} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6829,"item_index":8,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6829}} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6829,"item_index":8,"menu_item_id":61} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6829,"item_index":9,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6829}} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6829,"item_index":9,"menu_item_id":56} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6829,"item_index":10,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6829}} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6829,"item_index":10,"menu_item_id":5} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6829,"item_index":11,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6829}} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6829,"item_index":11,"menu_item_id":3} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6829,"item_index":12,"item_data":{"menu_item_id":402,"restaurant_category_id":39,"restaurant_category_name":"DESSERT BAR","item_name":"HOT GULAB JAMUN","quantity":3,"price":"325.00","discount_percent":0.0,"discount_amount":0.0,"total":975.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6829}} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6829,"item_index":12,"menu_item_id":402} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6829,"item_index":13,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":9,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":1791.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6829}} 
[2026-04-04 16:39:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6829,"item_index":13,"menu_item_id":6} 
[2026-04-04 16:39:50] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6828,"new_order_id":6829,"order_number":"AZS-040426-004"} 
[2026-04-04 16:39:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6829,"item_index":0,"item_id":32561} 
[2026-04-04 16:39:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6829,"item_index":1,"item_id":32562} 
[2026-04-04 16:39:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6829,"item_index":2,"item_id":32563} 
[2026-04-04 16:39:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6829,"item_index":3,"item_id":32564} 
[2026-04-04 16:39:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6829,"item_index":4,"item_id":32565} 
[2026-04-04 16:39:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6829,"item_index":5,"item_id":32566} 
[2026-04-04 16:39:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6829,"item_index":6,"item_id":32567} 
[2026-04-04 16:39:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6829,"item_index":7,"item_id":32568} 
[2026-04-04 16:39:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6829,"item_index":8,"item_id":32569} 
[2026-04-04 16:39:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6829,"item_index":9,"item_id":32570} 
[2026-04-04 16:39:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6829,"item_index":10,"item_id":32571} 
[2026-04-04 16:39:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6829,"item_index":11,"item_id":32572} 
[2026-04-04 16:39:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6829,"item_index":12,"item_id":32573} 
[2026-04-04 16:39:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":14,"items_to_remove_count":14,"order_id":6829,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":32561},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null,"id":32562},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":32563},{"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null,"id":32564},{"menu_item_id":65,"quantity":3,"discount_percent":0,"notes":null,"id":32565},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null,"id":32566},{"menu_item_id":54,"quantity":3,"discount_percent":0,"notes":null,"id":32567},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":32568},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":32569},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":32570},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":32571},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":32572},{"menu_item_id":402,"quantity":3,"discount_percent":0,"notes":null,"id":32573},{"menu_item_id":6,"quantity":9,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":99,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":54,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":402,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":9,"discount_percent":0,"notes":null}]} 
[2026-04-04 16:39:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6829,"items_count":14} 
[2026-04-04 16:39:56] local.INFO: PosOrderController::update - Processing items {"items_count":14,"items_to_remove_count":14,"items_to_remove":[32593,32594,32595,32596,32597,32598,32599,32600,32601,32602,32603,32604,32605,32606],"items":[{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":99,"quantity":1},{"id":null,"menu_item_id":97,"quantity":1},{"id":null,"menu_item_id":62,"quantity":3},{"id":null,"menu_item_id":65,"quantity":3},{"id":null,"menu_item_id":50,"quantity":3},{"id":null,"menu_item_id":54,"quantity":3},{"id":null,"menu_item_id":396,"quantity":5},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":3},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":2},{"id":null,"menu_item_id":402,"quantity":3},{"id":null,"menu_item_id":6,"quantity":9}]} 
[2026-04-04 16:39:56] local.INFO: PosOrderController::update - Item changes check {"order_id":6829,"has_item_changes":false,"old_items_count":14,"new_items_count":14,"old_items_map_keys":["2|1|","99|1|","97|1|","62|3|","65|3|","50|3|","54|3|","396|5|","61|3|","56|3|","5|2|","3|2|","402|3|","6|9|"],"new_items_map_keys":["2|1|","99|1|","97|1|","62|3|","65|3|","50|3|","54|3|","396|5|","61|3|","56|3|","5|2|","3|2|","402|3|","6|9|"]} 
[2026-04-04 16:39:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6829,"order_number":"AZS-040426-004"} 
[2026-04-04 16:39:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6829,"order_number":"AZS-040426-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-04 16:39:56"} 
[2026-04-04 16:53:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6824,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null,"id":32547},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":32548}],"validated_items":[{"id":32547,"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null},{"id":32548,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-04 16:53:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6824,"items_count":2} 
[2026-04-04 16:53:27] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32547,"menu_item_id":402,"quantity":1},{"id":32548,"menu_item_id":13,"quantity":2}]} 
[2026-04-04 16:53:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6824,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["402|1|","13|2|"],"new_items_map_keys":["402|1|","13|2|"]} 
[2026-04-04 16:53:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6824,"order_number":"AZS-040426-011"} 
[2026-04-04 16:53:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6824,"order_number":"AZS-040426-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 16:53:27"} 
[2026-04-04 16:53:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6821,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":32525},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":32526},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":32527},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":32528},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32529},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32530},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32531},{"menu_item_id":2,"quantity":4,"discount_percent":0,"notes":null}],"validated_items":[{"id":32525,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":32526,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":32527,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":32528,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":32529,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32530,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32531,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-04-04 16:53:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6821,"items_count":8} 
[2026-04-04 16:53:49] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32525,"menu_item_id":113,"quantity":1},{"id":32526,"menu_item_id":64,"quantity":1},{"id":32527,"menu_item_id":396,"quantity":2},{"id":32528,"menu_item_id":50,"quantity":2},{"id":32529,"menu_item_id":61,"quantity":1},{"id":32530,"menu_item_id":56,"quantity":1},{"id":32531,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":4}]} 
[2026-04-04 16:53:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6821,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["113|1|","64|1|","396|2|","50|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["113|1|","64|1|","396|2|","50|2|","61|1|","56|1|","5|1|","2|4|"]} 
[2026-04-04 16:53:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6821,"order_number":"AZS-040426-008"} 
[2026-04-04 16:53:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-008","replaced_order_id":6821} 
[2026-04-04 16:53:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6832,"items_count":8,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":4,"price":"130.00"}]} 
[2026-04-04 16:53:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6832,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6832}} 
[2026-04-04 16:53:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6832,"item_index":0,"menu_item_id":113} 
[2026-04-04 16:53:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6832,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6832}} 
[2026-04-04 16:53:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6832,"item_index":1,"menu_item_id":64} 
[2026-04-04 16:53:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6832,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6832}} 
[2026-04-04 16:53:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6832,"item_index":2,"menu_item_id":396} 
[2026-04-04 16:53:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6832,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6832}} 
[2026-04-04 16:53:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6832,"item_index":3,"menu_item_id":50} 
[2026-04-04 16:53:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6832,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6832}} 
[2026-04-04 16:53:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6832,"item_index":4,"menu_item_id":61} 
[2026-04-04 16:53:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6832,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6832}} 
[2026-04-04 16:53:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6832,"item_index":5,"menu_item_id":56} 
[2026-04-04 16:53:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6832,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6832}} 
[2026-04-04 16:53:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6832,"item_index":6,"menu_item_id":5} 
[2026-04-04 16:53:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6832,"item_index":7,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":4,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":520.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6832}} 
[2026-04-04 16:53:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6832,"item_index":7,"menu_item_id":2} 
[2026-04-04 16:53:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6821,"new_order_id":6832,"order_number":"AZS-040426-008"} 
[2026-04-04 16:59:39] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6824,"order_number":"AZS-040426-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":865,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 16:59:39"} 
[2026-04-04 16:59:39] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6824,"order_number":"AZS-040426-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":865,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 16:59:39"} 
[2026-04-04 16:59:39] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6824,"order_number":"AZS-040426-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":865,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 16:59:39"} 
[2026-04-04 16:59:39] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6824,"order_number":"AZS-040426-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":865,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 16:59:39"} 
[2026-04-04 16:59:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6824,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null,"id":32547},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":32548}],"validated_items":[{"id":32547,"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null},{"id":32548,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-04 16:59:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6824,"items_count":2} 
[2026-04-04 16:59:39] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32547,"menu_item_id":402,"quantity":1},{"id":32548,"menu_item_id":13,"quantity":2}]} 
[2026-04-04 16:59:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6824,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["402|1|","13|2|"],"new_items_map_keys":["402|1|","13|2|"]} 
[2026-04-04 16:59:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6824,"order_number":"AZS-040426-011"} 
[2026-04-04 16:59:39] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6824,"order_number":"AZS-040426-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":865,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-04 16:59:39","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-04 16:59:39"} 
[2026-04-04 16:59:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6824,"order_number":"AZS-040426-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-04 16:59:39"} 
[2026-04-04 16:59:39] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6824,"order_number":"AZS-040426-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"865.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-04 16:59:39","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":865,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"865.00","database_verification_match":true,"timestamp":"2026-04-04 16:59:39"} 
[2026-04-04 17:01:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6832,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32615},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":32616},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32617},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32618},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32619},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32620},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32621},{"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null,"id":32622}],"validated_items":[{"id":32615,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32616,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":32617,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32618,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32619,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32620,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32621,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32622,"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-04 17:01:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6832,"items_count":8} 
[2026-04-04 17:01:25] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32615,"menu_item_id":113,"quantity":1},{"id":32616,"menu_item_id":64,"quantity":1},{"id":32617,"menu_item_id":396,"quantity":2},{"id":32618,"menu_item_id":50,"quantity":2},{"id":32619,"menu_item_id":61,"quantity":1},{"id":32620,"menu_item_id":56,"quantity":1},{"id":32621,"menu_item_id":5,"quantity":1},{"id":32622,"menu_item_id":2,"quantity":4}]} 
[2026-04-04 17:01:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6832,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["113|1|","64|1|","396|2|","50|2|","61|1|","56|1|","5|1|","2|4|"],"new_items_map_keys":["113|1|","64|1|","396|2|","50|2|","61|1|","56|1|","5|1|","2|4|"]} 
[2026-04-04 17:01:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6832,"order_number":"AZS-040426-008"} 
[2026-04-04 17:01:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6832,"order_number":"AZS-040426-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 17:01:25"} 
[2026-04-04 17:04:25] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6832,"order_number":"AZS-040426-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 17:04:25"} 
[2026-04-04 17:04:25] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6832,"order_number":"AZS-040426-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 17:04:25"} 
[2026-04-04 17:04:25] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6832,"order_number":"AZS-040426-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 17:04:25"} 
[2026-04-04 17:04:25] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6832,"order_number":"AZS-040426-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 17:04:25"} 
[2026-04-04 17:04:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6832,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32615},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":32616},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32617},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32618},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32619},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32620},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32621},{"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null,"id":32622}],"validated_items":[{"id":32615,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32616,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":32617,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32618,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32619,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32620,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32621,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32622,"menu_item_id":2,"quantity":4,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-04 17:04:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6832,"items_count":8} 
[2026-04-04 17:04:25] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32615,"menu_item_id":113,"quantity":1},{"id":32616,"menu_item_id":64,"quantity":1},{"id":32617,"menu_item_id":396,"quantity":2},{"id":32618,"menu_item_id":50,"quantity":2},{"id":32619,"menu_item_id":61,"quantity":1},{"id":32620,"menu_item_id":56,"quantity":1},{"id":32621,"menu_item_id":5,"quantity":1},{"id":32622,"menu_item_id":2,"quantity":4}]} 
[2026-04-04 17:04:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6832,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["113|1|","64|1|","396|2|","50|2|","61|1|","56|1|","5|1|","2|4|"],"new_items_map_keys":["113|1|","64|1|","396|2|","50|2|","61|1|","56|1|","5|1|","2|4|"]} 
[2026-04-04 17:04:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6832,"order_number":"AZS-040426-008"} 
[2026-04-04 17:04:25] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6832,"order_number":"AZS-040426-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-04 17:04:25","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-04 17:04:25"} 
[2026-04-04 17:04:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6832,"order_number":"AZS-040426-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-04 17:04:25"} 
[2026-04-04 17:04:25] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6832,"order_number":"AZS-040426-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-04 17:04:25","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-04-04 17:04:25"} 
[2026-04-04 17:05:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T05:05:59.481Z","date_to":"2026-04-04T17:05:59.481Z","per_page":"100"} 
[2026-04-04 17:05:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T05:05:59.465Z","date_to":"2026-04-04T17:05:59.465Z","per_page":"100"} 
[2026-04-04 17:05:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","pending","pending","paid","pending","pending","paid","pending","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":7,"unique_order_numbers":14} 
[2026-04-04 17:05:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","pending","pending","paid","pending","pending","paid","pending","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":7,"unique_order_numbers":14} 
[2026-04-04 17:05:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T05:05:59.465Z","date_to":"2026-04-04T17:05:59.465Z","per_page":"100"} 
[2026-04-04 17:05:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","pending","pending","paid","pending","pending","paid","pending","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":7,"unique_order_numbers":14} 
[2026-04-04 17:10:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T05:10:23.230Z","date_to":"2026-04-04T17:10:23.230Z","per_page":"100"} 
[2026-04-04 17:10:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T05:10:23.241Z","date_to":"2026-04-04T17:10:23.241Z","per_page":"100"} 
[2026-04-04 17:10:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","pending","pending","paid","pending","pending","paid","pending","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":7,"unique_order_numbers":14} 
[2026-04-04 17:10:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","pending","pending","paid","pending","pending","paid","pending","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":7,"unique_order_numbers":14} 
[2026-04-04 17:10:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T05:10:23.230Z","date_to":"2026-04-04T17:10:23.230Z","per_page":"100"} 
[2026-04-04 17:10:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","pending","pending","paid","pending","pending","paid","pending","paid","paid","pending","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":7,"unique_order_numbers":14} 
[2026-04-04 17:16:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6822,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":32532},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":32533},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":32534},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32535},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32536},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32537},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32538}],"validated_items":[{"id":32532,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":32533,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":32534,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":32535,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32536,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32537,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32538,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-04 17:16:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6822,"items_count":7} 
[2026-04-04 17:16:18] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32532,"menu_item_id":64,"quantity":1},{"id":32533,"menu_item_id":106,"quantity":1},{"id":32534,"menu_item_id":62,"quantity":1},{"id":32535,"menu_item_id":396,"quantity":3},{"id":32536,"menu_item_id":61,"quantity":1},{"id":32537,"menu_item_id":56,"quantity":1},{"id":32538,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 17:16:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6822,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["64|1|","106|1|","62|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["64|1|","106|1|","62|1|","396|3|","61|1|","56|1|","5|1|"]} 
[2026-04-04 17:16:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6822,"order_number":"AZS-040426-009"} 
[2026-04-04 17:16:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6822,"order_number":"AZS-040426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 17:16:18"} 
[2026-04-04 17:16:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6822,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":32532},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":32533},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":32534},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":32535},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32536},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32537},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32538},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32532,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":32533,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":32534,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":32535,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":32536,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32537,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32538,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-04 17:16:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6822,"items_count":8} 
[2026-04-04 17:16:43] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32532,"menu_item_id":64,"quantity":1},{"id":32533,"menu_item_id":106,"quantity":1},{"id":32534,"menu_item_id":62,"quantity":1},{"id":32535,"menu_item_id":396,"quantity":3},{"id":32536,"menu_item_id":61,"quantity":1},{"id":32537,"menu_item_id":56,"quantity":1},{"id":32538,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-04 17:16:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6822,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["64|1|","106|1|","62|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["64|1|","106|1|","62|1|","396|3|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-04-04 17:16:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6822,"order_number":"AZS-040426-009"} 
[2026-04-04 17:16:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-009","replaced_order_id":6822} 
[2026-04-04 17:16:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6834,"items_count":8,"items":[{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-04 17:16:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6834,"item_index":0,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6834}} 
[2026-04-04 17:16:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6834,"item_index":0,"menu_item_id":64} 
[2026-04-04 17:16:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6834,"item_index":1,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6834}} 
[2026-04-04 17:16:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6834,"item_index":1,"menu_item_id":106} 
[2026-04-04 17:16:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6834,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6834}} 
[2026-04-04 17:16:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6834,"item_index":2,"menu_item_id":62} 
[2026-04-04 17:16:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6834,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6834}} 
[2026-04-04 17:16:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6834,"item_index":3,"menu_item_id":396} 
[2026-04-04 17:16:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6834,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6834}} 
[2026-04-04 17:16:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6834,"item_index":4,"menu_item_id":61} 
[2026-04-04 17:16:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6834,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6834}} 
[2026-04-04 17:16:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6834,"item_index":5,"menu_item_id":56} 
[2026-04-04 17:16:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6834,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6834}} 
[2026-04-04 17:16:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6834,"item_index":6,"menu_item_id":5} 
[2026-04-04 17:16:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6834,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6834}} 
[2026-04-04 17:16:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6834,"item_index":7,"menu_item_id":3} 
[2026-04-04 17:16:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6822,"new_order_id":6834,"order_number":"AZS-040426-009"} 
[2026-04-04 17:16:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6834,"item_index":0,"item_id":32532} 
[2026-04-04 17:16:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6834,"item_index":1,"item_id":32533} 
[2026-04-04 17:16:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6834,"item_index":2,"item_id":32534} 
[2026-04-04 17:16:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6834,"item_index":3,"item_id":32535} 
[2026-04-04 17:16:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6834,"item_index":4,"item_id":32536} 
[2026-04-04 17:16:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6834,"item_index":5,"item_id":32537} 
[2026-04-04 17:16:50] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6834,"item_index":6,"item_id":32538} 
[2026-04-04 17:16:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":8,"order_id":6834,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":32532},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":32533},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":32534},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32535},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32536},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32537},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32538},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-04 17:16:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6834,"items_count":8} 
[2026-04-04 17:16:50] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":8,"items_to_remove":[32626,32627,32628,32629,32630,32631,32632,32633],"items":[{"id":null,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":62,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-04 17:16:50] local.INFO: PosOrderController::update - Item changes check {"order_id":6834,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["64|1|","106|1|","62|1|","396|3|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["64|1|","106|1|","62|1|","396|3|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-04-04 17:16:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6834,"order_number":"AZS-040426-009"} 
[2026-04-04 17:16:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6834,"order_number":"AZS-040426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 17:16:50"} 
[2026-04-04 17:19:48] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-04-04 17:20:12] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6834,"order_number":"AZS-040426-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":8230,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 17:20:12"} 
[2026-04-04 17:20:12] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6834,"order_number":"AZS-040426-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":8230,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 17:20:12"} 
[2026-04-04 17:20:12] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6834,"order_number":"AZS-040426-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":8230,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 17:20:12"} 
[2026-04-04 17:20:12] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6834,"order_number":"AZS-040426-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":8230,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 17:20:12"} 
[2026-04-04 17:20:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6834,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":32626},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":32627},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":32628},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32629},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32630},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32631},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32632},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32633}],"validated_items":[{"id":32626,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":32627,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":32628,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":32629,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32630,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32631,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32632,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32633,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-04 17:20:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6834,"items_count":8} 
[2026-04-04 17:20:12] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32626,"menu_item_id":64,"quantity":1},{"id":32627,"menu_item_id":106,"quantity":1},{"id":32628,"menu_item_id":62,"quantity":1},{"id":32629,"menu_item_id":396,"quantity":3},{"id":32630,"menu_item_id":61,"quantity":1},{"id":32631,"menu_item_id":56,"quantity":1},{"id":32632,"menu_item_id":5,"quantity":1},{"id":32633,"menu_item_id":3,"quantity":1}]} 
[2026-04-04 17:20:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6834,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["64|1|","106|1|","62|1|","396|3|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["64|1|","106|1|","62|1|","396|3|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-04-04 17:20:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6834,"order_number":"AZS-040426-009"} 
[2026-04-04 17:20:12] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6834,"order_number":"AZS-040426-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":8230,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-04 17:20:12","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-04 17:20:12"} 
[2026-04-04 17:20:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6834,"order_number":"AZS-040426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-04 17:20:12"} 
[2026-04-04 17:20:12] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6834,"order_number":"AZS-040426-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"8230.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-04 17:20:12","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":8230,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"8230.00","database_verification_match":true,"timestamp":"2026-04-04 17:20:12"} 
[2026-04-04 17:21:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":14,"items_to_remove_count":0,"order_id":6829,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":32593},{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32594},{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32595},{"menu_item_id":62,"quantity":3,"price":1499,"discount_percent":0,"notes":null,"id":32596},{"menu_item_id":65,"quantity":3,"price":1299,"discount_percent":0,"notes":null,"id":32597},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":32598},{"menu_item_id":54,"quantity":3,"price":159,"discount_percent":0,"notes":null,"id":32599},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":32600},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":32601},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":32602},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":32603},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":32604},{"menu_item_id":402,"quantity":3,"price":325,"discount_percent":0,"notes":null,"id":32605},{"menu_item_id":6,"quantity":9,"price":199,"discount_percent":0,"notes":null,"id":32606}],"validated_items":[{"id":32593,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":32594,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32595,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32596,"menu_item_id":62,"quantity":3,"price":1499,"discount_percent":0,"notes":null},{"id":32597,"menu_item_id":65,"quantity":3,"price":1299,"discount_percent":0,"notes":null},{"id":32598,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"id":32599,"menu_item_id":54,"quantity":3,"price":159,"discount_percent":0,"notes":null},{"id":32600,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":32601,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":32602,"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":32603,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":32604,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null},{"id":32605,"menu_item_id":402,"quantity":3,"price":325,"discount_percent":0,"notes":null},{"id":32606,"menu_item_id":6,"quantity":9,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-04 17:21:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6829,"items_count":14} 
[2026-04-04 17:21:05] local.INFO: PosOrderController::update - Processing items {"items_count":14,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32593,"menu_item_id":2,"quantity":1},{"id":32594,"menu_item_id":99,"quantity":1},{"id":32595,"menu_item_id":97,"quantity":1},{"id":32596,"menu_item_id":62,"quantity":3},{"id":32597,"menu_item_id":65,"quantity":3},{"id":32598,"menu_item_id":50,"quantity":3},{"id":32599,"menu_item_id":54,"quantity":3},{"id":32600,"menu_item_id":396,"quantity":5},{"id":32601,"menu_item_id":61,"quantity":3},{"id":32602,"menu_item_id":56,"quantity":3},{"id":32603,"menu_item_id":5,"quantity":2},{"id":32604,"menu_item_id":3,"quantity":2},{"id":32605,"menu_item_id":402,"quantity":3},{"id":32606,"menu_item_id":6,"quantity":9}]} 
[2026-04-04 17:21:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6829,"has_item_changes":false,"old_items_count":14,"new_items_count":14,"old_items_map_keys":["2|1|","99|1|","97|1|","62|3|","65|3|","50|3|","54|3|","396|5|","61|3|","56|3|","5|2|","3|2|","402|3|","6|9|"],"new_items_map_keys":["2|1|","99|1|","97|1|","62|3|","65|3|","50|3|","54|3|","396|5|","61|3|","56|3|","5|2|","3|2|","402|3|","6|9|"]} 
[2026-04-04 17:21:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6829,"order_number":"AZS-040426-004"} 
[2026-04-04 17:21:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6829,"order_number":"AZS-040426-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 17:21:05"} 
[2026-04-04 17:24:15] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6829,"order_number":"AZS-040426-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":20300,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 17:24:15"} 
[2026-04-04 17:24:15] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6829,"order_number":"AZS-040426-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":20300,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 17:24:15"} 
[2026-04-04 17:24:15] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6829,"order_number":"AZS-040426-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":20300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 17:24:15"} 
[2026-04-04 17:24:15] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6829,"order_number":"AZS-040426-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":20300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 17:24:15"} 
[2026-04-04 17:24:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":14,"items_to_remove_count":0,"order_id":6829,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":32593},{"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32594},{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32595},{"menu_item_id":62,"quantity":3,"price":1499,"discount_percent":0,"notes":null,"id":32596},{"menu_item_id":65,"quantity":3,"price":1299,"discount_percent":0,"notes":null,"id":32597},{"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null,"id":32598},{"menu_item_id":54,"quantity":3,"price":159,"discount_percent":0,"notes":null,"id":32599},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":32600},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":32601},{"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":32602},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":32603},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":32604},{"menu_item_id":402,"quantity":3,"price":325,"discount_percent":0,"notes":null,"id":32605},{"menu_item_id":6,"quantity":9,"price":199,"discount_percent":0,"notes":null,"id":32606}],"validated_items":[{"id":32593,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":32594,"menu_item_id":99,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32595,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32596,"menu_item_id":62,"quantity":3,"price":1499,"discount_percent":0,"notes":null},{"id":32597,"menu_item_id":65,"quantity":3,"price":1299,"discount_percent":0,"notes":null},{"id":32598,"menu_item_id":50,"quantity":3,"price":129,"discount_percent":0,"notes":null},{"id":32599,"menu_item_id":54,"quantity":3,"price":159,"discount_percent":0,"notes":null},{"id":32600,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":32601,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":32602,"menu_item_id":56,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":32603,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":32604,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null},{"id":32605,"menu_item_id":402,"quantity":3,"price":325,"discount_percent":0,"notes":null},{"id":32606,"menu_item_id":6,"quantity":9,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-04 17:24:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6829,"items_count":14} 
[2026-04-04 17:24:15] local.INFO: PosOrderController::update - Processing items {"items_count":14,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32593,"menu_item_id":2,"quantity":1},{"id":32594,"menu_item_id":99,"quantity":1},{"id":32595,"menu_item_id":97,"quantity":1},{"id":32596,"menu_item_id":62,"quantity":3},{"id":32597,"menu_item_id":65,"quantity":3},{"id":32598,"menu_item_id":50,"quantity":3},{"id":32599,"menu_item_id":54,"quantity":3},{"id":32600,"menu_item_id":396,"quantity":5},{"id":32601,"menu_item_id":61,"quantity":3},{"id":32602,"menu_item_id":56,"quantity":3},{"id":32603,"menu_item_id":5,"quantity":2},{"id":32604,"menu_item_id":3,"quantity":2},{"id":32605,"menu_item_id":402,"quantity":3},{"id":32606,"menu_item_id":6,"quantity":9}]} 
[2026-04-04 17:24:15] local.INFO: PosOrderController::update - Item changes check {"order_id":6829,"has_item_changes":false,"old_items_count":14,"new_items_count":14,"old_items_map_keys":["2|1|","99|1|","97|1|","62|3|","65|3|","50|3|","54|3|","396|5|","61|3|","56|3|","5|2|","3|2|","402|3|","6|9|"],"new_items_map_keys":["2|1|","99|1|","97|1|","62|3|","65|3|","50|3|","54|3|","396|5|","61|3|","56|3|","5|2|","3|2|","402|3|","6|9|"]} 
[2026-04-04 17:24:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6829,"order_number":"AZS-040426-004"} 
[2026-04-04 17:24:15] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6829,"order_number":"AZS-040426-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":20300,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-04 17:24:15","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-04 17:24:15"} 
[2026-04-04 17:24:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6829,"order_number":"AZS-040426-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-04 17:24:15"} 
[2026-04-04 17:24:15] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6829,"order_number":"AZS-040426-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"20300.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-04 17:24:15","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":20300,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"20300.00","database_verification_match":true,"timestamp":"2026-04-04 17:24:15"} 
[2026-04-04 17:24:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6831,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":32608},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":32609},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":32610},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":32611},{"menu_item_id":4,"quantity":3,"discount_percent":0,"notes":null,"id":32612},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32613},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32614},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":32608,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":32609,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":32610,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":32611,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":32612,"menu_item_id":4,"quantity":3,"discount_percent":0,"notes":null},{"id":32613,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32614,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-04 17:24:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6831,"items_count":8} 
[2026-04-04 17:24:41] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32608,"menu_item_id":105,"quantity":1},{"id":32609,"menu_item_id":65,"quantity":1},{"id":32610,"menu_item_id":50,"quantity":2},{"id":32611,"menu_item_id":396,"quantity":1},{"id":32612,"menu_item_id":4,"quantity":3},{"id":32613,"menu_item_id":61,"quantity":1},{"id":32614,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-04-04 17:24:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6831,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["105|1|","65|1|","50|2|","396|1|","4|3|","61|1|","56|1|"],"new_items_map_keys":["105|1|","65|1|","50|2|","396|1|","4|3|","61|1|","56|1|","2|2|"]} 
[2026-04-04 17:24:41] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6831,"order_number":"AZS-040426-014"} 
[2026-04-04 17:24:41] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-014","replaced_order_id":6831} 
[2026-04-04 17:24:41] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6837,"items_count":8,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":4,"quantity":3,"price":"90.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-04-04 17:24:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6837,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6837}} 
[2026-04-04 17:24:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6837,"item_index":0,"menu_item_id":105} 
[2026-04-04 17:24:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6837,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6837}} 
[2026-04-04 17:24:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6837,"item_index":1,"menu_item_id":65} 
[2026-04-04 17:24:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6837,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6837}} 
[2026-04-04 17:24:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6837,"item_index":2,"menu_item_id":50} 
[2026-04-04 17:24:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6837,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6837}} 
[2026-04-04 17:24:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6837,"item_index":3,"menu_item_id":396} 
[2026-04-04 17:24:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6837,"item_index":4,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":3,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6837}} 
[2026-04-04 17:24:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6837,"item_index":4,"menu_item_id":4} 
[2026-04-04 17:24:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6837,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6837}} 
[2026-04-04 17:24:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6837,"item_index":5,"menu_item_id":61} 
[2026-04-04 17:24:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6837,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6837}} 
[2026-04-04 17:24:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6837,"item_index":6,"menu_item_id":56} 
[2026-04-04 17:24:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6837,"item_index":7,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6837}} 
[2026-04-04 17:24:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6837,"item_index":7,"menu_item_id":2} 
[2026-04-04 17:24:41] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6831,"new_order_id":6837,"order_number":"AZS-040426-014"} 
[2026-04-04 17:25:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6823,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32539},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":32540},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32541},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":32542},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32543},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32544},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32545},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32546}],"validated_items":[{"id":32539,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32540,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":32541,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32542,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":32543,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32544,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32545,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32546,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-04 17:25:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6823,"items_count":8} 
[2026-04-04 17:25:05] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32539,"menu_item_id":114,"quantity":1},{"id":32540,"menu_item_id":62,"quantity":1},{"id":32541,"menu_item_id":50,"quantity":2},{"id":32542,"menu_item_id":55,"quantity":2},{"id":32543,"menu_item_id":396,"quantity":2},{"id":32544,"menu_item_id":61,"quantity":2},{"id":32545,"menu_item_id":56,"quantity":2},{"id":32546,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 17:25:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6823,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","62|1|","50|2|","55|2|","396|2|","61|2|","56|2|","5|1|"],"new_items_map_keys":["114|1|","62|1|","50|2|","55|2|","396|2|","61|2|","56|2|","5|1|"]} 
[2026-04-04 17:25:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6823,"order_number":"AZS-040426-010"} 
[2026-04-04 17:25:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6823,"order_number":"AZS-040426-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 17:25:05"} 
[2026-04-04 17:29:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6823,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":32539},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":32540},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":32541},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null,"id":32542},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":32543},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":32544},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32545},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32546}],"validated_items":[{"id":32539,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":32540,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":32541,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":32542,"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"id":32543,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":32544,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":32545,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32546,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-04 17:29:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6823,"items_count":8} 
[2026-04-04 17:29:00] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32539,"menu_item_id":114,"quantity":1},{"id":32540,"menu_item_id":62,"quantity":1},{"id":32541,"menu_item_id":50,"quantity":2},{"id":32542,"menu_item_id":55,"quantity":2},{"id":32543,"menu_item_id":396,"quantity":2},{"id":32544,"menu_item_id":61,"quantity":2},{"id":32545,"menu_item_id":56,"quantity":1},{"id":32546,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 17:29:00] local.INFO: PosOrderController::update - Item changes check {"order_id":6823,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","62|1|","50|2|","55|2|","396|2|","61|2|","56|2|","5|1|"],"new_items_map_keys":["114|1|","62|1|","50|2|","55|2|","396|2|","61|2|","56|1|","5|1|"]} 
[2026-04-04 17:29:00] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6823,"order_number":"AZS-040426-010"} 
[2026-04-04 17:29:00] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-010","replaced_order_id":6823} 
[2026-04-04 17:29:00] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6838,"items_count":8,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-04 17:29:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6838,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6838}} 
[2026-04-04 17:29:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6838,"item_index":0,"menu_item_id":114} 
[2026-04-04 17:29:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6838,"item_index":1,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6838}} 
[2026-04-04 17:29:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6838,"item_index":1,"menu_item_id":62} 
[2026-04-04 17:29:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6838,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6838}} 
[2026-04-04 17:29:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6838,"item_index":2,"menu_item_id":50} 
[2026-04-04 17:29:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6838,"item_index":3,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6838}} 
[2026-04-04 17:29:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6838,"item_index":3,"menu_item_id":55} 
[2026-04-04 17:29:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6838,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6838}} 
[2026-04-04 17:29:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6838,"item_index":4,"menu_item_id":396} 
[2026-04-04 17:29:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6838,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6838}} 
[2026-04-04 17:29:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6838,"item_index":5,"menu_item_id":61} 
[2026-04-04 17:29:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6838,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6838}} 
[2026-04-04 17:29:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6838,"item_index":6,"menu_item_id":56} 
[2026-04-04 17:29:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6838,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6838}} 
[2026-04-04 17:29:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6838,"item_index":7,"menu_item_id":5} 
[2026-04-04 17:29:00] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6823,"new_order_id":6838,"order_number":"AZS-040426-010"} 
[2026-04-04 17:32:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6838,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32644},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":32645},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32646},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":32647},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32648},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32649},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32650},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32651}],"validated_items":[{"id":32644,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32645,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":32646,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32647,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":32648,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32649,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32650,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32651,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-04 17:32:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6838,"items_count":8} 
[2026-04-04 17:32:02] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32644,"menu_item_id":114,"quantity":1},{"id":32645,"menu_item_id":62,"quantity":1},{"id":32646,"menu_item_id":50,"quantity":2},{"id":32647,"menu_item_id":55,"quantity":2},{"id":32648,"menu_item_id":396,"quantity":2},{"id":32649,"menu_item_id":61,"quantity":2},{"id":32650,"menu_item_id":56,"quantity":1},{"id":32651,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 17:32:02] local.INFO: PosOrderController::update - Item changes check {"order_id":6838,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","62|1|","50|2|","55|2|","396|2|","61|2|","56|1|","5|1|"],"new_items_map_keys":["114|1|","62|1|","50|2|","55|2|","396|2|","61|2|","56|1|","5|1|"]} 
[2026-04-04 17:32:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6838,"order_number":"AZS-040426-010"} 
[2026-04-04 17:32:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6838,"order_number":"AZS-040426-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 17:32:02"} 
[2026-04-04 17:33:24] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6838,"order_number":"AZS-040426-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5140,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 17:33:24"} 
[2026-04-04 17:33:24] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6838,"order_number":"AZS-040426-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5140,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 17:33:24"} 
[2026-04-04 17:33:24] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6838,"order_number":"AZS-040426-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5140,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 17:33:24"} 
[2026-04-04 17:33:24] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6838,"order_number":"AZS-040426-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5140,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 17:33:24"} 
[2026-04-04 17:33:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6838,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32644},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":32645},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32646},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":32647},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32648},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32649},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32650},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32651}],"validated_items":[{"id":32644,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32645,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":32646,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32647,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":32648,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32649,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32650,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32651,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-04 17:33:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6838,"items_count":8} 
[2026-04-04 17:33:24] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32644,"menu_item_id":114,"quantity":1},{"id":32645,"menu_item_id":62,"quantity":1},{"id":32646,"menu_item_id":50,"quantity":2},{"id":32647,"menu_item_id":55,"quantity":2},{"id":32648,"menu_item_id":396,"quantity":2},{"id":32649,"menu_item_id":61,"quantity":1},{"id":32650,"menu_item_id":56,"quantity":1},{"id":32651,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 17:33:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6838,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","62|1|","50|2|","55|2|","396|2|","61|2|","56|1|","5|1|"],"new_items_map_keys":["114|1|","62|1|","50|2|","55|2|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-04-04 17:33:24] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6838,"order_number":"AZS-040426-010","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5140,"new_order_data_payment_mode":"online","new_order_data_paid_at":"2026-04-04 17:33:24","original_payment_amount":"0.00","grand_total":5140.0,"timestamp":"2026-04-04 17:33:24"} 
[2026-04-04 17:33:24] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6838,"order_number":"AZS-040426-010"} 
[2026-04-04 17:33:24] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-010","replaced_order_id":6838} 
[2026-04-04 17:33:24] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6838,"new_order_id":6840,"order_number":"AZS-040426-010","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5140.00","payment_mode_after_creation":"online","paid_at_after_creation":"2026-04-04 17:33:24","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5140,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-04 17:33:24"} 
[2026-04-04 17:33:24] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6840,"items_count":8,"items":[{"menu_item_id":114,"quantity":1,"price":2299.0},{"menu_item_id":62,"quantity":1,"price":1499.0},{"menu_item_id":50,"quantity":2,"price":129.0},{"menu_item_id":55,"quantity":2,"price":159.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-04-04 17:33:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6840,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6840}} 
[2026-04-04 17:33:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6840,"item_index":0,"menu_item_id":114} 
[2026-04-04 17:33:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6840,"item_index":1,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":1499.0,"discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6840}} 
[2026-04-04 17:33:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6840,"item_index":1,"menu_item_id":62} 
[2026-04-04 17:33:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6840,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6840}} 
[2026-04-04 17:33:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6840,"item_index":2,"menu_item_id":50} 
[2026-04-04 17:33:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6840,"item_index":3,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6840}} 
[2026-04-04 17:33:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6840,"item_index":3,"menu_item_id":55} 
[2026-04-04 17:33:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6840,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6840}} 
[2026-04-04 17:33:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6840,"item_index":4,"menu_item_id":396} 
[2026-04-04 17:33:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6840,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6840}} 
[2026-04-04 17:33:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6840,"item_index":5,"menu_item_id":61} 
[2026-04-04 17:33:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6840,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6840}} 
[2026-04-04 17:33:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6840,"item_index":6,"menu_item_id":56} 
[2026-04-04 17:33:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6840,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6840}} 
[2026-04-04 17:33:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6840,"item_index":7,"menu_item_id":5} 
[2026-04-04 17:33:25] local.ERROR: Error tracking recipe usage for order 6840: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6840, 114, 77, 1, 100, 0.00, Order #AZS-040426-010 - 1x Chicken Shinwari - Full, 2026-04-04 17:33:25, 2026-04-04 17:33:25))  
[2026-04-04 17:33:25] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6838,"new_order_id":6840,"order_number":"AZS-040426-010"} 
[2026-04-04 17:33:25] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6838,"new_order_id":6840,"order_number":"AZS-040426-010","route":"api/orders/6838"} 
[2026-04-04 17:38:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6836,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32635}],"validated_items":[{"id":32635,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-04 17:38:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6836,"items_count":1} 
[2026-04-04 17:38:17] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32635,"menu_item_id":6,"quantity":2}]} 
[2026-04-04 17:38:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6836,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-04-04 17:38:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6836,"order_number":"AZS-040426-017"} 
[2026-04-04 17:38:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6836,"order_number":"AZS-040426-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 17:38:17"} 
[2026-04-04 17:41:28] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6836,"order_number":"AZS-040426-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":500,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 17:41:28"} 
[2026-04-04 17:41:28] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6836,"order_number":"AZS-040426-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 17:41:28"} 
[2026-04-04 17:41:28] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6836,"order_number":"AZS-040426-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 17:41:28"} 
[2026-04-04 17:41:28] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6836,"order_number":"AZS-040426-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 17:41:28"} 
[2026-04-04 17:41:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6836,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32635}],"validated_items":[{"id":32635,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-04 17:41:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6836,"items_count":1} 
[2026-04-04 17:41:28] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32635,"menu_item_id":6,"quantity":2}]} 
[2026-04-04 17:41:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6836,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-04-04 17:41:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6836,"order_number":"AZS-040426-017"} 
[2026-04-04 17:41:28] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6836,"order_number":"AZS-040426-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":500,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-04 17:41:28","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-04 17:41:28"} 
[2026-04-04 17:41:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6836,"order_number":"AZS-040426-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-04 17:41:28"} 
[2026-04-04 17:41:28] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6836,"order_number":"AZS-040426-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"500.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-04 17:41:28","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"500.00","database_verification_match":true,"timestamp":"2026-04-04 17:41:28"} 
[2026-04-04 17:47:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T05:47:49.099Z","date_to":"2026-04-04T17:47:49.099Z","per_page":"100"} 
[2026-04-04 17:47:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T05:47:49.115Z","date_to":"2026-04-04T17:47:49.115Z","per_page":"100"} 
[2026-04-04 17:47:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","pending","paid","pending","pending","pending","pending","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":8,"unique_order_numbers":19} 
[2026-04-04 17:47:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","pending","paid","pending","pending","pending","pending","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":8,"unique_order_numbers":19} 
[2026-04-04 17:47:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T05:47:49.099Z","date_to":"2026-04-04T17:47:49.099Z","per_page":"100"} 
[2026-04-04 17:47:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","pending","paid","pending","pending","pending","pending","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":8,"unique_order_numbers":19} 
[2026-04-04 17:48:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6830,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":382,"quantity":1,"discount_percent":0,"notes":null,"id":32607},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32607,"menu_item_id":382,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-04 17:48:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6830,"items_count":2} 
[2026-04-04 17:48:09] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32607,"menu_item_id":382,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-04 17:48:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6830,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["382|1|"],"new_items_map_keys":["382|1|","3|1|"]} 
[2026-04-04 17:48:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6830,"order_number":"AZS-040426-013"} 
[2026-04-04 17:48:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-013","replaced_order_id":6830} 
[2026-04-04 17:48:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6842,"items_count":2,"items":[{"menu_item_id":382,"quantity":1,"price":"8999.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-04 17:48:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6842,"item_index":0,"item_data":{"menu_item_id":382,"restaurant_category_id":37,"restaurant_category_name":"FAMILY PLATTER","item_name":"Family Platter 8 Person","quantity":1,"price":"8999.00","discount_percent":0.0,"discount_amount":0.0,"total":8999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6842}} 
[2026-04-04 17:48:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6842,"item_index":0,"menu_item_id":382} 
[2026-04-04 17:48:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6842,"item_index":1,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6842}} 
[2026-04-04 17:48:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6842,"item_index":1,"menu_item_id":3} 
[2026-04-04 17:48:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6830,"new_order_id":6842,"order_number":"AZS-040426-013"} 
[2026-04-04 17:49:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T05:49:17.609Z","date_to":"2026-04-04T17:49:17.609Z","per_page":"100"} 
[2026-04-04 17:49:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-020","AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","pending","pending","paid","pending","pending","pending","pending","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":9,"unique_order_numbers":20} 
[2026-04-04 17:49:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T05:49:17.617Z","date_to":"2026-04-04T17:49:17.617Z","per_page":"100"} 
[2026-04-04 17:49:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-020","AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","pending","pending","paid","pending","pending","pending","pending","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":9,"unique_order_numbers":20} 
[2026-04-04 17:49:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T05:49:17.609Z","date_to":"2026-04-04T17:49:17.609Z","per_page":"100"} 
[2026-04-04 17:49:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":20,"count":20,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-020","AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","pending","pending","paid","pending","pending","pending","pending","pending","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":9,"unique_order_numbers":20} 
[2026-04-04 17:50:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6835,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":7,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":32634}],"validated_items":[{"id":32634,"menu_item_id":7,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-04 17:50:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6835,"items_count":1} 
[2026-04-04 17:50:48] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32634,"menu_item_id":7,"quantity":2}]} 
[2026-04-04 17:50:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6835,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["7|2|"],"new_items_map_keys":["7|2|"]} 
[2026-04-04 17:50:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6835,"order_number":"AZS-040426-016"} 
[2026-04-04 17:50:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6835,"order_number":"AZS-040426-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 17:50:48"} 
[2026-04-04 17:51:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6833,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":32623},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":32624},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32625},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32623,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":32624,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":32625,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-04 17:51:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6833,"items_count":4} 
[2026-04-04 17:51:10] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32623,"menu_item_id":98,"quantity":1},{"id":32624,"menu_item_id":396,"quantity":2},{"id":32625,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-04-04 17:51:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6833,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["98|1|","396|2|","5|1|"],"new_items_map_keys":["98|1|","396|2|","5|1|","2|1|"]} 
[2026-04-04 17:51:10] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6833,"order_number":"AZS-040426-015"} 
[2026-04-04 17:51:10] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-015","replaced_order_id":6833} 
[2026-04-04 17:51:10] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6844,"items_count":4,"items":[{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-04-04 17:51:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6844,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6844}} 
[2026-04-04 17:51:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6844,"item_index":0,"menu_item_id":98} 
[2026-04-04 17:51:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6844,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6844}} 
[2026-04-04 17:51:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6844,"item_index":1,"menu_item_id":396} 
[2026-04-04 17:51:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6844,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6844}} 
[2026-04-04 17:51:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6844,"item_index":2,"menu_item_id":5} 
[2026-04-04 17:51:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6844,"item_index":3,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6844}} 
[2026-04-04 17:51:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6844,"item_index":3,"menu_item_id":2} 
[2026-04-04 17:51:10] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6833,"new_order_id":6844,"order_number":"AZS-040426-015"} 
[2026-04-04 17:56:15] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6835,"order_number":"AZS-040426-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":523,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 17:56:15"} 
[2026-04-04 17:56:15] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6835,"order_number":"AZS-040426-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":523,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 17:56:15"} 
[2026-04-04 17:56:15] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6835,"order_number":"AZS-040426-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":523,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 17:56:15"} 
[2026-04-04 17:56:15] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6835,"order_number":"AZS-040426-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":523,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 17:56:15"} 
[2026-04-04 17:56:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6835,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":7,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":32634}],"validated_items":[{"id":32634,"menu_item_id":7,"quantity":2,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-04 17:56:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6835,"items_count":1} 
[2026-04-04 17:56:15] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32634,"menu_item_id":7,"quantity":2}]} 
[2026-04-04 17:56:15] local.INFO: PosOrderController::update - Item changes check {"order_id":6835,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["7|2|"],"new_items_map_keys":["7|2|"]} 
[2026-04-04 17:56:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6835,"order_number":"AZS-040426-016"} 
[2026-04-04 17:56:15] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6835,"order_number":"AZS-040426-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":523,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-04 17:56:15","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-04 17:56:15"} 
[2026-04-04 17:56:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6835,"order_number":"AZS-040426-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-04 17:56:15"} 
[2026-04-04 17:56:15] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6835,"order_number":"AZS-040426-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"523.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-04 17:56:15","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":523,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"523.00","database_verification_match":true,"timestamp":"2026-04-04 17:56:15"} 
[2026-04-04 17:57:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6837,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32636},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":32637},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32638},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":32639},{"menu_item_id":4,"quantity":3,"price":90,"discount_percent":0,"notes":null,"id":32640},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32641},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32642},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":32643}],"validated_items":[{"id":32636,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32637,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":32638,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32639,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":32640,"menu_item_id":4,"quantity":3,"price":90,"discount_percent":0,"notes":null},{"id":32641,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32642,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32643,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-04 17:57:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6837,"items_count":8} 
[2026-04-04 17:57:35] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32636,"menu_item_id":105,"quantity":1},{"id":32637,"menu_item_id":65,"quantity":1},{"id":32638,"menu_item_id":50,"quantity":2},{"id":32639,"menu_item_id":396,"quantity":1},{"id":32640,"menu_item_id":4,"quantity":3},{"id":32641,"menu_item_id":61,"quantity":1},{"id":32642,"menu_item_id":56,"quantity":1},{"id":32643,"menu_item_id":2,"quantity":2}]} 
[2026-04-04 17:57:35] local.INFO: PosOrderController::update - Item changes check {"order_id":6837,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["105|1|","65|1|","50|2|","396|1|","4|3|","61|1|","56|1|","2|2|"],"new_items_map_keys":["105|1|","65|1|","50|2|","396|1|","4|3|","61|1|","56|1|","2|2|"]} 
[2026-04-04 17:57:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6837,"order_number":"AZS-040426-014"} 
[2026-04-04 17:57:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6837,"order_number":"AZS-040426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 17:57:35"} 
[2026-04-04 18:01:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6843,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":32666},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":32667},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":32668},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32669},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32671}],"validated_items":[{"id":32666,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":32667,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":32668,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":32669,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32671,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:01:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6843,"items_count":5} 
[2026-04-04 18:01:58] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[32670],"items":[{"id":32666,"menu_item_id":65,"quantity":1},{"id":32667,"menu_item_id":95,"quantity":1},{"id":32668,"menu_item_id":396,"quantity":3},{"id":32669,"menu_item_id":61,"quantity":1},{"id":32671,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 18:01:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6843,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["65|1|","95|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["65|1|","95|1|","396|3|","61|1|","5|1|"]} 
[2026-04-04 18:01:58] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6843,"order_number":"AZS-040426-020"} 
[2026-04-04 18:01:58] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-020","replaced_order_id":6843} 
[2026-04-04 18:01:58] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6845,"items_count":5,"items":[{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-04 18:01:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6845,"item_index":0,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6845}} 
[2026-04-04 18:01:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6845,"item_index":0,"menu_item_id":65} 
[2026-04-04 18:01:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6845,"item_index":1,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6845}} 
[2026-04-04 18:01:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6845,"item_index":1,"menu_item_id":95} 
[2026-04-04 18:01:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6845,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6845}} 
[2026-04-04 18:01:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6845,"item_index":2,"menu_item_id":396} 
[2026-04-04 18:01:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6845,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6845}} 
[2026-04-04 18:01:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6845,"item_index":3,"menu_item_id":61} 
[2026-04-04 18:01:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6845,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6845}} 
[2026-04-04 18:01:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6845,"item_index":4,"menu_item_id":5} 
[2026-04-04 18:01:58] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6843,"new_order_id":6845,"order_number":"AZS-040426-020"} 
[2026-04-04 18:02:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6837,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32636},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":32637},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32638},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":32639},{"menu_item_id":4,"quantity":3,"price":90,"discount_percent":0,"notes":null,"id":32640},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32641},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32642},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":32643}],"validated_items":[{"id":32636,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32637,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":32638,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32639,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":32640,"menu_item_id":4,"quantity":3,"price":90,"discount_percent":0,"notes":null},{"id":32641,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32642,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32643,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:02:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6837,"items_count":8} 
[2026-04-04 18:02:12] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32636,"menu_item_id":105,"quantity":1},{"id":32637,"menu_item_id":65,"quantity":1},{"id":32638,"menu_item_id":50,"quantity":2},{"id":32639,"menu_item_id":396,"quantity":1},{"id":32640,"menu_item_id":4,"quantity":3},{"id":32641,"menu_item_id":61,"quantity":1},{"id":32642,"menu_item_id":56,"quantity":1},{"id":32643,"menu_item_id":2,"quantity":2}]} 
[2026-04-04 18:02:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6837,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["105|1|","65|1|","50|2|","396|1|","4|3|","61|1|","56|1|","2|2|"],"new_items_map_keys":["105|1|","65|1|","50|2|","396|1|","4|3|","61|1|","56|1|","2|2|"]} 
[2026-04-04 18:02:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6837,"order_number":"AZS-040426-014"} 
[2026-04-04 18:02:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6837,"order_number":"AZS-040426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 18:02:12"} 
[2026-04-04 18:03:54] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6837,"order_number":"AZS-040426-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 18:03:54"} 
[2026-04-04 18:03:54] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6837,"order_number":"AZS-040426-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 18:03:54"} 
[2026-04-04 18:03:54] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6837,"order_number":"AZS-040426-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 18:03:54"} 
[2026-04-04 18:03:54] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6837,"order_number":"AZS-040426-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 18:03:54"} 
[2026-04-04 18:03:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":1,"order_id":6837,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32636},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":32637},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":32638},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":32639},{"menu_item_id":4,"quantity":3,"price":90,"discount_percent":0,"notes":null,"id":32640},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32642},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":32643}],"validated_items":[{"id":32636,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32637,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":32638,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":32639,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":32640,"menu_item_id":4,"quantity":3,"price":90,"discount_percent":0,"notes":null},{"id":32642,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32643,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:03:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6837,"items_count":7} 
[2026-04-04 18:03:54] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":1,"items_to_remove":[32641],"items":[{"id":32636,"menu_item_id":105,"quantity":1},{"id":32637,"menu_item_id":65,"quantity":1},{"id":32638,"menu_item_id":50,"quantity":2},{"id":32639,"menu_item_id":396,"quantity":1},{"id":32640,"menu_item_id":4,"quantity":3},{"id":32642,"menu_item_id":56,"quantity":1},{"id":32643,"menu_item_id":2,"quantity":2}]} 
[2026-04-04 18:03:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6837,"has_item_changes":true,"old_items_count":8,"new_items_count":7,"old_items_map_keys":["105|1|","65|1|","50|2|","396|1|","4|3|","61|1|","56|1|","2|2|"],"new_items_map_keys":["105|1|","65|1|","50|2|","396|1|","4|3|","56|1|","2|2|"]} 
[2026-04-04 18:03:54] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6837,"order_number":"AZS-040426-014","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-04 18:03:54","original_payment_amount":"0.00","grand_total":4584.0,"timestamp":"2026-04-04 18:03:54"} 
[2026-04-04 18:03:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6837,"order_number":"AZS-040426-014"} 
[2026-04-04 18:03:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-014","replaced_order_id":6837} 
[2026-04-04 18:03:54] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6837,"new_order_id":6846,"order_number":"AZS-040426-014","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-04 18:03:54","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-04 18:03:54"} 
[2026-04-04 18:03:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6846,"items_count":7,"items":[{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":65,"quantity":1,"price":1299.0},{"menu_item_id":50,"quantity":2,"price":129.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":4,"quantity":3,"price":90.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":2,"quantity":2,"price":130.0}]} 
[2026-04-04 18:03:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6846,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6846}} 
[2026-04-04 18:03:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6846,"item_index":0,"menu_item_id":105} 
[2026-04-04 18:03:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6846,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6846}} 
[2026-04-04 18:03:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6846,"item_index":1,"menu_item_id":65} 
[2026-04-04 18:03:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6846,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6846}} 
[2026-04-04 18:03:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6846,"item_index":2,"menu_item_id":50} 
[2026-04-04 18:03:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6846,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6846}} 
[2026-04-04 18:03:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6846,"item_index":3,"menu_item_id":396} 
[2026-04-04 18:03:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6846,"item_index":4,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":3,"price":90.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6846}} 
[2026-04-04 18:03:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6846,"item_index":4,"menu_item_id":4} 
[2026-04-04 18:03:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6846,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6846}} 
[2026-04-04 18:03:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6846,"item_index":5,"menu_item_id":56} 
[2026-04-04 18:03:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6846,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6846}} 
[2026-04-04 18:03:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6846,"item_index":6,"menu_item_id":2} 
[2026-04-04 18:03:54] local.ERROR: Error tracking recipe usage for order 6846: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6846, 105, 196, 1, 500, 0.00, Order #AZS-040426-014 - 1x Mutton Shinwari - Half, 2026-04-04 18:03:54, 2026-04-04 18:03:54))  
[2026-04-04 18:03:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6837,"new_order_id":6846,"order_number":"AZS-040426-014"} 
[2026-04-04 18:03:54] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6837,"new_order_id":6846,"order_number":"AZS-040426-014","route":"api/orders/6837"} 
[2026-04-04 18:05:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6841,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null,"id":32663},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32663,"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:05:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6841,"items_count":7} 
[2026-04-04 18:05:50] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32663,"menu_item_id":29,"quantity":2},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":112,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 18:05:50] local.INFO: PosOrderController::update - Item changes check {"order_id":6841,"has_item_changes":true,"old_items_count":1,"new_items_count":7,"old_items_map_keys":["29|2|"],"new_items_map_keys":["29|2|","105|1|","112|1|","52|3|","61|1|","56|1|","5|1|"]} 
[2026-04-04 18:05:50] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6841,"order_number":"AZS-040426-019"} 
[2026-04-04 18:05:50] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-019","replaced_order_id":6841} 
[2026-04-04 18:05:50] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6847,"items_count":7,"items":[{"menu_item_id":29,"quantity":2,"price":"250.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":52,"quantity":3,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-04 18:05:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6847,"item_index":0,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6847}} 
[2026-04-04 18:05:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6847,"item_index":0,"menu_item_id":29} 
[2026-04-04 18:05:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6847,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6847}} 
[2026-04-04 18:05:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6847,"item_index":1,"menu_item_id":105} 
[2026-04-04 18:05:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6847,"item_index":2,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6847}} 
[2026-04-04 18:05:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6847,"item_index":2,"menu_item_id":112} 
[2026-04-04 18:05:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6847,"item_index":3,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6847}} 
[2026-04-04 18:05:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6847,"item_index":3,"menu_item_id":52} 
[2026-04-04 18:05:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6847,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6847}} 
[2026-04-04 18:05:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6847,"item_index":4,"menu_item_id":61} 
[2026-04-04 18:05:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6847,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6847}} 
[2026-04-04 18:05:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6847,"item_index":5,"menu_item_id":56} 
[2026-04-04 18:05:50] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6847,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6847}} 
[2026-04-04 18:05:50] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6847,"item_index":6,"menu_item_id":5} 
[2026-04-04 18:05:50] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6841,"new_order_id":6847,"order_number":"AZS-040426-019"} 
[2026-04-04 18:06:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6844,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32672},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32673},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32674},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":32675}],"validated_items":[{"id":32672,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32673,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32674,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32675,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:06:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6844,"items_count":4} 
[2026-04-04 18:06:19] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32672,"menu_item_id":98,"quantity":1},{"id":32673,"menu_item_id":396,"quantity":2},{"id":32674,"menu_item_id":5,"quantity":1},{"id":32675,"menu_item_id":2,"quantity":1}]} 
[2026-04-04 18:06:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6844,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["98|1|","396|2|","5|1|","2|1|"],"new_items_map_keys":["98|1|","396|2|","5|1|","2|1|"]} 
[2026-04-04 18:06:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6844,"order_number":"AZS-040426-015"} 
[2026-04-04 18:06:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6844,"order_number":"AZS-040426-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 18:06:19"} 
[2026-04-04 18:08:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6842,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":382,"quantity":1,"price":8999,"discount_percent":0,"notes":null,"id":32664},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32665}],"validated_items":[{"id":32664,"menu_item_id":382,"quantity":1,"price":8999,"discount_percent":0,"notes":null},{"id":32665,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:08:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6842,"items_count":2} 
[2026-04-04 18:08:57] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32664,"menu_item_id":382,"quantity":1},{"id":32665,"menu_item_id":3,"quantity":1}]} 
[2026-04-04 18:08:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6842,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["382|1|","3|1|"],"new_items_map_keys":["382|1|","3|1|"]} 
[2026-04-04 18:08:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6842,"order_number":"AZS-040426-013"} 
[2026-04-04 18:08:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6842,"order_number":"AZS-040426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 18:08:57"} 
[2026-04-04 18:09:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6842,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":382,"quantity":1,"discount_percent":0,"notes":null,"id":32664},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":32665},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32664,"menu_item_id":382,"quantity":1,"discount_percent":0,"notes":null},{"id":32665,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:09:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6842,"items_count":3} 
[2026-04-04 18:09:15] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32664,"menu_item_id":382,"quantity":1},{"id":32665,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 18:09:15] local.INFO: PosOrderController::update - Item changes check {"order_id":6842,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["382|1|","3|1|"],"new_items_map_keys":["382|1|","3|1|","5|1|"]} 
[2026-04-04 18:09:15] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6842,"order_number":"AZS-040426-013"} 
[2026-04-04 18:09:15] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-013","replaced_order_id":6842} 
[2026-04-04 18:09:15] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6848,"items_count":3,"items":[{"menu_item_id":382,"quantity":1,"price":"8999.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-04 18:09:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6848,"item_index":0,"item_data":{"menu_item_id":382,"restaurant_category_id":37,"restaurant_category_name":"FAMILY PLATTER","item_name":"Family Platter 8 Person","quantity":1,"price":"8999.00","discount_percent":0.0,"discount_amount":0.0,"total":8999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6848}} 
[2026-04-04 18:09:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6848,"item_index":0,"menu_item_id":382} 
[2026-04-04 18:09:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6848,"item_index":1,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6848}} 
[2026-04-04 18:09:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6848,"item_index":1,"menu_item_id":3} 
[2026-04-04 18:09:15] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6848,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6848}} 
[2026-04-04 18:09:15] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6848,"item_index":2,"menu_item_id":5} 
[2026-04-04 18:09:15] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6842,"new_order_id":6848,"order_number":"AZS-040426-013"} 
[2026-04-04 18:09:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6848,"item_index":0,"item_id":32664} 
[2026-04-04 18:09:21] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6848,"item_index":1,"item_id":32665} 
[2026-04-04 18:09:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":6848,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":382,"quantity":1,"price":8999,"discount_percent":0,"notes":null,"id":32664},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32665},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":382,"quantity":1,"price":8999,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:09:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6848,"items_count":3} 
[2026-04-04 18:09:21] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[32695,32696,32697],"items":[{"id":null,"menu_item_id":382,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 18:09:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6848,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["382|1|","3|1|","5|1|"],"new_items_map_keys":["382|1|","3|1|","5|1|"]} 
[2026-04-04 18:09:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6848,"order_number":"AZS-040426-013"} 
[2026-04-04 18:09:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6848,"order_number":"AZS-040426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 18:09:21"} 
[2026-04-04 18:13:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6848,"item_index":0,"item_id":32664} 
[2026-04-04 18:13:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6848,"item_index":1,"item_id":32665} 
[2026-04-04 18:13:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":6848,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":382,"quantity":1,"price":8999,"discount_percent":0,"notes":null,"id":32664},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32665},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":382,"quantity":1,"price":8999,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:13:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6848,"items_count":3} 
[2026-04-04 18:13:36] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[32695,32696,32697],"items":[{"id":null,"menu_item_id":382,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 18:13:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6848,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["382|1|","3|1|","5|1|"],"new_items_map_keys":["382|1|","3|1|","5|1|"]} 
[2026-04-04 18:13:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6848,"order_number":"AZS-040426-013"} 
[2026-04-04 18:13:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6848,"order_number":"AZS-040426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 18:13:36"} 
[2026-04-04 18:14:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":1,"order_id":6844,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32672},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32673},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":32675}],"validated_items":[{"id":32672,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32673,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32675,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:14:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6844,"items_count":3} 
[2026-04-04 18:14:02] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":1,"items_to_remove":[32674],"items":[{"id":32672,"menu_item_id":98,"quantity":1},{"id":32673,"menu_item_id":396,"quantity":2},{"id":32675,"menu_item_id":2,"quantity":1}]} 
[2026-04-04 18:14:02] local.INFO: PosOrderController::update - Item changes check {"order_id":6844,"has_item_changes":true,"old_items_count":4,"new_items_count":3,"old_items_map_keys":["98|1|","396|2|","5|1|","2|1|"],"new_items_map_keys":["98|1|","396|2|","2|1|"]} 
[2026-04-04 18:14:02] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6844,"order_number":"AZS-040426-015"} 
[2026-04-04 18:14:02] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-015","replaced_order_id":6844} 
[2026-04-04 18:14:02] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6849,"items_count":3,"items":[{"menu_item_id":98,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":2,"quantity":1,"price":130.0}]} 
[2026-04-04 18:14:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6849,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6849}} 
[2026-04-04 18:14:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6849,"item_index":0,"menu_item_id":98} 
[2026-04-04 18:14:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6849,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6849}} 
[2026-04-04 18:14:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6849,"item_index":1,"menu_item_id":396} 
[2026-04-04 18:14:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6849,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6849}} 
[2026-04-04 18:14:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6849,"item_index":2,"menu_item_id":2} 
[2026-04-04 18:14:02] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6844,"new_order_id":6849,"order_number":"AZS-040426-015"} 
[2026-04-04 18:14:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6849,"item_index":0,"item_id":32672} 
[2026-04-04 18:14:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6849,"item_index":1,"item_id":32673} 
[2026-04-04 18:14:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6849,"item_index":2,"item_id":32675} 
[2026-04-04 18:14:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":6849,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32672},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32673},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":32675}],"validated_items":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:14:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6849,"items_count":3} 
[2026-04-04 18:14:07] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[32698,32699,32700],"items":[{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-04-04 18:14:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6849,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["98|1|","396|2|","2|1|"],"new_items_map_keys":["98|1|","396|2|","2|1|"]} 
[2026-04-04 18:14:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6849,"order_number":"AZS-040426-015"} 
[2026-04-04 18:14:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6849,"order_number":"AZS-040426-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 18:14:07"} 
[2026-04-04 18:15:41] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6849,"order_number":"AZS-040426-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1603,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 18:15:41"} 
[2026-04-04 18:15:41] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6849,"order_number":"AZS-040426-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1603,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 18:15:41"} 
[2026-04-04 18:15:41] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6849,"order_number":"AZS-040426-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1603,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 18:15:41"} 
[2026-04-04 18:15:41] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6849,"order_number":"AZS-040426-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1603,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 18:15:41"} 
[2026-04-04 18:15:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6849,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32698},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32699},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":32700}],"validated_items":[{"id":32698,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32699,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32700,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:15:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6849,"items_count":3} 
[2026-04-04 18:15:41] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32698,"menu_item_id":98,"quantity":1},{"id":32699,"menu_item_id":396,"quantity":2},{"id":32700,"menu_item_id":2,"quantity":1}]} 
[2026-04-04 18:15:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6849,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["98|1|","396|2|","2|1|"],"new_items_map_keys":["98|1|","396|2|","2|1|"]} 
[2026-04-04 18:15:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6849,"order_number":"AZS-040426-015"} 
[2026-04-04 18:15:41] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6849,"order_number":"AZS-040426-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1603,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-04 18:15:41","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-04 18:15:41"} 
[2026-04-04 18:15:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6849,"order_number":"AZS-040426-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-04 18:15:41"} 
[2026-04-04 18:15:41] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6849,"order_number":"AZS-040426-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1603.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-04 18:15:41","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1603,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1603.00","database_verification_match":true,"timestamp":"2026-04-04 18:15:41"} 
[2026-04-04 18:16:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6839,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":32652},{"menu_item_id":139,"quantity":1,"price":799,"discount_percent":0,"notes":null,"id":32653},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32654}],"validated_items":[{"id":32652,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":32653,"menu_item_id":139,"quantity":1,"price":799,"discount_percent":0,"notes":null},{"id":32654,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:16:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6839,"items_count":3} 
[2026-04-04 18:16:03] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32652,"menu_item_id":112,"quantity":1},{"id":32653,"menu_item_id":139,"quantity":1},{"id":32654,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 18:16:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6839,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["112|1|","139|1|","5|1|"],"new_items_map_keys":["112|1|","139|1|","5|1|"]} 
[2026-04-04 18:16:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6839,"order_number":"AZS-040426-018"} 
[2026-04-04 18:16:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6839,"order_number":"AZS-040426-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 18:16:03"} 
[2026-04-04 18:17:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6827,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32574},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32575},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32576},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32577},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32578}],"validated_items":[{"id":32574,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32575,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32576,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32577,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32578,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:17:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6827,"items_count":5} 
[2026-04-04 18:17:59] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32574,"menu_item_id":113,"quantity":1},{"id":32575,"menu_item_id":396,"quantity":2},{"id":32576,"menu_item_id":61,"quantity":1},{"id":32577,"menu_item_id":56,"quantity":1},{"id":32578,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 18:17:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6827,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["113|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["113|1|","396|2|","61|1|","56|1|","5|1|"]} 
[2026-04-04 18:17:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6827,"order_number":"AZS-040426-012"} 
[2026-04-04 18:17:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6827,"order_number":"AZS-040426-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 18:17:59"} 
[2026-04-04 18:18:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6827,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":32574},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":32575},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32576},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32577},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32578},{"menu_item_id":402,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32574,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":32575,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":32576,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32577,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32578,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":402,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:18:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6827,"items_count":6} 
[2026-04-04 18:18:23] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32574,"menu_item_id":113,"quantity":1},{"id":32575,"menu_item_id":396,"quantity":2},{"id":32576,"menu_item_id":61,"quantity":1},{"id":32577,"menu_item_id":56,"quantity":1},{"id":32578,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":402,"quantity":1}]} 
[2026-04-04 18:18:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6827,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["113|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["113|1|","396|2|","61|1|","56|1|","5|1|","402|1|"]} 
[2026-04-04 18:18:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6827,"order_number":"AZS-040426-012"} 
[2026-04-04 18:18:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-012","replaced_order_id":6827} 
[2026-04-04 18:18:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6851,"items_count":6,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":402,"quantity":1,"price":"325.00"}]} 
[2026-04-04 18:18:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6851,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6851}} 
[2026-04-04 18:18:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6851,"item_index":0,"menu_item_id":113} 
[2026-04-04 18:18:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6851,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6851}} 
[2026-04-04 18:18:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6851,"item_index":1,"menu_item_id":396} 
[2026-04-04 18:18:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6851,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6851}} 
[2026-04-04 18:18:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6851,"item_index":2,"menu_item_id":61} 
[2026-04-04 18:18:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6851,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6851}} 
[2026-04-04 18:18:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6851,"item_index":3,"menu_item_id":56} 
[2026-04-04 18:18:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6851,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6851}} 
[2026-04-04 18:18:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6851,"item_index":4,"menu_item_id":5} 
[2026-04-04 18:18:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6851,"item_index":5,"item_data":{"menu_item_id":402,"restaurant_category_id":39,"restaurant_category_name":"DESSERT BAR","item_name":"HOT GULAB JAMUN","quantity":1,"price":"325.00","discount_percent":0.0,"discount_amount":0.0,"total":325.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6851}} 
[2026-04-04 18:18:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6851,"item_index":5,"menu_item_id":402} 
[2026-04-04 18:18:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6827,"new_order_id":6851,"order_number":"AZS-040426-012"} 
[2026-04-04 18:18:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6851,"item_index":0,"item_id":32574} 
[2026-04-04 18:18:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6851,"item_index":1,"item_id":32575} 
[2026-04-04 18:18:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6851,"item_index":2,"item_id":32576} 
[2026-04-04 18:18:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6851,"item_index":3,"item_id":32577} 
[2026-04-04 18:18:30] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6851,"item_index":4,"item_id":32578} 
[2026-04-04 18:18:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6851,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32574},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32575},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32576},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32577},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32578},{"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:18:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6851,"items_count":6} 
[2026-04-04 18:18:30] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[32706,32707,32708,32709,32710,32711],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":402,"quantity":1}]} 
[2026-04-04 18:18:30] local.INFO: PosOrderController::update - Item changes check {"order_id":6851,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","396|2|","61|1|","56|1|","5|1|","402|1|"],"new_items_map_keys":["113|1|","396|2|","61|1|","56|1|","5|1|","402|1|"]} 
[2026-04-04 18:18:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6851,"order_number":"AZS-040426-012"} 
[2026-04-04 18:18:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6851,"order_number":"AZS-040426-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 18:18:30"} 
[2026-04-04 18:23:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6839,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":32652},{"menu_item_id":139,"quantity":1,"price":799,"discount_percent":0,"notes":null,"id":32653},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32654}],"validated_items":[{"id":32652,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":32653,"menu_item_id":139,"quantity":1,"price":799,"discount_percent":0,"notes":null},{"id":32654,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:23:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6839,"items_count":3} 
[2026-04-04 18:23:52] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32652,"menu_item_id":112,"quantity":1},{"id":32653,"menu_item_id":139,"quantity":1},{"id":32654,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 18:23:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6839,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["112|1|","139|1|","5|1|"],"new_items_map_keys":["112|1|","139|1|","5|1|"]} 
[2026-04-04 18:23:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6839,"order_number":"AZS-040426-018"} 
[2026-04-04 18:23:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6839,"order_number":"AZS-040426-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 18:23:52"} 
[2026-04-04 18:24:42] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6852,"order_number":"AZS-040426-022","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":130,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 18:24:42"} 
[2026-04-04 18:24:42] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6852,"order_number":"AZS-040426-022","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":130,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 18:24:42"} 
[2026-04-04 18:24:42] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6852,"order_number":"AZS-040426-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":130,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 18:24:42"} 
[2026-04-04 18:24:42] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6852,"order_number":"AZS-040426-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":130,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 18:24:42"} 
[2026-04-04 18:24:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6852,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":32712}],"validated_items":[{"id":32712,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:24:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6852,"items_count":1} 
[2026-04-04 18:24:42] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32712,"menu_item_id":2,"quantity":1}]} 
[2026-04-04 18:24:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6852,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["2|1|"],"new_items_map_keys":["2|1|"]} 
[2026-04-04 18:24:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6852,"order_number":"AZS-040426-022"} 
[2026-04-04 18:24:42] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6852,"order_number":"AZS-040426-022","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":130,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-04 18:24:42","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-04 18:24:42"} 
[2026-04-04 18:24:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6852,"order_number":"AZS-040426-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-04 18:24:42"} 
[2026-04-04 18:24:42] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6852,"order_number":"AZS-040426-022","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"130.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-04 18:24:42","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":130,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"130.00","database_verification_match":true,"timestamp":"2026-04-04 18:24:42"} 
[2026-04-04 18:25:18] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6839,"order_number":"AZS-040426-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 18:25:18"} 
[2026-04-04 18:25:18] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6839,"order_number":"AZS-040426-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 18:25:18"} 
[2026-04-04 18:25:18] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6839,"order_number":"AZS-040426-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 18:25:18"} 
[2026-04-04 18:25:18] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6839,"order_number":"AZS-040426-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 18:25:18"} 
[2026-04-04 18:25:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6839,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":32652},{"menu_item_id":139,"quantity":1,"price":799,"discount_percent":0,"notes":null,"id":32653},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32654}],"validated_items":[{"id":32652,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":32653,"menu_item_id":139,"quantity":1,"price":799,"discount_percent":0,"notes":null},{"id":32654,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:25:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6839,"items_count":3} 
[2026-04-04 18:25:18] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32652,"menu_item_id":112,"quantity":1},{"id":32653,"menu_item_id":139,"quantity":1},{"id":32654,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 18:25:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6839,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["112|1|","139|1|","5|1|"],"new_items_map_keys":["112|1|","139|1|","5|1|"]} 
[2026-04-04 18:25:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6839,"order_number":"AZS-040426-018"} 
[2026-04-04 18:25:18] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6839,"order_number":"AZS-040426-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-04 18:25:18","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-04 18:25:18"} 
[2026-04-04 18:25:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6839,"order_number":"AZS-040426-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-04 18:25:18"} 
[2026-04-04 18:25:18] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6839,"order_number":"AZS-040426-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-04 18:25:18","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-04-04 18:25:18"} 
[2026-04-04 18:25:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6848,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":382,"quantity":1,"price":8999,"discount_percent":0,"notes":null,"id":32695},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32696},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32697}],"validated_items":[{"id":32695,"menu_item_id":382,"quantity":1,"price":8999,"discount_percent":0,"notes":null},{"id":32696,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":32697,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:25:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6848,"items_count":3} 
[2026-04-04 18:25:38] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32695,"menu_item_id":382,"quantity":1},{"id":32696,"menu_item_id":3,"quantity":1},{"id":32697,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 18:25:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6848,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["382|1|","3|1|","5|1|"],"new_items_map_keys":["382|1|","3|1|","5|1|"]} 
[2026-04-04 18:25:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6848,"order_number":"AZS-040426-013"} 
[2026-04-04 18:25:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6848,"order_number":"AZS-040426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 18:25:38"} 
[2026-04-04 18:26:37] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6848,"order_number":"AZS-040426-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":9439,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 18:26:37"} 
[2026-04-04 18:26:37] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6848,"order_number":"AZS-040426-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":9439,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 18:26:37"} 
[2026-04-04 18:26:37] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6848,"order_number":"AZS-040426-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":9439,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 18:26:37"} 
[2026-04-04 18:26:37] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6848,"order_number":"AZS-040426-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":9439,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 18:26:37"} 
[2026-04-04 18:26:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6848,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":382,"quantity":1,"price":8999,"discount_percent":0,"notes":null,"id":32695},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32696},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32697}],"validated_items":[{"id":32695,"menu_item_id":382,"quantity":1,"price":8999,"discount_percent":0,"notes":null},{"id":32696,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":32697,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:26:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6848,"items_count":3} 
[2026-04-04 18:26:37] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32695,"menu_item_id":382,"quantity":1},{"id":32696,"menu_item_id":3,"quantity":1},{"id":32697,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 18:26:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6848,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["382|1|","3|1|","5|1|"],"new_items_map_keys":["382|1|","3|1|","5|1|"]} 
[2026-04-04 18:26:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6848,"order_number":"AZS-040426-013"} 
[2026-04-04 18:26:37] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6848,"order_number":"AZS-040426-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":9439,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-04 18:26:37","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-04 18:26:37"} 
[2026-04-04 18:26:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6848,"order_number":"AZS-040426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-04 18:26:37"} 
[2026-04-04 18:26:37] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6848,"order_number":"AZS-040426-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"9439.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-04 18:26:37","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":9439,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"9439.00","database_verification_match":true,"timestamp":"2026-04-04 18:26:37"} 
[2026-04-04 18:27:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6851,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32706},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32707},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32708},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32709},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32710},{"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null,"id":32711}],"validated_items":[{"id":32706,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32707,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32708,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32709,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32710,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32711,"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:27:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6851,"items_count":6} 
[2026-04-04 18:27:22] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32706,"menu_item_id":113,"quantity":1},{"id":32707,"menu_item_id":396,"quantity":2},{"id":32708,"menu_item_id":61,"quantity":1},{"id":32709,"menu_item_id":56,"quantity":1},{"id":32710,"menu_item_id":5,"quantity":1},{"id":32711,"menu_item_id":402,"quantity":1}]} 
[2026-04-04 18:27:22] local.INFO: PosOrderController::update - Item changes check {"order_id":6851,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["113|1|","396|2|","61|1|","56|1|","5|1|","402|1|"],"new_items_map_keys":["113|1|","396|2|","61|1|","56|1|","5|1|","402|1|"]} 
[2026-04-04 18:27:22] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6851,"order_number":"AZS-040426-012"} 
[2026-04-04 18:27:22] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6851,"order_number":"AZS-040426-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 18:27:22"} 
[2026-04-04 18:28:17] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6851,"order_number":"AZS-040426-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2100,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 18:28:17"} 
[2026-04-04 18:28:17] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6851,"order_number":"AZS-040426-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 18:28:17"} 
[2026-04-04 18:28:17] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6851,"order_number":"AZS-040426-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 18:28:17"} 
[2026-04-04 18:28:17] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6851,"order_number":"AZS-040426-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 18:28:17"} 
[2026-04-04 18:28:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6851,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32706},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32707},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32708},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32710},{"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null,"id":32711}],"validated_items":[{"id":32706,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32707,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32708,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32710,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32711,"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:28:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6851,"items_count":5} 
[2026-04-04 18:28:17] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[32709],"items":[{"id":32706,"menu_item_id":113,"quantity":1},{"id":32707,"menu_item_id":396,"quantity":2},{"id":32708,"menu_item_id":61,"quantity":1},{"id":32710,"menu_item_id":5,"quantity":1},{"id":32711,"menu_item_id":402,"quantity":1}]} 
[2026-04-04 18:28:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6851,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["113|1|","396|2|","61|1|","56|1|","5|1|","402|1|"],"new_items_map_keys":["113|1|","396|2|","61|1|","5|1|","402|1|"]} 
[2026-04-04 18:28:17] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6851,"order_number":"AZS-040426-012","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":2100,"new_order_data_payment_mode":"online","new_order_data_paid_at":"2026-04-04 18:28:17","original_payment_amount":"0.00","grand_total":2091.0,"timestamp":"2026-04-04 18:28:17"} 
[2026-04-04 18:28:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6851,"order_number":"AZS-040426-012"} 
[2026-04-04 18:28:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-012","replaced_order_id":6851} 
[2026-04-04 18:28:17] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6851,"new_order_id":6853,"order_number":"AZS-040426-012","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"2100.00","payment_mode_after_creation":"online","paid_at_after_creation":"2026-04-04 18:28:17","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-04 18:28:17"} 
[2026-04-04 18:28:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6853,"items_count":5,"items":[{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":402,"quantity":1,"price":325.0}]} 
[2026-04-04 18:28:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6853,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6853}} 
[2026-04-04 18:28:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6853,"item_index":0,"menu_item_id":113} 
[2026-04-04 18:28:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6853,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6853}} 
[2026-04-04 18:28:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6853,"item_index":1,"menu_item_id":396} 
[2026-04-04 18:28:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6853,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6853}} 
[2026-04-04 18:28:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6853,"item_index":2,"menu_item_id":61} 
[2026-04-04 18:28:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6853,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6853}} 
[2026-04-04 18:28:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6853,"item_index":3,"menu_item_id":5} 
[2026-04-04 18:28:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6853,"item_index":4,"item_data":{"menu_item_id":402,"restaurant_category_id":39,"restaurant_category_name":"DESSERT BAR","item_name":"HOT GULAB JAMUN","quantity":1,"price":325.0,"discount_percent":0.0,"discount_amount":0.0,"total":325.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6853}} 
[2026-04-04 18:28:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6853,"item_index":4,"menu_item_id":402} 
[2026-04-04 18:28:17] local.ERROR: Error tracking recipe usage for order 6853: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6853, 61, 66, 1, 250, 0.00, Order #AZS-040426-012 - 1x Mint Raita, 2026-04-04 18:28:17, 2026-04-04 18:28:17))  
[2026-04-04 18:28:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6851,"new_order_id":6853,"order_number":"AZS-040426-012"} 
[2026-04-04 18:28:19] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6851,"new_order_id":6853,"order_number":"AZS-040426-012","route":"api/orders/6851"} 
[2026-04-04 18:28:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T06:28:25.811Z","date_to":"2026-04-04T18:28:25.811Z","per_page":"100"} 
[2026-04-04 18:28:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T06:28:25.797Z","date_to":"2026-04-04T18:28:25.797Z","per_page":"100"} 
[2026-04-04 18:28:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-022","AZS-040426-021","AZS-040426-020","AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["paid","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":4,"unique_order_numbers":22} 
[2026-04-04 18:28:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-022","AZS-040426-021","AZS-040426-020","AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["paid","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":4,"unique_order_numbers":22} 
[2026-04-04 18:28:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T06:28:25.797Z","date_to":"2026-04-04T18:28:25.797Z","per_page":"100"} 
[2026-04-04 18:28:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-022","AZS-040426-021","AZS-040426-020","AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["paid","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":4,"unique_order_numbers":22} 
[2026-04-04 18:31:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6845,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":32676},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":32677},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":32678},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32679},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32680},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32676,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":32677,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":32678,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":32679,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32680,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:31:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6845,"items_count":6} 
[2026-04-04 18:31:09] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32676,"menu_item_id":65,"quantity":1},{"id":32677,"menu_item_id":95,"quantity":1},{"id":32678,"menu_item_id":396,"quantity":3},{"id":32679,"menu_item_id":61,"quantity":1},{"id":32680,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-04 18:31:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6845,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["65|1|","95|1|","396|3|","61|1|","5|1|"],"new_items_map_keys":["65|1|","95|1|","396|3|","61|1|","5|1|","3|1|"]} 
[2026-04-04 18:31:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6845,"order_number":"AZS-040426-020"} 
[2026-04-04 18:31:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-020","replaced_order_id":6845} 
[2026-04-04 18:31:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6854,"items_count":6,"items":[{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-04 18:31:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6854,"item_index":0,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6854}} 
[2026-04-04 18:31:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6854,"item_index":0,"menu_item_id":65} 
[2026-04-04 18:31:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6854,"item_index":1,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6854}} 
[2026-04-04 18:31:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6854,"item_index":1,"menu_item_id":95} 
[2026-04-04 18:31:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6854,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6854}} 
[2026-04-04 18:31:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6854,"item_index":2,"menu_item_id":396} 
[2026-04-04 18:31:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6854,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6854}} 
[2026-04-04 18:31:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6854,"item_index":3,"menu_item_id":61} 
[2026-04-04 18:31:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6854,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6854}} 
[2026-04-04 18:31:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6854,"item_index":4,"menu_item_id":5} 
[2026-04-04 18:31:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6854,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6854}} 
[2026-04-04 18:31:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6854,"item_index":5,"menu_item_id":3} 
[2026-04-04 18:31:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6845,"new_order_id":6854,"order_number":"AZS-040426-020"} 
[2026-04-04 18:31:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T06:31:19.472Z","date_to":"2026-04-04T18:31:19.472Z","per_page":"100"} 
[2026-04-04 18:31:18] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T06:31:19.459Z","date_to":"2026-04-04T18:31:19.459Z","per_page":"100"} 
[2026-04-04 18:31:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-022","AZS-040426-021","AZS-040426-020","AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["paid","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":4,"unique_order_numbers":22} 
[2026-04-04 18:31:18] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-022","AZS-040426-021","AZS-040426-020","AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["paid","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":4,"unique_order_numbers":22} 
[2026-04-04 18:31:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T06:31:19.459Z","date_to":"2026-04-04T18:31:19.459Z","per_page":"100"} 
[2026-04-04 18:31:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":22,"count":22,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-022","AZS-040426-021","AZS-040426-020","AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["paid","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":18,"unpaid_count":4,"unique_order_numbers":22} 
[2026-04-04 18:54:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6847,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":29,"quantity":5,"discount_percent":0,"notes":null,"id":32688},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":32689},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":32690},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":32691},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32692},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32693},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32694}],"validated_items":[{"id":32688,"menu_item_id":29,"quantity":5,"discount_percent":0,"notes":null},{"id":32689,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":32690,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":32691,"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"id":32692,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32693,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32694,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-04 18:54:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6847,"items_count":7} 
[2026-04-04 18:54:12] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32688,"menu_item_id":29,"quantity":5},{"id":32689,"menu_item_id":105,"quantity":1},{"id":32690,"menu_item_id":112,"quantity":1},{"id":32691,"menu_item_id":52,"quantity":3},{"id":32692,"menu_item_id":61,"quantity":1},{"id":32693,"menu_item_id":56,"quantity":1},{"id":32694,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 18:54:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6847,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["29|2|","105|1|","112|1|","52|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["29|5|","105|1|","112|1|","52|3|","61|1|","56|1|","5|1|"]} 
[2026-04-04 18:54:12] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6847,"order_number":"AZS-040426-019"} 
[2026-04-04 18:54:12] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-019","replaced_order_id":6847} 
[2026-04-04 18:54:12] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6857,"items_count":7,"items":[{"menu_item_id":29,"quantity":5,"price":"250.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":52,"quantity":3,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-04 18:54:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6857,"item_index":0,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":5,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6857}} 
[2026-04-04 18:54:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6857,"item_index":0,"menu_item_id":29} 
[2026-04-04 18:54:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6857,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6857}} 
[2026-04-04 18:54:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6857,"item_index":1,"menu_item_id":105} 
[2026-04-04 18:54:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6857,"item_index":2,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6857}} 
[2026-04-04 18:54:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6857,"item_index":2,"menu_item_id":112} 
[2026-04-04 18:54:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6857,"item_index":3,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6857}} 
[2026-04-04 18:54:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6857,"item_index":3,"menu_item_id":52} 
[2026-04-04 18:54:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6857,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6857}} 
[2026-04-04 18:54:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6857,"item_index":4,"menu_item_id":61} 
[2026-04-04 18:54:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6857,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6857}} 
[2026-04-04 18:54:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6857,"item_index":5,"menu_item_id":56} 
[2026-04-04 18:54:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6857,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6857}} 
[2026-04-04 18:54:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6857,"item_index":6,"menu_item_id":5} 
[2026-04-04 18:54:12] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6847,"new_order_id":6857,"order_number":"AZS-040426-019"} 
[2026-04-04 19:14:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6857,"item_index":0,"item_id":32688} 
[2026-04-04 19:14:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6857,"item_index":1,"item_id":32689} 
[2026-04-04 19:14:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6857,"item_index":2,"item_id":32690} 
[2026-04-04 19:14:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6857,"item_index":3,"item_id":32691} 
[2026-04-04 19:14:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6857,"item_index":4,"item_id":32692} 
[2026-04-04 19:14:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6857,"item_index":5,"item_id":32693} 
[2026-04-04 19:14:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6857,"item_index":6,"item_id":32694} 
[2026-04-04 19:14:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":6857,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":29,"quantity":5,"price":250,"discount_percent":0,"notes":null,"id":32688},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32689},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":32690},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":32691},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32692},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32693},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32694}],"validated_items":[{"menu_item_id":29,"quantity":5,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-04 19:14:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6857,"items_count":7} 
[2026-04-04 19:14:26] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[32734,32735,32736,32737,32738,32739,32740],"items":[{"id":null,"menu_item_id":29,"quantity":5},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":112,"quantity":1},{"id":null,"menu_item_id":52,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 19:14:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6857,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["29|5|","105|1|","112|1|","52|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["29|5|","105|1|","112|1|","52|3|","61|1|","56|1|","5|1|"]} 
[2026-04-04 19:14:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6857,"order_number":"AZS-040426-019"} 
[2026-04-04 19:14:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6857,"order_number":"AZS-040426-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 19:14:26"} 
[2026-04-04 19:14:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6850,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32701},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":32702},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32703},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32704},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32705}],"validated_items":[{"id":32701,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32702,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":32703,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32704,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32705,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-04 19:14:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6850,"items_count":5} 
[2026-04-04 19:14:57] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32701,"menu_item_id":105,"quantity":1},{"id":32702,"menu_item_id":55,"quantity":2},{"id":32703,"menu_item_id":61,"quantity":1},{"id":32704,"menu_item_id":56,"quantity":1},{"id":32705,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 19:14:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6850,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","55|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","55|2|","61|1|","56|1|","5|1|"]} 
[2026-04-04 19:14:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6850,"order_number":"AZS-040426-021"} 
[2026-04-04 19:14:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6850,"order_number":"AZS-040426-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 19:14:57"} 
[2026-04-04 19:15:32] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6855,"order_number":"AZS-040426-023","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":830,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 19:15:32"} 
[2026-04-04 19:15:32] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6855,"order_number":"AZS-040426-023","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":830,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 19:15:32"} 
[2026-04-04 19:15:32] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6855,"order_number":"AZS-040426-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":830,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 19:15:32"} 
[2026-04-04 19:15:32] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6855,"order_number":"AZS-040426-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":830,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 19:15:32"} 
[2026-04-04 19:15:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6855,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":32724}],"validated_items":[{"id":32724,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-04 19:15:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6855,"items_count":1} 
[2026-04-04 19:15:32] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32724,"menu_item_id":13,"quantity":3}]} 
[2026-04-04 19:15:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6855,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["13|3|"],"new_items_map_keys":["13|3|"]} 
[2026-04-04 19:15:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6855,"order_number":"AZS-040426-023"} 
[2026-04-04 19:15:32] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6855,"order_number":"AZS-040426-023","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":830,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-04 19:15:32","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-04 19:15:32"} 
[2026-04-04 19:15:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6855,"order_number":"AZS-040426-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-04 19:15:32"} 
[2026-04-04 19:15:32] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6855,"order_number":"AZS-040426-023","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"830.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-04 19:15:32","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":830,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"830.00","database_verification_match":true,"timestamp":"2026-04-04 19:15:32"} 
[2026-04-04 19:15:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6854,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":32718},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":32719},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":32720},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32721},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32722},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":32723},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":32718,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":32719,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":32720,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":32721,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32722,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32723,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-04 19:15:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6854,"items_count":8} 
[2026-04-04 19:15:48] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32718,"menu_item_id":65,"quantity":1},{"id":32719,"menu_item_id":95,"quantity":1},{"id":32720,"menu_item_id":396,"quantity":3},{"id":32721,"menu_item_id":61,"quantity":1},{"id":32722,"menu_item_id":5,"quantity":1},{"id":32723,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":13,"quantity":1},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-04-04 19:15:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6854,"has_item_changes":true,"old_items_count":6,"new_items_count":8,"old_items_map_keys":["65|1|","95|1|","396|3|","61|1|","5|1|","3|1|"],"new_items_map_keys":["65|1|","95|1|","396|3|","61|1|","5|1|","3|1|","13|1|","6|2|"]} 
[2026-04-04 19:15:48] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6854,"order_number":"AZS-040426-020"} 
[2026-04-04 19:15:48] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-020","replaced_order_id":6854} 
[2026-04-04 19:15:48] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6858,"items_count":8,"items":[{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":13,"quantity":1,"price":"249.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-04-04 19:15:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6858,"item_index":0,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6858}} 
[2026-04-04 19:15:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6858,"item_index":0,"menu_item_id":65} 
[2026-04-04 19:15:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6858,"item_index":1,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6858}} 
[2026-04-04 19:15:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6858,"item_index":1,"menu_item_id":95} 
[2026-04-04 19:15:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6858,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6858}} 
[2026-04-04 19:15:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6858,"item_index":2,"menu_item_id":396} 
[2026-04-04 19:15:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6858,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6858}} 
[2026-04-04 19:15:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6858,"item_index":3,"menu_item_id":61} 
[2026-04-04 19:15:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6858,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6858}} 
[2026-04-04 19:15:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6858,"item_index":4,"menu_item_id":5} 
[2026-04-04 19:15:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6858,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6858}} 
[2026-04-04 19:15:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6858,"item_index":5,"menu_item_id":3} 
[2026-04-04 19:15:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6858,"item_index":6,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6858}} 
[2026-04-04 19:15:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6858,"item_index":6,"menu_item_id":13} 
[2026-04-04 19:15:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6858,"item_index":7,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6858}} 
[2026-04-04 19:15:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6858,"item_index":7,"menu_item_id":6} 
[2026-04-04 19:15:48] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6854,"new_order_id":6858,"order_number":"AZS-040426-020"} 
[2026-04-04 19:17:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6850,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32701},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":32702},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32703},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32704},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32705}],"validated_items":[{"id":32701,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32702,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":32703,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32704,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32705,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-04 19:17:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6850,"items_count":5} 
[2026-04-04 19:17:31] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32701,"menu_item_id":105,"quantity":1},{"id":32702,"menu_item_id":55,"quantity":2},{"id":32703,"menu_item_id":61,"quantity":1},{"id":32704,"menu_item_id":56,"quantity":1},{"id":32705,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 19:17:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6850,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","55|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","55|2|","61|1|","56|1|","5|1|"]} 
[2026-04-04 19:17:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6850,"order_number":"AZS-040426-021"} 
[2026-04-04 19:17:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6850,"order_number":"AZS-040426-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 19:17:31"} 
[2026-04-04 19:18:53] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6850,"order_number":"AZS-040426-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 19:18:53"} 
[2026-04-04 19:18:53] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6850,"order_number":"AZS-040426-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 19:18:53"} 
[2026-04-04 19:18:53] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6850,"order_number":"AZS-040426-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 19:18:53"} 
[2026-04-04 19:18:53] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6850,"order_number":"AZS-040426-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 19:18:53"} 
[2026-04-04 19:18:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":6850,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32701},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":32702},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32704},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32705}],"validated_items":[{"id":32701,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32702,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":32704,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32705,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-04 19:18:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6850,"items_count":4} 
[2026-04-04 19:18:53] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[32703],"items":[{"id":32701,"menu_item_id":105,"quantity":1},{"id":32702,"menu_item_id":55,"quantity":2},{"id":32704,"menu_item_id":56,"quantity":1},{"id":32705,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 19:18:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6850,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["105|1|","55|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","55|2|","56|1|","5|1|"]} 
[2026-04-04 19:18:53] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6850,"order_number":"AZS-040426-021","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-04 19:18:53","original_payment_amount":"0.00","grand_total":2886.0,"timestamp":"2026-04-04 19:18:53"} 
[2026-04-04 19:18:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6850,"order_number":"AZS-040426-021"} 
[2026-04-04 19:18:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-021","replaced_order_id":6850} 
[2026-04-04 19:18:53] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6850,"new_order_id":6859,"order_number":"AZS-040426-021","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-04 19:18:53","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-04 19:18:53"} 
[2026-04-04 19:18:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6859,"items_count":4,"items":[{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":55,"quantity":2,"price":159.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-04-04 19:18:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6859,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6859}} 
[2026-04-04 19:18:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6859,"item_index":0,"menu_item_id":105} 
[2026-04-04 19:18:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6859,"item_index":1,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6859}} 
[2026-04-04 19:18:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6859,"item_index":1,"menu_item_id":55} 
[2026-04-04 19:18:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6859,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6859}} 
[2026-04-04 19:18:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6859,"item_index":2,"menu_item_id":56} 
[2026-04-04 19:18:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6859,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6859}} 
[2026-04-04 19:18:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6859,"item_index":3,"menu_item_id":5} 
[2026-04-04 19:18:53] local.ERROR: Error tracking recipe usage for order 6859: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6859, 105, 196, 1, 500, 0.00, Order #AZS-040426-021 - 1x Mutton Shinwari - Half, 2026-04-04 19:18:53, 2026-04-04 19:18:53))  
[2026-04-04 19:18:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6850,"new_order_id":6859,"order_number":"AZS-040426-021"} 
[2026-04-04 19:18:55] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6850,"new_order_id":6859,"order_number":"AZS-040426-021","route":"api/orders/6850"} 
[2026-04-04 19:19:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T07:19:30.682Z","date_to":"2026-04-04T19:19:30.682Z","per_page":"100"} 
[2026-04-04 19:19:29] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T07:19:30.668Z","date_to":"2026-04-04T19:19:30.668Z","per_page":"100"} 
[2026-04-04 19:19:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-024","AZS-040426-023","AZS-040426-022","AZS-040426-021","AZS-040426-020","AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","paid","paid","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":4,"unique_order_numbers":24} 
[2026-04-04 19:19:29] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-024","AZS-040426-023","AZS-040426-022","AZS-040426-021","AZS-040426-020","AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","paid","paid","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":4,"unique_order_numbers":24} 
[2026-04-04 19:19:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T07:19:30.668Z","date_to":"2026-04-04T19:19:30.668Z","per_page":"100"} 
[2026-04-04 19:19:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-024","AZS-040426-023","AZS-040426-022","AZS-040426-021","AZS-040426-020","AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","paid","paid","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":4,"unique_order_numbers":24} 
[2026-04-04 19:20:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":6857,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":29,"quantity":5,"discount_percent":0,"notes":null,"id":32734},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":32735},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":32736},{"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null,"id":32737},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32738},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32739}],"validated_items":[{"id":32734,"menu_item_id":29,"quantity":5,"discount_percent":0,"notes":null},{"id":32735,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":32736,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":32737,"menu_item_id":52,"quantity":3,"discount_percent":0,"notes":null},{"id":32738,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32739,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-04 19:20:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6857,"items_count":6} 
[2026-04-04 19:20:08] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[32740],"items":[{"id":32734,"menu_item_id":29,"quantity":5},{"id":32735,"menu_item_id":105,"quantity":1},{"id":32736,"menu_item_id":112,"quantity":1},{"id":32737,"menu_item_id":52,"quantity":3},{"id":32738,"menu_item_id":61,"quantity":1},{"id":32739,"menu_item_id":56,"quantity":1}]} 
[2026-04-04 19:20:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6857,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["29|5|","105|1|","112|1|","52|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["29|5|","105|1|","112|1|","52|3|","61|1|","56|1|"]} 
[2026-04-04 19:20:08] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6857,"order_number":"AZS-040426-019"} 
[2026-04-04 19:20:08] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-019","replaced_order_id":6857} 
[2026-04-04 19:20:08] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6860,"items_count":6,"items":[{"menu_item_id":29,"quantity":5,"price":"250.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":52,"quantity":3,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"}]} 
[2026-04-04 19:20:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6860,"item_index":0,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":5,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1250.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6860}} 
[2026-04-04 19:20:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6860,"item_index":0,"menu_item_id":29} 
[2026-04-04 19:20:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6860,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6860}} 
[2026-04-04 19:20:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6860,"item_index":1,"menu_item_id":105} 
[2026-04-04 19:20:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6860,"item_index":2,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6860}} 
[2026-04-04 19:20:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6860,"item_index":2,"menu_item_id":112} 
[2026-04-04 19:20:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6860,"item_index":3,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6860}} 
[2026-04-04 19:20:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6860,"item_index":3,"menu_item_id":52} 
[2026-04-04 19:20:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6860,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6860}} 
[2026-04-04 19:20:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6860,"item_index":4,"menu_item_id":61} 
[2026-04-04 19:20:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6860,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6860}} 
[2026-04-04 19:20:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6860,"item_index":5,"menu_item_id":56} 
[2026-04-04 19:20:08] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6857,"new_order_id":6860,"order_number":"AZS-040426-019"} 
[2026-04-04 19:21:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T07:21:02.099Z","date_to":"2026-04-04T19:21:02.099Z","per_page":"100"} 
[2026-04-04 19:21:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T07:21:02.116Z","date_to":"2026-04-04T19:21:02.116Z","per_page":"100"} 
[2026-04-04 19:21:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-024","AZS-040426-023","AZS-040426-022","AZS-040426-021","AZS-040426-020","AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","paid","paid","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":4,"unique_order_numbers":24} 
[2026-04-04 19:21:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-024","AZS-040426-023","AZS-040426-022","AZS-040426-021","AZS-040426-020","AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","paid","paid","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":4,"unique_order_numbers":24} 
[2026-04-04 19:21:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T07:21:02.099Z","date_to":"2026-04-04T19:21:02.099Z","per_page":"100"} 
[2026-04-04 19:21:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-024","AZS-040426-023","AZS-040426-022","AZS-040426-021","AZS-040426-020","AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","paid","paid","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":20,"unpaid_count":4,"unique_order_numbers":24} 
[2026-04-04 19:22:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6860,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":29,"quantity":5,"price":250,"discount_percent":0,"notes":null,"id":32753},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32754},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":32755},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":32756},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32757},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32758}],"validated_items":[{"id":32753,"menu_item_id":29,"quantity":5,"price":250,"discount_percent":0,"notes":null},{"id":32754,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32755,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":32756,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":32757,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32758,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-04 19:22:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6860,"items_count":6} 
[2026-04-04 19:22:24] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32753,"menu_item_id":29,"quantity":5},{"id":32754,"menu_item_id":105,"quantity":1},{"id":32755,"menu_item_id":112,"quantity":1},{"id":32756,"menu_item_id":52,"quantity":3},{"id":32757,"menu_item_id":61,"quantity":1},{"id":32758,"menu_item_id":56,"quantity":1}]} 
[2026-04-04 19:22:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6860,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["29|5|","105|1|","112|1|","52|3|","61|1|","56|1|"],"new_items_map_keys":["29|5|","105|1|","112|1|","52|3|","61|1|","56|1|"]} 
[2026-04-04 19:22:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6860,"order_number":"AZS-040426-019"} 
[2026-04-04 19:22:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6860,"order_number":"AZS-040426-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 19:22:24"} 
[2026-04-04 19:23:05] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6860,"order_number":"AZS-040426-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 19:23:05"} 
[2026-04-04 19:23:05] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6860,"order_number":"AZS-040426-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 19:23:05"} 
[2026-04-04 19:23:05] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6860,"order_number":"AZS-040426-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 19:23:05"} 
[2026-04-04 19:23:05] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6860,"order_number":"AZS-040426-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 19:23:05"} 
[2026-04-04 19:23:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6860,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":29,"quantity":5,"price":250,"discount_percent":0,"notes":null,"id":32753},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32754},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":32755},{"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":32756},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32757},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32758}],"validated_items":[{"id":32753,"menu_item_id":29,"quantity":5,"price":250,"discount_percent":0,"notes":null},{"id":32754,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32755,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":32756,"menu_item_id":52,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":32757,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32758,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-04 19:23:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6860,"items_count":6} 
[2026-04-04 19:23:05] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32753,"menu_item_id":29,"quantity":5},{"id":32754,"menu_item_id":105,"quantity":1},{"id":32755,"menu_item_id":112,"quantity":1},{"id":32756,"menu_item_id":52,"quantity":3},{"id":32757,"menu_item_id":61,"quantity":1},{"id":32758,"menu_item_id":56,"quantity":1}]} 
[2026-04-04 19:23:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6860,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["29|5|","105|1|","112|1|","52|3|","61|1|","56|1|"],"new_items_map_keys":["29|5|","105|1|","112|1|","52|3|","61|1|","56|1|"]} 
[2026-04-04 19:23:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6860,"order_number":"AZS-040426-019"} 
[2026-04-04 19:23:05] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6860,"order_number":"AZS-040426-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":10000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-04 19:23:05","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-04 19:23:05"} 
[2026-04-04 19:23:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6860,"order_number":"AZS-040426-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-04 19:23:05"} 
[2026-04-04 19:23:05] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6860,"order_number":"AZS-040426-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"10000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-04 19:23:05","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"10000.00","database_verification_match":true,"timestamp":"2026-04-04 19:23:05"} 
[2026-04-04 19:23:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6858,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":32741},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":32742},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":32743},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32744},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32745},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":32746},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null,"id":32747},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":32748}],"validated_items":[{"id":32741,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":32742,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":32743,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":32744,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32745,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32746,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"id":32747,"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"id":32748,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-04 19:23:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6858,"items_count":8} 
[2026-04-04 19:23:23] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32741,"menu_item_id":65,"quantity":1},{"id":32742,"menu_item_id":95,"quantity":1},{"id":32743,"menu_item_id":396,"quantity":3},{"id":32744,"menu_item_id":61,"quantity":1},{"id":32745,"menu_item_id":5,"quantity":1},{"id":32746,"menu_item_id":3,"quantity":1},{"id":32747,"menu_item_id":13,"quantity":1},{"id":32748,"menu_item_id":6,"quantity":2}]} 
[2026-04-04 19:23:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6858,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["65|1|","95|1|","396|3|","61|1|","5|1|","3|1|","13|1|","6|2|"],"new_items_map_keys":["65|1|","95|1|","396|3|","61|1|","5|1|","3|1|","13|1|","6|2|"]} 
[2026-04-04 19:23:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6858,"order_number":"AZS-040426-020"} 
[2026-04-04 19:23:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6858,"order_number":"AZS-040426-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-04 19:23:23"} 
[2026-04-04 19:23:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6856,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":32725},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":32726},{"menu_item_id":71,"quantity":1,"discount_percent":0,"notes":null,"id":32727},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":32728},{"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null,"id":32729},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":32730},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32731},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32732},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32733}],"validated_items":[{"id":32725,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":32726,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":32727,"menu_item_id":71,"quantity":1,"discount_percent":0,"notes":null},{"id":32728,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":32729,"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null},{"id":32730,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":32731,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32732,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32733,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-04 19:23:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6856,"items_count":9} 
[2026-04-04 19:23:32] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32725,"menu_item_id":113,"quantity":1},{"id":32726,"menu_item_id":62,"quantity":1},{"id":32727,"menu_item_id":71,"quantity":1},{"id":32728,"menu_item_id":50,"quantity":1},{"id":32729,"menu_item_id":55,"quantity":1},{"id":32730,"menu_item_id":396,"quantity":1},{"id":32731,"menu_item_id":61,"quantity":1},{"id":32732,"menu_item_id":56,"quantity":1},{"id":32733,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 19:23:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6856,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["113|1|","62|1|","71|1|","50|1|","55|1|","396|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["113|1|","62|1|","71|1|","50|1|","55|1|","396|1|","61|1|","56|1|","5|1|"]} 
[2026-04-04 19:23:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6856,"order_number":"AZS-040426-024"} 
[2026-04-04 19:23:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6856,"order_number":"AZS-040426-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-04 19:23:32"} 
[2026-04-04 19:23:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T07:23:53.096Z","date_to":"2026-04-04T19:23:53.096Z","per_page":"100"} 
[2026-04-04 19:23:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T07:23:53.085Z","date_to":"2026-04-04T19:23:53.085Z","per_page":"100"} 
[2026-04-04 19:23:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-024","AZS-040426-023","AZS-040426-022","AZS-040426-021","AZS-040426-020","AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":3,"unique_order_numbers":24} 
[2026-04-04 19:23:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-024","AZS-040426-023","AZS-040426-022","AZS-040426-021","AZS-040426-020","AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":3,"unique_order_numbers":24} 
[2026-04-04 19:23:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T07:23:53.085Z","date_to":"2026-04-04T19:23:53.085Z","per_page":"100"} 
[2026-04-04 19:23:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-024","AZS-040426-023","AZS-040426-022","AZS-040426-021","AZS-040426-020","AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":3,"unique_order_numbers":24} 
[2026-04-04 19:32:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6858,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":32741},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":32742},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32743},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32744},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32745},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32746},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":32747},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32748}],"validated_items":[{"id":32741,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":32742,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":32743,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32744,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32745,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32746,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":32747,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":32748,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-04 19:32:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6858,"items_count":8} 
[2026-04-04 19:32:03] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32741,"menu_item_id":65,"quantity":1},{"id":32742,"menu_item_id":95,"quantity":1},{"id":32743,"menu_item_id":396,"quantity":3},{"id":32744,"menu_item_id":61,"quantity":1},{"id":32745,"menu_item_id":5,"quantity":1},{"id":32746,"menu_item_id":3,"quantity":1},{"id":32747,"menu_item_id":13,"quantity":1},{"id":32748,"menu_item_id":6,"quantity":2}]} 
[2026-04-04 19:32:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6858,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["65|1|","95|1|","396|3|","61|1|","5|1|","3|1|","13|1|","6|2|"],"new_items_map_keys":["65|1|","95|1|","396|3|","61|1|","5|1|","3|1|","13|1|","6|2|"]} 
[2026-04-04 19:32:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6858,"order_number":"AZS-040426-020"} 
[2026-04-04 19:32:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6858,"order_number":"AZS-040426-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-04 19:32:03"} 
[2026-04-04 19:46:49] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6858,"order_number":"AZS-040426-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 19:46:49"} 
[2026-04-04 19:46:49] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6858,"order_number":"AZS-040426-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 19:46:49"} 
[2026-04-04 19:46:49] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6858,"order_number":"AZS-040426-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 19:46:49"} 
[2026-04-04 19:46:49] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6858,"order_number":"AZS-040426-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 19:46:49"} 
[2026-04-04 19:46:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":1,"order_id":6858,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":32741},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":32742},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32743},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32744},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32746},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":32747},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32748}],"validated_items":[{"id":32741,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":32742,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":32743,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32744,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32746,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":32747,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":32748,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-04 19:46:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6858,"items_count":7} 
[2026-04-04 19:46:49] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":1,"items_to_remove":[32745],"items":[{"id":32741,"menu_item_id":65,"quantity":1},{"id":32742,"menu_item_id":95,"quantity":1},{"id":32743,"menu_item_id":396,"quantity":3},{"id":32744,"menu_item_id":61,"quantity":1},{"id":32746,"menu_item_id":3,"quantity":1},{"id":32747,"menu_item_id":13,"quantity":1},{"id":32748,"menu_item_id":6,"quantity":2}]} 
[2026-04-04 19:46:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6858,"has_item_changes":true,"old_items_count":8,"new_items_count":7,"old_items_map_keys":["65|1|","95|1|","396|3|","61|1|","5|1|","3|1|","13|1|","6|2|"],"new_items_map_keys":["65|1|","95|1|","396|3|","61|1|","3|1|","13|1|","6|2|"]} 
[2026-04-04 19:46:49] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6858,"order_number":"AZS-040426-020","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":5000,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-04 19:46:49","original_payment_amount":"0.00","grand_total":4947.0,"timestamp":"2026-04-04 19:46:49"} 
[2026-04-04 19:46:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6858,"order_number":"AZS-040426-020"} 
[2026-04-04 19:46:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-040426-020","replaced_order_id":6858} 
[2026-04-04 19:46:49] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6858,"new_order_id":6861,"order_number":"AZS-040426-020","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"5000.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-04 19:46:49","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-04 19:46:49"} 
[2026-04-04 19:46:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6861,"items_count":7,"items":[{"menu_item_id":65,"quantity":1,"price":1299.0},{"menu_item_id":95,"quantity":1,"price":1999.0},{"menu_item_id":396,"quantity":3,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0},{"menu_item_id":3,"quantity":1,"price":270.0},{"menu_item_id":13,"quantity":1,"price":249.0},{"menu_item_id":6,"quantity":2,"price":199.0}]} 
[2026-04-04 19:46:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6861,"item_index":0,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":1299.0,"discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6861}} 
[2026-04-04 19:46:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6861,"item_index":0,"menu_item_id":65} 
[2026-04-04 19:46:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6861,"item_index":1,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":1999.0,"discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6861}} 
[2026-04-04 19:46:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6861,"item_index":1,"menu_item_id":95} 
[2026-04-04 19:46:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6861,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6861}} 
[2026-04-04 19:46:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6861,"item_index":2,"menu_item_id":396} 
[2026-04-04 19:46:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6861,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6861}} 
[2026-04-04 19:46:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6861,"item_index":3,"menu_item_id":61} 
[2026-04-04 19:46:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6861,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6861}} 
[2026-04-04 19:46:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6861,"item_index":4,"menu_item_id":3} 
[2026-04-04 19:46:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6861,"item_index":5,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":249.0,"discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6861}} 
[2026-04-04 19:46:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6861,"item_index":5,"menu_item_id":13} 
[2026-04-04 19:46:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6861,"item_index":6,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6861}} 
[2026-04-04 19:46:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6861,"item_index":6,"menu_item_id":6} 
[2026-04-04 19:46:49] local.ERROR: Error tracking recipe usage for order 6861: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (6861, 65, 209, 1, 5000, 0.00, Order #AZS-040426-020 - 1x Chicken Reshmi Kabab (4 pcs), 2026-04-04 19:46:49, 2026-04-04 19:46:49))  
[2026-04-04 19:46:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6858,"new_order_id":6861,"order_number":"AZS-040426-020"} 
[2026-04-04 19:46:49] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6858,"new_order_id":6861,"order_number":"AZS-040426-020","route":"api/orders/6858"} 
[2026-04-04 19:47:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T07:47:10.871Z","date_to":"2026-04-04T19:47:10.871Z","per_page":"100"} 
[2026-04-04 19:47:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T07:47:10.886Z","date_to":"2026-04-04T19:47:10.886Z","per_page":"100"} 
[2026-04-04 19:47:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-024","AZS-040426-023","AZS-040426-022","AZS-040426-021","AZS-040426-020","AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":22,"unpaid_count":2,"unique_order_numbers":24} 
[2026-04-04 19:47:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-024","AZS-040426-023","AZS-040426-022","AZS-040426-021","AZS-040426-020","AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":22,"unpaid_count":2,"unique_order_numbers":24} 
[2026-04-04 19:47:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T07:47:10.871Z","date_to":"2026-04-04T19:47:10.871Z","per_page":"100"} 
[2026-04-04 19:47:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-024","AZS-040426-023","AZS-040426-022","AZS-040426-021","AZS-040426-020","AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":22,"unpaid_count":2,"unique_order_numbers":24} 
[2026-04-04 20:37:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6856,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":32725},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":32726},{"menu_item_id":71,"quantity":1,"discount_percent":0,"notes":null,"id":32727},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":32728},{"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null,"id":32729},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":32730},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32731},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32732},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32733}],"validated_items":[{"id":32725,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":32726,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":32727,"menu_item_id":71,"quantity":1,"discount_percent":0,"notes":null},{"id":32728,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":32729,"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null},{"id":32730,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":32731,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32732,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32733,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-04 20:37:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6856,"items_count":9} 
[2026-04-04 20:37:10] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32725,"menu_item_id":113,"quantity":1},{"id":32726,"menu_item_id":62,"quantity":1},{"id":32727,"menu_item_id":71,"quantity":1},{"id":32728,"menu_item_id":50,"quantity":1},{"id":32729,"menu_item_id":55,"quantity":1},{"id":32730,"menu_item_id":396,"quantity":1},{"id":32731,"menu_item_id":61,"quantity":1},{"id":32732,"menu_item_id":56,"quantity":1},{"id":32733,"menu_item_id":5,"quantity":1}]} 
[2026-04-04 20:37:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6856,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["113|1|","62|1|","71|1|","50|1|","55|1|","396|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["113|1|","62|1|","71|1|","50|1|","55|1|","396|1|","61|1|","56|1|","5|1|"]} 
[2026-04-04 20:37:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6856,"order_number":"AZS-040426-024"} 
[2026-04-04 20:37:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6856,"order_number":"AZS-040426-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-04 20:37:10"} 
[2026-04-04 20:37:24] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6817,"order_number":"AZS-040426-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2900,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 20:37:24"} 
[2026-04-04 20:37:24] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6817,"order_number":"AZS-040426-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2900,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-04 20:37:24"} 
[2026-04-04 20:37:24] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6817,"order_number":"AZS-040426-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2900,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 20:37:24"} 
[2026-04-04 20:37:24] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6817,"order_number":"AZS-040426-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2900,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-04 20:37:24"} 
[2026-04-04 20:37:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6817,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":32503}],"validated_items":[{"id":32503,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null}]} 
[2026-04-04 20:37:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6817,"items_count":1} 
[2026-04-04 20:37:24] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32503,"menu_item_id":385,"quantity":1}]} 
[2026-04-04 20:37:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6817,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-04-04 20:37:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6817,"order_number":"AZS-040426-007"} 
[2026-04-04 20:37:24] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6817,"order_number":"AZS-040426-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2900,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-04 20:37:24","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-04 20:37:24"} 
[2026-04-04 20:37:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6817,"order_number":"AZS-040426-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-04 20:37:24"} 
[2026-04-04 20:37:24] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6817,"order_number":"AZS-040426-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2900.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-04 20:37:24","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2900,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2900.00","database_verification_match":true,"timestamp":"2026-04-04 20:37:24"} 
[2026-04-04 20:37:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T08:37:29.887Z","date_to":"2026-04-04T20:37:29.887Z","per_page":"100"} 
[2026-04-04 20:37:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-024","AZS-040426-023","AZS-040426-022","AZS-040426-021","AZS-040426-020","AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":1,"unique_order_numbers":24} 
[2026-04-04 20:37:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T08:37:29.905Z","date_to":"2026-04-04T20:37:29.905Z","per_page":"100"} 
[2026-04-04 20:37:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-024","AZS-040426-023","AZS-040426-022","AZS-040426-021","AZS-040426-020","AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":1,"unique_order_numbers":24} 
[2026-04-04 20:37:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-04T08:37:29.887Z","date_to":"2026-04-04T20:37:29.887Z","per_page":"100"} 
[2026-04-04 20:37:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":24,"count":24,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-040426-024","AZS-040426-023","AZS-040426-022","AZS-040426-021","AZS-040426-020","AZS-040426-019","AZS-040426-018","AZS-040426-017","AZS-040426-016","AZS-040426-015","AZS-040426-014","AZS-040426-013","AZS-040426-012","AZS-040426-011","AZS-040426-010","AZS-040426-009","AZS-040426-008","AZS-040426-007","AZS-040426-006","AZS-040426-005","AZS-040426-004","AZS-040426-003","AZS-040426-002","AZS-040426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":1,"unique_order_numbers":24} 
[2026-04-05 13:34:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T01:34:02.335Z","date_to":"2026-04-05T13:34:02.335Z","per_page":"100"} 
[2026-04-05 13:34:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T01:34:02.356Z","date_to":"2026-04-05T13:34:02.356Z","per_page":"100"} 
[2026-04-05 13:34:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-04-05 13:34:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-04-05 13:34:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T01:34:02.335Z","date_to":"2026-04-05T13:34:02.335Z","per_page":"100"} 
[2026-04-05 13:34:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-04-05 13:35:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T01:35:43.668Z","date_to":"2026-04-05T13:35:43.668Z","per_page":"100"} 
[2026-04-05 13:35:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T01:35:43.674Z","date_to":"2026-04-05T13:35:43.674Z","per_page":"100"} 
[2026-04-05 13:35:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-04-05 13:35:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-04-05 13:35:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T01:35:43.668Z","date_to":"2026-04-05T13:35:43.668Z","per_page":"100"} 
[2026-04-05 13:35:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-04-05 13:59:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T01:59:38.639Z","date_to":"2026-04-05T13:59:38.639Z","per_page":"100"} 
[2026-04-05 13:59:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-04-05 13:59:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T01:59:38.624Z","date_to":"2026-04-05T13:59:38.624Z","per_page":"100"} 
[2026-04-05 13:59:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-04-05 13:59:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T01:59:38.624Z","date_to":"2026-04-05T13:59:38.624Z","per_page":"100"} 
[2026-04-05 13:59:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-04-05 13:59:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T01:59:42.157Z","date_to":"2026-04-05T13:59:42.157Z","per_page":"100"} 
[2026-04-05 13:59:38] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T01:59:42.136Z","date_to":"2026-04-05T13:59:42.136Z","per_page":"100"} 
[2026-04-05 13:59:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-04-05 13:59:38] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-04-05 13:59:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T01:59:42.136Z","date_to":"2026-04-05T13:59:42.136Z","per_page":"100"} 
[2026-04-05 13:59:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-04-05 14:25:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6863,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"discount_percent":0,"notes":null,"id":32771},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":32772},{"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null,"id":32773},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32774},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32775},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32771,"menu_item_id":100,"quantity":1,"discount_percent":0,"notes":null},{"id":32772,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":32773,"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null},{"id":32774,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32775,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 14:25:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6863,"items_count":6} 
[2026-04-05 14:25:34] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32771,"menu_item_id":100,"quantity":1},{"id":32772,"menu_item_id":396,"quantity":2},{"id":32773,"menu_item_id":60,"quantity":1},{"id":32774,"menu_item_id":56,"quantity":1},{"id":32775,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-04-05 14:25:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6863,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["100|1|","396|2|","60|1|","56|1|","5|1|"],"new_items_map_keys":["100|1|","396|2|","60|1|","56|1|","5|1|","2|1|"]} 
[2026-04-05 14:25:34] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6863,"order_number":"AZS-050426-002"} 
[2026-04-05 14:25:34] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-002","replaced_order_id":6863} 
[2026-04-05 14:25:34] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6865,"items_count":6,"items":[{"menu_item_id":100,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":60,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-04-05 14:25:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6865,"item_index":0,"item_data":{"menu_item_id":100,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Peshawari Karahi - Half","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6865}} 
[2026-04-05 14:25:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6865,"item_index":0,"menu_item_id":100} 
[2026-04-05 14:25:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6865,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6865}} 
[2026-04-05 14:25:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6865,"item_index":1,"menu_item_id":396} 
[2026-04-05 14:25:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6865,"item_index":2,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6865}} 
[2026-04-05 14:25:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6865,"item_index":2,"menu_item_id":60} 
[2026-04-05 14:25:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6865,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6865}} 
[2026-04-05 14:25:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6865,"item_index":3,"menu_item_id":56} 
[2026-04-05 14:25:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6865,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6865}} 
[2026-04-05 14:25:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6865,"item_index":4,"menu_item_id":5} 
[2026-04-05 14:25:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6865,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6865}} 
[2026-04-05 14:25:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6865,"item_index":5,"menu_item_id":2} 
[2026-04-05 14:25:34] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6863,"new_order_id":6865,"order_number":"AZS-050426-002"} 
[2026-04-05 14:29:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6862,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":32766},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":32767},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32768},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32769},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32770},{"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":32766,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":32767,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":32768,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32769,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32770,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-05 14:29:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6862,"items_count":6} 
[2026-04-05 14:29:17] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32766,"menu_item_id":105,"quantity":1},{"id":32767,"menu_item_id":396,"quantity":2},{"id":32768,"menu_item_id":61,"quantity":1},{"id":32769,"menu_item_id":56,"quantity":1},{"id":32770,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":9,"quantity":2}]} 
[2026-04-05 14:29:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6862,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|","9|2|"]} 
[2026-04-05 14:29:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6862,"order_number":"AZS-050426-001"} 
[2026-04-05 14:29:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-001","replaced_order_id":6862} 
[2026-04-05 14:29:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6866,"items_count":6,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":9,"quantity":2,"price":"229.00"}]} 
[2026-04-05 14:29:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6866,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6866}} 
[2026-04-05 14:29:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6866,"item_index":0,"menu_item_id":105} 
[2026-04-05 14:29:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6866,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6866}} 
[2026-04-05 14:29:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6866,"item_index":1,"menu_item_id":396} 
[2026-04-05 14:29:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6866,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6866}} 
[2026-04-05 14:29:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6866,"item_index":2,"menu_item_id":61} 
[2026-04-05 14:29:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6866,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6866}} 
[2026-04-05 14:29:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6866,"item_index":3,"menu_item_id":56} 
[2026-04-05 14:29:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6866,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6866}} 
[2026-04-05 14:29:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6866,"item_index":4,"menu_item_id":5} 
[2026-04-05 14:29:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6866,"item_index":5,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":2,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":458.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6866}} 
[2026-04-05 14:29:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6866,"item_index":5,"menu_item_id":9} 
[2026-04-05 14:29:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6862,"new_order_id":6866,"order_number":"AZS-050426-001"} 
[2026-04-05 14:37:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6864,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":7,"quantity":2,"discount_percent":0,"notes":null,"id":32776},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":32777},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32776,"menu_item_id":7,"quantity":2,"discount_percent":0,"notes":null},{"id":32777,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 14:37:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6864,"items_count":3} 
[2026-04-05 14:37:17] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32776,"menu_item_id":7,"quantity":2},{"id":32777,"menu_item_id":63,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-04-05 14:37:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6864,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["7|2|","63|1|"],"new_items_map_keys":["7|2|","63|1|","61|1|"]} 
[2026-04-05 14:37:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6864,"order_number":"AZS-050426-003"} 
[2026-04-05 14:37:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-003","replaced_order_id":6864} 
[2026-04-05 14:37:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6868,"items_count":3,"items":[{"menu_item_id":7,"quantity":2,"price":"249.00"},{"menu_item_id":63,"quantity":1,"price":"1099.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"}]} 
[2026-04-05 14:37:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6868,"item_index":0,"item_data":{"menu_item_id":7,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Cardamom Tea","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6868}} 
[2026-04-05 14:37:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6868,"item_index":0,"menu_item_id":7} 
[2026-04-05 14:37:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6868,"item_index":1,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6868}} 
[2026-04-05 14:37:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6868,"item_index":1,"menu_item_id":63} 
[2026-04-05 14:37:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6868,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6868}} 
[2026-04-05 14:37:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6868,"item_index":2,"menu_item_id":61} 
[2026-04-05 14:37:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6864,"new_order_id":6868,"order_number":"AZS-050426-003"} 
[2026-04-05 14:48:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6865,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":32778},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32779},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32780},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32781},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32782},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":32783}],"validated_items":[{"id":32778,"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":32779,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32780,"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32781,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32782,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32783,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-05 14:48:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6865,"items_count":6} 
[2026-04-05 14:48:15] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32778,"menu_item_id":100,"quantity":1},{"id":32779,"menu_item_id":396,"quantity":2},{"id":32780,"menu_item_id":60,"quantity":1},{"id":32781,"menu_item_id":56,"quantity":1},{"id":32782,"menu_item_id":5,"quantity":1},{"id":32783,"menu_item_id":2,"quantity":1}]} 
[2026-04-05 14:48:15] local.INFO: PosOrderController::update - Item changes check {"order_id":6865,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["100|1|","396|2|","60|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["100|1|","396|2|","60|1|","56|1|","5|1|","2|1|"]} 
[2026-04-05 14:48:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6865,"order_number":"AZS-050426-002"} 
[2026-04-05 14:48:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6865,"order_number":"AZS-050426-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 14:48:15"} 
[2026-04-05 14:51:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6866,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32784},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32785},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32786},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32787},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32788},{"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null,"id":32789}],"validated_items":[{"id":32784,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32785,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32786,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32787,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32788,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32789,"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null}]} 
[2026-04-05 14:51:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6866,"items_count":6} 
[2026-04-05 14:51:39] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32784,"menu_item_id":105,"quantity":1},{"id":32785,"menu_item_id":396,"quantity":2},{"id":32786,"menu_item_id":61,"quantity":1},{"id":32787,"menu_item_id":56,"quantity":1},{"id":32788,"menu_item_id":5,"quantity":1},{"id":32789,"menu_item_id":9,"quantity":2}]} 
[2026-04-05 14:51:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6866,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|","9|2|"],"new_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|","9|2|"]} 
[2026-04-05 14:51:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6866,"order_number":"AZS-050426-001"} 
[2026-04-05 14:51:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6866,"order_number":"AZS-050426-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 14:51:39"} 
[2026-04-05 14:54:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6869,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":32798},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":32799},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":32800},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":32801},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32802},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32803},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32804},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32798,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":32799,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":32800,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":32801,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":32802,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32803,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32804,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 14:54:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6869,"items_count":8} 
[2026-04-05 14:54:28] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32798,"menu_item_id":113,"quantity":1},{"id":32799,"menu_item_id":105,"quantity":1},{"id":32800,"menu_item_id":396,"quantity":3},{"id":32801,"menu_item_id":50,"quantity":1},{"id":32802,"menu_item_id":61,"quantity":1},{"id":32803,"menu_item_id":56,"quantity":1},{"id":32804,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1}]} 
[2026-04-05 14:54:28] local.INFO: PosOrderController::update - Item changes check {"order_id":6869,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["113|1|","105|1|","396|3|","50|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["113|1|","105|1|","396|3|","50|1|","61|1|","56|1|","5|1|","403|1|"]} 
[2026-04-05 14:54:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6869,"order_number":"AZS-050426-005"} 
[2026-04-05 14:54:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-005","replaced_order_id":6869} 
[2026-04-05 14:54:28] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6871,"items_count":8,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"}]} 
[2026-04-05 14:54:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6871,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6871}} 
[2026-04-05 14:54:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6871,"item_index":0,"menu_item_id":113} 
[2026-04-05 14:54:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6871,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6871}} 
[2026-04-05 14:54:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6871,"item_index":1,"menu_item_id":105} 
[2026-04-05 14:54:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6871,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6871}} 
[2026-04-05 14:54:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6871,"item_index":2,"menu_item_id":396} 
[2026-04-05 14:54:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6871,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6871}} 
[2026-04-05 14:54:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6871,"item_index":3,"menu_item_id":50} 
[2026-04-05 14:54:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6871,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6871}} 
[2026-04-05 14:54:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6871,"item_index":4,"menu_item_id":61} 
[2026-04-05 14:54:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6871,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6871}} 
[2026-04-05 14:54:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6871,"item_index":5,"menu_item_id":56} 
[2026-04-05 14:54:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6871,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6871}} 
[2026-04-05 14:54:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6871,"item_index":6,"menu_item_id":5} 
[2026-04-05 14:54:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6871,"item_index":7,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6871}} 
[2026-04-05 14:54:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6871,"item_index":7,"menu_item_id":403} 
[2026-04-05 14:54:28] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6869,"new_order_id":6871,"order_number":"AZS-050426-005"} 
[2026-04-05 14:58:17] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6865,"order_number":"AZS-050426-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 14:58:17"} 
[2026-04-05 14:58:17] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6865,"order_number":"AZS-050426-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 14:58:17"} 
[2026-04-05 14:58:17] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6865,"order_number":"AZS-050426-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 14:58:17"} 
[2026-04-05 14:58:17] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6865,"order_number":"AZS-050426-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 14:58:17"} 
[2026-04-05 14:58:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6865,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":32778},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32779},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32780},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32781},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32782},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":32783}],"validated_items":[{"id":32778,"menu_item_id":100,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":32779,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32780,"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32781,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32782,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32783,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-05 14:58:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6865,"items_count":6} 
[2026-04-05 14:58:17] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32778,"menu_item_id":100,"quantity":1},{"id":32779,"menu_item_id":396,"quantity":2},{"id":32780,"menu_item_id":60,"quantity":1},{"id":32781,"menu_item_id":56,"quantity":1},{"id":32782,"menu_item_id":5,"quantity":1},{"id":32783,"menu_item_id":2,"quantity":1}]} 
[2026-04-05 14:58:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6865,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["100|1|","396|2|","60|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["100|1|","396|2|","60|1|","56|1|","5|1|","2|1|"]} 
[2026-04-05 14:58:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6865,"order_number":"AZS-050426-002"} 
[2026-04-05 14:58:17] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6865,"order_number":"AZS-050426-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-05 14:58:17","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 14:58:17"} 
[2026-04-05 14:58:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6865,"order_number":"AZS-050426-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 14:58:17"} 
[2026-04-05 14:58:17] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6865,"order_number":"AZS-050426-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-05 14:58:17","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-04-05 14:58:17"} 
[2026-04-05 15:05:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":6873,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":32821},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":32822},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":32823},{"menu_item_id":49,"quantity":3,"discount_percent":0,"notes":null,"id":32824},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32825},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32827}],"validated_items":[{"id":32821,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":32822,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":32823,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"id":32824,"menu_item_id":49,"quantity":3,"discount_percent":0,"notes":null},{"id":32825,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32827,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 15:05:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6873,"items_count":6} 
[2026-04-05 15:05:33] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[32826],"items":[{"id":32821,"menu_item_id":96,"quantity":1},{"id":32822,"menu_item_id":64,"quantity":1},{"id":32823,"menu_item_id":403,"quantity":1},{"id":32824,"menu_item_id":49,"quantity":3},{"id":32825,"menu_item_id":61,"quantity":1},{"id":32827,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 15:05:33] local.INFO: PosOrderController::update - Item changes check {"order_id":6873,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["96|1|","64|1|","403|1|","49|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["96|1|","64|1|","403|1|","49|3|","61|1|","5|1|"]} 
[2026-04-05 15:05:33] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6873,"order_number":"AZS-050426-008"} 
[2026-04-05 15:05:33] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-008","replaced_order_id":6873} 
[2026-04-05 15:05:33] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6874,"items_count":6,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":49,"quantity":3,"price":"70.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-05 15:05:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6874,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6874}} 
[2026-04-05 15:05:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6874,"item_index":0,"menu_item_id":96} 
[2026-04-05 15:05:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6874,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6874}} 
[2026-04-05 15:05:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6874,"item_index":1,"menu_item_id":64} 
[2026-04-05 15:05:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6874,"item_index":2,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6874}} 
[2026-04-05 15:05:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6874,"item_index":2,"menu_item_id":403} 
[2026-04-05 15:05:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6874,"item_index":3,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6874}} 
[2026-04-05 15:05:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6874,"item_index":3,"menu_item_id":49} 
[2026-04-05 15:05:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6874,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6874}} 
[2026-04-05 15:05:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6874,"item_index":4,"menu_item_id":61} 
[2026-04-05 15:05:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6874,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6874}} 
[2026-04-05 15:05:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6874,"item_index":5,"menu_item_id":5} 
[2026-04-05 15:05:33] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6873,"new_order_id":6874,"order_number":"AZS-050426-008"} 
[2026-04-05 15:08:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6871,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":32807},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":32808},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":32809},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":32810},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32811},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32812},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32813},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":32814}],"validated_items":[{"id":32807,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":32808,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":32809,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":32810,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":32811,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32812,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32813,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32814,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 15:08:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6871,"items_count":8} 
[2026-04-05 15:08:53] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32807,"menu_item_id":113,"quantity":1},{"id":32808,"menu_item_id":105,"quantity":1},{"id":32809,"menu_item_id":396,"quantity":3},{"id":32810,"menu_item_id":50,"quantity":1},{"id":32811,"menu_item_id":61,"quantity":1},{"id":32812,"menu_item_id":56,"quantity":1},{"id":32813,"menu_item_id":5,"quantity":1},{"id":32814,"menu_item_id":403,"quantity":1}]} 
[2026-04-05 15:08:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6871,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["113|1|","105|1|","396|3|","50|1|","61|1|","56|1|","5|1|","403|1|"],"new_items_map_keys":["113|1|","105|1|","396|3|","50|1|","61|1|","56|1|","5|1|","403|1|"]} 
[2026-04-05 15:08:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6871,"order_number":"AZS-050426-005"} 
[2026-04-05 15:08:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6871,"order_number":"AZS-050426-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-05 15:08:53"} 
[2026-04-05 15:09:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6874,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":32828},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":32829},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":32830},{"menu_item_id":49,"quantity":3,"discount_percent":0,"notes":null,"id":32831},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32832},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32833}],"validated_items":[{"id":32828,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":32829,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":32830,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"id":32831,"menu_item_id":49,"quantity":3,"discount_percent":0,"notes":null},{"id":32832,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32833,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 15:09:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6874,"items_count":6} 
[2026-04-05 15:09:18] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32828,"menu_item_id":96,"quantity":1},{"id":32829,"menu_item_id":64,"quantity":1},{"id":32830,"menu_item_id":403,"quantity":1},{"id":32831,"menu_item_id":49,"quantity":3},{"id":32832,"menu_item_id":61,"quantity":1},{"id":32833,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 15:09:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6874,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["96|1|","64|1|","403|1|","49|3|","61|1|","5|1|"],"new_items_map_keys":["96|1|","64|1|","403|1|","49|3|","61|1|","5|1|"]} 
[2026-04-05 15:09:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6874,"order_number":"AZS-050426-008"} 
[2026-04-05 15:09:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6874,"order_number":"AZS-050426-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-05 15:09:18"} 
[2026-04-05 15:09:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6870,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":32805},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":32806}],"validated_items":[{"id":32805,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null},{"id":32806,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-04-05 15:09:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6870,"items_count":2} 
[2026-04-05 15:09:41] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32805,"menu_item_id":13,"quantity":4},{"id":32806,"menu_item_id":4,"quantity":1}]} 
[2026-04-05 15:09:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6870,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|4|","4|1|"],"new_items_map_keys":["13|4|","4|1|"]} 
[2026-04-05 15:09:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6870,"order_number":"AZS-050426-006"} 
[2026-04-05 15:09:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6870,"order_number":"AZS-050426-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 15:09:41"} 
[2026-04-05 15:13:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6867,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":88,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":32790},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32791},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32792},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32793},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32794}],"validated_items":[{"id":32790,"menu_item_id":88,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":32791,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32792,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32793,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32794,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-05 15:13:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6867,"items_count":5} 
[2026-04-05 15:13:31] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32790,"menu_item_id":88,"quantity":1},{"id":32791,"menu_item_id":61,"quantity":1},{"id":32792,"menu_item_id":56,"quantity":1},{"id":32793,"menu_item_id":396,"quantity":2},{"id":32794,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 15:13:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6867,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["88|1|","61|1|","56|1|","396|2|","5|1|"],"new_items_map_keys":["88|1|","61|1|","56|1|","396|2|","5|1|"]} 
[2026-04-05 15:13:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6867,"order_number":"AZS-050426-004"} 
[2026-04-05 15:13:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6867,"order_number":"AZS-050426-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 15:13:31"} 
[2026-04-05 15:14:18] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6866,"order_number":"AZS-050426-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 15:14:18"} 
[2026-04-05 15:14:18] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6866,"order_number":"AZS-050426-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 15:14:18"} 
[2026-04-05 15:14:18] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6866,"order_number":"AZS-050426-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 15:14:18"} 
[2026-04-05 15:14:18] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6866,"order_number":"AZS-050426-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 15:14:18"} 
[2026-04-05 15:14:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6866,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32784},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32785},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32786},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32787},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32788},{"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null,"id":32789}],"validated_items":[{"id":32784,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32785,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32786,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32787,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32788,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32789,"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null}]} 
[2026-04-05 15:14:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6866,"items_count":6} 
[2026-04-05 15:14:18] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32784,"menu_item_id":105,"quantity":1},{"id":32785,"menu_item_id":396,"quantity":2},{"id":32786,"menu_item_id":61,"quantity":1},{"id":32787,"menu_item_id":56,"quantity":1},{"id":32788,"menu_item_id":5,"quantity":1},{"id":32789,"menu_item_id":9,"quantity":2}]} 
[2026-04-05 15:14:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6866,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|","9|2|"],"new_items_map_keys":["105|1|","396|2|","61|1|","56|1|","5|1|","9|2|"]} 
[2026-04-05 15:14:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6866,"order_number":"AZS-050426-001"} 
[2026-04-05 15:14:18] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6866,"order_number":"AZS-050426-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-05 15:14:18","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 15:14:18"} 
[2026-04-05 15:14:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6866,"order_number":"AZS-050426-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 15:14:18"} 
[2026-04-05 15:14:18] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6866,"order_number":"AZS-050426-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-05 15:14:18","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-04-05 15:14:18"} 
[2026-04-05 15:16:36] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6867,"order_number":"AZS-050426-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2905,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 15:16:36"} 
[2026-04-05 15:16:36] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6867,"order_number":"AZS-050426-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2905,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 15:16:36"} 
[2026-04-05 15:16:36] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6867,"order_number":"AZS-050426-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2905,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 15:16:36"} 
[2026-04-05 15:16:36] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6867,"order_number":"AZS-050426-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2905,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 15:16:36"} 
[2026-04-05 15:16:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6867,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":88,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":32790},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32791},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32792},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32793},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32794}],"validated_items":[{"id":32790,"menu_item_id":88,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":32791,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32792,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32793,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32794,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-05 15:16:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6867,"items_count":5} 
[2026-04-05 15:16:36] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32790,"menu_item_id":88,"quantity":1},{"id":32791,"menu_item_id":61,"quantity":1},{"id":32792,"menu_item_id":56,"quantity":1},{"id":32793,"menu_item_id":396,"quantity":2},{"id":32794,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 15:16:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6867,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["88|1|","61|1|","56|1|","396|2|","5|1|"],"new_items_map_keys":["88|1|","61|1|","56|1|","396|2|","5|1|"]} 
[2026-04-05 15:16:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6867,"order_number":"AZS-050426-004"} 
[2026-04-05 15:16:36] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6867,"order_number":"AZS-050426-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2905,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-05 15:16:36","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 15:16:36"} 
[2026-04-05 15:16:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6867,"order_number":"AZS-050426-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 15:16:36"} 
[2026-04-05 15:16:36] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6867,"order_number":"AZS-050426-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2905.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-05 15:16:36","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2905,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2905.00","database_verification_match":true,"timestamp":"2026-04-05 15:16:36"} 
[2026-04-05 15:18:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T03:18:10.710Z","date_to":"2026-04-05T15:18:10.710Z","per_page":"100"} 
[2026-04-05 15:18:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":5,"unique_order_numbers":8} 
[2026-04-05 15:18:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T03:18:10.695Z","date_to":"2026-04-05T15:18:10.695Z","per_page":"100"} 
[2026-04-05 15:18:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":5,"unique_order_numbers":8} 
[2026-04-05 15:18:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T03:18:10.695Z","date_to":"2026-04-05T15:18:10.695Z","per_page":"100"} 
[2026-04-05 15:18:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","paid"],"deleted_count":0,"paid_count":3,"unpaid_count":5,"unique_order_numbers":8} 
[2026-04-05 15:23:16] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6870,"order_number":"AZS-050426-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1140,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 15:23:16"} 
[2026-04-05 15:23:16] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6870,"order_number":"AZS-050426-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1140,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 15:23:16"} 
[2026-04-05 15:23:16] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6870,"order_number":"AZS-050426-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1140,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 15:23:16"} 
[2026-04-05 15:23:16] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6870,"order_number":"AZS-050426-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1140,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 15:23:16"} 
[2026-04-05 15:23:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6870,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null,"id":32805},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":32806}],"validated_items":[{"id":32805,"menu_item_id":13,"quantity":4,"price":249,"discount_percent":0,"notes":null},{"id":32806,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-04-05 15:23:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6870,"items_count":2} 
[2026-04-05 15:23:16] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32805,"menu_item_id":13,"quantity":4},{"id":32806,"menu_item_id":4,"quantity":1}]} 
[2026-04-05 15:23:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6870,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|4|","4|1|"],"new_items_map_keys":["13|4|","4|1|"]} 
[2026-04-05 15:23:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6870,"order_number":"AZS-050426-006"} 
[2026-04-05 15:23:16] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6870,"order_number":"AZS-050426-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1140,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-05 15:23:16","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 15:23:16"} 
[2026-04-05 15:23:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6870,"order_number":"AZS-050426-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 15:23:16"} 
[2026-04-05 15:23:16] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6870,"order_number":"AZS-050426-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1140.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-05 15:23:16","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1140,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1140.00","database_verification_match":true,"timestamp":"2026-04-05 15:23:16"} 
[2026-04-05 15:23:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6872,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":88,"quantity":1,"discount_percent":0,"notes":null,"id":32815},{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":32816},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":32817},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32818},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32819},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32820},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":71,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32815,"menu_item_id":88,"quantity":1,"discount_percent":0,"notes":null},{"id":32816,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":32817,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":32818,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32819,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32820,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":71,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 15:23:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6872,"items_count":8} 
[2026-04-05 15:23:51] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32815,"menu_item_id":88,"quantity":1},{"id":32816,"menu_item_id":78,"quantity":1},{"id":32817,"menu_item_id":396,"quantity":2},{"id":32818,"menu_item_id":61,"quantity":1},{"id":32819,"menu_item_id":56,"quantity":1},{"id":32820,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":83,"quantity":1},{"id":null,"menu_item_id":71,"quantity":1}]} 
[2026-04-05 15:23:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6872,"has_item_changes":true,"old_items_count":6,"new_items_count":8,"old_items_map_keys":["88|1|","78|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["88|1|","78|1|","396|2|","61|1|","56|1|","5|1|","83|1|","71|1|"]} 
[2026-04-05 15:23:51] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6872,"order_number":"AZS-050426-007"} 
[2026-04-05 15:23:51] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-007","replaced_order_id":6872} 
[2026-04-05 15:23:51] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6875,"items_count":8,"items":[{"menu_item_id":88,"quantity":1,"price":"1999.00"},{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":83,"quantity":1,"price":"649.00"},{"menu_item_id":71,"quantity":1,"price":"1199.00"}]} 
[2026-04-05 15:23:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6875,"item_index":0,"item_data":{"menu_item_id":88,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Madrasi Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6875}} 
[2026-04-05 15:23:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6875,"item_index":0,"menu_item_id":88} 
[2026-04-05 15:23:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6875,"item_index":1,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6875}} 
[2026-04-05 15:23:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6875,"item_index":1,"menu_item_id":78} 
[2026-04-05 15:23:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6875,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6875}} 
[2026-04-05 15:23:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6875,"item_index":2,"menu_item_id":396} 
[2026-04-05 15:23:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6875,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6875}} 
[2026-04-05 15:23:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6875,"item_index":3,"menu_item_id":61} 
[2026-04-05 15:23:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6875,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6875}} 
[2026-04-05 15:23:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6875,"item_index":4,"menu_item_id":56} 
[2026-04-05 15:23:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6875,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6875}} 
[2026-04-05 15:23:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6875,"item_index":5,"menu_item_id":5} 
[2026-04-05 15:23:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6875,"item_index":6,"item_data":{"menu_item_id":83,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Chicken Nuggets","quantity":1,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":649.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6875}} 
[2026-04-05 15:23:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6875,"item_index":6,"menu_item_id":83} 
[2026-04-05 15:23:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6875,"item_index":7,"item_data":{"menu_item_id":71,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Special Afghani Boti (10 pcs)","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6875}} 
[2026-04-05 15:23:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6875,"item_index":7,"menu_item_id":71} 
[2026-04-05 15:23:51] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6872,"new_order_id":6875,"order_number":"AZS-050426-007"} 
[2026-04-05 15:31:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6868,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":7,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":32795},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":32796},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32797}],"validated_items":[{"id":32795,"menu_item_id":7,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":32796,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":32797,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-05 15:31:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6868,"items_count":3} 
[2026-04-05 15:31:27] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32795,"menu_item_id":7,"quantity":2},{"id":32796,"menu_item_id":63,"quantity":1},{"id":32797,"menu_item_id":61,"quantity":1}]} 
[2026-04-05 15:31:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6868,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["7|2|","63|1|","61|1|"],"new_items_map_keys":["7|2|","63|1|","61|1|"]} 
[2026-04-05 15:31:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6868,"order_number":"AZS-050426-003"} 
[2026-04-05 15:31:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6868,"order_number":"AZS-050426-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 15:31:27"} 
[2026-04-05 15:38:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6868,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":7,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":32795},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":32796},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32797}],"validated_items":[{"id":32795,"menu_item_id":7,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":32796,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":32797,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-05 15:38:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6868,"items_count":3} 
[2026-04-05 15:38:16] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32795,"menu_item_id":7,"quantity":2},{"id":32796,"menu_item_id":63,"quantity":1},{"id":32797,"menu_item_id":61,"quantity":1}]} 
[2026-04-05 15:38:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6868,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["7|2|","63|1|","61|1|"],"new_items_map_keys":["7|2|","63|1|","61|1|"]} 
[2026-04-05 15:38:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6868,"order_number":"AZS-050426-003"} 
[2026-04-05 15:38:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6868,"order_number":"AZS-050426-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 15:38:16"} 
[2026-04-05 15:40:57] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6868,"order_number":"AZS-050426-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 15:40:57"} 
[2026-04-05 15:40:57] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6868,"order_number":"AZS-050426-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 15:40:57"} 
[2026-04-05 15:40:57] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6868,"order_number":"AZS-050426-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 15:40:57"} 
[2026-04-05 15:40:57] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6868,"order_number":"AZS-050426-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 15:40:57"} 
[2026-04-05 15:40:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6868,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":7,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":32795},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":32796},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32797}],"validated_items":[{"id":32795,"menu_item_id":7,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":32796,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":32797,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-05 15:40:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6868,"items_count":3} 
[2026-04-05 15:40:57] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32795,"menu_item_id":7,"quantity":2},{"id":32796,"menu_item_id":63,"quantity":1},{"id":32797,"menu_item_id":61,"quantity":1}]} 
[2026-04-05 15:40:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6868,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["7|2|","63|1|","61|1|"],"new_items_map_keys":["7|2|","63|1|","61|1|"]} 
[2026-04-05 15:40:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6868,"order_number":"AZS-050426-003"} 
[2026-04-05 15:40:57] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6868,"order_number":"AZS-050426-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-05 15:40:57","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 15:40:57"} 
[2026-04-05 15:40:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6868,"order_number":"AZS-050426-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 15:40:57"} 
[2026-04-05 15:40:57] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6868,"order_number":"AZS-050426-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-05 15:40:57","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-04-05 15:40:57"} 
[2026-04-05 15:41:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T03:41:08.466Z","date_to":"2026-04-05T15:41:08.466Z","per_page":"100"} 
[2026-04-05 15:41:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T03:41:08.452Z","date_to":"2026-04-05T15:41:08.452Z","per_page":"100"} 
[2026-04-05 15:41:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":3,"unique_order_numbers":8} 
[2026-04-05 15:41:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":3,"unique_order_numbers":8} 
[2026-04-05 15:41:06] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T03:41:08.452Z","date_to":"2026-04-05T15:41:08.452Z","per_page":"100"} 
[2026-04-05 15:41:06] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":8,"count":8,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":3,"unique_order_numbers":8} 
[2026-04-05 15:51:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":1,"order_id":6876,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null,"id":32843},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":32844},{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":32845},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":32846},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":32847},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32848},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":32849},{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32843,"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"id":32844,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":32845,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":32846,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":32847,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":32848,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32849,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 15:51:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6876,"items_count":8} 
[2026-04-05 15:51:29] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":1,"items_to_remove":[32842],"items":[{"id":32843,"menu_item_id":83,"quantity":1},{"id":32844,"menu_item_id":97,"quantity":1},{"id":32845,"menu_item_id":78,"quantity":1},{"id":32846,"menu_item_id":61,"quantity":2},{"id":32847,"menu_item_id":56,"quantity":2},{"id":32848,"menu_item_id":5,"quantity":1},{"id":32849,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":85,"quantity":1}]} 
[2026-04-05 15:51:29] local.INFO: PosOrderController::update - Item changes check {"order_id":6876,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["403|1|","83|1|","97|1|","78|1|","61|2|","56|2|","5|1|","396|3|"],"new_items_map_keys":["83|1|","97|1|","78|1|","61|2|","56|2|","5|1|","396|3|","85|1|"]} 
[2026-04-05 15:51:29] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6876,"order_number":"AZS-050426-009"} 
[2026-04-05 15:51:29] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-009","replaced_order_id":6876} 
[2026-04-05 15:51:29] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6878,"items_count":8,"items":[{"menu_item_id":83,"quantity":1,"price":"649.00"},{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":85,"quantity":1,"price":"699.00"}]} 
[2026-04-05 15:51:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6878,"item_index":0,"item_data":{"menu_item_id":83,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Chicken Nuggets","quantity":1,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":649.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6878}} 
[2026-04-05 15:51:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6878,"item_index":0,"menu_item_id":83} 
[2026-04-05 15:51:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6878,"item_index":1,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6878}} 
[2026-04-05 15:51:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6878,"item_index":1,"menu_item_id":97} 
[2026-04-05 15:51:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6878,"item_index":2,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6878}} 
[2026-04-05 15:51:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6878,"item_index":2,"menu_item_id":78} 
[2026-04-05 15:51:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6878,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6878}} 
[2026-04-05 15:51:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6878,"item_index":3,"menu_item_id":61} 
[2026-04-05 15:51:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6878,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6878}} 
[2026-04-05 15:51:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6878,"item_index":4,"menu_item_id":56} 
[2026-04-05 15:51:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6878,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6878}} 
[2026-04-05 15:51:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6878,"item_index":5,"menu_item_id":5} 
[2026-04-05 15:51:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6878,"item_index":6,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6878}} 
[2026-04-05 15:51:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6878,"item_index":6,"menu_item_id":396} 
[2026-04-05 15:51:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6878,"item_index":7,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":1,"price":"699.00","discount_percent":0.0,"discount_amount":0.0,"total":699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6878}} 
[2026-04-05 15:51:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6878,"item_index":7,"menu_item_id":85} 
[2026-04-05 15:51:29] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6876,"new_order_id":6878,"order_number":"AZS-050426-009"} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6875,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":88,"quantity":1,"discount_percent":0,"notes":null,"id":32834},{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":32835},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":32836},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32837},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32838},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32839},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null,"id":32840},{"menu_item_id":71,"quantity":1,"discount_percent":0,"notes":null,"id":32841},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32834,"menu_item_id":88,"quantity":1,"discount_percent":0,"notes":null},{"id":32835,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":32836,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":32837,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32838,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32839,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32840,"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"id":32841,"menu_item_id":71,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6875,"items_count":10} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32834,"menu_item_id":88,"quantity":1},{"id":32835,"menu_item_id":78,"quantity":1},{"id":32836,"menu_item_id":396,"quantity":2},{"id":32837,"menu_item_id":61,"quantity":1},{"id":32838,"menu_item_id":56,"quantity":1},{"id":32839,"menu_item_id":5,"quantity":1},{"id":32840,"menu_item_id":83,"quantity":1},{"id":32841,"menu_item_id":71,"quantity":1},{"id":null,"menu_item_id":112,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6875,"has_item_changes":true,"old_items_count":8,"new_items_count":10,"old_items_map_keys":["88|1|","78|1|","396|2|","61|1|","56|1|","5|1|","83|1|","71|1|"],"new_items_map_keys":["88|1|","78|1|","396|2|","61|1|","56|1|","5|1|","83|1|","71|1|","112|1|","3|1|"]} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6875,"order_number":"AZS-050426-007"} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-007","replaced_order_id":6875} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6880,"items_count":10,"items":[{"menu_item_id":88,"quantity":1,"price":"1999.00"},{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":83,"quantity":1,"price":"649.00"},{"menu_item_id":71,"quantity":1,"price":"1199.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6880,"item_index":0,"item_data":{"menu_item_id":88,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Madrasi Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6880}} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6880,"item_index":0,"menu_item_id":88} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6880,"item_index":1,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6880}} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6880,"item_index":1,"menu_item_id":78} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6880,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6880}} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6880,"item_index":2,"menu_item_id":396} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6880,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6880}} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6880,"item_index":3,"menu_item_id":61} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6880,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6880}} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6880,"item_index":4,"menu_item_id":56} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6880,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6880}} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6880,"item_index":5,"menu_item_id":5} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6880,"item_index":6,"item_data":{"menu_item_id":83,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Chicken Nuggets","quantity":1,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":649.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6880}} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6880,"item_index":6,"menu_item_id":83} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6880,"item_index":7,"item_data":{"menu_item_id":71,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Special Afghani Boti (10 pcs)","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6880}} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6880,"item_index":7,"menu_item_id":71} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6880,"item_index":8,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6880}} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6880,"item_index":8,"menu_item_id":112} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6880,"item_index":9,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6880}} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6880,"item_index":9,"menu_item_id":3} 
[2026-04-05 15:54:32] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6875,"new_order_id":6880,"order_number":"AZS-050426-007"} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6871,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":32807},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":32808},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":32809},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":32810},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32811},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32812},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32813},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":32814},{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":32807,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":32808,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":32809,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":32810,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":32811,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32812,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32813,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32814,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6871,"items_count":9} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32807,"menu_item_id":113,"quantity":1},{"id":32808,"menu_item_id":105,"quantity":1},{"id":32809,"menu_item_id":396,"quantity":3},{"id":32810,"menu_item_id":50,"quantity":1},{"id":32811,"menu_item_id":61,"quantity":1},{"id":32812,"menu_item_id":56,"quantity":1},{"id":32813,"menu_item_id":5,"quantity":1},{"id":32814,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":6,"quantity":3}]} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6871,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["113|1|","105|1|","396|3|","50|1|","61|1|","56|1|","5|1|","403|1|"],"new_items_map_keys":["113|1|","105|1|","396|3|","50|1|","61|1|","56|1|","5|1|","403|1|","6|3|"]} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6871,"order_number":"AZS-050426-005"} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-005","replaced_order_id":6871} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6881,"items_count":9,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":6,"quantity":3,"price":"199.00"}]} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6881,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6881}} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6881,"item_index":0,"menu_item_id":113} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6881,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6881}} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6881,"item_index":1,"menu_item_id":105} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6881,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6881}} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6881,"item_index":2,"menu_item_id":396} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6881,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6881}} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6881,"item_index":3,"menu_item_id":50} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6881,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6881}} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6881,"item_index":4,"menu_item_id":61} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6881,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6881}} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6881,"item_index":5,"menu_item_id":56} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6881,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6881}} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6881,"item_index":6,"menu_item_id":5} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6881,"item_index":7,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6881}} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6881,"item_index":7,"menu_item_id":403} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6881,"item_index":8,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6881}} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6881,"item_index":8,"menu_item_id":6} 
[2026-04-05 15:55:10] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6871,"new_order_id":6881,"order_number":"AZS-050426-005"} 
[2026-04-05 15:56:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6874,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32828},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":32829},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":32830},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":32831},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32832},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32833}],"validated_items":[{"id":32828,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32829,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":32830,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":32831,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":32832,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32833,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-05 15:56:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6874,"items_count":6} 
[2026-04-05 15:56:30] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32828,"menu_item_id":96,"quantity":1},{"id":32829,"menu_item_id":64,"quantity":1},{"id":32830,"menu_item_id":403,"quantity":1},{"id":32831,"menu_item_id":49,"quantity":3},{"id":32832,"menu_item_id":61,"quantity":1},{"id":32833,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 15:56:30] local.INFO: PosOrderController::update - Item changes check {"order_id":6874,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["96|1|","64|1|","403|1|","49|3|","61|1|","5|1|"],"new_items_map_keys":["96|1|","64|1|","403|1|","49|3|","61|1|","5|1|"]} 
[2026-04-05 15:56:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6874,"order_number":"AZS-050426-008"} 
[2026-04-05 15:56:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6874,"order_number":"AZS-050426-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 15:56:30"} 
[2026-04-05 15:56:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6874,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32828},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":32829},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":32830},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":32831},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32832},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32833}],"validated_items":[{"id":32828,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32829,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":32830,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":32831,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":32832,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32833,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-05 15:56:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6874,"items_count":6} 
[2026-04-05 15:56:47] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32828,"menu_item_id":96,"quantity":1},{"id":32829,"menu_item_id":64,"quantity":1},{"id":32830,"menu_item_id":403,"quantity":1},{"id":32831,"menu_item_id":49,"quantity":3},{"id":32832,"menu_item_id":61,"quantity":1},{"id":32833,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 15:56:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6874,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["96|1|","64|1|","403|1|","49|3|","61|1|","5|1|"],"new_items_map_keys":["96|1|","64|1|","403|1|","49|3|","61|1|","5|1|"]} 
[2026-04-05 15:56:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6874,"order_number":"AZS-050426-008"} 
[2026-04-05 15:56:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6874,"order_number":"AZS-050426-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 15:56:47"} 
[2026-04-05 16:02:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6878,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null,"id":32855},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":32856},{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":32857},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":32858},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":32859},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32860},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":32861},{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null,"id":32862}],"validated_items":[{"id":32855,"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"id":32856,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":32857,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":32858,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":32859,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":32860,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32861,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":32862,"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:02:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6878,"items_count":8} 
[2026-04-05 16:02:20] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32855,"menu_item_id":83,"quantity":1},{"id":32856,"menu_item_id":97,"quantity":1},{"id":32857,"menu_item_id":78,"quantity":1},{"id":32858,"menu_item_id":61,"quantity":2},{"id":32859,"menu_item_id":56,"quantity":2},{"id":32860,"menu_item_id":5,"quantity":1},{"id":32861,"menu_item_id":396,"quantity":3},{"id":32862,"menu_item_id":85,"quantity":1}]} 
[2026-04-05 16:02:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6878,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["83|1|","97|1|","78|1|","61|2|","56|2|","5|1|","396|3|","85|1|"],"new_items_map_keys":["83|1|","97|1|","78|1|","61|2|","56|2|","5|1|","396|3|","85|1|"]} 
[2026-04-05 16:02:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6878,"order_number":"AZS-050426-009"} 
[2026-04-05 16:02:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6878,"order_number":"AZS-050426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-05 16:02:20"} 
[2026-04-05 16:03:07] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6874,"order_number":"AZS-050426-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3300,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 16:03:07"} 
[2026-04-05 16:03:07] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6874,"order_number":"AZS-050426-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3300,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 16:03:07"} 
[2026-04-05 16:03:07] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6874,"order_number":"AZS-050426-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 16:03:07"} 
[2026-04-05 16:03:07] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6874,"order_number":"AZS-050426-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 16:03:07"} 
[2026-04-05 16:03:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6874,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32828},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":32829},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":32830},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":32831},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32832},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32833}],"validated_items":[{"id":32828,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32829,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":32830,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":32831,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":32832,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32833,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:03:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6874,"items_count":6} 
[2026-04-05 16:03:07] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32828,"menu_item_id":96,"quantity":1},{"id":32829,"menu_item_id":64,"quantity":1},{"id":32830,"menu_item_id":403,"quantity":1},{"id":32831,"menu_item_id":49,"quantity":3},{"id":32832,"menu_item_id":61,"quantity":1},{"id":32833,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 16:03:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6874,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["96|1|","64|1|","403|1|","49|3|","61|1|","5|1|"],"new_items_map_keys":["96|1|","64|1|","403|1|","49|3|","61|1|","5|1|"]} 
[2026-04-05 16:03:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6874,"order_number":"AZS-050426-008"} 
[2026-04-05 16:03:07] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6874,"order_number":"AZS-050426-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3300,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-05 16:03:07","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 16:03:07"} 
[2026-04-05 16:03:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6874,"order_number":"AZS-050426-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 16:03:07"} 
[2026-04-05 16:03:07] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6874,"order_number":"AZS-050426-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3300.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-05 16:03:07","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3300,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3300.00","database_verification_match":true,"timestamp":"2026-04-05 16:03:07"} 
[2026-04-05 16:03:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:03:14.841Z","date_to":"2026-04-05T16:03:14.841Z","per_page":"100"} 
[2026-04-05 16:03:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":7,"unique_order_numbers":13} 
[2026-04-05 16:03:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:03:14.856Z","date_to":"2026-04-05T16:03:14.856Z","per_page":"100"} 
[2026-04-05 16:03:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":7,"unique_order_numbers":13} 
[2026-04-05 16:03:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:03:14.841Z","date_to":"2026-04-05T16:03:14.841Z","per_page":"100"} 
[2026-04-05 16:03:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":7,"unique_order_numbers":13} 
[2026-04-05 16:03:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6883,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":32892},{"menu_item_id":67,"quantity":2,"discount_percent":0,"notes":null,"id":32893},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":32894},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":32895},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":32896},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32897}],"validated_items":[{"id":32892,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":32893,"menu_item_id":67,"quantity":2,"discount_percent":0,"notes":null},{"id":32894,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":32895,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":32896,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":32897,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:03:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6883,"items_count":6} 
[2026-04-05 16:03:23] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32892,"menu_item_id":97,"quantity":1},{"id":32893,"menu_item_id":67,"quantity":2},{"id":32894,"menu_item_id":396,"quantity":5},{"id":32895,"menu_item_id":61,"quantity":2},{"id":32896,"menu_item_id":56,"quantity":2},{"id":32897,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 16:03:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6883,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["97|1|","67|2|","396|5|","61|2|","56|2|","5|1|"],"new_items_map_keys":["97|1|","67|2|","396|5|","61|2|","56|2|","5|1|"]} 
[2026-04-05 16:03:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6883,"order_number":"AZS-050426-013"} 
[2026-04-05 16:03:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6883,"order_number":"AZS-050426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-05 16:03:23"} 
[2026-04-05 16:03:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6882,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":32885},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":32886},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":32887},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32888},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32889},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":32890},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32891}],"validated_items":[{"id":32885,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":32886,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":32887,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"id":32888,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32889,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32890,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":32891,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:03:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6882,"items_count":7} 
[2026-04-05 16:03:31] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32885,"menu_item_id":114,"quantity":1},{"id":32886,"menu_item_id":62,"quantity":1},{"id":32887,"menu_item_id":403,"quantity":1},{"id":32888,"menu_item_id":61,"quantity":1},{"id":32889,"menu_item_id":56,"quantity":1},{"id":32890,"menu_item_id":396,"quantity":5},{"id":32891,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 16:03:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6882,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["114|1|","62|1|","403|1|","61|1|","56|1|","396|5|","5|1|"],"new_items_map_keys":["114|1|","62|1|","403|1|","61|1|","56|1|","396|5|","5|1|"]} 
[2026-04-05 16:03:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6882,"order_number":"AZS-050426-012"} 
[2026-04-05 16:03:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6882,"order_number":"AZS-050426-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-05 16:03:31"} 
[2026-04-05 16:04:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6881,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32876},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32877},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32878},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":32879},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32880},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32881},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32882},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":32883},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":32884}],"validated_items":[{"id":32876,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32877,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32878,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32879,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":32880,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32881,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32882,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32883,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":32884,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:04:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6881,"items_count":9} 
[2026-04-05 16:04:21] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32876,"menu_item_id":113,"quantity":1},{"id":32877,"menu_item_id":105,"quantity":1},{"id":32878,"menu_item_id":396,"quantity":3},{"id":32879,"menu_item_id":50,"quantity":1},{"id":32880,"menu_item_id":61,"quantity":1},{"id":32881,"menu_item_id":56,"quantity":1},{"id":32882,"menu_item_id":5,"quantity":1},{"id":32883,"menu_item_id":403,"quantity":1},{"id":32884,"menu_item_id":6,"quantity":3}]} 
[2026-04-05 16:04:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6881,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["113|1|","105|1|","396|3|","50|1|","61|1|","56|1|","5|1|","403|1|","6|3|"],"new_items_map_keys":["113|1|","105|1|","396|3|","50|1|","61|1|","56|1|","5|1|","403|1|","6|3|"]} 
[2026-04-05 16:04:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6881,"order_number":"AZS-050426-005"} 
[2026-04-05 16:04:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6881,"order_number":"AZS-050426-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 16:04:21"} 
[2026-04-05 16:04:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6881,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32876},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32877},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32878},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":32879},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32880},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32881},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32882},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":32883},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":32884}],"validated_items":[{"id":32876,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32877,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32878,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32879,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":32880,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32881,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32882,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32883,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":32884,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:04:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6881,"items_count":9} 
[2026-04-05 16:04:32] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32876,"menu_item_id":113,"quantity":1},{"id":32877,"menu_item_id":105,"quantity":1},{"id":32878,"menu_item_id":396,"quantity":3},{"id":32879,"menu_item_id":50,"quantity":1},{"id":32880,"menu_item_id":61,"quantity":1},{"id":32881,"menu_item_id":56,"quantity":1},{"id":32882,"menu_item_id":5,"quantity":1},{"id":32883,"menu_item_id":403,"quantity":1},{"id":32884,"menu_item_id":6,"quantity":3}]} 
[2026-04-05 16:04:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6881,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["113|1|","105|1|","396|3|","50|1|","61|1|","56|1|","5|1|","403|1|","6|3|"],"new_items_map_keys":["113|1|","105|1|","396|3|","50|1|","61|1|","56|1|","5|1|","403|1|","6|3|"]} 
[2026-04-05 16:04:32] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6881,"order_number":"AZS-050426-005"} 
[2026-04-05 16:04:32] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6881,"order_number":"AZS-050426-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 16:04:32"} 
[2026-04-05 16:05:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":1,"order_id":6881,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":32876},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":32877},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":32878},{"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null,"id":32879},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32880},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32881},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":32883},{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null,"id":32884}],"validated_items":[{"id":32876,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":32877,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":32878,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":32879,"menu_item_id":50,"quantity":1,"discount_percent":0,"notes":null},{"id":32880,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32881,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32883,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"id":32884,"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:05:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6881,"items_count":8} 
[2026-04-05 16:05:03] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":1,"items_to_remove":[32882],"items":[{"id":32876,"menu_item_id":113,"quantity":1},{"id":32877,"menu_item_id":105,"quantity":1},{"id":32878,"menu_item_id":396,"quantity":3},{"id":32879,"menu_item_id":50,"quantity":1},{"id":32880,"menu_item_id":61,"quantity":1},{"id":32881,"menu_item_id":56,"quantity":1},{"id":32883,"menu_item_id":403,"quantity":1},{"id":32884,"menu_item_id":6,"quantity":3}]} 
[2026-04-05 16:05:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6881,"has_item_changes":true,"old_items_count":9,"new_items_count":8,"old_items_map_keys":["113|1|","105|1|","396|3|","50|1|","61|1|","56|1|","5|1|","403|1|","6|3|"],"new_items_map_keys":["113|1|","105|1|","396|3|","50|1|","61|1|","56|1|","403|1|","6|3|"]} 
[2026-04-05 16:05:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6881,"order_number":"AZS-050426-005"} 
[2026-04-05 16:05:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-005","replaced_order_id":6881} 
[2026-04-05 16:05:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6884,"items_count":8,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":1,"price":"129.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":6,"quantity":3,"price":"199.00"}]} 
[2026-04-05 16:05:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6884,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6884}} 
[2026-04-05 16:05:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6884,"item_index":0,"menu_item_id":113} 
[2026-04-05 16:05:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6884,"item_index":1,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6884}} 
[2026-04-05 16:05:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6884,"item_index":1,"menu_item_id":105} 
[2026-04-05 16:05:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6884,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6884}} 
[2026-04-05 16:05:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6884,"item_index":2,"menu_item_id":396} 
[2026-04-05 16:05:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6884,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6884}} 
[2026-04-05 16:05:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6884,"item_index":3,"menu_item_id":50} 
[2026-04-05 16:05:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6884,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6884}} 
[2026-04-05 16:05:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6884,"item_index":4,"menu_item_id":61} 
[2026-04-05 16:05:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6884,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6884}} 
[2026-04-05 16:05:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6884,"item_index":5,"menu_item_id":56} 
[2026-04-05 16:05:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6884,"item_index":6,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6884}} 
[2026-04-05 16:05:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6884,"item_index":6,"menu_item_id":403} 
[2026-04-05 16:05:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6884,"item_index":7,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6884}} 
[2026-04-05 16:05:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6884,"item_index":7,"menu_item_id":6} 
[2026-04-05 16:05:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6881,"new_order_id":6884,"order_number":"AZS-050426-005"} 
[2026-04-05 16:05:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6884,"item_index":0,"item_id":32876} 
[2026-04-05 16:05:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6884,"item_index":1,"item_id":32877} 
[2026-04-05 16:05:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6884,"item_index":2,"item_id":32878} 
[2026-04-05 16:05:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6884,"item_index":3,"item_id":32879} 
[2026-04-05 16:05:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6884,"item_index":4,"item_id":32880} 
[2026-04-05 16:05:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6884,"item_index":5,"item_id":32881} 
[2026-04-05 16:05:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6884,"item_index":6,"item_id":32883} 
[2026-04-05 16:05:12] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6884,"item_index":7,"item_id":32884} 
[2026-04-05 16:05:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":8,"order_id":6884,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32876},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32877},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32878},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":32879},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32880},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32881},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":32883},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":32884}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:05:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6884,"items_count":8} 
[2026-04-05 16:05:12] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":8,"items_to_remove":[32898,32899,32900,32901,32902,32903,32904,32905],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":6,"quantity":3}]} 
[2026-04-05 16:05:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6884,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["113|1|","105|1|","396|3|","50|1|","61|1|","56|1|","403|1|","6|3|"],"new_items_map_keys":["113|1|","105|1|","396|3|","50|1|","61|1|","56|1|","403|1|","6|3|"]} 
[2026-04-05 16:05:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6884,"order_number":"AZS-050426-005"} 
[2026-04-05 16:05:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6884,"order_number":"AZS-050426-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 16:05:12"} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6880,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":88,"quantity":1,"discount_percent":0,"notes":null,"id":32866},{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":32867},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":32868},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32869},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32870},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32871},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null,"id":32872},{"menu_item_id":71,"quantity":1,"discount_percent":0,"notes":null,"id":32873},{"menu_item_id":112,"quantity":2,"discount_percent":0,"notes":null,"id":32874},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":32875}],"validated_items":[{"id":32866,"menu_item_id":88,"quantity":1,"discount_percent":0,"notes":null},{"id":32867,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":32868,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":32869,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32870,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32871,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32872,"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"id":32873,"menu_item_id":71,"quantity":1,"discount_percent":0,"notes":null},{"id":32874,"menu_item_id":112,"quantity":2,"discount_percent":0,"notes":null},{"id":32875,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6880,"items_count":10} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32866,"menu_item_id":88,"quantity":1},{"id":32867,"menu_item_id":78,"quantity":1},{"id":32868,"menu_item_id":396,"quantity":2},{"id":32869,"menu_item_id":61,"quantity":1},{"id":32870,"menu_item_id":56,"quantity":1},{"id":32871,"menu_item_id":5,"quantity":1},{"id":32872,"menu_item_id":83,"quantity":1},{"id":32873,"menu_item_id":71,"quantity":1},{"id":32874,"menu_item_id":112,"quantity":2},{"id":32875,"menu_item_id":3,"quantity":1}]} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Item changes check {"order_id":6880,"has_item_changes":true,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["88|1|","78|1|","396|2|","61|1|","56|1|","5|1|","83|1|","71|1|","112|1|","3|1|"],"new_items_map_keys":["88|1|","78|1|","396|2|","61|1|","56|1|","5|1|","83|1|","71|1|","112|2|","3|1|"]} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6880,"order_number":"AZS-050426-007"} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-007","replaced_order_id":6880} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6885,"items_count":10,"items":[{"menu_item_id":88,"quantity":1,"price":"1999.00"},{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":83,"quantity":1,"price":"649.00"},{"menu_item_id":71,"quantity":1,"price":"1199.00"},{"menu_item_id":112,"quantity":2,"price":"1699.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6885,"item_index":0,"item_data":{"menu_item_id":88,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Madrasi Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6885}} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6885,"item_index":0,"menu_item_id":88} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6885,"item_index":1,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6885}} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6885,"item_index":1,"menu_item_id":78} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6885,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6885}} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6885,"item_index":2,"menu_item_id":396} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6885,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6885}} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6885,"item_index":3,"menu_item_id":61} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6885,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6885}} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6885,"item_index":4,"menu_item_id":56} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6885,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6885}} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6885,"item_index":5,"menu_item_id":5} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6885,"item_index":6,"item_data":{"menu_item_id":83,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Chicken Nuggets","quantity":1,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":649.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6885}} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6885,"item_index":6,"menu_item_id":83} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6885,"item_index":7,"item_data":{"menu_item_id":71,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Special Afghani Boti (10 pcs)","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6885}} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6885,"item_index":7,"menu_item_id":71} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6885,"item_index":8,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":2,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":3398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6885}} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6885,"item_index":8,"menu_item_id":112} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6885,"item_index":9,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6885}} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6885,"item_index":9,"menu_item_id":3} 
[2026-04-05 16:07:22] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6880,"new_order_id":6885,"order_number":"AZS-050426-007"} 
[2026-04-05 16:11:00] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6884,"order_number":"AZS-050426-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5427,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 16:11:00"} 
[2026-04-05 16:11:00] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6884,"order_number":"AZS-050426-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5427,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 16:11:00"} 
[2026-04-05 16:11:00] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6884,"order_number":"AZS-050426-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5427,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 16:11:00"} 
[2026-04-05 16:11:00] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6884,"order_number":"AZS-050426-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5427,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 16:11:00"} 
[2026-04-05 16:11:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6884,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32898},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":32899},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32900},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":32901},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32902},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32903},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":32904},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":32905}],"validated_items":[{"id":32898,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32899,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":32900,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32901,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"id":32902,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32903,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32904,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":32905,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:11:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6884,"items_count":8} 
[2026-04-05 16:11:00] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32898,"menu_item_id":113,"quantity":1},{"id":32899,"menu_item_id":105,"quantity":1},{"id":32900,"menu_item_id":396,"quantity":3},{"id":32901,"menu_item_id":50,"quantity":1},{"id":32902,"menu_item_id":61,"quantity":1},{"id":32903,"menu_item_id":56,"quantity":1},{"id":32904,"menu_item_id":403,"quantity":1},{"id":32905,"menu_item_id":6,"quantity":3}]} 
[2026-04-05 16:11:00] local.INFO: PosOrderController::update - Item changes check {"order_id":6884,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["113|1|","105|1|","396|3|","50|1|","61|1|","56|1|","403|1|","6|3|"],"new_items_map_keys":["113|1|","105|1|","396|3|","50|1|","61|1|","56|1|","403|1|","6|3|"]} 
[2026-04-05 16:11:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6884,"order_number":"AZS-050426-005"} 
[2026-04-05 16:11:00] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6884,"order_number":"AZS-050426-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5427,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-05 16:11:00","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 16:11:00"} 
[2026-04-05 16:11:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6884,"order_number":"AZS-050426-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 16:11:00"} 
[2026-04-05 16:11:00] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6884,"order_number":"AZS-050426-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5427.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-05 16:11:00","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5427,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5427.00","database_verification_match":true,"timestamp":"2026-04-05 16:11:00"} 
[2026-04-05 16:11:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:11:55.622Z","date_to":"2026-04-05T16:11:55.622Z","per_page":"100"} 
[2026-04-05 16:11:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":6,"unique_order_numbers":13} 
[2026-04-05 16:11:53] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:11:55.638Z","date_to":"2026-04-05T16:11:55.638Z","per_page":"100"} 
[2026-04-05 16:11:53] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":6,"unique_order_numbers":13} 
[2026-04-05 16:11:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:11:55.622Z","date_to":"2026-04-05T16:11:55.622Z","per_page":"100"} 
[2026-04-05 16:11:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":6,"unique_order_numbers":13} 
[2026-04-05 16:13:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:13:28.576Z","date_to":"2026-04-05T16:13:28.576Z","per_page":"100"} 
[2026-04-05 16:13:26] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:13:28.572Z","date_to":"2026-04-05T16:13:28.572Z","per_page":"100"} 
[2026-04-05 16:13:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":6,"unique_order_numbers":13} 
[2026-04-05 16:13:26] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":6,"unique_order_numbers":13} 
[2026-04-05 16:13:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:13:28.572Z","date_to":"2026-04-05T16:13:28.572Z","per_page":"100"} 
[2026-04-05 16:13:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":7,"unpaid_count":6,"unique_order_numbers":13} 
[2026-04-05 16:15:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6885,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":88,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":32906},{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":32907},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32908},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32909},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32910},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32911},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":32912},{"menu_item_id":71,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32913},{"menu_item_id":112,"quantity":2,"price":1699,"discount_percent":0,"notes":null,"id":32914},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32915}],"validated_items":[{"id":32906,"menu_item_id":88,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":32907,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":32908,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32909,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32910,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32911,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32912,"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":32913,"menu_item_id":71,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32914,"menu_item_id":112,"quantity":2,"price":1699,"discount_percent":0,"notes":null},{"id":32915,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:15:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6885,"items_count":10} 
[2026-04-05 16:15:42] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32906,"menu_item_id":88,"quantity":1},{"id":32907,"menu_item_id":78,"quantity":1},{"id":32908,"menu_item_id":396,"quantity":2},{"id":32909,"menu_item_id":61,"quantity":1},{"id":32910,"menu_item_id":56,"quantity":1},{"id":32911,"menu_item_id":5,"quantity":1},{"id":32912,"menu_item_id":83,"quantity":1},{"id":32913,"menu_item_id":71,"quantity":1},{"id":32914,"menu_item_id":112,"quantity":2},{"id":32915,"menu_item_id":3,"quantity":1}]} 
[2026-04-05 16:15:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6885,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["88|1|","78|1|","396|2|","61|1|","56|1|","5|1|","83|1|","71|1|","112|2|","3|1|"],"new_items_map_keys":["88|1|","78|1|","396|2|","61|1|","56|1|","5|1|","83|1|","71|1|","112|2|","3|1|"]} 
[2026-04-05 16:15:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6885,"order_number":"AZS-050426-007"} 
[2026-04-05 16:15:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6885,"order_number":"AZS-050426-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 16:15:42"} 
[2026-04-05 16:20:52] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6885,"order_number":"AZS-050426-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":13314,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 16:20:52"} 
[2026-04-05 16:20:52] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6885,"order_number":"AZS-050426-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":13314,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 16:20:52"} 
[2026-04-05 16:20:52] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6885,"order_number":"AZS-050426-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":13314,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 16:20:52"} 
[2026-04-05 16:20:52] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6885,"order_number":"AZS-050426-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":13314,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 16:20:52"} 
[2026-04-05 16:20:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6885,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":88,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":32906},{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":32907},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":32908},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32909},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32910},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32911},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":32912},{"menu_item_id":71,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32913},{"menu_item_id":112,"quantity":2,"price":1699,"discount_percent":0,"notes":null,"id":32914},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32915}],"validated_items":[{"id":32906,"menu_item_id":88,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":32907,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":32908,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":32909,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32910,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32911,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32912,"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":32913,"menu_item_id":71,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32914,"menu_item_id":112,"quantity":2,"price":1699,"discount_percent":0,"notes":null},{"id":32915,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:20:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6885,"items_count":10} 
[2026-04-05 16:20:52] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32906,"menu_item_id":88,"quantity":1},{"id":32907,"menu_item_id":78,"quantity":1},{"id":32908,"menu_item_id":396,"quantity":2},{"id":32909,"menu_item_id":61,"quantity":1},{"id":32910,"menu_item_id":56,"quantity":1},{"id":32911,"menu_item_id":5,"quantity":1},{"id":32912,"menu_item_id":83,"quantity":1},{"id":32913,"menu_item_id":71,"quantity":1},{"id":32914,"menu_item_id":112,"quantity":2},{"id":32915,"menu_item_id":3,"quantity":1}]} 
[2026-04-05 16:20:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6885,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["88|1|","78|1|","396|2|","61|1|","56|1|","5|1|","83|1|","71|1|","112|2|","3|1|"],"new_items_map_keys":["88|1|","78|1|","396|2|","61|1|","56|1|","5|1|","83|1|","71|1|","112|2|","3|1|"]} 
[2026-04-05 16:20:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6885,"order_number":"AZS-050426-007"} 
[2026-04-05 16:20:52] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6885,"order_number":"AZS-050426-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":13314,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-05 16:20:52","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 16:20:52"} 
[2026-04-05 16:20:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6885,"order_number":"AZS-050426-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 16:20:52"} 
[2026-04-05 16:20:52] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6885,"order_number":"AZS-050426-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"13314.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-05 16:20:52","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":13314,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"13314.00","database_verification_match":true,"timestamp":"2026-04-05 16:20:52"} 
[2026-04-05 16:26:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6882,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":32885},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":32886},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":32887},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32888},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":32889},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":32890},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32891},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32885,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":32886,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":32887,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"id":32888,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32889,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":32890,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":32891,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:26:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6882,"items_count":8} 
[2026-04-05 16:26:36] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32885,"menu_item_id":114,"quantity":1},{"id":32886,"menu_item_id":62,"quantity":1},{"id":32887,"menu_item_id":403,"quantity":1},{"id":32888,"menu_item_id":61,"quantity":1},{"id":32889,"menu_item_id":56,"quantity":1},{"id":32890,"menu_item_id":396,"quantity":5},{"id":32891,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-05 16:26:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6882,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["114|1|","62|1|","403|1|","61|1|","56|1|","396|5|","5|1|"],"new_items_map_keys":["114|1|","62|1|","403|1|","61|1|","56|1|","396|5|","5|1|","3|1|"]} 
[2026-04-05 16:26:36] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6882,"order_number":"AZS-050426-012"} 
[2026-04-05 16:26:36] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-012","replaced_order_id":6882} 
[2026-04-05 16:26:36] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6886,"items_count":8,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-05 16:26:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6886,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6886}} 
[2026-04-05 16:26:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6886,"item_index":0,"menu_item_id":114} 
[2026-04-05 16:26:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6886,"item_index":1,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6886}} 
[2026-04-05 16:26:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6886,"item_index":1,"menu_item_id":62} 
[2026-04-05 16:26:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6886,"item_index":2,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6886}} 
[2026-04-05 16:26:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6886,"item_index":2,"menu_item_id":403} 
[2026-04-05 16:26:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6886,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6886}} 
[2026-04-05 16:26:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6886,"item_index":3,"menu_item_id":61} 
[2026-04-05 16:26:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6886,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6886}} 
[2026-04-05 16:26:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6886,"item_index":4,"menu_item_id":56} 
[2026-04-05 16:26:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6886,"item_index":5,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6886}} 
[2026-04-05 16:26:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6886,"item_index":5,"menu_item_id":396} 
[2026-04-05 16:26:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6886,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6886}} 
[2026-04-05 16:26:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6886,"item_index":6,"menu_item_id":5} 
[2026-04-05 16:26:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6886,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6886}} 
[2026-04-05 16:26:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6886,"item_index":7,"menu_item_id":3} 
[2026-04-05 16:26:36] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6882,"new_order_id":6886,"order_number":"AZS-050426-012"} 
[2026-04-05 16:33:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6883,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":32892},{"menu_item_id":67,"quantity":2,"discount_percent":0,"notes":null,"id":32893},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":32894},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":32895},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":32896},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32897},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":32892,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":32893,"menu_item_id":67,"quantity":2,"discount_percent":0,"notes":null},{"id":32894,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":32895,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":32896,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":32897,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:33:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6883,"items_count":7} 
[2026-04-05 16:33:52] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32892,"menu_item_id":97,"quantity":1},{"id":32893,"menu_item_id":67,"quantity":2},{"id":32894,"menu_item_id":396,"quantity":5},{"id":32895,"menu_item_id":61,"quantity":2},{"id":32896,"menu_item_id":56,"quantity":2},{"id":32897,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":52,"quantity":2}]} 
[2026-04-05 16:33:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6883,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["97|1|","67|2|","396|5|","61|2|","56|2|","5|1|"],"new_items_map_keys":["97|1|","67|2|","396|5|","61|2|","56|2|","5|1|","52|2|"]} 
[2026-04-05 16:33:52] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6883,"order_number":"AZS-050426-013"} 
[2026-04-05 16:33:52] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-013","replaced_order_id":6883} 
[2026-04-05 16:33:52] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6890,"items_count":7,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":67,"quantity":2,"price":"599.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":52,"quantity":2,"price":"70.00"}]} 
[2026-04-05 16:33:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6890,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6890}} 
[2026-04-05 16:33:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6890,"item_index":0,"menu_item_id":97} 
[2026-04-05 16:33:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6890,"item_index":1,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6890}} 
[2026-04-05 16:33:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6890,"item_index":1,"menu_item_id":67} 
[2026-04-05 16:33:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6890,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6890}} 
[2026-04-05 16:33:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6890,"item_index":2,"menu_item_id":396} 
[2026-04-05 16:33:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6890,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6890}} 
[2026-04-05 16:33:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6890,"item_index":3,"menu_item_id":61} 
[2026-04-05 16:33:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6890,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6890}} 
[2026-04-05 16:33:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6890,"item_index":4,"menu_item_id":56} 
[2026-04-05 16:33:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6890,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6890}} 
[2026-04-05 16:33:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6890,"item_index":5,"menu_item_id":5} 
[2026-04-05 16:33:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6890,"item_index":6,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6890}} 
[2026-04-05 16:33:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6890,"item_index":6,"menu_item_id":52} 
[2026-04-05 16:33:52] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6883,"new_order_id":6890,"order_number":"AZS-050426-013"} 
[2026-04-05 16:33:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:34:00.100Z","date_to":"2026-04-05T16:34:00.100Z","per_page":"100"} 
[2026-04-05 16:33:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":8,"unique_order_numbers":16} 
[2026-04-05 16:33:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:34:00.114Z","date_to":"2026-04-05T16:34:00.114Z","per_page":"100"} 
[2026-04-05 16:33:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":8,"unique_order_numbers":16} 
[2026-04-05 16:33:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:34:00.100Z","date_to":"2026-04-05T16:34:00.100Z","per_page":"100"} 
[2026-04-05 16:33:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":8,"unique_order_numbers":16} 
[2026-04-05 16:34:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6887,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":2,"discount_percent":0,"notes":null,"id":32924},{"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null,"id":32925},{"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null,"id":32926},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":32927},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":32928},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32929}],"validated_items":[{"id":32924,"menu_item_id":102,"quantity":2,"discount_percent":0,"notes":null},{"id":32925,"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null},{"id":32926,"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null},{"id":32927,"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"id":32928,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":32929,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:34:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6887,"items_count":6} 
[2026-04-05 16:34:15] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32924,"menu_item_id":102,"quantity":2},{"id":32925,"menu_item_id":113,"quantity":2},{"id":32926,"menu_item_id":396,"quantity":7},{"id":32927,"menu_item_id":61,"quantity":4},{"id":32928,"menu_item_id":56,"quantity":2},{"id":32929,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 16:34:15] local.INFO: PosOrderController::update - Item changes check {"order_id":6887,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["102|2|","113|2|","396|7|","61|4|","56|2|","5|1|"],"new_items_map_keys":["102|2|","113|2|","396|7|","61|4|","56|2|","5|1|"]} 
[2026-04-05 16:34:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6887,"order_number":"AZS-050426-014"} 
[2026-04-05 16:34:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6887,"order_number":"AZS-050426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-05 16:34:15"} 
[2026-04-05 16:34:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6877,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":32850},{"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null,"id":32851},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":32852},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32853},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32854},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":32850,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":32851,"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null},{"id":32852,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":32853,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32854,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:34:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6877,"items_count":6} 
[2026-04-05 16:34:41] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32850,"menu_item_id":96,"quantity":1},{"id":32851,"menu_item_id":49,"quantity":2},{"id":32852,"menu_item_id":396,"quantity":1},{"id":32853,"menu_item_id":61,"quantity":1},{"id":32854,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-04-05 16:34:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6877,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["96|1|","49|2|","396|1|","61|1|","5|1|"],"new_items_map_keys":["96|1|","49|2|","396|1|","61|1|","5|1|","2|3|"]} 
[2026-04-05 16:34:41] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6877,"order_number":"AZS-050426-010"} 
[2026-04-05 16:34:41] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-010","replaced_order_id":6877} 
[2026-04-05 16:34:41] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6891,"items_count":6,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":49,"quantity":2,"price":"70.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"}]} 
[2026-04-05 16:34:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6891,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6891}} 
[2026-04-05 16:34:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6891,"item_index":0,"menu_item_id":96} 
[2026-04-05 16:34:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6891,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6891}} 
[2026-04-05 16:34:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6891,"item_index":1,"menu_item_id":49} 
[2026-04-05 16:34:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6891,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6891}} 
[2026-04-05 16:34:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6891,"item_index":2,"menu_item_id":396} 
[2026-04-05 16:34:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6891,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6891}} 
[2026-04-05 16:34:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6891,"item_index":3,"menu_item_id":61} 
[2026-04-05 16:34:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6891,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6891}} 
[2026-04-05 16:34:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6891,"item_index":4,"menu_item_id":5} 
[2026-04-05 16:34:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6891,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6891}} 
[2026-04-05 16:34:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6891,"item_index":5,"menu_item_id":2} 
[2026-04-05 16:34:41] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6877,"new_order_id":6891,"order_number":"AZS-050426-010"} 
[2026-04-05 16:34:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6890,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":32932},{"menu_item_id":67,"quantity":2,"discount_percent":0,"notes":null,"id":32933},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":32934},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":32935},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":32936},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32937},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null,"id":32938}],"validated_items":[{"id":32932,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":32933,"menu_item_id":67,"quantity":2,"discount_percent":0,"notes":null},{"id":32934,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":32935,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":32936,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":32937,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32938,"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:34:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6890,"items_count":7} 
[2026-04-05 16:34:53] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32932,"menu_item_id":97,"quantity":1},{"id":32933,"menu_item_id":67,"quantity":2},{"id":32934,"menu_item_id":396,"quantity":5},{"id":32935,"menu_item_id":61,"quantity":2},{"id":32936,"menu_item_id":56,"quantity":2},{"id":32937,"menu_item_id":5,"quantity":1},{"id":32938,"menu_item_id":52,"quantity":2}]} 
[2026-04-05 16:34:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6890,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["97|1|","67|2|","396|5|","61|2|","56|2|","5|1|","52|2|"],"new_items_map_keys":["97|1|","67|2|","396|5|","61|2|","56|2|","5|1|","52|2|"]} 
[2026-04-05 16:34:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6890,"order_number":"AZS-050426-013"} 
[2026-04-05 16:34:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6890,"order_number":"AZS-050426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-05 16:34:53"} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6878,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null,"id":32855},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":32856},{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":32857},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":32858},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":32859},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32860},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":32861},{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null,"id":32862},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32855,"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"id":32856,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":32857,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":32858,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":32859,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":32860,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32861,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":32862,"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6878,"items_count":9} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32855,"menu_item_id":83,"quantity":1},{"id":32856,"menu_item_id":97,"quantity":1},{"id":32857,"menu_item_id":78,"quantity":1},{"id":32858,"menu_item_id":61,"quantity":2},{"id":32859,"menu_item_id":56,"quantity":2},{"id":32860,"menu_item_id":5,"quantity":1},{"id":32861,"menu_item_id":396,"quantity":3},{"id":32862,"menu_item_id":85,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6878,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["83|1|","97|1|","78|1|","61|2|","56|2|","5|1|","396|3|","85|1|"],"new_items_map_keys":["83|1|","97|1|","78|1|","61|2|","56|2|","5|1|","396|3|","85|1|","3|1|"]} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6878,"order_number":"AZS-050426-009"} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-009","replaced_order_id":6878} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6892,"items_count":9,"items":[{"menu_item_id":83,"quantity":1,"price":"649.00"},{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":85,"quantity":1,"price":"699.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6892,"item_index":0,"item_data":{"menu_item_id":83,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Chicken Nuggets","quantity":1,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":649.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6892}} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6892,"item_index":0,"menu_item_id":83} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6892,"item_index":1,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6892}} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6892,"item_index":1,"menu_item_id":97} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6892,"item_index":2,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6892}} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6892,"item_index":2,"menu_item_id":78} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6892,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6892}} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6892,"item_index":3,"menu_item_id":61} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6892,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6892}} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6892,"item_index":4,"menu_item_id":56} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6892,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6892}} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6892,"item_index":5,"menu_item_id":5} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6892,"item_index":6,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6892}} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6892,"item_index":6,"menu_item_id":396} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6892,"item_index":7,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":1,"price":"699.00","discount_percent":0.0,"discount_amount":0.0,"total":699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6892}} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6892,"item_index":7,"menu_item_id":85} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6892,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6892}} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6892,"item_index":8,"menu_item_id":3} 
[2026-04-05 16:35:27] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6878,"new_order_id":6892,"order_number":"AZS-050426-009"} 
[2026-04-05 16:35:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:35:36.362Z","date_to":"2026-04-05T16:35:36.362Z","per_page":"100"} 
[2026-04-05 16:35:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":8,"unique_order_numbers":16} 
[2026-04-05 16:35:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:35:36.362Z","date_to":"2026-04-05T16:35:36.362Z","per_page":"100"} 
[2026-04-05 16:35:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":8,"unique_order_numbers":16} 
[2026-04-05 16:35:34] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:35:36.372Z","date_to":"2026-04-05T16:35:36.372Z","per_page":"100"} 
[2026-04-05 16:35:34] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":8,"unique_order_numbers":16} 
[2026-04-05 16:36:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:36:34.178Z","date_to":"2026-04-05T16:36:34.178Z","per_page":"100"} 
[2026-04-05 16:36:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:36:34.161Z","date_to":"2026-04-05T16:36:34.161Z","per_page":"100"} 
[2026-04-05 16:36:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":8,"unique_order_numbers":16} 
[2026-04-05 16:36:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":8,"unique_order_numbers":16} 
[2026-04-05 16:36:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:36:34.161Z","date_to":"2026-04-05T16:36:34.161Z","per_page":"100"} 
[2026-04-05 16:36:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":8,"unpaid_count":8,"unique_order_numbers":16} 
[2026-04-05 16:38:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6890,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":32932},{"menu_item_id":67,"quantity":2,"discount_percent":0,"notes":null,"id":32933},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":32934},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":32935},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":32936},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32937},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null,"id":32938},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32932,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":32933,"menu_item_id":67,"quantity":2,"discount_percent":0,"notes":null},{"id":32934,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":32935,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":32936,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":32937,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32938,"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:38:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6890,"items_count":8} 
[2026-04-05 16:38:00] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32932,"menu_item_id":97,"quantity":1},{"id":32933,"menu_item_id":67,"quantity":2},{"id":32934,"menu_item_id":396,"quantity":5},{"id":32935,"menu_item_id":61,"quantity":2},{"id":32936,"menu_item_id":56,"quantity":2},{"id":32937,"menu_item_id":5,"quantity":1},{"id":32938,"menu_item_id":52,"quantity":2},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-05 16:38:00] local.INFO: PosOrderController::update - Item changes check {"order_id":6890,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["97|1|","67|2|","396|5|","61|2|","56|2|","5|1|","52|2|"],"new_items_map_keys":["97|1|","67|2|","396|5|","61|2|","56|2|","5|1|","52|2|","3|1|"]} 
[2026-04-05 16:38:00] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6890,"order_number":"AZS-050426-013"} 
[2026-04-05 16:38:00] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-013","replaced_order_id":6890} 
[2026-04-05 16:38:00] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6893,"items_count":8,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":67,"quantity":2,"price":"599.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":52,"quantity":2,"price":"70.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-05 16:38:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6893,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6893}} 
[2026-04-05 16:38:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6893,"item_index":0,"menu_item_id":97} 
[2026-04-05 16:38:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6893,"item_index":1,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6893}} 
[2026-04-05 16:38:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6893,"item_index":1,"menu_item_id":67} 
[2026-04-05 16:38:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6893,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6893}} 
[2026-04-05 16:38:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6893,"item_index":2,"menu_item_id":396} 
[2026-04-05 16:38:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6893,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6893}} 
[2026-04-05 16:38:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6893,"item_index":3,"menu_item_id":61} 
[2026-04-05 16:38:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6893,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6893}} 
[2026-04-05 16:38:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6893,"item_index":4,"menu_item_id":56} 
[2026-04-05 16:38:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6893,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6893}} 
[2026-04-05 16:38:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6893,"item_index":5,"menu_item_id":5} 
[2026-04-05 16:38:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6893,"item_index":6,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6893}} 
[2026-04-05 16:38:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6893,"item_index":6,"menu_item_id":52} 
[2026-04-05 16:38:00] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6893,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6893}} 
[2026-04-05 16:38:00] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6893,"item_index":7,"menu_item_id":3} 
[2026-04-05 16:38:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6890,"new_order_id":6893,"order_number":"AZS-050426-013"} 
[2026-04-05 16:41:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6891,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32939},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":32940},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":32941},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32942},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32943},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":32944}],"validated_items":[{"id":32939,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32940,"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":32941,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":32942,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32943,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32944,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:41:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6891,"items_count":6} 
[2026-04-05 16:41:05] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32939,"menu_item_id":96,"quantity":1},{"id":32940,"menu_item_id":49,"quantity":2},{"id":32941,"menu_item_id":396,"quantity":1},{"id":32942,"menu_item_id":61,"quantity":1},{"id":32943,"menu_item_id":5,"quantity":1},{"id":32944,"menu_item_id":2,"quantity":3}]} 
[2026-04-05 16:41:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6891,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["96|1|","49|2|","396|1|","61|1|","5|1|","2|3|"],"new_items_map_keys":["96|1|","49|2|","396|1|","61|1|","5|1|","2|3|"]} 
[2026-04-05 16:41:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6891,"order_number":"AZS-050426-010"} 
[2026-04-05 16:41:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6891,"order_number":"AZS-050426-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 16:41:05"} 
[2026-04-05 16:41:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6886,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32916},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":32917},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":32918},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32919},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32920},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":32921},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32922},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32923}],"validated_items":[{"id":32916,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32917,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":32918,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":32919,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32920,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32921,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":32922,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32923,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:41:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6886,"items_count":8} 
[2026-04-05 16:41:23] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32916,"menu_item_id":114,"quantity":1},{"id":32917,"menu_item_id":62,"quantity":1},{"id":32918,"menu_item_id":403,"quantity":1},{"id":32919,"menu_item_id":61,"quantity":1},{"id":32920,"menu_item_id":56,"quantity":1},{"id":32921,"menu_item_id":396,"quantity":5},{"id":32922,"menu_item_id":5,"quantity":1},{"id":32923,"menu_item_id":3,"quantity":1}]} 
[2026-04-05 16:41:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6886,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","62|1|","403|1|","61|1|","56|1|","396|5|","5|1|","3|1|"],"new_items_map_keys":["114|1|","62|1|","403|1|","61|1|","56|1|","396|5|","5|1|","3|1|"]} 
[2026-04-05 16:41:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6886,"order_number":"AZS-050426-012"} 
[2026-04-05 16:41:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6886,"order_number":"AZS-050426-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 16:41:23"} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6892,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null,"id":32945},{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":32946},{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":32947},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":32948},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":32949},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32950},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":32951},{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null,"id":32952},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":32953}],"validated_items":[{"id":32945,"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"id":32946,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":32947,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":32948,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":32949,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":32950,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32951,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":32952,"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null},{"id":32953,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6892,"items_count":9} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32945,"menu_item_id":83,"quantity":1},{"id":32946,"menu_item_id":97,"quantity":1},{"id":32947,"menu_item_id":78,"quantity":1},{"id":32948,"menu_item_id":61,"quantity":2},{"id":32949,"menu_item_id":56,"quantity":2},{"id":32950,"menu_item_id":5,"quantity":1},{"id":32951,"menu_item_id":396,"quantity":5},{"id":32952,"menu_item_id":85,"quantity":1},{"id":32953,"menu_item_id":3,"quantity":1}]} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6892,"has_item_changes":true,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["83|1|","97|1|","78|1|","61|2|","56|2|","5|1|","396|3|","85|1|","3|1|"],"new_items_map_keys":["83|1|","97|1|","78|1|","61|2|","56|2|","5|1|","396|5|","85|1|","3|1|"]} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6892,"order_number":"AZS-050426-009"} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-009","replaced_order_id":6892} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6894,"items_count":9,"items":[{"menu_item_id":83,"quantity":1,"price":"649.00"},{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":85,"quantity":1,"price":"699.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6894,"item_index":0,"item_data":{"menu_item_id":83,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Chicken Nuggets","quantity":1,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":649.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6894}} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6894,"item_index":0,"menu_item_id":83} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6894,"item_index":1,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6894}} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6894,"item_index":1,"menu_item_id":97} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6894,"item_index":2,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6894}} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6894,"item_index":2,"menu_item_id":78} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6894,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6894}} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6894,"item_index":3,"menu_item_id":61} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6894,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6894}} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6894,"item_index":4,"menu_item_id":56} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6894,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6894}} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6894,"item_index":5,"menu_item_id":5} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6894,"item_index":6,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6894}} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6894,"item_index":6,"menu_item_id":396} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6894,"item_index":7,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":1,"price":"699.00","discount_percent":0.0,"discount_amount":0.0,"total":699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6894}} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6894,"item_index":7,"menu_item_id":85} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6894,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6894}} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6894,"item_index":8,"menu_item_id":3} 
[2026-04-05 16:45:19] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6892,"new_order_id":6894,"order_number":"AZS-050426-009"} 
[2026-04-05 16:45:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6891,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32939},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":32940},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":32941},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32942},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32943},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":32944}],"validated_items":[{"id":32939,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32940,"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":32941,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":32942,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32943,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32944,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:45:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6891,"items_count":6} 
[2026-04-05 16:45:38] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32939,"menu_item_id":96,"quantity":1},{"id":32940,"menu_item_id":49,"quantity":2},{"id":32941,"menu_item_id":396,"quantity":1},{"id":32942,"menu_item_id":61,"quantity":1},{"id":32943,"menu_item_id":5,"quantity":1},{"id":32944,"menu_item_id":2,"quantity":3}]} 
[2026-04-05 16:45:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6891,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["96|1|","49|2|","396|1|","61|1|","5|1|","2|3|"],"new_items_map_keys":["96|1|","49|2|","396|1|","61|1|","5|1|","2|3|"]} 
[2026-04-05 16:45:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6891,"order_number":"AZS-050426-010"} 
[2026-04-05 16:45:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6891,"order_number":"AZS-050426-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 16:45:38"} 
[2026-04-05 16:45:58] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6891,"order_number":"AZS-050426-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 16:45:58"} 
[2026-04-05 16:45:58] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6891,"order_number":"AZS-050426-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 16:45:58"} 
[2026-04-05 16:45:58] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6891,"order_number":"AZS-050426-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 16:45:58"} 
[2026-04-05 16:45:58] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6891,"order_number":"AZS-050426-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 16:45:58"} 
[2026-04-05 16:45:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6891,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":32939},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":32940},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":32941},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32942},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32943},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":32944}],"validated_items":[{"id":32939,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":32940,"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":32941,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":32942,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32943,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32944,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:45:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6891,"items_count":6} 
[2026-04-05 16:45:58] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32939,"menu_item_id":96,"quantity":1},{"id":32940,"menu_item_id":49,"quantity":2},{"id":32941,"menu_item_id":396,"quantity":1},{"id":32942,"menu_item_id":61,"quantity":1},{"id":32943,"menu_item_id":5,"quantity":1},{"id":32944,"menu_item_id":2,"quantity":3}]} 
[2026-04-05 16:45:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6891,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["96|1|","49|2|","396|1|","61|1|","5|1|","2|3|"],"new_items_map_keys":["96|1|","49|2|","396|1|","61|1|","5|1|","2|3|"]} 
[2026-04-05 16:45:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6891,"order_number":"AZS-050426-010"} 
[2026-04-05 16:45:58] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6891,"order_number":"AZS-050426-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-05 16:45:58","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 16:45:58"} 
[2026-04-05 16:45:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6891,"order_number":"AZS-050426-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 16:45:58"} 
[2026-04-05 16:45:58] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6891,"order_number":"AZS-050426-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-05 16:45:58","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2200.00","database_verification_match":true,"timestamp":"2026-04-05 16:45:58"} 
[2026-04-05 16:48:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6886,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32916},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":32917},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":32918},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32919},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32920},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":32921},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32922},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32923}],"validated_items":[{"id":32916,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32917,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":32918,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":32919,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32920,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32921,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":32922,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32923,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:48:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6886,"items_count":8} 
[2026-04-05 16:48:09] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32916,"menu_item_id":114,"quantity":1},{"id":32917,"menu_item_id":62,"quantity":1},{"id":32918,"menu_item_id":403,"quantity":1},{"id":32919,"menu_item_id":61,"quantity":1},{"id":32920,"menu_item_id":56,"quantity":1},{"id":32921,"menu_item_id":396,"quantity":5},{"id":32922,"menu_item_id":5,"quantity":1},{"id":32923,"menu_item_id":3,"quantity":1}]} 
[2026-04-05 16:48:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6886,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","62|1|","403|1|","61|1|","56|1|","396|5|","5|1|","3|1|"],"new_items_map_keys":["114|1|","62|1|","403|1|","61|1|","56|1|","396|5|","5|1|","3|1|"]} 
[2026-04-05 16:48:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6886,"order_number":"AZS-050426-012"} 
[2026-04-05 16:48:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6886,"order_number":"AZS-050426-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 16:48:09"} 
[2026-04-05 16:48:42] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6886,"order_number":"AZS-050426-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":6000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 16:48:42"} 
[2026-04-05 16:48:42] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6886,"order_number":"AZS-050426-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":6000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 16:48:42"} 
[2026-04-05 16:48:42] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6886,"order_number":"AZS-050426-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 16:48:42"} 
[2026-04-05 16:48:42] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6886,"order_number":"AZS-050426-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":6000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 16:48:42"} 
[2026-04-05 16:48:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6886,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32916},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":32917},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":32918},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32919},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32920},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":32921},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32922},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32923}],"validated_items":[{"id":32916,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32917,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":32918,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":32919,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32920,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32921,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":32922,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32923,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:48:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6886,"items_count":8} 
[2026-04-05 16:48:42] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32916,"menu_item_id":114,"quantity":1},{"id":32917,"menu_item_id":62,"quantity":1},{"id":32918,"menu_item_id":403,"quantity":1},{"id":32919,"menu_item_id":61,"quantity":1},{"id":32920,"menu_item_id":56,"quantity":1},{"id":32921,"menu_item_id":396,"quantity":5},{"id":32922,"menu_item_id":5,"quantity":1},{"id":32923,"menu_item_id":3,"quantity":1}]} 
[2026-04-05 16:48:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6886,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","62|1|","403|1|","61|1|","56|1|","396|5|","5|1|","3|1|"],"new_items_map_keys":["114|1|","62|1|","403|1|","61|1|","56|1|","396|5|","5|1|","3|1|"]} 
[2026-04-05 16:48:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6886,"order_number":"AZS-050426-012"} 
[2026-04-05 16:48:42] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6886,"order_number":"AZS-050426-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":6000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-05 16:48:42","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 16:48:42"} 
[2026-04-05 16:48:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6886,"order_number":"AZS-050426-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 16:48:42"} 
[2026-04-05 16:48:42] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6886,"order_number":"AZS-050426-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"6000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-05 16:48:42","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":6000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"6000.00","database_verification_match":true,"timestamp":"2026-04-05 16:48:42"} 
[2026-04-05 16:52:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:52:32.591Z","date_to":"2026-04-05T16:52:32.591Z","per_page":"100"} 
[2026-04-05 16:52:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":6,"unique_order_numbers":16} 
[2026-04-05 16:52:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:52:32.577Z","date_to":"2026-04-05T16:52:32.577Z","per_page":"100"} 
[2026-04-05 16:52:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":6,"unique_order_numbers":16} 
[2026-04-05 16:52:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:52:32.577Z","date_to":"2026-04-05T16:52:32.577Z","per_page":"100"} 
[2026-04-05 16:52:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":6,"unique_order_numbers":16} 
[2026-04-05 16:53:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:53:10.063Z","date_to":"2026-04-05T16:53:10.063Z","per_page":"100"} 
[2026-04-05 16:53:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:53:10.075Z","date_to":"2026-04-05T16:53:10.075Z","per_page":"100"} 
[2026-04-05 16:53:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":6,"unique_order_numbers":16} 
[2026-04-05 16:53:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":6,"unique_order_numbers":16} 
[2026-04-05 16:53:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:53:10.063Z","date_to":"2026-04-05T16:53:10.063Z","per_page":"100"} 
[2026-04-05 16:53:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":6,"unique_order_numbers":16} 
[2026-04-05 16:53:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6893,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":32954},{"menu_item_id":67,"quantity":2,"discount_percent":0,"notes":null,"id":32955},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":32956},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":32957},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":32958},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32959},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null,"id":32960},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":32961}],"validated_items":[{"id":32954,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":32955,"menu_item_id":67,"quantity":2,"discount_percent":0,"notes":null},{"id":32956,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":32957,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":32958,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":32959,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32960,"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null},{"id":32961,"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:53:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6893,"items_count":8} 
[2026-04-05 16:53:29] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32954,"menu_item_id":97,"quantity":1},{"id":32955,"menu_item_id":67,"quantity":2},{"id":32956,"menu_item_id":396,"quantity":5},{"id":32957,"menu_item_id":61,"quantity":2},{"id":32958,"menu_item_id":56,"quantity":2},{"id":32959,"menu_item_id":5,"quantity":1},{"id":32960,"menu_item_id":52,"quantity":2},{"id":32961,"menu_item_id":3,"quantity":2}]} 
[2026-04-05 16:53:29] local.INFO: PosOrderController::update - Item changes check {"order_id":6893,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["97|1|","67|2|","396|5|","61|2|","56|2|","5|1|","52|2|","3|1|"],"new_items_map_keys":["97|1|","67|2|","396|5|","61|2|","56|2|","5|1|","52|2|","3|2|"]} 
[2026-04-05 16:53:29] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6893,"order_number":"AZS-050426-013"} 
[2026-04-05 16:53:29] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-013","replaced_order_id":6893} 
[2026-04-05 16:53:29] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6895,"items_count":8,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":67,"quantity":2,"price":"599.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":52,"quantity":2,"price":"70.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-04-05 16:53:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6895,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6895}} 
[2026-04-05 16:53:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6895,"item_index":0,"menu_item_id":97} 
[2026-04-05 16:53:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6895,"item_index":1,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6895}} 
[2026-04-05 16:53:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6895,"item_index":1,"menu_item_id":67} 
[2026-04-05 16:53:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6895,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6895}} 
[2026-04-05 16:53:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6895,"item_index":2,"menu_item_id":396} 
[2026-04-05 16:53:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6895,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6895}} 
[2026-04-05 16:53:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6895,"item_index":3,"menu_item_id":61} 
[2026-04-05 16:53:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6895,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6895}} 
[2026-04-05 16:53:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6895,"item_index":4,"menu_item_id":56} 
[2026-04-05 16:53:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6895,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6895}} 
[2026-04-05 16:53:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6895,"item_index":5,"menu_item_id":5} 
[2026-04-05 16:53:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6895,"item_index":6,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6895}} 
[2026-04-05 16:53:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6895,"item_index":6,"menu_item_id":52} 
[2026-04-05 16:53:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6895,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6895}} 
[2026-04-05 16:53:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6895,"item_index":7,"menu_item_id":3} 
[2026-04-05 16:53:29] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6893,"new_order_id":6895,"order_number":"AZS-050426-013"} 
[2026-04-05 16:54:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6896,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":32979},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":32980},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":32981},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":32982},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":32983}],"validated_items":[{"id":32979,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":32980,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":32981,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":32982,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":32983,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:54:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6896,"items_count":5} 
[2026-04-05 16:54:35] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32979,"menu_item_id":106,"quantity":1},{"id":32980,"menu_item_id":62,"quantity":1},{"id":32981,"menu_item_id":61,"quantity":1},{"id":32982,"menu_item_id":396,"quantity":3},{"id":32983,"menu_item_id":3,"quantity":1}]} 
[2026-04-05 16:54:35] local.INFO: PosOrderController::update - Item changes check {"order_id":6896,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["106|1|","62|1|","61|1|","396|3|","3|1|"],"new_items_map_keys":["106|1|","62|1|","61|1|","396|3|","3|1|"]} 
[2026-04-05 16:54:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6896,"order_number":"AZS-050426-017"} 
[2026-04-05 16:54:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6896,"order_number":"AZS-050426-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-05 16:54:35"} 
[2026-04-05 16:56:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6888,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":136,"quantity":1,"discount_percent":0,"notes":null,"id":32930},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32930,"menu_item_id":136,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:56:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6888,"items_count":2} 
[2026-04-05 16:56:25] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32930,"menu_item_id":136,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-04-05 16:56:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6888,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["136|1|"],"new_items_map_keys":["136|1|","2|1|"]} 
[2026-04-05 16:56:25] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6888,"order_number":"AZS-050426-015"} 
[2026-04-05 16:56:25] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-015","replaced_order_id":6888} 
[2026-04-05 16:56:25] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6898,"items_count":2,"items":[{"menu_item_id":136,"quantity":1,"price":"899.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-04-05 16:56:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6898,"item_index":0,"item_data":{"menu_item_id":136,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Small","quantity":1,"price":"899.00","discount_percent":0.0,"discount_amount":0.0,"total":899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6898}} 
[2026-04-05 16:56:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6898,"item_index":0,"menu_item_id":136} 
[2026-04-05 16:56:25] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6898,"item_index":1,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6898}} 
[2026-04-05 16:56:25] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6898,"item_index":1,"menu_item_id":2} 
[2026-04-05 16:56:25] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6888,"new_order_id":6898,"order_number":"AZS-050426-015"} 
[2026-04-05 16:57:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":89,"quantity":1,"discount_percent":0,"notes":null,"id":32863},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":32864},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32865}],"validated_items":[{"id":32863,"menu_item_id":89,"quantity":1,"discount_percent":0,"notes":null},{"id":32864,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":32865,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:57:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6879,"items_count":3} 
[2026-04-05 16:57:05] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32863,"menu_item_id":89,"quantity":1},{"id":32864,"menu_item_id":396,"quantity":3},{"id":32865,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 16:57:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6879,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["89|1|","396|3|","5|1|"],"new_items_map_keys":["89|1|","396|3|","5|1|"]} 
[2026-04-05 16:57:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6879,"order_number":"AZS-050426-011"} 
[2026-04-05 16:57:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6879,"order_number":"AZS-050426-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-05 16:57:05"} 
[2026-04-05 16:57:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:57:16.176Z","date_to":"2026-04-05T16:57:16.176Z","per_page":"100"} 
[2026-04-05 16:57:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:57:16.188Z","date_to":"2026-04-05T16:57:16.188Z","per_page":"100"} 
[2026-04-05 16:57:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":8,"unique_order_numbers":18} 
[2026-04-05 16:57:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":8,"unique_order_numbers":18} 
[2026-04-05 16:57:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:57:16.176Z","date_to":"2026-04-05T16:57:16.176Z","per_page":"100"} 
[2026-04-05 16:57:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":8,"unique_order_numbers":18} 
[2026-04-05 16:57:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6895,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32971},{"menu_item_id":67,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":32972},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":32973},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32974},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32975},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32976},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":32977},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":32978}],"validated_items":[{"id":32971,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32972,"menu_item_id":67,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":32973,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":32974,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32975,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32976,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32977,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":32978,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:57:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6895,"items_count":8} 
[2026-04-05 16:57:24] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32971,"menu_item_id":97,"quantity":1},{"id":32972,"menu_item_id":67,"quantity":2},{"id":32973,"menu_item_id":396,"quantity":5},{"id":32974,"menu_item_id":61,"quantity":2},{"id":32975,"menu_item_id":56,"quantity":2},{"id":32976,"menu_item_id":5,"quantity":1},{"id":32977,"menu_item_id":52,"quantity":2},{"id":32978,"menu_item_id":3,"quantity":2}]} 
[2026-04-05 16:57:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6895,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["97|1|","67|2|","396|5|","61|2|","56|2|","5|1|","52|2|","3|2|"],"new_items_map_keys":["97|1|","67|2|","396|5|","61|2|","56|2|","5|1|","52|2|","3|2|"]} 
[2026-04-05 16:57:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6895,"order_number":"AZS-050426-013"} 
[2026-04-05 16:57:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6895,"order_number":"AZS-050426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 16:57:24"} 
[2026-04-05 16:57:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:57:52.679Z","date_to":"2026-04-05T16:57:52.679Z","per_page":"100"} 
[2026-04-05 16:57:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":8,"unique_order_numbers":18} 
[2026-04-05 16:57:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:57:52.689Z","date_to":"2026-04-05T16:57:52.689Z","per_page":"100"} 
[2026-04-05 16:57:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":8,"unique_order_numbers":18} 
[2026-04-05 16:57:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:57:52.679Z","date_to":"2026-04-05T16:57:52.679Z","per_page":"100"} 
[2026-04-05 16:57:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":8,"unique_order_numbers":18} 
[2026-04-05 16:58:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:58:16.095Z","date_to":"2026-04-05T16:58:16.095Z","per_page":"100"} 
[2026-04-05 16:58:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:58:16.107Z","date_to":"2026-04-05T16:58:16.107Z","per_page":"100"} 
[2026-04-05 16:58:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":8,"unique_order_numbers":18} 
[2026-04-05 16:58:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":8,"unique_order_numbers":18} 
[2026-04-05 16:58:17] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T04:58:16.095Z","date_to":"2026-04-05T16:58:16.095Z","per_page":"100"} 
[2026-04-05 16:58:17] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":8,"unique_order_numbers":18} 
[2026-04-05 16:58:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":32863},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32864},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32865}],"validated_items":[{"id":32863,"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":32864,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32865,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-05 16:58:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6879,"items_count":3} 
[2026-04-05 16:58:27] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32863,"menu_item_id":89,"quantity":1},{"id":32864,"menu_item_id":396,"quantity":3},{"id":32865,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 16:58:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6879,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["89|1|","396|3|","5|1|"],"new_items_map_keys":["89|1|","396|3|","5|1|"]} 
[2026-04-05 16:58:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6879,"order_number":"AZS-050426-011"} 
[2026-04-05 16:58:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6879,"order_number":"AZS-050426-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 16:58:27"} 
[2026-04-05 17:01:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6887,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":2,"discount_percent":0,"notes":null,"id":32924},{"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null,"id":32925},{"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null,"id":32926},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":32927},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":32928},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32929},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":32924,"menu_item_id":102,"quantity":2,"discount_percent":0,"notes":null},{"id":32925,"menu_item_id":113,"quantity":2,"discount_percent":0,"notes":null},{"id":32926,"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null},{"id":32927,"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"id":32928,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":32929,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-05 17:01:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6887,"items_count":7} 
[2026-04-05 17:01:31] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32924,"menu_item_id":102,"quantity":2},{"id":32925,"menu_item_id":113,"quantity":2},{"id":32926,"menu_item_id":396,"quantity":7},{"id":32927,"menu_item_id":61,"quantity":4},{"id":32928,"menu_item_id":56,"quantity":2},{"id":32929,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-04-05 17:01:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6887,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["102|2|","113|2|","396|7|","61|4|","56|2|","5|1|"],"new_items_map_keys":["102|2|","113|2|","396|7|","61|4|","56|2|","5|1|","3|2|"]} 
[2026-04-05 17:01:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6887,"order_number":"AZS-050426-014"} 
[2026-04-05 17:01:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-014","replaced_order_id":6887} 
[2026-04-05 17:01:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6899,"items_count":7,"items":[{"menu_item_id":102,"quantity":2,"price":"1399.00"},{"menu_item_id":113,"quantity":2,"price":"1199.00"},{"menu_item_id":396,"quantity":7,"price":"99.00"},{"menu_item_id":61,"quantity":4,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-04-05 17:01:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6899,"item_index":0,"item_data":{"menu_item_id":102,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Afghani Karahi - Half","quantity":2,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":2798.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6899}} 
[2026-04-05 17:01:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6899,"item_index":0,"menu_item_id":102} 
[2026-04-05 17:01:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6899,"item_index":1,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6899}} 
[2026-04-05 17:01:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6899,"item_index":1,"menu_item_id":113} 
[2026-04-05 17:01:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6899,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":7,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":693.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6899}} 
[2026-04-05 17:01:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6899,"item_index":2,"menu_item_id":396} 
[2026-04-05 17:01:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6899,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6899}} 
[2026-04-05 17:01:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6899,"item_index":3,"menu_item_id":61} 
[2026-04-05 17:01:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6899,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6899}} 
[2026-04-05 17:01:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6899,"item_index":4,"menu_item_id":56} 
[2026-04-05 17:01:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6899,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6899}} 
[2026-04-05 17:01:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6899,"item_index":5,"menu_item_id":5} 
[2026-04-05 17:01:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6899,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6899}} 
[2026-04-05 17:01:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6899,"item_index":6,"menu_item_id":3} 
[2026-04-05 17:01:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6887,"new_order_id":6899,"order_number":"AZS-050426-014"} 
[2026-04-05 17:01:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6894,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":32962},{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32963},{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":32964},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32965},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32966},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32967},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":32968},{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":32969},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32970}],"validated_items":[{"id":32962,"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":32963,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32964,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":32965,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32966,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32967,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32968,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":32969,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":32970,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-05 17:01:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6894,"items_count":9} 
[2026-04-05 17:01:57] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32962,"menu_item_id":83,"quantity":1},{"id":32963,"menu_item_id":97,"quantity":1},{"id":32964,"menu_item_id":78,"quantity":1},{"id":32965,"menu_item_id":61,"quantity":2},{"id":32966,"menu_item_id":56,"quantity":2},{"id":32967,"menu_item_id":5,"quantity":1},{"id":32968,"menu_item_id":396,"quantity":5},{"id":32969,"menu_item_id":85,"quantity":1},{"id":32970,"menu_item_id":3,"quantity":1}]} 
[2026-04-05 17:01:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6894,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["83|1|","97|1|","78|1|","61|2|","56|2|","5|1|","396|5|","85|1|","3|1|"],"new_items_map_keys":["83|1|","97|1|","78|1|","61|2|","56|2|","5|1|","396|5|","85|1|","3|1|"]} 
[2026-04-05 17:01:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6894,"order_number":"AZS-050426-009"} 
[2026-04-05 17:01:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6894,"order_number":"AZS-050426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 17:01:57"} 
[2026-04-05 17:03:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:03:04.800Z","date_to":"2026-04-05T17:03:04.800Z","per_page":"100"} 
[2026-04-05 17:03:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:03:04.813Z","date_to":"2026-04-05T17:03:04.813Z","per_page":"100"} 
[2026-04-05 17:03:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":8,"unique_order_numbers":18} 
[2026-04-05 17:03:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":8,"unique_order_numbers":18} 
[2026-04-05 17:03:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:03:04.800Z","date_to":"2026-04-05T17:03:04.800Z","per_page":"100"} 
[2026-04-05 17:03:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":8,"unique_order_numbers":18} 
[2026-04-05 17:05:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:05:17.827Z","date_to":"2026-04-05T17:05:17.827Z","per_page":"100"} 
[2026-04-05 17:05:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:05:17.814Z","date_to":"2026-04-05T17:05:17.814Z","per_page":"100"} 
[2026-04-05 17:05:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":8,"unique_order_numbers":18} 
[2026-04-05 17:05:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":8,"unique_order_numbers":18} 
[2026-04-05 17:05:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:05:17.814Z","date_to":"2026-04-05T17:05:17.814Z","per_page":"100"} 
[2026-04-05 17:05:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":8,"unique_order_numbers":18} 
[2026-04-05 17:06:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":1,"order_id":6895,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":32971},{"menu_item_id":67,"quantity":2,"discount_percent":0,"notes":null,"id":32972},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":32973},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":32974},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32976},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null,"id":32977},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":32978}],"validated_items":[{"id":32971,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":32972,"menu_item_id":67,"quantity":2,"discount_percent":0,"notes":null},{"id":32973,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":32974,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":32976,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32977,"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null},{"id":32978,"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-05 17:06:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6895,"items_count":7} 
[2026-04-05 17:06:17] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":1,"items_to_remove":[32975],"items":[{"id":32971,"menu_item_id":97,"quantity":1},{"id":32972,"menu_item_id":67,"quantity":2},{"id":32973,"menu_item_id":396,"quantity":5},{"id":32974,"menu_item_id":61,"quantity":2},{"id":32976,"menu_item_id":5,"quantity":1},{"id":32977,"menu_item_id":52,"quantity":2},{"id":32978,"menu_item_id":3,"quantity":2}]} 
[2026-04-05 17:06:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6895,"has_item_changes":true,"old_items_count":8,"new_items_count":7,"old_items_map_keys":["97|1|","67|2|","396|5|","61|2|","56|2|","5|1|","52|2|","3|2|"],"new_items_map_keys":["97|1|","67|2|","396|5|","61|2|","5|1|","52|2|","3|2|"]} 
[2026-04-05 17:06:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6895,"order_number":"AZS-050426-013"} 
[2026-04-05 17:06:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-013","replaced_order_id":6895} 
[2026-04-05 17:06:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6900,"items_count":7,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":67,"quantity":2,"price":"599.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":52,"quantity":2,"price":"70.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-04-05 17:06:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6900,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6900}} 
[2026-04-05 17:06:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6900,"item_index":0,"menu_item_id":97} 
[2026-04-05 17:06:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6900,"item_index":1,"item_data":{"menu_item_id":67,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Pieces (Leg & Chest) (1 Pc)","quantity":2,"price":"599.00","discount_percent":0.0,"discount_amount":0.0,"total":1198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6900}} 
[2026-04-05 17:06:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6900,"item_index":1,"menu_item_id":67} 
[2026-04-05 17:06:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6900,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6900}} 
[2026-04-05 17:06:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6900,"item_index":2,"menu_item_id":396} 
[2026-04-05 17:06:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6900,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6900}} 
[2026-04-05 17:06:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6900,"item_index":3,"menu_item_id":61} 
[2026-04-05 17:06:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6900,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6900}} 
[2026-04-05 17:06:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6900,"item_index":4,"menu_item_id":5} 
[2026-04-05 17:06:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6900,"item_index":5,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6900}} 
[2026-04-05 17:06:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6900,"item_index":5,"menu_item_id":52} 
[2026-04-05 17:06:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6900,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6900}} 
[2026-04-05 17:06:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6900,"item_index":6,"menu_item_id":3} 
[2026-04-05 17:06:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6895,"new_order_id":6900,"order_number":"AZS-050426-013"} 
[2026-04-05 17:06:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6894,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":32962},{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32963},{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":32964},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32965},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32966},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32967},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":32968},{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":32969},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32970}],"validated_items":[{"id":32962,"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":32963,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32964,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":32965,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32966,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32967,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32968,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":32969,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":32970,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-05 17:06:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6894,"items_count":9} 
[2026-04-05 17:06:24] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32962,"menu_item_id":83,"quantity":1},{"id":32963,"menu_item_id":97,"quantity":1},{"id":32964,"menu_item_id":78,"quantity":1},{"id":32965,"menu_item_id":61,"quantity":2},{"id":32966,"menu_item_id":56,"quantity":2},{"id":32967,"menu_item_id":5,"quantity":1},{"id":32968,"menu_item_id":396,"quantity":5},{"id":32969,"menu_item_id":85,"quantity":1},{"id":32970,"menu_item_id":3,"quantity":1}]} 
[2026-04-05 17:06:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6894,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["83|1|","97|1|","78|1|","61|2|","56|2|","5|1|","396|5|","85|1|","3|1|"],"new_items_map_keys":["83|1|","97|1|","78|1|","61|2|","56|2|","5|1|","396|5|","85|1|","3|1|"]} 
[2026-04-05 17:06:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6894,"order_number":"AZS-050426-009"} 
[2026-04-05 17:06:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6894,"order_number":"AZS-050426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 17:06:24"} 
[2026-04-05 17:09:04] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6900,"order_number":"AZS-050426-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5502,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 17:09:04"} 
[2026-04-05 17:09:04] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6900,"order_number":"AZS-050426-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5502,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 17:09:04"} 
[2026-04-05 17:09:04] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6900,"order_number":"AZS-050426-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5502,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 17:09:04"} 
[2026-04-05 17:09:04] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6900,"order_number":"AZS-050426-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5502,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 17:09:04"} 
[2026-04-05 17:09:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6900,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":33003},{"menu_item_id":67,"quantity":2,"price":599,"discount_percent":0,"notes":null,"id":33004},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":33005},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33006},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33007},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":33008},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":33009}],"validated_items":[{"id":33003,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":33004,"menu_item_id":67,"quantity":2,"price":599,"discount_percent":0,"notes":null},{"id":33005,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":33006,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33007,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33008,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":33009,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-05 17:09:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6900,"items_count":7} 
[2026-04-05 17:09:04] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33003,"menu_item_id":97,"quantity":1},{"id":33004,"menu_item_id":67,"quantity":2},{"id":33005,"menu_item_id":396,"quantity":5},{"id":33006,"menu_item_id":61,"quantity":2},{"id":33007,"menu_item_id":5,"quantity":1},{"id":33008,"menu_item_id":52,"quantity":2},{"id":33009,"menu_item_id":3,"quantity":2}]} 
[2026-04-05 17:09:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6900,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["97|1|","67|2|","396|5|","61|2|","5|1|","52|2|","3|2|"],"new_items_map_keys":["97|1|","67|2|","396|5|","61|2|","5|1|","52|2|","3|2|"]} 
[2026-04-05 17:09:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6900,"order_number":"AZS-050426-013"} 
[2026-04-05 17:09:04] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6900,"order_number":"AZS-050426-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5502,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-05 17:09:04","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 17:09:04"} 
[2026-04-05 17:09:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6900,"order_number":"AZS-050426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 17:09:04"} 
[2026-04-05 17:09:04] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6900,"order_number":"AZS-050426-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5502.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-05 17:09:04","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5502,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5502.00","database_verification_match":true,"timestamp":"2026-04-05 17:09:04"} 
[2026-04-05 17:09:49] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6879,"order_number":"AZS-050426-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2590,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 17:09:49"} 
[2026-04-05 17:09:49] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6879,"order_number":"AZS-050426-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2590,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 17:09:49"} 
[2026-04-05 17:09:49] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6879,"order_number":"AZS-050426-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2590,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 17:09:49"} 
[2026-04-05 17:09:49] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6879,"order_number":"AZS-050426-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2590,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 17:09:49"} 
[2026-04-05 17:09:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6879,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":32863},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32864},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32865}],"validated_items":[{"id":32863,"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":32864,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32865,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-05 17:09:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6879,"items_count":3} 
[2026-04-05 17:09:49] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32863,"menu_item_id":89,"quantity":1},{"id":32864,"menu_item_id":396,"quantity":3},{"id":32865,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 17:09:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6879,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["89|1|","396|3|","5|1|"],"new_items_map_keys":["89|1|","396|3|","5|1|"]} 
[2026-04-05 17:09:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6879,"order_number":"AZS-050426-011"} 
[2026-04-05 17:09:49] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6879,"order_number":"AZS-050426-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2590,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-05 17:09:49","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 17:09:49"} 
[2026-04-05 17:09:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6879,"order_number":"AZS-050426-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 17:09:49"} 
[2026-04-05 17:09:49] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6879,"order_number":"AZS-050426-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2590.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-05 17:09:49","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2590,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2590.00","database_verification_match":true,"timestamp":"2026-04-05 17:09:49"} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":6897,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":32984},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":32985},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":32986},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":32987},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":32988},{"menu_item_id":286,"quantity":6,"discount_percent":0,"notes":null,"id":32989},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":32990},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":32991},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":32992},{"menu_item_id":48,"quantity":3,"discount_percent":0,"notes":null,"id":32993},{"menu_item_id":403,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":32984,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":32985,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":32986,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":32987,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":32988,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"id":32989,"menu_item_id":286,"quantity":6,"discount_percent":0,"notes":null},{"id":32990,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":32991,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":32992,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":32993,"menu_item_id":48,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6897,"items_count":11} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32984,"menu_item_id":114,"quantity":1},{"id":32985,"menu_item_id":95,"quantity":1},{"id":32986,"menu_item_id":62,"quantity":1},{"id":32987,"menu_item_id":65,"quantity":1},{"id":32988,"menu_item_id":63,"quantity":1},{"id":32989,"menu_item_id":286,"quantity":6},{"id":32990,"menu_item_id":61,"quantity":2},{"id":32991,"menu_item_id":56,"quantity":2},{"id":32992,"menu_item_id":5,"quantity":1},{"id":32993,"menu_item_id":48,"quantity":3},{"id":null,"menu_item_id":403,"quantity":3}]} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6897,"has_item_changes":true,"old_items_count":10,"new_items_count":11,"old_items_map_keys":["114|1|","95|1|","62|1|","65|1|","63|1|","286|6|","61|2|","56|2|","5|1|","48|3|"],"new_items_map_keys":["114|1|","95|1|","62|1|","65|1|","63|1|","286|6|","61|2|","56|2|","5|1|","48|3|","403|3|"]} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6897,"order_number":"AZS-050426-018"} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-018","replaced_order_id":6897} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6901,"items_count":11,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":63,"quantity":1,"price":"1099.00"},{"menu_item_id":286,"quantity":6,"price":"15.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":48,"quantity":3,"price":"250.00"},{"menu_item_id":403,"quantity":3,"price":"349.00"}]} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6901,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6901}} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6901,"item_index":0,"menu_item_id":114} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6901,"item_index":1,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6901}} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6901,"item_index":1,"menu_item_id":95} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6901,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6901}} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6901,"item_index":2,"menu_item_id":62} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6901,"item_index":3,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6901}} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6901,"item_index":3,"menu_item_id":65} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6901,"item_index":4,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6901}} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6901,"item_index":4,"menu_item_id":63} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6901,"item_index":5,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":6,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6901}} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6901,"item_index":5,"menu_item_id":286} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6901,"item_index":6,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6901}} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6901,"item_index":6,"menu_item_id":61} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6901,"item_index":7,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6901}} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6901,"item_index":7,"menu_item_id":56} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6901,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6901}} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6901,"item_index":8,"menu_item_id":5} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6901,"item_index":9,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":3,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":750.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6901}} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6901,"item_index":9,"menu_item_id":48} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6901,"item_index":10,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":3,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":1047.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6901}} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6901,"item_index":10,"menu_item_id":403} 
[2026-04-05 17:10:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6897,"new_order_id":6901,"order_number":"AZS-050426-018"} 
[2026-04-05 17:13:48] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6894,"order_number":"AZS-050426-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10266,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 17:13:48"} 
[2026-04-05 17:13:48] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6894,"order_number":"AZS-050426-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10266,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 17:13:48"} 
[2026-04-05 17:13:48] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6894,"order_number":"AZS-050426-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10266,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 17:13:48"} 
[2026-04-05 17:13:48] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6894,"order_number":"AZS-050426-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10266,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 17:13:48"} 
[2026-04-05 17:13:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6894,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":32962},{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":32963},{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":32964},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32965},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":32966},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":32967},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":32968},{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":32969},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32970}],"validated_items":[{"id":32962,"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":32963,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":32964,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":32965,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32966,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":32967,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":32968,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":32969,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":32970,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-05 17:13:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6894,"items_count":9} 
[2026-04-05 17:13:48] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32962,"menu_item_id":83,"quantity":1},{"id":32963,"menu_item_id":97,"quantity":1},{"id":32964,"menu_item_id":78,"quantity":1},{"id":32965,"menu_item_id":61,"quantity":2},{"id":32966,"menu_item_id":56,"quantity":2},{"id":32967,"menu_item_id":5,"quantity":1},{"id":32968,"menu_item_id":396,"quantity":5},{"id":32969,"menu_item_id":85,"quantity":1},{"id":32970,"menu_item_id":3,"quantity":1}]} 
[2026-04-05 17:13:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6894,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["83|1|","97|1|","78|1|","61|2|","56|2|","5|1|","396|5|","85|1|","3|1|"],"new_items_map_keys":["83|1|","97|1|","78|1|","61|2|","56|2|","5|1|","396|5|","85|1|","3|1|"]} 
[2026-04-05 17:13:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6894,"order_number":"AZS-050426-009"} 
[2026-04-05 17:13:48] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6894,"order_number":"AZS-050426-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":10266,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-05 17:13:48","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 17:13:48"} 
[2026-04-05 17:13:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6894,"order_number":"AZS-050426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 17:13:48"} 
[2026-04-05 17:13:48] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6894,"order_number":"AZS-050426-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"10266.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-05 17:13:48","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10266,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"10266.00","database_verification_match":true,"timestamp":"2026-04-05 17:13:48"} 
[2026-04-05 17:14:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:14:26.269Z","date_to":"2026-04-05T17:14:26.269Z","per_page":"100"} 
[2026-04-05 17:14:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":5,"unique_order_numbers":18} 
[2026-04-05 17:14:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:14:26.254Z","date_to":"2026-04-05T17:14:26.254Z","per_page":"100"} 
[2026-04-05 17:14:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":5,"unique_order_numbers":18} 
[2026-04-05 17:14:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:14:26.254Z","date_to":"2026-04-05T17:14:26.254Z","per_page":"100"} 
[2026-04-05 17:14:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":5,"unique_order_numbers":18} 
[2026-04-05 17:15:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:15:23.724Z","date_to":"2026-04-05T17:15:23.724Z","per_page":"100"} 
[2026-04-05 17:15:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":5,"unique_order_numbers":18} 
[2026-04-05 17:15:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:15:23.738Z","date_to":"2026-04-05T17:15:23.738Z","per_page":"100"} 
[2026-04-05 17:15:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":5,"unique_order_numbers":18} 
[2026-04-05 17:15:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:15:23.724Z","date_to":"2026-04-05T17:15:23.724Z","per_page":"100"} 
[2026-04-05 17:15:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":18,"count":18,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":5,"unique_order_numbers":18} 
[2026-04-05 17:17:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:17:57.668Z","date_to":"2026-04-05T17:17:57.668Z","per_page":"100"} 
[2026-04-05 17:17:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:17:57.674Z","date_to":"2026-04-05T17:17:57.674Z","per_page":"100"} 
[2026-04-05 17:17:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":6,"unique_order_numbers":19} 
[2026-04-05 17:17:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":6,"unique_order_numbers":19} 
[2026-04-05 17:17:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:17:57.668Z","date_to":"2026-04-05T17:17:57.668Z","per_page":"100"} 
[2026-04-05 17:17:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":19,"count":19,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":6,"unique_order_numbers":19} 
[2026-04-05 17:21:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6898,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null,"id":32994},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":32995}],"validated_items":[{"id":32994,"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null},{"id":32995,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-05 17:21:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6898,"items_count":2} 
[2026-04-05 17:21:30] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32994,"menu_item_id":136,"quantity":1},{"id":32995,"menu_item_id":2,"quantity":1}]} 
[2026-04-05 17:21:30] local.INFO: PosOrderController::update - Item changes check {"order_id":6898,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["136|1|","2|1|"],"new_items_map_keys":["136|1|","2|1|"]} 
[2026-04-05 17:21:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6898,"order_number":"AZS-050426-015"} 
[2026-04-05 17:21:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6898,"order_number":"AZS-050426-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 17:21:30"} 
[2026-04-05 17:25:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6902,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":2,"discount_percent":0,"notes":null,"id":33021},{"menu_item_id":77,"quantity":1,"discount_percent":0,"notes":null,"id":33022},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33023},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":33024},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33025}],"validated_items":[{"id":33021,"menu_item_id":85,"quantity":2,"discount_percent":0,"notes":null},{"id":33022,"menu_item_id":77,"quantity":1,"discount_percent":0,"notes":null},{"id":33023,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33024,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":33025,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 17:25:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6902,"items_count":5} 
[2026-04-05 17:25:03] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33021,"menu_item_id":85,"quantity":2},{"id":33022,"menu_item_id":77,"quantity":1},{"id":33023,"menu_item_id":5,"quantity":1},{"id":33024,"menu_item_id":61,"quantity":2},{"id":33025,"menu_item_id":56,"quantity":1}]} 
[2026-04-05 17:25:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6902,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["85|2|","77|1|","5|1|","61|2|","56|2|"],"new_items_map_keys":["85|2|","77|1|","5|1|","61|2|","56|1|"]} 
[2026-04-05 17:25:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6902,"order_number":"AZS-050426-019"} 
[2026-04-05 17:25:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-019","replaced_order_id":6902} 
[2026-04-05 17:25:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6905,"items_count":5,"items":[{"menu_item_id":85,"quantity":2,"price":"699.00"},{"menu_item_id":77,"quantity":1,"price":"8799.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"}]} 
[2026-04-05 17:25:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6905,"item_index":0,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":2,"price":"699.00","discount_percent":0.0,"discount_amount":0.0,"total":1398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6905}} 
[2026-04-05 17:25:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6905,"item_index":0,"menu_item_id":85} 
[2026-04-05 17:25:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6905,"item_index":1,"item_data":{"menu_item_id":77,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Full","quantity":1,"price":"8799.00","discount_percent":0.0,"discount_amount":0.0,"total":8799.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6905}} 
[2026-04-05 17:25:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6905,"item_index":1,"menu_item_id":77} 
[2026-04-05 17:25:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6905,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6905}} 
[2026-04-05 17:25:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6905,"item_index":2,"menu_item_id":5} 
[2026-04-05 17:25:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6905,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6905}} 
[2026-04-05 17:25:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6905,"item_index":3,"menu_item_id":61} 
[2026-04-05 17:25:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6905,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6905}} 
[2026-04-05 17:25:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6905,"item_index":4,"menu_item_id":56} 
[2026-04-05 17:25:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6902,"new_order_id":6905,"order_number":"AZS-050426-019"} 
[2026-04-05 17:26:54] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6898,"order_number":"AZS-050426-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1030,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 17:26:54"} 
[2026-04-05 17:26:54] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6898,"order_number":"AZS-050426-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1030,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 17:26:54"} 
[2026-04-05 17:26:54] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6898,"order_number":"AZS-050426-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1030,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 17:26:54"} 
[2026-04-05 17:26:54] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6898,"order_number":"AZS-050426-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1030,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 17:26:54"} 
[2026-04-05 17:26:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6898,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null,"id":32994},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":32995}],"validated_items":[{"id":32994,"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null},{"id":32995,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-05 17:26:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6898,"items_count":2} 
[2026-04-05 17:26:54] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32994,"menu_item_id":136,"quantity":1},{"id":32995,"menu_item_id":2,"quantity":1}]} 
[2026-04-05 17:26:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6898,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["136|1|","2|1|"],"new_items_map_keys":["136|1|","2|1|"]} 
[2026-04-05 17:26:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6898,"order_number":"AZS-050426-015"} 
[2026-04-05 17:26:54] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6898,"order_number":"AZS-050426-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1030,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-05 17:26:54","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 17:26:54"} 
[2026-04-05 17:26:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6898,"order_number":"AZS-050426-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 17:26:54"} 
[2026-04-05 17:26:54] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6898,"order_number":"AZS-050426-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1030.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-05 17:26:54","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1030,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1030.00","database_verification_match":true,"timestamp":"2026-04-05 17:26:54"} 
[2026-04-05 17:28:42] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-04-05 17:36:01] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-04-05 17:40:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6899,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":2,"price":1399,"discount_percent":0,"notes":null,"id":32996},{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":32997},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null,"id":32998},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":32999},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33000},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33001},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":33002}],"validated_items":[{"id":32996,"menu_item_id":102,"quantity":2,"price":1399,"discount_percent":0,"notes":null},{"id":32997,"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":32998,"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null},{"id":32999,"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":33000,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33001,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33002,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-05 17:40:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6899,"items_count":7} 
[2026-04-05 17:40:41] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32996,"menu_item_id":102,"quantity":2},{"id":32997,"menu_item_id":113,"quantity":2},{"id":32998,"menu_item_id":396,"quantity":7},{"id":32999,"menu_item_id":61,"quantity":4},{"id":33000,"menu_item_id":56,"quantity":2},{"id":33001,"menu_item_id":5,"quantity":1},{"id":33002,"menu_item_id":3,"quantity":2}]} 
[2026-04-05 17:40:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6899,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["102|2|","113|2|","396|7|","61|4|","56|2|","5|1|","3|2|"],"new_items_map_keys":["102|2|","113|2|","396|7|","61|4|","56|2|","5|1|","3|2|"]} 
[2026-04-05 17:40:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6899,"order_number":"AZS-050426-014"} 
[2026-04-05 17:40:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6899,"order_number":"AZS-050426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 17:40:41"} 
[2026-04-05 17:40:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:40:59.313Z","date_to":"2026-04-05T17:40:59.313Z","per_page":"100"} 
[2026-04-05 17:40:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":15,"unique_order_numbers":29} 
[2026-04-05 17:40:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:40:59.322Z","date_to":"2026-04-05T17:40:59.322Z","per_page":"100"} 
[2026-04-05 17:40:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":15,"unique_order_numbers":29} 
[2026-04-05 17:40:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:40:59.313Z","date_to":"2026-04-05T17:40:59.313Z","per_page":"100"} 
[2026-04-05 17:40:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":15,"unique_order_numbers":29} 
[2026-04-05 17:41:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:41:17.024Z","date_to":"2026-04-05T17:41:17.024Z","per_page":"100"} 
[2026-04-05 17:41:15] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:41:17.042Z","date_to":"2026-04-05T17:41:17.042Z","per_page":"100"} 
[2026-04-05 17:41:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":15,"unique_order_numbers":29} 
[2026-04-05 17:41:15] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":15,"unique_order_numbers":29} 
[2026-04-05 17:41:16] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:41:17.024Z","date_to":"2026-04-05T17:41:17.024Z","per_page":"100"} 
[2026-04-05 17:41:16] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":15,"unique_order_numbers":29} 
[2026-04-05 17:41:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":6912,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":33058},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":33059},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33060},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33062}],"validated_items":[{"id":33058,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":33059,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":33060,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":33062,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 17:41:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6912,"items_count":4} 
[2026-04-05 17:41:37] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[33061],"items":[{"id":33058,"menu_item_id":96,"quantity":1},{"id":33059,"menu_item_id":396,"quantity":2},{"id":33060,"menu_item_id":61,"quantity":1},{"id":33062,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 17:41:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6912,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["96|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["96|1|","396|2|","61|1|","5|1|"]} 
[2026-04-05 17:41:37] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6912,"order_number":"AZS-050426-028"} 
[2026-04-05 17:41:37] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-028","replaced_order_id":6912} 
[2026-04-05 17:41:37] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6914,"items_count":4,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-05 17:41:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6914,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6914}} 
[2026-04-05 17:41:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6914,"item_index":0,"menu_item_id":96} 
[2026-04-05 17:41:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6914,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6914}} 
[2026-04-05 17:41:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6914,"item_index":1,"menu_item_id":396} 
[2026-04-05 17:41:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6914,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6914}} 
[2026-04-05 17:41:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6914,"item_index":2,"menu_item_id":61} 
[2026-04-05 17:41:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6914,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6914}} 
[2026-04-05 17:41:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6914,"item_index":3,"menu_item_id":5} 
[2026-04-05 17:41:37] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6912,"new_order_id":6914,"order_number":"AZS-050426-028"} 
[2026-04-05 17:41:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:41:49.248Z","date_to":"2026-04-05T17:41:49.248Z","per_page":"100"} 
[2026-04-05 17:41:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:41:49.268Z","date_to":"2026-04-05T17:41:49.268Z","per_page":"100"} 
[2026-04-05 17:41:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":15,"unique_order_numbers":29} 
[2026-04-05 17:41:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":15,"unique_order_numbers":29} 
[2026-04-05 17:41:47] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:41:49.248Z","date_to":"2026-04-05T17:41:49.248Z","per_page":"100"} 
[2026-04-05 17:41:47] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":15,"unique_order_numbers":29} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":6901,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":33010},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":33011},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":33012},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":33013},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":33014},{"menu_item_id":286,"quantity":6,"discount_percent":0,"notes":null,"id":33015},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":33016},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":33017},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33018},{"menu_item_id":48,"quantity":4,"discount_percent":0,"notes":null,"id":33019},{"menu_item_id":403,"quantity":3,"discount_percent":0,"notes":null,"id":33020},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":33010,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":33011,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":33012,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":33013,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":33014,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"id":33015,"menu_item_id":286,"quantity":6,"discount_percent":0,"notes":null},{"id":33016,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":33017,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":33018,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33019,"menu_item_id":48,"quantity":4,"discount_percent":0,"notes":null},{"id":33020,"menu_item_id":403,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6901,"items_count":12} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33010,"menu_item_id":114,"quantity":1},{"id":33011,"menu_item_id":95,"quantity":1},{"id":33012,"menu_item_id":62,"quantity":1},{"id":33013,"menu_item_id":65,"quantity":1},{"id":33014,"menu_item_id":63,"quantity":1},{"id":33015,"menu_item_id":286,"quantity":6},{"id":33016,"menu_item_id":61,"quantity":2},{"id":33017,"menu_item_id":56,"quantity":2},{"id":33018,"menu_item_id":5,"quantity":1},{"id":33019,"menu_item_id":48,"quantity":4},{"id":33020,"menu_item_id":403,"quantity":3},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6901,"has_item_changes":true,"old_items_count":11,"new_items_count":12,"old_items_map_keys":["114|1|","95|1|","62|1|","65|1|","63|1|","286|6|","61|2|","56|2|","5|1|","48|3|","403|3|"],"new_items_map_keys":["114|1|","95|1|","62|1|","65|1|","63|1|","286|6|","61|2|","56|2|","5|1|","48|4|","403|3|","3|2|"]} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6901,"order_number":"AZS-050426-018"} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-018","replaced_order_id":6901} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6915,"items_count":12,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":63,"quantity":1,"price":"1099.00"},{"menu_item_id":286,"quantity":6,"price":"15.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":48,"quantity":4,"price":"250.00"},{"menu_item_id":403,"quantity":3,"price":"349.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6915,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6915}} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6915,"item_index":0,"menu_item_id":114} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6915,"item_index":1,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6915}} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6915,"item_index":1,"menu_item_id":95} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6915,"item_index":2,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6915}} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6915,"item_index":2,"menu_item_id":62} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6915,"item_index":3,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6915}} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6915,"item_index":3,"menu_item_id":65} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6915,"item_index":4,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6915}} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6915,"item_index":4,"menu_item_id":63} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6915,"item_index":5,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":6,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6915}} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6915,"item_index":5,"menu_item_id":286} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6915,"item_index":6,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6915}} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6915,"item_index":6,"menu_item_id":61} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6915,"item_index":7,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6915}} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6915,"item_index":7,"menu_item_id":56} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6915,"item_index":8,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6915}} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6915,"item_index":8,"menu_item_id":5} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6915,"item_index":9,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":4,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":1000.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6915}} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6915,"item_index":9,"menu_item_id":48} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6915,"item_index":10,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":3,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":1047.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6915}} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6915,"item_index":10,"menu_item_id":403} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6915,"item_index":11,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6915}} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6915,"item_index":11,"menu_item_id":3} 
[2026-04-05 17:44:21] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6901,"new_order_id":6915,"order_number":"AZS-050426-018"} 
[2026-04-05 17:47:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:47:09.706Z","date_to":"2026-04-05T17:47:09.706Z","per_page":"100"} 
[2026-04-05 17:47:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":15,"unique_order_numbers":29} 
[2026-04-05 17:47:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:47:09.716Z","date_to":"2026-04-05T17:47:09.716Z","per_page":"100"} 
[2026-04-05 17:47:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":15,"unique_order_numbers":29} 
[2026-04-05 17:47:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:47:09.706Z","date_to":"2026-04-05T17:47:09.706Z","per_page":"100"} 
[2026-04-05 17:47:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":29,"count":29,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":15,"unique_order_numbers":29} 
[2026-04-05 17:50:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6889,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":136,"quantity":1,"discount_percent":0,"notes":null,"id":32931},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":402,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":32931,"menu_item_id":136,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":402,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 17:50:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6889,"items_count":4} 
[2026-04-05 17:50:36] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32931,"menu_item_id":136,"quantity":1},{"id":null,"menu_item_id":13,"quantity":2},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":402,"quantity":1}]} 
[2026-04-05 17:50:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6889,"has_item_changes":true,"old_items_count":1,"new_items_count":4,"old_items_map_keys":["136|1|"],"new_items_map_keys":["136|1|","13|2|","2|1|","402|1|"]} 
[2026-04-05 17:50:36] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6889,"order_number":"AZS-050426-016"} 
[2026-04-05 17:50:36] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-016","replaced_order_id":6889} 
[2026-04-05 17:50:36] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6916,"items_count":4,"items":[{"menu_item_id":136,"quantity":1,"price":"899.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":402,"quantity":1,"price":"325.00"}]} 
[2026-04-05 17:50:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6916,"item_index":0,"item_data":{"menu_item_id":136,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Small","quantity":1,"price":"899.00","discount_percent":0.0,"discount_amount":0.0,"total":899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6916}} 
[2026-04-05 17:50:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6916,"item_index":0,"menu_item_id":136} 
[2026-04-05 17:50:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6916,"item_index":1,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6916}} 
[2026-04-05 17:50:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6916,"item_index":1,"menu_item_id":13} 
[2026-04-05 17:50:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6916,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6916}} 
[2026-04-05 17:50:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6916,"item_index":2,"menu_item_id":2} 
[2026-04-05 17:50:36] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6916,"item_index":3,"item_data":{"menu_item_id":402,"restaurant_category_id":39,"restaurant_category_name":"DESSERT BAR","item_name":"HOT GULAB JAMUN","quantity":1,"price":"325.00","discount_percent":0.0,"discount_amount":0.0,"total":325.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6916}} 
[2026-04-05 17:50:36] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6916,"item_index":3,"menu_item_id":402} 
[2026-04-05 17:50:36] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6889,"new_order_id":6916,"order_number":"AZS-050426-016"} 
[2026-04-05 17:52:42] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-04-05 17:53:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6910,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"discount_percent":0,"notes":null,"id":33050}],"validated_items":[{"id":33050,"menu_item_id":6,"quantity":4,"discount_percent":0,"notes":null}]} 
[2026-04-05 17:53:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6910,"items_count":1} 
[2026-04-05 17:53:27] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33050,"menu_item_id":6,"quantity":4}]} 
[2026-04-05 17:53:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6910,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|4|"],"new_items_map_keys":["6|4|"]} 
[2026-04-05 17:53:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6910,"order_number":"AZS-050426-026"} 
[2026-04-05 17:53:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6910,"order_number":"AZS-050426-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-05 17:53:27"} 
[2026-04-05 17:54:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:54:08.953Z","date_to":"2026-04-05T17:54:08.953Z","per_page":"100"} 
[2026-04-05 17:54:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:54:08.972Z","date_to":"2026-04-05T17:54:08.972Z","per_page":"100"} 
[2026-04-05 17:54:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":16,"unique_order_numbers":30} 
[2026-04-05 17:54:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":16,"unique_order_numbers":30} 
[2026-04-05 17:54:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T05:54:08.953Z","date_to":"2026-04-05T17:54:08.953Z","per_page":"100"} 
[2026-04-05 17:54:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":16,"unique_order_numbers":30} 
[2026-04-05 17:57:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6907,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33047}],"validated_items":[{"id":33047,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-05 17:57:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6907,"items_count":1} 
[2026-04-05 17:57:03] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33047,"menu_item_id":6,"quantity":2}]} 
[2026-04-05 17:57:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6907,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-04-05 17:57:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6907,"order_number":"AZS-050426-023"} 
[2026-04-05 17:57:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6907,"order_number":"AZS-050426-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 17:57:03"} 
[2026-04-05 17:57:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6910,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":33050}],"validated_items":[{"id":33050,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-05 17:57:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6910,"items_count":1} 
[2026-04-05 17:57:19] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33050,"menu_item_id":6,"quantity":4}]} 
[2026-04-05 17:57:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6910,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|4|"],"new_items_map_keys":["6|4|"]} 
[2026-04-05 17:57:19] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6910,"order_number":"AZS-050426-026"} 
[2026-04-05 17:57:19] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6910,"order_number":"AZS-050426-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 17:57:19"} 
[2026-04-05 17:59:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6899,"order_number":"AZS-050426-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":8183,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 17:59:27"} 
[2026-04-05 17:59:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6899,"order_number":"AZS-050426-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":8183,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 17:59:27"} 
[2026-04-05 17:59:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6899,"order_number":"AZS-050426-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":8183,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 17:59:27"} 
[2026-04-05 17:59:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6899,"order_number":"AZS-050426-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":8183,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 17:59:27"} 
[2026-04-05 17:59:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6899,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":102,"quantity":2,"price":1399,"discount_percent":0,"notes":null,"id":32996},{"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":32997},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null,"id":32998},{"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":32999},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33000},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33001},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":33002}],"validated_items":[{"id":32996,"menu_item_id":102,"quantity":2,"price":1399,"discount_percent":0,"notes":null},{"id":32997,"menu_item_id":113,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":32998,"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null},{"id":32999,"menu_item_id":61,"quantity":4,"price":199,"discount_percent":0,"notes":null},{"id":33000,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33001,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33002,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-05 17:59:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6899,"items_count":7} 
[2026-04-05 17:59:27] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32996,"menu_item_id":102,"quantity":2},{"id":32997,"menu_item_id":113,"quantity":2},{"id":32998,"menu_item_id":396,"quantity":7},{"id":32999,"menu_item_id":61,"quantity":4},{"id":33000,"menu_item_id":56,"quantity":2},{"id":33001,"menu_item_id":5,"quantity":1},{"id":33002,"menu_item_id":3,"quantity":2}]} 
[2026-04-05 17:59:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6899,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["102|2|","113|2|","396|7|","61|4|","56|2|","5|1|","3|2|"],"new_items_map_keys":["102|2|","113|2|","396|7|","61|4|","56|2|","5|1|","3|2|"]} 
[2026-04-05 17:59:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6899,"order_number":"AZS-050426-014"} 
[2026-04-05 17:59:27] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6899,"order_number":"AZS-050426-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":8183,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-05 17:59:27","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 17:59:27"} 
[2026-04-05 17:59:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6899,"order_number":"AZS-050426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 17:59:27"} 
[2026-04-05 17:59:27] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6899,"order_number":"AZS-050426-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"8183.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-05 17:59:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":8183,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"8183.00","database_verification_match":true,"timestamp":"2026-04-05 17:59:27"} 
[2026-04-05 18:00:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6903,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":33026},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":33027},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":33028},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33029},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33030},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33031},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":33026,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":33027,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":33028,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":33029,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":33030,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33031,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:00:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6903,"items_count":7} 
[2026-04-05 18:00:51] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33026,"menu_item_id":62,"quantity":1},{"id":33027,"menu_item_id":65,"quantity":1},{"id":33028,"menu_item_id":396,"quantity":2},{"id":33029,"menu_item_id":61,"quantity":1},{"id":33030,"menu_item_id":56,"quantity":1},{"id":33031,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-04-05 18:00:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6903,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["62|1|","65|1|","396|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["62|1|","65|1|","396|2|","61|1|","56|1|","5|1|","2|2|"]} 
[2026-04-05 18:00:51] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6903,"order_number":"AZS-050426-020"} 
[2026-04-05 18:00:51] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-020","replaced_order_id":6903} 
[2026-04-05 18:00:51] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6918,"items_count":7,"items":[{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-04-05 18:00:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6918,"item_index":0,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6918}} 
[2026-04-05 18:00:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6918,"item_index":0,"menu_item_id":62} 
[2026-04-05 18:00:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6918,"item_index":1,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6918}} 
[2026-04-05 18:00:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6918,"item_index":1,"menu_item_id":65} 
[2026-04-05 18:00:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6918,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6918}} 
[2026-04-05 18:00:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6918,"item_index":2,"menu_item_id":396} 
[2026-04-05 18:00:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6918,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6918}} 
[2026-04-05 18:00:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6918,"item_index":3,"menu_item_id":61} 
[2026-04-05 18:00:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6918,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6918}} 
[2026-04-05 18:00:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6918,"item_index":4,"menu_item_id":56} 
[2026-04-05 18:00:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6918,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6918}} 
[2026-04-05 18:00:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6918,"item_index":5,"menu_item_id":5} 
[2026-04-05 18:00:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6918,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6918}} 
[2026-04-05 18:00:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6918,"item_index":6,"menu_item_id":2} 
[2026-04-05 18:00:51] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6903,"new_order_id":6918,"order_number":"AZS-050426-020"} 
[2026-04-05 18:01:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:01:44.634Z","date_to":"2026-04-05T18:01:44.634Z","per_page":"100"} 
[2026-04-05 18:01:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:01:44.615Z","date_to":"2026-04-05T18:01:44.615Z","per_page":"100"} 
[2026-04-05 18:01:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":15,"unique_order_numbers":30} 
[2026-04-05 18:01:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":15,"unique_order_numbers":30} 
[2026-04-05 18:01:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:01:44.615Z","date_to":"2026-04-05T18:01:44.615Z","per_page":"100"} 
[2026-04-05 18:01:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":15,"unique_order_numbers":30} 
[2026-04-05 18:04:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6896,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":32979},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":32980},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32981},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32982},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32983}],"validated_items":[{"id":32979,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":32980,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":32981,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32982,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32983,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:04:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6896,"items_count":5} 
[2026-04-05 18:04:51] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32979,"menu_item_id":106,"quantity":1},{"id":32980,"menu_item_id":62,"quantity":1},{"id":32981,"menu_item_id":61,"quantity":1},{"id":32982,"menu_item_id":396,"quantity":3},{"id":32983,"menu_item_id":3,"quantity":1}]} 
[2026-04-05 18:04:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6896,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["106|1|","62|1|","61|1|","396|3|","3|1|"],"new_items_map_keys":["106|1|","62|1|","61|1|","396|3|","3|1|"]} 
[2026-04-05 18:04:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6896,"order_number":"AZS-050426-017"} 
[2026-04-05 18:04:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6896,"order_number":"AZS-050426-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 18:04:51"} 
[2026-04-05 18:07:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6896,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":32979},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":32980},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32981},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32982},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32983}],"validated_items":[{"id":32979,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":32980,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":32981,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32982,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32983,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:07:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6896,"items_count":5} 
[2026-04-05 18:07:53] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32979,"menu_item_id":106,"quantity":1},{"id":32980,"menu_item_id":62,"quantity":1},{"id":32981,"menu_item_id":61,"quantity":1},{"id":32982,"menu_item_id":396,"quantity":3},{"id":32983,"menu_item_id":3,"quantity":1}]} 
[2026-04-05 18:07:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6896,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["106|1|","62|1|","61|1|","396|3|","3|1|"],"new_items_map_keys":["106|1|","62|1|","61|1|","396|3|","3|1|"]} 
[2026-04-05 18:07:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6896,"order_number":"AZS-050426-017"} 
[2026-04-05 18:07:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6896,"order_number":"AZS-050426-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 18:07:53"} 
[2026-04-05 18:08:10] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6896,"order_number":"AZS-050426-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":7000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:08:10"} 
[2026-04-05 18:08:10] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6896,"order_number":"AZS-050426-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":7000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:08:10"} 
[2026-04-05 18:08:10] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6896,"order_number":"AZS-050426-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:08:10"} 
[2026-04-05 18:08:10] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6896,"order_number":"AZS-050426-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:08:10"} 
[2026-04-05 18:08:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6896,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":32979},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":32980},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":32981},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":32982},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":32983}],"validated_items":[{"id":32979,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":32980,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":32981,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":32982,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":32983,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:08:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6896,"items_count":5} 
[2026-04-05 18:08:10] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":32979,"menu_item_id":106,"quantity":1},{"id":32980,"menu_item_id":62,"quantity":1},{"id":32981,"menu_item_id":61,"quantity":1},{"id":32982,"menu_item_id":396,"quantity":3},{"id":32983,"menu_item_id":3,"quantity":1}]} 
[2026-04-05 18:08:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6896,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["106|1|","62|1|","61|1|","396|3|","3|1|"],"new_items_map_keys":["106|1|","62|1|","61|1|","396|3|","3|1|"]} 
[2026-04-05 18:08:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6896,"order_number":"AZS-050426-017"} 
[2026-04-05 18:08:10] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6896,"order_number":"AZS-050426-017","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":7000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-05 18:08:10","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 18:08:10"} 
[2026-04-05 18:08:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6896,"order_number":"AZS-050426-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 18:08:10"} 
[2026-04-05 18:08:10] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6896,"order_number":"AZS-050426-017","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"7000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-05 18:08:10","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":7000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"7000.00","database_verification_match":true,"timestamp":"2026-04-05 18:08:10"} 
[2026-04-05 18:08:59] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6910,"order_number":"AZS-050426-026","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":796,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:08:59"} 
[2026-04-05 18:08:59] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6910,"order_number":"AZS-050426-026","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":796,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:08:59"} 
[2026-04-05 18:08:59] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6910,"order_number":"AZS-050426-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":796,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:08:59"} 
[2026-04-05 18:08:59] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6910,"order_number":"AZS-050426-026","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":796,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:08:59"} 
[2026-04-05 18:08:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6910,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null,"id":33050}],"validated_items":[{"id":33050,"menu_item_id":6,"quantity":4,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:08:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6910,"items_count":1} 
[2026-04-05 18:08:59] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33050,"menu_item_id":6,"quantity":4}]} 
[2026-04-05 18:08:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6910,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|4|"],"new_items_map_keys":["6|4|"]} 
[2026-04-05 18:08:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6910,"order_number":"AZS-050426-026"} 
[2026-04-05 18:08:59] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6910,"order_number":"AZS-050426-026","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":796,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-05 18:08:59","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 18:08:59"} 
[2026-04-05 18:08:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6910,"order_number":"AZS-050426-026","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 18:08:59"} 
[2026-04-05 18:08:59] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6910,"order_number":"AZS-050426-026","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"796.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-05 18:08:59","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":796,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"796.00","database_verification_match":true,"timestamp":"2026-04-05 18:08:59"} 
[2026-04-05 18:10:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:10:41.382Z","date_to":"2026-04-05T18:10:41.382Z","per_page":"100"} 
[2026-04-05 18:10:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:10:41.402Z","date_to":"2026-04-05T18:10:41.402Z","per_page":"100"} 
[2026-04-05 18:10:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":13,"unique_order_numbers":30} 
[2026-04-05 18:10:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":13,"unique_order_numbers":30} 
[2026-04-05 18:10:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:10:41.382Z","date_to":"2026-04-05T18:10:41.382Z","per_page":"100"} 
[2026-04-05 18:10:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":17,"unpaid_count":13,"unique_order_numbers":30} 
[2026-04-05 18:12:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6917,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":33084}],"validated_items":[{"id":33084,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:12:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6917,"items_count":1} 
[2026-04-05 18:12:40] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33084,"menu_item_id":6,"quantity":3}]} 
[2026-04-05 18:12:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6917,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|3|"],"new_items_map_keys":["6|3|"]} 
[2026-04-05 18:12:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6917,"order_number":"AZS-050426-030"} 
[2026-04-05 18:12:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6917,"order_number":"AZS-050426-030","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 18:12:40"} 
[2026-04-05 18:13:41] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6917,"order_number":"AZS-050426-030","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:13:41"} 
[2026-04-05 18:13:41] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6917,"order_number":"AZS-050426-030","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:13:41"} 
[2026-04-05 18:13:41] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6917,"order_number":"AZS-050426-030","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:13:41"} 
[2026-04-05 18:13:41] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6917,"order_number":"AZS-050426-030","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:13:41"} 
[2026-04-05 18:13:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6917,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":33084}],"validated_items":[{"id":33084,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:13:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6917,"items_count":1} 
[2026-04-05 18:13:41] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33084,"menu_item_id":6,"quantity":3}]} 
[2026-04-05 18:13:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6917,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|3|"],"new_items_map_keys":["6|3|"]} 
[2026-04-05 18:13:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6917,"order_number":"AZS-050426-030"} 
[2026-04-05 18:13:41] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6917,"order_number":"AZS-050426-030","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-05 18:13:41","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 18:13:41"} 
[2026-04-05 18:13:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6917,"order_number":"AZS-050426-030","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 18:13:41"} 
[2026-04-05 18:13:41] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6917,"order_number":"AZS-050426-030","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-05 18:13:41","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-04-05 18:13:41"} 
[2026-04-05 18:14:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6905,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":2,"discount_percent":0,"notes":null,"id":33035},{"menu_item_id":77,"quantity":1,"discount_percent":0,"notes":null,"id":33036},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33037},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":33038},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33039},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33035,"menu_item_id":85,"quantity":2,"discount_percent":0,"notes":null},{"id":33036,"menu_item_id":77,"quantity":1,"discount_percent":0,"notes":null},{"id":33037,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33038,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":33039,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:14:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6905,"items_count":6} 
[2026-04-05 18:14:05] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33035,"menu_item_id":85,"quantity":2},{"id":33036,"menu_item_id":77,"quantity":1},{"id":33037,"menu_item_id":5,"quantity":1},{"id":33038,"menu_item_id":61,"quantity":2},{"id":33039,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-05 18:14:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6905,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["85|2|","77|1|","5|1|","61|2|","56|1|"],"new_items_map_keys":["85|2|","77|1|","5|1|","61|2|","56|1|","3|1|"]} 
[2026-04-05 18:14:05] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6905,"order_number":"AZS-050426-019"} 
[2026-04-05 18:14:05] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-019","replaced_order_id":6905} 
[2026-04-05 18:14:05] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6919,"items_count":6,"items":[{"menu_item_id":85,"quantity":2,"price":"699.00"},{"menu_item_id":77,"quantity":1,"price":"8799.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-05 18:14:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6919,"item_index":0,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":2,"price":"699.00","discount_percent":0.0,"discount_amount":0.0,"total":1398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6919}} 
[2026-04-05 18:14:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6919,"item_index":0,"menu_item_id":85} 
[2026-04-05 18:14:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6919,"item_index":1,"item_data":{"menu_item_id":77,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Full","quantity":1,"price":"8799.00","discount_percent":0.0,"discount_amount":0.0,"total":8799.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6919}} 
[2026-04-05 18:14:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6919,"item_index":1,"menu_item_id":77} 
[2026-04-05 18:14:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6919,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6919}} 
[2026-04-05 18:14:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6919,"item_index":2,"menu_item_id":5} 
[2026-04-05 18:14:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6919,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6919}} 
[2026-04-05 18:14:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6919,"item_index":3,"menu_item_id":61} 
[2026-04-05 18:14:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6919,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6919}} 
[2026-04-05 18:14:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6919,"item_index":4,"menu_item_id":56} 
[2026-04-05 18:14:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6919,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6919}} 
[2026-04-05 18:14:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6919,"item_index":5,"menu_item_id":3} 
[2026-04-05 18:14:05] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6905,"new_order_id":6919,"order_number":"AZS-050426-019"} 
[2026-04-05 18:14:48] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6907,"order_number":"AZS-050426-023","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":400,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:14:48"} 
[2026-04-05 18:14:48] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6907,"order_number":"AZS-050426-023","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":400,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:14:48"} 
[2026-04-05 18:14:48] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6907,"order_number":"AZS-050426-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":400,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:14:48"} 
[2026-04-05 18:14:48] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6907,"order_number":"AZS-050426-023","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":400,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:14:48"} 
[2026-04-05 18:14:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6907,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33047}],"validated_items":[{"id":33047,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:14:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6907,"items_count":1} 
[2026-04-05 18:14:48] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33047,"menu_item_id":6,"quantity":2}]} 
[2026-04-05 18:14:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6907,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-04-05 18:14:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6907,"order_number":"AZS-050426-023"} 
[2026-04-05 18:14:48] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6907,"order_number":"AZS-050426-023","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":400,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-05 18:14:48","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 18:14:48"} 
[2026-04-05 18:14:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6907,"order_number":"AZS-050426-023","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 18:14:48"} 
[2026-04-05 18:14:48] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6907,"order_number":"AZS-050426-023","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"400.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-05 18:14:48","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":400,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"400.00","database_verification_match":true,"timestamp":"2026-04-05 18:14:48"} 
[2026-04-05 18:15:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6914,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33064},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33065},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33066},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33067}],"validated_items":[{"id":33064,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33065,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":33066,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33067,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:15:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6914,"items_count":4} 
[2026-04-05 18:15:38] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33064,"menu_item_id":96,"quantity":1},{"id":33065,"menu_item_id":396,"quantity":2},{"id":33066,"menu_item_id":61,"quantity":1},{"id":33067,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 18:15:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6914,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","396|2|","61|1|","5|1|"],"new_items_map_keys":["96|1|","396|2|","61|1|","5|1|"]} 
[2026-04-05 18:15:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6914,"order_number":"AZS-050426-028"} 
[2026-04-05 18:15:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6914,"order_number":"AZS-050426-028","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 18:15:38"} 
[2026-04-05 18:15:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6918,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":33085},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33086},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33087},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33088},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33089},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33090},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":33091}],"validated_items":[{"id":33085,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":33086,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":33087,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":33088,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33089,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33090,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33091,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:15:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6918,"items_count":7} 
[2026-04-05 18:15:57] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33085,"menu_item_id":62,"quantity":1},{"id":33086,"menu_item_id":65,"quantity":1},{"id":33087,"menu_item_id":396,"quantity":2},{"id":33088,"menu_item_id":61,"quantity":1},{"id":33089,"menu_item_id":56,"quantity":1},{"id":33090,"menu_item_id":5,"quantity":1},{"id":33091,"menu_item_id":2,"quantity":2}]} 
[2026-04-05 18:15:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6918,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["62|1|","65|1|","396|2|","61|1|","56|1|","5|1|","2|2|"],"new_items_map_keys":["62|1|","65|1|","396|2|","61|1|","56|1|","5|1|","2|2|"]} 
[2026-04-05 18:15:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6918,"order_number":"AZS-050426-020"} 
[2026-04-05 18:15:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6918,"order_number":"AZS-050426-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 18:15:57"} 
[2026-04-05 18:16:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:16:52.229Z","date_to":"2026-04-05T18:16:52.229Z","per_page":"100"} 
[2026-04-05 18:16:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:16:52.248Z","date_to":"2026-04-05T18:16:52.248Z","per_page":"100"} 
[2026-04-05 18:16:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","pending","pending","paid","pending","pending","paid","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":11,"unique_order_numbers":30} 
[2026-04-05 18:16:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","pending","pending","paid","pending","pending","paid","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":11,"unique_order_numbers":30} 
[2026-04-05 18:16:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:16:52.229Z","date_to":"2026-04-05T18:16:52.229Z","per_page":"100"} 
[2026-04-05 18:16:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","pending","pending","paid","pending","pending","paid","pending","pending","pending","pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":11,"unique_order_numbers":30} 
[2026-04-05 18:17:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":6914,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":33064},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":33065},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33066},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33064,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":33065,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":33066,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:17:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6914,"items_count":4} 
[2026-04-05 18:17:33] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[33067],"items":[{"id":33064,"menu_item_id":96,"quantity":1},{"id":33065,"menu_item_id":396,"quantity":2},{"id":33066,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-04-05 18:17:33] local.INFO: PosOrderController::update - Item changes check {"order_id":6914,"has_item_changes":true,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","396|2|","61|1|","5|1|"],"new_items_map_keys":["96|1|","396|2|","61|1|","4|1|"]} 
[2026-04-05 18:17:33] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6914,"order_number":"AZS-050426-028"} 
[2026-04-05 18:17:33] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-028","replaced_order_id":6914} 
[2026-04-05 18:17:33] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6920,"items_count":4,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-04-05 18:17:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6920,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6920}} 
[2026-04-05 18:17:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6920,"item_index":0,"menu_item_id":96} 
[2026-04-05 18:17:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6920,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6920}} 
[2026-04-05 18:17:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6920,"item_index":1,"menu_item_id":396} 
[2026-04-05 18:17:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6920,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6920}} 
[2026-04-05 18:17:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6920,"item_index":2,"menu_item_id":61} 
[2026-04-05 18:17:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6920,"item_index":3,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6920}} 
[2026-04-05 18:17:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6920,"item_index":3,"menu_item_id":4} 
[2026-04-05 18:17:33] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6914,"new_order_id":6920,"order_number":"AZS-050426-028"} 
[2026-04-05 18:17:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6920,"item_index":0,"item_id":33064} 
[2026-04-05 18:17:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6920,"item_index":1,"item_id":33065} 
[2026-04-05 18:17:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6920,"item_index":2,"item_id":33066} 
[2026-04-05 18:17:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6920,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33064},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33065},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33066},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:17:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6920,"items_count":4} 
[2026-04-05 18:17:40] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[33098,33099,33100,33101],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-04-05 18:17:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6920,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","396|2|","61|1|","4|1|"],"new_items_map_keys":["96|1|","396|2|","61|1|","4|1|"]} 
[2026-04-05 18:17:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6920,"order_number":"AZS-050426-028"} 
[2026-04-05 18:17:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6920,"order_number":"AZS-050426-028","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 18:17:40"} 
[2026-04-05 18:18:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6918,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":33085},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33086},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33087},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33088},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33089},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33090},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":33091}],"validated_items":[{"id":33085,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":33086,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":33087,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":33088,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33089,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33090,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33091,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:18:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6918,"items_count":7} 
[2026-04-05 18:18:12] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33085,"menu_item_id":62,"quantity":1},{"id":33086,"menu_item_id":65,"quantity":1},{"id":33087,"menu_item_id":396,"quantity":2},{"id":33088,"menu_item_id":61,"quantity":1},{"id":33089,"menu_item_id":56,"quantity":1},{"id":33090,"menu_item_id":5,"quantity":1},{"id":33091,"menu_item_id":2,"quantity":2}]} 
[2026-04-05 18:18:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6918,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["62|1|","65|1|","396|2|","61|1|","56|1|","5|1|","2|2|"],"new_items_map_keys":["62|1|","65|1|","396|2|","61|1|","56|1|","5|1|","2|2|"]} 
[2026-04-05 18:18:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6918,"order_number":"AZS-050426-020"} 
[2026-04-05 18:18:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6918,"order_number":"AZS-050426-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 18:18:12"} 
[2026-04-05 18:18:40] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6918,"order_number":"AZS-050426-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":4000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:18:40"} 
[2026-04-05 18:18:40] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6918,"order_number":"AZS-050426-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":4000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:18:40"} 
[2026-04-05 18:18:40] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6918,"order_number":"AZS-050426-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:18:40"} 
[2026-04-05 18:18:40] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6918,"order_number":"AZS-050426-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":4000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:18:40"} 
[2026-04-05 18:18:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6918,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":33085},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33086},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33087},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33088},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33089},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33090},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":33091}],"validated_items":[{"id":33085,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":33086,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":33087,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":33088,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33089,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33090,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33091,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:18:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6918,"items_count":7} 
[2026-04-05 18:18:40] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33085,"menu_item_id":62,"quantity":1},{"id":33086,"menu_item_id":65,"quantity":1},{"id":33087,"menu_item_id":396,"quantity":2},{"id":33088,"menu_item_id":61,"quantity":1},{"id":33089,"menu_item_id":56,"quantity":1},{"id":33090,"menu_item_id":5,"quantity":1},{"id":33091,"menu_item_id":2,"quantity":2}]} 
[2026-04-05 18:18:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6918,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["62|1|","65|1|","396|2|","61|1|","56|1|","5|1|","2|2|"],"new_items_map_keys":["62|1|","65|1|","396|2|","61|1|","56|1|","5|1|","2|2|"]} 
[2026-04-05 18:18:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6918,"order_number":"AZS-050426-020"} 
[2026-04-05 18:18:40] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6918,"order_number":"AZS-050426-020","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":4000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-05 18:18:40","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 18:18:40"} 
[2026-04-05 18:18:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6918,"order_number":"AZS-050426-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 18:18:40"} 
[2026-04-05 18:18:40] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6918,"order_number":"AZS-050426-020","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"4000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-05 18:18:40","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":4000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"4000.00","database_verification_match":true,"timestamp":"2026-04-05 18:18:40"} 
[2026-04-05 18:19:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":6915,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":33068},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":33069},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":33070},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33071},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":33072},{"menu_item_id":286,"quantity":6,"price":15,"discount_percent":0,"notes":null,"id":33073},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33074},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33075},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33076},{"menu_item_id":48,"quantity":4,"price":250,"discount_percent":0,"notes":null,"id":33077},{"menu_item_id":403,"quantity":3,"price":349,"discount_percent":0,"notes":null,"id":33078},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":33079}],"validated_items":[{"id":33068,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":33069,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":33070,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":33071,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":33072,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":33073,"menu_item_id":286,"quantity":6,"price":15,"discount_percent":0,"notes":null},{"id":33074,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33075,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33076,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33077,"menu_item_id":48,"quantity":4,"price":250,"discount_percent":0,"notes":null},{"id":33078,"menu_item_id":403,"quantity":3,"price":349,"discount_percent":0,"notes":null},{"id":33079,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:19:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6915,"items_count":12} 
[2026-04-05 18:19:18] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33068,"menu_item_id":114,"quantity":1},{"id":33069,"menu_item_id":95,"quantity":1},{"id":33070,"menu_item_id":62,"quantity":1},{"id":33071,"menu_item_id":65,"quantity":1},{"id":33072,"menu_item_id":63,"quantity":1},{"id":33073,"menu_item_id":286,"quantity":6},{"id":33074,"menu_item_id":61,"quantity":2},{"id":33075,"menu_item_id":56,"quantity":2},{"id":33076,"menu_item_id":5,"quantity":1},{"id":33077,"menu_item_id":48,"quantity":4},{"id":33078,"menu_item_id":403,"quantity":3},{"id":33079,"menu_item_id":3,"quantity":2}]} 
[2026-04-05 18:19:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6915,"has_item_changes":false,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["114|1|","95|1|","62|1|","65|1|","63|1|","286|6|","61|2|","56|2|","5|1|","48|4|","403|3|","3|2|"],"new_items_map_keys":["114|1|","95|1|","62|1|","65|1|","63|1|","286|6|","61|2|","56|2|","5|1|","48|4|","403|3|","3|2|"]} 
[2026-04-05 18:19:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6915,"order_number":"AZS-050426-018"} 
[2026-04-05 18:19:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6915,"order_number":"AZS-050426-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 18:19:18"} 
[2026-04-05 18:19:48] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6920,"order_number":"AZS-050426-028","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:19:48"} 
[2026-04-05 18:19:48] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6920,"order_number":"AZS-050426-028","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:19:48"} 
[2026-04-05 18:19:48] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6920,"order_number":"AZS-050426-028","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:19:48"} 
[2026-04-05 18:19:48] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6920,"order_number":"AZS-050426-028","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:19:48"} 
[2026-04-05 18:19:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6920,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33098},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33099},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33100},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":33101}],"validated_items":[{"id":33098,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33099,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":33100,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33101,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:19:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6920,"items_count":4} 
[2026-04-05 18:19:48] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33098,"menu_item_id":96,"quantity":1},{"id":33099,"menu_item_id":396,"quantity":2},{"id":33100,"menu_item_id":61,"quantity":1},{"id":33101,"menu_item_id":4,"quantity":1}]} 
[2026-04-05 18:19:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6920,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","396|2|","61|1|","4|1|"],"new_items_map_keys":["96|1|","396|2|","61|1|","4|1|"]} 
[2026-04-05 18:19:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6920,"order_number":"AZS-050426-028"} 
[2026-04-05 18:19:48] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6920,"order_number":"AZS-050426-028","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-05 18:19:48","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 18:19:48"} 
[2026-04-05 18:19:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6920,"order_number":"AZS-050426-028","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 18:19:48"} 
[2026-04-05 18:19:48] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6920,"order_number":"AZS-050426-028","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-05 18:19:48","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-04-05 18:19:48"} 
[2026-04-05 18:21:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6906,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33040},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":33041},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":33042},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":33043},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33044},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33045},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33046}],"validated_items":[{"id":33040,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33041,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":33042,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":33043,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":33044,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33045,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33046,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:21:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6906,"items_count":7} 
[2026-04-05 18:21:52] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33040,"menu_item_id":96,"quantity":1},{"id":33041,"menu_item_id":64,"quantity":1},{"id":33042,"menu_item_id":52,"quantity":2},{"id":33043,"menu_item_id":55,"quantity":2},{"id":33044,"menu_item_id":61,"quantity":1},{"id":33045,"menu_item_id":56,"quantity":1},{"id":33046,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 18:21:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6906,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["96|1|","64|1|","52|2|","55|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["96|1|","64|1|","52|2|","55|2|","61|1|","56|1|","5|1|"]} 
[2026-04-05 18:21:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6906,"order_number":"AZS-050426-022"} 
[2026-04-05 18:21:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6906,"order_number":"AZS-050426-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 18:21:52"} 
[2026-04-05 18:23:13] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6915,"order_number":"AZS-050426-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":12450,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:23:13"} 
[2026-04-05 18:23:13] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6915,"order_number":"AZS-050426-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":12450,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:23:13"} 
[2026-04-05 18:23:13] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6915,"order_number":"AZS-050426-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":12450,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:23:13"} 
[2026-04-05 18:23:13] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6915,"order_number":"AZS-050426-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":12450,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:23:13"} 
[2026-04-05 18:23:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":6915,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":33068},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":33069},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":33070},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33071},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":33072},{"menu_item_id":286,"quantity":6,"price":15,"discount_percent":0,"notes":null,"id":33073},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33074},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33075},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33076},{"menu_item_id":48,"quantity":4,"price":250,"discount_percent":0,"notes":null,"id":33077},{"menu_item_id":403,"quantity":3,"price":349,"discount_percent":0,"notes":null,"id":33078},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":33079}],"validated_items":[{"id":33068,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":33069,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":33070,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":33071,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":33072,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":33073,"menu_item_id":286,"quantity":6,"price":15,"discount_percent":0,"notes":null},{"id":33074,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33075,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33076,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33077,"menu_item_id":48,"quantity":4,"price":250,"discount_percent":0,"notes":null},{"id":33078,"menu_item_id":403,"quantity":3,"price":349,"discount_percent":0,"notes":null},{"id":33079,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:23:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6915,"items_count":12} 
[2026-04-05 18:23:13] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33068,"menu_item_id":114,"quantity":1},{"id":33069,"menu_item_id":95,"quantity":1},{"id":33070,"menu_item_id":62,"quantity":1},{"id":33071,"menu_item_id":65,"quantity":1},{"id":33072,"menu_item_id":63,"quantity":1},{"id":33073,"menu_item_id":286,"quantity":6},{"id":33074,"menu_item_id":61,"quantity":2},{"id":33075,"menu_item_id":56,"quantity":2},{"id":33076,"menu_item_id":5,"quantity":1},{"id":33077,"menu_item_id":48,"quantity":4},{"id":33078,"menu_item_id":403,"quantity":3},{"id":33079,"menu_item_id":3,"quantity":2}]} 
[2026-04-05 18:23:13] local.INFO: PosOrderController::update - Item changes check {"order_id":6915,"has_item_changes":false,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["114|1|","95|1|","62|1|","65|1|","63|1|","286|6|","61|2|","56|2|","5|1|","48|4|","403|3|","3|2|"],"new_items_map_keys":["114|1|","95|1|","62|1|","65|1|","63|1|","286|6|","61|2|","56|2|","5|1|","48|4|","403|3|","3|2|"]} 
[2026-04-05 18:23:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6915,"order_number":"AZS-050426-018"} 
[2026-04-05 18:23:13] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6915,"order_number":"AZS-050426-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":12450,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-05 18:23:13","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 18:23:13"} 
[2026-04-05 18:23:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6915,"order_number":"AZS-050426-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 18:23:13"} 
[2026-04-05 18:23:13] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6915,"order_number":"AZS-050426-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"12450.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-05 18:23:13","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":12450,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"12450.00","database_verification_match":true,"timestamp":"2026-04-05 18:23:13"} 
[2026-04-05 18:26:00] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6906,"order_number":"AZS-050426-022","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3385,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:26:00"} 
[2026-04-05 18:26:00] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6906,"order_number":"AZS-050426-022","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3385,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:26:00"} 
[2026-04-05 18:26:00] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6906,"order_number":"AZS-050426-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3385,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:26:00"} 
[2026-04-05 18:26:00] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6906,"order_number":"AZS-050426-022","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3385,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:26:00"} 
[2026-04-05 18:26:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6906,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33040},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":33041},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":33042},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":33043},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33044},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33045},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33046}],"validated_items":[{"id":33040,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33041,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":33042,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":33043,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":33044,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33045,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33046,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:26:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6906,"items_count":7} 
[2026-04-05 18:26:00] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33040,"menu_item_id":96,"quantity":1},{"id":33041,"menu_item_id":64,"quantity":1},{"id":33042,"menu_item_id":52,"quantity":2},{"id":33043,"menu_item_id":55,"quantity":2},{"id":33044,"menu_item_id":61,"quantity":1},{"id":33045,"menu_item_id":56,"quantity":1},{"id":33046,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 18:26:00] local.INFO: PosOrderController::update - Item changes check {"order_id":6906,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["96|1|","64|1|","52|2|","55|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["96|1|","64|1|","52|2|","55|2|","61|1|","56|1|","5|1|"]} 
[2026-04-05 18:26:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6906,"order_number":"AZS-050426-022"} 
[2026-04-05 18:26:00] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6906,"order_number":"AZS-050426-022","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3385,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-05 18:26:00","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 18:26:00"} 
[2026-04-05 18:26:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6906,"order_number":"AZS-050426-022","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 18:26:00"} 
[2026-04-05 18:26:00] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6906,"order_number":"AZS-050426-022","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3385.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-05 18:26:00","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3385,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3385.00","database_verification_match":true,"timestamp":"2026-04-05 18:26:00"} 
[2026-04-05 18:26:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6919,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":2,"discount_percent":0,"notes":null,"id":33092},{"menu_item_id":77,"quantity":1,"discount_percent":0,"notes":null,"id":33093},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33094},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":33095},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33096},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":33097}],"validated_items":[{"id":33092,"menu_item_id":85,"quantity":2,"discount_percent":0,"notes":null},{"id":33093,"menu_item_id":77,"quantity":1,"discount_percent":0,"notes":null},{"id":33094,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33095,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":33096,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33097,"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:26:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6919,"items_count":6} 
[2026-04-05 18:26:11] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33092,"menu_item_id":85,"quantity":2},{"id":33093,"menu_item_id":77,"quantity":1},{"id":33094,"menu_item_id":5,"quantity":1},{"id":33095,"menu_item_id":61,"quantity":2},{"id":33096,"menu_item_id":56,"quantity":1},{"id":33097,"menu_item_id":3,"quantity":2}]} 
[2026-04-05 18:26:11] local.INFO: PosOrderController::update - Item changes check {"order_id":6919,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["85|2|","77|1|","5|1|","61|2|","56|1|","3|1|"],"new_items_map_keys":["85|2|","77|1|","5|1|","61|2|","56|1|","3|2|"]} 
[2026-04-05 18:26:11] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6919,"order_number":"AZS-050426-019"} 
[2026-04-05 18:26:11] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-019","replaced_order_id":6919} 
[2026-04-05 18:26:11] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6921,"items_count":6,"items":[{"menu_item_id":85,"quantity":2,"price":"699.00"},{"menu_item_id":77,"quantity":1,"price":"8799.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-04-05 18:26:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6921,"item_index":0,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":2,"price":"699.00","discount_percent":0.0,"discount_amount":0.0,"total":1398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6921}} 
[2026-04-05 18:26:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6921,"item_index":0,"menu_item_id":85} 
[2026-04-05 18:26:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6921,"item_index":1,"item_data":{"menu_item_id":77,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Full","quantity":1,"price":"8799.00","discount_percent":0.0,"discount_amount":0.0,"total":8799.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6921}} 
[2026-04-05 18:26:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6921,"item_index":1,"menu_item_id":77} 
[2026-04-05 18:26:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6921,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6921}} 
[2026-04-05 18:26:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6921,"item_index":2,"menu_item_id":5} 
[2026-04-05 18:26:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6921,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6921}} 
[2026-04-05 18:26:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6921,"item_index":3,"menu_item_id":61} 
[2026-04-05 18:26:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6921,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6921}} 
[2026-04-05 18:26:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6921,"item_index":4,"menu_item_id":56} 
[2026-04-05 18:26:11] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6921,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6921}} 
[2026-04-05 18:26:11] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6921,"item_index":5,"menu_item_id":3} 
[2026-04-05 18:26:11] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6919,"new_order_id":6921,"order_number":"AZS-050426-019"} 
[2026-04-05 18:28:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6904,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":165,"quantity":2,"price":999,"discount_percent":0,"notes":null,"id":33032},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":33033},{"menu_item_id":401,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33034}],"validated_items":[{"id":33032,"menu_item_id":165,"quantity":2,"price":999,"discount_percent":0,"notes":null},{"id":33033,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":33034,"menu_item_id":401,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:28:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6904,"items_count":3} 
[2026-04-05 18:28:36] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33032,"menu_item_id":165,"quantity":2},{"id":33033,"menu_item_id":29,"quantity":2},{"id":33034,"menu_item_id":401,"quantity":1}]} 
[2026-04-05 18:28:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6904,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["165|2|","29|2|","401|1|"],"new_items_map_keys":["165|2|","29|2|","401|1|"]} 
[2026-04-05 18:28:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6904,"order_number":"AZS-050426-021"} 
[2026-04-05 18:28:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6904,"order_number":"AZS-050426-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 18:28:36"} 
[2026-04-05 18:30:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6911,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33051},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33052},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":33053},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":33054},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33055},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33056},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33057}],"validated_items":[{"id":33051,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33052,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33053,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":33054,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":33055,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33056,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33057,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:30:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6911,"items_count":7} 
[2026-04-05 18:30:33] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33051,"menu_item_id":96,"quantity":1},{"id":33052,"menu_item_id":98,"quantity":1},{"id":33053,"menu_item_id":63,"quantity":1},{"id":33054,"menu_item_id":396,"quantity":5},{"id":33055,"menu_item_id":61,"quantity":2},{"id":33056,"menu_item_id":56,"quantity":2},{"id":33057,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 18:30:33] local.INFO: PosOrderController::update - Item changes check {"order_id":6911,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["96|1|","98|1|","63|1|","396|5|","61|2|","56|2|","5|1|"],"new_items_map_keys":["96|1|","98|1|","63|1|","396|5|","61|2|","56|2|","5|1|"]} 
[2026-04-05 18:30:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6911,"order_number":"AZS-050426-027"} 
[2026-04-05 18:30:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6911,"order_number":"AZS-050426-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 18:30:33"} 
[2026-04-05 18:30:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:30:59.059Z","date_to":"2026-04-05T18:30:59.059Z","per_page":"100"} 
[2026-04-05 18:30:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:30:59.074Z","date_to":"2026-04-05T18:30:59.074Z","per_page":"100"} 
[2026-04-05 18:30:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","pending","paid","pending","pending","paid","paid","pending","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":7,"unique_order_numbers":30} 
[2026-04-05 18:30:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","pending","paid","pending","pending","paid","paid","pending","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":7,"unique_order_numbers":30} 
[2026-04-05 18:30:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:30:59.059Z","date_to":"2026-04-05T18:30:59.059Z","per_page":"100"} 
[2026-04-05 18:30:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","pending","paid","pending","pending","paid","paid","pending","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":23,"unpaid_count":7,"unique_order_numbers":30} 
[2026-04-05 18:32:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6904,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":165,"quantity":2,"price":999,"discount_percent":0,"notes":null,"id":33032},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":33033},{"menu_item_id":401,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33034}],"validated_items":[{"id":33032,"menu_item_id":165,"quantity":2,"price":999,"discount_percent":0,"notes":null},{"id":33033,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":33034,"menu_item_id":401,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:32:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6904,"items_count":3} 
[2026-04-05 18:32:23] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33032,"menu_item_id":165,"quantity":2},{"id":33033,"menu_item_id":29,"quantity":2},{"id":33034,"menu_item_id":401,"quantity":1}]} 
[2026-04-05 18:32:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6904,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["165|2|","29|2|","401|1|"],"new_items_map_keys":["165|2|","29|2|","401|1|"]} 
[2026-04-05 18:32:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6904,"order_number":"AZS-050426-021"} 
[2026-04-05 18:32:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6904,"order_number":"AZS-050426-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 18:32:23"} 
[2026-04-05 18:32:50] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6904,"order_number":"AZS-050426-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:32:50"} 
[2026-04-05 18:32:50] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6904,"order_number":"AZS-050426-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:32:50"} 
[2026-04-05 18:32:50] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6904,"order_number":"AZS-050426-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:32:50"} 
[2026-04-05 18:32:50] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6904,"order_number":"AZS-050426-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:32:50"} 
[2026-04-05 18:32:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6904,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":165,"quantity":2,"price":999,"discount_percent":0,"notes":null,"id":33032},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":33033},{"menu_item_id":401,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33034}],"validated_items":[{"id":33032,"menu_item_id":165,"quantity":2,"price":999,"discount_percent":0,"notes":null},{"id":33033,"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":33034,"menu_item_id":401,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:32:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6904,"items_count":3} 
[2026-04-05 18:32:50] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33032,"menu_item_id":165,"quantity":2},{"id":33033,"menu_item_id":29,"quantity":2},{"id":33034,"menu_item_id":401,"quantity":1}]} 
[2026-04-05 18:32:50] local.INFO: PosOrderController::update - Item changes check {"order_id":6904,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["165|2|","29|2|","401|1|"],"new_items_map_keys":["165|2|","29|2|","401|1|"]} 
[2026-04-05 18:32:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6904,"order_number":"AZS-050426-021"} 
[2026-04-05 18:32:50] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6904,"order_number":"AZS-050426-021","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-05 18:32:50","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 18:32:50"} 
[2026-04-05 18:32:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6904,"order_number":"AZS-050426-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 18:32:50"} 
[2026-04-05 18:32:50] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6904,"order_number":"AZS-050426-021","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-05 18:32:50","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-04-05 18:32:50"} 
[2026-04-05 18:33:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:33:03.607Z","date_to":"2026-04-05T18:33:03.607Z","per_page":"100"} 
[2026-04-05 18:33:01] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:33:03.593Z","date_to":"2026-04-05T18:33:03.593Z","per_page":"100"} 
[2026-04-05 18:33:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","pending","paid","pending","pending","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":24,"unpaid_count":6,"unique_order_numbers":30} 
[2026-04-05 18:33:01] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","pending","paid","pending","pending","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":24,"unpaid_count":6,"unique_order_numbers":30} 
[2026-04-05 18:33:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:33:03.593Z","date_to":"2026-04-05T18:33:03.593Z","per_page":"100"} 
[2026-04-05 18:33:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","pending","paid","pending","pending","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":24,"unpaid_count":6,"unique_order_numbers":30} 
[2026-04-05 18:33:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6908,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":33048}],"validated_items":[{"id":33048,"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:33:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6908,"items_count":1} 
[2026-04-05 18:33:20] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33048,"menu_item_id":384,"quantity":1}]} 
[2026-04-05 18:33:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6908,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["384|1|"],"new_items_map_keys":["384|1|"]} 
[2026-04-05 18:33:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6908,"order_number":"AZS-050426-024"} 
[2026-04-05 18:33:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6908,"order_number":"AZS-050426-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 18:33:20"} 
[2026-04-05 18:33:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6908,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"discount_percent":0,"notes":null,"id":33048},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33048,"menu_item_id":384,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:33:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6908,"items_count":2} 
[2026-04-05 18:33:35] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33048,"menu_item_id":384,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 18:33:35] local.INFO: PosOrderController::update - Item changes check {"order_id":6908,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["384|1|"],"new_items_map_keys":["384|1|","5|1|"]} 
[2026-04-05 18:33:35] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6908,"order_number":"AZS-050426-024"} 
[2026-04-05 18:33:35] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-024","replaced_order_id":6908} 
[2026-04-05 18:33:35] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6922,"items_count":2,"items":[{"menu_item_id":384,"quantity":1,"price":"1399.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-05 18:33:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6922,"item_index":0,"item_data":{"menu_item_id":384,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 03","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6922}} 
[2026-04-05 18:33:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6922,"item_index":0,"menu_item_id":384} 
[2026-04-05 18:33:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6922,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6922}} 
[2026-04-05 18:33:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6922,"item_index":1,"menu_item_id":5} 
[2026-04-05 18:33:35] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6908,"new_order_id":6922,"order_number":"AZS-050426-024"} 
[2026-04-05 18:33:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6922,"item_index":0,"item_id":33048} 
[2026-04-05 18:33:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":6922,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":33048},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:33:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6922,"items_count":2} 
[2026-04-05 18:33:40] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[33108,33109],"items":[{"id":null,"menu_item_id":384,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 18:33:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6922,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["384|1|","5|1|"],"new_items_map_keys":["384|1|","5|1|"]} 
[2026-04-05 18:33:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6922,"order_number":"AZS-050426-024"} 
[2026-04-05 18:33:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6922,"order_number":"AZS-050426-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 18:33:40"} 
[2026-04-05 18:34:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6909,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":33049},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33049,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:34:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6909,"items_count":2} 
[2026-04-05 18:34:21] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33049,"menu_item_id":137,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-04-05 18:34:21] local.INFO: PosOrderController::update - Item changes check {"order_id":6909,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["137|1|"],"new_items_map_keys":["137|1|","4|1|"]} 
[2026-04-05 18:34:21] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6909,"order_number":"AZS-050426-025"} 
[2026-04-05 18:34:21] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-025","replaced_order_id":6909} 
[2026-04-05 18:34:21] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6923,"items_count":2,"items":[{"menu_item_id":137,"quantity":1,"price":"1299.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-04-05 18:34:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6923,"item_index":0,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6923}} 
[2026-04-05 18:34:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6923,"item_index":0,"menu_item_id":137} 
[2026-04-05 18:34:21] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6923,"item_index":1,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6923}} 
[2026-04-05 18:34:21] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6923,"item_index":1,"menu_item_id":4} 
[2026-04-05 18:34:21] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6909,"new_order_id":6923,"order_number":"AZS-050426-025"} 
[2026-04-05 18:34:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6923,"item_index":0,"item_id":33049} 
[2026-04-05 18:34:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":2,"order_id":6923,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33049},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:34:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6923,"items_count":2} 
[2026-04-05 18:34:26] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":2,"items_to_remove":[33110,33111],"items":[{"id":null,"menu_item_id":137,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-04-05 18:34:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6923,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["137|1|","4|1|"],"new_items_map_keys":["137|1|","4|1|"]} 
[2026-04-05 18:34:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6923,"order_number":"AZS-050426-025"} 
[2026-04-05 18:34:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6923,"order_number":"AZS-050426-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 18:34:26"} 
[2026-04-05 18:35:36] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6911,"order_number":"AZS-050426-027","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5210,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:35:36"} 
[2026-04-05 18:35:36] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6911,"order_number":"AZS-050426-027","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5210,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:35:36"} 
[2026-04-05 18:35:36] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6911,"order_number":"AZS-050426-027","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5210,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:35:36"} 
[2026-04-05 18:35:36] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6911,"order_number":"AZS-050426-027","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5210,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:35:36"} 
[2026-04-05 18:35:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6911,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33051},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33052},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":33053},{"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null,"id":33054},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33055},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33056},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33057}],"validated_items":[{"id":33051,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33052,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33053,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":33054,"menu_item_id":396,"quantity":5,"price":99,"discount_percent":0,"notes":null},{"id":33055,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33056,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33057,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:35:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6911,"items_count":7} 
[2026-04-05 18:35:36] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33051,"menu_item_id":96,"quantity":1},{"id":33052,"menu_item_id":98,"quantity":1},{"id":33053,"menu_item_id":63,"quantity":1},{"id":33054,"menu_item_id":396,"quantity":5},{"id":33055,"menu_item_id":61,"quantity":2},{"id":33056,"menu_item_id":56,"quantity":2},{"id":33057,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 18:35:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6911,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["96|1|","98|1|","63|1|","396|5|","61|2|","56|2|","5|1|"],"new_items_map_keys":["96|1|","98|1|","63|1|","396|5|","61|2|","56|2|","5|1|"]} 
[2026-04-05 18:35:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6911,"order_number":"AZS-050426-027"} 
[2026-04-05 18:35:36] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6911,"order_number":"AZS-050426-027","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5210,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-05 18:35:36","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 18:35:36"} 
[2026-04-05 18:35:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6911,"order_number":"AZS-050426-027","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 18:35:36"} 
[2026-04-05 18:35:36] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6911,"order_number":"AZS-050426-027","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5210.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-05 18:35:36","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5210,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5210.00","database_verification_match":true,"timestamp":"2026-04-05 18:35:36"} 
[2026-04-05 18:35:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6921,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":2,"price":699,"discount_percent":0,"notes":null,"id":33102},{"menu_item_id":77,"quantity":1,"price":8799,"discount_percent":0,"notes":null,"id":33103},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33104},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33105},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33106},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":33107}],"validated_items":[{"id":33102,"menu_item_id":85,"quantity":2,"price":699,"discount_percent":0,"notes":null},{"id":33103,"menu_item_id":77,"quantity":1,"price":8799,"discount_percent":0,"notes":null},{"id":33104,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33105,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33106,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33107,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:35:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6921,"items_count":6} 
[2026-04-05 18:35:46] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33102,"menu_item_id":85,"quantity":2},{"id":33103,"menu_item_id":77,"quantity":1},{"id":33104,"menu_item_id":5,"quantity":1},{"id":33105,"menu_item_id":61,"quantity":2},{"id":33106,"menu_item_id":56,"quantity":1},{"id":33107,"menu_item_id":3,"quantity":2}]} 
[2026-04-05 18:35:46] local.INFO: PosOrderController::update - Item changes check {"order_id":6921,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["85|2|","77|1|","5|1|","61|2|","56|1|","3|2|"],"new_items_map_keys":["85|2|","77|1|","5|1|","61|2|","56|1|","3|2|"]} 
[2026-04-05 18:35:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6921,"order_number":"AZS-050426-019"} 
[2026-04-05 18:35:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6921,"order_number":"AZS-050426-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 18:35:46"} 
[2026-04-05 18:35:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:35:58.537Z","date_to":"2026-04-05T18:35:58.537Z","per_page":"100"} 
[2026-04-05 18:35:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:35:58.522Z","date_to":"2026-04-05T18:35:58.522Z","per_page":"100"} 
[2026-04-05 18:35:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","pending","pending","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":5,"unique_order_numbers":30} 
[2026-04-05 18:35:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","pending","pending","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":5,"unique_order_numbers":30} 
[2026-04-05 18:35:57] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:35:58.522Z","date_to":"2026-04-05T18:35:58.522Z","per_page":"100"} 
[2026-04-05 18:35:57] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","pending","pending","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":25,"unpaid_count":5,"unique_order_numbers":30} 
[2026-04-05 18:36:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6921,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":2,"discount_percent":0,"notes":null,"id":33102},{"menu_item_id":77,"quantity":1,"discount_percent":0,"notes":null,"id":33103},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33104},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33105},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33106},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":33107}],"validated_items":[{"id":33102,"menu_item_id":85,"quantity":2,"discount_percent":0,"notes":null},{"id":33103,"menu_item_id":77,"quantity":1,"discount_percent":0,"notes":null},{"id":33104,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33105,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":33106,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33107,"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:36:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6921,"items_count":6} 
[2026-04-05 18:36:31] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33102,"menu_item_id":85,"quantity":2},{"id":33103,"menu_item_id":77,"quantity":1},{"id":33104,"menu_item_id":5,"quantity":1},{"id":33105,"menu_item_id":61,"quantity":1},{"id":33106,"menu_item_id":56,"quantity":1},{"id":33107,"menu_item_id":3,"quantity":2}]} 
[2026-04-05 18:36:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6921,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["85|2|","77|1|","5|1|","61|2|","56|1|","3|2|"],"new_items_map_keys":["85|2|","77|1|","5|1|","61|1|","56|1|","3|2|"]} 
[2026-04-05 18:36:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6921,"order_number":"AZS-050426-019"} 
[2026-04-05 18:36:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-019","replaced_order_id":6921} 
[2026-04-05 18:36:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6924,"items_count":6,"items":[{"menu_item_id":85,"quantity":2,"price":"699.00"},{"menu_item_id":77,"quantity":1,"price":"8799.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-04-05 18:36:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6924,"item_index":0,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":2,"price":"699.00","discount_percent":0.0,"discount_amount":0.0,"total":1398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6924}} 
[2026-04-05 18:36:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6924,"item_index":0,"menu_item_id":85} 
[2026-04-05 18:36:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6924,"item_index":1,"item_data":{"menu_item_id":77,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Full","quantity":1,"price":"8799.00","discount_percent":0.0,"discount_amount":0.0,"total":8799.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6924}} 
[2026-04-05 18:36:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6924,"item_index":1,"menu_item_id":77} 
[2026-04-05 18:36:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6924,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6924}} 
[2026-04-05 18:36:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6924,"item_index":2,"menu_item_id":5} 
[2026-04-05 18:36:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6924,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6924}} 
[2026-04-05 18:36:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6924,"item_index":3,"menu_item_id":61} 
[2026-04-05 18:36:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6924,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6924}} 
[2026-04-05 18:36:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6924,"item_index":4,"menu_item_id":56} 
[2026-04-05 18:36:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6924,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6924}} 
[2026-04-05 18:36:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6924,"item_index":5,"menu_item_id":3} 
[2026-04-05 18:36:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6921,"new_order_id":6924,"order_number":"AZS-050426-019"} 
[2026-04-05 18:36:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6924,"item_index":0,"item_id":33102} 
[2026-04-05 18:36:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6924,"item_index":1,"item_id":33103} 
[2026-04-05 18:36:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6924,"item_index":2,"item_id":33104} 
[2026-04-05 18:36:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6924,"item_index":3,"item_id":33105} 
[2026-04-05 18:36:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6924,"item_index":4,"item_id":33106} 
[2026-04-05 18:36:35] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6924,"item_index":5,"item_id":33107} 
[2026-04-05 18:36:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6924,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":2,"price":699,"discount_percent":0,"notes":null,"id":33102},{"menu_item_id":77,"quantity":1,"price":8799,"discount_percent":0,"notes":null,"id":33103},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33104},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33105},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33106},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":33107}],"validated_items":[{"menu_item_id":85,"quantity":2,"price":699,"discount_percent":0,"notes":null},{"menu_item_id":77,"quantity":1,"price":8799,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:36:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6924,"items_count":6} 
[2026-04-05 18:36:35] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[33112,33113,33114,33115,33116,33117],"items":[{"id":null,"menu_item_id":85,"quantity":2},{"id":null,"menu_item_id":77,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":2}]} 
[2026-04-05 18:36:35] local.INFO: PosOrderController::update - Item changes check {"order_id":6924,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["85|2|","77|1|","5|1|","61|1|","56|1|","3|2|"],"new_items_map_keys":["85|2|","77|1|","5|1|","61|1|","56|1|","3|2|"]} 
[2026-04-05 18:36:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6924,"order_number":"AZS-050426-019"} 
[2026-04-05 18:36:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6924,"order_number":"AZS-050426-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 18:36:35"} 
[2026-04-05 18:38:52] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6923,"order_number":"AZS-050426-025","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:38:52"} 
[2026-04-05 18:38:52] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6923,"order_number":"AZS-050426-025","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:38:52"} 
[2026-04-05 18:38:52] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6923,"order_number":"AZS-050426-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:38:52"} 
[2026-04-05 18:38:52] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6923,"order_number":"AZS-050426-025","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:38:52"} 
[2026-04-05 18:38:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6923,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33110},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":33111}],"validated_items":[{"id":33110,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":33111,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:38:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6923,"items_count":2} 
[2026-04-05 18:38:52] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33110,"menu_item_id":137,"quantity":1},{"id":33111,"menu_item_id":4,"quantity":1}]} 
[2026-04-05 18:38:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6923,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["137|1|","4|1|"],"new_items_map_keys":["137|1|","4|1|"]} 
[2026-04-05 18:38:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6923,"order_number":"AZS-050426-025"} 
[2026-04-05 18:38:52] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6923,"order_number":"AZS-050426-025","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-05 18:38:52","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 18:38:52"} 
[2026-04-05 18:38:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6923,"order_number":"AZS-050426-025","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 18:38:52"} 
[2026-04-05 18:38:52] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6923,"order_number":"AZS-050426-025","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-05 18:38:52","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-04-05 18:38:52"} 
[2026-04-05 18:39:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6922,"order_number":"AZS-050426-024","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1700,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:39:27"} 
[2026-04-05 18:39:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6922,"order_number":"AZS-050426-024","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1700,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:39:27"} 
[2026-04-05 18:39:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6922,"order_number":"AZS-050426-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1700,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:39:27"} 
[2026-04-05 18:39:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6922,"order_number":"AZS-050426-024","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1700,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:39:27"} 
[2026-04-05 18:39:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6922,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":33108},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33109}],"validated_items":[{"id":33108,"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":33109,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:39:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6922,"items_count":2} 
[2026-04-05 18:39:27] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33108,"menu_item_id":384,"quantity":1},{"id":33109,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 18:39:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6922,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["384|1|","5|1|"],"new_items_map_keys":["384|1|","5|1|"]} 
[2026-04-05 18:39:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6922,"order_number":"AZS-050426-024"} 
[2026-04-05 18:39:27] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6922,"order_number":"AZS-050426-024","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1700,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-05 18:39:27","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 18:39:27"} 
[2026-04-05 18:39:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6922,"order_number":"AZS-050426-024","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 18:39:27"} 
[2026-04-05 18:39:27] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6922,"order_number":"AZS-050426-024","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1700.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-05 18:39:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1700,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1700.00","database_verification_match":true,"timestamp":"2026-04-05 18:39:27"} 
[2026-04-05 18:39:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:39:57.473Z","date_to":"2026-04-05T18:39:57.473Z","per_page":"100"} 
[2026-04-05 18:39:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":27,"unpaid_count":3,"unique_order_numbers":30} 
[2026-04-05 18:39:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:39:57.473Z","date_to":"2026-04-05T18:39:57.473Z","per_page":"100"} 
[2026-04-05 18:39:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":27,"unpaid_count":3,"unique_order_numbers":30} 
[2026-04-05 18:39:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:39:57.496Z","date_to":"2026-04-05T18:39:57.496Z","per_page":"100"} 
[2026-04-05 18:39:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":27,"unpaid_count":3,"unique_order_numbers":30} 
[2026-04-05 18:43:15] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6924,"order_number":"AZS-050426-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":11900,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:43:15"} 
[2026-04-05 18:43:15] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6924,"order_number":"AZS-050426-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":11900,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 18:43:15"} 
[2026-04-05 18:43:15] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6924,"order_number":"AZS-050426-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":11900,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:43:15"} 
[2026-04-05 18:43:15] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6924,"order_number":"AZS-050426-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":11900,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 18:43:15"} 
[2026-04-05 18:43:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6924,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":2,"price":699,"discount_percent":0,"notes":null,"id":33112},{"menu_item_id":77,"quantity":1,"price":8799,"discount_percent":0,"notes":null,"id":33113},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33114},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33115},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33116},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":33117}],"validated_items":[{"id":33112,"menu_item_id":85,"quantity":2,"price":699,"discount_percent":0,"notes":null},{"id":33113,"menu_item_id":77,"quantity":1,"price":8799,"discount_percent":0,"notes":null},{"id":33114,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33115,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33116,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33117,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-05 18:43:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6924,"items_count":6} 
[2026-04-05 18:43:15] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33112,"menu_item_id":85,"quantity":2},{"id":33113,"menu_item_id":77,"quantity":1},{"id":33114,"menu_item_id":5,"quantity":1},{"id":33115,"menu_item_id":61,"quantity":1},{"id":33116,"menu_item_id":56,"quantity":1},{"id":33117,"menu_item_id":3,"quantity":2}]} 
[2026-04-05 18:43:15] local.INFO: PosOrderController::update - Item changes check {"order_id":6924,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["85|2|","77|1|","5|1|","61|1|","56|1|","3|2|"],"new_items_map_keys":["85|2|","77|1|","5|1|","61|1|","56|1|","3|2|"]} 
[2026-04-05 18:43:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6924,"order_number":"AZS-050426-019"} 
[2026-04-05 18:43:15] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6924,"order_number":"AZS-050426-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":11900,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-05 18:43:15","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 18:43:15"} 
[2026-04-05 18:43:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6924,"order_number":"AZS-050426-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 18:43:15"} 
[2026-04-05 18:43:15] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6924,"order_number":"AZS-050426-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"11900.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-05 18:43:15","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":11900,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"11900.00","database_verification_match":true,"timestamp":"2026-04-05 18:43:15"} 
[2026-04-05 18:43:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:43:25.071Z","date_to":"2026-04-05T18:43:25.071Z","per_page":"100"} 
[2026-04-05 18:43:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":2,"unique_order_numbers":30} 
[2026-04-05 18:43:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:43:25.088Z","date_to":"2026-04-05T18:43:25.088Z","per_page":"100"} 
[2026-04-05 18:43:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":2,"unique_order_numbers":30} 
[2026-04-05 18:43:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:43:25.071Z","date_to":"2026-04-05T18:43:25.071Z","per_page":"100"} 
[2026-04-05 18:43:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":2,"unique_order_numbers":30} 
[2026-04-05 18:49:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:49:29.239Z","date_to":"2026-04-05T18:49:29.239Z","per_page":"100"} 
[2026-04-05 18:49:27] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:49:29.228Z","date_to":"2026-04-05T18:49:29.228Z","per_page":"100"} 
[2026-04-05 18:49:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":2,"unique_order_numbers":30} 
[2026-04-05 18:49:27] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":2,"unique_order_numbers":30} 
[2026-04-05 18:49:28] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:49:29.228Z","date_to":"2026-04-05T18:49:29.228Z","per_page":"100"} 
[2026-04-05 18:49:28] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":2,"unique_order_numbers":30} 
[2026-04-05 18:51:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:51:11.863Z","date_to":"2026-04-05T18:51:11.863Z","per_page":"100"} 
[2026-04-05 18:51:09] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:51:11.852Z","date_to":"2026-04-05T18:51:11.852Z","per_page":"100"} 
[2026-04-05 18:51:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":2,"unique_order_numbers":30} 
[2026-04-05 18:51:09] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":2,"unique_order_numbers":30} 
[2026-04-05 18:51:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:51:11.852Z","date_to":"2026-04-05T18:51:11.852Z","per_page":"100"} 
[2026-04-05 18:51:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":2,"unique_order_numbers":30} 
[2026-04-05 18:51:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:51:38.021Z","date_to":"2026-04-05T18:51:38.021Z","per_page":"100"} 
[2026-04-05 18:51:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:51:38.004Z","date_to":"2026-04-05T18:51:38.004Z","per_page":"100"} 
[2026-04-05 18:51:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":2,"unique_order_numbers":30} 
[2026-04-05 18:51:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":2,"unique_order_numbers":30} 
[2026-04-05 18:51:37] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T06:51:38.004Z","date_to":"2026-04-05T18:51:38.004Z","per_page":"100"} 
[2026-04-05 18:51:37] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":2,"unique_order_numbers":30} 
[2026-04-05 19:18:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T07:18:14.008Z","date_to":"2026-04-05T19:18:14.008Z","per_page":"100"} 
[2026-04-05 19:18:12] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T07:18:14.020Z","date_to":"2026-04-05T19:18:14.020Z","per_page":"100"} 
[2026-04-05 19:18:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":2,"unique_order_numbers":30} 
[2026-04-05 19:18:12] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":2,"unique_order_numbers":30} 
[2026-04-05 19:18:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T07:18:14.008Z","date_to":"2026-04-05T19:18:14.008Z","per_page":"100"} 
[2026-04-05 19:18:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":30,"count":30,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":2,"unique_order_numbers":30} 
[2026-04-05 19:24:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T07:24:43.078Z","date_to":"2026-04-05T19:24:43.078Z","per_page":"100"} 
[2026-04-05 19:24:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T07:24:43.064Z","date_to":"2026-04-05T19:24:43.064Z","per_page":"100"} 
[2026-04-05 19:24:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":31,"count":31,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-031","AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":3,"unique_order_numbers":31} 
[2026-04-05 19:24:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":31,"count":31,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-031","AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":3,"unique_order_numbers":31} 
[2026-04-05 19:24:43] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T07:24:43.064Z","date_to":"2026-04-05T19:24:43.064Z","per_page":"100"} 
[2026-04-05 19:24:43] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":31,"count":31,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-031","AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":28,"unpaid_count":3,"unique_order_numbers":31} 
[2026-04-05 19:33:04] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6926,"order_number":"AZS-050426-032","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":100,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 19:33:04"} 
[2026-04-05 19:33:04] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6926,"order_number":"AZS-050426-032","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 19:33:04"} 
[2026-04-05 19:33:04] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6926,"order_number":"AZS-050426-032","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":100,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 19:33:04"} 
[2026-04-05 19:33:04] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6926,"order_number":"AZS-050426-032","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":100,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 19:33:04"} 
[2026-04-05 19:33:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6926,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33119}],"validated_items":[{"id":33119,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-04-05 19:33:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6926,"items_count":1} 
[2026-04-05 19:33:04] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33119,"menu_item_id":396,"quantity":1}]} 
[2026-04-05 19:33:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6926,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["396|1|"],"new_items_map_keys":["396|1|"]} 
[2026-04-05 19:33:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6926,"order_number":"AZS-050426-032"} 
[2026-04-05 19:33:04] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6926,"order_number":"AZS-050426-032","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":100,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-05 19:33:04","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 19:33:04"} 
[2026-04-05 19:33:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6926,"order_number":"AZS-050426-032","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 19:33:04"} 
[2026-04-05 19:33:04] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6926,"order_number":"AZS-050426-032","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"100.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-05 19:33:04","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"100.00","database_verification_match":true,"timestamp":"2026-04-05 19:33:04"} 
[2026-04-05 19:45:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6925,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null,"id":33118}],"validated_items":[{"id":33118,"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 19:45:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6925,"items_count":1} 
[2026-04-05 19:45:35] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33118,"menu_item_id":385,"quantity":1}]} 
[2026-04-05 19:45:35] local.INFO: PosOrderController::update - Item changes check {"order_id":6925,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-04-05 19:45:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6925,"order_number":"AZS-050426-031"} 
[2026-04-05 19:45:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6925,"order_number":"AZS-050426-031","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-05 19:45:35"} 
[2026-04-05 19:50:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":1,"order_id":6913,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 19:50:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6913,"items_count":1} 
[2026-04-05 19:50:33] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":1,"items_to_remove":[33063],"items":[{"id":null,"menu_item_id":385,"quantity":1}]} 
[2026-04-05 19:50:33] local.INFO: PosOrderController::update - Item changes check {"order_id":6913,"has_item_changes":true,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["385|1|"]} 
[2026-04-05 19:50:33] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6913,"order_number":"AZS-050426-029"} 
[2026-04-05 19:50:33] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-029","replaced_order_id":6913} 
[2026-04-05 19:50:33] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6927,"items_count":1,"items":[{"menu_item_id":385,"quantity":1,"price":"2899.00"}]} 
[2026-04-05 19:50:33] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6927,"item_index":0,"item_data":{"menu_item_id":385,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 02","quantity":1,"price":"2899.00","discount_percent":0.0,"discount_amount":0.0,"total":2899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6927}} 
[2026-04-05 19:50:33] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6927,"item_index":0,"menu_item_id":385} 
[2026-04-05 19:50:33] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6913,"new_order_id":6927,"order_number":"AZS-050426-029"} 
[2026-04-05 20:02:50] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6916,"order_number":"AZS-050426-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1852,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 20:02:50"} 
[2026-04-05 20:02:50] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6916,"order_number":"AZS-050426-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1852,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 20:02:50"} 
[2026-04-05 20:02:50] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6916,"order_number":"AZS-050426-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1852,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 20:02:50"} 
[2026-04-05 20:02:50] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6916,"order_number":"AZS-050426-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1852,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 20:02:50"} 
[2026-04-05 20:02:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6916,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null,"id":33080},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":33081},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":33082},{"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null,"id":33083}],"validated_items":[{"id":33080,"menu_item_id":136,"quantity":1,"price":899,"discount_percent":0,"notes":null},{"id":33081,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":33082,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":33083,"menu_item_id":402,"quantity":1,"price":325,"discount_percent":0,"notes":null}]} 
[2026-04-05 20:02:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6916,"items_count":4} 
[2026-04-05 20:02:50] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33080,"menu_item_id":136,"quantity":1},{"id":33081,"menu_item_id":13,"quantity":2},{"id":33082,"menu_item_id":2,"quantity":1},{"id":33083,"menu_item_id":402,"quantity":1}]} 
[2026-04-05 20:02:50] local.INFO: PosOrderController::update - Item changes check {"order_id":6916,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["136|1|","13|2|","2|1|","402|1|"],"new_items_map_keys":["136|1|","13|2|","2|1|","402|1|"]} 
[2026-04-05 20:02:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6916,"order_number":"AZS-050426-016"} 
[2026-04-05 20:02:50] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6916,"order_number":"AZS-050426-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1852,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-05 20:02:50","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 20:02:50"} 
[2026-04-05 20:02:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6916,"order_number":"AZS-050426-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 20:02:50"} 
[2026-04-05 20:02:50] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6916,"order_number":"AZS-050426-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1852.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-05 20:02:50","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1852,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1852.00","database_verification_match":true,"timestamp":"2026-04-05 20:02:50"} 
[2026-04-05 20:02:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T08:02:56.882Z","date_to":"2026-04-05T20:02:56.882Z","per_page":"100"} 
[2026-04-05 20:02:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-032","AZS-050426-031","AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":2,"unique_order_numbers":32} 
[2026-04-05 20:02:54] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T08:02:56.899Z","date_to":"2026-04-05T20:02:56.899Z","per_page":"100"} 
[2026-04-05 20:02:54] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-032","AZS-050426-031","AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":2,"unique_order_numbers":32} 
[2026-04-05 20:02:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T08:02:56.882Z","date_to":"2026-04-05T20:02:56.882Z","per_page":"100"} 
[2026-04-05 20:02:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-032","AZS-050426-031","AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":30,"unpaid_count":2,"unique_order_numbers":32} 
[2026-04-05 20:06:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6927,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null,"id":33120}],"validated_items":[{"id":33120,"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 20:06:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6927,"items_count":1} 
[2026-04-05 20:06:34] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33120,"menu_item_id":385,"quantity":1}]} 
[2026-04-05 20:06:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6927,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-04-05 20:06:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6927,"order_number":"AZS-050426-029"} 
[2026-04-05 20:06:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6927,"order_number":"AZS-050426-029","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-05 20:06:34"} 
[2026-04-05 20:06:59] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6927,"order_number":"AZS-050426-029","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2899,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 20:06:59"} 
[2026-04-05 20:06:59] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6927,"order_number":"AZS-050426-029","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2899,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 20:06:59"} 
[2026-04-05 20:06:59] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6927,"order_number":"AZS-050426-029","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2899,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 20:06:59"} 
[2026-04-05 20:06:59] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6927,"order_number":"AZS-050426-029","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2899,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 20:06:59"} 
[2026-04-05 20:06:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6927,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":33120}],"validated_items":[{"id":33120,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null}]} 
[2026-04-05 20:06:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6927,"items_count":1} 
[2026-04-05 20:06:59] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33120,"menu_item_id":385,"quantity":1}]} 
[2026-04-05 20:06:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6927,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-04-05 20:06:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6927,"order_number":"AZS-050426-029"} 
[2026-04-05 20:06:59] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6927,"order_number":"AZS-050426-029","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2899,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-05 20:06:59","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 20:06:59"} 
[2026-04-05 20:06:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6927,"order_number":"AZS-050426-029","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 20:06:59"} 
[2026-04-05 20:06:59] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6927,"order_number":"AZS-050426-029","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2899.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-05 20:06:59","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2899,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2899.00","database_verification_match":true,"timestamp":"2026-04-05 20:06:59"} 
[2026-04-05 20:07:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T08:07:04.954Z","date_to":"2026-04-05T20:07:04.954Z","per_page":"100"} 
[2026-04-05 20:07:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T08:07:04.968Z","date_to":"2026-04-05T20:07:04.968Z","per_page":"100"} 
[2026-04-05 20:07:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-032","AZS-050426-031","AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":31,"unpaid_count":1,"unique_order_numbers":32} 
[2026-04-05 20:07:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-032","AZS-050426-031","AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":31,"unpaid_count":1,"unique_order_numbers":32} 
[2026-04-05 20:07:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T08:07:04.954Z","date_to":"2026-04-05T20:07:04.954Z","per_page":"100"} 
[2026-04-05 20:07:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-032","AZS-050426-031","AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":31,"unpaid_count":1,"unique_order_numbers":32} 
[2026-04-05 20:07:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T08:07:34.925Z","date_to":"2026-04-05T20:07:34.925Z","per_page":"100"} 
[2026-04-05 20:07:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-032","AZS-050426-031","AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":31,"unpaid_count":1,"unique_order_numbers":32} 
[2026-04-05 20:07:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T08:07:34.934Z","date_to":"2026-04-05T20:07:34.934Z","per_page":"100"} 
[2026-04-05 20:07:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-032","AZS-050426-031","AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":31,"unpaid_count":1,"unique_order_numbers":32} 
[2026-04-05 20:07:36] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T08:07:34.925Z","date_to":"2026-04-05T20:07:34.925Z","per_page":"100"} 
[2026-04-05 20:07:36] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":32,"count":32,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-032","AZS-050426-031","AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":31,"unpaid_count":1,"unique_order_numbers":32} 
[2026-04-05 20:14:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6925,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":33118}],"validated_items":[{"id":33118,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null}]} 
[2026-04-05 20:14:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6925,"items_count":1} 
[2026-04-05 20:14:10] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33118,"menu_item_id":385,"quantity":1}]} 
[2026-04-05 20:14:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6925,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|"]} 
[2026-04-05 20:14:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6925,"order_number":"AZS-050426-031"} 
[2026-04-05 20:14:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6925,"order_number":"AZS-050426-031","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 20:14:10"} 
[2026-04-05 20:14:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6925,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null,"id":33118},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33118,"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-05 20:14:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6925,"items_count":2} 
[2026-04-05 20:14:34] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33118,"menu_item_id":385,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 20:14:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6925,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["385|1|"],"new_items_map_keys":["385|1|","5|1|"]} 
[2026-04-05 20:14:34] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6925,"order_number":"AZS-050426-031"} 
[2026-04-05 20:14:34] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-050426-031","replaced_order_id":6925} 
[2026-04-05 20:14:34] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6928,"items_count":2,"items":[{"menu_item_id":385,"quantity":1,"price":"2899.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-05 20:14:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6928,"item_index":0,"item_data":{"menu_item_id":385,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 02","quantity":1,"price":"2899.00","discount_percent":0.0,"discount_amount":0.0,"total":2899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6928}} 
[2026-04-05 20:14:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6928,"item_index":0,"menu_item_id":385} 
[2026-04-05 20:14:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6928,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6928}} 
[2026-04-05 20:14:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6928,"item_index":1,"menu_item_id":5} 
[2026-04-05 20:14:34] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6925,"new_order_id":6928,"order_number":"AZS-050426-031"} 
[2026-04-05 20:15:02] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-04-05 20:15:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6928,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":33121},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33122}],"validated_items":[{"id":33121,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null},{"id":33122,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-05 20:15:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6928,"items_count":2} 
[2026-04-05 20:15:18] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33121,"menu_item_id":385,"quantity":1},{"id":33122,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 20:15:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6928,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["385|1|","5|1|"],"new_items_map_keys":["385|1|","5|1|"]} 
[2026-04-05 20:15:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6928,"order_number":"AZS-050426-031"} 
[2026-04-05 20:15:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6928,"order_number":"AZS-050426-031","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 20:15:18"} 
[2026-04-05 20:22:04] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6928,"order_number":"AZS-050426-031","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3222,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 20:22:04"} 
[2026-04-05 20:22:04] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6928,"order_number":"AZS-050426-031","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3222,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 20:22:04"} 
[2026-04-05 20:22:04] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6928,"order_number":"AZS-050426-031","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3222,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 20:22:04"} 
[2026-04-05 20:22:04] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6928,"order_number":"AZS-050426-031","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3222,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 20:22:04"} 
[2026-04-05 20:22:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6928,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":33121},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33122}],"validated_items":[{"id":33121,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null},{"id":33122,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-05 20:22:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6928,"items_count":2} 
[2026-04-05 20:22:04] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33121,"menu_item_id":385,"quantity":1},{"id":33122,"menu_item_id":5,"quantity":1}]} 
[2026-04-05 20:22:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6928,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["385|1|","5|1|"],"new_items_map_keys":["385|1|","5|1|"]} 
[2026-04-05 20:22:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6928,"order_number":"AZS-050426-031"} 
[2026-04-05 20:22:04] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6928,"order_number":"AZS-050426-031","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3222,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-05 20:22:04","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 20:22:04"} 
[2026-04-05 20:22:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6928,"order_number":"AZS-050426-031","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 20:22:04"} 
[2026-04-05 20:22:04] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6928,"order_number":"AZS-050426-031","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3222.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-05 20:22:04","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3222,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3222.00","database_verification_match":true,"timestamp":"2026-04-05 20:22:04"} 
[2026-04-05 20:29:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6929,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":7,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":33123},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":33124}],"validated_items":[{"id":33123,"menu_item_id":7,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":33124,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-05 20:29:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6929,"items_count":2} 
[2026-04-05 20:29:34] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33123,"menu_item_id":7,"quantity":1},{"id":33124,"menu_item_id":6,"quantity":3}]} 
[2026-04-05 20:29:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6929,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["7|1|","6|3|"],"new_items_map_keys":["7|1|","6|3|"]} 
[2026-04-05 20:29:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6929,"order_number":"AZS-050426-033"} 
[2026-04-05 20:29:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6929,"order_number":"AZS-050426-033","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-05 20:29:34"} 
[2026-04-05 20:29:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T08:29:57.356Z","date_to":"2026-04-05T20:29:57.356Z","per_page":"100"} 
[2026-04-05 20:29:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T08:29:57.343Z","date_to":"2026-04-05T20:29:57.343Z","per_page":"100"} 
[2026-04-05 20:29:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":33,"count":33,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-033","AZS-050426-032","AZS-050426-031","AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":32,"unpaid_count":1,"unique_order_numbers":33} 
[2026-04-05 20:29:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":33,"count":33,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-033","AZS-050426-032","AZS-050426-031","AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":32,"unpaid_count":1,"unique_order_numbers":33} 
[2026-04-05 20:29:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T08:29:57.343Z","date_to":"2026-04-05T20:29:57.343Z","per_page":"100"} 
[2026-04-05 20:29:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":33,"count":33,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-033","AZS-050426-032","AZS-050426-031","AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":32,"unpaid_count":1,"unique_order_numbers":33} 
[2026-04-05 20:43:25] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6929,"order_number":"AZS-050426-033","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":888,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 20:43:25"} 
[2026-04-05 20:43:25] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6929,"order_number":"AZS-050426-033","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":888,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 20:43:25"} 
[2026-04-05 20:43:25] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6929,"order_number":"AZS-050426-033","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":888,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 20:43:25"} 
[2026-04-05 20:43:25] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6929,"order_number":"AZS-050426-033","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":888,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 20:43:25"} 
[2026-04-05 20:43:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6929,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":7,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":33123},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":33124}],"validated_items":[{"id":33123,"menu_item_id":7,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":33124,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-05 20:43:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6929,"items_count":2} 
[2026-04-05 20:43:25] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33123,"menu_item_id":7,"quantity":1},{"id":33124,"menu_item_id":6,"quantity":3}]} 
[2026-04-05 20:43:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6929,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["7|1|","6|3|"],"new_items_map_keys":["7|1|","6|3|"]} 
[2026-04-05 20:43:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6929,"order_number":"AZS-050426-033"} 
[2026-04-05 20:43:25] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6929,"order_number":"AZS-050426-033","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":888,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-05 20:43:25","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 20:43:25"} 
[2026-04-05 20:43:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6929,"order_number":"AZS-050426-033","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 20:43:25"} 
[2026-04-05 20:43:25] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6929,"order_number":"AZS-050426-033","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"888.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-05 20:43:25","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":888,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"888.00","database_verification_match":true,"timestamp":"2026-04-05 20:43:25"} 
[2026-04-05 20:43:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T08:43:32.275Z","date_to":"2026-04-05T20:43:32.275Z","per_page":"100"} 
[2026-04-05 20:43:30] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T08:43:32.253Z","date_to":"2026-04-05T20:43:32.253Z","per_page":"100"} 
[2026-04-05 20:43:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":33,"count":33,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-033","AZS-050426-032","AZS-050426-031","AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":33,"unpaid_count":0,"unique_order_numbers":33} 
[2026-04-05 20:43:30] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":33,"count":33,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-033","AZS-050426-032","AZS-050426-031","AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":33,"unpaid_count":0,"unique_order_numbers":33} 
[2026-04-05 20:43:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T08:43:32.253Z","date_to":"2026-04-05T20:43:32.253Z","per_page":"100"} 
[2026-04-05 20:43:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":33,"count":33,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-033","AZS-050426-032","AZS-050426-031","AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":33,"unpaid_count":0,"unique_order_numbers":33} 
[2026-04-05 20:48:40] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-04-05 20:50:11] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6930,"order_number":"AZS-050426-034","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":199,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 20:50:11"} 
[2026-04-05 20:50:11] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6930,"order_number":"AZS-050426-034","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":199,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-05 20:50:11"} 
[2026-04-05 20:50:11] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6930,"order_number":"AZS-050426-034","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":199,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 20:50:11"} 
[2026-04-05 20:50:11] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6930,"order_number":"AZS-050426-034","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":199,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-05 20:50:11"} 
[2026-04-05 20:50:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6930,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33125}],"validated_items":[{"id":33125,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-05 20:50:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6930,"items_count":1} 
[2026-04-05 20:50:11] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33125,"menu_item_id":6,"quantity":1}]} 
[2026-04-05 20:50:11] local.INFO: PosOrderController::update - Item changes check {"order_id":6930,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-04-05 20:50:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6930,"order_number":"AZS-050426-034"} 
[2026-04-05 20:50:11] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6930,"order_number":"AZS-050426-034","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":199,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-05 20:50:11","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-05 20:50:11"} 
[2026-04-05 20:50:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6930,"order_number":"AZS-050426-034","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-05 20:50:11"} 
[2026-04-05 20:50:11] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6930,"order_number":"AZS-050426-034","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"199.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-05 20:50:11","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":199,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"199.00","database_verification_match":true,"timestamp":"2026-04-05 20:50:11"} 
[2026-04-05 20:50:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T08:50:25.635Z","date_to":"2026-04-05T20:50:25.635Z","per_page":"100"} 
[2026-04-05 20:50:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T08:50:25.649Z","date_to":"2026-04-05T20:50:25.649Z","per_page":"100"} 
[2026-04-05 20:50:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-034","AZS-050426-033","AZS-050426-032","AZS-050426-031","AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":34,"unpaid_count":0,"unique_order_numbers":34} 
[2026-04-05 20:50:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-034","AZS-050426-033","AZS-050426-032","AZS-050426-031","AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":34,"unpaid_count":0,"unique_order_numbers":34} 
[2026-04-05 20:50:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-05T08:50:25.635Z","date_to":"2026-04-05T20:50:25.635Z","per_page":"100"} 
[2026-04-05 20:50:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":34,"count":34,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-050426-034","AZS-050426-033","AZS-050426-032","AZS-050426-031","AZS-050426-030","AZS-050426-029","AZS-050426-028","AZS-050426-027","AZS-050426-026","AZS-050426-025","AZS-050426-024","AZS-050426-023","AZS-050426-022","AZS-050426-021","AZS-050426-020","AZS-050426-019","AZS-050426-018","AZS-050426-017","AZS-050426-016","AZS-050426-015","AZS-050426-014","AZS-050426-013","AZS-050426-012","AZS-050426-011","AZS-050426-010","AZS-050426-009","AZS-050426-008","AZS-050426-007","AZS-050426-006","AZS-050426-005","AZS-050426-004","AZS-050426-003","AZS-050426-002","AZS-050426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":34,"unpaid_count":0,"unique_order_numbers":34} 
[2026-04-06 13:15:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T01:15:06.874Z","date_to":"2026-04-06T13:15:06.874Z","per_page":"100"} 
[2026-04-06 13:15:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-04-06 13:15:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T01:15:06.874Z","date_to":"2026-04-06T13:15:06.874Z","per_page":"100"} 
[2026-04-06 13:15:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-04-06 13:50:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T01:50:05.163Z","date_to":"2026-04-06T13:50:05.163Z","per_page":"100"} 
[2026-04-06 13:50:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T01:50:05.143Z","date_to":"2026-04-06T13:50:05.143Z","per_page":"100"} 
[2026-04-06 13:50:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-04-06 13:50:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-04-06 13:50:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T01:50:05.143Z","date_to":"2026-04-06T13:50:05.143Z","per_page":"100"} 
[2026-04-06 13:50:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-04-06 14:17:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T02:17:22.916Z","date_to":"2026-04-06T14:17:22.916Z","per_page":"100"} 
[2026-04-06 14:17:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T02:17:22.951Z","date_to":"2026-04-06T14:17:22.951Z","per_page":"100"} 
[2026-04-06 14:17:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-04-06 14:17:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-04-06 14:17:19] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T02:17:22.916Z","date_to":"2026-04-06T14:17:22.916Z","per_page":"100"} 
[2026-04-06 14:17:19] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":1,"count":1,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-001"],"order_statuses":["pending"],"deleted_count":0,"paid_count":0,"unpaid_count":1,"unique_order_numbers":1} 
[2026-04-06 14:47:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6932,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":33134},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":33135},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":33136},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33137},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33138}],"validated_items":[{"id":33134,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":33135,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":33136,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":33137,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33138,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 14:47:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6932,"items_count":5} 
[2026-04-06 14:47:58] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33134,"menu_item_id":78,"quantity":1},{"id":33135,"menu_item_id":95,"quantity":1},{"id":33136,"menu_item_id":61,"quantity":3},{"id":33137,"menu_item_id":56,"quantity":1},{"id":33138,"menu_item_id":5,"quantity":1}]} 
[2026-04-06 14:47:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6932,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["78|1|","95|1|","61|2|","56|1|","5|1|"],"new_items_map_keys":["78|1|","95|1|","61|3|","56|1|","5|1|"]} 
[2026-04-06 14:47:58] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6932,"order_number":"AZS-060426-002"} 
[2026-04-06 14:47:58] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-002","replaced_order_id":6932} 
[2026-04-06 14:47:58] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6934,"items_count":5,"items":[{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-06 14:47:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6934,"item_index":0,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6934}} 
[2026-04-06 14:47:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6934,"item_index":0,"menu_item_id":78} 
[2026-04-06 14:47:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6934,"item_index":1,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6934}} 
[2026-04-06 14:47:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6934,"item_index":1,"menu_item_id":95} 
[2026-04-06 14:47:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6934,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6934}} 
[2026-04-06 14:47:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6934,"item_index":2,"menu_item_id":61} 
[2026-04-06 14:47:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6934,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6934}} 
[2026-04-06 14:47:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6934,"item_index":3,"menu_item_id":56} 
[2026-04-06 14:47:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6934,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6934}} 
[2026-04-06 14:47:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6934,"item_index":4,"menu_item_id":5} 
[2026-04-06 14:47:58] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6932,"new_order_id":6934,"order_number":"AZS-060426-002"} 
[2026-04-06 14:48:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6934,"item_index":0,"item_id":33134} 
[2026-04-06 14:48:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6934,"item_index":1,"item_id":33135} 
[2026-04-06 14:48:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6934,"item_index":2,"item_id":33136} 
[2026-04-06 14:48:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6934,"item_index":3,"item_id":33137} 
[2026-04-06 14:48:05] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6934,"item_index":4,"item_id":33138} 
[2026-04-06 14:48:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6934,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":33134},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":33135},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":33136},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33137},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33138}],"validated_items":[{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 14:48:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6934,"items_count":5} 
[2026-04-06 14:48:05] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[33145,33146,33147,33148,33149],"items":[{"id":null,"menu_item_id":78,"quantity":1},{"id":null,"menu_item_id":95,"quantity":1},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-06 14:48:05] local.INFO: PosOrderController::update - Item changes check {"order_id":6934,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["78|1|","95|1|","61|3|","56|1|","5|1|"],"new_items_map_keys":["78|1|","95|1|","61|3|","56|1|","5|1|"]} 
[2026-04-06 14:48:05] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6934,"order_number":"AZS-060426-002"} 
[2026-04-06 14:48:05] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6934,"order_number":"AZS-060426-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-06 14:48:05"} 
[2026-04-06 14:48:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6933,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":33139},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":33140},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":33141},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":33142},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33143},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33144}],"validated_items":[{"id":33139,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":33140,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":33141,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":33142,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":33143,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33144,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 14:48:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6933,"items_count":6} 
[2026-04-06 14:48:17] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33139,"menu_item_id":114,"quantity":1},{"id":33140,"menu_item_id":396,"quantity":1},{"id":33141,"menu_item_id":50,"quantity":2},{"id":33142,"menu_item_id":61,"quantity":3},{"id":33143,"menu_item_id":56,"quantity":1},{"id":33144,"menu_item_id":5,"quantity":1}]} 
[2026-04-06 14:48:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6933,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","396|1|","50|2|","61|2|","56|1|","5|1|"],"new_items_map_keys":["114|1|","396|1|","50|2|","61|3|","56|1|","5|1|"]} 
[2026-04-06 14:48:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6933,"order_number":"AZS-060426-003"} 
[2026-04-06 14:48:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-003","replaced_order_id":6933} 
[2026-04-06 14:48:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6935,"items_count":6,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-06 14:48:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6935,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6935}} 
[2026-04-06 14:48:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6935,"item_index":0,"menu_item_id":114} 
[2026-04-06 14:48:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6935,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6935}} 
[2026-04-06 14:48:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6935,"item_index":1,"menu_item_id":396} 
[2026-04-06 14:48:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6935,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6935}} 
[2026-04-06 14:48:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6935,"item_index":2,"menu_item_id":50} 
[2026-04-06 14:48:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6935,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6935}} 
[2026-04-06 14:48:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6935,"item_index":3,"menu_item_id":61} 
[2026-04-06 14:48:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6935,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6935}} 
[2026-04-06 14:48:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6935,"item_index":4,"menu_item_id":56} 
[2026-04-06 14:48:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6935,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6935}} 
[2026-04-06 14:48:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6935,"item_index":5,"menu_item_id":5} 
[2026-04-06 14:48:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6933,"new_order_id":6935,"order_number":"AZS-060426-003"} 
[2026-04-06 14:48:20] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6935,"item_index":0,"item_id":33139} 
[2026-04-06 14:48:20] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6935,"item_index":1,"item_id":33140} 
[2026-04-06 14:48:20] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6935,"item_index":2,"item_id":33141} 
[2026-04-06 14:48:20] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6935,"item_index":3,"item_id":33142} 
[2026-04-06 14:48:20] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6935,"item_index":4,"item_id":33143} 
[2026-04-06 14:48:20] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6935,"item_index":5,"item_id":33144} 
[2026-04-06 14:48:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":6935,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":33139},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":33140},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":33141},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":33142},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33143},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33144}],"validated_items":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 14:48:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6935,"items_count":6} 
[2026-04-06 14:48:20] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[33150,33151,33152,33153,33154,33155],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":50,"quantity":2},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-06 14:48:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6935,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","396|1|","50|2|","61|3|","56|1|","5|1|"],"new_items_map_keys":["114|1|","396|1|","50|2|","61|3|","56|1|","5|1|"]} 
[2026-04-06 14:48:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6935,"order_number":"AZS-060426-003"} 
[2026-04-06 14:48:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6935,"order_number":"AZS-060426-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-06 14:48:20"} 
[2026-04-06 14:49:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6934,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":33145},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":33146},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":33147},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33148},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33149},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33145,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":33146,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":33147,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":33148,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33149,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 14:49:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6934,"items_count":6} 
[2026-04-06 14:49:20] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33145,"menu_item_id":78,"quantity":1},{"id":33146,"menu_item_id":95,"quantity":1},{"id":33147,"menu_item_id":61,"quantity":3},{"id":33148,"menu_item_id":56,"quantity":1},{"id":33149,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1}]} 
[2026-04-06 14:49:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6934,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["78|1|","95|1|","61|3|","56|1|","5|1|"],"new_items_map_keys":["78|1|","95|1|","61|3|","56|1|","5|1|","403|1|"]} 
[2026-04-06 14:49:20] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6934,"order_number":"AZS-060426-002"} 
[2026-04-06 14:49:20] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-002","replaced_order_id":6934} 
[2026-04-06 14:49:20] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6936,"items_count":6,"items":[{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"}]} 
[2026-04-06 14:49:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6936,"item_index":0,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6936}} 
[2026-04-06 14:49:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6936,"item_index":0,"menu_item_id":78} 
[2026-04-06 14:49:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6936,"item_index":1,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6936}} 
[2026-04-06 14:49:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6936,"item_index":1,"menu_item_id":95} 
[2026-04-06 14:49:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6936,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6936}} 
[2026-04-06 14:49:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6936,"item_index":2,"menu_item_id":61} 
[2026-04-06 14:49:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6936,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6936}} 
[2026-04-06 14:49:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6936,"item_index":3,"menu_item_id":56} 
[2026-04-06 14:49:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6936,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6936}} 
[2026-04-06 14:49:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6936,"item_index":4,"menu_item_id":5} 
[2026-04-06 14:49:20] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6936,"item_index":5,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6936}} 
[2026-04-06 14:49:20] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6936,"item_index":5,"menu_item_id":403} 
[2026-04-06 14:49:20] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6934,"new_order_id":6936,"order_number":"AZS-060426-002"} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":6931,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":107,"quantity":1,"discount_percent":0,"notes":null,"id":33126},{"menu_item_id":397,"quantity":250,"discount_percent":0,"notes":null,"id":33127},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":33128},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33129},{"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null,"id":33130},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null,"id":33131},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":33132},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33133},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33126,"menu_item_id":107,"quantity":1,"discount_percent":0,"notes":null},{"id":33127,"menu_item_id":397,"quantity":250,"discount_percent":0,"notes":null},{"id":33128,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":33129,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33130,"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null},{"id":33131,"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"id":33132,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":33133,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6931,"items_count":11} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33126,"menu_item_id":107,"quantity":1},{"id":33127,"menu_item_id":397,"quantity":250},{"id":33128,"menu_item_id":106,"quantity":1},{"id":33129,"menu_item_id":56,"quantity":1},{"id":33130,"menu_item_id":60,"quantity":1},{"id":33131,"menu_item_id":51,"quantity":2},{"id":33132,"menu_item_id":396,"quantity":1},{"id":33133,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":2},{"id":null,"menu_item_id":9,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Item changes check {"order_id":6931,"has_item_changes":true,"old_items_count":8,"new_items_count":11,"old_items_map_keys":["107|1|","397|250|","106|1|","56|1|","60|1|","51|2|","396|1|","5|1|"],"new_items_map_keys":["107|1|","397|250|","106|1|","56|1|","60|1|","51|2|","396|1|","5|1|","13|2|","9|3|","2|1|"]} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6931,"order_number":"AZS-060426-001"} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-001","replaced_order_id":6931} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6938,"items_count":11,"items":[{"menu_item_id":107,"quantity":1,"price":"2199.00"},{"menu_item_id":397,"quantity":250,"price":"4.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":60,"quantity":1,"price":"199.00"},{"menu_item_id":51,"quantity":2,"price":"199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":9,"quantity":3,"price":"229.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6938,"item_index":0,"item_data":{"menu_item_id":107,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Sulemani - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6938}} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6938,"item_index":0,"menu_item_id":107} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6938,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":250,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":1000.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6938}} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6938,"item_index":1,"menu_item_id":397} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6938,"item_index":2,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6938}} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6938,"item_index":2,"menu_item_id":106} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6938,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6938}} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6938,"item_index":3,"menu_item_id":56} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6938,"item_index":4,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6938}} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6938,"item_index":4,"menu_item_id":60} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6938,"item_index":5,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6938}} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6938,"item_index":5,"menu_item_id":51} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6938,"item_index":6,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6938}} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6938,"item_index":6,"menu_item_id":396} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6938,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6938}} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6938,"item_index":7,"menu_item_id":5} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6938,"item_index":8,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6938}} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6938,"item_index":8,"menu_item_id":13} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6938,"item_index":9,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":3,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":687.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6938}} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6938,"item_index":9,"menu_item_id":9} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6938,"item_index":10,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6938}} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6938,"item_index":10,"menu_item_id":2} 
[2026-04-06 14:59:30] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6931,"new_order_id":6938,"order_number":"AZS-060426-001"} 
[2026-04-06 15:12:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T03:12:25.039Z","date_to":"2026-04-06T15:12:25.039Z","per_page":"100"} 
[2026-04-06 15:12:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T03:12:25.023Z","date_to":"2026-04-06T15:12:25.023Z","per_page":"100"} 
[2026-04-06 15:12:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":4,"count":4,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["pending","pending","pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":4,"unique_order_numbers":4} 
[2026-04-06 15:12:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":4,"count":4,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["pending","pending","pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":4,"unique_order_numbers":4} 
[2026-04-06 15:12:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T03:12:25.023Z","date_to":"2026-04-06T15:12:25.023Z","per_page":"100"} 
[2026-04-06 15:12:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":4,"count":4,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["pending","pending","pending","pending"],"deleted_count":0,"paid_count":0,"unpaid_count":4,"unique_order_numbers":4} 
[2026-04-06 15:20:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6936,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":33156},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":33157},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":33158},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":33159},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33160},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":33161}],"validated_items":[{"id":33156,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":33157,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":33158,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":33159,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":33160,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33161,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 15:20:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6936,"items_count":6} 
[2026-04-06 15:20:23] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33156,"menu_item_id":78,"quantity":1},{"id":33157,"menu_item_id":95,"quantity":1},{"id":33158,"menu_item_id":61,"quantity":3},{"id":33159,"menu_item_id":56,"quantity":2},{"id":33160,"menu_item_id":5,"quantity":1},{"id":33161,"menu_item_id":403,"quantity":1}]} 
[2026-04-06 15:20:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6936,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["78|1|","95|1|","61|3|","56|1|","5|1|","403|1|"],"new_items_map_keys":["78|1|","95|1|","61|3|","56|2|","5|1|","403|1|"]} 
[2026-04-06 15:20:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6936,"order_number":"AZS-060426-002"} 
[2026-04-06 15:20:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-002","replaced_order_id":6936} 
[2026-04-06 15:20:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6939,"items_count":6,"items":[{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"}]} 
[2026-04-06 15:20:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6939,"item_index":0,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6939}} 
[2026-04-06 15:20:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6939,"item_index":0,"menu_item_id":78} 
[2026-04-06 15:20:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6939,"item_index":1,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6939}} 
[2026-04-06 15:20:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6939,"item_index":1,"menu_item_id":95} 
[2026-04-06 15:20:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6939,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6939}} 
[2026-04-06 15:20:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6939,"item_index":2,"menu_item_id":61} 
[2026-04-06 15:20:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6939,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6939}} 
[2026-04-06 15:20:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6939,"item_index":3,"menu_item_id":56} 
[2026-04-06 15:20:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6939,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6939}} 
[2026-04-06 15:20:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6939,"item_index":4,"menu_item_id":5} 
[2026-04-06 15:20:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6939,"item_index":5,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6939}} 
[2026-04-06 15:20:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6939,"item_index":5,"menu_item_id":403} 
[2026-04-06 15:20:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6936,"new_order_id":6939,"order_number":"AZS-060426-002"} 
[2026-04-06 15:21:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6939,"item_index":0,"item_id":33156} 
[2026-04-06 15:21:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6939,"item_index":1,"item_id":33157} 
[2026-04-06 15:21:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6939,"item_index":2,"item_id":33158} 
[2026-04-06 15:21:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6939,"item_index":3,"item_id":33159} 
[2026-04-06 15:21:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6939,"item_index":4,"item_id":33160} 
[2026-04-06 15:21:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6939,"item_index":5,"item_id":33161} 
[2026-04-06 15:21:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":6,"order_id":6939,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":33156},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":33157},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":33158},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":33159},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33160},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":33161},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-04-06 15:21:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6939,"items_count":7} 
[2026-04-06 15:21:52] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":6,"items_to_remove":[33180,33181,33182,33183,33184,33185],"items":[{"id":null,"menu_item_id":78,"quantity":1},{"id":null,"menu_item_id":95,"quantity":1},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-04-06 15:21:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6939,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["78|1|","95|1|","61|3|","56|2|","5|1|","403|1|"],"new_items_map_keys":["78|1|","95|1|","61|3|","56|2|","5|1|","403|1|","2|3|"]} 
[2026-04-06 15:21:52] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6939,"order_number":"AZS-060426-002"} 
[2026-04-06 15:21:52] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-002","replaced_order_id":6939} 
[2026-04-06 15:21:52] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6940,"items_count":7,"items":[{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"}]} 
[2026-04-06 15:21:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6940,"item_index":0,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6940}} 
[2026-04-06 15:21:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6940,"item_index":0,"menu_item_id":78} 
[2026-04-06 15:21:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6940,"item_index":1,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6940}} 
[2026-04-06 15:21:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6940,"item_index":1,"menu_item_id":95} 
[2026-04-06 15:21:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6940,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6940}} 
[2026-04-06 15:21:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6940,"item_index":2,"menu_item_id":61} 
[2026-04-06 15:21:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6940,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6940}} 
[2026-04-06 15:21:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6940,"item_index":3,"menu_item_id":56} 
[2026-04-06 15:21:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6940,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6940}} 
[2026-04-06 15:21:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6940,"item_index":4,"menu_item_id":5} 
[2026-04-06 15:21:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6940,"item_index":5,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6940}} 
[2026-04-06 15:21:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6940,"item_index":5,"menu_item_id":403} 
[2026-04-06 15:21:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6940,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6940}} 
[2026-04-06 15:21:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6940,"item_index":6,"menu_item_id":2} 
[2026-04-06 15:21:52] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6939,"new_order_id":6940,"order_number":"AZS-060426-002"} 
[2026-04-06 15:22:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6935,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":33150},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":33151},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":33152},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":33153},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33154},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33155},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33150,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":33151,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":33152,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":33153,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":33154,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33155,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 15:22:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6935,"items_count":7} 
[2026-04-06 15:22:12] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33150,"menu_item_id":114,"quantity":1},{"id":33151,"menu_item_id":396,"quantity":1},{"id":33152,"menu_item_id":50,"quantity":2},{"id":33153,"menu_item_id":61,"quantity":3},{"id":33154,"menu_item_id":56,"quantity":1},{"id":33155,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-04-06 15:22:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6935,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["114|1|","396|1|","50|2|","61|3|","56|1|","5|1|"],"new_items_map_keys":["114|1|","396|1|","50|2|","61|3|","56|1|","5|1|","2|1|"]} 
[2026-04-06 15:22:12] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6935,"order_number":"AZS-060426-003"} 
[2026-04-06 15:22:12] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-003","replaced_order_id":6935} 
[2026-04-06 15:22:12] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6941,"items_count":7,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-04-06 15:22:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6941,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6941}} 
[2026-04-06 15:22:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6941,"item_index":0,"menu_item_id":114} 
[2026-04-06 15:22:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6941,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6941}} 
[2026-04-06 15:22:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6941,"item_index":1,"menu_item_id":396} 
[2026-04-06 15:22:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6941,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6941}} 
[2026-04-06 15:22:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6941,"item_index":2,"menu_item_id":50} 
[2026-04-06 15:22:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6941,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6941}} 
[2026-04-06 15:22:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6941,"item_index":3,"menu_item_id":61} 
[2026-04-06 15:22:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6941,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6941}} 
[2026-04-06 15:22:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6941,"item_index":4,"menu_item_id":56} 
[2026-04-06 15:22:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6941,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6941}} 
[2026-04-06 15:22:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6941,"item_index":5,"menu_item_id":5} 
[2026-04-06 15:22:12] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6941,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6941}} 
[2026-04-06 15:22:12] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6941,"item_index":6,"menu_item_id":2} 
[2026-04-06 15:22:12] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6935,"new_order_id":6941,"order_number":"AZS-060426-003"} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":11,"items_to_remove_count":0,"order_id":6938,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":107,"quantity":2,"discount_percent":0,"notes":null,"id":33169},{"menu_item_id":397,"quantity":250,"discount_percent":0,"notes":null,"id":33170},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":33171},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33172},{"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null,"id":33173},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null,"id":33174},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":33175},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33176},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null,"id":33177},{"menu_item_id":9,"quantity":3,"discount_percent":0,"notes":null,"id":33178},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":33179}],"validated_items":[{"id":33169,"menu_item_id":107,"quantity":2,"discount_percent":0,"notes":null},{"id":33170,"menu_item_id":397,"quantity":250,"discount_percent":0,"notes":null},{"id":33171,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":33172,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33173,"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null},{"id":33174,"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"id":33175,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":33176,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33177,"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"id":33178,"menu_item_id":9,"quantity":3,"discount_percent":0,"notes":null},{"id":33179,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6938,"items_count":11} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Processing items {"items_count":11,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33169,"menu_item_id":107,"quantity":2},{"id":33170,"menu_item_id":397,"quantity":250},{"id":33171,"menu_item_id":106,"quantity":1},{"id":33172,"menu_item_id":56,"quantity":1},{"id":33173,"menu_item_id":60,"quantity":1},{"id":33174,"menu_item_id":51,"quantity":2},{"id":33175,"menu_item_id":396,"quantity":1},{"id":33176,"menu_item_id":5,"quantity":1},{"id":33177,"menu_item_id":13,"quantity":2},{"id":33178,"menu_item_id":9,"quantity":3},{"id":33179,"menu_item_id":2,"quantity":1}]} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Item changes check {"order_id":6938,"has_item_changes":true,"old_items_count":11,"new_items_count":11,"old_items_map_keys":["107|1|","397|250|","106|1|","56|1|","60|1|","51|2|","396|1|","5|1|","13|2|","9|3|","2|1|"],"new_items_map_keys":["107|2|","397|250|","106|1|","56|1|","60|1|","51|2|","396|1|","5|1|","13|2|","9|3|","2|1|"]} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6938,"order_number":"AZS-060426-001"} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-001","replaced_order_id":6938} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6944,"items_count":11,"items":[{"menu_item_id":107,"quantity":2,"price":"2199.00"},{"menu_item_id":397,"quantity":250,"price":"4.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":60,"quantity":1,"price":"199.00"},{"menu_item_id":51,"quantity":2,"price":"199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":9,"quantity":3,"price":"229.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6944,"item_index":0,"item_data":{"menu_item_id":107,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Sulemani - Half","quantity":2,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":4398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6944}} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6944,"item_index":0,"menu_item_id":107} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6944,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":250,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":1000.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6944}} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6944,"item_index":1,"menu_item_id":397} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6944,"item_index":2,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6944}} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6944,"item_index":2,"menu_item_id":106} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6944,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6944}} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6944,"item_index":3,"menu_item_id":56} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6944,"item_index":4,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6944}} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6944,"item_index":4,"menu_item_id":60} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6944,"item_index":5,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6944}} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6944,"item_index":5,"menu_item_id":51} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6944,"item_index":6,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6944}} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6944,"item_index":6,"menu_item_id":396} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6944,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6944}} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6944,"item_index":7,"menu_item_id":5} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6944,"item_index":8,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6944}} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6944,"item_index":8,"menu_item_id":13} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6944,"item_index":9,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":3,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":687.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6944}} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6944,"item_index":9,"menu_item_id":9} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6944,"item_index":10,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6944}} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6944,"item_index":10,"menu_item_id":2} 
[2026-04-06 15:33:51] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6938,"new_order_id":6944,"order_number":"AZS-060426-001"} 
[2026-04-06 15:41:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6941,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":33193},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":33194},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":33195},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":33196},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33197},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33198},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":33199},{"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":33193,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":33194,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":33195,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":33196,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":33197,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33198,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33199,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-06 15:41:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6941,"items_count":8} 
[2026-04-06 15:41:16] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33193,"menu_item_id":114,"quantity":1},{"id":33194,"menu_item_id":396,"quantity":1},{"id":33195,"menu_item_id":50,"quantity":2},{"id":33196,"menu_item_id":61,"quantity":3},{"id":33197,"menu_item_id":56,"quantity":1},{"id":33198,"menu_item_id":5,"quantity":1},{"id":33199,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":9,"quantity":2}]} 
[2026-04-06 15:41:16] local.INFO: PosOrderController::update - Item changes check {"order_id":6941,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["114|1|","396|1|","50|2|","61|3|","56|1|","5|1|","2|1|"],"new_items_map_keys":["114|1|","396|1|","50|2|","61|3|","56|1|","5|1|","2|1|","9|2|"]} 
[2026-04-06 15:41:16] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6941,"order_number":"AZS-060426-003"} 
[2026-04-06 15:41:16] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-003","replaced_order_id":6941} 
[2026-04-06 15:41:16] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6945,"items_count":8,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":9,"quantity":2,"price":"229.00"}]} 
[2026-04-06 15:41:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6945,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6945}} 
[2026-04-06 15:41:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6945,"item_index":0,"menu_item_id":114} 
[2026-04-06 15:41:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6945,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6945}} 
[2026-04-06 15:41:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6945,"item_index":1,"menu_item_id":396} 
[2026-04-06 15:41:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6945,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6945}} 
[2026-04-06 15:41:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6945,"item_index":2,"menu_item_id":50} 
[2026-04-06 15:41:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6945,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6945}} 
[2026-04-06 15:41:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6945,"item_index":3,"menu_item_id":61} 
[2026-04-06 15:41:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6945,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6945}} 
[2026-04-06 15:41:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6945,"item_index":4,"menu_item_id":56} 
[2026-04-06 15:41:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6945,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6945}} 
[2026-04-06 15:41:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6945,"item_index":5,"menu_item_id":5} 
[2026-04-06 15:41:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6945,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6945}} 
[2026-04-06 15:41:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6945,"item_index":6,"menu_item_id":2} 
[2026-04-06 15:41:16] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6945,"item_index":7,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":2,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":458.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6945}} 
[2026-04-06 15:41:16] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6945,"item_index":7,"menu_item_id":9} 
[2026-04-06 15:41:16] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6941,"new_order_id":6945,"order_number":"AZS-060426-003"} 
[2026-04-06 15:46:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6937,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":33162},{"menu_item_id":89,"quantity":1,"discount_percent":0,"notes":null,"id":33163},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":33164},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":33165},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":33166},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33167},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33168},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33162,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":33163,"menu_item_id":89,"quantity":1,"discount_percent":0,"notes":null},{"id":33164,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":33165,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":33166,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":33167,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33168,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 15:46:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6937,"items_count":8} 
[2026-04-06 15:46:52] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33162,"menu_item_id":95,"quantity":1},{"id":33163,"menu_item_id":89,"quantity":1},{"id":33164,"menu_item_id":396,"quantity":2},{"id":33165,"menu_item_id":50,"quantity":2},{"id":33166,"menu_item_id":61,"quantity":2},{"id":33167,"menu_item_id":56,"quantity":1},{"id":33168,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-06 15:46:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6937,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["95|1|","89|1|","396|2|","50|2|","61|2|","56|1|","5|1|"],"new_items_map_keys":["95|1|","89|1|","396|2|","50|2|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-04-06 15:46:52] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6937,"order_number":"AZS-060426-004"} 
[2026-04-06 15:46:52] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-004","replaced_order_id":6937} 
[2026-04-06 15:46:52] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6947,"items_count":8,"items":[{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":89,"quantity":1,"price":"1999.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-06 15:46:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6947,"item_index":0,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6947}} 
[2026-04-06 15:46:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6947,"item_index":0,"menu_item_id":95} 
[2026-04-06 15:46:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6947,"item_index":1,"item_data":{"menu_item_id":89,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Rajhistani Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6947}} 
[2026-04-06 15:46:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6947,"item_index":1,"menu_item_id":89} 
[2026-04-06 15:46:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6947,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6947}} 
[2026-04-06 15:46:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6947,"item_index":2,"menu_item_id":396} 
[2026-04-06 15:46:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6947,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6947}} 
[2026-04-06 15:46:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6947,"item_index":3,"menu_item_id":50} 
[2026-04-06 15:46:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6947,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6947}} 
[2026-04-06 15:46:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6947,"item_index":4,"menu_item_id":61} 
[2026-04-06 15:46:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6947,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6947}} 
[2026-04-06 15:46:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6947,"item_index":5,"menu_item_id":56} 
[2026-04-06 15:46:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6947,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6947}} 
[2026-04-06 15:46:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6947,"item_index":6,"menu_item_id":5} 
[2026-04-06 15:46:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6947,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6947}} 
[2026-04-06 15:46:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6947,"item_index":7,"menu_item_id":3} 
[2026-04-06 15:46:52] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6937,"new_order_id":6947,"order_number":"AZS-060426-004"} 
[2026-04-06 15:48:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6940,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":33186},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":33187},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":33188},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":33189},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33190},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":33191},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":33192},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":33186,"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"id":33187,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":33188,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":33189,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":33190,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33191,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"id":33192,"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-06 15:48:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6940,"items_count":8} 
[2026-04-06 15:48:31] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33186,"menu_item_id":78,"quantity":1},{"id":33187,"menu_item_id":95,"quantity":1},{"id":33188,"menu_item_id":61,"quantity":3},{"id":33189,"menu_item_id":56,"quantity":2},{"id":33190,"menu_item_id":5,"quantity":1},{"id":33191,"menu_item_id":403,"quantity":1},{"id":33192,"menu_item_id":2,"quantity":3},{"id":null,"menu_item_id":13,"quantity":2}]} 
[2026-04-06 15:48:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6940,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["78|1|","95|1|","61|3|","56|2|","5|1|","403|1|","2|3|"],"new_items_map_keys":["78|1|","95|1|","61|3|","56|2|","5|1|","403|1|","2|3|","13|2|"]} 
[2026-04-06 15:48:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6940,"order_number":"AZS-060426-002"} 
[2026-04-06 15:48:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-002","replaced_order_id":6940} 
[2026-04-06 15:48:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6948,"items_count":8,"items":[{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"}]} 
[2026-04-06 15:48:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6948,"item_index":0,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6948}} 
[2026-04-06 15:48:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6948,"item_index":0,"menu_item_id":78} 
[2026-04-06 15:48:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6948,"item_index":1,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6948}} 
[2026-04-06 15:48:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6948,"item_index":1,"menu_item_id":95} 
[2026-04-06 15:48:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6948,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6948}} 
[2026-04-06 15:48:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6948,"item_index":2,"menu_item_id":61} 
[2026-04-06 15:48:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6948,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6948}} 
[2026-04-06 15:48:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6948,"item_index":3,"menu_item_id":56} 
[2026-04-06 15:48:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6948,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6948}} 
[2026-04-06 15:48:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6948,"item_index":4,"menu_item_id":5} 
[2026-04-06 15:48:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6948,"item_index":5,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6948}} 
[2026-04-06 15:48:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6948,"item_index":5,"menu_item_id":403} 
[2026-04-06 15:48:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6948,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6948}} 
[2026-04-06 15:48:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6948,"item_index":6,"menu_item_id":2} 
[2026-04-06 15:48:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6948,"item_index":7,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6948}} 
[2026-04-06 15:48:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6948,"item_index":7,"menu_item_id":13} 
[2026-04-06 15:48:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6940,"new_order_id":6948,"order_number":"AZS-060426-002"} 
[2026-04-06 15:49:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6948,"item_index":0,"item_id":33186} 
[2026-04-06 15:49:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6948,"item_index":1,"item_id":33187} 
[2026-04-06 15:49:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6948,"item_index":2,"item_id":33188} 
[2026-04-06 15:49:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6948,"item_index":3,"item_id":33189} 
[2026-04-06 15:49:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6948,"item_index":4,"item_id":33190} 
[2026-04-06 15:49:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6948,"item_index":5,"item_id":33191} 
[2026-04-06 15:49:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6948,"item_index":6,"item_id":33192} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":8,"order_id":6948,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null,"id":33186},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":33187},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":33188},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":33189},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33190},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":33191},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":33192},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":78,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":55,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6948,"items_count":9} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":8,"items_to_remove":[33233,33234,33235,33236,33237,33238,33239,33240],"items":[{"id":null,"menu_item_id":78,"quantity":1},{"id":null,"menu_item_id":95,"quantity":1},{"id":null,"menu_item_id":61,"quantity":3},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":2,"quantity":3},{"id":null,"menu_item_id":13,"quantity":2},{"id":null,"menu_item_id":55,"quantity":1}]} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6948,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["78|1|","95|1|","61|3|","56|2|","5|1|","403|1|","2|3|","13|2|"],"new_items_map_keys":["78|1|","95|1|","61|3|","56|2|","5|1|","403|1|","2|3|","13|2|","55|1|"]} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6948,"order_number":"AZS-060426-002"} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-002","replaced_order_id":6948} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6949,"items_count":9,"items":[{"menu_item_id":78,"quantity":1,"price":"4399.00"},{"menu_item_id":95,"quantity":1,"price":"1999.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"},{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":55,"quantity":1,"price":"159.00"}]} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6949,"item_index":0,"item_data":{"menu_item_id":78,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Bar B.Q Mix Platter Half","quantity":1,"price":"4399.00","discount_percent":0.0,"discount_amount":0.0,"total":4399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6949}} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6949,"item_index":0,"menu_item_id":78} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6949,"item_index":1,"item_data":{"menu_item_id":95,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Makhni Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6949}} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6949,"item_index":1,"menu_item_id":95} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6949,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6949}} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6949,"item_index":2,"menu_item_id":61} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6949,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6949}} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6949,"item_index":3,"menu_item_id":56} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6949,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6949}} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6949,"item_index":4,"menu_item_id":5} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6949,"item_index":5,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6949}} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6949,"item_index":5,"menu_item_id":403} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6949,"item_index":6,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6949}} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6949,"item_index":6,"menu_item_id":2} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6949,"item_index":7,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6949}} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6949,"item_index":7,"menu_item_id":13} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6949,"item_index":8,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":1,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":159.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6949}} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6949,"item_index":8,"menu_item_id":55} 
[2026-04-06 15:49:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6948,"new_order_id":6949,"order_number":"AZS-060426-002"} 
[2026-04-06 15:55:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6949,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":33241},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":33242},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":33243},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33244},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33245},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":33246},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":33247},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":33248},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":33249}],"validated_items":[{"id":33241,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":33242,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":33243,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":33244,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33245,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33246,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":33247,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":33248,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":33249,"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null}]} 
[2026-04-06 15:55:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6949,"items_count":9} 
[2026-04-06 15:55:01] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33241,"menu_item_id":78,"quantity":1},{"id":33242,"menu_item_id":95,"quantity":1},{"id":33243,"menu_item_id":61,"quantity":3},{"id":33244,"menu_item_id":56,"quantity":2},{"id":33245,"menu_item_id":5,"quantity":1},{"id":33246,"menu_item_id":403,"quantity":1},{"id":33247,"menu_item_id":2,"quantity":3},{"id":33248,"menu_item_id":13,"quantity":2},{"id":33249,"menu_item_id":55,"quantity":1}]} 
[2026-04-06 15:55:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6949,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["78|1|","95|1|","61|3|","56|2|","5|1|","403|1|","2|3|","13|2|","55|1|"],"new_items_map_keys":["78|1|","95|1|","61|3|","56|2|","5|1|","403|1|","2|3|","13|2|","55|1|"]} 
[2026-04-06 15:55:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6949,"order_number":"AZS-060426-002"} 
[2026-04-06 15:55:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6949,"order_number":"AZS-060426-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-06 15:55:01"} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":0,"order_id":6944,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":107,"quantity":2,"discount_percent":0,"notes":null,"id":33202},{"menu_item_id":397,"quantity":250,"discount_percent":0,"notes":null,"id":33203},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":33204},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":33205},{"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null,"id":33206},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null,"id":33207},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":33208},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33209},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null,"id":33210},{"menu_item_id":9,"quantity":3,"discount_percent":0,"notes":null,"id":33211},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":33212},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33202,"menu_item_id":107,"quantity":2,"discount_percent":0,"notes":null},{"id":33203,"menu_item_id":397,"quantity":250,"discount_percent":0,"notes":null},{"id":33204,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":33205,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":33206,"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null},{"id":33207,"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"id":33208,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":33209,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33210,"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null},{"id":33211,"menu_item_id":9,"quantity":3,"discount_percent":0,"notes":null},{"id":33212,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6944,"items_count":12} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33202,"menu_item_id":107,"quantity":2},{"id":33203,"menu_item_id":397,"quantity":250},{"id":33204,"menu_item_id":106,"quantity":1},{"id":33205,"menu_item_id":56,"quantity":2},{"id":33206,"menu_item_id":60,"quantity":1},{"id":33207,"menu_item_id":51,"quantity":2},{"id":33208,"menu_item_id":396,"quantity":1},{"id":33209,"menu_item_id":5,"quantity":1},{"id":33210,"menu_item_id":13,"quantity":3},{"id":33211,"menu_item_id":9,"quantity":3},{"id":33212,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6944,"has_item_changes":true,"old_items_count":11,"new_items_count":12,"old_items_map_keys":["107|2|","397|250|","106|1|","56|1|","60|1|","51|2|","396|1|","5|1|","13|2|","9|3|","2|1|"],"new_items_map_keys":["107|2|","397|250|","106|1|","56|2|","60|1|","51|2|","396|1|","5|1|","13|3|","9|3|","2|1|","61|1|"]} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6944,"order_number":"AZS-060426-001"} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-001","replaced_order_id":6944} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6952,"items_count":12,"items":[{"menu_item_id":107,"quantity":2,"price":"2199.00"},{"menu_item_id":397,"quantity":250,"price":"4.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":60,"quantity":1,"price":"199.00"},{"menu_item_id":51,"quantity":2,"price":"199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":3,"price":"249.00"},{"menu_item_id":9,"quantity":3,"price":"229.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"}]} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6952,"item_index":0,"item_data":{"menu_item_id":107,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Sulemani - Half","quantity":2,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":4398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6952}} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6952,"item_index":0,"menu_item_id":107} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6952,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":250,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":1000.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6952}} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6952,"item_index":1,"menu_item_id":397} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6952,"item_index":2,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6952}} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6952,"item_index":2,"menu_item_id":106} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6952,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6952}} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6952,"item_index":3,"menu_item_id":56} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6952,"item_index":4,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6952}} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6952,"item_index":4,"menu_item_id":60} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6952,"item_index":5,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6952}} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6952,"item_index":5,"menu_item_id":51} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6952,"item_index":6,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6952}} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6952,"item_index":6,"menu_item_id":396} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6952,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6952}} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6952,"item_index":7,"menu_item_id":5} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6952,"item_index":8,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6952}} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6952,"item_index":8,"menu_item_id":13} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6952,"item_index":9,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":3,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":687.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6952}} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6952,"item_index":9,"menu_item_id":9} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6952,"item_index":10,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6952}} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6952,"item_index":10,"menu_item_id":2} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6952,"item_index":11,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6952}} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6952,"item_index":11,"menu_item_id":61} 
[2026-04-06 15:58:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6944,"new_order_id":6952,"order_number":"AZS-060426-001"} 
[2026-04-06 15:59:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6952,"item_index":0,"item_id":33202} 
[2026-04-06 15:59:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6952,"item_index":1,"item_id":33203} 
[2026-04-06 15:59:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6952,"item_index":2,"item_id":33204} 
[2026-04-06 15:59:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6952,"item_index":3,"item_id":33205} 
[2026-04-06 15:59:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6952,"item_index":4,"item_id":33206} 
[2026-04-06 15:59:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6952,"item_index":5,"item_id":33207} 
[2026-04-06 15:59:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6952,"item_index":6,"item_id":33208} 
[2026-04-06 15:59:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6952,"item_index":7,"item_id":33209} 
[2026-04-06 15:59:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6952,"item_index":8,"item_id":33210} 
[2026-04-06 15:59:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6952,"item_index":9,"item_id":33211} 
[2026-04-06 15:59:19] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6952,"item_index":10,"item_id":33212} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":13,"items_to_remove_count":12,"order_id":6952,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":107,"quantity":2,"discount_percent":0,"notes":null,"id":33202},{"menu_item_id":397,"quantity":250,"discount_percent":0,"notes":null,"id":33203},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":33204},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":33205},{"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null,"id":33206},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null,"id":33207},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":33208},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33209},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null,"id":33210},{"menu_item_id":9,"quantity":3,"discount_percent":0,"notes":null,"id":33211},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":33212},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":107,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":397,"quantity":250,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6952,"items_count":13} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Processing items {"items_count":13,"items_to_remove_count":12,"items_to_remove":[33256,33257,33258,33259,33260,33261,33262,33263,33264,33265,33266,33267],"items":[{"id":null,"menu_item_id":107,"quantity":2},{"id":null,"menu_item_id":397,"quantity":250},{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":60,"quantity":1},{"id":null,"menu_item_id":51,"quantity":2},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":3},{"id":null,"menu_item_id":9,"quantity":3},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":138,"quantity":1}]} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6952,"has_item_changes":true,"old_items_count":12,"new_items_count":13,"old_items_map_keys":["107|2|","397|250|","106|1|","56|2|","60|1|","51|2|","396|1|","5|1|","13|3|","9|3|","2|1|","61|1|"],"new_items_map_keys":["107|2|","397|250|","106|1|","56|2|","60|1|","51|2|","396|1|","5|1|","13|3|","9|3|","2|1|","61|1|","138|1|"]} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6952,"order_number":"AZS-060426-001"} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-001","replaced_order_id":6952} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6953,"items_count":13,"items":[{"menu_item_id":107,"quantity":2,"price":"2199.00"},{"menu_item_id":397,"quantity":250,"price":"4.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":60,"quantity":1,"price":"199.00"},{"menu_item_id":51,"quantity":2,"price":"199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":3,"price":"249.00"},{"menu_item_id":9,"quantity":3,"price":"229.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":138,"quantity":1,"price":"2199.00"}]} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6953,"item_index":0,"item_data":{"menu_item_id":107,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Sulemani - Half","quantity":2,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":4398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6953}} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6953,"item_index":0,"menu_item_id":107} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6953,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":250,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":1000.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6953}} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6953,"item_index":1,"menu_item_id":397} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6953,"item_index":2,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6953}} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6953,"item_index":2,"menu_item_id":106} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6953,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6953}} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6953,"item_index":3,"menu_item_id":56} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6953,"item_index":4,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6953}} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6953,"item_index":4,"menu_item_id":60} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6953,"item_index":5,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6953}} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6953,"item_index":5,"menu_item_id":51} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6953,"item_index":6,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6953}} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6953,"item_index":6,"menu_item_id":396} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6953,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6953}} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6953,"item_index":7,"menu_item_id":5} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6953,"item_index":8,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6953}} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6953,"item_index":8,"menu_item_id":13} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6953,"item_index":9,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":3,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":687.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6953}} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6953,"item_index":9,"menu_item_id":9} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6953,"item_index":10,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6953}} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6953,"item_index":10,"menu_item_id":2} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6953,"item_index":11,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6953}} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6953,"item_index":11,"menu_item_id":61} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6953,"item_index":12,"item_data":{"menu_item_id":138,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Large","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6953}} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6953,"item_index":12,"menu_item_id":138} 
[2026-04-06 15:59:19] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6952,"new_order_id":6953,"order_number":"AZS-060426-001"} 
[2026-04-06 16:01:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6943,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":33201}],"validated_items":[{"id":33201,"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:01:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6943,"items_count":1} 
[2026-04-06 16:01:20] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33201,"menu_item_id":384,"quantity":1}]} 
[2026-04-06 16:01:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6943,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["384|1|"],"new_items_map_keys":["384|1|"]} 
[2026-04-06 16:01:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6943,"order_number":"AZS-060426-006"} 
[2026-04-06 16:01:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6943,"order_number":"AZS-060426-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-06 16:01:20"} 
[2026-04-06 16:02:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6949,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":33241},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":33242},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":33243},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33244},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33245},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":33246},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":33247},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":33248},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":33249}],"validated_items":[{"id":33241,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":33242,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":33243,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":33244,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33245,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33246,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":33247,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":33248,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":33249,"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:02:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6949,"items_count":9} 
[2026-04-06 16:02:17] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33241,"menu_item_id":78,"quantity":1},{"id":33242,"menu_item_id":95,"quantity":1},{"id":33243,"menu_item_id":61,"quantity":3},{"id":33244,"menu_item_id":56,"quantity":2},{"id":33245,"menu_item_id":5,"quantity":1},{"id":33246,"menu_item_id":403,"quantity":1},{"id":33247,"menu_item_id":2,"quantity":3},{"id":33248,"menu_item_id":13,"quantity":2},{"id":33249,"menu_item_id":55,"quantity":1}]} 
[2026-04-06 16:02:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6949,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["78|1|","95|1|","61|3|","56|2|","5|1|","403|1|","2|3|","13|2|","55|1|"],"new_items_map_keys":["78|1|","95|1|","61|3|","56|2|","5|1|","403|1|","2|3|","13|2|","55|1|"]} 
[2026-04-06 16:02:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6949,"order_number":"AZS-060426-002"} 
[2026-04-06 16:02:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6949,"order_number":"AZS-060426-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-06 16:02:17"} 
[2026-04-06 16:03:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6943,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":33201}],"validated_items":[{"id":33201,"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:03:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6943,"items_count":1} 
[2026-04-06 16:03:01] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33201,"menu_item_id":384,"quantity":1}]} 
[2026-04-06 16:03:01] local.INFO: PosOrderController::update - Item changes check {"order_id":6943,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["384|1|"],"new_items_map_keys":["384|1|"]} 
[2026-04-06 16:03:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6943,"order_number":"AZS-060426-006"} 
[2026-04-06 16:03:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6943,"order_number":"AZS-060426-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-06 16:03:01"} 
[2026-04-06 16:08:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6945,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":33213},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33214},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":33215},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":33216},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33217},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33218},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":33219},{"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null,"id":33220}],"validated_items":[{"id":33213,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":33214,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":33215,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":33216,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":33217,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33218,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33219,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":33220,"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:08:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6945,"items_count":8} 
[2026-04-06 16:08:30] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33213,"menu_item_id":114,"quantity":1},{"id":33214,"menu_item_id":396,"quantity":1},{"id":33215,"menu_item_id":50,"quantity":2},{"id":33216,"menu_item_id":61,"quantity":3},{"id":33217,"menu_item_id":56,"quantity":1},{"id":33218,"menu_item_id":5,"quantity":1},{"id":33219,"menu_item_id":2,"quantity":1},{"id":33220,"menu_item_id":9,"quantity":2}]} 
[2026-04-06 16:08:30] local.INFO: PosOrderController::update - Item changes check {"order_id":6945,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","396|1|","50|2|","61|3|","56|1|","5|1|","2|1|","9|2|"],"new_items_map_keys":["114|1|","396|1|","50|2|","61|3|","56|1|","5|1|","2|1|","9|2|"]} 
[2026-04-06 16:08:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6945,"order_number":"AZS-060426-003"} 
[2026-04-06 16:08:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6945,"order_number":"AZS-060426-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-06 16:08:30"} 
[2026-04-06 16:09:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6949,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":33241},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":33242},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":33243},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33244},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33245},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":33246},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":33247},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":33248},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":33249}],"validated_items":[{"id":33241,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":33242,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":33243,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":33244,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33245,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33246,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":33247,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":33248,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":33249,"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:09:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6949,"items_count":9} 
[2026-04-06 16:09:04] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33241,"menu_item_id":78,"quantity":1},{"id":33242,"menu_item_id":95,"quantity":1},{"id":33243,"menu_item_id":61,"quantity":3},{"id":33244,"menu_item_id":56,"quantity":2},{"id":33245,"menu_item_id":5,"quantity":1},{"id":33246,"menu_item_id":403,"quantity":1},{"id":33247,"menu_item_id":2,"quantity":3},{"id":33248,"menu_item_id":13,"quantity":2},{"id":33249,"menu_item_id":55,"quantity":1}]} 
[2026-04-06 16:09:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6949,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["78|1|","95|1|","61|3|","56|2|","5|1|","403|1|","2|3|","13|2|","55|1|"],"new_items_map_keys":["78|1|","95|1|","61|3|","56|2|","5|1|","403|1|","2|3|","13|2|","55|1|"]} 
[2026-04-06 16:09:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6949,"order_number":"AZS-060426-002"} 
[2026-04-06 16:09:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6949,"order_number":"AZS-060426-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-06 16:09:04"} 
[2026-04-06 16:12:06] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6943,"order_number":"AZS-060426-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1470,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 16:12:06"} 
[2026-04-06 16:12:06] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6943,"order_number":"AZS-060426-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1470,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 16:12:06"} 
[2026-04-06 16:12:06] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6943,"order_number":"AZS-060426-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1470,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 16:12:06"} 
[2026-04-06 16:12:06] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6943,"order_number":"AZS-060426-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1470,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 16:12:06"} 
[2026-04-06 16:12:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6943,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":33201}],"validated_items":[{"id":33201,"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:12:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6943,"items_count":1} 
[2026-04-06 16:12:06] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33201,"menu_item_id":384,"quantity":1}]} 
[2026-04-06 16:12:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6943,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["384|1|"],"new_items_map_keys":["384|1|"]} 
[2026-04-06 16:12:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6943,"order_number":"AZS-060426-006"} 
[2026-04-06 16:12:06] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6943,"order_number":"AZS-060426-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1470,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-06 16:12:06","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-06 16:12:06"} 
[2026-04-06 16:12:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6943,"order_number":"AZS-060426-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-06 16:12:06"} 
[2026-04-06 16:12:06] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6943,"order_number":"AZS-060426-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1470.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-06 16:12:06","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1470,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1470.00","database_verification_match":true,"timestamp":"2026-04-06 16:12:06"} 
[2026-04-06 16:12:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6945,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":33213},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33214},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":33215},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":33216},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33217},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33218},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":33219},{"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null,"id":33220}],"validated_items":[{"id":33213,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":33214,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":33215,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":33216,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":33217,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33218,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33219,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":33220,"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:12:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6945,"items_count":8} 
[2026-04-06 16:12:15] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33213,"menu_item_id":114,"quantity":1},{"id":33214,"menu_item_id":396,"quantity":1},{"id":33215,"menu_item_id":50,"quantity":2},{"id":33216,"menu_item_id":61,"quantity":3},{"id":33217,"menu_item_id":56,"quantity":1},{"id":33218,"menu_item_id":5,"quantity":1},{"id":33219,"menu_item_id":2,"quantity":1},{"id":33220,"menu_item_id":9,"quantity":2}]} 
[2026-04-06 16:12:15] local.INFO: PosOrderController::update - Item changes check {"order_id":6945,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","396|1|","50|2|","61|3|","56|1|","5|1|","2|1|","9|2|"],"new_items_map_keys":["114|1|","396|1|","50|2|","61|3|","56|1|","5|1|","2|1|","9|2|"]} 
[2026-04-06 16:12:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6945,"order_number":"AZS-060426-003"} 
[2026-04-06 16:12:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6945,"order_number":"AZS-060426-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-06 16:12:15"} 
[2026-04-06 16:12:59] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6945,"order_number":"AZS-060426-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 16:12:59"} 
[2026-04-06 16:12:59] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6945,"order_number":"AZS-060426-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 16:12:59"} 
[2026-04-06 16:12:59] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6945,"order_number":"AZS-060426-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 16:12:59"} 
[2026-04-06 16:12:59] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6945,"order_number":"AZS-060426-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 16:12:59"} 
[2026-04-06 16:12:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6945,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":33213},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33214},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":33215},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":33216},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33217},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33218},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":33219},{"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null,"id":33220}],"validated_items":[{"id":33213,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":33214,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":33215,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":33216,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":33217,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33218,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33219,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":33220,"menu_item_id":9,"quantity":2,"price":229,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:12:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6945,"items_count":8} 
[2026-04-06 16:12:59] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33213,"menu_item_id":114,"quantity":1},{"id":33214,"menu_item_id":396,"quantity":1},{"id":33215,"menu_item_id":50,"quantity":2},{"id":33216,"menu_item_id":61,"quantity":3},{"id":33217,"menu_item_id":56,"quantity":1},{"id":33218,"menu_item_id":5,"quantity":1},{"id":33219,"menu_item_id":2,"quantity":1},{"id":33220,"menu_item_id":9,"quantity":2}]} 
[2026-04-06 16:12:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6945,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["114|1|","396|1|","50|2|","61|3|","56|1|","5|1|","2|1|","9|2|"],"new_items_map_keys":["114|1|","396|1|","50|2|","61|3|","56|1|","5|1|","2|1|","9|2|"]} 
[2026-04-06 16:12:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6945,"order_number":"AZS-060426-003"} 
[2026-04-06 16:12:59] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6945,"order_number":"AZS-060426-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-06 16:12:59","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-06 16:12:59"} 
[2026-04-06 16:12:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6945,"order_number":"AZS-060426-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-06 16:12:59"} 
[2026-04-06 16:12:59] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6945,"order_number":"AZS-060426-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-06 16:12:59","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-04-06 16:12:59"} 
[2026-04-06 16:13:14] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6949,"order_number":"AZS-060426-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":10000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 16:13:14"} 
[2026-04-06 16:13:14] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6949,"order_number":"AZS-060426-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":10000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 16:13:14"} 
[2026-04-06 16:13:14] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6949,"order_number":"AZS-060426-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 16:13:14"} 
[2026-04-06 16:13:14] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6949,"order_number":"AZS-060426-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":10000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 16:13:14"} 
[2026-04-06 16:13:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6949,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null,"id":33241},{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":33242},{"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":33243},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33244},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33245},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":33246},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":33247},{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":33248},{"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null,"id":33249}],"validated_items":[{"id":33241,"menu_item_id":78,"quantity":1,"price":4399,"discount_percent":0,"notes":null},{"id":33242,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":33243,"menu_item_id":61,"quantity":3,"price":199,"discount_percent":0,"notes":null},{"id":33244,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33245,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33246,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":33247,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":33248,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":33249,"menu_item_id":55,"quantity":1,"price":159,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:13:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6949,"items_count":9} 
[2026-04-06 16:13:14] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33241,"menu_item_id":78,"quantity":1},{"id":33242,"menu_item_id":95,"quantity":1},{"id":33243,"menu_item_id":61,"quantity":3},{"id":33244,"menu_item_id":56,"quantity":2},{"id":33245,"menu_item_id":5,"quantity":1},{"id":33246,"menu_item_id":403,"quantity":1},{"id":33247,"menu_item_id":2,"quantity":3},{"id":33248,"menu_item_id":13,"quantity":2},{"id":33249,"menu_item_id":55,"quantity":1}]} 
[2026-04-06 16:13:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6949,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["78|1|","95|1|","61|3|","56|2|","5|1|","403|1|","2|3|","13|2|","55|1|"],"new_items_map_keys":["78|1|","95|1|","61|3|","56|2|","5|1|","403|1|","2|3|","13|2|","55|1|"]} 
[2026-04-06 16:13:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6949,"order_number":"AZS-060426-002"} 
[2026-04-06 16:13:14] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6949,"order_number":"AZS-060426-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":10000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-06 16:13:14","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-06 16:13:14"} 
[2026-04-06 16:13:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6949,"order_number":"AZS-060426-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-06 16:13:14"} 
[2026-04-06 16:13:14] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6949,"order_number":"AZS-060426-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"10000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-06 16:13:14","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":10000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"10000.00","database_verification_match":true,"timestamp":"2026-04-06 16:13:14"} 
[2026-04-06 16:14:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6954,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":33281},{"menu_item_id":49,"quantity":3,"discount_percent":0,"notes":null,"id":33282}],"validated_items":[{"id":33281,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":33282,"menu_item_id":49,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:14:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6954,"items_count":2} 
[2026-04-06 16:14:04] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33281,"menu_item_id":113,"quantity":1},{"id":33282,"menu_item_id":49,"quantity":3}]} 
[2026-04-06 16:14:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6954,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["113|1|","49|3|"],"new_items_map_keys":["113|1|","49|3|"]} 
[2026-04-06 16:14:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6954,"order_number":"AZS-060426-010"} 
[2026-04-06 16:14:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6954,"order_number":"AZS-060426-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-06 16:14:04"} 
[2026-04-06 16:14:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6951,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":3,"discount_percent":0,"notes":null,"id":33251},{"menu_item_id":144,"quantity":1,"discount_percent":0,"notes":null,"id":33252},{"menu_item_id":49,"quantity":6,"discount_percent":0,"notes":null,"id":33253},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":33254},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":33255}],"validated_items":[{"id":33251,"menu_item_id":98,"quantity":3,"discount_percent":0,"notes":null},{"id":33252,"menu_item_id":144,"quantity":1,"discount_percent":0,"notes":null},{"id":33253,"menu_item_id":49,"quantity":6,"discount_percent":0,"notes":null},{"id":33254,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":33255,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:14:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6951,"items_count":5} 
[2026-04-06 16:14:12] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33251,"menu_item_id":98,"quantity":3},{"id":33252,"menu_item_id":144,"quantity":1},{"id":33253,"menu_item_id":49,"quantity":6},{"id":33254,"menu_item_id":396,"quantity":2},{"id":33255,"menu_item_id":5,"quantity":2}]} 
[2026-04-06 16:14:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6951,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["98|3|","144|1|","49|6|","396|2|","5|2|"],"new_items_map_keys":["98|3|","144|1|","49|6|","396|2|","5|2|"]} 
[2026-04-06 16:14:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6951,"order_number":"AZS-060426-009"} 
[2026-04-06 16:14:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6951,"order_number":"AZS-060426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-06 16:14:12"} 
[2026-04-06 16:14:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6946,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":33221},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33222},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":33223},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33224}],"validated_items":[{"id":33221,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":33222,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":33223,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":33224,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:14:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6946,"items_count":4} 
[2026-04-06 16:14:24] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33221,"menu_item_id":62,"quantity":1},{"id":33222,"menu_item_id":61,"quantity":1},{"id":33223,"menu_item_id":396,"quantity":2},{"id":33224,"menu_item_id":56,"quantity":1}]} 
[2026-04-06 16:14:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6946,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["62|1|","61|1|","396|2|","56|1|"],"new_items_map_keys":["62|1|","61|1|","396|2|","56|1|"]} 
[2026-04-06 16:14:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6946,"order_number":"AZS-060426-007"} 
[2026-04-06 16:14:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6946,"order_number":"AZS-060426-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-06 16:14:24"} 
[2026-04-06 16:14:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6946,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":33221},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33222},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":33223},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33224}],"validated_items":[{"id":33221,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":33222,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":33223,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":33224,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:14:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6946,"items_count":4} 
[2026-04-06 16:14:47] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33221,"menu_item_id":62,"quantity":1},{"id":33222,"menu_item_id":61,"quantity":1},{"id":33223,"menu_item_id":396,"quantity":2},{"id":33224,"menu_item_id":56,"quantity":1}]} 
[2026-04-06 16:14:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6946,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["62|1|","61|1|","396|2|","56|1|"],"new_items_map_keys":["62|1|","61|1|","396|2|","56|1|"]} 
[2026-04-06 16:14:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6946,"order_number":"AZS-060426-007"} 
[2026-04-06 16:14:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6946,"order_number":"AZS-060426-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-06 16:14:47"} 
[2026-04-06 16:14:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6942,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":12,"quantity":2,"discount_percent":0,"notes":null,"id":33200}],"validated_items":[{"id":33200,"menu_item_id":12,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:14:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6942,"items_count":1} 
[2026-04-06 16:14:58] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33200,"menu_item_id":12,"quantity":2}]} 
[2026-04-06 16:14:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6942,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["12|2|"],"new_items_map_keys":["12|2|"]} 
[2026-04-06 16:14:58] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6942,"order_number":"AZS-060426-005"} 
[2026-04-06 16:14:58] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6942,"order_number":"AZS-060426-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-06 16:14:58"} 
[2026-04-06 16:15:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6947,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null,"id":33225},{"menu_item_id":89,"quantity":1,"discount_percent":0,"notes":null,"id":33226},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":33227},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":33228},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":33229},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33230},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33231},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":33232}],"validated_items":[{"id":33225,"menu_item_id":95,"quantity":1,"discount_percent":0,"notes":null},{"id":33226,"menu_item_id":89,"quantity":1,"discount_percent":0,"notes":null},{"id":33227,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":33228,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":33229,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":33230,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33231,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33232,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:15:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6947,"items_count":8} 
[2026-04-06 16:15:08] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33225,"menu_item_id":95,"quantity":1},{"id":33226,"menu_item_id":89,"quantity":1},{"id":33227,"menu_item_id":396,"quantity":2},{"id":33228,"menu_item_id":50,"quantity":2},{"id":33229,"menu_item_id":61,"quantity":2},{"id":33230,"menu_item_id":56,"quantity":1},{"id":33231,"menu_item_id":5,"quantity":1},{"id":33232,"menu_item_id":3,"quantity":1}]} 
[2026-04-06 16:15:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6947,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["95|1|","89|1|","396|2|","50|2|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["95|1|","89|1|","396|2|","50|2|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-04-06 16:15:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6947,"order_number":"AZS-060426-004"} 
[2026-04-06 16:15:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6947,"order_number":"AZS-060426-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-06 16:15:08"} 
[2026-04-06 16:21:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6946,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":33221},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33222},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":33223},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33224},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33221,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":33222,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":33223,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":33224,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:21:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6946,"items_count":5} 
[2026-04-06 16:21:47] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33221,"menu_item_id":62,"quantity":1},{"id":33222,"menu_item_id":61,"quantity":1},{"id":33223,"menu_item_id":396,"quantity":2},{"id":33224,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":113,"quantity":1}]} 
[2026-04-06 16:21:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6946,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["62|1|","61|1|","396|2|","56|1|"],"new_items_map_keys":["62|1|","61|1|","396|2|","56|1|","113|1|"]} 
[2026-04-06 16:21:47] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6946,"order_number":"AZS-060426-007"} 
[2026-04-06 16:21:47] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-007","replaced_order_id":6946} 
[2026-04-06 16:21:47] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6956,"items_count":5,"items":[{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"}]} 
[2026-04-06 16:21:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6956,"item_index":0,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6956}} 
[2026-04-06 16:21:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6956,"item_index":0,"menu_item_id":62} 
[2026-04-06 16:21:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6956,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6956}} 
[2026-04-06 16:21:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6956,"item_index":1,"menu_item_id":61} 
[2026-04-06 16:21:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6956,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6956}} 
[2026-04-06 16:21:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6956,"item_index":2,"menu_item_id":396} 
[2026-04-06 16:21:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6956,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6956}} 
[2026-04-06 16:21:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6956,"item_index":3,"menu_item_id":56} 
[2026-04-06 16:21:47] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6956,"item_index":4,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6956}} 
[2026-04-06 16:21:47] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6956,"item_index":4,"menu_item_id":113} 
[2026-04-06 16:21:47] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6946,"new_order_id":6956,"order_number":"AZS-060426-007"} 
[2026-04-06 16:22:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T04:22:07.716Z","date_to":"2026-04-06T16:22:07.716Z","per_page":"100"} 
[2026-04-06 16:22:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","pending","pending","paid","paid","pending"],"deleted_count":0,"paid_count":3,"unpaid_count":8,"unique_order_numbers":11} 
[2026-04-06 16:22:04] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T04:22:07.735Z","date_to":"2026-04-06T16:22:07.735Z","per_page":"100"} 
[2026-04-06 16:22:04] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","pending","pending","paid","paid","pending"],"deleted_count":0,"paid_count":3,"unpaid_count":8,"unique_order_numbers":11} 
[2026-04-06 16:22:05] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T04:22:07.716Z","date_to":"2026-04-06T16:22:07.716Z","per_page":"100"} 
[2026-04-06 16:22:05] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","pending","pending","paid","paid","pending"],"deleted_count":0,"paid_count":3,"unpaid_count":8,"unique_order_numbers":11} 
[2026-04-06 16:22:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":13,"items_to_remove_count":0,"order_id":6953,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":107,"quantity":2,"discount_percent":0,"notes":null,"id":33268},{"menu_item_id":397,"quantity":250,"discount_percent":0,"notes":null,"id":33269},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":33270},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":33271},{"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null,"id":33272},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null,"id":33273},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":33274},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33275},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null,"id":33276},{"menu_item_id":9,"quantity":3,"discount_percent":0,"notes":null,"id":33277},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":33278},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33279},{"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null,"id":33280}],"validated_items":[{"id":33268,"menu_item_id":107,"quantity":2,"discount_percent":0,"notes":null},{"id":33269,"menu_item_id":397,"quantity":250,"discount_percent":0,"notes":null},{"id":33270,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":33271,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":33272,"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null},{"id":33273,"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"id":33274,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":33275,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33276,"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null},{"id":33277,"menu_item_id":9,"quantity":3,"discount_percent":0,"notes":null},{"id":33278,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":33279,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":33280,"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:22:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6953,"items_count":13} 
[2026-04-06 16:22:33] local.INFO: PosOrderController::update - Processing items {"items_count":13,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33268,"menu_item_id":107,"quantity":2},{"id":33269,"menu_item_id":397,"quantity":250},{"id":33270,"menu_item_id":106,"quantity":1},{"id":33271,"menu_item_id":56,"quantity":2},{"id":33272,"menu_item_id":60,"quantity":1},{"id":33273,"menu_item_id":51,"quantity":2},{"id":33274,"menu_item_id":396,"quantity":1},{"id":33275,"menu_item_id":5,"quantity":1},{"id":33276,"menu_item_id":13,"quantity":3},{"id":33277,"menu_item_id":9,"quantity":3},{"id":33278,"menu_item_id":2,"quantity":1},{"id":33279,"menu_item_id":61,"quantity":1},{"id":33280,"menu_item_id":138,"quantity":1}]} 
[2026-04-06 16:22:33] local.INFO: PosOrderController::update - Item changes check {"order_id":6953,"has_item_changes":false,"old_items_count":13,"new_items_count":13,"old_items_map_keys":["107|2|","397|250|","106|1|","56|2|","60|1|","51|2|","396|1|","5|1|","13|3|","9|3|","2|1|","61|1|","138|1|"],"new_items_map_keys":["107|2|","397|250|","106|1|","56|2|","60|1|","51|2|","396|1|","5|1|","13|3|","9|3|","2|1|","61|1|","138|1|"]} 
[2026-04-06 16:22:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6953,"order_number":"AZS-060426-001"} 
[2026-04-06 16:22:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6953,"order_number":"AZS-060426-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-04-06 16:22:33"} 
[2026-04-06 16:23:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6942,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":12,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33200}],"validated_items":[{"id":33200,"menu_item_id":12,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:23:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6942,"items_count":1} 
[2026-04-06 16:23:02] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33200,"menu_item_id":12,"quantity":2}]} 
[2026-04-06 16:23:02] local.INFO: PosOrderController::update - Item changes check {"order_id":6942,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["12|2|"],"new_items_map_keys":["12|2|"]} 
[2026-04-06 16:23:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6942,"order_number":"AZS-060426-005"} 
[2026-04-06 16:23:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6942,"order_number":"AZS-060426-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-06 16:23:02"} 
[2026-04-06 16:23:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6951,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":3,"discount_percent":0,"notes":null,"id":33251},{"menu_item_id":144,"quantity":1,"discount_percent":0,"notes":null,"id":33252},{"menu_item_id":49,"quantity":6,"discount_percent":0,"notes":null,"id":33253},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":33254},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":33255},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33251,"menu_item_id":98,"quantity":3,"discount_percent":0,"notes":null},{"id":33252,"menu_item_id":144,"quantity":1,"discount_percent":0,"notes":null},{"id":33253,"menu_item_id":49,"quantity":6,"discount_percent":0,"notes":null},{"id":33254,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":33255,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:23:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6951,"items_count":6} 
[2026-04-06 16:23:49] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33251,"menu_item_id":98,"quantity":3},{"id":33252,"menu_item_id":144,"quantity":1},{"id":33253,"menu_item_id":49,"quantity":6},{"id":33254,"menu_item_id":396,"quantity":2},{"id":33255,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-06 16:23:49] local.INFO: PosOrderController::update - Item changes check {"order_id":6951,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["98|3|","144|1|","49|6|","396|2|","5|2|"],"new_items_map_keys":["98|3|","144|1|","49|6|","396|2|","5|2|","3|1|"]} 
[2026-04-06 16:23:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6951,"order_number":"AZS-060426-009"} 
[2026-04-06 16:23:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-009","replaced_order_id":6951} 
[2026-04-06 16:23:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6957,"items_count":6,"items":[{"menu_item_id":98,"quantity":3,"price":"1199.00"},{"menu_item_id":144,"quantity":1,"price":"1999.00"},{"menu_item_id":49,"quantity":6,"price":"70.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-06 16:23:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6957,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":3,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":3597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6957}} 
[2026-04-06 16:23:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6957,"item_index":0,"menu_item_id":98} 
[2026-04-06 16:23:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6957,"item_index":1,"item_data":{"menu_item_id":144,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Chicken Fajita Pizza - Large","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6957}} 
[2026-04-06 16:23:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6957,"item_index":1,"menu_item_id":144} 
[2026-04-06 16:23:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6957,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":6,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":420.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6957}} 
[2026-04-06 16:23:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6957,"item_index":2,"menu_item_id":49} 
[2026-04-06 16:23:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6957,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6957}} 
[2026-04-06 16:23:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6957,"item_index":3,"menu_item_id":396} 
[2026-04-06 16:23:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6957,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6957}} 
[2026-04-06 16:23:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6957,"item_index":4,"menu_item_id":5} 
[2026-04-06 16:23:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6957,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6957}} 
[2026-04-06 16:23:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6957,"item_index":5,"menu_item_id":3} 
[2026-04-06 16:23:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6951,"new_order_id":6957,"order_number":"AZS-060426-009"} 
[2026-04-06 16:24:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6947,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":33225},{"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":33226},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33227},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":33228},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33229},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33230},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33231},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":33232}],"validated_items":[{"id":33225,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":33226,"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":33227,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":33228,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":33229,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33230,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33231,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33232,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:24:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6947,"items_count":8} 
[2026-04-06 16:24:43] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33225,"menu_item_id":95,"quantity":1},{"id":33226,"menu_item_id":89,"quantity":1},{"id":33227,"menu_item_id":396,"quantity":2},{"id":33228,"menu_item_id":50,"quantity":2},{"id":33229,"menu_item_id":61,"quantity":2},{"id":33230,"menu_item_id":56,"quantity":1},{"id":33231,"menu_item_id":5,"quantity":1},{"id":33232,"menu_item_id":3,"quantity":1}]} 
[2026-04-06 16:24:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6947,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["95|1|","89|1|","396|2|","50|2|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["95|1|","89|1|","396|2|","50|2|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-04-06 16:24:43] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6947,"order_number":"AZS-060426-004"} 
[2026-04-06 16:24:43] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6947,"order_number":"AZS-060426-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-06 16:24:43"} 
[2026-04-06 16:26:59] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6950,"order_number":"AZS-060426-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2099,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 16:26:59"} 
[2026-04-06 16:26:59] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6950,"order_number":"AZS-060426-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2099,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 16:26:59"} 
[2026-04-06 16:26:59] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6950,"order_number":"AZS-060426-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2099,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 16:26:59"} 
[2026-04-06 16:26:59] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6950,"order_number":"AZS-060426-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2099,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 16:26:59"} 
[2026-04-06 16:26:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6950,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":33250}],"validated_items":[{"id":33250,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:26:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6950,"items_count":1} 
[2026-04-06 16:26:59] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33250,"menu_item_id":386,"quantity":1}]} 
[2026-04-06 16:26:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6950,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|"]} 
[2026-04-06 16:26:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6950,"order_number":"AZS-060426-008"} 
[2026-04-06 16:26:59] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6950,"order_number":"AZS-060426-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2099,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-06 16:26:59","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-06 16:26:59"} 
[2026-04-06 16:26:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6950,"order_number":"AZS-060426-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-06 16:26:59"} 
[2026-04-06 16:26:59] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6950,"order_number":"AZS-060426-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2099.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-06 16:26:59","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2099,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2099.00","database_verification_match":true,"timestamp":"2026-04-06 16:26:59"} 
[2026-04-06 16:30:15] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6942,"order_number":"AZS-060426-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 16:30:15"} 
[2026-04-06 16:30:15] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6942,"order_number":"AZS-060426-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 16:30:15"} 
[2026-04-06 16:30:15] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6942,"order_number":"AZS-060426-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 16:30:15"} 
[2026-04-06 16:30:15] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6942,"order_number":"AZS-060426-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 16:30:15"} 
[2026-04-06 16:30:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6942,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":12,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33200}],"validated_items":[{"id":33200,"menu_item_id":12,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:30:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6942,"items_count":1} 
[2026-04-06 16:30:15] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33200,"menu_item_id":12,"quantity":2}]} 
[2026-04-06 16:30:15] local.INFO: PosOrderController::update - Item changes check {"order_id":6942,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["12|2|"],"new_items_map_keys":["12|2|"]} 
[2026-04-06 16:30:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6942,"order_number":"AZS-060426-005"} 
[2026-04-06 16:30:15] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6942,"order_number":"AZS-060426-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-06 16:30:15","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-06 16:30:15"} 
[2026-04-06 16:30:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6942,"order_number":"AZS-060426-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-06 16:30:15"} 
[2026-04-06 16:30:15] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6942,"order_number":"AZS-060426-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-06 16:30:15","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-04-06 16:30:15"} 
[2026-04-06 16:36:11] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6947,"order_number":"AZS-060426-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5900,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 16:36:11"} 
[2026-04-06 16:36:11] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6947,"order_number":"AZS-060426-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5900,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 16:36:11"} 
[2026-04-06 16:36:11] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6947,"order_number":"AZS-060426-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5900,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 16:36:11"} 
[2026-04-06 16:36:11] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6947,"order_number":"AZS-060426-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5900,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 16:36:11"} 
[2026-04-06 16:36:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6947,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":33225},{"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":33226},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33227},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":33228},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33229},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33230},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33231},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":33232}],"validated_items":[{"id":33225,"menu_item_id":95,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":33226,"menu_item_id":89,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":33227,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":33228,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":33229,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33230,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33231,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33232,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:36:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6947,"items_count":8} 
[2026-04-06 16:36:11] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33225,"menu_item_id":95,"quantity":1},{"id":33226,"menu_item_id":89,"quantity":1},{"id":33227,"menu_item_id":396,"quantity":2},{"id":33228,"menu_item_id":50,"quantity":2},{"id":33229,"menu_item_id":61,"quantity":2},{"id":33230,"menu_item_id":56,"quantity":1},{"id":33231,"menu_item_id":5,"quantity":1},{"id":33232,"menu_item_id":3,"quantity":1}]} 
[2026-04-06 16:36:11] local.INFO: PosOrderController::update - Item changes check {"order_id":6947,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["95|1|","89|1|","396|2|","50|2|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["95|1|","89|1|","396|2|","50|2|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-04-06 16:36:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6947,"order_number":"AZS-060426-004"} 
[2026-04-06 16:36:11] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6947,"order_number":"AZS-060426-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5900,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-06 16:36:11","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-06 16:36:11"} 
[2026-04-06 16:36:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6947,"order_number":"AZS-060426-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-06 16:36:11"} 
[2026-04-06 16:36:11] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6947,"order_number":"AZS-060426-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5900.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-06 16:36:11","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5900,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5900.00","database_verification_match":true,"timestamp":"2026-04-06 16:36:11"} 
[2026-04-06 16:40:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6957,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":3,"discount_percent":0,"notes":null,"id":33293},{"menu_item_id":144,"quantity":1,"discount_percent":0,"notes":null,"id":33294},{"menu_item_id":49,"quantity":6,"discount_percent":0,"notes":null,"id":33295},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":33296},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":33297},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":33298}],"validated_items":[{"id":33293,"menu_item_id":98,"quantity":3,"discount_percent":0,"notes":null},{"id":33294,"menu_item_id":144,"quantity":1,"discount_percent":0,"notes":null},{"id":33295,"menu_item_id":49,"quantity":6,"discount_percent":0,"notes":null},{"id":33296,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":33297,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":33298,"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:40:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6957,"items_count":6} 
[2026-04-06 16:40:42] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33293,"menu_item_id":98,"quantity":3},{"id":33294,"menu_item_id":144,"quantity":1},{"id":33295,"menu_item_id":49,"quantity":6},{"id":33296,"menu_item_id":396,"quantity":2},{"id":33297,"menu_item_id":5,"quantity":2},{"id":33298,"menu_item_id":3,"quantity":2}]} 
[2026-04-06 16:40:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6957,"has_item_changes":true,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["98|3|","144|1|","49|6|","396|2|","5|2|","3|1|"],"new_items_map_keys":["98|3|","144|1|","49|6|","396|2|","5|2|","3|2|"]} 
[2026-04-06 16:40:42] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6957,"order_number":"AZS-060426-009"} 
[2026-04-06 16:40:42] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-009","replaced_order_id":6957} 
[2026-04-06 16:40:42] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6959,"items_count":6,"items":[{"menu_item_id":98,"quantity":3,"price":"1199.00"},{"menu_item_id":144,"quantity":1,"price":"1999.00"},{"menu_item_id":49,"quantity":6,"price":"70.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"}]} 
[2026-04-06 16:40:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6959,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":3,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":3597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6959}} 
[2026-04-06 16:40:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6959,"item_index":0,"menu_item_id":98} 
[2026-04-06 16:40:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6959,"item_index":1,"item_data":{"menu_item_id":144,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Chicken Fajita Pizza - Large","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6959}} 
[2026-04-06 16:40:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6959,"item_index":1,"menu_item_id":144} 
[2026-04-06 16:40:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6959,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":6,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":420.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6959}} 
[2026-04-06 16:40:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6959,"item_index":2,"menu_item_id":49} 
[2026-04-06 16:40:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6959,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6959}} 
[2026-04-06 16:40:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6959,"item_index":3,"menu_item_id":396} 
[2026-04-06 16:40:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6959,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6959}} 
[2026-04-06 16:40:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6959,"item_index":4,"menu_item_id":5} 
[2026-04-06 16:40:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6959,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6959}} 
[2026-04-06 16:40:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6959,"item_index":5,"menu_item_id":3} 
[2026-04-06 16:40:42] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6957,"new_order_id":6959,"order_number":"AZS-060426-009"} 
[2026-04-06 16:46:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6956,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":33288},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33289},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":33290},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33291},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":33292},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":33288,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":33289,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":33290,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":33291,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33292,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:46:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6956,"items_count":6} 
[2026-04-06 16:46:22] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33288,"menu_item_id":62,"quantity":1},{"id":33289,"menu_item_id":61,"quantity":1},{"id":33290,"menu_item_id":396,"quantity":2},{"id":33291,"menu_item_id":56,"quantity":1},{"id":33292,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-04-06 16:46:22] local.INFO: PosOrderController::update - Item changes check {"order_id":6956,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["62|1|","61|1|","396|2|","56|1|","113|1|"],"new_items_map_keys":["62|1|","61|1|","396|2|","56|1|","113|1|","6|2|"]} 
[2026-04-06 16:46:22] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6956,"order_number":"AZS-060426-007"} 
[2026-04-06 16:46:22] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-007","replaced_order_id":6956} 
[2026-04-06 16:46:22] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6960,"items_count":6,"items":[{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-04-06 16:46:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6960,"item_index":0,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6960}} 
[2026-04-06 16:46:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6960,"item_index":0,"menu_item_id":62} 
[2026-04-06 16:46:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6960,"item_index":1,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6960}} 
[2026-04-06 16:46:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6960,"item_index":1,"menu_item_id":61} 
[2026-04-06 16:46:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6960,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6960}} 
[2026-04-06 16:46:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6960,"item_index":2,"menu_item_id":396} 
[2026-04-06 16:46:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6960,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6960}} 
[2026-04-06 16:46:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6960,"item_index":3,"menu_item_id":56} 
[2026-04-06 16:46:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6960,"item_index":4,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6960}} 
[2026-04-06 16:46:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6960,"item_index":4,"menu_item_id":113} 
[2026-04-06 16:46:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6960,"item_index":5,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6960}} 
[2026-04-06 16:46:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6960,"item_index":5,"menu_item_id":6} 
[2026-04-06 16:46:22] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6956,"new_order_id":6960,"order_number":"AZS-060426-007"} 
[2026-04-06 16:46:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6959,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":3,"discount_percent":0,"notes":null,"id":33301},{"menu_item_id":144,"quantity":1,"discount_percent":0,"notes":null,"id":33302},{"menu_item_id":49,"quantity":6,"discount_percent":0,"notes":null,"id":33303},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":33304},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":33305},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":33306},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":33301,"menu_item_id":98,"quantity":3,"discount_percent":0,"notes":null},{"id":33302,"menu_item_id":144,"quantity":1,"discount_percent":0,"notes":null},{"id":33303,"menu_item_id":49,"quantity":6,"discount_percent":0,"notes":null},{"id":33304,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":33305,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":33306,"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:46:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6959,"items_count":7} 
[2026-04-06 16:46:43] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33301,"menu_item_id":98,"quantity":3},{"id":33302,"menu_item_id":144,"quantity":1},{"id":33303,"menu_item_id":49,"quantity":6},{"id":33304,"menu_item_id":396,"quantity":2},{"id":33305,"menu_item_id":5,"quantity":2},{"id":33306,"menu_item_id":3,"quantity":2},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-04-06 16:46:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6959,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["98|3|","144|1|","49|6|","396|2|","5|2|","3|2|"],"new_items_map_keys":["98|3|","144|1|","49|6|","396|2|","5|2|","3|2|","6|2|"]} 
[2026-04-06 16:46:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6959,"order_number":"AZS-060426-009"} 
[2026-04-06 16:46:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-009","replaced_order_id":6959} 
[2026-04-06 16:46:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6961,"items_count":7,"items":[{"menu_item_id":98,"quantity":3,"price":"1199.00"},{"menu_item_id":144,"quantity":1,"price":"1999.00"},{"menu_item_id":49,"quantity":6,"price":"70.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-04-06 16:46:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6961,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":3,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":3597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6961}} 
[2026-04-06 16:46:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6961,"item_index":0,"menu_item_id":98} 
[2026-04-06 16:46:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6961,"item_index":1,"item_data":{"menu_item_id":144,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Chicken Fajita Pizza - Large","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6961}} 
[2026-04-06 16:46:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6961,"item_index":1,"menu_item_id":144} 
[2026-04-06 16:46:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6961,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":6,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":420.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6961}} 
[2026-04-06 16:46:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6961,"item_index":2,"menu_item_id":49} 
[2026-04-06 16:46:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6961,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6961}} 
[2026-04-06 16:46:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6961,"item_index":3,"menu_item_id":396} 
[2026-04-06 16:46:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6961,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6961}} 
[2026-04-06 16:46:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6961,"item_index":4,"menu_item_id":5} 
[2026-04-06 16:46:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6961,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6961}} 
[2026-04-06 16:46:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6961,"item_index":5,"menu_item_id":3} 
[2026-04-06 16:46:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6961,"item_index":6,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6961}} 
[2026-04-06 16:46:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6961,"item_index":6,"menu_item_id":6} 
[2026-04-06 16:46:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6959,"new_order_id":6961,"order_number":"AZS-060426-009"} 
[2026-04-06 16:46:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6961,"item_index":0,"item_id":33301} 
[2026-04-06 16:46:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6961,"item_index":1,"item_id":33302} 
[2026-04-06 16:46:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6961,"item_index":2,"item_id":33303} 
[2026-04-06 16:46:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6961,"item_index":3,"item_id":33304} 
[2026-04-06 16:46:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6961,"item_index":4,"item_id":33305} 
[2026-04-06 16:46:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6961,"item_index":5,"item_id":33306} 
[2026-04-06 16:46:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":6961,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":3,"discount_percent":0,"notes":null,"id":33301},{"menu_item_id":144,"quantity":1,"discount_percent":0,"notes":null,"id":33302},{"menu_item_id":49,"quantity":6,"discount_percent":0,"notes":null,"id":33303},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":33304},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":33305},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":33306},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":98,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":144,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":6,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:46:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6961,"items_count":7} 
[2026-04-06 16:46:53] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[33313,33314,33315,33316,33317,33318,33319],"items":[{"id":null,"menu_item_id":98,"quantity":3},{"id":null,"menu_item_id":144,"quantity":1},{"id":null,"menu_item_id":49,"quantity":6},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":2},{"id":null,"menu_item_id":6,"quantity":1}]} 
[2026-04-06 16:46:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6961,"has_item_changes":true,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["98|3|","144|1|","49|6|","396|2|","5|2|","3|2|","6|2|"],"new_items_map_keys":["98|3|","144|1|","49|6|","396|2|","5|2|","3|2|","6|1|"]} 
[2026-04-06 16:46:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6961,"order_number":"AZS-060426-009"} 
[2026-04-06 16:46:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-009","replaced_order_id":6961} 
[2026-04-06 16:46:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6962,"items_count":7,"items":[{"menu_item_id":98,"quantity":3,"price":"1199.00"},{"menu_item_id":144,"quantity":1,"price":"1999.00"},{"menu_item_id":49,"quantity":6,"price":"70.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":3,"quantity":2,"price":"270.00"},{"menu_item_id":6,"quantity":1,"price":"199.00"}]} 
[2026-04-06 16:46:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6962,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":3,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":3597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6962}} 
[2026-04-06 16:46:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6962,"item_index":0,"menu_item_id":98} 
[2026-04-06 16:46:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6962,"item_index":1,"item_data":{"menu_item_id":144,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Chicken Fajita Pizza - Large","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6962}} 
[2026-04-06 16:46:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6962,"item_index":1,"menu_item_id":144} 
[2026-04-06 16:46:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6962,"item_index":2,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":6,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":420.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6962}} 
[2026-04-06 16:46:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6962,"item_index":2,"menu_item_id":49} 
[2026-04-06 16:46:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6962,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6962}} 
[2026-04-06 16:46:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6962,"item_index":3,"menu_item_id":396} 
[2026-04-06 16:46:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6962,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6962}} 
[2026-04-06 16:46:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6962,"item_index":4,"menu_item_id":5} 
[2026-04-06 16:46:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6962,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":2,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":540.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6962}} 
[2026-04-06 16:46:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6962,"item_index":5,"menu_item_id":3} 
[2026-04-06 16:46:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6962,"item_index":6,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6962}} 
[2026-04-06 16:46:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6962,"item_index":6,"menu_item_id":6} 
[2026-04-06 16:46:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6961,"new_order_id":6962,"order_number":"AZS-060426-009"} 
[2026-04-06 16:46:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6962,"item_index":0,"item_id":33301} 
[2026-04-06 16:46:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6962,"item_index":1,"item_id":33302} 
[2026-04-06 16:46:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6962,"item_index":2,"item_id":33303} 
[2026-04-06 16:46:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6962,"item_index":3,"item_id":33304} 
[2026-04-06 16:46:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6962,"item_index":4,"item_id":33305} 
[2026-04-06 16:46:57] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6962,"item_index":5,"item_id":33306} 
[2026-04-06 16:46:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":6962,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":3,"discount_percent":0,"notes":null,"id":33301},{"menu_item_id":144,"quantity":1,"discount_percent":0,"notes":null,"id":33302},{"menu_item_id":49,"quantity":6,"discount_percent":0,"notes":null,"id":33303},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":33304},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":33305},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null,"id":33306},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":98,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":144,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":6,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:46:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6962,"items_count":7} 
[2026-04-06 16:46:57] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[33320,33321,33322,33323,33324,33325,33326],"items":[{"id":null,"menu_item_id":98,"quantity":3},{"id":null,"menu_item_id":144,"quantity":1},{"id":null,"menu_item_id":49,"quantity":6},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":2},{"id":null,"menu_item_id":6,"quantity":1}]} 
[2026-04-06 16:46:57] local.INFO: PosOrderController::update - Item changes check {"order_id":6962,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["98|3|","144|1|","49|6|","396|2|","5|2|","3|2|","6|1|"],"new_items_map_keys":["98|3|","144|1|","49|6|","396|2|","5|2|","3|2|","6|1|"]} 
[2026-04-06 16:46:57] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6962,"order_number":"AZS-060426-009"} 
[2026-04-06 16:46:57] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6962,"order_number":"AZS-060426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-06 16:46:57"} 
[2026-04-06 16:47:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6962,"item_index":0,"item_id":33301} 
[2026-04-06 16:47:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6962,"item_index":1,"item_id":33302} 
[2026-04-06 16:47:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6962,"item_index":2,"item_id":33303} 
[2026-04-06 16:47:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6962,"item_index":3,"item_id":33304} 
[2026-04-06 16:47:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6962,"item_index":4,"item_id":33305} 
[2026-04-06 16:47:56] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6962,"item_index":5,"item_id":33306} 
[2026-04-06 16:47:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":6962,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":3,"price":1199,"discount_percent":0,"notes":null,"id":33301},{"menu_item_id":144,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":33302},{"menu_item_id":49,"quantity":6,"price":70,"discount_percent":0,"notes":null,"id":33303},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33304},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":33305},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":33306},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":98,"quantity":3,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":144,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":6,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:47:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6962,"items_count":7} 
[2026-04-06 16:47:56] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[33320,33321,33322,33323,33324,33325,33326],"items":[{"id":null,"menu_item_id":98,"quantity":3},{"id":null,"menu_item_id":144,"quantity":1},{"id":null,"menu_item_id":49,"quantity":6},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":3,"quantity":2},{"id":null,"menu_item_id":6,"quantity":1}]} 
[2026-04-06 16:47:56] local.INFO: PosOrderController::update - Item changes check {"order_id":6962,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["98|3|","144|1|","49|6|","396|2|","5|2|","3|2|","6|1|"],"new_items_map_keys":["98|3|","144|1|","49|6|","396|2|","5|2|","3|2|","6|1|"]} 
[2026-04-06 16:47:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6962,"order_number":"AZS-060426-009"} 
[2026-04-06 16:47:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6962,"order_number":"AZS-060426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-06 16:47:56"} 
[2026-04-06 16:50:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6955,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":33283},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":33284},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33285},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33286},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33287}],"validated_items":[{"id":33283,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":33284,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":33285,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33286,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33287,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:50:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6955,"items_count":5} 
[2026-04-06 16:50:02] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33283,"menu_item_id":97,"quantity":1},{"id":33284,"menu_item_id":396,"quantity":4},{"id":33285,"menu_item_id":61,"quantity":1},{"id":33286,"menu_item_id":56,"quantity":1},{"id":33287,"menu_item_id":5,"quantity":1}]} 
[2026-04-06 16:50:02] local.INFO: PosOrderController::update - Item changes check {"order_id":6955,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["97|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["97|1|","396|4|","61|1|","56|1|","5|1|"]} 
[2026-04-06 16:50:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6955,"order_number":"AZS-060426-011"} 
[2026-04-06 16:50:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6955,"order_number":"AZS-060426-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-06 16:50:02"} 
[2026-04-06 16:55:45] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6955,"order_number":"AZS-060426-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 16:55:45"} 
[2026-04-06 16:55:45] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6955,"order_number":"AZS-060426-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 16:55:45"} 
[2026-04-06 16:55:45] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6955,"order_number":"AZS-060426-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 16:55:45"} 
[2026-04-06 16:55:45] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6955,"order_number":"AZS-060426-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 16:55:45"} 
[2026-04-06 16:55:45] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6955,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":33283},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":33284},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33285},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33286},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33287}],"validated_items":[{"id":33283,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":33284,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":33285,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33286,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33287,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:55:45] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6955,"items_count":5} 
[2026-04-06 16:55:45] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33283,"menu_item_id":97,"quantity":1},{"id":33284,"menu_item_id":396,"quantity":4},{"id":33285,"menu_item_id":61,"quantity":1},{"id":33286,"menu_item_id":56,"quantity":1},{"id":33287,"menu_item_id":5,"quantity":1}]} 
[2026-04-06 16:55:45] local.INFO: PosOrderController::update - Item changes check {"order_id":6955,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["97|1|","396|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["97|1|","396|4|","61|1|","56|1|","5|1|"]} 
[2026-04-06 16:55:45] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6955,"order_number":"AZS-060426-011"} 
[2026-04-06 16:55:45] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6955,"order_number":"AZS-060426-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-06 16:55:45","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-06 16:55:45"} 
[2026-04-06 16:55:45] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6955,"order_number":"AZS-060426-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-06 16:55:45"} 
[2026-04-06 16:55:45] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6955,"order_number":"AZS-060426-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-06 16:55:45","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3500.00","database_verification_match":true,"timestamp":"2026-04-06 16:55:45"} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":13,"items_to_remove_count":0,"order_id":6953,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":107,"quantity":2,"discount_percent":0,"notes":null,"id":33268},{"menu_item_id":397,"quantity":250,"discount_percent":0,"notes":null,"id":33269},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":33270},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":33271},{"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null,"id":33272},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null,"id":33273},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":33274},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33275},{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null,"id":33276},{"menu_item_id":9,"quantity":3,"discount_percent":0,"notes":null,"id":33277},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null,"id":33278},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33279},{"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null,"id":33280}],"validated_items":[{"id":33268,"menu_item_id":107,"quantity":2,"discount_percent":0,"notes":null},{"id":33269,"menu_item_id":397,"quantity":250,"discount_percent":0,"notes":null},{"id":33270,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":33271,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":33272,"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null},{"id":33273,"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"id":33274,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":33275,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33276,"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null},{"id":33277,"menu_item_id":9,"quantity":3,"discount_percent":0,"notes":null},{"id":33278,"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"id":33279,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":33280,"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6953,"items_count":13} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Processing items {"items_count":13,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33268,"menu_item_id":107,"quantity":2},{"id":33269,"menu_item_id":397,"quantity":250},{"id":33270,"menu_item_id":106,"quantity":1},{"id":33271,"menu_item_id":56,"quantity":2},{"id":33272,"menu_item_id":60,"quantity":1},{"id":33273,"menu_item_id":51,"quantity":2},{"id":33274,"menu_item_id":396,"quantity":1},{"id":33275,"menu_item_id":5,"quantity":1},{"id":33276,"menu_item_id":13,"quantity":3},{"id":33277,"menu_item_id":9,"quantity":3},{"id":33278,"menu_item_id":2,"quantity":2},{"id":33279,"menu_item_id":61,"quantity":1},{"id":33280,"menu_item_id":138,"quantity":1}]} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Item changes check {"order_id":6953,"has_item_changes":true,"old_items_count":13,"new_items_count":13,"old_items_map_keys":["107|2|","397|250|","106|1|","56|2|","60|1|","51|2|","396|1|","5|1|","13|3|","9|3|","2|1|","61|1|","138|1|"],"new_items_map_keys":["107|2|","397|250|","106|1|","56|2|","60|1|","51|2|","396|1|","5|1|","13|3|","9|3|","2|2|","61|1|","138|1|"]} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6953,"order_number":"AZS-060426-001"} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-001","replaced_order_id":6953} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6964,"items_count":13,"items":[{"menu_item_id":107,"quantity":2,"price":"2199.00"},{"menu_item_id":397,"quantity":250,"price":"4.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":60,"quantity":1,"price":"199.00"},{"menu_item_id":51,"quantity":2,"price":"199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":3,"price":"249.00"},{"menu_item_id":9,"quantity":3,"price":"229.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":138,"quantity":1,"price":"2199.00"}]} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6964,"item_index":0,"item_data":{"menu_item_id":107,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Sulemani - Half","quantity":2,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":4398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6964}} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6964,"item_index":0,"menu_item_id":107} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6964,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":250,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":1000.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6964}} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6964,"item_index":1,"menu_item_id":397} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6964,"item_index":2,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6964}} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6964,"item_index":2,"menu_item_id":106} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6964,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6964}} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6964,"item_index":3,"menu_item_id":56} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6964,"item_index":4,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6964}} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6964,"item_index":4,"menu_item_id":60} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6964,"item_index":5,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6964}} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6964,"item_index":5,"menu_item_id":51} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6964,"item_index":6,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6964}} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6964,"item_index":6,"menu_item_id":396} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6964,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6964}} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6964,"item_index":7,"menu_item_id":5} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6964,"item_index":8,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6964}} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6964,"item_index":8,"menu_item_id":13} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6964,"item_index":9,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":3,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":687.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6964}} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6964,"item_index":9,"menu_item_id":9} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6964,"item_index":10,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6964}} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6964,"item_index":10,"menu_item_id":2} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6964,"item_index":11,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6964}} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6964,"item_index":11,"menu_item_id":61} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6964,"item_index":12,"item_data":{"menu_item_id":138,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Large","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6964}} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6964,"item_index":12,"menu_item_id":138} 
[2026-04-06 16:57:35] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6953,"new_order_id":6964,"order_number":"AZS-060426-001"} 
[2026-04-06 17:03:00] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6962,"order_number":"AZS-060426-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":7658,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 17:03:00"} 
[2026-04-06 17:03:00] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6962,"order_number":"AZS-060426-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":7658,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 17:03:00"} 
[2026-04-06 17:03:00] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6962,"order_number":"AZS-060426-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7658,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 17:03:00"} 
[2026-04-06 17:03:00] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6962,"order_number":"AZS-060426-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":7658,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 17:03:00"} 
[2026-04-06 17:03:00] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":6962,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":3,"price":1199,"discount_percent":0,"notes":null,"id":33320},{"menu_item_id":144,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":33321},{"menu_item_id":49,"quantity":6,"price":70,"discount_percent":0,"notes":null,"id":33322},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33323},{"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null,"id":33324},{"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null,"id":33325},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33326}],"validated_items":[{"id":33320,"menu_item_id":98,"quantity":3,"price":1199,"discount_percent":0,"notes":null},{"id":33321,"menu_item_id":144,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":33322,"menu_item_id":49,"quantity":6,"price":70,"discount_percent":0,"notes":null},{"id":33323,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":33324,"menu_item_id":5,"quantity":2,"price":170,"discount_percent":0,"notes":null},{"id":33325,"menu_item_id":3,"quantity":2,"price":270,"discount_percent":0,"notes":null},{"id":33326,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-06 17:03:00] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6962,"items_count":7} 
[2026-04-06 17:03:00] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33320,"menu_item_id":98,"quantity":3},{"id":33321,"menu_item_id":144,"quantity":1},{"id":33322,"menu_item_id":49,"quantity":6},{"id":33323,"menu_item_id":396,"quantity":2},{"id":33324,"menu_item_id":5,"quantity":2},{"id":33325,"menu_item_id":3,"quantity":2},{"id":33326,"menu_item_id":6,"quantity":1}]} 
[2026-04-06 17:03:00] local.INFO: PosOrderController::update - Item changes check {"order_id":6962,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["98|3|","144|1|","49|6|","396|2|","5|2|","3|2|","6|1|"],"new_items_map_keys":["98|3|","144|1|","49|6|","396|2|","5|2|","3|2|","6|1|"]} 
[2026-04-06 17:03:00] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6962,"order_number":"AZS-060426-009"} 
[2026-04-06 17:03:00] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6962,"order_number":"AZS-060426-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":7658,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-06 17:03:00","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-06 17:03:00"} 
[2026-04-06 17:03:00] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6962,"order_number":"AZS-060426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-06 17:03:00"} 
[2026-04-06 17:03:00] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6962,"order_number":"AZS-060426-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"7658.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-06 17:03:00","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":7658,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"7658.00","database_verification_match":true,"timestamp":"2026-04-06 17:03:00"} 
[2026-04-06 17:05:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6960,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":33307},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33308},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33309},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33310},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33311},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33312}],"validated_items":[{"id":33307,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":33308,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33309,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":33310,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33311,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33312,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-06 17:05:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6960,"items_count":6} 
[2026-04-06 17:05:20] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33307,"menu_item_id":62,"quantity":1},{"id":33308,"menu_item_id":61,"quantity":1},{"id":33309,"menu_item_id":396,"quantity":2},{"id":33310,"menu_item_id":56,"quantity":1},{"id":33311,"menu_item_id":113,"quantity":1},{"id":33312,"menu_item_id":6,"quantity":2}]} 
[2026-04-06 17:05:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6960,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["62|1|","61|1|","396|2|","56|1|","113|1|","6|2|"],"new_items_map_keys":["62|1|","61|1|","396|2|","56|1|","113|1|","6|2|"]} 
[2026-04-06 17:05:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6960,"order_number":"AZS-060426-007"} 
[2026-04-06 17:05:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6960,"order_number":"AZS-060426-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-06 17:05:20"} 
[2026-04-06 17:07:20] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6960,"order_number":"AZS-060426-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 17:07:20"} 
[2026-04-06 17:07:20] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6960,"order_number":"AZS-060426-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 17:07:20"} 
[2026-04-06 17:07:20] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6960,"order_number":"AZS-060426-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 17:07:20"} 
[2026-04-06 17:07:20] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6960,"order_number":"AZS-060426-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 17:07:20"} 
[2026-04-06 17:07:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6960,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":33307},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33308},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33309},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33310},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33311},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33312}],"validated_items":[{"id":33307,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":33308,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33309,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":33310,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33311,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33312,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-06 17:07:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6960,"items_count":6} 
[2026-04-06 17:07:20] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33307,"menu_item_id":62,"quantity":1},{"id":33308,"menu_item_id":61,"quantity":1},{"id":33309,"menu_item_id":396,"quantity":2},{"id":33310,"menu_item_id":56,"quantity":1},{"id":33311,"menu_item_id":113,"quantity":1},{"id":33312,"menu_item_id":6,"quantity":2}]} 
[2026-04-06 17:07:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6960,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["62|1|","61|1|","396|2|","56|1|","113|1|","6|2|"],"new_items_map_keys":["62|1|","61|1|","396|2|","56|1|","113|1|","6|2|"]} 
[2026-04-06 17:07:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6960,"order_number":"AZS-060426-007"} 
[2026-04-06 17:07:20] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6960,"order_number":"AZS-060426-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-06 17:07:20","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-06 17:07:20"} 
[2026-04-06 17:07:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6960,"order_number":"AZS-060426-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-06 17:07:20"} 
[2026-04-06 17:07:20] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6960,"order_number":"AZS-060426-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-06 17:07:20","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-04-06 17:07:20"} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":13,"items_to_remove_count":0,"order_id":6964,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":107,"quantity":2,"discount_percent":0,"notes":null,"id":33332},{"menu_item_id":397,"quantity":250,"discount_percent":0,"notes":null,"id":33333},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":33334},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":33335},{"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null,"id":33336},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null,"id":33337},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":33338},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33339},{"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null,"id":33340},{"menu_item_id":9,"quantity":3,"discount_percent":0,"notes":null,"id":33341},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null,"id":33342},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33343},{"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null,"id":33344}],"validated_items":[{"id":33332,"menu_item_id":107,"quantity":2,"discount_percent":0,"notes":null},{"id":33333,"menu_item_id":397,"quantity":250,"discount_percent":0,"notes":null},{"id":33334,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":33335,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":33336,"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null},{"id":33337,"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"id":33338,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":33339,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33340,"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null},{"id":33341,"menu_item_id":9,"quantity":3,"discount_percent":0,"notes":null},{"id":33342,"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"id":33343,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":33344,"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6964,"items_count":13} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Processing items {"items_count":13,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33332,"menu_item_id":107,"quantity":2},{"id":33333,"menu_item_id":397,"quantity":250},{"id":33334,"menu_item_id":106,"quantity":1},{"id":33335,"menu_item_id":56,"quantity":2},{"id":33336,"menu_item_id":60,"quantity":1},{"id":33337,"menu_item_id":51,"quantity":2},{"id":33338,"menu_item_id":396,"quantity":1},{"id":33339,"menu_item_id":5,"quantity":1},{"id":33340,"menu_item_id":13,"quantity":5},{"id":33341,"menu_item_id":9,"quantity":3},{"id":33342,"menu_item_id":2,"quantity":2},{"id":33343,"menu_item_id":61,"quantity":1},{"id":33344,"menu_item_id":138,"quantity":1}]} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6964,"has_item_changes":true,"old_items_count":13,"new_items_count":13,"old_items_map_keys":["107|2|","397|250|","106|1|","56|2|","60|1|","51|2|","396|1|","5|1|","13|3|","9|3|","2|2|","61|1|","138|1|"],"new_items_map_keys":["107|2|","397|250|","106|1|","56|2|","60|1|","51|2|","396|1|","5|1|","13|5|","9|3|","2|2|","61|1|","138|1|"]} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6964,"order_number":"AZS-060426-001"} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-001","replaced_order_id":6964} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6965,"items_count":13,"items":[{"menu_item_id":107,"quantity":2,"price":"2199.00"},{"menu_item_id":397,"quantity":250,"price":"4.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":60,"quantity":1,"price":"199.00"},{"menu_item_id":51,"quantity":2,"price":"199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":5,"price":"249.00"},{"menu_item_id":9,"quantity":3,"price":"229.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":138,"quantity":1,"price":"2199.00"}]} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6965,"item_index":0,"item_data":{"menu_item_id":107,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Sulemani - Half","quantity":2,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":4398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6965}} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6965,"item_index":0,"menu_item_id":107} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6965,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":250,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":1000.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6965}} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6965,"item_index":1,"menu_item_id":397} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6965,"item_index":2,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6965}} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6965,"item_index":2,"menu_item_id":106} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6965,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6965}} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6965,"item_index":3,"menu_item_id":56} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6965,"item_index":4,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6965}} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6965,"item_index":4,"menu_item_id":60} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6965,"item_index":5,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6965}} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6965,"item_index":5,"menu_item_id":51} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6965,"item_index":6,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6965}} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6965,"item_index":6,"menu_item_id":396} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6965,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6965}} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6965,"item_index":7,"menu_item_id":5} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6965,"item_index":8,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":5,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":1245.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6965}} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6965,"item_index":8,"menu_item_id":13} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6965,"item_index":9,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":3,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":687.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6965}} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6965,"item_index":9,"menu_item_id":9} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6965,"item_index":10,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6965}} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6965,"item_index":10,"menu_item_id":2} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6965,"item_index":11,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6965}} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6965,"item_index":11,"menu_item_id":61} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6965,"item_index":12,"item_data":{"menu_item_id":138,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Large","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6965}} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6965,"item_index":12,"menu_item_id":138} 
[2026-04-06 17:10:38] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6964,"new_order_id":6965,"order_number":"AZS-060426-001"} 
[2026-04-06 17:14:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6965,"item_index":0,"item_id":33332} 
[2026-04-06 17:14:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6965,"item_index":1,"item_id":33333} 
[2026-04-06 17:14:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6965,"item_index":2,"item_id":33334} 
[2026-04-06 17:14:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6965,"item_index":3,"item_id":33335} 
[2026-04-06 17:14:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6965,"item_index":4,"item_id":33336} 
[2026-04-06 17:14:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6965,"item_index":5,"item_id":33337} 
[2026-04-06 17:14:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6965,"item_index":6,"item_id":33338} 
[2026-04-06 17:14:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6965,"item_index":7,"item_id":33339} 
[2026-04-06 17:14:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6965,"item_index":8,"item_id":33340} 
[2026-04-06 17:14:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6965,"item_index":9,"item_id":33341} 
[2026-04-06 17:14:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6965,"item_index":10,"item_id":33342} 
[2026-04-06 17:14:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6965,"item_index":11,"item_id":33343} 
[2026-04-06 17:14:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6965,"item_index":12,"item_id":33344} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":13,"items_to_remove_count":13,"order_id":6965,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":107,"quantity":2,"discount_percent":0,"notes":null,"id":33332},{"menu_item_id":397,"quantity":250,"discount_percent":0,"notes":null,"id":33333},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":33334},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":33335},{"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null,"id":33336},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null,"id":33337},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":33338},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33339},{"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null,"id":33340},{"menu_item_id":9,"quantity":3,"discount_percent":0,"notes":null,"id":33341},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":33342},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33343},{"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null,"id":33344}],"validated_items":[{"menu_item_id":107,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":397,"quantity":250,"discount_percent":0,"notes":null},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6965,"items_count":13} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Processing items {"items_count":13,"items_to_remove_count":13,"items_to_remove":[33345,33346,33347,33348,33349,33350,33351,33352,33353,33354,33355,33356,33357],"items":[{"id":null,"menu_item_id":107,"quantity":2},{"id":null,"menu_item_id":397,"quantity":250},{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":60,"quantity":1},{"id":null,"menu_item_id":51,"quantity":2},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":13,"quantity":5},{"id":null,"menu_item_id":9,"quantity":3},{"id":null,"menu_item_id":2,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":138,"quantity":1}]} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6965,"has_item_changes":true,"old_items_count":13,"new_items_count":13,"old_items_map_keys":["107|2|","397|250|","106|1|","56|2|","60|1|","51|2|","396|1|","5|1|","13|5|","9|3|","2|2|","61|1|","138|1|"],"new_items_map_keys":["107|2|","397|250|","106|1|","56|2|","60|1|","51|2|","396|1|","5|1|","13|5|","9|3|","2|3|","61|1|","138|1|"]} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6965,"order_number":"AZS-060426-001"} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-001","replaced_order_id":6965} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6966,"items_count":13,"items":[{"menu_item_id":107,"quantity":2,"price":"2199.00"},{"menu_item_id":397,"quantity":250,"price":"4.00"},{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":60,"quantity":1,"price":"199.00"},{"menu_item_id":51,"quantity":2,"price":"199.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":13,"quantity":5,"price":"249.00"},{"menu_item_id":9,"quantity":3,"price":"229.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":138,"quantity":1,"price":"2199.00"}]} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6966,"item_index":0,"item_data":{"menu_item_id":107,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Sulemani - Half","quantity":2,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":4398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6966}} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6966,"item_index":0,"menu_item_id":107} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6966,"item_index":1,"item_data":{"menu_item_id":397,"restaurant_category_id":38,"restaurant_category_name":"ADDITIONALS","item_name":"ADDITIONAL MUTTON 1 GRAM","quantity":250,"price":"4.00","discount_percent":0.0,"discount_amount":0.0,"total":1000.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6966}} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6966,"item_index":1,"menu_item_id":397} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6966,"item_index":2,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6966}} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6966,"item_index":2,"menu_item_id":106} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6966,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6966}} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6966,"item_index":3,"menu_item_id":56} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6966,"item_index":4,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6966}} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6966,"item_index":4,"menu_item_id":60} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6966,"item_index":5,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6966}} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6966,"item_index":5,"menu_item_id":51} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6966,"item_index":6,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6966}} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6966,"item_index":6,"menu_item_id":396} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6966,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6966}} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6966,"item_index":7,"menu_item_id":5} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6966,"item_index":8,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":5,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":1245.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6966}} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6966,"item_index":8,"menu_item_id":13} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6966,"item_index":9,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":3,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":687.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6966}} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6966,"item_index":9,"menu_item_id":9} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6966,"item_index":10,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6966}} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6966,"item_index":10,"menu_item_id":2} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6966,"item_index":11,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6966}} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6966,"item_index":11,"menu_item_id":61} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6966,"item_index":12,"item_data":{"menu_item_id":138,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Large","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6966}} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6966,"item_index":12,"menu_item_id":138} 
[2026-04-06 17:14:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6965,"new_order_id":6966,"order_number":"AZS-060426-001"} 
[2026-04-06 17:15:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T05:15:12.687Z","date_to":"2026-04-06T17:15:12.687Z","per_page":"100"} 
[2026-04-06 17:15:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T05:15:12.706Z","date_to":"2026-04-06T17:15:12.706Z","per_page":"100"} 
[2026-04-06 17:15:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":9,"unpaid_count":4,"unique_order_numbers":13} 
[2026-04-06 17:15:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":9,"unpaid_count":4,"unique_order_numbers":13} 
[2026-04-06 17:15:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T05:15:12.687Z","date_to":"2026-04-06T17:15:12.687Z","per_page":"100"} 
[2026-04-06 17:15:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":9,"unpaid_count":4,"unique_order_numbers":13} 
[2026-04-06 17:17:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6954,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":33281},{"menu_item_id":49,"quantity":3,"discount_percent":0,"notes":null,"id":33282},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":33281,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":33282,"menu_item_id":49,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-06 17:17:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6954,"items_count":3} 
[2026-04-06 17:17:26] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33281,"menu_item_id":113,"quantity":1},{"id":33282,"menu_item_id":49,"quantity":3},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-04-06 17:17:26] local.INFO: PosOrderController::update - Item changes check {"order_id":6954,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["113|1|","49|3|"],"new_items_map_keys":["113|1|","49|3|","2|2|"]} 
[2026-04-06 17:17:26] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6954,"order_number":"AZS-060426-010"} 
[2026-04-06 17:17:26] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-010","replaced_order_id":6954} 
[2026-04-06 17:17:26] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6967,"items_count":3,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":49,"quantity":3,"price":"70.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-04-06 17:17:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6967,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6967}} 
[2026-04-06 17:17:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6967,"item_index":0,"menu_item_id":113} 
[2026-04-06 17:17:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6967,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6967}} 
[2026-04-06 17:17:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6967,"item_index":1,"menu_item_id":49} 
[2026-04-06 17:17:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6967,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6967}} 
[2026-04-06 17:17:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6967,"item_index":2,"menu_item_id":2} 
[2026-04-06 17:17:26] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6954,"new_order_id":6967,"order_number":"AZS-060426-010"} 
[2026-04-06 17:19:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6967,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33371},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":33372},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":33373}],"validated_items":[{"id":33371,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33372,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":33373,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-06 17:19:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6967,"items_count":3} 
[2026-04-06 17:19:38] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33371,"menu_item_id":113,"quantity":1},{"id":33372,"menu_item_id":49,"quantity":3},{"id":33373,"menu_item_id":2,"quantity":2}]} 
[2026-04-06 17:19:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6967,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["113|1|","49|3|","2|2|"],"new_items_map_keys":["113|1|","49|3|","2|2|"]} 
[2026-04-06 17:19:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6967,"order_number":"AZS-060426-010"} 
[2026-04-06 17:19:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6967,"order_number":"AZS-060426-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-06 17:19:38"} 
[2026-04-06 17:19:58] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6967,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":33371},{"menu_item_id":49,"quantity":3,"discount_percent":0,"notes":null,"id":33372},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null,"id":33373},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33371,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":33372,"menu_item_id":49,"quantity":3,"discount_percent":0,"notes":null},{"id":33373,"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 17:19:58] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6967,"items_count":4} 
[2026-04-06 17:19:58] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33371,"menu_item_id":113,"quantity":1},{"id":33372,"menu_item_id":49,"quantity":3},{"id":33373,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-06 17:19:58] local.INFO: PosOrderController::update - Item changes check {"order_id":6967,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["113|1|","49|3|","2|2|"],"new_items_map_keys":["113|1|","49|3|","2|2|","5|1|"]} 
[2026-04-06 17:19:58] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6967,"order_number":"AZS-060426-010"} 
[2026-04-06 17:19:58] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-010","replaced_order_id":6967} 
[2026-04-06 17:19:58] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6968,"items_count":4,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":49,"quantity":3,"price":"70.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-06 17:19:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6968,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6968}} 
[2026-04-06 17:19:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6968,"item_index":0,"menu_item_id":113} 
[2026-04-06 17:19:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6968,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":3,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":210.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6968}} 
[2026-04-06 17:19:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6968,"item_index":1,"menu_item_id":49} 
[2026-04-06 17:19:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6968,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6968}} 
[2026-04-06 17:19:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6968,"item_index":2,"menu_item_id":2} 
[2026-04-06 17:19:58] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6968,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6968}} 
[2026-04-06 17:19:58] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6968,"item_index":3,"menu_item_id":5} 
[2026-04-06 17:19:58] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6967,"new_order_id":6968,"order_number":"AZS-060426-010"} 
[2026-04-06 17:20:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6968,"item_index":0,"item_id":33371} 
[2026-04-06 17:20:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6968,"item_index":1,"item_id":33372} 
[2026-04-06 17:20:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6968,"item_index":2,"item_id":33373} 
[2026-04-06 17:20:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6968,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33371},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":33372},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":33373},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-06 17:20:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6968,"items_count":4} 
[2026-04-06 17:20:03] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[33374,33375,33376,33377],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":49,"quantity":3},{"id":null,"menu_item_id":2,"quantity":2},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-06 17:20:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6968,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","49|3|","2|2|","5|1|"],"new_items_map_keys":["113|1|","49|3|","2|2|","5|1|"]} 
[2026-04-06 17:20:03] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6968,"order_number":"AZS-060426-010"} 
[2026-04-06 17:20:03] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6968,"order_number":"AZS-060426-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-06 17:20:03"} 
[2026-04-06 17:24:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6958,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":33299},{"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":33300}],"validated_items":[{"id":33299,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":33300,"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-06 17:24:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6958,"items_count":2} 
[2026-04-06 17:24:35] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33299,"menu_item_id":13,"quantity":2},{"id":33300,"menu_item_id":23,"quantity":1}]} 
[2026-04-06 17:24:35] local.INFO: PosOrderController::update - Item changes check {"order_id":6958,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["13|2|","23|1|"],"new_items_map_keys":["13|2|","23|1|"]} 
[2026-04-06 17:24:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6958,"order_number":"AZS-060426-012"} 
[2026-04-06 17:24:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6958,"order_number":"AZS-060426-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-06 17:24:35"} 
[2026-04-06 17:24:43] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6958,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null,"id":33299},{"menu_item_id":23,"quantity":1,"discount_percent":0,"notes":null,"id":33300},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33299,"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"id":33300,"menu_item_id":23,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 17:24:43] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6958,"items_count":3} 
[2026-04-06 17:24:43] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33299,"menu_item_id":13,"quantity":2},{"id":33300,"menu_item_id":23,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-04-06 17:24:43] local.INFO: PosOrderController::update - Item changes check {"order_id":6958,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["13|2|","23|1|"],"new_items_map_keys":["13|2|","23|1|","4|1|"]} 
[2026-04-06 17:24:43] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6958,"order_number":"AZS-060426-012"} 
[2026-04-06 17:24:43] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-012","replaced_order_id":6958} 
[2026-04-06 17:24:43] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6969,"items_count":3,"items":[{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":23,"quantity":1,"price":"249.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-04-06 17:24:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6969,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6969}} 
[2026-04-06 17:24:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6969,"item_index":0,"menu_item_id":13} 
[2026-04-06 17:24:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6969,"item_index":1,"item_data":{"menu_item_id":23,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Vanilla","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6969}} 
[2026-04-06 17:24:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6969,"item_index":1,"menu_item_id":23} 
[2026-04-06 17:24:43] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6969,"item_index":2,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6969}} 
[2026-04-06 17:24:43] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6969,"item_index":2,"menu_item_id":4} 
[2026-04-06 17:24:43] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6958,"new_order_id":6969,"order_number":"AZS-060426-012"} 
[2026-04-06 17:24:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6969,"item_index":0,"item_id":33299} 
[2026-04-06 17:24:48] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6969,"item_index":1,"item_id":33300} 
[2026-04-06 17:24:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":6969,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":33299},{"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":33300},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-04-06 17:24:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6969,"items_count":3} 
[2026-04-06 17:24:48] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[33378,33379,33380],"items":[{"id":null,"menu_item_id":13,"quantity":2},{"id":null,"menu_item_id":23,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-04-06 17:24:48] local.INFO: PosOrderController::update - Item changes check {"order_id":6969,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["13|2|","23|1|","4|1|"],"new_items_map_keys":["13|2|","23|1|","4|1|"]} 
[2026-04-06 17:24:48] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6969,"order_number":"AZS-060426-012"} 
[2026-04-06 17:24:48] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6969,"order_number":"AZS-060426-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-06 17:24:48"} 
[2026-04-06 17:25:52] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6968,"order_number":"AZS-060426-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 17:25:52"} 
[2026-04-06 17:25:52] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6968,"order_number":"AZS-060426-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 17:25:52"} 
[2026-04-06 17:25:52] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6968,"order_number":"AZS-060426-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 17:25:52"} 
[2026-04-06 17:25:52] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6968,"order_number":"AZS-060426-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 17:25:52"} 
[2026-04-06 17:25:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6968,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33374},{"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null,"id":33375},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":33376},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33377}],"validated_items":[{"id":33374,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33375,"menu_item_id":49,"quantity":3,"price":70,"discount_percent":0,"notes":null},{"id":33376,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null},{"id":33377,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-06 17:25:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6968,"items_count":4} 
[2026-04-06 17:25:52] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33374,"menu_item_id":113,"quantity":1},{"id":33375,"menu_item_id":49,"quantity":3},{"id":33376,"menu_item_id":2,"quantity":2},{"id":33377,"menu_item_id":5,"quantity":1}]} 
[2026-04-06 17:25:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6968,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","49|3|","2|2|","5|1|"],"new_items_map_keys":["113|1|","49|3|","2|2|","5|1|"]} 
[2026-04-06 17:25:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6968,"order_number":"AZS-060426-010"} 
[2026-04-06 17:25:52] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6968,"order_number":"AZS-060426-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-06 17:25:52","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-06 17:25:52"} 
[2026-04-06 17:25:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6968,"order_number":"AZS-060426-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-06 17:25:52"} 
[2026-04-06 17:25:52] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6968,"order_number":"AZS-060426-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-06 17:25:52","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-04-06 17:25:52"} 
[2026-04-06 17:26:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T05:26:24.691Z","date_to":"2026-04-06T17:26:24.691Z","per_page":"100"} 
[2026-04-06 17:26:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T05:26:24.712Z","date_to":"2026-04-06T17:26:24.712Z","per_page":"100"} 
[2026-04-06 17:26:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-04-06 17:26:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-04-06 17:26:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T05:26:24.691Z","date_to":"2026-04-06T17:26:24.691Z","per_page":"100"} 
[2026-04-06 17:26:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-04-06 17:29:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6969,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null,"id":33378},{"menu_item_id":23,"quantity":1,"discount_percent":0,"notes":null,"id":33379},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null,"id":33380},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33378,"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"id":33379,"menu_item_id":23,"quantity":1,"discount_percent":0,"notes":null},{"id":33380,"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 17:29:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6969,"items_count":4} 
[2026-04-06 17:29:34] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33378,"menu_item_id":13,"quantity":2},{"id":33379,"menu_item_id":23,"quantity":1},{"id":33380,"menu_item_id":4,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1}]} 
[2026-04-06 17:29:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6969,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["13|2|","23|1|","4|1|"],"new_items_map_keys":["13|2|","23|1|","4|1|","403|1|"]} 
[2026-04-06 17:29:34] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6969,"order_number":"AZS-060426-012"} 
[2026-04-06 17:29:34] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-012","replaced_order_id":6969} 
[2026-04-06 17:29:34] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6970,"items_count":4,"items":[{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":23,"quantity":1,"price":"249.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"}]} 
[2026-04-06 17:29:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6970,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6970}} 
[2026-04-06 17:29:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6970,"item_index":0,"menu_item_id":13} 
[2026-04-06 17:29:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6970,"item_index":1,"item_data":{"menu_item_id":23,"restaurant_category_id":5,"restaurant_category_name":"ICE CREAM Scoops","item_name":"Vanilla","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6970}} 
[2026-04-06 17:29:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6970,"item_index":1,"menu_item_id":23} 
[2026-04-06 17:29:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6970,"item_index":2,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6970}} 
[2026-04-06 17:29:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6970,"item_index":2,"menu_item_id":4} 
[2026-04-06 17:29:34] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6970,"item_index":3,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6970}} 
[2026-04-06 17:29:34] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6970,"item_index":3,"menu_item_id":403} 
[2026-04-06 17:29:34] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6969,"new_order_id":6970,"order_number":"AZS-060426-012"} 
[2026-04-06 17:33:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6963,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":94,"quantity":1,"discount_percent":0,"notes":null,"id":33327},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":33328},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33329},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33330},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33327,"menu_item_id":94,"quantity":1,"discount_percent":0,"notes":null},{"id":33328,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":33329,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":33330,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 17:33:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6963,"items_count":5} 
[2026-04-06 17:33:32] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[33331],"items":[{"id":33327,"menu_item_id":94,"quantity":1},{"id":33328,"menu_item_id":396,"quantity":3},{"id":33329,"menu_item_id":61,"quantity":1},{"id":33330,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-06 17:33:32] local.INFO: PosOrderController::update - Item changes check {"order_id":6963,"has_item_changes":true,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["94|1|","396|3|","61|1|","56|1|","5|1|"],"new_items_map_keys":["94|1|","396|3|","61|1|","56|1|","3|1|"]} 
[2026-04-06 17:33:32] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6963,"order_number":"AZS-060426-013"} 
[2026-04-06 17:33:32] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-013","replaced_order_id":6963} 
[2026-04-06 17:33:32] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6971,"items_count":5,"items":[{"menu_item_id":94,"quantity":1,"price":"1999.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-06 17:33:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6971,"item_index":0,"item_data":{"menu_item_id":94,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Jalfrezi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6971}} 
[2026-04-06 17:33:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6971,"item_index":0,"menu_item_id":94} 
[2026-04-06 17:33:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6971,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6971}} 
[2026-04-06 17:33:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6971,"item_index":1,"menu_item_id":396} 
[2026-04-06 17:33:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6971,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6971}} 
[2026-04-06 17:33:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6971,"item_index":2,"menu_item_id":61} 
[2026-04-06 17:33:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6971,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6971}} 
[2026-04-06 17:33:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6971,"item_index":3,"menu_item_id":56} 
[2026-04-06 17:33:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6971,"item_index":4,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6971}} 
[2026-04-06 17:33:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6971,"item_index":4,"menu_item_id":3} 
[2026-04-06 17:33:32] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6963,"new_order_id":6971,"order_number":"AZS-060426-013"} 
[2026-04-06 17:48:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6971,"item_index":0,"item_id":33327} 
[2026-04-06 17:48:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6971,"item_index":1,"item_id":33328} 
[2026-04-06 17:48:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6971,"item_index":2,"item_id":33329} 
[2026-04-06 17:48:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6971,"item_index":3,"item_id":33330} 
[2026-04-06 17:48:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6971,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":33327},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":33328},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33329},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33330},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-06 17:48:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6971,"items_count":5} 
[2026-04-06 17:48:44] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[33385,33386,33387,33388,33389],"items":[{"id":null,"menu_item_id":94,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-06 17:48:44] local.INFO: PosOrderController::update - Item changes check {"order_id":6971,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["94|1|","396|3|","61|1|","56|1|","3|1|"],"new_items_map_keys":["94|1|","396|3|","61|1|","56|1|","3|1|"]} 
[2026-04-06 17:48:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6971,"order_number":"AZS-060426-013"} 
[2026-04-06 17:48:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6971,"order_number":"AZS-060426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-06 17:48:44"} 
[2026-04-06 17:53:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6971,"item_index":0,"item_id":33327} 
[2026-04-06 17:53:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6971,"item_index":1,"item_id":33328} 
[2026-04-06 17:53:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6971,"item_index":2,"item_id":33329} 
[2026-04-06 17:53:09] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6971,"item_index":3,"item_id":33330} 
[2026-04-06 17:53:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6971,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":33327},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":33328},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33329},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33330},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-06 17:53:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6971,"items_count":5} 
[2026-04-06 17:53:09] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[33385,33386,33387,33388,33389],"items":[{"id":null,"menu_item_id":94,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-06 17:53:09] local.INFO: PosOrderController::update - Item changes check {"order_id":6971,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["94|1|","396|3|","61|1|","56|1|","3|1|"],"new_items_map_keys":["94|1|","396|3|","61|1|","56|1|","3|1|"]} 
[2026-04-06 17:53:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6971,"order_number":"AZS-060426-013"} 
[2026-04-06 17:53:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6971,"order_number":"AZS-060426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-06 17:53:09"} 
[2026-04-06 18:23:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6971,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":33385},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":33386},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33387},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33388},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":33389}],"validated_items":[{"id":33385,"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":33386,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":33387,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33388,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33389,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-06 18:23:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6971,"items_count":5} 
[2026-04-06 18:23:06] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33385,"menu_item_id":94,"quantity":1},{"id":33386,"menu_item_id":396,"quantity":3},{"id":33387,"menu_item_id":61,"quantity":1},{"id":33388,"menu_item_id":56,"quantity":1},{"id":33389,"menu_item_id":3,"quantity":1}]} 
[2026-04-06 18:23:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6971,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["94|1|","396|3|","61|1|","56|1|","3|1|"],"new_items_map_keys":["94|1|","396|3|","61|1|","56|1|","3|1|"]} 
[2026-04-06 18:23:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6971,"order_number":"AZS-060426-013"} 
[2026-04-06 18:23:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6971,"order_number":"AZS-060426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-06 18:23:06"} 
[2026-04-06 18:23:20] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6971,"order_number":"AZS-060426-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 18:23:20"} 
[2026-04-06 18:23:20] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6971,"order_number":"AZS-060426-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 18:23:20"} 
[2026-04-06 18:23:20] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6971,"order_number":"AZS-060426-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 18:23:20"} 
[2026-04-06 18:23:20] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6971,"order_number":"AZS-060426-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 18:23:20"} 
[2026-04-06 18:23:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6971,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":33385},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":33386},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33387},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33388},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":33389}],"validated_items":[{"id":33385,"menu_item_id":94,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":33386,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":33387,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33388,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33389,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-06 18:23:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6971,"items_count":5} 
[2026-04-06 18:23:20] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33385,"menu_item_id":94,"quantity":1},{"id":33386,"menu_item_id":396,"quantity":3},{"id":33387,"menu_item_id":61,"quantity":1},{"id":33388,"menu_item_id":56,"quantity":1},{"id":33389,"menu_item_id":3,"quantity":1}]} 
[2026-04-06 18:23:20] local.INFO: PosOrderController::update - Item changes check {"order_id":6971,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["94|1|","396|3|","61|1|","56|1|","3|1|"],"new_items_map_keys":["94|1|","396|3|","61|1|","56|1|","3|1|"]} 
[2026-04-06 18:23:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6971,"order_number":"AZS-060426-013"} 
[2026-04-06 18:23:20] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6971,"order_number":"AZS-060426-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-06 18:23:20","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-06 18:23:20"} 
[2026-04-06 18:23:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6971,"order_number":"AZS-060426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-06 18:23:20"} 
[2026-04-06 18:23:20] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6971,"order_number":"AZS-060426-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-06 18:23:20","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-04-06 18:23:20"} 
[2026-04-06 18:23:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T06:23:35.388Z","date_to":"2026-04-06T18:23:35.388Z","per_page":"100"} 
[2026-04-06 18:23:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T06:23:35.408Z","date_to":"2026-04-06T18:23:35.408Z","per_page":"100"} 
[2026-04-06 18:23:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-014","AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":11,"unpaid_count":3,"unique_order_numbers":14} 
[2026-04-06 18:23:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-014","AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":11,"unpaid_count":3,"unique_order_numbers":14} 
[2026-04-06 18:23:33] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T06:23:35.388Z","date_to":"2026-04-06T18:23:35.388Z","per_page":"100"} 
[2026-04-06 18:23:33] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-014","AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending"],"deleted_count":0,"paid_count":11,"unpaid_count":3,"unique_order_numbers":14} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6972,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":33390},{"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null,"id":33391},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":33392},{"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null,"id":33393},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":33394},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33395},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33396},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33397},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":33390,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":33391,"menu_item_id":62,"quantity":1,"discount_percent":0,"notes":null},{"id":33392,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":33393,"menu_item_id":52,"quantity":2,"discount_percent":0,"notes":null},{"id":33394,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":33395,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":33396,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33397,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6972,"items_count":9} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33390,"menu_item_id":113,"quantity":1},{"id":33391,"menu_item_id":62,"quantity":1},{"id":33392,"menu_item_id":64,"quantity":1},{"id":33393,"menu_item_id":52,"quantity":2},{"id":33394,"menu_item_id":396,"quantity":1},{"id":33395,"menu_item_id":61,"quantity":1},{"id":33396,"menu_item_id":56,"quantity":1},{"id":33397,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":3}]} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6972,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["113|1|","62|1|","64|1|","52|2|","396|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["113|1|","62|1|","64|1|","52|2|","396|1|","61|1|","56|1|","5|1|","2|3|"]} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6972,"order_number":"AZS-060426-014"} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-014","replaced_order_id":6972} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6973,"items_count":9,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":62,"quantity":1,"price":"1499.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":52,"quantity":2,"price":"70.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":3,"price":"130.00"}]} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6973,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6973}} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6973,"item_index":0,"menu_item_id":113} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6973,"item_index":1,"item_data":{"menu_item_id":62,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Malai Boti (10 pcs)","quantity":1,"price":"1499.00","discount_percent":0.0,"discount_amount":0.0,"total":1499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6973}} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6973,"item_index":1,"menu_item_id":62} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6973,"item_index":2,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6973}} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6973,"item_index":2,"menu_item_id":64} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6973,"item_index":3,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6973}} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6973,"item_index":3,"menu_item_id":52} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6973,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6973}} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6973,"item_index":4,"menu_item_id":396} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6973,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6973}} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6973,"item_index":5,"menu_item_id":61} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6973,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6973}} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6973,"item_index":6,"menu_item_id":56} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6973,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6973}} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6973,"item_index":7,"menu_item_id":5} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6973,"item_index":8,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":3,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":390.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6973}} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6973,"item_index":8,"menu_item_id":2} 
[2026-04-06 18:53:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6972,"new_order_id":6973,"order_number":"AZS-060426-014"} 
[2026-04-06 19:17:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6970,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":33381},{"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":33382},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":33383},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":33384}],"validated_items":[{"id":33381,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":33382,"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":33383,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"id":33384,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null}]} 
[2026-04-06 19:17:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6970,"items_count":4} 
[2026-04-06 19:17:33] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33381,"menu_item_id":13,"quantity":2},{"id":33382,"menu_item_id":23,"quantity":1},{"id":33383,"menu_item_id":4,"quantity":1},{"id":33384,"menu_item_id":403,"quantity":1}]} 
[2026-04-06 19:17:33] local.INFO: PosOrderController::update - Item changes check {"order_id":6970,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["13|2|","23|1|","4|1|","403|1|"],"new_items_map_keys":["13|2|","23|1|","4|1|","403|1|"]} 
[2026-04-06 19:17:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6970,"order_number":"AZS-060426-012"} 
[2026-04-06 19:17:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6970,"order_number":"AZS-060426-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-06 19:17:33"} 
[2026-04-06 19:23:34] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6973,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33398},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":33399},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":33400},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":33401},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33402},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33403},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33404},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33405},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":33406}],"validated_items":[{"id":33398,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33399,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":33400,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":33401,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":33402,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":33403,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33404,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33405,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33406,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-06 19:23:34] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6973,"items_count":9} 
[2026-04-06 19:23:34] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33398,"menu_item_id":113,"quantity":1},{"id":33399,"menu_item_id":62,"quantity":1},{"id":33400,"menu_item_id":64,"quantity":1},{"id":33401,"menu_item_id":52,"quantity":2},{"id":33402,"menu_item_id":396,"quantity":1},{"id":33403,"menu_item_id":61,"quantity":1},{"id":33404,"menu_item_id":56,"quantity":1},{"id":33405,"menu_item_id":5,"quantity":1},{"id":33406,"menu_item_id":2,"quantity":3}]} 
[2026-04-06 19:23:34] local.INFO: PosOrderController::update - Item changes check {"order_id":6973,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["113|1|","62|1|","64|1|","52|2|","396|1|","61|1|","56|1|","5|1|","2|3|"],"new_items_map_keys":["113|1|","62|1|","64|1|","52|2|","396|1|","61|1|","56|1|","5|1|","2|3|"]} 
[2026-04-06 19:23:34] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6973,"order_number":"AZS-060426-014"} 
[2026-04-06 19:23:34] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6973,"order_number":"AZS-060426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-06 19:23:34"} 
[2026-04-06 19:36:25] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6970,"order_number":"AZS-060426-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 19:36:25"} 
[2026-04-06 19:36:25] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6970,"order_number":"AZS-060426-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 19:36:25"} 
[2026-04-06 19:36:25] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6970,"order_number":"AZS-060426-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 19:36:25"} 
[2026-04-06 19:36:25] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6970,"order_number":"AZS-060426-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 19:36:25"} 
[2026-04-06 19:36:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6970,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null,"id":33381},{"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":33382},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":33383},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":33384}],"validated_items":[{"id":33381,"menu_item_id":13,"quantity":2,"price":249,"discount_percent":0,"notes":null},{"id":33382,"menu_item_id":23,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":33383,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null},{"id":33384,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null}]} 
[2026-04-06 19:36:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6970,"items_count":4} 
[2026-04-06 19:36:25] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33381,"menu_item_id":13,"quantity":2},{"id":33382,"menu_item_id":23,"quantity":1},{"id":33383,"menu_item_id":4,"quantity":1},{"id":33384,"menu_item_id":403,"quantity":1}]} 
[2026-04-06 19:36:25] local.INFO: PosOrderController::update - Item changes check {"order_id":6970,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["13|2|","23|1|","4|1|","403|1|"],"new_items_map_keys":["13|2|","23|1|","4|1|","403|1|"]} 
[2026-04-06 19:36:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6970,"order_number":"AZS-060426-012"} 
[2026-04-06 19:36:25] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6970,"order_number":"AZS-060426-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-06 19:36:25","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-06 19:36:25"} 
[2026-04-06 19:36:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6970,"order_number":"AZS-060426-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-06 19:36:25"} 
[2026-04-06 19:36:25] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6970,"order_number":"AZS-060426-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-06 19:36:25","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1200.00","database_verification_match":true,"timestamp":"2026-04-06 19:36:25"} 
[2026-04-06 19:36:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":13,"items_to_remove_count":0,"order_id":6966,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":107,"quantity":2,"discount_percent":0,"notes":null,"id":33358},{"menu_item_id":397,"quantity":250,"discount_percent":0,"notes":null,"id":33359},{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":33360},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":33361},{"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null,"id":33362},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null,"id":33363},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":33364},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33365},{"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null,"id":33366},{"menu_item_id":9,"quantity":3,"discount_percent":0,"notes":null,"id":33367},{"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null,"id":33368},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33369},{"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null,"id":33370}],"validated_items":[{"id":33358,"menu_item_id":107,"quantity":2,"discount_percent":0,"notes":null},{"id":33359,"menu_item_id":397,"quantity":250,"discount_percent":0,"notes":null},{"id":33360,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":33361,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":33362,"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null},{"id":33363,"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"id":33364,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":33365,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33366,"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null},{"id":33367,"menu_item_id":9,"quantity":3,"discount_percent":0,"notes":null},{"id":33368,"menu_item_id":2,"quantity":3,"discount_percent":0,"notes":null},{"id":33369,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":33370,"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-06 19:36:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6966,"items_count":13} 
[2026-04-06 19:36:36] local.INFO: PosOrderController::update - Processing items {"items_count":13,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33358,"menu_item_id":107,"quantity":2},{"id":33359,"menu_item_id":397,"quantity":250},{"id":33360,"menu_item_id":106,"quantity":1},{"id":33361,"menu_item_id":56,"quantity":2},{"id":33362,"menu_item_id":60,"quantity":1},{"id":33363,"menu_item_id":51,"quantity":2},{"id":33364,"menu_item_id":396,"quantity":1},{"id":33365,"menu_item_id":5,"quantity":1},{"id":33366,"menu_item_id":13,"quantity":5},{"id":33367,"menu_item_id":9,"quantity":3},{"id":33368,"menu_item_id":2,"quantity":3},{"id":33369,"menu_item_id":61,"quantity":1},{"id":33370,"menu_item_id":138,"quantity":1}]} 
[2026-04-06 19:36:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6966,"has_item_changes":false,"old_items_count":13,"new_items_count":13,"old_items_map_keys":["107|2|","397|250|","106|1|","56|2|","60|1|","51|2|","396|1|","5|1|","13|5|","9|3|","2|3|","61|1|","138|1|"],"new_items_map_keys":["107|2|","397|250|","106|1|","56|2|","60|1|","51|2|","396|1|","5|1|","13|5|","9|3|","2|3|","61|1|","138|1|"]} 
[2026-04-06 19:36:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6966,"order_number":"AZS-060426-001"} 
[2026-04-06 19:36:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6966,"order_number":"AZS-060426-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-04-06 19:36:36"} 
[2026-04-06 19:37:47] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6966,"order_number":"AZS-060426-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":15581,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 19:37:47"} 
[2026-04-06 19:37:47] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6966,"order_number":"AZS-060426-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":15581,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 19:37:47"} 
[2026-04-06 19:37:47] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6966,"order_number":"AZS-060426-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":15581,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 19:37:47"} 
[2026-04-06 19:37:47] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6966,"order_number":"AZS-060426-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":15581,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 19:37:47"} 
[2026-04-06 19:37:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":13,"items_to_remove_count":0,"order_id":6966,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":107,"quantity":2,"price":2199,"discount_percent":0,"notes":null,"id":33358},{"menu_item_id":397,"quantity":250,"price":4,"discount_percent":0,"notes":null,"id":33359},{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":33360},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33361},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33362},{"menu_item_id":51,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33363},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33364},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33365},{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":33366},{"menu_item_id":9,"quantity":3,"price":229,"discount_percent":0,"notes":null,"id":33367},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":33368},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33369},{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":33370}],"validated_items":[{"id":33358,"menu_item_id":107,"quantity":2,"price":2199,"discount_percent":0,"notes":null},{"id":33359,"menu_item_id":397,"quantity":250,"price":4,"discount_percent":0,"notes":null},{"id":33360,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":33361,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33362,"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33363,"menu_item_id":51,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33364,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":33365,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33366,"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null},{"id":33367,"menu_item_id":9,"quantity":3,"price":229,"discount_percent":0,"notes":null},{"id":33368,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null},{"id":33369,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33370,"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null}]} 
[2026-04-06 19:37:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6966,"items_count":13} 
[2026-04-06 19:37:47] local.INFO: PosOrderController::update - Processing items {"items_count":13,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33358,"menu_item_id":107,"quantity":2},{"id":33359,"menu_item_id":397,"quantity":250},{"id":33360,"menu_item_id":106,"quantity":1},{"id":33361,"menu_item_id":56,"quantity":2},{"id":33362,"menu_item_id":60,"quantity":1},{"id":33363,"menu_item_id":51,"quantity":2},{"id":33364,"menu_item_id":396,"quantity":1},{"id":33365,"menu_item_id":5,"quantity":1},{"id":33366,"menu_item_id":13,"quantity":5},{"id":33367,"menu_item_id":9,"quantity":3},{"id":33368,"menu_item_id":2,"quantity":3},{"id":33369,"menu_item_id":61,"quantity":1},{"id":33370,"menu_item_id":138,"quantity":1}]} 
[2026-04-06 19:37:47] local.INFO: PosOrderController::update - Item changes check {"order_id":6966,"has_item_changes":false,"old_items_count":13,"new_items_count":13,"old_items_map_keys":["107|2|","397|250|","106|1|","56|2|","60|1|","51|2|","396|1|","5|1|","13|5|","9|3|","2|3|","61|1|","138|1|"],"new_items_map_keys":["107|2|","397|250|","106|1|","56|2|","60|1|","51|2|","396|1|","5|1|","13|5|","9|3|","2|3|","61|1|","138|1|"]} 
[2026-04-06 19:37:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6966,"order_number":"AZS-060426-001"} 
[2026-04-06 19:37:47] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6966,"order_number":"AZS-060426-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":15581,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-06 19:37:47","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-06 19:37:47"} 
[2026-04-06 19:37:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6966,"order_number":"AZS-060426-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-06 19:37:47"} 
[2026-04-06 19:37:47] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6966,"order_number":"AZS-060426-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"15581.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-06 19:37:47","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":15581,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"15581.00","database_verification_match":true,"timestamp":"2026-04-06 19:37:47"} 
[2026-04-06 19:37:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T07:37:54.194Z","date_to":"2026-04-06T19:37:54.194Z","per_page":"100"} 
[2026-04-06 19:37:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T07:37:54.223Z","date_to":"2026-04-06T19:37:54.223Z","per_page":"100"} 
[2026-04-06 19:37:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-014","AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":1,"unique_order_numbers":14} 
[2026-04-06 19:37:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-014","AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":1,"unique_order_numbers":14} 
[2026-04-06 19:37:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T07:37:54.194Z","date_to":"2026-04-06T19:37:54.194Z","per_page":"100"} 
[2026-04-06 19:37:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-014","AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":1,"unique_order_numbers":14} 
[2026-04-06 19:42:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T07:42:42.344Z","date_to":"2026-04-06T19:42:42.344Z","per_page":"100"} 
[2026-04-06 19:42:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T07:42:42.362Z","date_to":"2026-04-06T19:42:42.362Z","per_page":"100"} 
[2026-04-06 19:42:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-014","AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":1,"unique_order_numbers":14} 
[2026-04-06 19:42:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-014","AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":1,"unique_order_numbers":14} 
[2026-04-06 19:42:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T07:42:42.344Z","date_to":"2026-04-06T19:42:42.344Z","per_page":"100"} 
[2026-04-06 19:42:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-014","AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":1,"unique_order_numbers":14} 
[2026-04-06 20:00:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T08:00:46.868Z","date_to":"2026-04-06T20:00:46.868Z","per_page":"100"} 
[2026-04-06 20:00:44] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T08:00:46.847Z","date_to":"2026-04-06T20:00:46.847Z","per_page":"100"} 
[2026-04-06 20:00:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-014","AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":1,"unique_order_numbers":14} 
[2026-04-06 20:00:44] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-014","AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":1,"unique_order_numbers":14} 
[2026-04-06 20:00:45] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T08:00:46.847Z","date_to":"2026-04-06T20:00:46.847Z","per_page":"100"} 
[2026-04-06 20:00:45] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-014","AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":13,"unpaid_count":1,"unique_order_numbers":14} 
[2026-04-06 20:02:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6973,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33398},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":33399},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":33400},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":33401},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33402},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33403},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33404},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33405},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":33406}],"validated_items":[{"id":33398,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33399,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":33400,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":33401,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":33402,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":33403,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33404,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33405,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33406,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-06 20:02:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6973,"items_count":9} 
[2026-04-06 20:02:27] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33398,"menu_item_id":113,"quantity":1},{"id":33399,"menu_item_id":62,"quantity":1},{"id":33400,"menu_item_id":64,"quantity":1},{"id":33401,"menu_item_id":52,"quantity":2},{"id":33402,"menu_item_id":396,"quantity":1},{"id":33403,"menu_item_id":61,"quantity":1},{"id":33404,"menu_item_id":56,"quantity":1},{"id":33405,"menu_item_id":5,"quantity":1},{"id":33406,"menu_item_id":2,"quantity":3}]} 
[2026-04-06 20:02:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6973,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["113|1|","62|1|","64|1|","52|2|","396|1|","61|1|","56|1|","5|1|","2|3|"],"new_items_map_keys":["113|1|","62|1|","64|1|","52|2|","396|1|","61|1|","56|1|","5|1|","2|3|"]} 
[2026-04-06 20:02:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6973,"order_number":"AZS-060426-014"} 
[2026-04-06 20:02:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6973,"order_number":"AZS-060426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-06 20:02:27"} 
[2026-04-06 20:02:42] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6973,"order_number":"AZS-060426-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 20:02:42"} 
[2026-04-06 20:02:42] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6973,"order_number":"AZS-060426-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 20:02:42"} 
[2026-04-06 20:02:42] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6973,"order_number":"AZS-060426-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 20:02:42"} 
[2026-04-06 20:02:42] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6973,"order_number":"AZS-060426-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 20:02:42"} 
[2026-04-06 20:02:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6973,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33398},{"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null,"id":33399},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":33400},{"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":33401},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33402},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33403},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33404},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33405},{"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null,"id":33406}],"validated_items":[{"id":33398,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33399,"menu_item_id":62,"quantity":1,"price":1499,"discount_percent":0,"notes":null},{"id":33400,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":33401,"menu_item_id":52,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":33402,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":33403,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33404,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33405,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33406,"menu_item_id":2,"quantity":3,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-06 20:02:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6973,"items_count":9} 
[2026-04-06 20:02:42] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33398,"menu_item_id":113,"quantity":1},{"id":33399,"menu_item_id":62,"quantity":1},{"id":33400,"menu_item_id":64,"quantity":1},{"id":33401,"menu_item_id":52,"quantity":2},{"id":33402,"menu_item_id":396,"quantity":1},{"id":33403,"menu_item_id":61,"quantity":1},{"id":33404,"menu_item_id":56,"quantity":1},{"id":33405,"menu_item_id":5,"quantity":1},{"id":33406,"menu_item_id":2,"quantity":3}]} 
[2026-04-06 20:02:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6973,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["113|1|","62|1|","64|1|","52|2|","396|1|","61|1|","56|1|","5|1|","2|3|"],"new_items_map_keys":["113|1|","62|1|","64|1|","52|2|","396|1|","61|1|","56|1|","5|1|","2|3|"]} 
[2026-04-06 20:02:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6973,"order_number":"AZS-060426-014"} 
[2026-04-06 20:02:42] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6973,"order_number":"AZS-060426-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-06 20:02:42","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-06 20:02:42"} 
[2026-04-06 20:02:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6973,"order_number":"AZS-060426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-06 20:02:42"} 
[2026-04-06 20:02:42] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6973,"order_number":"AZS-060426-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-06 20:02:42","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-04-06 20:02:42"} 
[2026-04-06 20:02:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T08:02:52.764Z","date_to":"2026-04-06T20:02:52.764Z","per_page":"100"} 
[2026-04-06 20:02:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T08:02:52.750Z","date_to":"2026-04-06T20:02:52.750Z","per_page":"100"} 
[2026-04-06 20:02:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-014","AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":0,"unique_order_numbers":14} 
[2026-04-06 20:02:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-014","AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":0,"unique_order_numbers":14} 
[2026-04-06 20:02:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T08:02:52.750Z","date_to":"2026-04-06T20:02:52.750Z","per_page":"100"} 
[2026-04-06 20:02:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-014","AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":0,"unique_order_numbers":14} 
[2026-04-06 20:04:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T08:04:29.956Z","date_to":"2026-04-06T20:04:29.956Z","per_page":"100"} 
[2026-04-06 20:04:24] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T08:04:29.970Z","date_to":"2026-04-06T20:04:29.970Z","per_page":"100"} 
[2026-04-06 20:04:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-014","AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":0,"unique_order_numbers":14} 
[2026-04-06 20:04:24] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-014","AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":0,"unique_order_numbers":14} 
[2026-04-06 20:04:25] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T08:04:29.956Z","date_to":"2026-04-06T20:04:29.956Z","per_page":"100"} 
[2026-04-06 20:04:25] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-014","AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":0,"unique_order_numbers":14} 
[2026-04-06 20:44:17] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6975,"order_number":"AZS-060426-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":170,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 20:44:17"} 
[2026-04-06 20:44:17] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6975,"order_number":"AZS-060426-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":170,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 20:44:17"} 
[2026-04-06 20:44:17] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6975,"order_number":"AZS-060426-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":170,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 20:44:17"} 
[2026-04-06 20:44:17] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6975,"order_number":"AZS-060426-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":170,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 20:44:17"} 
[2026-04-06 20:44:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6975,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33412}],"validated_items":[{"id":33412,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-06 20:44:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6975,"items_count":1} 
[2026-04-06 20:44:17] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33412,"menu_item_id":5,"quantity":1}]} 
[2026-04-06 20:44:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6975,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["5|1|"],"new_items_map_keys":["5|1|"]} 
[2026-04-06 20:44:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6975,"order_number":"AZS-060426-016"} 
[2026-04-06 20:44:17] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6975,"order_number":"AZS-060426-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":170,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-06 20:44:17","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-06 20:44:17"} 
[2026-04-06 20:44:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6975,"order_number":"AZS-060426-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-06 20:44:17"} 
[2026-04-06 20:44:17] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6975,"order_number":"AZS-060426-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"170.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-06 20:44:17","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":170,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"170.00","database_verification_match":true,"timestamp":"2026-04-06 20:44:17"} 
[2026-04-06 21:00:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6974,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33407},{"menu_item_id":69,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":33408},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33409},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33410},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33411}],"validated_items":[{"id":33407,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33408,"menu_item_id":69,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":33409,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":33410,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33411,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-06 21:00:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6974,"items_count":5} 
[2026-04-06 21:00:54] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33407,"menu_item_id":96,"quantity":1},{"id":33408,"menu_item_id":69,"quantity":1},{"id":33409,"menu_item_id":396,"quantity":2},{"id":33410,"menu_item_id":61,"quantity":1},{"id":33411,"menu_item_id":5,"quantity":1}]} 
[2026-04-06 21:00:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6974,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["96|1|","69|1|","396|2|","61|1|","5|1|"],"new_items_map_keys":["96|1|","69|1|","396|2|","61|1|","5|1|"]} 
[2026-04-06 21:00:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6974,"order_number":"AZS-060426-015"} 
[2026-04-06 21:00:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6974,"order_number":"AZS-060426-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-06 21:00:54"} 
[2026-04-06 21:01:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":1,"order_id":6974,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33407},{"menu_item_id":69,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":33408},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33409},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33410}],"validated_items":[{"id":33407,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33408,"menu_item_id":69,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":33409,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":33410,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-06 21:01:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6974,"items_count":4} 
[2026-04-06 21:01:10] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":1,"items_to_remove":[33411],"items":[{"id":33407,"menu_item_id":96,"quantity":1},{"id":33408,"menu_item_id":69,"quantity":1},{"id":33409,"menu_item_id":396,"quantity":2},{"id":33410,"menu_item_id":61,"quantity":1}]} 
[2026-04-06 21:01:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6974,"has_item_changes":true,"old_items_count":5,"new_items_count":4,"old_items_map_keys":["96|1|","69|1|","396|2|","61|1|","5|1|"],"new_items_map_keys":["96|1|","69|1|","396|2|","61|1|"]} 
[2026-04-06 21:01:10] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6974,"order_number":"AZS-060426-015"} 
[2026-04-06 21:01:10] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-060426-015","replaced_order_id":6974} 
[2026-04-06 21:01:10] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6976,"items_count":4,"items":[{"menu_item_id":96,"quantity":1,"price":1199.0},{"menu_item_id":69,"quantity":1,"price":1699.0},{"menu_item_id":396,"quantity":2,"price":99.0},{"menu_item_id":61,"quantity":1,"price":199.0}]} 
[2026-04-06 21:01:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6976,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6976}} 
[2026-04-06 21:01:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6976,"item_index":0,"menu_item_id":96} 
[2026-04-06 21:01:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6976,"item_index":1,"item_data":{"menu_item_id":69,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Green boti","quantity":1,"price":1699.0,"discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6976}} 
[2026-04-06 21:01:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6976,"item_index":1,"menu_item_id":69} 
[2026-04-06 21:01:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6976,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6976}} 
[2026-04-06 21:01:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6976,"item_index":2,"menu_item_id":396} 
[2026-04-06 21:01:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6976,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6976}} 
[2026-04-06 21:01:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6976,"item_index":3,"menu_item_id":61} 
[2026-04-06 21:01:10] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6974,"new_order_id":6976,"order_number":"AZS-060426-015"} 
[2026-04-06 21:01:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6976,"item_index":0,"item_id":33407} 
[2026-04-06 21:01:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6976,"item_index":1,"item_id":33408} 
[2026-04-06 21:01:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6976,"item_index":2,"item_id":33409} 
[2026-04-06 21:01:14] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6976,"item_index":3,"item_id":33410} 
[2026-04-06 21:01:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6976,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33407},{"menu_item_id":69,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":33408},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33409},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33410}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":69,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-06 21:01:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6976,"items_count":4} 
[2026-04-06 21:01:14] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[33413,33414,33415,33416],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":69,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-04-06 21:01:14] local.INFO: PosOrderController::update - Item changes check {"order_id":6976,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","69|1|","396|2|","61|1|"],"new_items_map_keys":["96|1|","69|1|","396|2|","61|1|"]} 
[2026-04-06 21:01:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6976,"order_number":"AZS-060426-015"} 
[2026-04-06 21:01:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6976,"order_number":"AZS-060426-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-06 21:01:14"} 
[2026-04-06 21:08:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6976,"item_index":0,"item_id":33407} 
[2026-04-06 21:08:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6976,"item_index":1,"item_id":33408} 
[2026-04-06 21:08:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6976,"item_index":2,"item_id":33409} 
[2026-04-06 21:08:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6976,"item_index":3,"item_id":33410} 
[2026-04-06 21:08:17] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6976,"order_number":"AZS-060426-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3300,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 21:08:17"} 
[2026-04-06 21:08:17] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6976,"order_number":"AZS-060426-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3300,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-06 21:08:17"} 
[2026-04-06 21:08:17] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6976,"order_number":"AZS-060426-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 21:08:17"} 
[2026-04-06 21:08:17] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6976,"order_number":"AZS-060426-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3300,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-06 21:08:17"} 
[2026-04-06 21:08:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6976,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33407},{"menu_item_id":69,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":33408},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33409},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33410}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":69,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-06 21:08:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6976,"items_count":4} 
[2026-04-06 21:08:17] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[33413,33414,33415,33416],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":69,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-04-06 21:08:17] local.INFO: PosOrderController::update - Item changes check {"order_id":6976,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","69|1|","396|2|","61|1|"],"new_items_map_keys":["96|1|","69|1|","396|2|","61|1|"]} 
[2026-04-06 21:08:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6976,"order_number":"AZS-060426-015"} 
[2026-04-06 21:08:17] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6976,"order_number":"AZS-060426-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3300,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-06 21:08:17","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-06 21:08:17"} 
[2026-04-06 21:08:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6976,"order_number":"AZS-060426-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-06 21:08:17"} 
[2026-04-06 21:08:17] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6976,"order_number":"AZS-060426-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3300.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-06 21:08:17","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3300,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3300.00","database_verification_match":true,"timestamp":"2026-04-06 21:08:17"} 
[2026-04-06 21:08:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T09:08:36.171Z","date_to":"2026-04-06T21:08:36.171Z","per_page":"100"} 
[2026-04-06 21:08:31] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T09:08:36.185Z","date_to":"2026-04-06T21:08:36.185Z","per_page":"100"} 
[2026-04-06 21:08:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-016","AZS-060426-015","AZS-060426-014","AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":0,"unique_order_numbers":16} 
[2026-04-06 21:08:31] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-016","AZS-060426-015","AZS-060426-014","AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":0,"unique_order_numbers":16} 
[2026-04-06 21:08:32] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T09:08:36.171Z","date_to":"2026-04-06T21:08:36.171Z","per_page":"100"} 
[2026-04-06 21:08:32] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-016","AZS-060426-015","AZS-060426-014","AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":0,"unique_order_numbers":16} 
[2026-04-07 09:34:45] local.INFO: Login attempt {"email":"azanadmin@pos.com","ip":"182.176.113.26"} 
[2026-04-07 11:47:36] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T23:47:56.965Z","date_to":"2026-04-07T11:47:56.965Z","per_page":"100"} 
[2026-04-07 11:47:36] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-04-07 11:47:36] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T23:47:56.970Z","date_to":"2026-04-07T11:47:56.970Z","per_page":"100"} 
[2026-04-07 11:47:36] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-04-07 11:47:38] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T23:47:56.965Z","date_to":"2026-04-07T11:47:56.965Z","per_page":"100"} 
[2026-04-07 11:47:38] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-04-07 11:48:14] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T23:48:36.027Z","date_to":"2026-04-07T11:48:36.027Z","per_page":"100"} 
[2026-04-07 11:48:14] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-04-07 11:48:14] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T23:48:36.042Z","date_to":"2026-04-07T11:48:36.042Z","per_page":"100"} 
[2026-04-07 11:48:14] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-04-07 11:48:14] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T23:48:36.027Z","date_to":"2026-04-07T11:48:36.027Z","per_page":"100"} 
[2026-04-07 11:48:14] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":0,"count":0,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[],"order_numbers":[],"order_statuses":[],"deleted_count":0,"paid_count":0,"unpaid_count":0,"unique_order_numbers":0} 
[2026-04-07 11:48:50] local.INFO: Orders query for branch user {"user_id":6,"user_role":"branch_manager","branch_id":1,"request_branch_id":"1","date_from":"2026-04-06T11:49:11.721Z","date_to":"2026-04-07T11:49:11.721Z","per_page":"100"} 
[2026-04-07 11:48:50] local.INFO: Orders query results {"user_id":6,"user_role":"branch_manager","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-060426-016","AZS-060426-015","AZS-060426-014","AZS-060426-013","AZS-060426-012","AZS-060426-011","AZS-060426-010","AZS-060426-009","AZS-060426-008","AZS-060426-007","AZS-060426-006","AZS-060426-005","AZS-060426-004","AZS-060426-003","AZS-060426-002","AZS-060426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":16,"unpaid_count":0,"unique_order_numbers":16} 
[2026-04-07 12:35:15] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-04-07 12:53:00] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-04-07 13:10:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6977,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33417}],"validated_items":[{"id":33417,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-07 13:10:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6977,"items_count":1} 
[2026-04-07 13:10:41] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33417,"menu_item_id":6,"quantity":2}]} 
[2026-04-07 13:10:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6977,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-04-07 13:10:41] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6977,"order_number":"AZS-070426-001"} 
[2026-04-07 13:10:41] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6977,"order_number":"AZS-070426-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-07 13:10:41"} 
[2026-04-07 13:11:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6977,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33417}],"validated_items":[{"id":33417,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-07 13:11:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6977,"items_count":1} 
[2026-04-07 13:11:02] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33417,"menu_item_id":6,"quantity":2}]} 
[2026-04-07 13:11:02] local.INFO: PosOrderController::update - Item changes check {"order_id":6977,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-04-07 13:11:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6977,"order_number":"AZS-070426-001"} 
[2026-04-07 13:11:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6977,"order_number":"AZS-070426-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-07 13:11:02"} 
[2026-04-07 13:14:06] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6977,"order_number":"AZS-070426-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":400,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 13:14:06"} 
[2026-04-07 13:14:06] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6977,"order_number":"AZS-070426-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":400,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 13:14:06"} 
[2026-04-07 13:14:06] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6977,"order_number":"AZS-070426-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":400,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 13:14:06"} 
[2026-04-07 13:14:06] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6977,"order_number":"AZS-070426-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":400,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 13:14:06"} 
[2026-04-07 13:14:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6977,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33417}],"validated_items":[{"id":33417,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-07 13:14:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6977,"items_count":1} 
[2026-04-07 13:14:06] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33417,"menu_item_id":6,"quantity":2}]} 
[2026-04-07 13:14:06] local.INFO: PosOrderController::update - Item changes check {"order_id":6977,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-04-07 13:14:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6977,"order_number":"AZS-070426-001"} 
[2026-04-07 13:14:06] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6977,"order_number":"AZS-070426-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":400,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-07 13:14:06","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-07 13:14:06"} 
[2026-04-07 13:14:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6977,"order_number":"AZS-070426-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-07 13:14:06"} 
[2026-04-07 13:14:06] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6977,"order_number":"AZS-070426-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"400.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-07 13:14:06","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":400,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"400.00","database_verification_match":true,"timestamp":"2026-04-07 13:14:06"} 
[2026-04-07 13:23:04] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6978,"order_number":"AZS-070426-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":420,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 13:23:04"} 
[2026-04-07 13:23:04] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6978,"order_number":"AZS-070426-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":420,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 13:23:04"} 
[2026-04-07 13:23:04] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6978,"order_number":"AZS-070426-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":420,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 13:23:04"} 
[2026-04-07 13:23:04] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6978,"order_number":"AZS-070426-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":420,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 13:23:04"} 
[2026-04-07 13:23:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6978,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33418}],"validated_items":[{"id":33418,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-07 13:23:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6978,"items_count":1} 
[2026-04-07 13:23:04] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33418,"menu_item_id":6,"quantity":2}]} 
[2026-04-07 13:23:04] local.INFO: PosOrderController::update - Item changes check {"order_id":6978,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|2|"],"new_items_map_keys":["6|2|"]} 
[2026-04-07 13:23:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6978,"order_number":"AZS-070426-002"} 
[2026-04-07 13:23:04] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6978,"order_number":"AZS-070426-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":420,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-07 13:23:04","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-07 13:23:04"} 
[2026-04-07 13:23:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6978,"order_number":"AZS-070426-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-07 13:23:04"} 
[2026-04-07 13:23:04] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6978,"order_number":"AZS-070426-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"420.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-07 13:23:04","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":420,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"420.00","database_verification_match":true,"timestamp":"2026-04-07 13:23:04"} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":6980,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":33420},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":33421},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":33422},{"menu_item_id":172,"quantity":1,"discount_percent":0,"notes":null,"id":33423},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null,"id":33424},{"menu_item_id":30,"quantity":1,"discount_percent":0,"notes":null,"id":33425},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":33426},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33427},{"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null,"id":33428},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":33429}],"validated_items":[{"id":33420,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":33421,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":33422,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"id":33423,"menu_item_id":172,"quantity":1,"discount_percent":0,"notes":null},{"id":33424,"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null},{"id":33425,"menu_item_id":30,"quantity":1,"discount_percent":0,"notes":null},{"id":33426,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":33427,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33428,"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null},{"id":33429,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6980,"items_count":10} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33420,"menu_item_id":97,"quantity":1},{"id":33421,"menu_item_id":64,"quantity":1},{"id":33422,"menu_item_id":137,"quantity":1},{"id":33423,"menu_item_id":172,"quantity":1},{"id":33424,"menu_item_id":29,"quantity":2},{"id":33425,"menu_item_id":30,"quantity":1},{"id":33426,"menu_item_id":61,"quantity":2},{"id":33427,"menu_item_id":56,"quantity":1},{"id":33428,"menu_item_id":49,"quantity":2},{"id":33429,"menu_item_id":396,"quantity":2}]} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Item changes check {"order_id":6980,"has_item_changes":true,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["97|1|","64|1|","137|1|","172|1|","29|2|","30|1|","61|1|","56|1|","49|2|","396|2|"],"new_items_map_keys":["97|1|","64|1|","137|1|","172|1|","29|2|","30|1|","61|2|","56|1|","49|2|","396|2|"]} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6980,"order_number":"AZS-070426-004"} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070426-004","replaced_order_id":6980} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6981,"items_count":10,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":137,"quantity":1,"price":"1299.00"},{"menu_item_id":172,"quantity":1,"price":"999.00"},{"menu_item_id":29,"quantity":2,"price":"250.00"},{"menu_item_id":30,"quantity":1,"price":"429.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":49,"quantity":2,"price":"70.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"}]} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6981,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6981}} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6981,"item_index":0,"menu_item_id":97} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6981,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6981}} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6981,"item_index":1,"menu_item_id":64} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6981,"item_index":2,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6981}} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6981,"item_index":2,"menu_item_id":137} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6981,"item_index":3,"item_data":{"menu_item_id":172,"restaurant_category_id":17,"restaurant_category_name":"BURGER","item_name":"Zinger Burger","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6981}} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6981,"item_index":3,"menu_item_id":172} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6981,"item_index":4,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6981}} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6981,"item_index":4,"menu_item_id":29} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6981,"item_index":5,"item_data":{"menu_item_id":30,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Apple Lemonade","quantity":1,"price":"429.00","discount_percent":0.0,"discount_amount":0.0,"total":429.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6981}} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6981,"item_index":5,"menu_item_id":30} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6981,"item_index":6,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6981}} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6981,"item_index":6,"menu_item_id":61} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6981,"item_index":7,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6981}} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6981,"item_index":7,"menu_item_id":56} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6981,"item_index":8,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6981}} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6981,"item_index":8,"menu_item_id":49} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6981,"item_index":9,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6981}} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6981,"item_index":9,"menu_item_id":396} 
[2026-04-07 13:28:42] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6980,"new_order_id":6981,"order_number":"AZS-070426-004"} 
[2026-04-07 13:43:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6981,"item_index":0,"item_id":33420} 
[2026-04-07 13:43:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6981,"item_index":1,"item_id":33421} 
[2026-04-07 13:43:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6981,"item_index":2,"item_id":33422} 
[2026-04-07 13:43:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6981,"item_index":3,"item_id":33423} 
[2026-04-07 13:43:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6981,"item_index":4,"item_id":33424} 
[2026-04-07 13:43:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6981,"item_index":5,"item_id":33425} 
[2026-04-07 13:43:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6981,"item_index":6,"item_id":33426} 
[2026-04-07 13:43:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6981,"item_index":7,"item_id":33427} 
[2026-04-07 13:43:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6981,"item_index":8,"item_id":33428} 
[2026-04-07 13:43:03] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6981,"item_index":9,"item_id":33429} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":10,"order_id":6981,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":33420},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":33421},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":33422},{"menu_item_id":172,"quantity":1,"discount_percent":0,"notes":null,"id":33423},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null,"id":33424},{"menu_item_id":30,"quantity":1,"discount_percent":0,"notes":null,"id":33425},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":33426},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33427},{"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null,"id":33428},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":33429},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":172,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":30,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6981,"items_count":12} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":10,"items_to_remove":[33430,33431,33432,33433,33434,33435,33436,33437,33438,33439],"items":[{"id":null,"menu_item_id":97,"quantity":1},{"id":null,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":137,"quantity":1},{"id":null,"menu_item_id":172,"quantity":1},{"id":null,"menu_item_id":29,"quantity":2},{"id":null,"menu_item_id":30,"quantity":1},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":49,"quantity":2},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Item changes check {"order_id":6981,"has_item_changes":true,"old_items_count":10,"new_items_count":12,"old_items_map_keys":["97|1|","64|1|","137|1|","172|1|","29|2|","30|1|","61|2|","56|1|","49|2|","396|2|"],"new_items_map_keys":["97|1|","64|1|","137|1|","172|1|","29|2|","30|1|","61|2|","56|1|","49|2|","396|2|","2|1|","5|1|"]} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6981,"order_number":"AZS-070426-004"} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070426-004","replaced_order_id":6981} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6982,"items_count":12,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":137,"quantity":1,"price":"1299.00"},{"menu_item_id":172,"quantity":1,"price":"999.00"},{"menu_item_id":29,"quantity":2,"price":"250.00"},{"menu_item_id":30,"quantity":1,"price":"429.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":49,"quantity":2,"price":"70.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6982,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6982}} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6982,"item_index":0,"menu_item_id":97} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6982,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6982}} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6982,"item_index":1,"menu_item_id":64} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6982,"item_index":2,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6982}} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6982,"item_index":2,"menu_item_id":137} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6982,"item_index":3,"item_data":{"menu_item_id":172,"restaurant_category_id":17,"restaurant_category_name":"BURGER","item_name":"Zinger Burger","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6982}} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6982,"item_index":3,"menu_item_id":172} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6982,"item_index":4,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6982}} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6982,"item_index":4,"menu_item_id":29} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6982,"item_index":5,"item_data":{"menu_item_id":30,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Apple Lemonade","quantity":1,"price":"429.00","discount_percent":0.0,"discount_amount":0.0,"total":429.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6982}} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6982,"item_index":5,"menu_item_id":30} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6982,"item_index":6,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6982}} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6982,"item_index":6,"menu_item_id":61} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6982,"item_index":7,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6982}} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6982,"item_index":7,"menu_item_id":56} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6982,"item_index":8,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6982}} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6982,"item_index":8,"menu_item_id":49} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6982,"item_index":9,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6982}} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6982,"item_index":9,"menu_item_id":396} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6982,"item_index":10,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6982}} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6982,"item_index":10,"menu_item_id":2} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6982,"item_index":11,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6982}} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6982,"item_index":11,"menu_item_id":5} 
[2026-04-07 13:43:03] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6981,"new_order_id":6982,"order_number":"AZS-070426-004"} 
[2026-04-07 13:47:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6982,"item_index":0,"item_id":33420} 
[2026-04-07 13:47:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6982,"item_index":1,"item_id":33421} 
[2026-04-07 13:47:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6982,"item_index":2,"item_id":33422} 
[2026-04-07 13:47:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6982,"item_index":3,"item_id":33423} 
[2026-04-07 13:47:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6982,"item_index":4,"item_id":33424} 
[2026-04-07 13:47:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6982,"item_index":5,"item_id":33425} 
[2026-04-07 13:47:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6982,"item_index":6,"item_id":33426} 
[2026-04-07 13:47:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6982,"item_index":7,"item_id":33427} 
[2026-04-07 13:47:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6982,"item_index":8,"item_id":33428} 
[2026-04-07 13:47:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6982,"item_index":9,"item_id":33429} 
[2026-04-07 13:47:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":12,"order_id":6982,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":33420},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":33421},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":33422},{"menu_item_id":172,"quantity":1,"discount_percent":0,"notes":null,"id":33423},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null,"id":33424},{"menu_item_id":30,"quantity":1,"discount_percent":0,"notes":null,"id":33425},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":33426},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33427},{"menu_item_id":49,"quantity":4,"discount_percent":0,"notes":null,"id":33428},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":33429},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":172,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":30,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-07 13:47:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6982,"items_count":12} 
[2026-04-07 13:47:36] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":12,"items_to_remove":[33440,33441,33442,33443,33444,33445,33446,33447,33448,33449,33450,33451],"items":[{"id":null,"menu_item_id":97,"quantity":1},{"id":null,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":137,"quantity":1},{"id":null,"menu_item_id":172,"quantity":1},{"id":null,"menu_item_id":29,"quantity":2},{"id":null,"menu_item_id":30,"quantity":1},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":49,"quantity":4},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-07 13:47:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6982,"has_item_changes":true,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["97|1|","64|1|","137|1|","172|1|","29|2|","30|1|","61|2|","56|1|","49|2|","396|2|","2|1|","5|1|"],"new_items_map_keys":["97|1|","64|1|","137|1|","172|1|","29|2|","30|1|","61|2|","56|1|","49|4|","396|2|","2|1|","5|1|"]} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6982,"order_number":"AZS-070426-004"} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070426-004","replaced_order_id":6982} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6983,"items_count":12,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":137,"quantity":1,"price":"1299.00"},{"menu_item_id":172,"quantity":1,"price":"999.00"},{"menu_item_id":29,"quantity":2,"price":"250.00"},{"menu_item_id":30,"quantity":1,"price":"429.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":49,"quantity":4,"price":"70.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6983,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6983}} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6983,"item_index":0,"menu_item_id":97} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6983,"item_index":1,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6983}} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6983,"item_index":1,"menu_item_id":64} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6983,"item_index":2,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6983}} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6983,"item_index":2,"menu_item_id":137} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6983,"item_index":3,"item_data":{"menu_item_id":172,"restaurant_category_id":17,"restaurant_category_name":"BURGER","item_name":"Zinger Burger","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6983}} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6983,"item_index":3,"menu_item_id":172} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6983,"item_index":4,"item_data":{"menu_item_id":29,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Mint Margarita","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6983}} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6983,"item_index":4,"menu_item_id":29} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6983,"item_index":5,"item_data":{"menu_item_id":30,"restaurant_category_id":6,"restaurant_category_name":"MOCKTAIL","item_name":"Apple Lemonade","quantity":1,"price":"429.00","discount_percent":0.0,"discount_amount":0.0,"total":429.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6983}} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6983,"item_index":5,"menu_item_id":30} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6983,"item_index":6,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6983}} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6983,"item_index":6,"menu_item_id":61} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6983,"item_index":7,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6983}} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6983,"item_index":7,"menu_item_id":56} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6983,"item_index":8,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6983}} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6983,"item_index":8,"menu_item_id":49} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6983,"item_index":9,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6983}} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6983,"item_index":9,"menu_item_id":396} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6983,"item_index":10,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6983}} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6983,"item_index":10,"menu_item_id":2} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6983,"item_index":11,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6983}} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6983,"item_index":11,"menu_item_id":5} 
[2026-04-07 13:47:37] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6982,"new_order_id":6983,"order_number":"AZS-070426-004"} 
[2026-04-07 14:01:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6983,"item_index":0,"item_id":33420} 
[2026-04-07 14:01:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6983,"item_index":1,"item_id":33421} 
[2026-04-07 14:01:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6983,"item_index":2,"item_id":33422} 
[2026-04-07 14:01:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6983,"item_index":3,"item_id":33423} 
[2026-04-07 14:01:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6983,"item_index":4,"item_id":33424} 
[2026-04-07 14:01:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6983,"item_index":5,"item_id":33425} 
[2026-04-07 14:01:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6983,"item_index":6,"item_id":33426} 
[2026-04-07 14:01:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6983,"item_index":7,"item_id":33427} 
[2026-04-07 14:01:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6983,"item_index":8,"item_id":33428} 
[2026-04-07 14:01:27] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6983,"item_index":9,"item_id":33429} 
[2026-04-07 14:01:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":12,"order_id":6983,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":33420},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":33421},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33422},{"menu_item_id":172,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":33423},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":33424},{"menu_item_id":30,"quantity":1,"price":429,"discount_percent":0,"notes":null,"id":33425},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33426},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33427},{"menu_item_id":49,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":33428},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33429},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":172,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":30,"quantity":1,"price":429,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-07 14:01:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6983,"items_count":12} 
[2026-04-07 14:01:27] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":12,"items_to_remove":[33452,33453,33454,33455,33456,33457,33458,33459,33460,33461,33462,33463],"items":[{"id":null,"menu_item_id":97,"quantity":1},{"id":null,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":137,"quantity":1},{"id":null,"menu_item_id":172,"quantity":1},{"id":null,"menu_item_id":29,"quantity":2},{"id":null,"menu_item_id":30,"quantity":1},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":49,"quantity":4},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-07 14:01:27] local.INFO: PosOrderController::update - Item changes check {"order_id":6983,"has_item_changes":false,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["97|1|","64|1|","137|1|","172|1|","29|2|","30|1|","61|2|","56|1|","49|4|","396|2|","2|1|","5|1|"],"new_items_map_keys":["97|1|","64|1|","137|1|","172|1|","29|2|","30|1|","61|2|","56|1|","49|4|","396|2|","2|1|","5|1|"]} 
[2026-04-07 14:01:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6983,"order_number":"AZS-070426-004"} 
[2026-04-07 14:01:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6983,"order_number":"AZS-070426-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-07 14:01:27"} 
[2026-04-07 14:14:10] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6983,"item_index":0,"item_id":33420} 
[2026-04-07 14:14:10] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6983,"item_index":1,"item_id":33421} 
[2026-04-07 14:14:10] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6983,"item_index":2,"item_id":33422} 
[2026-04-07 14:14:10] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6983,"item_index":3,"item_id":33423} 
[2026-04-07 14:14:10] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6983,"item_index":4,"item_id":33424} 
[2026-04-07 14:14:10] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6983,"item_index":5,"item_id":33425} 
[2026-04-07 14:14:10] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6983,"item_index":6,"item_id":33426} 
[2026-04-07 14:14:10] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6983,"item_index":7,"item_id":33427} 
[2026-04-07 14:14:10] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6983,"item_index":8,"item_id":33428} 
[2026-04-07 14:14:10] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6983,"item_index":9,"item_id":33429} 
[2026-04-07 14:14:10] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6983,"order_number":"AZS-070426-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":8500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 14:14:10"} 
[2026-04-07 14:14:10] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6983,"order_number":"AZS-070426-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":8500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 14:14:10"} 
[2026-04-07 14:14:10] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6983,"order_number":"AZS-070426-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":8500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 14:14:10"} 
[2026-04-07 14:14:10] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6983,"order_number":"AZS-070426-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":8500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 14:14:10"} 
[2026-04-07 14:14:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":12,"items_to_remove_count":12,"order_id":6983,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":33420},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":33421},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33422},{"menu_item_id":172,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":33423},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":33424},{"menu_item_id":30,"quantity":1,"price":429,"discount_percent":0,"notes":null,"id":33425},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33426},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33427},{"menu_item_id":49,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":33428},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33429},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":172,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"menu_item_id":29,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"menu_item_id":30,"quantity":1,"price":429,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":49,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-07 14:14:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6983,"items_count":12} 
[2026-04-07 14:14:10] local.INFO: PosOrderController::update - Processing items {"items_count":12,"items_to_remove_count":12,"items_to_remove":[33452,33453,33454,33455,33456,33457,33458,33459,33460,33461,33462,33463],"items":[{"id":null,"menu_item_id":97,"quantity":1},{"id":null,"menu_item_id":64,"quantity":1},{"id":null,"menu_item_id":137,"quantity":1},{"id":null,"menu_item_id":172,"quantity":1},{"id":null,"menu_item_id":29,"quantity":2},{"id":null,"menu_item_id":30,"quantity":1},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":49,"quantity":4},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-07 14:14:10] local.INFO: PosOrderController::update - Item changes check {"order_id":6983,"has_item_changes":false,"old_items_count":12,"new_items_count":12,"old_items_map_keys":["97|1|","64|1|","137|1|","172|1|","29|2|","30|1|","61|2|","56|1|","49|4|","396|2|","2|1|","5|1|"],"new_items_map_keys":["97|1|","64|1|","137|1|","172|1|","29|2|","30|1|","61|2|","56|1|","49|4|","396|2|","2|1|","5|1|"]} 
[2026-04-07 14:14:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6983,"order_number":"AZS-070426-004"} 
[2026-04-07 14:14:10] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6983,"order_number":"AZS-070426-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":8500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-07 14:14:10","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-07 14:14:10"} 
[2026-04-07 14:14:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6983,"order_number":"AZS-070426-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-07 14:14:10"} 
[2026-04-07 14:14:10] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6983,"order_number":"AZS-070426-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"8500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-07 14:14:10","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":8500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"8500.00","database_verification_match":true,"timestamp":"2026-04-07 14:14:10"} 
[2026-04-07 15:35:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6984,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":33464},{"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null,"id":33465},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33466},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33467},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33464,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":33465,"menu_item_id":51,"quantity":2,"discount_percent":0,"notes":null},{"id":33466,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":33467,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-07 15:35:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6984,"items_count":5} 
[2026-04-07 15:35:37] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33464,"menu_item_id":98,"quantity":1},{"id":33465,"menu_item_id":51,"quantity":2},{"id":33466,"menu_item_id":61,"quantity":1},{"id":33467,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-04-07 15:35:37] local.INFO: PosOrderController::update - Item changes check {"order_id":6984,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["98|1|","51|2|","61|1|","56|1|"],"new_items_map_keys":["98|1|","51|2|","61|1|","56|1|","4|1|"]} 
[2026-04-07 15:35:37] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6984,"order_number":"AZS-070426-005"} 
[2026-04-07 15:35:37] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070426-005","replaced_order_id":6984} 
[2026-04-07 15:35:37] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6985,"items_count":5,"items":[{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":51,"quantity":2,"price":"199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-04-07 15:35:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6985,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6985}} 
[2026-04-07 15:35:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6985,"item_index":0,"menu_item_id":98} 
[2026-04-07 15:35:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6985,"item_index":1,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6985}} 
[2026-04-07 15:35:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6985,"item_index":1,"menu_item_id":51} 
[2026-04-07 15:35:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6985,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6985}} 
[2026-04-07 15:35:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6985,"item_index":2,"menu_item_id":61} 
[2026-04-07 15:35:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6985,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6985}} 
[2026-04-07 15:35:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6985,"item_index":3,"menu_item_id":56} 
[2026-04-07 15:35:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6985,"item_index":4,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6985}} 
[2026-04-07 15:35:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6985,"item_index":4,"menu_item_id":4} 
[2026-04-07 15:35:37] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6984,"new_order_id":6985,"order_number":"AZS-070426-005"} 
[2026-04-07 15:35:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6985,"item_index":0,"item_id":33464} 
[2026-04-07 15:35:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6985,"item_index":1,"item_id":33465} 
[2026-04-07 15:35:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6985,"item_index":2,"item_id":33466} 
[2026-04-07 15:35:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6985,"item_index":3,"item_id":33467} 
[2026-04-07 15:35:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":6985,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33464},{"menu_item_id":51,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33465},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33466},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33467},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-04-07 15:35:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6985,"items_count":5} 
[2026-04-07 15:35:44] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[33468,33469,33470,33471,33472],"items":[{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":51,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-04-07 15:35:44] local.INFO: PosOrderController::update - Item changes check {"order_id":6985,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["98|1|","51|2|","61|1|","56|1|","4|1|"],"new_items_map_keys":["98|1|","51|2|","61|1|","56|1|","4|1|"]} 
[2026-04-07 15:35:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6985,"order_number":"AZS-070426-005"} 
[2026-04-07 15:35:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6985,"order_number":"AZS-070426-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-07 15:35:44"} 
[2026-04-07 15:54:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6985,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33468},{"menu_item_id":51,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33469},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33470},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33471},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":33472}],"validated_items":[{"id":33468,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33469,"menu_item_id":51,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33470,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33471,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33472,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-04-07 15:54:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6985,"items_count":5} 
[2026-04-07 15:54:12] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33468,"menu_item_id":98,"quantity":1},{"id":33469,"menu_item_id":51,"quantity":2},{"id":33470,"menu_item_id":61,"quantity":1},{"id":33471,"menu_item_id":56,"quantity":1},{"id":33472,"menu_item_id":4,"quantity":1}]} 
[2026-04-07 15:54:12] local.INFO: PosOrderController::update - Item changes check {"order_id":6985,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["98|1|","51|2|","61|1|","56|1|","4|1|"],"new_items_map_keys":["98|1|","51|2|","61|1|","56|1|","4|1|"]} 
[2026-04-07 15:54:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6985,"order_number":"AZS-070426-005"} 
[2026-04-07 15:54:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6985,"order_number":"AZS-070426-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-07 15:54:12"} 
[2026-04-07 15:55:31] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6985,"order_number":"AZS-070426-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 15:55:31"} 
[2026-04-07 15:55:31] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6985,"order_number":"AZS-070426-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 15:55:31"} 
[2026-04-07 15:55:31] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6985,"order_number":"AZS-070426-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 15:55:31"} 
[2026-04-07 15:55:31] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6985,"order_number":"AZS-070426-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 15:55:31"} 
[2026-04-07 15:55:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":6985,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33468},{"menu_item_id":51,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33469},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33470},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33471},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":33472}],"validated_items":[{"id":33468,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33469,"menu_item_id":51,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33470,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33471,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33472,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-04-07 15:55:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6985,"items_count":5} 
[2026-04-07 15:55:31] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33468,"menu_item_id":98,"quantity":1},{"id":33469,"menu_item_id":51,"quantity":2},{"id":33470,"menu_item_id":61,"quantity":1},{"id":33471,"menu_item_id":56,"quantity":1},{"id":33472,"menu_item_id":4,"quantity":1}]} 
[2026-04-07 15:55:31] local.INFO: PosOrderController::update - Item changes check {"order_id":6985,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["98|1|","51|2|","61|1|","56|1|","4|1|"],"new_items_map_keys":["98|1|","51|2|","61|1|","56|1|","4|1|"]} 
[2026-04-07 15:55:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6985,"order_number":"AZS-070426-005"} 
[2026-04-07 15:55:31] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6985,"order_number":"AZS-070426-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-07 15:55:31","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-07 15:55:31"} 
[2026-04-07 15:55:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6985,"order_number":"AZS-070426-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-07 15:55:31"} 
[2026-04-07 15:55:31] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6985,"order_number":"AZS-070426-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-07 15:55:31","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2100.00","database_verification_match":true,"timestamp":"2026-04-07 15:55:31"} 
[2026-04-07 16:04:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6987,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":158,"quantity":1,"discount_percent":0,"notes":null,"id":33476},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33476,"menu_item_id":158,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-07 16:04:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6987,"items_count":2} 
[2026-04-07 16:04:39] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33476,"menu_item_id":158,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-04-07 16:04:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6987,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["158|1|"],"new_items_map_keys":["158|1|","2|1|"]} 
[2026-04-07 16:04:39] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6987,"order_number":"AZS-070426-007"} 
[2026-04-07 16:04:39] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070426-007","replaced_order_id":6987} 
[2026-04-07 16:04:39] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6988,"items_count":2,"items":[{"menu_item_id":158,"quantity":1,"price":"1299.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-04-07 16:04:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6988,"item_index":0,"item_data":{"menu_item_id":158,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Crown Crust Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6988}} 
[2026-04-07 16:04:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6988,"item_index":0,"menu_item_id":158} 
[2026-04-07 16:04:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6988,"item_index":1,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6988}} 
[2026-04-07 16:04:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6988,"item_index":1,"menu_item_id":2} 
[2026-04-07 16:04:39] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6987,"new_order_id":6988,"order_number":"AZS-070426-007"} 
[2026-04-07 16:31:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-07T04:31:40.122Z","date_to":"2026-04-07T16:31:40.122Z","per_page":"100"} 
[2026-04-07 16:31:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070426-007","AZS-070426-006","AZS-070426-005","AZS-070426-004","AZS-070426-003","AZS-070426-002","AZS-070426-001"],"order_statuses":["pending","pending","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":3,"unique_order_numbers":7} 
[2026-04-07 16:31:39] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-07T04:31:40.137Z","date_to":"2026-04-07T16:31:40.137Z","per_page":"100"} 
[2026-04-07 16:31:39] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070426-007","AZS-070426-006","AZS-070426-005","AZS-070426-004","AZS-070426-003","AZS-070426-002","AZS-070426-001"],"order_statuses":["pending","pending","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":3,"unique_order_numbers":7} 
[2026-04-07 16:31:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-07T04:31:40.122Z","date_to":"2026-04-07T16:31:40.122Z","per_page":"100"} 
[2026-04-07 16:31:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070426-007","AZS-070426-006","AZS-070426-005","AZS-070426-004","AZS-070426-003","AZS-070426-002","AZS-070426-001"],"order_statuses":["pending","pending","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":4,"unpaid_count":3,"unique_order_numbers":7} 
[2026-04-07 16:32:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":6986,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33473},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33474},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":33475},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"id":33473,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33474,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":33475,"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-07 16:32:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6986,"items_count":4} 
[2026-04-07 16:32:23] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33473,"menu_item_id":98,"quantity":1},{"id":33474,"menu_item_id":396,"quantity":1},{"id":33475,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-07 16:32:23] local.INFO: PosOrderController::update - Item changes check {"order_id":6986,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["98|1|","396|1|","50|1|"],"new_items_map_keys":["98|1|","396|1|","50|1|","5|1|"]} 
[2026-04-07 16:32:23] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6986,"order_number":"AZS-070426-006"} 
[2026-04-07 16:32:23] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070426-006","replaced_order_id":6986} 
[2026-04-07 16:32:23] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6989,"items_count":4,"items":[{"menu_item_id":98,"quantity":1,"price":1199.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":50,"quantity":1,"price":129.0},{"menu_item_id":5,"quantity":1,"price":170.0}]} 
[2026-04-07 16:32:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6989,"item_index":0,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6989}} 
[2026-04-07 16:32:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6989,"item_index":0,"menu_item_id":98} 
[2026-04-07 16:32:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6989,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6989}} 
[2026-04-07 16:32:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6989,"item_index":1,"menu_item_id":396} 
[2026-04-07 16:32:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6989,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":1,"price":129.0,"discount_percent":0.0,"discount_amount":0.0,"total":129.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6989}} 
[2026-04-07 16:32:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6989,"item_index":2,"menu_item_id":50} 
[2026-04-07 16:32:23] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6989,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6989}} 
[2026-04-07 16:32:23] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6989,"item_index":3,"menu_item_id":5} 
[2026-04-07 16:32:23] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6986,"new_order_id":6989,"order_number":"AZS-070426-006"} 
[2026-04-07 16:32:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6989,"item_index":0,"item_id":33473} 
[2026-04-07 16:32:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6989,"item_index":1,"item_id":33474} 
[2026-04-07 16:32:33] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6989,"item_index":2,"item_id":33475} 
[2026-04-07 16:32:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6989,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33473},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33474},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":33475},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-07 16:32:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6989,"items_count":4} 
[2026-04-07 16:32:33] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[33479,33480,33481,33482],"items":[{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-07 16:32:33] local.INFO: PosOrderController::update - Item changes check {"order_id":6989,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["98|1|","396|1|","50|1|","5|1|"],"new_items_map_keys":["98|1|","396|1|","50|1|","5|1|"]} 
[2026-04-07 16:32:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6989,"order_number":"AZS-070426-006"} 
[2026-04-07 16:32:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6989,"order_number":"AZS-070426-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-07 16:32:33"} 
[2026-04-07 16:39:08] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6989,"item_index":0,"item_id":33473} 
[2026-04-07 16:39:08] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6989,"item_index":1,"item_id":33474} 
[2026-04-07 16:39:08] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6989,"item_index":2,"item_id":33475} 
[2026-04-07 16:39:08] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6989,"order_number":"AZS-070426-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1677,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 16:39:08"} 
[2026-04-07 16:39:08] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6989,"order_number":"AZS-070426-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1677,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 16:39:08"} 
[2026-04-07 16:39:08] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6989,"order_number":"AZS-070426-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1677,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 16:39:08"} 
[2026-04-07 16:39:08] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6989,"order_number":"AZS-070426-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1677,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 16:39:08"} 
[2026-04-07 16:39:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":6989,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33473},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33474},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null,"id":33475},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":1,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-07 16:39:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6989,"items_count":4} 
[2026-04-07 16:39:08] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[33479,33480,33481,33482],"items":[{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":50,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-07 16:39:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6989,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["98|1|","396|1|","50|1|","5|1|"],"new_items_map_keys":["98|1|","396|1|","50|1|","5|1|"]} 
[2026-04-07 16:39:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6989,"order_number":"AZS-070426-006"} 
[2026-04-07 16:39:08] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6989,"order_number":"AZS-070426-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1677,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-07 16:39:08","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-07 16:39:08"} 
[2026-04-07 16:39:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6989,"order_number":"AZS-070426-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-07 16:39:08"} 
[2026-04-07 16:39:08] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6989,"order_number":"AZS-070426-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1677.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-07 16:39:08","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1677,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1677.00","database_verification_match":true,"timestamp":"2026-04-07 16:39:08"} 
[2026-04-07 16:39:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-07T04:39:56.009Z","date_to":"2026-04-07T16:39:56.009Z","per_page":"100"} 
[2026-04-07 16:39:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070426-007","AZS-070426-006","AZS-070426-005","AZS-070426-004","AZS-070426-003","AZS-070426-002","AZS-070426-001"],"order_statuses":["pending","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":2,"unique_order_numbers":7} 
[2026-04-07 16:39:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-07T04:39:56.020Z","date_to":"2026-04-07T16:39:56.020Z","per_page":"100"} 
[2026-04-07 16:39:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070426-007","AZS-070426-006","AZS-070426-005","AZS-070426-004","AZS-070426-003","AZS-070426-002","AZS-070426-001"],"order_statuses":["pending","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":2,"unique_order_numbers":7} 
[2026-04-07 16:39:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-07T04:39:56.009Z","date_to":"2026-04-07T16:39:56.009Z","per_page":"100"} 
[2026-04-07 16:39:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070426-007","AZS-070426-006","AZS-070426-005","AZS-070426-004","AZS-070426-003","AZS-070426-002","AZS-070426-001"],"order_statuses":["pending","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":5,"unpaid_count":2,"unique_order_numbers":7} 
[2026-04-07 16:49:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6988,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":158,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33477},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":33478}],"validated_items":[{"id":33477,"menu_item_id":158,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":33478,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-07 16:49:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6988,"items_count":2} 
[2026-04-07 16:49:56] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33477,"menu_item_id":158,"quantity":1},{"id":33478,"menu_item_id":2,"quantity":1}]} 
[2026-04-07 16:49:56] local.INFO: PosOrderController::update - Item changes check {"order_id":6988,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["158|1|","2|1|"],"new_items_map_keys":["158|1|","2|1|"]} 
[2026-04-07 16:49:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6988,"order_number":"AZS-070426-007"} 
[2026-04-07 16:49:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6988,"order_number":"AZS-070426-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-07 16:49:56"} 
[2026-04-07 17:11:53] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6988,"order_number":"AZS-070426-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1500,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 17:11:53"} 
[2026-04-07 17:11:53] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6988,"order_number":"AZS-070426-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 17:11:53"} 
[2026-04-07 17:11:53] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6988,"order_number":"AZS-070426-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 17:11:53"} 
[2026-04-07 17:11:53] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6988,"order_number":"AZS-070426-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1500,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 17:11:53"} 
[2026-04-07 17:11:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":6988,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":158,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33477},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":33478}],"validated_items":[{"id":33477,"menu_item_id":158,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":33478,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-07 17:11:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6988,"items_count":2} 
[2026-04-07 17:11:53] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33477,"menu_item_id":158,"quantity":1},{"id":33478,"menu_item_id":2,"quantity":1}]} 
[2026-04-07 17:11:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6988,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["158|1|","2|1|"],"new_items_map_keys":["158|1|","2|1|"]} 
[2026-04-07 17:11:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6988,"order_number":"AZS-070426-007"} 
[2026-04-07 17:11:53] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6988,"order_number":"AZS-070426-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1500,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-07 17:11:53","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-07 17:11:53"} 
[2026-04-07 17:11:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6988,"order_number":"AZS-070426-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-07 17:11:53"} 
[2026-04-07 17:11:53] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6988,"order_number":"AZS-070426-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1500.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-07 17:11:53","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1500.00","database_verification_match":true,"timestamp":"2026-04-07 17:11:53"} 
[2026-04-07 17:11:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-07T05:11:58.245Z","date_to":"2026-04-07T17:11:58.245Z","per_page":"100"} 
[2026-04-07 17:11:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070426-007","AZS-070426-006","AZS-070426-005","AZS-070426-004","AZS-070426-003","AZS-070426-002","AZS-070426-001"],"order_statuses":["paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":1,"unique_order_numbers":7} 
[2026-04-07 17:11:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-07T05:11:58.260Z","date_to":"2026-04-07T17:11:58.260Z","per_page":"100"} 
[2026-04-07 17:11:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070426-007","AZS-070426-006","AZS-070426-005","AZS-070426-004","AZS-070426-003","AZS-070426-002","AZS-070426-001"],"order_statuses":["paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":1,"unique_order_numbers":7} 
[2026-04-07 17:11:58] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-07T05:11:58.245Z","date_to":"2026-04-07T17:11:58.245Z","per_page":"100"} 
[2026-04-07 17:11:58] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070426-007","AZS-070426-006","AZS-070426-005","AZS-070426-004","AZS-070426-003","AZS-070426-002","AZS-070426-001"],"order_statuses":["paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":6,"unpaid_count":1,"unique_order_numbers":7} 
[2026-04-07 18:12:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6991,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null,"id":33488},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":33489},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33488,"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"id":33489,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-07 18:12:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6991,"items_count":3} 
[2026-04-07 18:12:08] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33488,"menu_item_id":83,"quantity":1},{"id":33489,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-04-07 18:12:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6991,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["83|1|","403|1|"],"new_items_map_keys":["83|1|","403|1|","2|1|"]} 
[2026-04-07 18:12:08] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6991,"order_number":"AZS-070426-009"} 
[2026-04-07 18:12:08] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070426-009","replaced_order_id":6991} 
[2026-04-07 18:12:08] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6994,"items_count":3,"items":[{"menu_item_id":83,"quantity":1,"price":"649.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-04-07 18:12:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6994,"item_index":0,"item_data":{"menu_item_id":83,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Chicken Nuggets","quantity":1,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":649.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6994}} 
[2026-04-07 18:12:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6994,"item_index":0,"menu_item_id":83} 
[2026-04-07 18:12:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6994,"item_index":1,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6994}} 
[2026-04-07 18:12:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6994,"item_index":1,"menu_item_id":403} 
[2026-04-07 18:12:08] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6994,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6994}} 
[2026-04-07 18:12:08] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6994,"item_index":2,"menu_item_id":2} 
[2026-04-07 18:12:08] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6991,"new_order_id":6994,"order_number":"AZS-070426-009"} 
[2026-04-07 18:20:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6994,"item_index":0,"item_id":33488} 
[2026-04-07 18:20:53] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6994,"item_index":1,"item_id":33489} 
[2026-04-07 18:20:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":3,"order_id":6994,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null,"id":33488},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":33489},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-07 18:20:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6994,"items_count":3} 
[2026-04-07 18:20:53] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":3,"items_to_remove":[33496,33497,33498],"items":[{"id":null,"menu_item_id":83,"quantity":1},{"id":null,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-04-07 18:20:53] local.INFO: PosOrderController::update - Item changes check {"order_id":6994,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["83|1|","403|1|","2|1|"],"new_items_map_keys":["83|1|","403|1|","2|1|"]} 
[2026-04-07 18:20:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6994,"order_number":"AZS-070426-009"} 
[2026-04-07 18:20:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6994,"order_number":"AZS-070426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-07 18:20:53"} 
[2026-04-07 18:25:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6994,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":33496},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":33497},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":33498}],"validated_items":[{"id":33496,"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":33497,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":33498,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-07 18:25:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6994,"items_count":3} 
[2026-04-07 18:25:39] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33496,"menu_item_id":83,"quantity":1},{"id":33497,"menu_item_id":403,"quantity":1},{"id":33498,"menu_item_id":2,"quantity":1}]} 
[2026-04-07 18:25:39] local.INFO: PosOrderController::update - Item changes check {"order_id":6994,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["83|1|","403|1|","2|1|"],"new_items_map_keys":["83|1|","403|1|","2|1|"]} 
[2026-04-07 18:25:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6994,"order_number":"AZS-070426-009"} 
[2026-04-07 18:25:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6994,"order_number":"AZS-070426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-07 18:25:39"} 
[2026-04-07 18:29:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6994,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":33496},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":33497},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":33498}],"validated_items":[{"id":33496,"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":33497,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":33498,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-07 18:29:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6994,"items_count":3} 
[2026-04-07 18:29:07] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33496,"menu_item_id":83,"quantity":1},{"id":33497,"menu_item_id":403,"quantity":1},{"id":33498,"menu_item_id":2,"quantity":1}]} 
[2026-04-07 18:29:07] local.INFO: PosOrderController::update - Item changes check {"order_id":6994,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["83|1|","403|1|","2|1|"],"new_items_map_keys":["83|1|","403|1|","2|1|"]} 
[2026-04-07 18:29:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6994,"order_number":"AZS-070426-009"} 
[2026-04-07 18:29:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6994,"order_number":"AZS-070426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-07 18:29:07"} 
[2026-04-07 18:29:30] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6994,"order_number":"AZS-070426-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 18:29:30"} 
[2026-04-07 18:29:30] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6994,"order_number":"AZS-070426-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 18:29:30"} 
[2026-04-07 18:29:30] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6994,"order_number":"AZS-070426-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 18:29:30"} 
[2026-04-07 18:29:30] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6994,"order_number":"AZS-070426-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 18:29:30"} 
[2026-04-07 18:29:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":6994,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":33496},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":33497},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":33498}],"validated_items":[{"id":33496,"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":33497,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":33498,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-07 18:29:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6994,"items_count":3} 
[2026-04-07 18:29:30] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33496,"menu_item_id":83,"quantity":1},{"id":33497,"menu_item_id":403,"quantity":1},{"id":33498,"menu_item_id":2,"quantity":1}]} 
[2026-04-07 18:29:30] local.INFO: PosOrderController::update - Item changes check {"order_id":6994,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["83|1|","403|1|","2|1|"],"new_items_map_keys":["83|1|","403|1|","2|1|"]} 
[2026-04-07 18:29:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6994,"order_number":"AZS-070426-009"} 
[2026-04-07 18:29:30] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6994,"order_number":"AZS-070426-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-07 18:29:30","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-07 18:29:30"} 
[2026-04-07 18:29:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6994,"order_number":"AZS-070426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-07 18:29:30"} 
[2026-04-07 18:29:30] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6994,"order_number":"AZS-070426-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-07 18:29:30","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1200.00","database_verification_match":true,"timestamp":"2026-04-07 18:29:30"} 
[2026-04-07 18:40:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6992,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":33490},{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":33491},{"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null,"id":33492},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":33493},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33494},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33490,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":33491,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"id":33492,"menu_item_id":64,"quantity":1,"discount_percent":0,"notes":null},{"id":33493,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":33494,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-07 18:40:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6992,"items_count":6} 
[2026-04-07 18:40:59] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33490,"menu_item_id":97,"quantity":1},{"id":33491,"menu_item_id":63,"quantity":1},{"id":33492,"menu_item_id":64,"quantity":1},{"id":33493,"menu_item_id":396,"quantity":3},{"id":33494,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-07 18:40:59] local.INFO: PosOrderController::update - Item changes check {"order_id":6992,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["97|1|","63|1|","64|1|","396|3|","61|1|"],"new_items_map_keys":["97|1|","63|1|","64|1|","396|3|","61|1|","3|1|"]} 
[2026-04-07 18:40:59] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6992,"order_number":"AZS-070426-010"} 
[2026-04-07 18:40:59] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070426-010","replaced_order_id":6992} 
[2026-04-07 18:40:59] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6997,"items_count":6,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":63,"quantity":1,"price":"1099.00"},{"menu_item_id":64,"quantity":1,"price":"999.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-07 18:40:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6997,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6997}} 
[2026-04-07 18:40:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6997,"item_index":0,"menu_item_id":97} 
[2026-04-07 18:40:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6997,"item_index":1,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6997}} 
[2026-04-07 18:40:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6997,"item_index":1,"menu_item_id":63} 
[2026-04-07 18:40:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6997,"item_index":2,"item_data":{"menu_item_id":64,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Seekh Kabab (4 pcs)","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6997}} 
[2026-04-07 18:40:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6997,"item_index":2,"menu_item_id":64} 
[2026-04-07 18:40:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6997,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6997}} 
[2026-04-07 18:40:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6997,"item_index":3,"menu_item_id":396} 
[2026-04-07 18:40:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6997,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6997}} 
[2026-04-07 18:40:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6997,"item_index":4,"menu_item_id":61} 
[2026-04-07 18:40:59] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6997,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6997}} 
[2026-04-07 18:40:59] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6997,"item_index":5,"menu_item_id":3} 
[2026-04-07 18:40:59] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6992,"new_order_id":6997,"order_number":"AZS-070426-010"} 
[2026-04-07 18:52:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6990,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":33483},{"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null,"id":33484},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":33485},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33486},{"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null,"id":33487},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":33483,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":33484,"menu_item_id":49,"quantity":2,"discount_percent":0,"notes":null},{"id":33485,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":33486,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33487,"menu_item_id":393,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-07 18:52:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6990,"items_count":6} 
[2026-04-07 18:52:19] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33483,"menu_item_id":105,"quantity":1},{"id":33484,"menu_item_id":49,"quantity":2},{"id":33485,"menu_item_id":396,"quantity":1},{"id":33486,"menu_item_id":56,"quantity":1},{"id":33487,"menu_item_id":393,"quantity":1},{"id":null,"menu_item_id":2,"quantity":2}]} 
[2026-04-07 18:52:19] local.INFO: PosOrderController::update - Item changes check {"order_id":6990,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["105|1|","49|2|","396|1|","56|1|","393|1|"],"new_items_map_keys":["105|1|","49|2|","396|1|","56|1|","393|1|","2|2|"]} 
[2026-04-07 18:52:19] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6990,"order_number":"AZS-070426-008"} 
[2026-04-07 18:52:19] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070426-008","replaced_order_id":6990} 
[2026-04-07 18:52:19] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6998,"items_count":6,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":49,"quantity":2,"price":"70.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":393,"quantity":1,"price":"499.00"},{"menu_item_id":2,"quantity":2,"price":"130.00"}]} 
[2026-04-07 18:52:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6998,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6998}} 
[2026-04-07 18:52:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6998,"item_index":0,"menu_item_id":105} 
[2026-04-07 18:52:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6998,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":2,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6998}} 
[2026-04-07 18:52:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6998,"item_index":1,"menu_item_id":49} 
[2026-04-07 18:52:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6998,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6998}} 
[2026-04-07 18:52:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6998,"item_index":2,"menu_item_id":396} 
[2026-04-07 18:52:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6998,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6998}} 
[2026-04-07 18:52:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6998,"item_index":3,"menu_item_id":56} 
[2026-04-07 18:52:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6998,"item_index":4,"item_data":{"menu_item_id":393,"restaurant_category_id":35,"restaurant_category_name":"ROCK N ROLL","item_name":"Chicken Shawarma","quantity":1,"price":"499.00","discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6998}} 
[2026-04-07 18:52:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6998,"item_index":4,"menu_item_id":393} 
[2026-04-07 18:52:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6998,"item_index":5,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6998}} 
[2026-04-07 18:52:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6998,"item_index":5,"menu_item_id":2} 
[2026-04-07 18:52:19] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6990,"new_order_id":6998,"order_number":"AZS-070426-008"} 
[2026-04-07 18:53:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6997,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":33508},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":33509},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":33510},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":33511},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33512},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":33513}],"validated_items":[{"id":33508,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":33509,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":33510,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":33511,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":33512,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33513,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-07 18:53:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6997,"items_count":6} 
[2026-04-07 18:53:24] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33508,"menu_item_id":97,"quantity":1},{"id":33509,"menu_item_id":63,"quantity":1},{"id":33510,"menu_item_id":64,"quantity":1},{"id":33511,"menu_item_id":396,"quantity":3},{"id":33512,"menu_item_id":61,"quantity":1},{"id":33513,"menu_item_id":3,"quantity":1}]} 
[2026-04-07 18:53:24] local.INFO: PosOrderController::update - Item changes check {"order_id":6997,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["97|1|","63|1|","64|1|","396|3|","61|1|","3|1|"],"new_items_map_keys":["97|1|","63|1|","64|1|","396|3|","61|1|","3|1|"]} 
[2026-04-07 18:53:24] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6997,"order_number":"AZS-070426-010"} 
[2026-04-07 18:53:24] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6997,"order_number":"AZS-070426-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-04-07 18:53:24"} 
[2026-04-07 18:57:52] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6997,"order_number":"AZS-070426-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 18:57:52"} 
[2026-04-07 18:57:52] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6997,"order_number":"AZS-070426-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 18:57:52"} 
[2026-04-07 18:57:52] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6997,"order_number":"AZS-070426-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 18:57:52"} 
[2026-04-07 18:57:52] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6997,"order_number":"AZS-070426-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 18:57:52"} 
[2026-04-07 18:57:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6997,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":33508},{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":33509},{"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":33510},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":33511},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33512},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":33513}],"validated_items":[{"id":33508,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":33509,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":33510,"menu_item_id":64,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":33511,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":33512,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33513,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-07 18:57:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6997,"items_count":6} 
[2026-04-07 18:57:52] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33508,"menu_item_id":97,"quantity":1},{"id":33509,"menu_item_id":63,"quantity":1},{"id":33510,"menu_item_id":64,"quantity":1},{"id":33511,"menu_item_id":396,"quantity":3},{"id":33512,"menu_item_id":61,"quantity":1},{"id":33513,"menu_item_id":3,"quantity":1}]} 
[2026-04-07 18:57:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6997,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["97|1|","63|1|","64|1|","396|3|","61|1|","3|1|"],"new_items_map_keys":["97|1|","63|1|","64|1|","396|3|","61|1|","3|1|"]} 
[2026-04-07 18:57:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6997,"order_number":"AZS-070426-010"} 
[2026-04-07 18:57:52] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6997,"order_number":"AZS-070426-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-07 18:57:52","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-07 18:57:52"} 
[2026-04-07 18:57:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6997,"order_number":"AZS-070426-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-07 18:57:52"} 
[2026-04-07 18:57:52] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6997,"order_number":"AZS-070426-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-07 18:57:52","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5500.00","database_verification_match":true,"timestamp":"2026-04-07 18:57:52"} 
[2026-04-07 19:02:44] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6996,"order_number":"AZS-070426-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 19:02:44"} 
[2026-04-07 19:02:44] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6996,"order_number":"AZS-070426-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 19:02:44"} 
[2026-04-07 19:02:44] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6996,"order_number":"AZS-070426-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 19:02:44"} 
[2026-04-07 19:02:44] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6996,"order_number":"AZS-070426-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 19:02:44"} 
[2026-04-07 19:02:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6996,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":33507}],"validated_items":[{"id":33507,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null}]} 
[2026-04-07 19:02:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6996,"items_count":1} 
[2026-04-07 19:02:44] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33507,"menu_item_id":386,"quantity":1}]} 
[2026-04-07 19:02:44] local.INFO: PosOrderController::update - Item changes check {"order_id":6996,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|"]} 
[2026-04-07 19:02:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6996,"order_number":"AZS-070426-013"} 
[2026-04-07 19:02:44] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6996,"order_number":"AZS-070426-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-07 19:02:44","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-07 19:02:44"} 
[2026-04-07 19:02:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6996,"order_number":"AZS-070426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-07 19:02:44"} 
[2026-04-07 19:02:44] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6996,"order_number":"AZS-070426-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-07 19:02:44","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2100.00","database_verification_match":true,"timestamp":"2026-04-07 19:02:44"} 
[2026-04-07 19:02:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6993,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null,"id":33495}],"validated_items":[{"id":33495,"menu_item_id":386,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-07 19:02:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6993,"items_count":1} 
[2026-04-07 19:02:54] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33495,"menu_item_id":386,"quantity":1}]} 
[2026-04-07 19:02:54] local.INFO: PosOrderController::update - Item changes check {"order_id":6993,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|"]} 
[2026-04-07 19:02:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6993,"order_number":"AZS-070426-011"} 
[2026-04-07 19:02:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6993,"order_number":"AZS-070426-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-04-07 19:02:54"} 
[2026-04-07 19:04:08] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6993,"order_number":"AZS-070426-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2099,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 19:04:08"} 
[2026-04-07 19:04:08] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6993,"order_number":"AZS-070426-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2099,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 19:04:08"} 
[2026-04-07 19:04:08] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6993,"order_number":"AZS-070426-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2099,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 19:04:08"} 
[2026-04-07 19:04:08] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6993,"order_number":"AZS-070426-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2099,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 19:04:08"} 
[2026-04-07 19:04:08] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6993,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null,"id":33495}],"validated_items":[{"id":33495,"menu_item_id":386,"quantity":1,"price":2099,"discount_percent":0,"notes":null}]} 
[2026-04-07 19:04:08] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6993,"items_count":1} 
[2026-04-07 19:04:08] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33495,"menu_item_id":386,"quantity":1}]} 
[2026-04-07 19:04:08] local.INFO: PosOrderController::update - Item changes check {"order_id":6993,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["386|1|"],"new_items_map_keys":["386|1|"]} 
[2026-04-07 19:04:08] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6993,"order_number":"AZS-070426-011"} 
[2026-04-07 19:04:08] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6993,"order_number":"AZS-070426-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2099,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-07 19:04:08","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-07 19:04:08"} 
[2026-04-07 19:04:08] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6993,"order_number":"AZS-070426-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-07 19:04:08"} 
[2026-04-07 19:04:08] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6993,"order_number":"AZS-070426-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2099.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-07 19:04:08","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2099,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2099.00","database_verification_match":true,"timestamp":"2026-04-07 19:04:08"} 
[2026-04-07 19:04:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-07T07:04:11.635Z","date_to":"2026-04-07T19:04:11.635Z","per_page":"100"} 
[2026-04-07 19:04:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-07T07:04:11.619Z","date_to":"2026-04-07T19:04:11.619Z","per_page":"100"} 
[2026-04-07 19:04:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070426-013","AZS-070426-012","AZS-070426-011","AZS-070426-010","AZS-070426-009","AZS-070426-008","AZS-070426-007","AZS-070426-006","AZS-070426-005","AZS-070426-004","AZS-070426-003","AZS-070426-002","AZS-070426-001"],"order_statuses":["paid","pending","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-04-07 19:04:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070426-013","AZS-070426-012","AZS-070426-011","AZS-070426-010","AZS-070426-009","AZS-070426-008","AZS-070426-007","AZS-070426-006","AZS-070426-005","AZS-070426-004","AZS-070426-003","AZS-070426-002","AZS-070426-001"],"order_statuses":["paid","pending","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-04-07 19:04:14] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-07T07:04:11.619Z","date_to":"2026-04-07T19:04:11.619Z","per_page":"100"} 
[2026-04-07 19:04:14] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":13,"count":13,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070426-013","AZS-070426-012","AZS-070426-011","AZS-070426-010","AZS-070426-009","AZS-070426-008","AZS-070426-007","AZS-070426-006","AZS-070426-005","AZS-070426-004","AZS-070426-003","AZS-070426-002","AZS-070426-001"],"order_statuses":["paid","pending","paid","paid","paid","pending","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":10,"unpaid_count":3,"unique_order_numbers":13} 
[2026-04-07 19:04:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":6995,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null,"id":33499},{"menu_item_id":98,"quantity":2,"discount_percent":0,"notes":null,"id":33500},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":33501},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33502},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33503},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":33504},{"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null,"id":33505},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":33506}],"validated_items":[{"id":33499,"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null},{"id":33500,"menu_item_id":98,"quantity":2,"discount_percent":0,"notes":null},{"id":33501,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":33502,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":33503,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33504,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":33505,"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null},{"id":33506,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-07 19:04:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6995,"items_count":8} 
[2026-04-07 19:04:38] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33499,"menu_item_id":385,"quantity":1},{"id":33500,"menu_item_id":98,"quantity":2},{"id":33501,"menu_item_id":65,"quantity":1},{"id":33502,"menu_item_id":61,"quantity":1},{"id":33503,"menu_item_id":56,"quantity":1},{"id":33504,"menu_item_id":396,"quantity":2},{"id":33505,"menu_item_id":52,"quantity":4},{"id":33506,"menu_item_id":3,"quantity":1}]} 
[2026-04-07 19:04:38] local.INFO: PosOrderController::update - Item changes check {"order_id":6995,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["385|1|","98|1|","65|1|","61|1|","56|1|","396|2|","52|4|","3|1|"],"new_items_map_keys":["385|1|","98|2|","65|1|","61|1|","56|1|","396|2|","52|4|","3|1|"]} 
[2026-04-07 19:04:38] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6995,"order_number":"AZS-070426-012"} 
[2026-04-07 19:04:38] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070426-012","replaced_order_id":6995} 
[2026-04-07 19:04:38] local.INFO: PosOrderController::update - Creating order items {"new_order_id":6999,"items_count":8,"items":[{"menu_item_id":385,"quantity":1,"price":"2899.00"},{"menu_item_id":98,"quantity":2,"price":"1199.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":52,"quantity":4,"price":"70.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-07 19:04:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6999,"item_index":0,"item_data":{"menu_item_id":385,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 02","quantity":1,"price":"2899.00","discount_percent":0.0,"discount_amount":0.0,"total":2899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6999}} 
[2026-04-07 19:04:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6999,"item_index":0,"menu_item_id":385} 
[2026-04-07 19:04:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6999,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6999}} 
[2026-04-07 19:04:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6999,"item_index":1,"menu_item_id":98} 
[2026-04-07 19:04:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6999,"item_index":2,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6999}} 
[2026-04-07 19:04:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6999,"item_index":2,"menu_item_id":65} 
[2026-04-07 19:04:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6999,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6999}} 
[2026-04-07 19:04:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6999,"item_index":3,"menu_item_id":61} 
[2026-04-07 19:04:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6999,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6999}} 
[2026-04-07 19:04:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6999,"item_index":4,"menu_item_id":56} 
[2026-04-07 19:04:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6999,"item_index":5,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6999}} 
[2026-04-07 19:04:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6999,"item_index":5,"menu_item_id":396} 
[2026-04-07 19:04:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6999,"item_index":6,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6999}} 
[2026-04-07 19:04:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6999,"item_index":6,"menu_item_id":52} 
[2026-04-07 19:04:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":6999,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":6999}} 
[2026-04-07 19:04:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":6999,"item_index":7,"menu_item_id":3} 
[2026-04-07 19:04:38] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6995,"new_order_id":6999,"order_number":"AZS-070426-012"} 
[2026-04-07 19:05:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6999,"item_index":0,"item_id":33499} 
[2026-04-07 19:05:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6999,"item_index":1,"item_id":33500} 
[2026-04-07 19:05:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6999,"item_index":2,"item_id":33501} 
[2026-04-07 19:05:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6999,"item_index":3,"item_id":33502} 
[2026-04-07 19:05:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6999,"item_index":4,"item_id":33503} 
[2026-04-07 19:05:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6999,"item_index":5,"item_id":33504} 
[2026-04-07 19:05:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6999,"item_index":6,"item_id":33505} 
[2026-04-07 19:05:36] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":6999,"item_index":7,"item_id":33506} 
[2026-04-07 19:05:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":8,"order_id":6999,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":33499},{"menu_item_id":98,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":33500},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33501},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33502},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33503},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33504},{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":33505},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":33506}],"validated_items":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-07 19:05:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6999,"items_count":8} 
[2026-04-07 19:05:36] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":8,"items_to_remove":[33520,33521,33522,33523,33524,33525,33526,33527],"items":[{"id":null,"menu_item_id":385,"quantity":1},{"id":null,"menu_item_id":98,"quantity":2},{"id":null,"menu_item_id":65,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":52,"quantity":4},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-07 19:05:36] local.INFO: PosOrderController::update - Item changes check {"order_id":6999,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["385|1|","98|2|","65|1|","61|1|","56|1|","396|2|","52|4|","3|1|"],"new_items_map_keys":["385|1|","98|2|","65|1|","61|1|","56|1|","396|2|","52|4|","3|1|"]} 
[2026-04-07 19:05:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6999,"order_number":"AZS-070426-012"} 
[2026-04-07 19:05:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6999,"order_number":"AZS-070426-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-07 19:05:36"} 
[2026-04-07 19:08:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6998,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":33514},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":33515},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33516},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33517},{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":33518},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":33519}],"validated_items":[{"id":33514,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":33515,"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":33516,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":33517,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33518,"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":33519,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-07 19:08:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6998,"items_count":6} 
[2026-04-07 19:08:40] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33514,"menu_item_id":105,"quantity":1},{"id":33515,"menu_item_id":49,"quantity":2},{"id":33516,"menu_item_id":396,"quantity":1},{"id":33517,"menu_item_id":56,"quantity":1},{"id":33518,"menu_item_id":393,"quantity":1},{"id":33519,"menu_item_id":2,"quantity":2}]} 
[2026-04-07 19:08:40] local.INFO: PosOrderController::update - Item changes check {"order_id":6998,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["105|1|","49|2|","396|1|","56|1|","393|1|","2|2|"],"new_items_map_keys":["105|1|","49|2|","396|1|","56|1|","393|1|","2|2|"]} 
[2026-04-07 19:08:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6998,"order_number":"AZS-070426-008"} 
[2026-04-07 19:08:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6998,"order_number":"AZS-070426-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-07 19:08:40"} 
[2026-04-07 19:08:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6998,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":33514},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":33515},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33516},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33517},{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":33518},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":33519}],"validated_items":[{"id":33514,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":33515,"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":33516,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":33517,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33518,"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":33519,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-07 19:08:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6998,"items_count":6} 
[2026-04-07 19:08:46] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33514,"menu_item_id":105,"quantity":1},{"id":33515,"menu_item_id":49,"quantity":2},{"id":33516,"menu_item_id":396,"quantity":1},{"id":33517,"menu_item_id":56,"quantity":1},{"id":33518,"menu_item_id":393,"quantity":1},{"id":33519,"menu_item_id":2,"quantity":2}]} 
[2026-04-07 19:08:46] local.INFO: PosOrderController::update - Item changes check {"order_id":6998,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["105|1|","49|2|","396|1|","56|1|","393|1|","2|2|"],"new_items_map_keys":["105|1|","49|2|","396|1|","56|1|","393|1|","2|2|"]} 
[2026-04-07 19:08:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6998,"order_number":"AZS-070426-008"} 
[2026-04-07 19:08:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6998,"order_number":"AZS-070426-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-07 19:08:46"} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":6999,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null,"id":33520},{"menu_item_id":98,"quantity":2,"discount_percent":0,"notes":null,"id":33521},{"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null,"id":33522},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33523},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33524},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":33525},{"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null,"id":33526},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":33527},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":33520,"menu_item_id":385,"quantity":1,"discount_percent":0,"notes":null},{"id":33521,"menu_item_id":98,"quantity":2,"discount_percent":0,"notes":null},{"id":33522,"menu_item_id":65,"quantity":1,"discount_percent":0,"notes":null},{"id":33523,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":33524,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33525,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":33526,"menu_item_id":52,"quantity":4,"discount_percent":0,"notes":null},{"id":33527,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6999,"items_count":9} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33520,"menu_item_id":385,"quantity":1},{"id":33521,"menu_item_id":98,"quantity":2},{"id":33522,"menu_item_id":65,"quantity":1},{"id":33523,"menu_item_id":61,"quantity":1},{"id":33524,"menu_item_id":56,"quantity":1},{"id":33525,"menu_item_id":396,"quantity":2},{"id":33526,"menu_item_id":52,"quantity":4},{"id":33527,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Item changes check {"order_id":6999,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["385|1|","98|2|","65|1|","61|1|","56|1|","396|2|","52|4|","3|1|"],"new_items_map_keys":["385|1|","98|2|","65|1|","61|1|","56|1|","396|2|","52|4|","3|1|","6|2|"]} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6999,"order_number":"AZS-070426-012"} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070426-012","replaced_order_id":6999} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7000,"items_count":9,"items":[{"menu_item_id":385,"quantity":1,"price":"2899.00"},{"menu_item_id":98,"quantity":2,"price":"1199.00"},{"menu_item_id":65,"quantity":1,"price":"1299.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":52,"quantity":4,"price":"70.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7000,"item_index":0,"item_data":{"menu_item_id":385,"restaurant_category_id":36,"restaurant_category_name":"DEALS","item_name":"DEAL 02","quantity":1,"price":"2899.00","discount_percent":0.0,"discount_amount":0.0,"total":2899.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7000}} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7000,"item_index":0,"menu_item_id":385} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7000,"item_index":1,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":2,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":2398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7000}} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7000,"item_index":1,"menu_item_id":98} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7000,"item_index":2,"item_data":{"menu_item_id":65,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Reshmi Kabab (4 pcs)","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7000}} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7000,"item_index":2,"menu_item_id":65} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7000,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7000}} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7000,"item_index":3,"menu_item_id":61} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7000,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7000}} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7000,"item_index":4,"menu_item_id":56} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7000,"item_index":5,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7000}} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7000,"item_index":5,"menu_item_id":396} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7000,"item_index":6,"item_data":{"menu_item_id":52,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Khamiri Roti","quantity":4,"price":"70.00","discount_percent":0.0,"discount_amount":0.0,"total":280.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7000}} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7000,"item_index":6,"menu_item_id":52} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7000,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7000}} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7000,"item_index":7,"menu_item_id":3} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7000,"item_index":8,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7000}} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7000,"item_index":8,"menu_item_id":6} 
[2026-04-07 19:16:56] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6999,"new_order_id":7000,"order_number":"AZS-070426-012"} 
[2026-04-07 19:17:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":6998,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":33514},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":33515},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33516},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33517},{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":33518},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":33519}],"validated_items":[{"id":33514,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":33515,"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":33516,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":33517,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33518,"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":33519,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-07 19:17:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6998,"items_count":6} 
[2026-04-07 19:17:52] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33514,"menu_item_id":105,"quantity":1},{"id":33515,"menu_item_id":49,"quantity":2},{"id":33516,"menu_item_id":396,"quantity":1},{"id":33517,"menu_item_id":56,"quantity":1},{"id":33518,"menu_item_id":393,"quantity":1},{"id":33519,"menu_item_id":2,"quantity":2}]} 
[2026-04-07 19:17:52] local.INFO: PosOrderController::update - Item changes check {"order_id":6998,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["105|1|","49|2|","396|1|","56|1|","393|1|","2|2|"],"new_items_map_keys":["105|1|","49|2|","396|1|","56|1|","393|1|","2|2|"]} 
[2026-04-07 19:17:52] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6998,"order_number":"AZS-070426-008"} 
[2026-04-07 19:17:52] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6998,"order_number":"AZS-070426-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-07 19:17:52"} 
[2026-04-07 19:18:41] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6998,"order_number":"AZS-070426-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3197,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 19:18:41"} 
[2026-04-07 19:18:41] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6998,"order_number":"AZS-070426-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3197,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 19:18:41"} 
[2026-04-07 19:18:41] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6998,"order_number":"AZS-070426-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3197,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 19:18:41"} 
[2026-04-07 19:18:41] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6998,"order_number":"AZS-070426-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3197,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 19:18:41"} 
[2026-04-07 19:18:41] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":6998,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":33514},{"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null,"id":33515},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33516},{"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null,"id":33518},{"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null,"id":33519}],"validated_items":[{"id":33514,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":33515,"menu_item_id":49,"quantity":2,"price":70,"discount_percent":0,"notes":null},{"id":33516,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":33518,"menu_item_id":393,"quantity":1,"price":499,"discount_percent":0,"notes":null},{"id":33519,"menu_item_id":2,"quantity":2,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-07 19:18:41] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6998,"items_count":5} 
[2026-04-07 19:18:41] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[33517],"items":[{"id":33514,"menu_item_id":105,"quantity":1},{"id":33515,"menu_item_id":49,"quantity":2},{"id":33516,"menu_item_id":396,"quantity":1},{"id":33518,"menu_item_id":393,"quantity":1},{"id":33519,"menu_item_id":2,"quantity":2}]} 
[2026-04-07 19:18:41] local.INFO: PosOrderController::update - Item changes check {"order_id":6998,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["105|1|","49|2|","396|1|","56|1|","393|1|","2|2|"],"new_items_map_keys":["105|1|","49|2|","396|1|","393|1|","2|2|"]} 
[2026-04-07 19:18:41] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":6998,"order_number":"AZS-070426-008","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3197,"new_order_data_payment_mode":"online","new_order_data_paid_at":"2026-04-07 19:18:41","original_payment_amount":"0.00","grand_total":3197.0,"timestamp":"2026-04-07 19:18:41"} 
[2026-04-07 19:18:41] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":6998,"order_number":"AZS-070426-008"} 
[2026-04-07 19:18:41] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070426-008","replaced_order_id":6998} 
[2026-04-07 19:18:41] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":6998,"new_order_id":7001,"order_number":"AZS-070426-008","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3197.00","payment_mode_after_creation":"online","paid_at_after_creation":"2026-04-07 19:18:41","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3197,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-07 19:18:41"} 
[2026-04-07 19:18:41] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7001,"items_count":5,"items":[{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":49,"quantity":2,"price":70.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":393,"quantity":1,"price":499.0},{"menu_item_id":2,"quantity":2,"price":130.0}]} 
[2026-04-07 19:18:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7001,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7001}} 
[2026-04-07 19:18:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7001,"item_index":0,"menu_item_id":105} 
[2026-04-07 19:18:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7001,"item_index":1,"item_data":{"menu_item_id":49,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Plain Naan","quantity":2,"price":70.0,"discount_percent":0.0,"discount_amount":0.0,"total":140.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7001}} 
[2026-04-07 19:18:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7001,"item_index":1,"menu_item_id":49} 
[2026-04-07 19:18:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7001,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7001}} 
[2026-04-07 19:18:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7001,"item_index":2,"menu_item_id":396} 
[2026-04-07 19:18:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7001,"item_index":3,"item_data":{"menu_item_id":393,"restaurant_category_id":35,"restaurant_category_name":"ROCK N ROLL","item_name":"Chicken Shawarma","quantity":1,"price":499.0,"discount_percent":0.0,"discount_amount":0.0,"total":499.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7001}} 
[2026-04-07 19:18:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7001,"item_index":3,"menu_item_id":393} 
[2026-04-07 19:18:41] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7001,"item_index":4,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":2,"price":130.0,"discount_percent":0.0,"discount_amount":0.0,"total":260.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7001}} 
[2026-04-07 19:18:41] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7001,"item_index":4,"menu_item_id":2} 
[2026-04-07 19:18:41] local.ERROR: Error tracking recipe usage for order 7001: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (7001, 105, 196, 1, 500, 0.00, Order #AZS-070426-008 - 1x Mutton Shinwari - Half, 2026-04-07 19:18:41, 2026-04-07 19:18:41))  
[2026-04-07 19:18:41] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":6998,"new_order_id":7001,"order_number":"AZS-070426-008"} 
[2026-04-07 19:18:41] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":6998,"new_order_id":7001,"order_number":"AZS-070426-008","route":"api/orders/6998"} 
[2026-04-07 19:22:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":7000,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":33528},{"menu_item_id":98,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":33529},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33530},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33531},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33532},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33533},{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":33534},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":33535},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33536}],"validated_items":[{"id":33528,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null},{"id":33529,"menu_item_id":98,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":33530,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":33531,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33532,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33533,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":33534,"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":33535,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":33536,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-07 19:22:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7000,"items_count":9} 
[2026-04-07 19:22:30] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33528,"menu_item_id":385,"quantity":1},{"id":33529,"menu_item_id":98,"quantity":2},{"id":33530,"menu_item_id":65,"quantity":1},{"id":33531,"menu_item_id":61,"quantity":1},{"id":33532,"menu_item_id":56,"quantity":1},{"id":33533,"menu_item_id":396,"quantity":2},{"id":33534,"menu_item_id":52,"quantity":4},{"id":33535,"menu_item_id":3,"quantity":1},{"id":33536,"menu_item_id":6,"quantity":2}]} 
[2026-04-07 19:22:30] local.INFO: PosOrderController::update - Item changes check {"order_id":7000,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["385|1|","98|2|","65|1|","61|1|","56|1|","396|2|","52|4|","3|1|","6|2|"],"new_items_map_keys":["385|1|","98|2|","65|1|","61|1|","56|1|","396|2|","52|4|","3|1|","6|2|"]} 
[2026-04-07 19:22:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7000,"order_number":"AZS-070426-012"} 
[2026-04-07 19:22:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7000,"order_number":"AZS-070426-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-07 19:22:30"} 
[2026-04-07 19:53:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":7003,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null,"id":33543},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33543,"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-07 19:53:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7003,"items_count":2} 
[2026-04-07 19:53:49] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33543,"menu_item_id":13,"quantity":2},{"id":null,"menu_item_id":403,"quantity":1}]} 
[2026-04-07 19:53:49] local.INFO: PosOrderController::update - Item changes check {"order_id":7003,"has_item_changes":true,"old_items_count":1,"new_items_count":2,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|2|","403|1|"]} 
[2026-04-07 19:53:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7003,"order_number":"AZS-070426-015"} 
[2026-04-07 19:53:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070426-015","replaced_order_id":7003} 
[2026-04-07 19:53:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7004,"items_count":2,"items":[{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"}]} 
[2026-04-07 19:53:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7004,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7004}} 
[2026-04-07 19:53:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7004,"item_index":0,"menu_item_id":13} 
[2026-04-07 19:53:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7004,"item_index":1,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7004}} 
[2026-04-07 19:53:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7004,"item_index":1,"menu_item_id":403} 
[2026-04-07 19:53:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7003,"new_order_id":7004,"order_number":"AZS-070426-015"} 
[2026-04-07 19:55:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-07T07:55:01.724Z","date_to":"2026-04-07T19:55:01.724Z","per_page":"100"} 
[2026-04-07 19:55:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-07T07:55:01.739Z","date_to":"2026-04-07T19:55:01.739Z","per_page":"100"} 
[2026-04-07 19:55:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070426-015","AZS-070426-014","AZS-070426-013","AZS-070426-012","AZS-070426-011","AZS-070426-010","AZS-070426-009","AZS-070426-008","AZS-070426-007","AZS-070426-006","AZS-070426-005","AZS-070426-004","AZS-070426-003","AZS-070426-002","AZS-070426-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":4,"unique_order_numbers":15} 
[2026-04-07 19:55:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070426-015","AZS-070426-014","AZS-070426-013","AZS-070426-012","AZS-070426-011","AZS-070426-010","AZS-070426-009","AZS-070426-008","AZS-070426-007","AZS-070426-006","AZS-070426-005","AZS-070426-004","AZS-070426-003","AZS-070426-002","AZS-070426-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":4,"unique_order_numbers":15} 
[2026-04-07 19:55:02] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-07T07:55:01.724Z","date_to":"2026-04-07T19:55:01.724Z","per_page":"100"} 
[2026-04-07 19:55:02] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070426-015","AZS-070426-014","AZS-070426-013","AZS-070426-012","AZS-070426-011","AZS-070426-010","AZS-070426-009","AZS-070426-008","AZS-070426-007","AZS-070426-006","AZS-070426-005","AZS-070426-004","AZS-070426-003","AZS-070426-002","AZS-070426-001"],"order_statuses":["pending","pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":11,"unpaid_count":4,"unique_order_numbers":15} 
[2026-04-07 19:55:59] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":7000,"order_number":"AZS-070426-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":8140,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 19:55:59"} 
[2026-04-07 19:55:59] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":7000,"order_number":"AZS-070426-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":8140,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 19:55:59"} 
[2026-04-07 19:55:59] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":7000,"order_number":"AZS-070426-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":8140,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 19:55:59"} 
[2026-04-07 19:55:59] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":7000,"order_number":"AZS-070426-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":8140,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 19:55:59"} 
[2026-04-07 19:55:59] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":7000,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null,"id":33528},{"menu_item_id":98,"quantity":2,"price":1199,"discount_percent":0,"notes":null,"id":33529},{"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33530},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33531},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33532},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33533},{"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null,"id":33534},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":33535},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33536}],"validated_items":[{"id":33528,"menu_item_id":385,"quantity":1,"price":2899,"discount_percent":0,"notes":null},{"id":33529,"menu_item_id":98,"quantity":2,"price":1199,"discount_percent":0,"notes":null},{"id":33530,"menu_item_id":65,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":33531,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33532,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33533,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":33534,"menu_item_id":52,"quantity":4,"price":70,"discount_percent":0,"notes":null},{"id":33535,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":33536,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-07 19:55:59] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7000,"items_count":9} 
[2026-04-07 19:55:59] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33528,"menu_item_id":385,"quantity":1},{"id":33529,"menu_item_id":98,"quantity":2},{"id":33530,"menu_item_id":65,"quantity":1},{"id":33531,"menu_item_id":61,"quantity":1},{"id":33532,"menu_item_id":56,"quantity":1},{"id":33533,"menu_item_id":396,"quantity":2},{"id":33534,"menu_item_id":52,"quantity":4},{"id":33535,"menu_item_id":3,"quantity":1},{"id":33536,"menu_item_id":6,"quantity":2}]} 
[2026-04-07 19:55:59] local.INFO: PosOrderController::update - Item changes check {"order_id":7000,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["385|1|","98|2|","65|1|","61|1|","56|1|","396|2|","52|4|","3|1|","6|2|"],"new_items_map_keys":["385|1|","98|2|","65|1|","61|1|","56|1|","396|2|","52|4|","3|1|","6|2|"]} 
[2026-04-07 19:55:59] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7000,"order_number":"AZS-070426-012"} 
[2026-04-07 19:55:59] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":7000,"order_number":"AZS-070426-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":8140,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-07 19:55:59","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-07 19:55:59"} 
[2026-04-07 19:55:59] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7000,"order_number":"AZS-070426-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-07 19:55:59"} 
[2026-04-07 19:55:59] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":7000,"order_number":"AZS-070426-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"8140.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-07 19:55:59","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":8140,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"8140.00","database_verification_match":true,"timestamp":"2026-04-07 19:55:59"} 
[2026-04-07 19:56:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-07T07:56:03.156Z","date_to":"2026-04-07T19:56:03.156Z","per_page":"100"} 
[2026-04-07 19:56:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070426-015","AZS-070426-014","AZS-070426-013","AZS-070426-012","AZS-070426-011","AZS-070426-010","AZS-070426-009","AZS-070426-008","AZS-070426-007","AZS-070426-006","AZS-070426-005","AZS-070426-004","AZS-070426-003","AZS-070426-002","AZS-070426-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":3,"unique_order_numbers":15} 
[2026-04-07 19:56:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-07T07:56:03.175Z","date_to":"2026-04-07T19:56:03.175Z","per_page":"100"} 
[2026-04-07 19:56:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070426-015","AZS-070426-014","AZS-070426-013","AZS-070426-012","AZS-070426-011","AZS-070426-010","AZS-070426-009","AZS-070426-008","AZS-070426-007","AZS-070426-006","AZS-070426-005","AZS-070426-004","AZS-070426-003","AZS-070426-002","AZS-070426-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":3,"unique_order_numbers":15} 
[2026-04-07 19:56:03] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-07T07:56:03.156Z","date_to":"2026-04-07T19:56:03.156Z","per_page":"100"} 
[2026-04-07 19:56:03] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070426-015","AZS-070426-014","AZS-070426-013","AZS-070426-012","AZS-070426-011","AZS-070426-010","AZS-070426-009","AZS-070426-008","AZS-070426-007","AZS-070426-006","AZS-070426-005","AZS-070426-004","AZS-070426-003","AZS-070426-002","AZS-070426-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":12,"unpaid_count":3,"unique_order_numbers":15} 
[2026-04-07 19:58:18] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":6979,"order_number":"AZS-070426-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2199,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 19:58:18"} 
[2026-04-07 19:58:18] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":6979,"order_number":"AZS-070426-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2199,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 19:58:18"} 
[2026-04-07 19:58:18] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":6979,"order_number":"AZS-070426-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2199,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 19:58:18"} 
[2026-04-07 19:58:18] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":6979,"order_number":"AZS-070426-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2199,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 19:58:18"} 
[2026-04-07 19:58:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":6979,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":33419}],"validated_items":[{"id":33419,"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null}]} 
[2026-04-07 19:58:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":6979,"items_count":1} 
[2026-04-07 19:58:18] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33419,"menu_item_id":138,"quantity":1}]} 
[2026-04-07 19:58:18] local.INFO: PosOrderController::update - Item changes check {"order_id":6979,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["138|1|"],"new_items_map_keys":["138|1|"]} 
[2026-04-07 19:58:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":6979,"order_number":"AZS-070426-003"} 
[2026-04-07 19:58:18] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":6979,"order_number":"AZS-070426-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2199,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-07 19:58:18","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-07 19:58:18"} 
[2026-04-07 19:58:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":6979,"order_number":"AZS-070426-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-07 19:58:18"} 
[2026-04-07 19:58:18] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":6979,"order_number":"AZS-070426-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2199.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-07 19:58:18","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2199,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2199.00","database_verification_match":true,"timestamp":"2026-04-07 19:58:18"} 
[2026-04-07 20:05:36] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":7002,"order_number":"AZS-070426-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1399,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 20:05:36"} 
[2026-04-07 20:05:36] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":7002,"order_number":"AZS-070426-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1399,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 20:05:36"} 
[2026-04-07 20:05:36] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":7002,"order_number":"AZS-070426-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1399,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 20:05:36"} 
[2026-04-07 20:05:36] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":7002,"order_number":"AZS-070426-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1399,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 20:05:36"} 
[2026-04-07 20:05:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":7002,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":33542}],"validated_items":[{"id":33542,"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null}]} 
[2026-04-07 20:05:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7002,"items_count":1} 
[2026-04-07 20:05:36] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33542,"menu_item_id":384,"quantity":1}]} 
[2026-04-07 20:05:36] local.INFO: PosOrderController::update - Item changes check {"order_id":7002,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["384|1|"],"new_items_map_keys":["384|1|"]} 
[2026-04-07 20:05:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7002,"order_number":"AZS-070426-014"} 
[2026-04-07 20:05:36] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":7002,"order_number":"AZS-070426-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1399,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-07 20:05:36","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-07 20:05:36"} 
[2026-04-07 20:05:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7002,"order_number":"AZS-070426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-07 20:05:36"} 
[2026-04-07 20:05:36] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":7002,"order_number":"AZS-070426-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1399.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-07 20:05:36","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1399,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1399.00","database_verification_match":true,"timestamp":"2026-04-07 20:05:36"} 
[2026-04-07 20:05:57] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7004,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null,"id":33544},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":33545},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}],"validated_items":[{"id":33544,"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null},{"id":33545,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-07 20:05:57] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7004,"items_count":4} 
[2026-04-07 20:05:57] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33544,"menu_item_id":13,"quantity":3},{"id":33545,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2}]} 
[2026-04-07 20:05:57] local.INFO: PosOrderController::update - Item changes check {"order_id":7004,"has_item_changes":true,"old_items_count":2,"new_items_count":4,"old_items_map_keys":["13|2|","403|1|"],"new_items_map_keys":["13|3|","403|1|","96|1|","396|2|"]} 
[2026-04-07 20:05:57] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7004,"order_number":"AZS-070426-015"} 
[2026-04-07 20:05:57] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070426-015","replaced_order_id":7004} 
[2026-04-07 20:05:57] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7005,"items_count":4,"items":[{"menu_item_id":13,"quantity":3,"price":"249.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"}]} 
[2026-04-07 20:05:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7005,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7005}} 
[2026-04-07 20:05:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7005,"item_index":0,"menu_item_id":13} 
[2026-04-07 20:05:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7005,"item_index":1,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7005}} 
[2026-04-07 20:05:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7005,"item_index":1,"menu_item_id":403} 
[2026-04-07 20:05:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7005,"item_index":2,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7005}} 
[2026-04-07 20:05:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7005,"item_index":2,"menu_item_id":96} 
[2026-04-07 20:05:57] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7005,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7005}} 
[2026-04-07 20:05:57] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7005,"item_index":3,"menu_item_id":396} 
[2026-04-07 20:05:57] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7004,"new_order_id":7005,"order_number":"AZS-070426-015"} 
[2026-04-07 20:11:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7005,"item_index":0,"item_id":33544} 
[2026-04-07 20:11:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7005,"item_index":1,"item_id":33545} 
[2026-04-07 20:11:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":4,"order_id":7005,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null,"id":33544},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":33545},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-07 20:11:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7005,"items_count":6} 
[2026-04-07 20:11:40] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":4,"items_to_remove":[33546,33547,33548,33549],"items":[{"id":null,"menu_item_id":13,"quantity":3},{"id":null,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-04-07 20:11:40] local.INFO: PosOrderController::update - Item changes check {"order_id":7005,"has_item_changes":true,"old_items_count":4,"new_items_count":6,"old_items_map_keys":["13|3|","403|1|","96|1|","396|2|"],"new_items_map_keys":["13|3|","403|1|","96|1|","396|2|","61|1|","56|1|"]} 
[2026-04-07 20:11:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7005,"order_number":"AZS-070426-015"} 
[2026-04-07 20:11:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070426-015","replaced_order_id":7005} 
[2026-04-07 20:11:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7006,"items_count":6,"items":[{"menu_item_id":13,"quantity":3,"price":"249.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"}]} 
[2026-04-07 20:11:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7006,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7006}} 
[2026-04-07 20:11:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7006,"item_index":0,"menu_item_id":13} 
[2026-04-07 20:11:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7006,"item_index":1,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7006}} 
[2026-04-07 20:11:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7006,"item_index":1,"menu_item_id":403} 
[2026-04-07 20:11:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7006,"item_index":2,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7006}} 
[2026-04-07 20:11:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7006,"item_index":2,"menu_item_id":96} 
[2026-04-07 20:11:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7006,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7006}} 
[2026-04-07 20:11:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7006,"item_index":3,"menu_item_id":396} 
[2026-04-07 20:11:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7006,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7006}} 
[2026-04-07 20:11:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7006,"item_index":4,"menu_item_id":61} 
[2026-04-07 20:11:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7006,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7006}} 
[2026-04-07 20:11:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7006,"item_index":5,"menu_item_id":56} 
[2026-04-07 20:11:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7005,"new_order_id":7006,"order_number":"AZS-070426-015"} 
[2026-04-07 20:11:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7006,"item_index":0,"item_id":33544} 
[2026-04-07 20:11:44] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7006,"item_index":1,"item_id":33545} 
[2026-04-07 20:11:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":7006,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":33544},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":33545},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-07 20:11:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7006,"items_count":6} 
[2026-04-07 20:11:44] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[33550,33551,33552,33553,33554,33555],"items":[{"id":null,"menu_item_id":13,"quantity":3},{"id":null,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-04-07 20:11:44] local.INFO: PosOrderController::update - Item changes check {"order_id":7006,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["13|3|","403|1|","96|1|","396|2|","61|1|","56|1|"],"new_items_map_keys":["13|3|","403|1|","96|1|","396|2|","61|1|","56|1|"]} 
[2026-04-07 20:11:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7006,"order_number":"AZS-070426-015"} 
[2026-04-07 20:11:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7006,"order_number":"AZS-070426-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-07 20:11:44"} 
[2026-04-07 20:21:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7006,"item_index":0,"item_id":33544} 
[2026-04-07 20:21:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7006,"item_index":1,"item_id":33545} 
[2026-04-07 20:21:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":6,"order_id":7006,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null,"id":33544},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":33545},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":13,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-07 20:21:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7006,"items_count":7} 
[2026-04-07 20:21:26] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":6,"items_to_remove":[33550,33551,33552,33553,33554,33555],"items":[{"id":null,"menu_item_id":13,"quantity":3},{"id":null,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-07 20:21:26] local.INFO: PosOrderController::update - Item changes check {"order_id":7006,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["13|3|","403|1|","96|1|","396|2|","61|1|","56|1|"],"new_items_map_keys":["13|3|","403|1|","96|1|","396|2|","61|1|","56|1|","3|1|"]} 
[2026-04-07 20:21:26] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7006,"order_number":"AZS-070426-015"} 
[2026-04-07 20:21:26] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-070426-015","replaced_order_id":7006} 
[2026-04-07 20:21:26] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7007,"items_count":7,"items":[{"menu_item_id":13,"quantity":3,"price":"249.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-07 20:21:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7007,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":3,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":747.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7007}} 
[2026-04-07 20:21:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7007,"item_index":0,"menu_item_id":13} 
[2026-04-07 20:21:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7007,"item_index":1,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7007}} 
[2026-04-07 20:21:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7007,"item_index":1,"menu_item_id":403} 
[2026-04-07 20:21:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7007,"item_index":2,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7007}} 
[2026-04-07 20:21:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7007,"item_index":2,"menu_item_id":96} 
[2026-04-07 20:21:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7007,"item_index":3,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7007}} 
[2026-04-07 20:21:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7007,"item_index":3,"menu_item_id":396} 
[2026-04-07 20:21:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7007,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7007}} 
[2026-04-07 20:21:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7007,"item_index":4,"menu_item_id":61} 
[2026-04-07 20:21:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7007,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7007}} 
[2026-04-07 20:21:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7007,"item_index":5,"menu_item_id":56} 
[2026-04-07 20:21:26] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7007,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7007}} 
[2026-04-07 20:21:26] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7007,"item_index":6,"menu_item_id":3} 
[2026-04-07 20:21:26] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7006,"new_order_id":7007,"order_number":"AZS-070426-015"} 
[2026-04-07 20:45:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7007,"item_index":0,"item_id":33544} 
[2026-04-07 20:45:04] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7007,"item_index":1,"item_id":33545} 
[2026-04-07 20:45:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":7,"order_id":7007,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":33544},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":33545},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-07 20:45:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7007,"items_count":7} 
[2026-04-07 20:45:04] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":7,"items_to_remove":[33556,33557,33558,33559,33560,33561,33562],"items":[{"id":null,"menu_item_id":13,"quantity":3},{"id":null,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-07 20:45:04] local.INFO: PosOrderController::update - Item changes check {"order_id":7007,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["13|3|","403|1|","96|1|","396|2|","61|1|","56|1|","3|1|"],"new_items_map_keys":["13|3|","403|1|","96|1|","396|2|","61|1|","56|1|","3|1|"]} 
[2026-04-07 20:45:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7007,"order_number":"AZS-070426-015"} 
[2026-04-07 20:45:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7007,"order_number":"AZS-070426-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-07 20:45:04"} 
[2026-04-07 20:45:46] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-07T08:45:45.325Z","date_to":"2026-04-07T20:45:45.325Z","per_page":"100"} 
[2026-04-07 20:45:46] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-07T08:45:45.309Z","date_to":"2026-04-07T20:45:45.309Z","per_page":"100"} 
[2026-04-07 20:45:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070426-015","AZS-070426-014","AZS-070426-013","AZS-070426-012","AZS-070426-011","AZS-070426-010","AZS-070426-009","AZS-070426-008","AZS-070426-007","AZS-070426-006","AZS-070426-005","AZS-070426-004","AZS-070426-003","AZS-070426-002","AZS-070426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":1,"unique_order_numbers":15} 
[2026-04-07 20:45:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070426-015","AZS-070426-014","AZS-070426-013","AZS-070426-012","AZS-070426-011","AZS-070426-010","AZS-070426-009","AZS-070426-008","AZS-070426-007","AZS-070426-006","AZS-070426-005","AZS-070426-004","AZS-070426-003","AZS-070426-002","AZS-070426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":1,"unique_order_numbers":15} 
[2026-04-07 20:45:46] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-07T08:45:45.309Z","date_to":"2026-04-07T20:45:45.309Z","per_page":"100"} 
[2026-04-07 20:45:46] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070426-015","AZS-070426-014","AZS-070426-013","AZS-070426-012","AZS-070426-011","AZS-070426-010","AZS-070426-009","AZS-070426-008","AZS-070426-007","AZS-070426-006","AZS-070426-005","AZS-070426-004","AZS-070426-003","AZS-070426-002","AZS-070426-001"],"order_statuses":["pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":1,"unique_order_numbers":15} 
[2026-04-07 20:47:37] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":7007,"order_number":"AZS-070426-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 20:47:37"} 
[2026-04-07 20:47:37] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":7007,"order_number":"AZS-070426-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-07 20:47:37"} 
[2026-04-07 20:47:37] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":7007,"order_number":"AZS-070426-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 20:47:37"} 
[2026-04-07 20:47:37] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":7007,"order_number":"AZS-070426-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-07 20:47:37"} 
[2026-04-07 20:47:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":7007,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null,"id":33556},{"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null,"id":33557},{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33558},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33559},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33560},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33561},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":33562}],"validated_items":[{"id":33556,"menu_item_id":13,"quantity":3,"price":249,"discount_percent":0,"notes":null},{"id":33557,"menu_item_id":403,"quantity":1,"price":349,"discount_percent":0,"notes":null},{"id":33558,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33559,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":33560,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33561,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33562,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-07 20:47:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7007,"items_count":7} 
[2026-04-07 20:47:37] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33556,"menu_item_id":13,"quantity":3},{"id":33557,"menu_item_id":403,"quantity":1},{"id":33558,"menu_item_id":96,"quantity":1},{"id":33559,"menu_item_id":396,"quantity":2},{"id":33560,"menu_item_id":61,"quantity":1},{"id":33561,"menu_item_id":56,"quantity":1},{"id":33562,"menu_item_id":3,"quantity":1}]} 
[2026-04-07 20:47:37] local.INFO: PosOrderController::update - Item changes check {"order_id":7007,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["13|3|","403|1|","96|1|","396|2|","61|1|","56|1|","3|1|"],"new_items_map_keys":["13|3|","403|1|","96|1|","396|2|","61|1|","56|1|","3|1|"]} 
[2026-04-07 20:47:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7007,"order_number":"AZS-070426-015"} 
[2026-04-07 20:47:37] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":7007,"order_number":"AZS-070426-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-07 20:47:37","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-07 20:47:37"} 
[2026-04-07 20:47:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7007,"order_number":"AZS-070426-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-07 20:47:37"} 
[2026-04-07 20:47:37] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":7007,"order_number":"AZS-070426-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-07 20:47:37","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3500.00","database_verification_match":true,"timestamp":"2026-04-07 20:47:37"} 
[2026-04-07 20:47:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-07T08:47:41.524Z","date_to":"2026-04-07T20:47:41.524Z","per_page":"100"} 
[2026-04-07 20:47:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070426-015","AZS-070426-014","AZS-070426-013","AZS-070426-012","AZS-070426-011","AZS-070426-010","AZS-070426-009","AZS-070426-008","AZS-070426-007","AZS-070426-006","AZS-070426-005","AZS-070426-004","AZS-070426-003","AZS-070426-002","AZS-070426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":0,"unique_order_numbers":15} 
[2026-04-07 20:47:41] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-07T08:47:41.539Z","date_to":"2026-04-07T20:47:41.539Z","per_page":"100"} 
[2026-04-07 20:47:41] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070426-015","AZS-070426-014","AZS-070426-013","AZS-070426-012","AZS-070426-011","AZS-070426-010","AZS-070426-009","AZS-070426-008","AZS-070426-007","AZS-070426-006","AZS-070426-005","AZS-070426-004","AZS-070426-003","AZS-070426-002","AZS-070426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":0,"unique_order_numbers":15} 
[2026-04-07 20:47:42] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-07T08:47:41.524Z","date_to":"2026-04-07T20:47:41.524Z","per_page":"100"} 
[2026-04-07 20:47:42] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-070426-015","AZS-070426-014","AZS-070426-013","AZS-070426-012","AZS-070426-011","AZS-070426-010","AZS-070426-009","AZS-070426-008","AZS-070426-007","AZS-070426-006","AZS-070426-005","AZS-070426-004","AZS-070426-003","AZS-070426-002","AZS-070426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":15,"unpaid_count":0,"unique_order_numbers":15} 
[2026-04-08 12:30:03] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-04-08 13:37:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":7009,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null,"id":33564},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":33565},{"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null,"id":33566},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33567},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33568},{"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null,"id":33569},{"menu_item_id":66,"quantity":1,"discount_percent":0,"notes":null,"id":33570},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33564,"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null},{"id":33565,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":33566,"menu_item_id":60,"quantity":1,"discount_percent":0,"notes":null},{"id":33567,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33568,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33569,"menu_item_id":98,"quantity":1,"discount_percent":0,"notes":null},{"id":33570,"menu_item_id":66,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 13:37:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7009,"items_count":8} 
[2026-04-08 13:37:10] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33564,"menu_item_id":137,"quantity":1},{"id":33565,"menu_item_id":396,"quantity":3},{"id":33566,"menu_item_id":60,"quantity":1},{"id":33567,"menu_item_id":56,"quantity":1},{"id":33568,"menu_item_id":5,"quantity":1},{"id":33569,"menu_item_id":98,"quantity":1},{"id":33570,"menu_item_id":66,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-08 13:37:10] local.INFO: PosOrderController::update - Item changes check {"order_id":7009,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["137|1|","396|3|","60|1|","56|1|","5|1|","98|1|","66|1|"],"new_items_map_keys":["137|1|","396|3|","60|1|","56|1|","5|1|","98|1|","66|1|","3|1|"]} 
[2026-04-08 13:37:10] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7009,"order_number":"AZS-080426-002"} 
[2026-04-08 13:37:10] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-002","replaced_order_id":7009} 
[2026-04-08 13:37:10] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7010,"items_count":8,"items":[{"menu_item_id":137,"quantity":1,"price":"1299.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":60,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":98,"quantity":1,"price":"1199.00"},{"menu_item_id":66,"quantity":1,"price":"1399.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-08 13:37:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7010,"item_index":0,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7010}} 
[2026-04-08 13:37:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7010,"item_index":0,"menu_item_id":137} 
[2026-04-08 13:37:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7010,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7010}} 
[2026-04-08 13:37:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7010,"item_index":1,"menu_item_id":396} 
[2026-04-08 13:37:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7010,"item_index":2,"item_data":{"menu_item_id":60,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7010}} 
[2026-04-08 13:37:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7010,"item_index":2,"menu_item_id":60} 
[2026-04-08 13:37:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7010,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7010}} 
[2026-04-08 13:37:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7010,"item_index":3,"menu_item_id":56} 
[2026-04-08 13:37:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7010,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7010}} 
[2026-04-08 13:37:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7010,"item_index":4,"menu_item_id":5} 
[2026-04-08 13:37:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7010,"item_index":5,"item_data":{"menu_item_id":98,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken White - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7010}} 
[2026-04-08 13:37:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7010,"item_index":5,"menu_item_id":98} 
[2026-04-08 13:37:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7010,"item_index":6,"item_data":{"menu_item_id":66,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Cheese Kabab (4 pcs)","quantity":1,"price":"1399.00","discount_percent":0.0,"discount_amount":0.0,"total":1399.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7010}} 
[2026-04-08 13:37:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7010,"item_index":6,"menu_item_id":66} 
[2026-04-08 13:37:10] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7010,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7010}} 
[2026-04-08 13:37:10] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7010,"item_index":7,"menu_item_id":3} 
[2026-04-08 13:37:10] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7009,"new_order_id":7010,"order_number":"AZS-080426-002"} 
[2026-04-08 13:39:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7010,"item_index":0,"item_id":33564} 
[2026-04-08 13:39:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7010,"item_index":1,"item_id":33565} 
[2026-04-08 13:39:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7010,"item_index":2,"item_id":33566} 
[2026-04-08 13:39:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7010,"item_index":3,"item_id":33567} 
[2026-04-08 13:39:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7010,"item_index":4,"item_id":33568} 
[2026-04-08 13:39:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7010,"item_index":5,"item_id":33569} 
[2026-04-08 13:39:28] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7010,"item_index":6,"item_id":33570} 
[2026-04-08 13:39:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":8,"order_id":7010,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33564},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":33565},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33566},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33567},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33568},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33569},{"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":33570},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-08 13:39:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7010,"items_count":8} 
[2026-04-08 13:39:28] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":8,"items_to_remove":[33571,33572,33573,33574,33575,33576,33577,33578],"items":[{"id":null,"menu_item_id":137,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":60,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":98,"quantity":1},{"id":null,"menu_item_id":66,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-08 13:39:28] local.INFO: PosOrderController::update - Item changes check {"order_id":7010,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["137|1|","396|3|","60|1|","56|1|","5|1|","98|1|","66|1|","3|1|"],"new_items_map_keys":["137|1|","396|3|","60|1|","56|1|","5|1|","98|1|","66|1|","3|1|"]} 
[2026-04-08 13:39:28] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7010,"order_number":"AZS-080426-002"} 
[2026-04-08 13:39:28] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7010,"order_number":"AZS-080426-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 13:39:28"} 
[2026-04-08 14:19:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":7010,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33571},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":33572},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33573},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33574},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33575},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33576},{"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":33577},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":33578}],"validated_items":[{"id":33571,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":33572,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":33573,"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33574,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33575,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33576,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33577,"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":33578,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-08 14:19:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7010,"items_count":8} 
[2026-04-08 14:19:35] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33571,"menu_item_id":137,"quantity":1},{"id":33572,"menu_item_id":396,"quantity":3},{"id":33573,"menu_item_id":60,"quantity":1},{"id":33574,"menu_item_id":56,"quantity":1},{"id":33575,"menu_item_id":5,"quantity":1},{"id":33576,"menu_item_id":98,"quantity":1},{"id":33577,"menu_item_id":66,"quantity":1},{"id":33578,"menu_item_id":3,"quantity":1}]} 
[2026-04-08 14:19:35] local.INFO: PosOrderController::update - Item changes check {"order_id":7010,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["137|1|","396|3|","60|1|","56|1|","5|1|","98|1|","66|1|","3|1|"],"new_items_map_keys":["137|1|","396|3|","60|1|","56|1|","5|1|","98|1|","66|1|","3|1|"]} 
[2026-04-08 14:19:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7010,"order_number":"AZS-080426-002"} 
[2026-04-08 14:19:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7010,"order_number":"AZS-080426-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 14:19:35"} 
[2026-04-08 14:31:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":7010,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33571},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":33572},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33573},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33574},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33575},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33576},{"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":33577},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":33578}],"validated_items":[{"id":33571,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":33572,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":33573,"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33574,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33575,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33576,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33577,"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":33578,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-08 14:31:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7010,"items_count":8} 
[2026-04-08 14:31:11] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33571,"menu_item_id":137,"quantity":1},{"id":33572,"menu_item_id":396,"quantity":3},{"id":33573,"menu_item_id":60,"quantity":1},{"id":33574,"menu_item_id":56,"quantity":1},{"id":33575,"menu_item_id":5,"quantity":1},{"id":33576,"menu_item_id":98,"quantity":1},{"id":33577,"menu_item_id":66,"quantity":1},{"id":33578,"menu_item_id":3,"quantity":1}]} 
[2026-04-08 14:31:11] local.INFO: PosOrderController::update - Item changes check {"order_id":7010,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["137|1|","396|3|","60|1|","56|1|","5|1|","98|1|","66|1|","3|1|"],"new_items_map_keys":["137|1|","396|3|","60|1|","56|1|","5|1|","98|1|","66|1|","3|1|"]} 
[2026-04-08 14:31:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7010,"order_number":"AZS-080426-002"} 
[2026-04-08 14:31:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7010,"order_number":"AZS-080426-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 14:31:11"} 
[2026-04-08 14:37:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":7011,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null,"id":33579},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33579,"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 14:37:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7011,"items_count":3} 
[2026-04-08 14:37:39] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33579,"menu_item_id":13,"quantity":2},{"id":null,"menu_item_id":403,"quantity":1},{"id":null,"menu_item_id":9,"quantity":1}]} 
[2026-04-08 14:37:39] local.INFO: PosOrderController::update - Item changes check {"order_id":7011,"has_item_changes":true,"old_items_count":1,"new_items_count":3,"old_items_map_keys":["13|2|"],"new_items_map_keys":["13|2|","403|1|","9|1|"]} 
[2026-04-08 14:37:39] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7011,"order_number":"AZS-080426-003"} 
[2026-04-08 14:37:39] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-003","replaced_order_id":7011} 
[2026-04-08 14:37:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7015,"items_count":3,"items":[{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":9,"quantity":1,"price":"229.00"}]} 
[2026-04-08 14:37:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7015,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7015}} 
[2026-04-08 14:37:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7015,"item_index":0,"menu_item_id":13} 
[2026-04-08 14:37:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7015,"item_index":1,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7015}} 
[2026-04-08 14:37:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7015,"item_index":1,"menu_item_id":403} 
[2026-04-08 14:37:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7015,"item_index":2,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":1,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":229.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7015}} 
[2026-04-08 14:37:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7015,"item_index":2,"menu_item_id":9} 
[2026-04-08 14:37:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7011,"new_order_id":7015,"order_number":"AZS-080426-003"} 
[2026-04-08 14:38:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":7010,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33571},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":33572},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33573},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33574},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33575},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33576},{"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":33577},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":33578}],"validated_items":[{"id":33571,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":33572,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":33573,"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33574,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33575,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33576,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33577,"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":33578,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-08 14:38:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7010,"items_count":8} 
[2026-04-08 14:38:10] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33571,"menu_item_id":137,"quantity":1},{"id":33572,"menu_item_id":396,"quantity":3},{"id":33573,"menu_item_id":60,"quantity":1},{"id":33574,"menu_item_id":56,"quantity":1},{"id":33575,"menu_item_id":5,"quantity":1},{"id":33576,"menu_item_id":98,"quantity":1},{"id":33577,"menu_item_id":66,"quantity":1},{"id":33578,"menu_item_id":3,"quantity":1}]} 
[2026-04-08 14:38:10] local.INFO: PosOrderController::update - Item changes check {"order_id":7010,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["137|1|","396|3|","60|1|","56|1|","5|1|","98|1|","66|1|","3|1|"],"new_items_map_keys":["137|1|","396|3|","60|1|","56|1|","5|1|","98|1|","66|1|","3|1|"]} 
[2026-04-08 14:38:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7010,"order_number":"AZS-080426-002"} 
[2026-04-08 14:38:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7010,"order_number":"AZS-080426-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 14:38:10"} 
[2026-04-08 14:38:27] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":7010,"order_number":"AZS-080426-002","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5032,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 14:38:27"} 
[2026-04-08 14:38:27] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":7010,"order_number":"AZS-080426-002","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5032,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 14:38:27"} 
[2026-04-08 14:38:27] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":7010,"order_number":"AZS-080426-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5032,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 14:38:27"} 
[2026-04-08 14:38:27] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":7010,"order_number":"AZS-080426-002","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5032,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 14:38:27"} 
[2026-04-08 14:38:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":7010,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33571},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":33572},{"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33573},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33574},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33575},{"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33576},{"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":33577},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":33578}],"validated_items":[{"id":33571,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null},{"id":33572,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":33573,"menu_item_id":60,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33574,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33575,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33576,"menu_item_id":98,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33577,"menu_item_id":66,"quantity":1,"price":1399,"discount_percent":0,"notes":null},{"id":33578,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-08 14:38:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7010,"items_count":8} 
[2026-04-08 14:38:27] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33571,"menu_item_id":137,"quantity":1},{"id":33572,"menu_item_id":396,"quantity":3},{"id":33573,"menu_item_id":60,"quantity":1},{"id":33574,"menu_item_id":56,"quantity":1},{"id":33575,"menu_item_id":5,"quantity":1},{"id":33576,"menu_item_id":98,"quantity":1},{"id":33577,"menu_item_id":66,"quantity":1},{"id":33578,"menu_item_id":3,"quantity":1}]} 
[2026-04-08 14:38:27] local.INFO: PosOrderController::update - Item changes check {"order_id":7010,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["137|1|","396|3|","60|1|","56|1|","5|1|","98|1|","66|1|","3|1|"],"new_items_map_keys":["137|1|","396|3|","60|1|","56|1|","5|1|","98|1|","66|1|","3|1|"]} 
[2026-04-08 14:38:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7010,"order_number":"AZS-080426-002"} 
[2026-04-08 14:38:27] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":7010,"order_number":"AZS-080426-002","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5032,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-08 14:38:27","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-08 14:38:27"} 
[2026-04-08 14:38:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7010,"order_number":"AZS-080426-002","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-08 14:38:27"} 
[2026-04-08 14:38:27] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":7010,"order_number":"AZS-080426-002","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5032.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-08 14:38:27","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5032,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5032.00","database_verification_match":true,"timestamp":"2026-04-08 14:38:27"} 
[2026-04-08 14:40:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":7012,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null,"id":33580},{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":33581},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":33582},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":33583},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":33584},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33585},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33586},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33580,"menu_item_id":97,"quantity":1,"discount_percent":0,"notes":null},{"id":33581,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":33582,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":33583,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":33584,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":33585,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33586,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 14:40:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7012,"items_count":8} 
[2026-04-08 14:40:37] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33580,"menu_item_id":97,"quantity":1},{"id":33581,"menu_item_id":112,"quantity":1},{"id":33582,"menu_item_id":396,"quantity":2},{"id":33583,"menu_item_id":50,"quantity":2},{"id":33584,"menu_item_id":61,"quantity":2},{"id":33585,"menu_item_id":56,"quantity":1},{"id":33586,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-08 14:40:37] local.INFO: PosOrderController::update - Item changes check {"order_id":7012,"has_item_changes":true,"old_items_count":7,"new_items_count":8,"old_items_map_keys":["97|1|","112|1|","396|2|","50|2|","61|2|","56|1|","5|1|"],"new_items_map_keys":["97|1|","112|1|","396|2|","50|2|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-04-08 14:40:37] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7012,"order_number":"AZS-080426-004"} 
[2026-04-08 14:40:37] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-004","replaced_order_id":7012} 
[2026-04-08 14:40:37] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7017,"items_count":8,"items":[{"menu_item_id":97,"quantity":1,"price":"2299.00"},{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-08 14:40:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7017,"item_index":0,"item_data":{"menu_item_id":97,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7017}} 
[2026-04-08 14:40:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7017,"item_index":0,"menu_item_id":97} 
[2026-04-08 14:40:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7017,"item_index":1,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7017}} 
[2026-04-08 14:40:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7017,"item_index":1,"menu_item_id":112} 
[2026-04-08 14:40:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7017,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7017}} 
[2026-04-08 14:40:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7017,"item_index":2,"menu_item_id":396} 
[2026-04-08 14:40:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7017,"item_index":3,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7017}} 
[2026-04-08 14:40:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7017,"item_index":3,"menu_item_id":50} 
[2026-04-08 14:40:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7017,"item_index":4,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7017}} 
[2026-04-08 14:40:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7017,"item_index":4,"menu_item_id":61} 
[2026-04-08 14:40:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7017,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7017}} 
[2026-04-08 14:40:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7017,"item_index":5,"menu_item_id":56} 
[2026-04-08 14:40:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7017,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7017}} 
[2026-04-08 14:40:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7017,"item_index":6,"menu_item_id":5} 
[2026-04-08 14:40:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7017,"item_index":7,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7017}} 
[2026-04-08 14:40:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7017,"item_index":7,"menu_item_id":3} 
[2026-04-08 14:40:37] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7012,"new_order_id":7017,"order_number":"AZS-080426-004"} 
[2026-04-08 14:44:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7013,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null,"id":33587},{"menu_item_id":165,"quantity":1,"discount_percent":0,"notes":null,"id":33588},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":33589},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33587,"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null},{"id":33588,"menu_item_id":165,"quantity":1,"discount_percent":0,"notes":null},{"id":33589,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 14:44:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7013,"items_count":4} 
[2026-04-08 14:44:53] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33587,"menu_item_id":85,"quantity":1},{"id":33588,"menu_item_id":165,"quantity":1},{"id":33589,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":4,"quantity":1}]} 
[2026-04-08 14:44:53] local.INFO: PosOrderController::update - Item changes check {"order_id":7013,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["85|1|","165|1|","2|1|"],"new_items_map_keys":["85|1|","165|1|","2|1|","4|1|"]} 
[2026-04-08 14:44:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7013,"order_number":"AZS-080426-005"} 
[2026-04-08 14:44:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-005","replaced_order_id":7013} 
[2026-04-08 14:44:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7018,"items_count":4,"items":[{"menu_item_id":85,"quantity":1,"price":"699.00"},{"menu_item_id":165,"quantity":1,"price":"999.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":4,"quantity":1,"price":"90.00"}]} 
[2026-04-08 14:44:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7018,"item_index":0,"item_data":{"menu_item_id":85,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Loaded Fries","quantity":1,"price":"699.00","discount_percent":0.0,"discount_amount":0.0,"total":699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7018}} 
[2026-04-08 14:44:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7018,"item_index":0,"menu_item_id":85} 
[2026-04-08 14:44:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7018,"item_index":1,"item_data":{"menu_item_id":165,"restaurant_category_id":16,"restaurant_category_name":"SANDWICH","item_name":"Grilled Chicken Sandwich","quantity":1,"price":"999.00","discount_percent":0.0,"discount_amount":0.0,"total":999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7018}} 
[2026-04-08 14:44:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7018,"item_index":1,"menu_item_id":165} 
[2026-04-08 14:44:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7018,"item_index":2,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7018}} 
[2026-04-08 14:44:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7018,"item_index":2,"menu_item_id":2} 
[2026-04-08 14:44:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7018,"item_index":3,"item_data":{"menu_item_id":4,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Small","quantity":1,"price":"90.00","discount_percent":0.0,"discount_amount":0.0,"total":90.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7018}} 
[2026-04-08 14:44:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7018,"item_index":3,"menu_item_id":4} 
[2026-04-08 14:44:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7013,"new_order_id":7018,"order_number":"AZS-080426-005"} 
[2026-04-08 14:47:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T02:47:41.317Z","date_to":"2026-04-08T14:47:41.317Z","per_page":"100"} 
[2026-04-08 14:47:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T02:47:41.309Z","date_to":"2026-04-08T14:47:41.309Z","per_page":"100"} 
[2026-04-08 14:47:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","pending"],"deleted_count":0,"paid_count":1,"unpaid_count":6,"unique_order_numbers":7} 
[2026-04-08 14:47:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","pending"],"deleted_count":0,"paid_count":1,"unpaid_count":6,"unique_order_numbers":7} 
[2026-04-08 14:47:40] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T02:47:41.309Z","date_to":"2026-04-08T14:47:41.309Z","per_page":"100"} 
[2026-04-08 14:47:40] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":7,"count":7,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","pending"],"deleted_count":0,"paid_count":1,"unpaid_count":6,"unique_order_numbers":7} 
[2026-04-08 14:51:21] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":7020,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":33621},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33622},{"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null,"id":33623}],"validated_items":[{"id":33621,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":33622,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33623,"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 14:51:21] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7020,"items_count":3} 
[2026-04-08 14:51:21] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33621,"menu_item_id":396,"quantity":3},{"id":33622,"menu_item_id":5,"quantity":1},{"id":33623,"menu_item_id":87,"quantity":1}]} 
[2026-04-08 14:51:21] local.INFO: PosOrderController::update - Item changes check {"order_id":7020,"has_item_changes":false,"old_items_count":3,"new_items_count":3,"old_items_map_keys":["396|3|","5|1|","87|1|"],"new_items_map_keys":["396|3|","5|1|","87|1|"]} 
[2026-04-08 14:51:21] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7020,"order_number":"AZS-080426-009"} 
[2026-04-08 14:51:21] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7020,"order_number":"AZS-080426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-08 14:51:21"} 
[2026-04-08 14:53:35] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":7017,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":33604},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":33605},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33606},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":33607},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33608},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33609},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33610},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":33611}],"validated_items":[{"id":33604,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":33605,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":33606,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":33607,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":33608,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33609,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33610,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33611,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-08 14:53:35] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7017,"items_count":8} 
[2026-04-08 14:53:35] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33604,"menu_item_id":97,"quantity":1},{"id":33605,"menu_item_id":112,"quantity":1},{"id":33606,"menu_item_id":396,"quantity":2},{"id":33607,"menu_item_id":50,"quantity":2},{"id":33608,"menu_item_id":61,"quantity":2},{"id":33609,"menu_item_id":56,"quantity":1},{"id":33610,"menu_item_id":5,"quantity":1},{"id":33611,"menu_item_id":3,"quantity":1}]} 
[2026-04-08 14:53:35] local.INFO: PosOrderController::update - Item changes check {"order_id":7017,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["97|1|","112|1|","396|2|","50|2|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["97|1|","112|1|","396|2|","50|2|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-04-08 14:53:35] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7017,"order_number":"AZS-080426-004"} 
[2026-04-08 14:53:35] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7017,"order_number":"AZS-080426-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 14:53:35"} 
[2026-04-08 14:59:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":7017,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":33604},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":33605},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33606},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":33607},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33608},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33609},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33610},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":33611}],"validated_items":[{"id":33604,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":33605,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":33606,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":33607,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":33608,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33609,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33610,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33611,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-08 14:59:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7017,"items_count":8} 
[2026-04-08 14:59:25] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33604,"menu_item_id":97,"quantity":1},{"id":33605,"menu_item_id":112,"quantity":1},{"id":33606,"menu_item_id":396,"quantity":2},{"id":33607,"menu_item_id":50,"quantity":2},{"id":33608,"menu_item_id":61,"quantity":2},{"id":33609,"menu_item_id":56,"quantity":1},{"id":33610,"menu_item_id":5,"quantity":1},{"id":33611,"menu_item_id":3,"quantity":1}]} 
[2026-04-08 14:59:25] local.INFO: PosOrderController::update - Item changes check {"order_id":7017,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["97|1|","112|1|","396|2|","50|2|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["97|1|","112|1|","396|2|","50|2|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-04-08 14:59:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7017,"order_number":"AZS-080426-004"} 
[2026-04-08 14:59:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7017,"order_number":"AZS-080426-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 14:59:25"} 
[2026-04-08 15:05:44] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":7017,"order_number":"AZS-080426-004","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 15:05:44"} 
[2026-04-08 15:05:44] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":7017,"order_number":"AZS-080426-004","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 15:05:44"} 
[2026-04-08 15:05:44] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":7017,"order_number":"AZS-080426-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 15:05:44"} 
[2026-04-08 15:05:44] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":7017,"order_number":"AZS-080426-004","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 15:05:44"} 
[2026-04-08 15:05:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":7017,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":33604},{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":33605},{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33606},{"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null,"id":33607},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33608},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33609},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33610},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":33611}],"validated_items":[{"id":33604,"menu_item_id":97,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":33605,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":33606,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":33607,"menu_item_id":50,"quantity":2,"price":129,"discount_percent":0,"notes":null},{"id":33608,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33609,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33610,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33611,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:05:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7017,"items_count":8} 
[2026-04-08 15:05:44] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33604,"menu_item_id":97,"quantity":1},{"id":33605,"menu_item_id":112,"quantity":1},{"id":33606,"menu_item_id":396,"quantity":2},{"id":33607,"menu_item_id":50,"quantity":2},{"id":33608,"menu_item_id":61,"quantity":2},{"id":33609,"menu_item_id":56,"quantity":1},{"id":33610,"menu_item_id":5,"quantity":1},{"id":33611,"menu_item_id":3,"quantity":1}]} 
[2026-04-08 15:05:44] local.INFO: PosOrderController::update - Item changes check {"order_id":7017,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["97|1|","112|1|","396|2|","50|2|","61|2|","56|1|","5|1|","3|1|"],"new_items_map_keys":["97|1|","112|1|","396|2|","50|2|","61|2|","56|1|","5|1|","3|1|"]} 
[2026-04-08 15:05:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7017,"order_number":"AZS-080426-004"} 
[2026-04-08 15:05:44] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":7017,"order_number":"AZS-080426-004","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5500,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-08 15:05:44","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-08 15:05:44"} 
[2026-04-08 15:05:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7017,"order_number":"AZS-080426-004","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-08 15:05:44"} 
[2026-04-08 15:05:44] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":7017,"order_number":"AZS-080426-004","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5500.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-08 15:05:44","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5500.00","database_verification_match":true,"timestamp":"2026-04-08 15:05:44"} 
[2026-04-08 15:05:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T03:05:53.442Z","date_to":"2026-04-08T15:05:53.442Z","per_page":"100"} 
[2026-04-08 15:05:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T03:05:53.456Z","date_to":"2026-04-08T15:05:53.456Z","per_page":"100"} 
[2026-04-08 15:05:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","pending"],"deleted_count":0,"paid_count":2,"unpaid_count":9,"unique_order_numbers":11} 
[2026-04-08 15:05:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","pending"],"deleted_count":0,"paid_count":2,"unpaid_count":9,"unique_order_numbers":11} 
[2026-04-08 15:05:52] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T03:05:53.442Z","date_to":"2026-04-08T15:05:53.442Z","per_page":"100"} 
[2026-04-08 15:05:52] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","pending"],"deleted_count":0,"paid_count":2,"unpaid_count":9,"unique_order_numbers":11} 
[2026-04-08 15:06:15] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":7016,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":33598},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":33599},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":33600},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":33601},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":33602},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33603}],"validated_items":[{"id":33598,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":33599,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":33600,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":33601,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":33602,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":33603,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:06:15] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7016,"items_count":6} 
[2026-04-08 15:06:15] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33598,"menu_item_id":106,"quantity":1},{"id":33599,"menu_item_id":396,"quantity":3},{"id":33600,"menu_item_id":50,"quantity":2},{"id":33601,"menu_item_id":61,"quantity":2},{"id":33602,"menu_item_id":56,"quantity":2},{"id":33603,"menu_item_id":5,"quantity":1}]} 
[2026-04-08 15:06:15] local.INFO: PosOrderController::update - Item changes check {"order_id":7016,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["106|1|","396|3|","50|2|","61|2|","56|2|","5|1|"],"new_items_map_keys":["106|1|","396|3|","50|2|","61|2|","56|2|","5|1|"]} 
[2026-04-08 15:06:15] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7016,"order_number":"AZS-080426-007"} 
[2026-04-08 15:06:15] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7016,"order_number":"AZS-080426-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-08 15:06:15"} 
[2026-04-08 15:06:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":7014,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":33590},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33591},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33592},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33593},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":33594}],"validated_items":[{"id":33590,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":33591,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":33592,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33593,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33594,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:06:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7014,"items_count":5} 
[2026-04-08 15:06:26] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33590,"menu_item_id":396,"quantity":2},{"id":33591,"menu_item_id":61,"quantity":1},{"id":33592,"menu_item_id":56,"quantity":1},{"id":33593,"menu_item_id":5,"quantity":1},{"id":33594,"menu_item_id":105,"quantity":1}]} 
[2026-04-08 15:06:26] local.INFO: PosOrderController::update - Item changes check {"order_id":7014,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["396|2|","61|1|","56|1|","5|1|","105|1|"],"new_items_map_keys":["396|2|","61|1|","56|1|","5|1|","105|1|"]} 
[2026-04-08 15:06:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7014,"order_number":"AZS-080426-006"} 
[2026-04-08 15:06:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7014,"order_number":"AZS-080426-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-08 15:06:26"} 
[2026-04-08 15:06:42] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7018,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null,"id":33612},{"menu_item_id":165,"quantity":1,"discount_percent":0,"notes":null,"id":33613},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":33614},{"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null,"id":33615}],"validated_items":[{"id":33612,"menu_item_id":85,"quantity":1,"discount_percent":0,"notes":null},{"id":33613,"menu_item_id":165,"quantity":1,"discount_percent":0,"notes":null},{"id":33614,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"id":33615,"menu_item_id":4,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:06:42] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7018,"items_count":4} 
[2026-04-08 15:06:42] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33612,"menu_item_id":85,"quantity":1},{"id":33613,"menu_item_id":165,"quantity":1},{"id":33614,"menu_item_id":2,"quantity":1},{"id":33615,"menu_item_id":4,"quantity":1}]} 
[2026-04-08 15:06:42] local.INFO: PosOrderController::update - Item changes check {"order_id":7018,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["85|1|","165|1|","2|1|","4|1|"],"new_items_map_keys":["85|1|","165|1|","2|1|","4|1|"]} 
[2026-04-08 15:06:42] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7018,"order_number":"AZS-080426-005"} 
[2026-04-08 15:06:42] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7018,"order_number":"AZS-080426-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-08 15:06:42"} 
[2026-04-08 15:06:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T03:06:51.491Z","date_to":"2026-04-08T15:06:51.491Z","per_page":"100"} 
[2026-04-08 15:06:50] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T03:06:51.504Z","date_to":"2026-04-08T15:06:51.504Z","per_page":"100"} 
[2026-04-08 15:06:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","pending"],"deleted_count":0,"paid_count":2,"unpaid_count":9,"unique_order_numbers":11} 
[2026-04-08 15:06:50] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","pending"],"deleted_count":0,"paid_count":2,"unpaid_count":9,"unique_order_numbers":11} 
[2026-04-08 15:06:51] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T03:06:51.491Z","date_to":"2026-04-08T15:06:51.491Z","per_page":"100"} 
[2026-04-08 15:06:51] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":11,"count":11,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","pending","paid","pending","paid","pending"],"deleted_count":0,"paid_count":2,"unpaid_count":9,"unique_order_numbers":11} 
[2026-04-08 15:10:33] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":7014,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33590},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33591},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33592},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33593},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":33594}],"validated_items":[{"id":33590,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":33591,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33592,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33593,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33594,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:10:33] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7014,"items_count":5} 
[2026-04-08 15:10:33] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33590,"menu_item_id":396,"quantity":2},{"id":33591,"menu_item_id":61,"quantity":1},{"id":33592,"menu_item_id":56,"quantity":1},{"id":33593,"menu_item_id":5,"quantity":1},{"id":33594,"menu_item_id":105,"quantity":1}]} 
[2026-04-08 15:10:33] local.INFO: PosOrderController::update - Item changes check {"order_id":7014,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["396|2|","61|1|","56|1|","5|1|","105|1|"],"new_items_map_keys":["396|2|","61|1|","56|1|","5|1|","105|1|"]} 
[2026-04-08 15:10:33] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7014,"order_number":"AZS-080426-006"} 
[2026-04-08 15:10:33] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7014,"order_number":"AZS-080426-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 15:10:33"} 
[2026-04-08 15:11:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7018,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":33612},{"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":33613},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":33614},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":33615}],"validated_items":[{"id":33612,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":33613,"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":33614,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":33615,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:11:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7018,"items_count":4} 
[2026-04-08 15:11:37] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33612,"menu_item_id":85,"quantity":1},{"id":33613,"menu_item_id":165,"quantity":1},{"id":33614,"menu_item_id":2,"quantity":1},{"id":33615,"menu_item_id":4,"quantity":1}]} 
[2026-04-08 15:11:37] local.INFO: PosOrderController::update - Item changes check {"order_id":7018,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["85|1|","165|1|","2|1|","4|1|"],"new_items_map_keys":["85|1|","165|1|","2|1|","4|1|"]} 
[2026-04-08 15:11:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7018,"order_number":"AZS-080426-005"} 
[2026-04-08 15:11:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7018,"order_number":"AZS-080426-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 15:11:37"} 
[2026-04-08 15:18:54] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":7021,"order_number":"AZS-080426-010","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 15:18:54"} 
[2026-04-08 15:18:54] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":7021,"order_number":"AZS-080426-010","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 15:18:54"} 
[2026-04-08 15:18:54] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":7021,"order_number":"AZS-080426-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 15:18:54"} 
[2026-04-08 15:18:54] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":7021,"order_number":"AZS-080426-010","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 15:18:54"} 
[2026-04-08 15:18:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":7021,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":29,"quantity":3,"price":250,"discount_percent":0,"notes":null,"id":33624}],"validated_items":[{"id":33624,"menu_item_id":29,"quantity":3,"price":250,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:18:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7021,"items_count":1} 
[2026-04-08 15:18:54] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33624,"menu_item_id":29,"quantity":3}]} 
[2026-04-08 15:18:54] local.INFO: PosOrderController::update - Item changes check {"order_id":7021,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["29|3|"],"new_items_map_keys":["29|3|"]} 
[2026-04-08 15:18:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7021,"order_number":"AZS-080426-010"} 
[2026-04-08 15:18:54] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":7021,"order_number":"AZS-080426-010","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-08 15:18:54","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-08 15:18:54"} 
[2026-04-08 15:18:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7021,"order_number":"AZS-080426-010","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-08 15:18:54"} 
[2026-04-08 15:18:54] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":7021,"order_number":"AZS-080426-010","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-08 15:18:54","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1000.00","database_verification_match":true,"timestamp":"2026-04-08 15:18:54"} 
[2026-04-08 15:19:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7024,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":33628},{"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null,"id":33629},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33630},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33628,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":33629,"menu_item_id":396,"quantity":2,"discount_percent":0,"notes":null},{"id":33630,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:19:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7024,"items_count":4} 
[2026-04-08 15:19:18] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33628,"menu_item_id":96,"quantity":1},{"id":33629,"menu_item_id":396,"quantity":2},{"id":33630,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-04-08 15:19:18] local.INFO: PosOrderController::update - Item changes check {"order_id":7024,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["96|1|","396|2|","5|1|"],"new_items_map_keys":["96|1|","396|2|","5|1|","61|1|"]} 
[2026-04-08 15:19:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7024,"order_number":"AZS-080426-013"} 
[2026-04-08 15:19:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-013","replaced_order_id":7024} 
[2026-04-08 15:19:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7025,"items_count":4,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":2,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"}]} 
[2026-04-08 15:19:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7025,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7025}} 
[2026-04-08 15:19:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7025,"item_index":0,"menu_item_id":96} 
[2026-04-08 15:19:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7025,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":2,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":198.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7025}} 
[2026-04-08 15:19:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7025,"item_index":1,"menu_item_id":396} 
[2026-04-08 15:19:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7025,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7025}} 
[2026-04-08 15:19:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7025,"item_index":2,"menu_item_id":5} 
[2026-04-08 15:19:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7025,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7025}} 
[2026-04-08 15:19:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7025,"item_index":3,"menu_item_id":61} 
[2026-04-08 15:19:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7024,"new_order_id":7025,"order_number":"AZS-080426-013"} 
[2026-04-08 15:19:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":7014,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33590},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33591},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33592},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33593},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":33594}],"validated_items":[{"id":33590,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":33591,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33592,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33593,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33594,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:19:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7014,"items_count":5} 
[2026-04-08 15:19:30] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33590,"menu_item_id":396,"quantity":2},{"id":33591,"menu_item_id":61,"quantity":1},{"id":33592,"menu_item_id":56,"quantity":1},{"id":33593,"menu_item_id":5,"quantity":1},{"id":33594,"menu_item_id":105,"quantity":1}]} 
[2026-04-08 15:19:30] local.INFO: PosOrderController::update - Item changes check {"order_id":7014,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["396|2|","61|1|","56|1|","5|1|","105|1|"],"new_items_map_keys":["396|2|","61|1|","56|1|","5|1|","105|1|"]} 
[2026-04-08 15:19:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7014,"order_number":"AZS-080426-006"} 
[2026-04-08 15:19:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7014,"order_number":"AZS-080426-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 15:19:30"} 
[2026-04-08 15:21:16] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":7014,"order_number":"AZS-080426-006","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 15:21:16"} 
[2026-04-08 15:21:16] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":7014,"order_number":"AZS-080426-006","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 15:21:16"} 
[2026-04-08 15:21:16] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":7014,"order_number":"AZS-080426-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 15:21:16"} 
[2026-04-08 15:21:16] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":7014,"order_number":"AZS-080426-006","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 15:21:16"} 
[2026-04-08 15:21:16] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":7014,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null,"id":33590},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33591},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33592},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33593},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":33594}],"validated_items":[{"id":33590,"menu_item_id":396,"quantity":2,"price":99,"discount_percent":0,"notes":null},{"id":33591,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33592,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33593,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33594,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:21:16] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7014,"items_count":5} 
[2026-04-08 15:21:16] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33590,"menu_item_id":396,"quantity":2},{"id":33591,"menu_item_id":61,"quantity":1},{"id":33592,"menu_item_id":56,"quantity":1},{"id":33593,"menu_item_id":5,"quantity":1},{"id":33594,"menu_item_id":105,"quantity":1}]} 
[2026-04-08 15:21:16] local.INFO: PosOrderController::update - Item changes check {"order_id":7014,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["396|2|","61|1|","56|1|","5|1|","105|1|"],"new_items_map_keys":["396|2|","61|1|","56|1|","5|1|","105|1|"]} 
[2026-04-08 15:21:16] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7014,"order_number":"AZS-080426-006"} 
[2026-04-08 15:21:16] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":7014,"order_number":"AZS-080426-006","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-08 15:21:16","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-08 15:21:16"} 
[2026-04-08 15:21:16] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7014,"order_number":"AZS-080426-006","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-08 15:21:16"} 
[2026-04-08 15:21:16] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":7014,"order_number":"AZS-080426-006","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-08 15:21:16","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-04-08 15:21:16"} 
[2026-04-08 15:21:29] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7020,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":33621},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33622},{"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null,"id":33623},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33621,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":33622,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33623,"menu_item_id":87,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:21:29] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7020,"items_count":4} 
[2026-04-08 15:21:29] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33621,"menu_item_id":396,"quantity":3},{"id":33622,"menu_item_id":5,"quantity":1},{"id":33623,"menu_item_id":87,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-04-08 15:21:29] local.INFO: PosOrderController::update - Item changes check {"order_id":7020,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["396|3|","5|1|","87|1|"],"new_items_map_keys":["396|3|","5|1|","87|1|","56|1|"]} 
[2026-04-08 15:21:29] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7020,"order_number":"AZS-080426-009"} 
[2026-04-08 15:21:29] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-009","replaced_order_id":7020} 
[2026-04-08 15:21:29] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7026,"items_count":4,"items":[{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":87,"quantity":1,"price":"1999.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"}]} 
[2026-04-08 15:21:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7026,"item_index":0,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7026}} 
[2026-04-08 15:21:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7026,"item_index":0,"menu_item_id":396} 
[2026-04-08 15:21:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7026,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7026}} 
[2026-04-08 15:21:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7026,"item_index":1,"menu_item_id":5} 
[2026-04-08 15:21:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7026,"item_index":2,"item_data":{"menu_item_id":87,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Handi","quantity":1,"price":"1999.00","discount_percent":0.0,"discount_amount":0.0,"total":1999.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7026}} 
[2026-04-08 15:21:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7026,"item_index":2,"menu_item_id":87} 
[2026-04-08 15:21:29] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7026,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7026}} 
[2026-04-08 15:21:29] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7026,"item_index":3,"menu_item_id":56} 
[2026-04-08 15:21:29] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7020,"new_order_id":7026,"order_number":"AZS-080426-009"} 
[2026-04-08 15:22:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":7015,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null,"id":33595},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":33596},{"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null,"id":33597},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33595,"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"id":33596,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"id":33597,"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:22:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7015,"items_count":5} 
[2026-04-08 15:22:17] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33595,"menu_item_id":13,"quantity":2},{"id":33596,"menu_item_id":403,"quantity":1},{"id":33597,"menu_item_id":9,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":51,"quantity":1}]} 
[2026-04-08 15:22:17] local.INFO: PosOrderController::update - Item changes check {"order_id":7015,"has_item_changes":true,"old_items_count":3,"new_items_count":5,"old_items_map_keys":["13|2|","403|1|","9|1|"],"new_items_map_keys":["13|2|","403|1|","9|1|","105|1|","51|1|"]} 
[2026-04-08 15:22:17] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7015,"order_number":"AZS-080426-003"} 
[2026-04-08 15:22:17] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-003","replaced_order_id":7015} 
[2026-04-08 15:22:17] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7027,"items_count":5,"items":[{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":9,"quantity":1,"price":"229.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":51,"quantity":1,"price":"199.00"}]} 
[2026-04-08 15:22:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7027,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7027}} 
[2026-04-08 15:22:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7027,"item_index":0,"menu_item_id":13} 
[2026-04-08 15:22:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7027,"item_index":1,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7027}} 
[2026-04-08 15:22:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7027,"item_index":1,"menu_item_id":403} 
[2026-04-08 15:22:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7027,"item_index":2,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":1,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":229.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7027}} 
[2026-04-08 15:22:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7027,"item_index":2,"menu_item_id":9} 
[2026-04-08 15:22:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7027,"item_index":3,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7027}} 
[2026-04-08 15:22:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7027,"item_index":3,"menu_item_id":105} 
[2026-04-08 15:22:17] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7027,"item_index":4,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7027}} 
[2026-04-08 15:22:17] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7027,"item_index":4,"menu_item_id":51} 
[2026-04-08 15:22:17] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7015,"new_order_id":7027,"order_number":"AZS-080426-003"} 
[2026-04-08 15:23:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T03:23:22.832Z","date_to":"2026-04-08T15:23:22.832Z","per_page":"100"} 
[2026-04-08 15:23:20] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T03:23:22.846Z","date_to":"2026-04-08T15:23:22.846Z","per_page":"100"} 
[2026-04-08 15:23:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","pending","pending","paid","pending","paid","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":10,"unique_order_numbers":14} 
[2026-04-08 15:23:20] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","pending","pending","paid","pending","paid","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":10,"unique_order_numbers":14} 
[2026-04-08 15:23:21] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T03:23:22.832Z","date_to":"2026-04-08T15:23:22.832Z","per_page":"100"} 
[2026-04-08 15:23:21] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":14,"count":14,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","pending","pending","pending","paid","pending","pending","pending","paid","pending","paid","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":10,"unique_order_numbers":14} 
[2026-04-08 15:29:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":7027,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null,"id":33639},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":33640},{"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null,"id":33641},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":33642},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null,"id":33643}],"validated_items":[{"id":33639,"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"id":33640,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"id":33641,"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null},{"id":33642,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":33643,"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:29:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7027,"items_count":5} 
[2026-04-08 15:29:53] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33639,"menu_item_id":13,"quantity":2},{"id":33640,"menu_item_id":403,"quantity":1},{"id":33641,"menu_item_id":9,"quantity":1},{"id":33642,"menu_item_id":105,"quantity":1},{"id":33643,"menu_item_id":51,"quantity":1}]} 
[2026-04-08 15:29:53] local.INFO: PosOrderController::update - Item changes check {"order_id":7027,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["13|2|","403|1|","9|1|","105|1|","51|1|"],"new_items_map_keys":["13|2|","403|1|","9|1|","105|1|","51|1|"]} 
[2026-04-08 15:29:53] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7027,"order_number":"AZS-080426-003"} 
[2026-04-08 15:29:53] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7027,"order_number":"AZS-080426-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-04-08 15:29:53"} 
[2026-04-08 15:35:28] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":1,"order_id":7023,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":33627},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33627,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:35:28] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7023,"items_count":2} 
[2026-04-08 15:35:28] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":1,"items_to_remove":[33626],"items":[{"id":33627,"menu_item_id":2,"quantity":1},{"id":null,"menu_item_id":137,"quantity":1}]} 
[2026-04-08 15:35:28] local.INFO: PosOrderController::update - Item changes check {"order_id":7023,"has_item_changes":true,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["136|1|","2|1|"],"new_items_map_keys":["2|1|","137|1|"]} 
[2026-04-08 15:35:28] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7023,"order_number":"AZS-080426-012"} 
[2026-04-08 15:35:28] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-012","replaced_order_id":7023} 
[2026-04-08 15:35:28] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7030,"items_count":2,"items":[{"menu_item_id":2,"quantity":1,"price":"130.00"},{"menu_item_id":137,"quantity":1,"price":"1299.00"}]} 
[2026-04-08 15:35:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7030,"item_index":0,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7030}} 
[2026-04-08 15:35:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7030,"item_index":0,"menu_item_id":2} 
[2026-04-08 15:35:28] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7030,"item_index":1,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7030}} 
[2026-04-08 15:35:28] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7030,"item_index":1,"menu_item_id":137} 
[2026-04-08 15:35:28] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7023,"new_order_id":7030,"order_number":"AZS-080426-012"} 
[2026-04-08 15:40:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":7027,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null,"id":33639},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":33640},{"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null,"id":33641},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":33642},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null,"id":33643},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33639,"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"id":33640,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"id":33641,"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null},{"id":33642,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":33643,"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:40:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7027,"items_count":8} 
[2026-04-08 15:40:05] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33639,"menu_item_id":13,"quantity":2},{"id":33640,"menu_item_id":403,"quantity":1},{"id":33641,"menu_item_id":9,"quantity":1},{"id":33642,"menu_item_id":105,"quantity":1},{"id":33643,"menu_item_id":51,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-08 15:40:05] local.INFO: PosOrderController::update - Item changes check {"order_id":7027,"has_item_changes":true,"old_items_count":5,"new_items_count":8,"old_items_map_keys":["13|2|","403|1|","9|1|","105|1|","51|1|"],"new_items_map_keys":["13|2|","403|1|","9|1|","105|1|","51|1|","61|1|","56|1|","5|1|"]} 
[2026-04-08 15:40:05] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7027,"order_number":"AZS-080426-003"} 
[2026-04-08 15:40:05] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-003","replaced_order_id":7027} 
[2026-04-08 15:40:05] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7031,"items_count":8,"items":[{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":9,"quantity":1,"price":"229.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":51,"quantity":1,"price":"199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-08 15:40:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7031,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7031}} 
[2026-04-08 15:40:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7031,"item_index":0,"menu_item_id":13} 
[2026-04-08 15:40:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7031,"item_index":1,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7031}} 
[2026-04-08 15:40:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7031,"item_index":1,"menu_item_id":403} 
[2026-04-08 15:40:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7031,"item_index":2,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":1,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":229.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7031}} 
[2026-04-08 15:40:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7031,"item_index":2,"menu_item_id":9} 
[2026-04-08 15:40:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7031,"item_index":3,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7031}} 
[2026-04-08 15:40:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7031,"item_index":3,"menu_item_id":105} 
[2026-04-08 15:40:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7031,"item_index":4,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7031}} 
[2026-04-08 15:40:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7031,"item_index":4,"menu_item_id":51} 
[2026-04-08 15:40:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7031,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7031}} 
[2026-04-08 15:40:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7031,"item_index":5,"menu_item_id":61} 
[2026-04-08 15:40:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7031,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7031}} 
[2026-04-08 15:40:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7031,"item_index":6,"menu_item_id":56} 
[2026-04-08 15:40:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7031,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7031}} 
[2026-04-08 15:40:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7031,"item_index":7,"menu_item_id":5} 
[2026-04-08 15:40:05] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7027,"new_order_id":7031,"order_number":"AZS-080426-003"} 
[2026-04-08 15:40:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T03:40:23.960Z","date_to":"2026-04-08T15:40:23.960Z","per_page":"100"} 
[2026-04-08 15:40:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T03:40:23.941Z","date_to":"2026-04-08T15:40:23.941Z","per_page":"100"} 
[2026-04-08 15:40:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-015","AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","pending","pending","pending","paid","pending","paid","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":11,"unique_order_numbers":15} 
[2026-04-08 15:40:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-015","AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","pending","pending","pending","paid","pending","paid","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":11,"unique_order_numbers":15} 
[2026-04-08 15:40:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T03:40:23.941Z","date_to":"2026-04-08T15:40:23.941Z","per_page":"100"} 
[2026-04-08 15:40:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":15,"count":15,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-015","AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","pending","pending","pending","pending","paid","pending","pending","pending","paid","pending","paid","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":11,"unique_order_numbers":15} 
[2026-04-08 15:44:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T03:44:11.263Z","date_to":"2026-04-08T15:44:11.263Z","per_page":"100"} 
[2026-04-08 15:44:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T03:44:11.253Z","date_to":"2026-04-08T15:44:11.253Z","per_page":"100"} 
[2026-04-08 15:44:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-016","AZS-080426-015","AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","pending","pending","paid","pending","paid","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":12,"unique_order_numbers":16} 
[2026-04-08 15:44:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-016","AZS-080426-015","AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","pending","pending","paid","pending","paid","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":12,"unique_order_numbers":16} 
[2026-04-08 15:44:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T03:44:11.253Z","date_to":"2026-04-08T15:44:11.253Z","per_page":"100"} 
[2026-04-08 15:44:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-016","AZS-080426-015","AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","pending","pending","pending","pending","pending","paid","pending","pending","pending","paid","pending","paid","pending","paid","pending"],"deleted_count":0,"paid_count":4,"unpaid_count":12,"unique_order_numbers":16} 
[2026-04-08 15:45:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":7030,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":33648},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33649}],"validated_items":[{"id":33648,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":33649,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:45:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7030,"items_count":2} 
[2026-04-08 15:45:09] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33648,"menu_item_id":2,"quantity":1},{"id":33649,"menu_item_id":137,"quantity":1}]} 
[2026-04-08 15:45:09] local.INFO: PosOrderController::update - Item changes check {"order_id":7030,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["2|1|","137|1|"],"new_items_map_keys":["2|1|","137|1|"]} 
[2026-04-08 15:45:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7030,"order_number":"AZS-080426-012"} 
[2026-04-08 15:45:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7030,"order_number":"AZS-080426-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 15:45:09"} 
[2026-04-08 15:47:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7026,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":33635},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33636},{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":33637},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33638}],"validated_items":[{"id":33635,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":33636,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33637,"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":33638,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:47:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7026,"items_count":4} 
[2026-04-08 15:47:30] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33635,"menu_item_id":396,"quantity":3},{"id":33636,"menu_item_id":5,"quantity":1},{"id":33637,"menu_item_id":87,"quantity":1},{"id":33638,"menu_item_id":56,"quantity":1}]} 
[2026-04-08 15:47:30] local.INFO: PosOrderController::update - Item changes check {"order_id":7026,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["396|3|","5|1|","87|1|","56|1|"],"new_items_map_keys":["396|3|","5|1|","87|1|","56|1|"]} 
[2026-04-08 15:47:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7026,"order_number":"AZS-080426-009"} 
[2026-04-08 15:47:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7026,"order_number":"AZS-080426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 15:47:30"} 
[2026-04-08 15:47:49] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":7018,"order_number":"AZS-080426-005","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2020,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 15:47:49"} 
[2026-04-08 15:47:49] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":7018,"order_number":"AZS-080426-005","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2020,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 15:47:49"} 
[2026-04-08 15:47:49] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":7018,"order_number":"AZS-080426-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2020,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 15:47:49"} 
[2026-04-08 15:47:49] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":7018,"order_number":"AZS-080426-005","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2020,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 15:47:49"} 
[2026-04-08 15:47:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7018,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null,"id":33612},{"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null,"id":33613},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":33614},{"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null,"id":33615}],"validated_items":[{"id":33612,"menu_item_id":85,"quantity":1,"price":699,"discount_percent":0,"notes":null},{"id":33613,"menu_item_id":165,"quantity":1,"price":999,"discount_percent":0,"notes":null},{"id":33614,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":33615,"menu_item_id":4,"quantity":1,"price":90,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:47:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7018,"items_count":4} 
[2026-04-08 15:47:49] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33612,"menu_item_id":85,"quantity":1},{"id":33613,"menu_item_id":165,"quantity":1},{"id":33614,"menu_item_id":2,"quantity":1},{"id":33615,"menu_item_id":4,"quantity":1}]} 
[2026-04-08 15:47:49] local.INFO: PosOrderController::update - Item changes check {"order_id":7018,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["85|1|","165|1|","2|1|","4|1|"],"new_items_map_keys":["85|1|","165|1|","2|1|","4|1|"]} 
[2026-04-08 15:47:49] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7018,"order_number":"AZS-080426-005"} 
[2026-04-08 15:47:49] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":7018,"order_number":"AZS-080426-005","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2020,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-08 15:47:49","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-08 15:47:49"} 
[2026-04-08 15:47:49] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7018,"order_number":"AZS-080426-005","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-08 15:47:49"} 
[2026-04-08 15:47:49] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":7018,"order_number":"AZS-080426-005","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2020.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-08 15:47:49","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2020,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2020.00","database_verification_match":true,"timestamp":"2026-04-08 15:47:49"} 
[2026-04-08 15:49:48] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":7016,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":33598},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":33599},{"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null,"id":33600},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":33601},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":33602},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33603},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33598,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":33599,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":33600,"menu_item_id":50,"quantity":2,"discount_percent":0,"notes":null},{"id":33601,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"id":33602,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":33603,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:49:48] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7016,"items_count":8} 
[2026-04-08 15:49:48] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33598,"menu_item_id":106,"quantity":1},{"id":33599,"menu_item_id":396,"quantity":3},{"id":33600,"menu_item_id":50,"quantity":2},{"id":33601,"menu_item_id":61,"quantity":2},{"id":33602,"menu_item_id":56,"quantity":2},{"id":33603,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":113,"quantity":1}]} 
[2026-04-08 15:49:48] local.INFO: PosOrderController::update - Item changes check {"order_id":7016,"has_item_changes":true,"old_items_count":6,"new_items_count":8,"old_items_map_keys":["106|1|","396|3|","50|2|","61|2|","56|2|","5|1|"],"new_items_map_keys":["106|1|","396|3|","50|2|","61|2|","56|2|","5|1|","114|1|","113|1|"]} 
[2026-04-08 15:49:48] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7016,"order_number":"AZS-080426-007"} 
[2026-04-08 15:49:48] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-007","replaced_order_id":7016} 
[2026-04-08 15:49:48] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7033,"items_count":8,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":50,"quantity":2,"price":"129.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"}]} 
[2026-04-08 15:49:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7033,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7033}} 
[2026-04-08 15:49:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7033,"item_index":0,"menu_item_id":106} 
[2026-04-08 15:49:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7033,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7033}} 
[2026-04-08 15:49:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7033,"item_index":1,"menu_item_id":396} 
[2026-04-08 15:49:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7033,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":2,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":258.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7033}} 
[2026-04-08 15:49:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7033,"item_index":2,"menu_item_id":50} 
[2026-04-08 15:49:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7033,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7033}} 
[2026-04-08 15:49:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7033,"item_index":3,"menu_item_id":61} 
[2026-04-08 15:49:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7033,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7033}} 
[2026-04-08 15:49:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7033,"item_index":4,"menu_item_id":56} 
[2026-04-08 15:49:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7033,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7033}} 
[2026-04-08 15:49:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7033,"item_index":5,"menu_item_id":5} 
[2026-04-08 15:49:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7033,"item_index":6,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7033}} 
[2026-04-08 15:49:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7033,"item_index":6,"menu_item_id":114} 
[2026-04-08 15:49:48] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7033,"item_index":7,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7033}} 
[2026-04-08 15:49:48] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7033,"item_index":7,"menu_item_id":113} 
[2026-04-08 15:49:48] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7016,"new_order_id":7033,"order_number":"AZS-080426-007"} 
[2026-04-08 15:52:25] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7026,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":33635},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33636},{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":33637},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33638}],"validated_items":[{"id":33635,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":33636,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33637,"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":33638,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:52:25] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7026,"items_count":4} 
[2026-04-08 15:52:25] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33635,"menu_item_id":396,"quantity":3},{"id":33636,"menu_item_id":5,"quantity":1},{"id":33637,"menu_item_id":87,"quantity":1},{"id":33638,"menu_item_id":56,"quantity":1}]} 
[2026-04-08 15:52:25] local.INFO: PosOrderController::update - Item changes check {"order_id":7026,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["396|3|","5|1|","87|1|","56|1|"],"new_items_map_keys":["396|3|","5|1|","87|1|","56|1|"]} 
[2026-04-08 15:52:25] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7026,"order_number":"AZS-080426-009"} 
[2026-04-08 15:52:25] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7026,"order_number":"AZS-080426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 15:52:25"} 
[2026-04-08 15:53:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7026,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":33635},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33636},{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":33637},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33638}],"validated_items":[{"id":33635,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":33636,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33637,"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":33638,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:53:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7026,"items_count":4} 
[2026-04-08 15:53:51] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33635,"menu_item_id":396,"quantity":3},{"id":33636,"menu_item_id":5,"quantity":1},{"id":33637,"menu_item_id":87,"quantity":1},{"id":33638,"menu_item_id":56,"quantity":1}]} 
[2026-04-08 15:53:51] local.INFO: PosOrderController::update - Item changes check {"order_id":7026,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["396|3|","5|1|","87|1|","56|1|"],"new_items_map_keys":["396|3|","5|1|","87|1|","56|1|"]} 
[2026-04-08 15:53:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7026,"order_number":"AZS-080426-009"} 
[2026-04-08 15:53:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7026,"order_number":"AZS-080426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 15:53:51"} 
[2026-04-08 15:54:10] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":7026,"order_number":"AZS-080426-009","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 15:54:10"} 
[2026-04-08 15:54:10] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":7026,"order_number":"AZS-080426-009","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 15:54:10"} 
[2026-04-08 15:54:10] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":7026,"order_number":"AZS-080426-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 15:54:10"} 
[2026-04-08 15:54:10] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":7026,"order_number":"AZS-080426-009","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 15:54:10"} 
[2026-04-08 15:54:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7026,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":33635},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33636},{"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null,"id":33637},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33638}],"validated_items":[{"id":33635,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":33636,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33637,"menu_item_id":87,"quantity":1,"price":1999,"discount_percent":0,"notes":null},{"id":33638,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:54:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7026,"items_count":4} 
[2026-04-08 15:54:10] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33635,"menu_item_id":396,"quantity":3},{"id":33636,"menu_item_id":5,"quantity":1},{"id":33637,"menu_item_id":87,"quantity":1},{"id":33638,"menu_item_id":56,"quantity":1}]} 
[2026-04-08 15:54:10] local.INFO: PosOrderController::update - Item changes check {"order_id":7026,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["396|3|","5|1|","87|1|","56|1|"],"new_items_map_keys":["396|3|","5|1|","87|1|","56|1|"]} 
[2026-04-08 15:54:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7026,"order_number":"AZS-080426-009"} 
[2026-04-08 15:54:10] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":7026,"order_number":"AZS-080426-009","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-08 15:54:10","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-08 15:54:10"} 
[2026-04-08 15:54:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7026,"order_number":"AZS-080426-009","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-08 15:54:10"} 
[2026-04-08 15:54:10] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":7026,"order_number":"AZS-080426-009","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-08 15:54:10","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3000.00","database_verification_match":true,"timestamp":"2026-04-08 15:54:10"} 
[2026-04-08 15:54:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7025,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":33631},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":33632},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33633},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33634}],"validated_items":[{"id":33631,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":33632,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":33633,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33634,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:54:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7025,"items_count":4} 
[2026-04-08 15:54:31] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33631,"menu_item_id":96,"quantity":1},{"id":33632,"menu_item_id":396,"quantity":3},{"id":33633,"menu_item_id":5,"quantity":1},{"id":33634,"menu_item_id":61,"quantity":1}]} 
[2026-04-08 15:54:31] local.INFO: PosOrderController::update - Item changes check {"order_id":7025,"has_item_changes":true,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","396|2|","5|1|","61|1|"],"new_items_map_keys":["96|1|","396|3|","5|1|","61|1|"]} 
[2026-04-08 15:54:31] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7025,"order_number":"AZS-080426-013"} 
[2026-04-08 15:54:31] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-013","replaced_order_id":7025} 
[2026-04-08 15:54:31] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7034,"items_count":4,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"}]} 
[2026-04-08 15:54:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7034,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7034}} 
[2026-04-08 15:54:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7034,"item_index":0,"menu_item_id":96} 
[2026-04-08 15:54:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7034,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7034}} 
[2026-04-08 15:54:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7034,"item_index":1,"menu_item_id":396} 
[2026-04-08 15:54:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7034,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7034}} 
[2026-04-08 15:54:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7034,"item_index":2,"menu_item_id":5} 
[2026-04-08 15:54:31] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7034,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7034}} 
[2026-04-08 15:54:31] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7034,"item_index":3,"menu_item_id":61} 
[2026-04-08 15:54:31] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7025,"new_order_id":7034,"order_number":"AZS-080426-013"} 
[2026-04-08 15:55:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":7033,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":33662},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":33663},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null,"id":33664},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":33665},{"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null,"id":33666},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":33667},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":33668},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":33669}],"validated_items":[{"id":33662,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":33663,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":33664,"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null},{"id":33665,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":33666,"menu_item_id":56,"quantity":3,"discount_percent":0,"notes":null},{"id":33667,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":33668,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":33669,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:55:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7033,"items_count":8} 
[2026-04-08 15:55:01] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33662,"menu_item_id":106,"quantity":1},{"id":33663,"menu_item_id":396,"quantity":5},{"id":33664,"menu_item_id":50,"quantity":4},{"id":33665,"menu_item_id":61,"quantity":3},{"id":33666,"menu_item_id":56,"quantity":3},{"id":33667,"menu_item_id":5,"quantity":2},{"id":33668,"menu_item_id":114,"quantity":1},{"id":33669,"menu_item_id":113,"quantity":1}]} 
[2026-04-08 15:55:01] local.INFO: PosOrderController::update - Item changes check {"order_id":7033,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["106|1|","396|3|","50|2|","61|2|","56|2|","5|1|","114|1|","113|1|"],"new_items_map_keys":["106|1|","396|5|","50|4|","61|3|","56|3|","5|2|","114|1|","113|1|"]} 
[2026-04-08 15:55:01] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7033,"order_number":"AZS-080426-007"} 
[2026-04-08 15:55:01] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-007","replaced_order_id":7033} 
[2026-04-08 15:55:01] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7035,"items_count":8,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":50,"quantity":4,"price":"129.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":3,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"}]} 
[2026-04-08 15:55:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7035,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7035}} 
[2026-04-08 15:55:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7035,"item_index":0,"menu_item_id":106} 
[2026-04-08 15:55:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7035,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7035}} 
[2026-04-08 15:55:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7035,"item_index":1,"menu_item_id":396} 
[2026-04-08 15:55:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7035,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7035}} 
[2026-04-08 15:55:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7035,"item_index":2,"menu_item_id":50} 
[2026-04-08 15:55:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7035,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7035}} 
[2026-04-08 15:55:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7035,"item_index":3,"menu_item_id":61} 
[2026-04-08 15:55:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7035,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7035}} 
[2026-04-08 15:55:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7035,"item_index":4,"menu_item_id":56} 
[2026-04-08 15:55:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7035,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7035}} 
[2026-04-08 15:55:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7035,"item_index":5,"menu_item_id":5} 
[2026-04-08 15:55:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7035,"item_index":6,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7035}} 
[2026-04-08 15:55:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7035,"item_index":6,"menu_item_id":114} 
[2026-04-08 15:55:01] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7035,"item_index":7,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7035}} 
[2026-04-08 15:55:01] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7035,"item_index":7,"menu_item_id":113} 
[2026-04-08 15:55:01] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7033,"new_order_id":7035,"order_number":"AZS-080426-007"} 
[2026-04-08 15:58:22] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":7028,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":33644},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":33645},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33644,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"id":33645,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 15:58:22] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7028,"items_count":3} 
[2026-04-08 15:58:22] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33644,"menu_item_id":63,"quantity":1},{"id":33645,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-04-08 15:58:22] local.INFO: PosOrderController::update - Item changes check {"order_id":7028,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["63|1|","396|1|"],"new_items_map_keys":["63|1|","396|1|","61|1|"]} 
[2026-04-08 15:58:22] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7028,"order_number":"AZS-080426-014"} 
[2026-04-08 15:58:22] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-014","replaced_order_id":7028} 
[2026-04-08 15:58:22] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7036,"items_count":3,"items":[{"menu_item_id":63,"quantity":1,"price":"1099.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"}]} 
[2026-04-08 15:58:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7036,"item_index":0,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7036}} 
[2026-04-08 15:58:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7036,"item_index":0,"menu_item_id":63} 
[2026-04-08 15:58:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7036,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7036}} 
[2026-04-08 15:58:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7036,"item_index":1,"menu_item_id":396} 
[2026-04-08 15:58:22] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7036,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7036}} 
[2026-04-08 15:58:22] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7036,"item_index":2,"menu_item_id":61} 
[2026-04-08 15:58:22] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7028,"new_order_id":7036,"order_number":"AZS-080426-014"} 
[2026-04-08 16:01:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":7029,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null,"id":33646},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null,"id":33647},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33646,"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null},{"id":33647,"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:01:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7029,"items_count":3} 
[2026-04-08 16:01:53] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33646,"menu_item_id":138,"quantity":1},{"id":33647,"menu_item_id":83,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-08 16:01:53] local.INFO: PosOrderController::update - Item changes check {"order_id":7029,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["138|1|","83|1|"],"new_items_map_keys":["138|1|","83|1|","3|1|"]} 
[2026-04-08 16:01:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7029,"order_number":"AZS-080426-015"} 
[2026-04-08 16:01:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-015","replaced_order_id":7029} 
[2026-04-08 16:01:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7037,"items_count":3,"items":[{"menu_item_id":138,"quantity":1,"price":"2199.00"},{"menu_item_id":83,"quantity":1,"price":"649.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-08 16:01:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7037,"item_index":0,"item_data":{"menu_item_id":138,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Large","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7037}} 
[2026-04-08 16:01:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7037,"item_index":0,"menu_item_id":138} 
[2026-04-08 16:01:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7037,"item_index":1,"item_data":{"menu_item_id":83,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Chicken Nuggets","quantity":1,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":649.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7037}} 
[2026-04-08 16:01:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7037,"item_index":1,"menu_item_id":83} 
[2026-04-08 16:01:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7037,"item_index":2,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7037}} 
[2026-04-08 16:01:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7037,"item_index":2,"menu_item_id":3} 
[2026-04-08 16:01:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7029,"new_order_id":7037,"order_number":"AZS-080426-015"} 
[2026-04-08 16:02:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7034,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33670},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":33671},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33672},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33673}],"validated_items":[{"id":33670,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33671,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":33672,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33673,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:02:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7034,"items_count":4} 
[2026-04-08 16:02:13] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33670,"menu_item_id":96,"quantity":1},{"id":33671,"menu_item_id":396,"quantity":3},{"id":33672,"menu_item_id":5,"quantity":1},{"id":33673,"menu_item_id":61,"quantity":1}]} 
[2026-04-08 16:02:13] local.INFO: PosOrderController::update - Item changes check {"order_id":7034,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","396|3|","5|1|","61|1|"],"new_items_map_keys":["96|1|","396|3|","5|1|","61|1|"]} 
[2026-04-08 16:02:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7034,"order_number":"AZS-080426-013"} 
[2026-04-08 16:02:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7034,"order_number":"AZS-080426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 16:02:13"} 
[2026-04-08 16:03:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":7030,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":33648},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33649}],"validated_items":[{"id":33648,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":33649,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:03:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7030,"items_count":2} 
[2026-04-08 16:03:39] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33648,"menu_item_id":2,"quantity":1},{"id":33649,"menu_item_id":137,"quantity":1}]} 
[2026-04-08 16:03:39] local.INFO: PosOrderController::update - Item changes check {"order_id":7030,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["2|1|","137|1|"],"new_items_map_keys":["2|1|","137|1|"]} 
[2026-04-08 16:03:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7030,"order_number":"AZS-080426-012"} 
[2026-04-08 16:03:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7030,"order_number":"AZS-080426-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 16:03:39"} 
[2026-04-08 16:03:47] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":7030,"order_number":"AZS-080426-012","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 16:03:47"} 
[2026-04-08 16:03:47] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":7030,"order_number":"AZS-080426-012","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 16:03:47"} 
[2026-04-08 16:03:47] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":7030,"order_number":"AZS-080426-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 16:03:47"} 
[2026-04-08 16:03:47] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":7030,"order_number":"AZS-080426-012","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 16:03:47"} 
[2026-04-08 16:03:47] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":2,"items_to_remove_count":0,"order_id":7030,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":33648},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33649}],"validated_items":[{"id":33648,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null},{"id":33649,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:03:47] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7030,"items_count":2} 
[2026-04-08 16:03:47] local.INFO: PosOrderController::update - Processing items {"items_count":2,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33648,"menu_item_id":2,"quantity":1},{"id":33649,"menu_item_id":137,"quantity":1}]} 
[2026-04-08 16:03:47] local.INFO: PosOrderController::update - Item changes check {"order_id":7030,"has_item_changes":false,"old_items_count":2,"new_items_count":2,"old_items_map_keys":["2|1|","137|1|"],"new_items_map_keys":["2|1|","137|1|"]} 
[2026-04-08 16:03:47] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7030,"order_number":"AZS-080426-012"} 
[2026-04-08 16:03:47] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":7030,"order_number":"AZS-080426-012","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-08 16:03:47","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-08 16:03:47"} 
[2026-04-08 16:03:47] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7030,"order_number":"AZS-080426-012","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-08 16:03:47"} 
[2026-04-08 16:03:47] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":7030,"order_number":"AZS-080426-012","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-08 16:03:47","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-04-08 16:03:47"} 
[2026-04-08 16:04:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":7035,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":33674},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":33675},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null,"id":33676},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":33677},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":33678},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":33679},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":33680},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":33681}],"validated_items":[{"id":33674,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":33675,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":33676,"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null},{"id":33677,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":33678,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":33679,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":33680,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":33681,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:04:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7035,"items_count":8} 
[2026-04-08 16:04:04] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33674,"menu_item_id":106,"quantity":1},{"id":33675,"menu_item_id":396,"quantity":5},{"id":33676,"menu_item_id":50,"quantity":4},{"id":33677,"menu_item_id":61,"quantity":3},{"id":33678,"menu_item_id":56,"quantity":2},{"id":33679,"menu_item_id":5,"quantity":2},{"id":33680,"menu_item_id":114,"quantity":1},{"id":33681,"menu_item_id":113,"quantity":1}]} 
[2026-04-08 16:04:04] local.INFO: PosOrderController::update - Item changes check {"order_id":7035,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["106|1|","396|5|","50|4|","61|3|","56|3|","5|2|","114|1|","113|1|"],"new_items_map_keys":["106|1|","396|5|","50|4|","61|3|","56|2|","5|2|","114|1|","113|1|"]} 
[2026-04-08 16:04:04] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7035,"order_number":"AZS-080426-007"} 
[2026-04-08 16:04:04] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-007","replaced_order_id":7035} 
[2026-04-08 16:04:04] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7038,"items_count":8,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":50,"quantity":4,"price":"129.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"}]} 
[2026-04-08 16:04:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7038,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7038}} 
[2026-04-08 16:04:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7038,"item_index":0,"menu_item_id":106} 
[2026-04-08 16:04:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7038,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7038}} 
[2026-04-08 16:04:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7038,"item_index":1,"menu_item_id":396} 
[2026-04-08 16:04:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7038,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7038}} 
[2026-04-08 16:04:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7038,"item_index":2,"menu_item_id":50} 
[2026-04-08 16:04:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7038,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7038}} 
[2026-04-08 16:04:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7038,"item_index":3,"menu_item_id":61} 
[2026-04-08 16:04:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7038,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7038}} 
[2026-04-08 16:04:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7038,"item_index":4,"menu_item_id":56} 
[2026-04-08 16:04:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7038,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7038}} 
[2026-04-08 16:04:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7038,"item_index":5,"menu_item_id":5} 
[2026-04-08 16:04:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7038,"item_index":6,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7038}} 
[2026-04-08 16:04:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7038,"item_index":6,"menu_item_id":114} 
[2026-04-08 16:04:04] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7038,"item_index":7,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7038}} 
[2026-04-08 16:04:04] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7038,"item_index":7,"menu_item_id":113} 
[2026-04-08 16:04:04] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7035,"new_order_id":7038,"order_number":"AZS-080426-007"} 
[2026-04-08 16:04:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7034,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null,"id":33670},{"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null,"id":33671},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33672},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null,"id":33673}],"validated_items":[{"id":33670,"menu_item_id":96,"quantity":1,"discount_percent":0,"notes":null},{"id":33671,"menu_item_id":396,"quantity":3,"discount_percent":0,"notes":null},{"id":33672,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33673,"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:04:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7034,"items_count":4} 
[2026-04-08 16:04:18] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33670,"menu_item_id":96,"quantity":1},{"id":33671,"menu_item_id":396,"quantity":3},{"id":33672,"menu_item_id":5,"quantity":1},{"id":33673,"menu_item_id":61,"quantity":2}]} 
[2026-04-08 16:04:18] local.INFO: PosOrderController::update - Item changes check {"order_id":7034,"has_item_changes":true,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","396|3|","5|1|","61|1|"],"new_items_map_keys":["96|1|","396|3|","5|1|","61|2|"]} 
[2026-04-08 16:04:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7034,"order_number":"AZS-080426-013"} 
[2026-04-08 16:04:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-013","replaced_order_id":7034} 
[2026-04-08 16:04:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7039,"items_count":4,"items":[{"menu_item_id":96,"quantity":1,"price":"1199.00"},{"menu_item_id":396,"quantity":3,"price":"99.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"}]} 
[2026-04-08 16:04:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7039,"item_index":0,"item_data":{"menu_item_id":96,"restaurant_category_id":12,"restaurant_category_name":"HANDI Special","item_name":"Chicken Karahi - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7039}} 
[2026-04-08 16:04:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7039,"item_index":0,"menu_item_id":96} 
[2026-04-08 16:04:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7039,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":3,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":297.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7039}} 
[2026-04-08 16:04:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7039,"item_index":1,"menu_item_id":396} 
[2026-04-08 16:04:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7039,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7039}} 
[2026-04-08 16:04:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7039,"item_index":2,"menu_item_id":5} 
[2026-04-08 16:04:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7039,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7039}} 
[2026-04-08 16:04:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7039,"item_index":3,"menu_item_id":61} 
[2026-04-08 16:04:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7034,"new_order_id":7039,"order_number":"AZS-080426-013"} 
[2026-04-08 16:04:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7039,"item_index":0,"item_id":33670} 
[2026-04-08 16:04:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7039,"item_index":1,"item_id":33671} 
[2026-04-08 16:04:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7039,"item_index":2,"item_id":33672} 
[2026-04-08 16:04:23] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7039,"item_index":3,"item_id":33673} 
[2026-04-08 16:04:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":7039,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33670},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":33671},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33672},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33673}],"validated_items":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:04:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7039,"items_count":4} 
[2026-04-08 16:04:23] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[33696,33697,33698,33699],"items":[{"id":null,"menu_item_id":96,"quantity":1},{"id":null,"menu_item_id":396,"quantity":3},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":61,"quantity":2}]} 
[2026-04-08 16:04:23] local.INFO: PosOrderController::update - Item changes check {"order_id":7039,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","396|3|","5|1|","61|2|"],"new_items_map_keys":["96|1|","396|3|","5|1|","61|2|"]} 
[2026-04-08 16:04:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7039,"order_number":"AZS-080426-013"} 
[2026-04-08 16:04:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7039,"order_number":"AZS-080426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 16:04:23"} 
[2026-04-08 16:06:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":7022,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":33625}],"validated_items":[{"id":33625,"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:06:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7022,"items_count":1} 
[2026-04-08 16:06:10] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33625,"menu_item_id":384,"quantity":1}]} 
[2026-04-08 16:06:10] local.INFO: PosOrderController::update - Item changes check {"order_id":7022,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["384|1|"],"new_items_map_keys":["384|1|"]} 
[2026-04-08 16:06:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7022,"order_number":"AZS-080426-011"} 
[2026-04-08 16:06:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7022,"order_number":"AZS-080426-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 16:06:10"} 
[2026-04-08 16:09:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7039,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33696},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":33697},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33698},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33699}],"validated_items":[{"id":33696,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33697,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":33698,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33699,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:09:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7039,"items_count":4} 
[2026-04-08 16:09:20] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33696,"menu_item_id":96,"quantity":1},{"id":33697,"menu_item_id":396,"quantity":3},{"id":33698,"menu_item_id":5,"quantity":1},{"id":33699,"menu_item_id":61,"quantity":2}]} 
[2026-04-08 16:09:20] local.INFO: PosOrderController::update - Item changes check {"order_id":7039,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","396|3|","5|1|","61|2|"],"new_items_map_keys":["96|1|","396|3|","5|1|","61|2|"]} 
[2026-04-08 16:09:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7039,"order_number":"AZS-080426-013"} 
[2026-04-08 16:09:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7039,"order_number":"AZS-080426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 16:09:20"} 
[2026-04-08 16:10:10] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":7039,"order_number":"AZS-080426-013","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2100,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 16:10:10"} 
[2026-04-08 16:10:10] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":7039,"order_number":"AZS-080426-013","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2100,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 16:10:10"} 
[2026-04-08 16:10:10] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":7039,"order_number":"AZS-080426-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 16:10:10"} 
[2026-04-08 16:10:10] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":7039,"order_number":"AZS-080426-013","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2100,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 16:10:10"} 
[2026-04-08 16:10:10] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7039,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33696},{"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null,"id":33697},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33698},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33699}],"validated_items":[{"id":33696,"menu_item_id":96,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33697,"menu_item_id":396,"quantity":3,"price":99,"discount_percent":0,"notes":null},{"id":33698,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33699,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:10:10] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7039,"items_count":4} 
[2026-04-08 16:10:10] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33696,"menu_item_id":96,"quantity":1},{"id":33697,"menu_item_id":396,"quantity":3},{"id":33698,"menu_item_id":5,"quantity":1},{"id":33699,"menu_item_id":61,"quantity":2}]} 
[2026-04-08 16:10:10] local.INFO: PosOrderController::update - Item changes check {"order_id":7039,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["96|1|","396|3|","5|1|","61|2|"],"new_items_map_keys":["96|1|","396|3|","5|1|","61|2|"]} 
[2026-04-08 16:10:10] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7039,"order_number":"AZS-080426-013"} 
[2026-04-08 16:10:10] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":7039,"order_number":"AZS-080426-013","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2100,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-08 16:10:10","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-08 16:10:10"} 
[2026-04-08 16:10:10] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7039,"order_number":"AZS-080426-013","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-08 16:10:10"} 
[2026-04-08 16:10:10] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":7039,"order_number":"AZS-080426-013","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2100.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-08 16:10:10","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2100,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2100.00","database_verification_match":true,"timestamp":"2026-04-08 16:10:10"} 
[2026-04-08 16:13:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T04:13:56.989Z","date_to":"2026-04-08T16:13:56.989Z","per_page":"100"} 
[2026-04-08 16:13:55] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T04:13:56.976Z","date_to":"2026-04-08T16:13:56.976Z","per_page":"100"} 
[2026-04-08 16:13:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-016","AZS-080426-015","AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","paid","paid","pending","pending","paid","paid","paid","pending","paid","pending"],"deleted_count":0,"paid_count":8,"unpaid_count":8,"unique_order_numbers":16} 
[2026-04-08 16:13:55] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-016","AZS-080426-015","AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","paid","paid","pending","pending","paid","paid","paid","pending","paid","pending"],"deleted_count":0,"paid_count":8,"unpaid_count":8,"unique_order_numbers":16} 
[2026-04-08 16:13:56] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T04:13:56.976Z","date_to":"2026-04-08T16:13:56.976Z","per_page":"100"} 
[2026-04-08 16:13:56] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":16,"count":16,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-016","AZS-080426-015","AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","pending","pending","paid","paid","pending","paid","paid","pending","pending","paid","paid","paid","pending","paid","pending"],"deleted_count":0,"paid_count":8,"unpaid_count":8,"unique_order_numbers":16} 
[2026-04-08 16:15:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":7019,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":33616},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":33617},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33618},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33619},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33620}],"validated_items":[{"id":33616,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":33617,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":33618,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33619,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33620,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:15:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7019,"items_count":5} 
[2026-04-08 16:15:23] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33616,"menu_item_id":105,"quantity":1},{"id":33617,"menu_item_id":48,"quantity":2},{"id":33618,"menu_item_id":61,"quantity":1},{"id":33619,"menu_item_id":56,"quantity":1},{"id":33620,"menu_item_id":5,"quantity":1}]} 
[2026-04-08 16:15:23] local.INFO: PosOrderController::update - Item changes check {"order_id":7019,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","48|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","48|2|","61|1|","56|1|","5|1|"]} 
[2026-04-08 16:15:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7019,"order_number":"AZS-080426-008"} 
[2026-04-08 16:15:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7019,"order_number":"AZS-080426-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 16:15:23"} 
[2026-04-08 16:17:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7037,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null,"id":33685},{"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null,"id":33686},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null,"id":33687},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33685,"menu_item_id":138,"quantity":1,"discount_percent":0,"notes":null},{"id":33686,"menu_item_id":83,"quantity":1,"discount_percent":0,"notes":null},{"id":33687,"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":137,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:17:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7037,"items_count":4} 
[2026-04-08 16:17:07] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33685,"menu_item_id":138,"quantity":1},{"id":33686,"menu_item_id":83,"quantity":1},{"id":33687,"menu_item_id":3,"quantity":1},{"id":null,"menu_item_id":137,"quantity":1}]} 
[2026-04-08 16:17:07] local.INFO: PosOrderController::update - Item changes check {"order_id":7037,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["138|1|","83|1|","3|1|"],"new_items_map_keys":["138|1|","83|1|","3|1|","137|1|"]} 
[2026-04-08 16:17:07] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7037,"order_number":"AZS-080426-015"} 
[2026-04-08 16:17:07] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-015","replaced_order_id":7037} 
[2026-04-08 16:17:07] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7040,"items_count":4,"items":[{"menu_item_id":138,"quantity":1,"price":"2199.00"},{"menu_item_id":83,"quantity":1,"price":"649.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"},{"menu_item_id":137,"quantity":1,"price":"1299.00"}]} 
[2026-04-08 16:17:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7040,"item_index":0,"item_data":{"menu_item_id":138,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Large","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7040}} 
[2026-04-08 16:17:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7040,"item_index":0,"menu_item_id":138} 
[2026-04-08 16:17:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7040,"item_index":1,"item_data":{"menu_item_id":83,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"Chicken Nuggets","quantity":1,"price":"649.00","discount_percent":0.0,"discount_amount":0.0,"total":649.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7040}} 
[2026-04-08 16:17:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7040,"item_index":1,"menu_item_id":83} 
[2026-04-08 16:17:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7040,"item_index":2,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7040}} 
[2026-04-08 16:17:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7040,"item_index":2,"menu_item_id":3} 
[2026-04-08 16:17:07] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7040,"item_index":3,"item_data":{"menu_item_id":137,"restaurant_category_id":15,"restaurant_category_name":"PIZZA","item_name":"Azan Special Muglai Pizza - Medium","quantity":1,"price":"1299.00","discount_percent":0.0,"discount_amount":0.0,"total":1299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7040}} 
[2026-04-08 16:17:07] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7040,"item_index":3,"menu_item_id":137} 
[2026-04-08 16:17:07] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7037,"new_order_id":7040,"order_number":"AZS-080426-015"} 
[2026-04-08 16:17:23] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":7019,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":33616},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":33617},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33618},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33619},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33620}],"validated_items":[{"id":33616,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":33617,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":33618,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33619,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33620,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:17:23] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7019,"items_count":5} 
[2026-04-08 16:17:23] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33616,"menu_item_id":105,"quantity":1},{"id":33617,"menu_item_id":48,"quantity":2},{"id":33618,"menu_item_id":61,"quantity":1},{"id":33619,"menu_item_id":56,"quantity":1},{"id":33620,"menu_item_id":5,"quantity":1}]} 
[2026-04-08 16:17:23] local.INFO: PosOrderController::update - Item changes check {"order_id":7019,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","48|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","48|2|","61|1|","56|1|","5|1|"]} 
[2026-04-08 16:17:23] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7019,"order_number":"AZS-080426-008"} 
[2026-04-08 16:17:23] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7019,"order_number":"AZS-080426-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 16:17:23"} 
[2026-04-08 16:18:12] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":7019,"order_number":"AZS-080426-008","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3430,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 16:18:12"} 
[2026-04-08 16:18:12] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":7019,"order_number":"AZS-080426-008","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3430,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 16:18:12"} 
[2026-04-08 16:18:12] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":7019,"order_number":"AZS-080426-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3430,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 16:18:12"} 
[2026-04-08 16:18:12] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":7019,"order_number":"AZS-080426-008","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3430,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 16:18:12"} 
[2026-04-08 16:18:12] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":7019,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":33616},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":33617},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33618},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33619},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33620}],"validated_items":[{"id":33616,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":33617,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":33618,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33619,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33620,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:18:12] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7019,"items_count":5} 
[2026-04-08 16:18:12] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33616,"menu_item_id":105,"quantity":1},{"id":33617,"menu_item_id":48,"quantity":2},{"id":33618,"menu_item_id":61,"quantity":1},{"id":33619,"menu_item_id":56,"quantity":1},{"id":33620,"menu_item_id":5,"quantity":1}]} 
[2026-04-08 16:18:12] local.INFO: PosOrderController::update - Item changes check {"order_id":7019,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["105|1|","48|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","48|2|","61|1|","56|1|","5|1|"]} 
[2026-04-08 16:18:12] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7019,"order_number":"AZS-080426-008"} 
[2026-04-08 16:18:12] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":7019,"order_number":"AZS-080426-008","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3430,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-08 16:18:12","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-08 16:18:12"} 
[2026-04-08 16:18:12] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7019,"order_number":"AZS-080426-008","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-08 16:18:12"} 
[2026-04-08 16:18:12] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":7019,"order_number":"AZS-080426-008","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3430.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-08 16:18:12","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3430,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3430.00","database_verification_match":true,"timestamp":"2026-04-08 16:18:12"} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":7038,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":33688},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":33689},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null,"id":33690},{"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null,"id":33691},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":33692},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":33693},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":33694},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":33695},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":33688,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":33689,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":33690,"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null},{"id":33691,"menu_item_id":61,"quantity":3,"discount_percent":0,"notes":null},{"id":33692,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":33693,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":33694,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":33695,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7038,"items_count":9} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33688,"menu_item_id":106,"quantity":1},{"id":33689,"menu_item_id":396,"quantity":5},{"id":33690,"menu_item_id":50,"quantity":4},{"id":33691,"menu_item_id":61,"quantity":3},{"id":33692,"menu_item_id":56,"quantity":2},{"id":33693,"menu_item_id":5,"quantity":2},{"id":33694,"menu_item_id":114,"quantity":1},{"id":33695,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":3,"quantity":3}]} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Item changes check {"order_id":7038,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["106|1|","396|5|","50|4|","61|3|","56|2|","5|2|","114|1|","113|1|"],"new_items_map_keys":["106|1|","396|5|","50|4|","61|3|","56|2|","5|2|","114|1|","113|1|","3|3|"]} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7038,"order_number":"AZS-080426-007"} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-007","replaced_order_id":7038} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7041,"items_count":9,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":50,"quantity":4,"price":"129.00"},{"menu_item_id":61,"quantity":3,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":3,"quantity":3,"price":"270.00"}]} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7041,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7041}} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7041,"item_index":0,"menu_item_id":106} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7041,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7041}} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7041,"item_index":1,"menu_item_id":396} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7041,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7041}} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7041,"item_index":2,"menu_item_id":50} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7041,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7041}} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7041,"item_index":3,"menu_item_id":61} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7041,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7041}} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7041,"item_index":4,"menu_item_id":56} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7041,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7041}} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7041,"item_index":5,"menu_item_id":5} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7041,"item_index":6,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7041}} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7041,"item_index":6,"menu_item_id":114} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7041,"item_index":7,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7041}} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7041,"item_index":7,"menu_item_id":113} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7041,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":3,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":810.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7041}} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7041,"item_index":8,"menu_item_id":3} 
[2026-04-08 16:18:24] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7038,"new_order_id":7041,"order_number":"AZS-080426-007"} 
[2026-04-08 16:18:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7036,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":33682},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":33683},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33684},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33682,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"id":33683,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":33684,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:18:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7036,"items_count":4} 
[2026-04-08 16:18:37] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33682,"menu_item_id":63,"quantity":1},{"id":33683,"menu_item_id":396,"quantity":1},{"id":33684,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":13,"quantity":1}]} 
[2026-04-08 16:18:37] local.INFO: PosOrderController::update - Item changes check {"order_id":7036,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["63|1|","396|1|","61|1|"],"new_items_map_keys":["63|1|","396|1|","61|1|","13|1|"]} 
[2026-04-08 16:18:37] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7036,"order_number":"AZS-080426-014"} 
[2026-04-08 16:18:37] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-014","replaced_order_id":7036} 
[2026-04-08 16:18:37] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7042,"items_count":4,"items":[{"menu_item_id":63,"quantity":1,"price":"1099.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":13,"quantity":1,"price":"249.00"}]} 
[2026-04-08 16:18:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7042,"item_index":0,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7042}} 
[2026-04-08 16:18:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7042,"item_index":0,"menu_item_id":63} 
[2026-04-08 16:18:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7042,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7042}} 
[2026-04-08 16:18:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7042,"item_index":1,"menu_item_id":396} 
[2026-04-08 16:18:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7042,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7042}} 
[2026-04-08 16:18:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7042,"item_index":2,"menu_item_id":61} 
[2026-04-08 16:18:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7042,"item_index":3,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7042}} 
[2026-04-08 16:18:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7042,"item_index":3,"menu_item_id":13} 
[2026-04-08 16:18:37] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7036,"new_order_id":7042,"order_number":"AZS-080426-014"} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":7041,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":33704},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":33705},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null,"id":33706},{"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null,"id":33707},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":33708},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":33709},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":33710},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":33711},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null,"id":33712}],"validated_items":[{"id":33704,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":33705,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":33706,"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null},{"id":33707,"menu_item_id":61,"quantity":4,"discount_percent":0,"notes":null},{"id":33708,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":33709,"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"id":33710,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":33711,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":33712,"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7041,"items_count":9} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33704,"menu_item_id":106,"quantity":1},{"id":33705,"menu_item_id":396,"quantity":5},{"id":33706,"menu_item_id":50,"quantity":4},{"id":33707,"menu_item_id":61,"quantity":4},{"id":33708,"menu_item_id":56,"quantity":2},{"id":33709,"menu_item_id":5,"quantity":2},{"id":33710,"menu_item_id":114,"quantity":1},{"id":33711,"menu_item_id":113,"quantity":1},{"id":33712,"menu_item_id":3,"quantity":3}]} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Item changes check {"order_id":7041,"has_item_changes":true,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["106|1|","396|5|","50|4|","61|3|","56|2|","5|2|","114|1|","113|1|","3|3|"],"new_items_map_keys":["106|1|","396|5|","50|4|","61|4|","56|2|","5|2|","114|1|","113|1|","3|3|"]} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7041,"order_number":"AZS-080426-007"} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-007","replaced_order_id":7041} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7043,"items_count":9,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":50,"quantity":4,"price":"129.00"},{"menu_item_id":61,"quantity":4,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":3,"quantity":3,"price":"270.00"}]} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7043,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7043}} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7043,"item_index":0,"menu_item_id":106} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7043,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7043}} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7043,"item_index":1,"menu_item_id":396} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7043,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7043}} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7043,"item_index":2,"menu_item_id":50} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7043,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":4,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":796.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7043}} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7043,"item_index":3,"menu_item_id":61} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7043,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7043}} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7043,"item_index":4,"menu_item_id":56} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7043,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7043}} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7043,"item_index":5,"menu_item_id":5} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7043,"item_index":6,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7043}} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7043,"item_index":6,"menu_item_id":114} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7043,"item_index":7,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7043}} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7043,"item_index":7,"menu_item_id":113} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7043,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":3,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":810.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7043}} 
[2026-04-08 16:21:06] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7043,"item_index":8,"menu_item_id":3} 
[2026-04-08 16:21:07] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7041,"new_order_id":7043,"order_number":"AZS-080426-007"} 
[2026-04-08 16:22:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7043,"item_index":0,"item_id":33704} 
[2026-04-08 16:22:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7043,"item_index":1,"item_id":33705} 
[2026-04-08 16:22:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7043,"item_index":2,"item_id":33706} 
[2026-04-08 16:22:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7043,"item_index":3,"item_id":33707} 
[2026-04-08 16:22:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7043,"item_index":4,"item_id":33708} 
[2026-04-08 16:22:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7043,"item_index":5,"item_id":33709} 
[2026-04-08 16:22:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7043,"item_index":6,"item_id":33710} 
[2026-04-08 16:22:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7043,"item_index":7,"item_id":33711} 
[2026-04-08 16:22:52] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7043,"item_index":8,"item_id":33712} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":9,"order_id":7043,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":33704},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":33705},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null,"id":33706},{"menu_item_id":61,"quantity":6,"discount_percent":0,"notes":null,"id":33707},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":33708},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null,"id":33709},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":33710},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":33711},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null,"id":33712}],"validated_items":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":6,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7043,"items_count":9} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":9,"items_to_remove":[33717,33718,33719,33720,33721,33722,33723,33724,33725],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":396,"quantity":5},{"id":null,"menu_item_id":50,"quantity":4},{"id":null,"menu_item_id":61,"quantity":6},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":2},{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":3,"quantity":3}]} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Item changes check {"order_id":7043,"has_item_changes":true,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["106|1|","396|5|","50|4|","61|4|","56|2|","5|2|","114|1|","113|1|","3|3|"],"new_items_map_keys":["106|1|","396|5|","50|4|","61|6|","56|2|","5|2|","114|1|","113|1|","3|3|"]} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7043,"order_number":"AZS-080426-007"} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-007","replaced_order_id":7043} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7044,"items_count":9,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":50,"quantity":4,"price":"129.00"},{"menu_item_id":61,"quantity":6,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":2,"price":"170.00"},{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":3,"quantity":3,"price":"270.00"}]} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7044,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7044}} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7044,"item_index":0,"menu_item_id":106} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7044,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7044}} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7044,"item_index":1,"menu_item_id":396} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7044,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7044}} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7044,"item_index":2,"menu_item_id":50} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7044,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":6,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":1194.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7044}} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7044,"item_index":3,"menu_item_id":61} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7044,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7044}} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7044,"item_index":4,"menu_item_id":56} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7044,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":2,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":340.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7044}} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7044,"item_index":5,"menu_item_id":5} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7044,"item_index":6,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7044}} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7044,"item_index":6,"menu_item_id":114} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7044,"item_index":7,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7044}} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7044,"item_index":7,"menu_item_id":113} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7044,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":3,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":810.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7044}} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7044,"item_index":8,"menu_item_id":3} 
[2026-04-08 16:22:52] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7043,"new_order_id":7044,"order_number":"AZS-080426-007"} 
[2026-04-08 16:28:17] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":7022,"order_number":"AZS-080426-011","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":1469,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 16:28:17"} 
[2026-04-08 16:28:17] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":7022,"order_number":"AZS-080426-011","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":1469,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 16:28:17"} 
[2026-04-08 16:28:17] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":7022,"order_number":"AZS-080426-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1469,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 16:28:17"} 
[2026-04-08 16:28:17] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":7022,"order_number":"AZS-080426-011","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":1469,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 16:28:17"} 
[2026-04-08 16:28:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":7022,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null,"id":33625}],"validated_items":[{"id":33625,"menu_item_id":384,"quantity":1,"price":1399,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:28:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7022,"items_count":1} 
[2026-04-08 16:28:17] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33625,"menu_item_id":384,"quantity":1}]} 
[2026-04-08 16:28:17] local.INFO: PosOrderController::update - Item changes check {"order_id":7022,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["384|1|"],"new_items_map_keys":["384|1|"]} 
[2026-04-08 16:28:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7022,"order_number":"AZS-080426-011"} 
[2026-04-08 16:28:17] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":7022,"order_number":"AZS-080426-011","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":1469,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-08 16:28:17","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-08 16:28:17"} 
[2026-04-08 16:28:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7022,"order_number":"AZS-080426-011","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-08 16:28:17"} 
[2026-04-08 16:28:17] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":7022,"order_number":"AZS-080426-011","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"1469.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-08 16:28:17","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":1469,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"1469.00","database_verification_match":true,"timestamp":"2026-04-08 16:28:17"} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":7031,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null,"id":33650},{"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null,"id":33651},{"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null,"id":33652},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":33653},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null,"id":33654},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33655},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33656},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33657},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33650,"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"id":33651,"menu_item_id":403,"quantity":1,"discount_percent":0,"notes":null},{"id":33652,"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null},{"id":33653,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":33654,"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null},{"id":33655,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":33656,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33657,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7031,"items_count":9} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33650,"menu_item_id":13,"quantity":2},{"id":33651,"menu_item_id":403,"quantity":1},{"id":33652,"menu_item_id":9,"quantity":1},{"id":33653,"menu_item_id":105,"quantity":1},{"id":33654,"menu_item_id":51,"quantity":1},{"id":33655,"menu_item_id":61,"quantity":1},{"id":33656,"menu_item_id":56,"quantity":1},{"id":33657,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Item changes check {"order_id":7031,"has_item_changes":true,"old_items_count":8,"new_items_count":9,"old_items_map_keys":["13|2|","403|1|","9|1|","105|1|","51|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["13|2|","403|1|","9|1|","105|1|","51|1|","61|1|","56|1|","5|1|","2|1|"]} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7031,"order_number":"AZS-080426-003"} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-003","replaced_order_id":7031} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7045,"items_count":9,"items":[{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":403,"quantity":1,"price":"349.00"},{"menu_item_id":9,"quantity":1,"price":"229.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":51,"quantity":1,"price":"199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7045,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7045}} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7045,"item_index":0,"menu_item_id":13} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7045,"item_index":1,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":1,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":349.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7045}} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7045,"item_index":1,"menu_item_id":403} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7045,"item_index":2,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":1,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":229.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7045}} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7045,"item_index":2,"menu_item_id":9} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7045,"item_index":3,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7045}} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7045,"item_index":3,"menu_item_id":105} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7045,"item_index":4,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7045}} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7045,"item_index":4,"menu_item_id":51} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7045,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7045}} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7045,"item_index":5,"menu_item_id":61} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7045,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7045}} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7045,"item_index":6,"menu_item_id":56} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7045,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7045}} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7045,"item_index":7,"menu_item_id":5} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7045,"item_index":8,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7045}} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7045,"item_index":8,"menu_item_id":2} 
[2026-04-08 16:29:02] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7031,"new_order_id":7045,"order_number":"AZS-080426-003"} 
[2026-04-08 16:29:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7045,"item_index":0,"item_id":33650} 
[2026-04-08 16:29:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7045,"item_index":1,"item_id":33651} 
[2026-04-08 16:29:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7045,"item_index":2,"item_id":33652} 
[2026-04-08 16:29:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7045,"item_index":3,"item_id":33653} 
[2026-04-08 16:29:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7045,"item_index":4,"item_id":33654} 
[2026-04-08 16:29:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7045,"item_index":5,"item_id":33655} 
[2026-04-08 16:29:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7045,"item_index":6,"item_id":33656} 
[2026-04-08 16:29:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7045,"item_index":7,"item_id":33657} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":9,"order_id":7045,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null,"id":33650},{"menu_item_id":403,"quantity":2,"discount_percent":0,"notes":null,"id":33651},{"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null,"id":33652},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":33653},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null,"id":33654},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33655},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33656},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33657},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":403,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7045,"items_count":9} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":9,"items_to_remove":[33735,33736,33737,33738,33739,33740,33741,33742,33743],"items":[{"id":null,"menu_item_id":13,"quantity":2},{"id":null,"menu_item_id":403,"quantity":2},{"id":null,"menu_item_id":9,"quantity":1},{"id":null,"menu_item_id":105,"quantity":1},{"id":null,"menu_item_id":51,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":2,"quantity":1}]} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Item changes check {"order_id":7045,"has_item_changes":true,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["13|2|","403|1|","9|1|","105|1|","51|1|","61|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["13|2|","403|2|","9|1|","105|1|","51|1|","61|1|","56|1|","5|1|","2|1|"]} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7045,"order_number":"AZS-080426-003"} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-003","replaced_order_id":7045} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7046,"items_count":9,"items":[{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":403,"quantity":2,"price":"349.00"},{"menu_item_id":9,"quantity":1,"price":"229.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":51,"quantity":1,"price":"199.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7046,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7046}} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7046,"item_index":0,"menu_item_id":13} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7046,"item_index":1,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":2,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":698.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7046}} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7046,"item_index":1,"menu_item_id":403} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7046,"item_index":2,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":1,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":229.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7046}} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7046,"item_index":2,"menu_item_id":9} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7046,"item_index":3,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7046}} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7046,"item_index":3,"menu_item_id":105} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7046,"item_index":4,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7046}} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7046,"item_index":4,"menu_item_id":51} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7046,"item_index":5,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7046}} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7046,"item_index":5,"menu_item_id":61} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7046,"item_index":6,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7046}} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7046,"item_index":6,"menu_item_id":56} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7046,"item_index":7,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7046}} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7046,"item_index":7,"menu_item_id":5} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7046,"item_index":8,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7046}} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7046,"item_index":8,"menu_item_id":2} 
[2026-04-08 16:29:38] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7045,"new_order_id":7046,"order_number":"AZS-080426-003"} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":0,"order_id":7044,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":33726},{"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null,"id":33727},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null,"id":33728},{"menu_item_id":61,"quantity":6,"discount_percent":0,"notes":null,"id":33729},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":33730},{"menu_item_id":5,"quantity":3,"discount_percent":0,"notes":null,"id":33731},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":33732},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":33733},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null,"id":33734}],"validated_items":[{"id":33726,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":33727,"menu_item_id":396,"quantity":5,"discount_percent":0,"notes":null},{"id":33728,"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null},{"id":33729,"menu_item_id":61,"quantity":6,"discount_percent":0,"notes":null},{"id":33730,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":33731,"menu_item_id":5,"quantity":3,"discount_percent":0,"notes":null},{"id":33732,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":33733,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":33734,"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7044,"items_count":9} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33726,"menu_item_id":106,"quantity":1},{"id":33727,"menu_item_id":396,"quantity":5},{"id":33728,"menu_item_id":50,"quantity":4},{"id":33729,"menu_item_id":61,"quantity":6},{"id":33730,"menu_item_id":56,"quantity":2},{"id":33731,"menu_item_id":5,"quantity":3},{"id":33732,"menu_item_id":114,"quantity":1},{"id":33733,"menu_item_id":113,"quantity":1},{"id":33734,"menu_item_id":3,"quantity":3}]} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Item changes check {"order_id":7044,"has_item_changes":true,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["106|1|","396|5|","50|4|","61|6|","56|2|","5|2|","114|1|","113|1|","3|3|"],"new_items_map_keys":["106|1|","396|5|","50|4|","61|6|","56|2|","5|3|","114|1|","113|1|","3|3|"]} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7044,"order_number":"AZS-080426-007"} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-007","replaced_order_id":7044} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7048,"items_count":9,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":5,"price":"99.00"},{"menu_item_id":50,"quantity":4,"price":"129.00"},{"menu_item_id":61,"quantity":6,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":3,"price":"170.00"},{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":3,"quantity":3,"price":"270.00"}]} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7048,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7048}} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7048,"item_index":0,"menu_item_id":106} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7048,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":5,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":495.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7048}} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7048,"item_index":1,"menu_item_id":396} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7048,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7048}} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7048,"item_index":2,"menu_item_id":50} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7048,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":6,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":1194.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7048}} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7048,"item_index":3,"menu_item_id":61} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7048,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7048}} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7048,"item_index":4,"menu_item_id":56} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7048,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":3,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":510.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7048}} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7048,"item_index":5,"menu_item_id":5} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7048,"item_index":6,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7048}} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7048,"item_index":6,"menu_item_id":114} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7048,"item_index":7,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7048}} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7048,"item_index":7,"menu_item_id":113} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7048,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":3,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":810.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7048}} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7048,"item_index":8,"menu_item_id":3} 
[2026-04-08 16:31:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7044,"new_order_id":7048,"order_number":"AZS-080426-007"} 
[2026-04-08 16:33:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7048,"item_index":0,"item_id":33726} 
[2026-04-08 16:33:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7048,"item_index":1,"item_id":33727} 
[2026-04-08 16:33:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7048,"item_index":2,"item_id":33728} 
[2026-04-08 16:33:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7048,"item_index":3,"item_id":33729} 
[2026-04-08 16:33:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7048,"item_index":4,"item_id":33730} 
[2026-04-08 16:33:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7048,"item_index":5,"item_id":33731} 
[2026-04-08 16:33:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7048,"item_index":6,"item_id":33732} 
[2026-04-08 16:33:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7048,"item_index":7,"item_id":33733} 
[2026-04-08 16:33:02] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7048,"item_index":8,"item_id":33734} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":9,"order_id":7048,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":33726},{"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null,"id":33727},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null,"id":33728},{"menu_item_id":61,"quantity":6,"discount_percent":0,"notes":null,"id":33729},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":33730},{"menu_item_id":5,"quantity":3,"discount_percent":0,"notes":null,"id":33731},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":33732},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":33733},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null,"id":33734}],"validated_items":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":6,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7048,"items_count":9} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":9,"items_to_remove":[33758,33759,33760,33761,33762,33763,33764,33765,33766],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":396,"quantity":7},{"id":null,"menu_item_id":50,"quantity":4},{"id":null,"menu_item_id":61,"quantity":6},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":3},{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":3,"quantity":3}]} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Item changes check {"order_id":7048,"has_item_changes":true,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["106|1|","396|5|","50|4|","61|6|","56|2|","5|3|","114|1|","113|1|","3|3|"],"new_items_map_keys":["106|1|","396|7|","50|4|","61|6|","56|2|","5|3|","114|1|","113|1|","3|3|"]} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7048,"order_number":"AZS-080426-007"} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-007","replaced_order_id":7048} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7049,"items_count":9,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":7,"price":"99.00"},{"menu_item_id":50,"quantity":4,"price":"129.00"},{"menu_item_id":61,"quantity":6,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":3,"price":"170.00"},{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":3,"quantity":3,"price":"270.00"}]} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7049,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7049}} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7049,"item_index":0,"menu_item_id":106} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7049,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":7,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":693.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7049}} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7049,"item_index":1,"menu_item_id":396} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7049,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7049}} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7049,"item_index":2,"menu_item_id":50} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7049,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":6,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":1194.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7049}} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7049,"item_index":3,"menu_item_id":61} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7049,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7049}} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7049,"item_index":4,"menu_item_id":56} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7049,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":3,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":510.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7049}} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7049,"item_index":5,"menu_item_id":5} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7049,"item_index":6,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7049}} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7049,"item_index":6,"menu_item_id":114} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7049,"item_index":7,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7049}} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7049,"item_index":7,"menu_item_id":113} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7049,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":3,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":810.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7049}} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7049,"item_index":8,"menu_item_id":3} 
[2026-04-08 16:33:02] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7048,"new_order_id":7049,"order_number":"AZS-080426-007"} 
[2026-04-08 16:33:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7049,"item_index":0,"item_id":33726} 
[2026-04-08 16:33:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7049,"item_index":1,"item_id":33727} 
[2026-04-08 16:33:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7049,"item_index":2,"item_id":33728} 
[2026-04-08 16:33:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7049,"item_index":3,"item_id":33729} 
[2026-04-08 16:33:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7049,"item_index":4,"item_id":33730} 
[2026-04-08 16:33:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7049,"item_index":5,"item_id":33731} 
[2026-04-08 16:33:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7049,"item_index":6,"item_id":33732} 
[2026-04-08 16:33:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7049,"item_index":7,"item_id":33733} 
[2026-04-08 16:33:07] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7049,"item_index":8,"item_id":33734} 
[2026-04-08 16:33:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":9,"items_to_remove_count":9,"order_id":7049,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":33726},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null,"id":33727},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":33728},{"menu_item_id":61,"quantity":6,"price":199,"discount_percent":0,"notes":null,"id":33729},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33730},{"menu_item_id":5,"quantity":3,"price":170,"discount_percent":0,"notes":null,"id":33731},{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":33732},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33733},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null,"id":33734}],"validated_items":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":6,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":3,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:33:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7049,"items_count":9} 
[2026-04-08 16:33:07] local.INFO: PosOrderController::update - Processing items {"items_count":9,"items_to_remove_count":9,"items_to_remove":[33767,33768,33769,33770,33771,33772,33773,33774,33775],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":396,"quantity":7},{"id":null,"menu_item_id":50,"quantity":4},{"id":null,"menu_item_id":61,"quantity":6},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":3},{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":3,"quantity":3}]} 
[2026-04-08 16:33:07] local.INFO: PosOrderController::update - Item changes check {"order_id":7049,"has_item_changes":false,"old_items_count":9,"new_items_count":9,"old_items_map_keys":["106|1|","396|7|","50|4|","61|6|","56|2|","5|3|","114|1|","113|1|","3|3|"],"new_items_map_keys":["106|1|","396|7|","50|4|","61|6|","56|2|","5|3|","114|1|","113|1|","3|3|"]} 
[2026-04-08 16:33:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7049,"order_number":"AZS-080426-007"} 
[2026-04-08 16:33:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7049,"order_number":"AZS-080426-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 16:33:07"} 
[2026-04-08 16:37:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":1,"order_id":7046,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null,"id":33744},{"menu_item_id":403,"quantity":2,"discount_percent":0,"notes":null,"id":33745},{"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null,"id":33746},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":33747},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null,"id":33748},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33750},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33751},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":33752}],"validated_items":[{"id":33744,"menu_item_id":13,"quantity":2,"discount_percent":0,"notes":null},{"id":33745,"menu_item_id":403,"quantity":2,"discount_percent":0,"notes":null},{"id":33746,"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null},{"id":33747,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":33748,"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null},{"id":33750,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33751,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33752,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:37:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7046,"items_count":8} 
[2026-04-08 16:37:09] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":1,"items_to_remove":[33749],"items":[{"id":33744,"menu_item_id":13,"quantity":2},{"id":33745,"menu_item_id":403,"quantity":2},{"id":33746,"menu_item_id":9,"quantity":1},{"id":33747,"menu_item_id":105,"quantity":1},{"id":33748,"menu_item_id":51,"quantity":1},{"id":33750,"menu_item_id":56,"quantity":1},{"id":33751,"menu_item_id":5,"quantity":1},{"id":33752,"menu_item_id":2,"quantity":1}]} 
[2026-04-08 16:37:09] local.INFO: PosOrderController::update - Item changes check {"order_id":7046,"has_item_changes":true,"old_items_count":9,"new_items_count":8,"old_items_map_keys":["13|2|","403|2|","9|1|","105|1|","51|1|","61|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["13|2|","403|2|","9|1|","105|1|","51|1|","56|1|","5|1|","2|1|"]} 
[2026-04-08 16:37:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7046,"order_number":"AZS-080426-003"} 
[2026-04-08 16:37:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-003","replaced_order_id":7046} 
[2026-04-08 16:37:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7050,"items_count":8,"items":[{"menu_item_id":13,"quantity":2,"price":"249.00"},{"menu_item_id":403,"quantity":2,"price":"349.00"},{"menu_item_id":9,"quantity":1,"price":"229.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":51,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-04-08 16:37:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7050,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":2,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":498.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7050}} 
[2026-04-08 16:37:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7050,"item_index":0,"menu_item_id":13} 
[2026-04-08 16:37:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7050,"item_index":1,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":2,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":698.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7050}} 
[2026-04-08 16:37:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7050,"item_index":1,"menu_item_id":403} 
[2026-04-08 16:37:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7050,"item_index":2,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":1,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":229.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7050}} 
[2026-04-08 16:37:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7050,"item_index":2,"menu_item_id":9} 
[2026-04-08 16:37:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7050,"item_index":3,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7050}} 
[2026-04-08 16:37:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7050,"item_index":3,"menu_item_id":105} 
[2026-04-08 16:37:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7050,"item_index":4,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7050}} 
[2026-04-08 16:37:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7050,"item_index":4,"menu_item_id":51} 
[2026-04-08 16:37:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7050,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7050}} 
[2026-04-08 16:37:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7050,"item_index":5,"menu_item_id":56} 
[2026-04-08 16:37:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7050,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7050}} 
[2026-04-08 16:37:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7050,"item_index":6,"menu_item_id":5} 
[2026-04-08 16:37:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7050,"item_index":7,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7050}} 
[2026-04-08 16:37:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7050,"item_index":7,"menu_item_id":2} 
[2026-04-08 16:37:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7046,"new_order_id":7050,"order_number":"AZS-080426-003"} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":7049,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":33767},{"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null,"id":33768},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null,"id":33769},{"menu_item_id":61,"quantity":6,"discount_percent":0,"notes":null,"id":33770},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":33771},{"menu_item_id":5,"quantity":3,"discount_percent":0,"notes":null,"id":33772},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":33773},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":33774},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null,"id":33775},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33767,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":33768,"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null},{"id":33769,"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null},{"id":33770,"menu_item_id":61,"quantity":6,"discount_percent":0,"notes":null},{"id":33771,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":33772,"menu_item_id":5,"quantity":3,"discount_percent":0,"notes":null},{"id":33773,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":33774,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":33775,"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7049,"items_count":10} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33767,"menu_item_id":106,"quantity":1},{"id":33768,"menu_item_id":396,"quantity":7},{"id":33769,"menu_item_id":50,"quantity":4},{"id":33770,"menu_item_id":61,"quantity":6},{"id":33771,"menu_item_id":56,"quantity":2},{"id":33772,"menu_item_id":5,"quantity":3},{"id":33773,"menu_item_id":114,"quantity":1},{"id":33774,"menu_item_id":113,"quantity":1},{"id":33775,"menu_item_id":3,"quantity":3},{"id":null,"menu_item_id":6,"quantity":1}]} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Item changes check {"order_id":7049,"has_item_changes":true,"old_items_count":9,"new_items_count":10,"old_items_map_keys":["106|1|","396|7|","50|4|","61|6|","56|2|","5|3|","114|1|","113|1|","3|3|"],"new_items_map_keys":["106|1|","396|7|","50|4|","61|6|","56|2|","5|3|","114|1|","113|1|","3|3|","6|1|"]} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7049,"order_number":"AZS-080426-007"} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-007","replaced_order_id":7049} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7051,"items_count":10,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":7,"price":"99.00"},{"menu_item_id":50,"quantity":4,"price":"129.00"},{"menu_item_id":61,"quantity":6,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":3,"price":"170.00"},{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":3,"quantity":3,"price":"270.00"},{"menu_item_id":6,"quantity":1,"price":"199.00"}]} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7051,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7051}} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7051,"item_index":0,"menu_item_id":106} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7051,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":7,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":693.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7051}} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7051,"item_index":1,"menu_item_id":396} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7051,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7051}} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7051,"item_index":2,"menu_item_id":50} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7051,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":6,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":1194.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7051}} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7051,"item_index":3,"menu_item_id":61} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7051,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7051}} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7051,"item_index":4,"menu_item_id":56} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7051,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":3,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":510.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7051}} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7051,"item_index":5,"menu_item_id":5} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7051,"item_index":6,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7051}} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7051,"item_index":6,"menu_item_id":114} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7051,"item_index":7,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7051}} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7051,"item_index":7,"menu_item_id":113} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7051,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":3,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":810.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7051}} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7051,"item_index":8,"menu_item_id":3} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7051,"item_index":9,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7051}} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7051,"item_index":9,"menu_item_id":6} 
[2026-04-08 16:37:30] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7049,"new_order_id":7051,"order_number":"AZS-080426-007"} 
[2026-04-08 16:38:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7051,"item_index":0,"item_id":33767} 
[2026-04-08 16:38:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7051,"item_index":1,"item_id":33768} 
[2026-04-08 16:38:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7051,"item_index":2,"item_id":33769} 
[2026-04-08 16:38:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7051,"item_index":3,"item_id":33770} 
[2026-04-08 16:38:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7051,"item_index":4,"item_id":33771} 
[2026-04-08 16:38:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7051,"item_index":5,"item_id":33772} 
[2026-04-08 16:38:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7051,"item_index":6,"item_id":33773} 
[2026-04-08 16:38:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7051,"item_index":7,"item_id":33774} 
[2026-04-08 16:38:17] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7051,"item_index":8,"item_id":33775} 
[2026-04-08 16:38:17] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":10,"order_id":7051,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":33767},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null,"id":33768},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":33769},{"menu_item_id":61,"quantity":6,"price":199,"discount_percent":0,"notes":null,"id":33770},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33771},{"menu_item_id":5,"quantity":3,"price":170,"discount_percent":0,"notes":null,"id":33772},{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":33773},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33774},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null,"id":33775},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":6,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":3,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:38:17] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7051,"items_count":10} 
[2026-04-08 16:38:17] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":10,"items_to_remove":[33784,33785,33786,33787,33788,33789,33790,33791,33792,33793],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":396,"quantity":7},{"id":null,"menu_item_id":50,"quantity":4},{"id":null,"menu_item_id":61,"quantity":6},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":3},{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":3,"quantity":3},{"id":null,"menu_item_id":6,"quantity":1}]} 
[2026-04-08 16:38:17] local.INFO: PosOrderController::update - Item changes check {"order_id":7051,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["106|1|","396|7|","50|4|","61|6|","56|2|","5|3|","114|1|","113|1|","3|3|","6|1|"],"new_items_map_keys":["106|1|","396|7|","50|4|","61|6|","56|2|","5|3|","114|1|","113|1|","3|3|","6|1|"]} 
[2026-04-08 16:38:17] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7051,"order_number":"AZS-080426-007"} 
[2026-04-08 16:38:17] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7051,"order_number":"AZS-080426-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 16:38:17"} 
[2026-04-08 16:40:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7042,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":33713},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33714},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33715},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":33716}],"validated_items":[{"id":33713,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":33714,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":33715,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33716,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:40:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7042,"items_count":4} 
[2026-04-08 16:40:02] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33713,"menu_item_id":63,"quantity":1},{"id":33714,"menu_item_id":396,"quantity":1},{"id":33715,"menu_item_id":61,"quantity":1},{"id":33716,"menu_item_id":13,"quantity":1}]} 
[2026-04-08 16:40:02] local.INFO: PosOrderController::update - Item changes check {"order_id":7042,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["63|1|","396|1|","61|1|","13|1|"],"new_items_map_keys":["63|1|","396|1|","61|1|","13|1|"]} 
[2026-04-08 16:40:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7042,"order_number":"AZS-080426-014"} 
[2026-04-08 16:40:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7042,"order_number":"AZS-080426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 16:40:02"} 
[2026-04-08 16:40:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":7042,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null,"id":33713},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":33714},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33715},{"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null,"id":33716},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33713,"menu_item_id":63,"quantity":1,"discount_percent":0,"notes":null},{"id":33714,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":33715,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":33716,"menu_item_id":13,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:40:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7042,"items_count":5} 
[2026-04-08 16:40:09] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33713,"menu_item_id":63,"quantity":1},{"id":33714,"menu_item_id":396,"quantity":1},{"id":33715,"menu_item_id":61,"quantity":1},{"id":33716,"menu_item_id":13,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-08 16:40:09] local.INFO: PosOrderController::update - Item changes check {"order_id":7042,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["63|1|","396|1|","61|1|","13|1|"],"new_items_map_keys":["63|1|","396|1|","61|1|","13|1|","5|1|"]} 
[2026-04-08 16:40:09] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7042,"order_number":"AZS-080426-014"} 
[2026-04-08 16:40:09] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-014","replaced_order_id":7042} 
[2026-04-08 16:40:09] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7052,"items_count":5,"items":[{"menu_item_id":63,"quantity":1,"price":"1099.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":13,"quantity":1,"price":"249.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-08 16:40:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7052,"item_index":0,"item_data":{"menu_item_id":63,"restaurant_category_id":10,"restaurant_category_name":"BAR B.Q","item_name":"Chicken Tikka Boti (10 pcs)","quantity":1,"price":"1099.00","discount_percent":0.0,"discount_amount":0.0,"total":1099.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7052}} 
[2026-04-08 16:40:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7052,"item_index":0,"menu_item_id":63} 
[2026-04-08 16:40:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7052,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7052}} 
[2026-04-08 16:40:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7052,"item_index":1,"menu_item_id":396} 
[2026-04-08 16:40:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7052,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7052}} 
[2026-04-08 16:40:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7052,"item_index":2,"menu_item_id":61} 
[2026-04-08 16:40:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7052,"item_index":3,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":1,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":249.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7052}} 
[2026-04-08 16:40:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7052,"item_index":3,"menu_item_id":13} 
[2026-04-08 16:40:09] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7052,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7052}} 
[2026-04-08 16:40:09] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7052,"item_index":4,"menu_item_id":5} 
[2026-04-08 16:40:09] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7042,"new_order_id":7052,"order_number":"AZS-080426-014"} 
[2026-04-08 16:40:20] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7052,"item_index":0,"item_id":33713} 
[2026-04-08 16:40:20] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7052,"item_index":1,"item_id":33714} 
[2026-04-08 16:40:20] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7052,"item_index":2,"item_id":33715} 
[2026-04-08 16:40:20] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7052,"item_index":3,"item_id":33716} 
[2026-04-08 16:40:20] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":7052,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":33713},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33714},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33715},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":33716},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:40:20] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7052,"items_count":5} 
[2026-04-08 16:40:20] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[33794,33795,33796,33797,33798],"items":[{"id":null,"menu_item_id":63,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":13,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-08 16:40:20] local.INFO: PosOrderController::update - Item changes check {"order_id":7052,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["63|1|","396|1|","61|1|","13|1|","5|1|"],"new_items_map_keys":["63|1|","396|1|","61|1|","13|1|","5|1|"]} 
[2026-04-08 16:40:20] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7052,"order_number":"AZS-080426-014"} 
[2026-04-08 16:40:20] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7052,"order_number":"AZS-080426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 16:40:20"} 
[2026-04-08 16:43:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7052,"item_index":0,"item_id":33713} 
[2026-04-08 16:43:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7052,"item_index":1,"item_id":33714} 
[2026-04-08 16:43:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7052,"item_index":2,"item_id":33715} 
[2026-04-08 16:43:13] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7052,"item_index":3,"item_id":33716} 
[2026-04-08 16:43:13] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":5,"order_id":7052,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":33713},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33714},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33715},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":33716},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:43:13] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7052,"items_count":5} 
[2026-04-08 16:43:13] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":5,"items_to_remove":[33794,33795,33796,33797,33798],"items":[{"id":null,"menu_item_id":63,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":13,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-08 16:43:13] local.INFO: PosOrderController::update - Item changes check {"order_id":7052,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["63|1|","396|1|","61|1|","13|1|","5|1|"],"new_items_map_keys":["63|1|","396|1|","61|1|","13|1|","5|1|"]} 
[2026-04-08 16:43:13] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7052,"order_number":"AZS-080426-014"} 
[2026-04-08 16:43:13] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7052,"order_number":"AZS-080426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 16:43:13"} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":7051,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null,"id":33784},{"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null,"id":33785},{"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null,"id":33786},{"menu_item_id":61,"quantity":6,"discount_percent":0,"notes":null,"id":33787},{"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null,"id":33788},{"menu_item_id":5,"quantity":3,"discount_percent":0,"notes":null,"id":33789},{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":33790},{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":33791},{"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null,"id":33792},{"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null,"id":33793}],"validated_items":[{"id":33784,"menu_item_id":106,"quantity":1,"discount_percent":0,"notes":null},{"id":33785,"menu_item_id":396,"quantity":7,"discount_percent":0,"notes":null},{"id":33786,"menu_item_id":50,"quantity":4,"discount_percent":0,"notes":null},{"id":33787,"menu_item_id":61,"quantity":6,"discount_percent":0,"notes":null},{"id":33788,"menu_item_id":56,"quantity":2,"discount_percent":0,"notes":null},{"id":33789,"menu_item_id":5,"quantity":3,"discount_percent":0,"notes":null},{"id":33790,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":33791,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":33792,"menu_item_id":3,"quantity":3,"discount_percent":0,"notes":null},{"id":33793,"menu_item_id":6,"quantity":2,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7051,"items_count":10} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33784,"menu_item_id":106,"quantity":1},{"id":33785,"menu_item_id":396,"quantity":7},{"id":33786,"menu_item_id":50,"quantity":4},{"id":33787,"menu_item_id":61,"quantity":6},{"id":33788,"menu_item_id":56,"quantity":2},{"id":33789,"menu_item_id":5,"quantity":3},{"id":33790,"menu_item_id":114,"quantity":1},{"id":33791,"menu_item_id":113,"quantity":1},{"id":33792,"menu_item_id":3,"quantity":3},{"id":33793,"menu_item_id":6,"quantity":2}]} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Item changes check {"order_id":7051,"has_item_changes":true,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["106|1|","396|7|","50|4|","61|6|","56|2|","5|3|","114|1|","113|1|","3|3|","6|1|"],"new_items_map_keys":["106|1|","396|7|","50|4|","61|6|","56|2|","5|3|","114|1|","113|1|","3|3|","6|2|"]} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7051,"order_number":"AZS-080426-007"} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-007","replaced_order_id":7051} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7053,"items_count":10,"items":[{"menu_item_id":106,"quantity":1,"price":"4199.00"},{"menu_item_id":396,"quantity":7,"price":"99.00"},{"menu_item_id":50,"quantity":4,"price":"129.00"},{"menu_item_id":61,"quantity":6,"price":"199.00"},{"menu_item_id":56,"quantity":2,"price":"199.00"},{"menu_item_id":5,"quantity":3,"price":"170.00"},{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":3,"quantity":3,"price":"270.00"},{"menu_item_id":6,"quantity":2,"price":"199.00"}]} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7053,"item_index":0,"item_data":{"menu_item_id":106,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Full","quantity":1,"price":"4199.00","discount_percent":0.0,"discount_amount":0.0,"total":4199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7053}} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7053,"item_index":0,"menu_item_id":106} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7053,"item_index":1,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":7,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":693.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7053}} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7053,"item_index":1,"menu_item_id":396} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7053,"item_index":2,"item_data":{"menu_item_id":50,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Roghni Naan","quantity":4,"price":"129.00","discount_percent":0.0,"discount_amount":0.0,"total":516.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7053}} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7053,"item_index":2,"menu_item_id":50} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7053,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":6,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":1194.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7053}} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7053,"item_index":3,"menu_item_id":61} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7053,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7053}} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7053,"item_index":4,"menu_item_id":56} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7053,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":3,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":510.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7053}} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7053,"item_index":5,"menu_item_id":5} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7053,"item_index":6,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7053}} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7053,"item_index":6,"menu_item_id":114} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7053,"item_index":7,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7053}} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7053,"item_index":7,"menu_item_id":113} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7053,"item_index":8,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":3,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":810.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7053}} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7053,"item_index":8,"menu_item_id":3} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7053,"item_index":9,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7053}} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7053,"item_index":9,"menu_item_id":6} 
[2026-04-08 16:45:05] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7051,"new_order_id":7053,"order_number":"AZS-080426-007"} 
[2026-04-08 16:46:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7053,"item_index":0,"item_id":33784} 
[2026-04-08 16:46:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7053,"item_index":1,"item_id":33785} 
[2026-04-08 16:46:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7053,"item_index":2,"item_id":33786} 
[2026-04-08 16:46:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7053,"item_index":3,"item_id":33787} 
[2026-04-08 16:46:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7053,"item_index":4,"item_id":33788} 
[2026-04-08 16:46:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7053,"item_index":5,"item_id":33789} 
[2026-04-08 16:46:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7053,"item_index":6,"item_id":33790} 
[2026-04-08 16:46:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7053,"item_index":7,"item_id":33791} 
[2026-04-08 16:46:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7053,"item_index":8,"item_id":33792} 
[2026-04-08 16:46:01] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7053,"item_index":9,"item_id":33793} 
[2026-04-08 16:46:01] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":10,"order_id":7053,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":33784},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null,"id":33785},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":33786},{"menu_item_id":61,"quantity":6,"price":199,"discount_percent":0,"notes":null,"id":33787},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33788},{"menu_item_id":5,"quantity":3,"price":170,"discount_percent":0,"notes":null,"id":33789},{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":33790},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33791},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null,"id":33792},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33793}],"validated_items":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":6,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":3,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:46:01] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7053,"items_count":10} 
[2026-04-08 16:46:01] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":10,"items_to_remove":[33799,33800,33801,33802,33803,33804,33805,33806,33807,33808],"items":[{"id":null,"menu_item_id":106,"quantity":1},{"id":null,"menu_item_id":396,"quantity":7},{"id":null,"menu_item_id":50,"quantity":4},{"id":null,"menu_item_id":61,"quantity":6},{"id":null,"menu_item_id":56,"quantity":2},{"id":null,"menu_item_id":5,"quantity":3},{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":3,"quantity":3},{"id":null,"menu_item_id":6,"quantity":2}]} 
[2026-04-08 16:46:01] local.INFO: PosOrderController::update - Item changes check {"order_id":7053,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["106|1|","396|7|","50|4|","61|6|","56|2|","5|3|","114|1|","113|1|","3|3|","6|2|"],"new_items_map_keys":["106|1|","396|7|","50|4|","61|6|","56|2|","5|3|","114|1|","113|1|","3|3|","6|2|"]} 
[2026-04-08 16:46:01] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7053,"order_number":"AZS-080426-007"} 
[2026-04-08 16:46:01] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7053,"order_number":"AZS-080426-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 16:46:01"} 
[2026-04-08 16:46:56] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7032,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null,"id":33658},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":33659},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33660},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33661}],"validated_items":[{"id":33658,"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null},{"id":33659,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":33660,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33661,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:46:56] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7032,"items_count":4} 
[2026-04-08 16:46:56] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33658,"menu_item_id":101,"quantity":1},{"id":33659,"menu_item_id":396,"quantity":4},{"id":33660,"menu_item_id":61,"quantity":1},{"id":33661,"menu_item_id":5,"quantity":1}]} 
[2026-04-08 16:46:56] local.INFO: PosOrderController::update - Item changes check {"order_id":7032,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["101|1|","396|4|","61|1|","5|1|"],"new_items_map_keys":["101|1|","396|4|","61|1|","5|1|"]} 
[2026-04-08 16:46:56] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7032,"order_number":"AZS-080426-016"} 
[2026-04-08 16:46:56] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7032,"order_number":"AZS-080426-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 16:46:56"} 
[2026-04-08 16:47:09] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":7053,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":33799},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null,"id":33800},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":33801},{"menu_item_id":61,"quantity":6,"price":199,"discount_percent":0,"notes":null,"id":33802},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33803},{"menu_item_id":5,"quantity":3,"price":170,"discount_percent":0,"notes":null,"id":33804},{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":33805},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33806},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null,"id":33807},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33808}],"validated_items":[{"id":33799,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":33800,"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null},{"id":33801,"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"id":33802,"menu_item_id":61,"quantity":6,"price":199,"discount_percent":0,"notes":null},{"id":33803,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33804,"menu_item_id":5,"quantity":3,"price":170,"discount_percent":0,"notes":null},{"id":33805,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":33806,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33807,"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null},{"id":33808,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:47:09] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7053,"items_count":10} 
[2026-04-08 16:47:09] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33799,"menu_item_id":106,"quantity":1},{"id":33800,"menu_item_id":396,"quantity":7},{"id":33801,"menu_item_id":50,"quantity":4},{"id":33802,"menu_item_id":61,"quantity":6},{"id":33803,"menu_item_id":56,"quantity":2},{"id":33804,"menu_item_id":5,"quantity":3},{"id":33805,"menu_item_id":114,"quantity":1},{"id":33806,"menu_item_id":113,"quantity":1},{"id":33807,"menu_item_id":3,"quantity":3},{"id":33808,"menu_item_id":6,"quantity":2}]} 
[2026-04-08 16:47:09] local.INFO: PosOrderController::update - Item changes check {"order_id":7053,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["106|1|","396|7|","50|4|","61|6|","56|2|","5|3|","114|1|","113|1|","3|3|","6|2|"],"new_items_map_keys":["106|1|","396|7|","50|4|","61|6|","56|2|","5|3|","114|1|","113|1|","3|3|","6|2|"]} 
[2026-04-08 16:47:09] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7053,"order_number":"AZS-080426-007"} 
[2026-04-08 16:47:09] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7053,"order_number":"AZS-080426-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 16:47:09"} 
[2026-04-08 16:49:11] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":7053,"order_number":"AZS-080426-007","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":13000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 16:49:11"} 
[2026-04-08 16:49:11] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":7053,"order_number":"AZS-080426-007","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":13000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 16:49:11"} 
[2026-04-08 16:49:11] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":7053,"order_number":"AZS-080426-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":13000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 16:49:11"} 
[2026-04-08 16:49:11] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":7053,"order_number":"AZS-080426-007","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":13000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 16:49:11"} 
[2026-04-08 16:49:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":10,"items_to_remove_count":0,"order_id":7053,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null,"id":33799},{"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null,"id":33800},{"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null,"id":33801},{"menu_item_id":61,"quantity":6,"price":199,"discount_percent":0,"notes":null,"id":33802},{"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33803},{"menu_item_id":5,"quantity":3,"price":170,"discount_percent":0,"notes":null,"id":33804},{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":33805},{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33806},{"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null,"id":33807},{"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33808}],"validated_items":[{"id":33799,"menu_item_id":106,"quantity":1,"price":4199,"discount_percent":0,"notes":null},{"id":33800,"menu_item_id":396,"quantity":7,"price":99,"discount_percent":0,"notes":null},{"id":33801,"menu_item_id":50,"quantity":4,"price":129,"discount_percent":0,"notes":null},{"id":33802,"menu_item_id":61,"quantity":6,"price":199,"discount_percent":0,"notes":null},{"id":33803,"menu_item_id":56,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33804,"menu_item_id":5,"quantity":3,"price":170,"discount_percent":0,"notes":null},{"id":33805,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":33806,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33807,"menu_item_id":3,"quantity":3,"price":270,"discount_percent":0,"notes":null},{"id":33808,"menu_item_id":6,"quantity":2,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:49:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7053,"items_count":10} 
[2026-04-08 16:49:11] local.INFO: PosOrderController::update - Processing items {"items_count":10,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33799,"menu_item_id":106,"quantity":1},{"id":33800,"menu_item_id":396,"quantity":7},{"id":33801,"menu_item_id":50,"quantity":4},{"id":33802,"menu_item_id":61,"quantity":6},{"id":33803,"menu_item_id":56,"quantity":2},{"id":33804,"menu_item_id":5,"quantity":3},{"id":33805,"menu_item_id":114,"quantity":1},{"id":33806,"menu_item_id":113,"quantity":1},{"id":33807,"menu_item_id":3,"quantity":3},{"id":33808,"menu_item_id":6,"quantity":2}]} 
[2026-04-08 16:49:11] local.INFO: PosOrderController::update - Item changes check {"order_id":7053,"has_item_changes":false,"old_items_count":10,"new_items_count":10,"old_items_map_keys":["106|1|","396|7|","50|4|","61|6|","56|2|","5|3|","114|1|","113|1|","3|3|","6|2|"],"new_items_map_keys":["106|1|","396|7|","50|4|","61|6|","56|2|","5|3|","114|1|","113|1|","3|3|","6|2|"]} 
[2026-04-08 16:49:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7053,"order_number":"AZS-080426-007"} 
[2026-04-08 16:49:11] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":7053,"order_number":"AZS-080426-007","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":13000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-08 16:49:11","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-08 16:49:11"} 
[2026-04-08 16:49:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7053,"order_number":"AZS-080426-007","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-08 16:49:11"} 
[2026-04-08 16:49:11] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":7053,"order_number":"AZS-080426-007","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"13000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-08 16:49:11","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":13000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"13000.00","database_verification_match":true,"timestamp":"2026-04-08 16:49:11"} 
[2026-04-08 16:50:11] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7032,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null,"id":33658},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":33659},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33660},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33661}],"validated_items":[{"id":33658,"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null},{"id":33659,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":33660,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33661,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:50:11] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7032,"items_count":4} 
[2026-04-08 16:50:11] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33658,"menu_item_id":101,"quantity":1},{"id":33659,"menu_item_id":396,"quantity":4},{"id":33660,"menu_item_id":61,"quantity":1},{"id":33661,"menu_item_id":5,"quantity":1}]} 
[2026-04-08 16:50:11] local.INFO: PosOrderController::update - Item changes check {"order_id":7032,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["101|1|","396|4|","61|1|","5|1|"],"new_items_map_keys":["101|1|","396|4|","61|1|","5|1|"]} 
[2026-04-08 16:50:11] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7032,"order_number":"AZS-080426-016"} 
[2026-04-08 16:50:11] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7032,"order_number":"AZS-080426-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 16:50:11"} 
[2026-04-08 16:51:24] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":7050,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null,"id":33776},{"menu_item_id":403,"quantity":2,"discount_percent":0,"notes":null,"id":33777},{"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null,"id":33778},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":33779},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null,"id":33780},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33781},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33782},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":33783}],"validated_items":[{"id":33776,"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null},{"id":33777,"menu_item_id":403,"quantity":2,"discount_percent":0,"notes":null},{"id":33778,"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null},{"id":33779,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":33780,"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null},{"id":33781,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33782,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33783,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:51:24] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7050,"items_count":8} 
[2026-04-08 16:51:24] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33776,"menu_item_id":13,"quantity":5},{"id":33777,"menu_item_id":403,"quantity":2},{"id":33778,"menu_item_id":9,"quantity":1},{"id":33779,"menu_item_id":105,"quantity":1},{"id":33780,"menu_item_id":51,"quantity":1},{"id":33781,"menu_item_id":56,"quantity":1},{"id":33782,"menu_item_id":5,"quantity":1},{"id":33783,"menu_item_id":2,"quantity":1}]} 
[2026-04-08 16:51:24] local.INFO: PosOrderController::update - Item changes check {"order_id":7050,"has_item_changes":true,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["13|2|","403|2|","9|1|","105|1|","51|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["13|5|","403|2|","9|1|","105|1|","51|1|","56|1|","5|1|","2|1|"]} 
[2026-04-08 16:51:24] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7050,"order_number":"AZS-080426-003"} 
[2026-04-08 16:51:24] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-003","replaced_order_id":7050} 
[2026-04-08 16:51:24] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7054,"items_count":8,"items":[{"menu_item_id":13,"quantity":5,"price":"249.00"},{"menu_item_id":403,"quantity":2,"price":"349.00"},{"menu_item_id":9,"quantity":1,"price":"229.00"},{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":51,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":2,"quantity":1,"price":"130.00"}]} 
[2026-04-08 16:51:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7054,"item_index":0,"item_data":{"menu_item_id":13,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Doodh Patti","quantity":5,"price":"249.00","discount_percent":0.0,"discount_amount":0.0,"total":1245.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7054}} 
[2026-04-08 16:51:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7054,"item_index":0,"menu_item_id":13} 
[2026-04-08 16:51:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7054,"item_index":1,"item_data":{"menu_item_id":403,"restaurant_category_id":11,"restaurant_category_name":"STARTER","item_name":"French Fries","quantity":2,"price":"349.00","discount_percent":0.0,"discount_amount":0.0,"total":698.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7054}} 
[2026-04-08 16:51:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7054,"item_index":1,"menu_item_id":403} 
[2026-04-08 16:51:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7054,"item_index":2,"item_data":{"menu_item_id":9,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Peshawari Qehwa","quantity":1,"price":"229.00","discount_percent":0.0,"discount_amount":0.0,"total":229.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7054}} 
[2026-04-08 16:51:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7054,"item_index":2,"menu_item_id":9} 
[2026-04-08 16:51:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7054,"item_index":3,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7054}} 
[2026-04-08 16:51:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7054,"item_index":3,"menu_item_id":105} 
[2026-04-08 16:51:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7054,"item_index":4,"item_data":{"menu_item_id":51,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Peshawari Roti","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7054}} 
[2026-04-08 16:51:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7054,"item_index":4,"menu_item_id":51} 
[2026-04-08 16:51:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7054,"item_index":5,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7054}} 
[2026-04-08 16:51:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7054,"item_index":5,"menu_item_id":56} 
[2026-04-08 16:51:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7054,"item_index":6,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7054}} 
[2026-04-08 16:51:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7054,"item_index":6,"menu_item_id":5} 
[2026-04-08 16:51:24] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7054,"item_index":7,"item_data":{"menu_item_id":2,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink Regular","quantity":1,"price":"130.00","discount_percent":0.0,"discount_amount":0.0,"total":130.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7054}} 
[2026-04-08 16:51:24] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7054,"item_index":7,"menu_item_id":2} 
[2026-04-08 16:51:24] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7050,"new_order_id":7054,"order_number":"AZS-080426-003"} 
[2026-04-08 16:52:39] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":7032,"order_number":"AZS-080426-016","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 16:52:39"} 
[2026-04-08 16:52:39] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":7032,"order_number":"AZS-080426-016","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 16:52:39"} 
[2026-04-08 16:52:39] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":7032,"order_number":"AZS-080426-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 16:52:39"} 
[2026-04-08 16:52:39] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":7032,"order_number":"AZS-080426-016","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 16:52:39"} 
[2026-04-08 16:52:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7032,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null,"id":33658},{"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null,"id":33659},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33660},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33661}],"validated_items":[{"id":33658,"menu_item_id":101,"quantity":1,"price":2399,"discount_percent":0,"notes":null},{"id":33659,"menu_item_id":396,"quantity":4,"price":99,"discount_percent":0,"notes":null},{"id":33660,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33661,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:52:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7032,"items_count":4} 
[2026-04-08 16:52:39] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33658,"menu_item_id":101,"quantity":1},{"id":33659,"menu_item_id":396,"quantity":4},{"id":33660,"menu_item_id":61,"quantity":1},{"id":33661,"menu_item_id":5,"quantity":1}]} 
[2026-04-08 16:52:39] local.INFO: PosOrderController::update - Item changes check {"order_id":7032,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["101|1|","396|4|","61|1|","5|1|"],"new_items_map_keys":["101|1|","396|4|","61|1|","5|1|"]} 
[2026-04-08 16:52:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7032,"order_number":"AZS-080426-016"} 
[2026-04-08 16:52:39] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":7032,"order_number":"AZS-080426-016","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":3200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-08 16:52:39","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-08 16:52:39"} 
[2026-04-08 16:52:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7032,"order_number":"AZS-080426-016","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-08 16:52:39"} 
[2026-04-08 16:52:39] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":7032,"order_number":"AZS-080426-016","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"3200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-08 16:52:39","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"3200.00","database_verification_match":true,"timestamp":"2026-04-08 16:52:39"} 
[2026-04-08 16:53:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T04:53:08.866Z","date_to":"2026-04-08T16:53:08.866Z","per_page":"100"} 
[2026-04-08 16:53:07] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T04:53:08.886Z","date_to":"2026-04-08T16:53:08.886Z","per_page":"100"} 
[2026-04-08 16:53:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-017","AZS-080426-016","AZS-080426-015","AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","pending"],"deleted_count":0,"paid_count":12,"unpaid_count":5,"unique_order_numbers":17} 
[2026-04-08 16:53:07] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-017","AZS-080426-016","AZS-080426-015","AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","pending"],"deleted_count":0,"paid_count":12,"unpaid_count":5,"unique_order_numbers":17} 
[2026-04-08 16:53:08] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T04:53:08.866Z","date_to":"2026-04-08T16:53:08.866Z","per_page":"100"} 
[2026-04-08 16:53:08] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-017","AZS-080426-016","AZS-080426-015","AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","pending"],"deleted_count":0,"paid_count":12,"unpaid_count":5,"unique_order_numbers":17} 
[2026-04-08 16:54:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":7052,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":33794},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33795},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33796},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":33797},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33798}],"validated_items":[{"id":33794,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":33795,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":33796,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33797,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":33798,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:54:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7052,"items_count":5} 
[2026-04-08 16:54:54] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33794,"menu_item_id":63,"quantity":1},{"id":33795,"menu_item_id":396,"quantity":1},{"id":33796,"menu_item_id":61,"quantity":1},{"id":33797,"menu_item_id":13,"quantity":1},{"id":33798,"menu_item_id":5,"quantity":1}]} 
[2026-04-08 16:54:54] local.INFO: PosOrderController::update - Item changes check {"order_id":7052,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["63|1|","396|1|","61|1|","13|1|","5|1|"],"new_items_map_keys":["63|1|","396|1|","61|1|","13|1|","5|1|"]} 
[2026-04-08 16:54:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7052,"order_number":"AZS-080426-014"} 
[2026-04-08 16:54:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7052,"order_number":"AZS-080426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 16:54:54"} 
[2026-04-08 16:54:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T04:55:01.202Z","date_to":"2026-04-08T16:55:01.202Z","per_page":"100"} 
[2026-04-08 16:54:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-017","AZS-080426-016","AZS-080426-015","AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","pending"],"deleted_count":0,"paid_count":12,"unpaid_count":5,"unique_order_numbers":17} 
[2026-04-08 16:54:59] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T04:55:01.213Z","date_to":"2026-04-08T16:55:01.213Z","per_page":"100"} 
[2026-04-08 16:54:59] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-017","AZS-080426-016","AZS-080426-015","AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","pending"],"deleted_count":0,"paid_count":12,"unpaid_count":5,"unique_order_numbers":17} 
[2026-04-08 16:55:00] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T04:55:01.202Z","date_to":"2026-04-08T16:55:01.202Z","per_page":"100"} 
[2026-04-08 16:55:00] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-017","AZS-080426-016","AZS-080426-015","AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","paid","pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","pending"],"deleted_count":0,"paid_count":12,"unpaid_count":5,"unique_order_numbers":17} 
[2026-04-08 16:55:31] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":7052,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":33794},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33795},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33796},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":33797},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33798}],"validated_items":[{"id":33794,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":33795,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":33796,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33797,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":33798,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:55:31] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7052,"items_count":5} 
[2026-04-08 16:55:31] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33794,"menu_item_id":63,"quantity":1},{"id":33795,"menu_item_id":396,"quantity":1},{"id":33796,"menu_item_id":61,"quantity":1},{"id":33797,"menu_item_id":13,"quantity":1},{"id":33798,"menu_item_id":5,"quantity":1}]} 
[2026-04-08 16:55:31] local.INFO: PosOrderController::update - Item changes check {"order_id":7052,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["63|1|","396|1|","61|1|","13|1|","5|1|"],"new_items_map_keys":["63|1|","396|1|","61|1|","13|1|","5|1|"]} 
[2026-04-08 16:55:31] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7052,"order_number":"AZS-080426-014"} 
[2026-04-08 16:55:31] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7052,"order_number":"AZS-080426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 16:55:31"} 
[2026-04-08 16:55:44] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":7052,"order_number":"AZS-080426-014","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 16:55:44"} 
[2026-04-08 16:55:44] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":7052,"order_number":"AZS-080426-014","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 16:55:44"} 
[2026-04-08 16:55:44] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":7052,"order_number":"AZS-080426-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 16:55:44"} 
[2026-04-08 16:55:44] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":7052,"order_number":"AZS-080426-014","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 16:55:44"} 
[2026-04-08 16:55:44] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":7052,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null,"id":33794},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33795},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33796},{"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null,"id":33797},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33798}],"validated_items":[{"id":33794,"menu_item_id":63,"quantity":1,"price":1099,"discount_percent":0,"notes":null},{"id":33795,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":33796,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33797,"menu_item_id":13,"quantity":1,"price":249,"discount_percent":0,"notes":null},{"id":33798,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:55:44] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7052,"items_count":5} 
[2026-04-08 16:55:44] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33794,"menu_item_id":63,"quantity":1},{"id":33795,"menu_item_id":396,"quantity":1},{"id":33796,"menu_item_id":61,"quantity":1},{"id":33797,"menu_item_id":13,"quantity":1},{"id":33798,"menu_item_id":5,"quantity":1}]} 
[2026-04-08 16:55:44] local.INFO: PosOrderController::update - Item changes check {"order_id":7052,"has_item_changes":false,"old_items_count":5,"new_items_count":5,"old_items_map_keys":["63|1|","396|1|","61|1|","13|1|","5|1|"],"new_items_map_keys":["63|1|","396|1|","61|1|","13|1|","5|1|"]} 
[2026-04-08 16:55:44] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7052,"order_number":"AZS-080426-014"} 
[2026-04-08 16:55:44] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":7052,"order_number":"AZS-080426-014","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-08 16:55:44","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-08 16:55:44"} 
[2026-04-08 16:55:44] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7052,"order_number":"AZS-080426-014","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-08 16:55:44"} 
[2026-04-08 16:55:44] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":7052,"order_number":"AZS-080426-014","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-08 16:55:44","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2000.00","database_verification_match":true,"timestamp":"2026-04-08 16:55:44"} 
[2026-04-08 16:56:51] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":7008,"order_number":"AZS-080426-001","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 16:56:51"} 
[2026-04-08 16:56:51] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":7008,"order_number":"AZS-080426-001","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 16:56:51"} 
[2026-04-08 16:56:51] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":7008,"order_number":"AZS-080426-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 16:56:51"} 
[2026-04-08 16:56:51] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":7008,"order_number":"AZS-080426-001","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 16:56:51"} 
[2026-04-08 16:56:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":7008,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33563}],"validated_items":[{"id":33563,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-08 16:56:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7008,"items_count":1} 
[2026-04-08 16:56:51] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33563,"menu_item_id":6,"quantity":1}]} 
[2026-04-08 16:56:51] local.INFO: PosOrderController::update - Item changes check {"order_id":7008,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-04-08 16:56:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7008,"order_number":"AZS-080426-001"} 
[2026-04-08 16:56:51] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":7008,"order_number":"AZS-080426-001","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-08 16:56:51","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-08 16:56:51"} 
[2026-04-08 16:56:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7008,"order_number":"AZS-080426-001","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-08 16:56:51"} 
[2026-04-08 16:56:51] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":7008,"order_number":"AZS-080426-001","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-08 16:56:51","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"200.00","database_verification_match":true,"timestamp":"2026-04-08 16:56:51"} 
[2026-04-08 17:03:36] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7040,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":33700},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":33701},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":33702},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33703}],"validated_items":[{"id":33700,"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":33701,"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":33702,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":33703,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null}]} 
[2026-04-08 17:03:36] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7040,"items_count":4} 
[2026-04-08 17:03:36] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33700,"menu_item_id":138,"quantity":1},{"id":33701,"menu_item_id":83,"quantity":1},{"id":33702,"menu_item_id":3,"quantity":1},{"id":33703,"menu_item_id":137,"quantity":1}]} 
[2026-04-08 17:03:36] local.INFO: PosOrderController::update - Item changes check {"order_id":7040,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["138|1|","83|1|","3|1|","137|1|"],"new_items_map_keys":["138|1|","83|1|","3|1|","137|1|"]} 
[2026-04-08 17:03:36] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7040,"order_number":"AZS-080426-015"} 
[2026-04-08 17:03:36] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7040,"order_number":"AZS-080426-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 17:03:36"} 
[2026-04-08 17:11:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T05:11:11.396Z","date_to":"2026-04-08T17:11:11.396Z","per_page":"100"} 
[2026-04-08 17:11:10] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T05:11:11.383Z","date_to":"2026-04-08T17:11:11.383Z","per_page":"100"} 
[2026-04-08 17:11:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-017","AZS-080426-016","AZS-080426-015","AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":3,"unique_order_numbers":17} 
[2026-04-08 17:11:10] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-017","AZS-080426-016","AZS-080426-015","AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":3,"unique_order_numbers":17} 
[2026-04-08 17:11:11] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T05:11:11.383Z","date_to":"2026-04-08T17:11:11.383Z","per_page":"100"} 
[2026-04-08 17:11:11] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":17,"count":17,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-017","AZS-080426-016","AZS-080426-015","AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","paid","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","pending","paid","paid"],"deleted_count":0,"paid_count":14,"unpaid_count":3,"unique_order_numbers":17} 
[2026-04-08 17:11:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7040,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":33700},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":33701},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":33702},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33703}],"validated_items":[{"id":33700,"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":33701,"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":33702,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":33703,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null}]} 
[2026-04-08 17:11:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7040,"items_count":4} 
[2026-04-08 17:11:50] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33700,"menu_item_id":138,"quantity":1},{"id":33701,"menu_item_id":83,"quantity":1},{"id":33702,"menu_item_id":3,"quantity":1},{"id":33703,"menu_item_id":137,"quantity":1}]} 
[2026-04-08 17:11:50] local.INFO: PosOrderController::update - Item changes check {"order_id":7040,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["138|1|","83|1|","3|1|","137|1|"],"new_items_map_keys":["138|1|","83|1|","3|1|","137|1|"]} 
[2026-04-08 17:11:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7040,"order_number":"AZS-080426-015"} 
[2026-04-08 17:11:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7040,"order_number":"AZS-080426-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 17:11:50"} 
[2026-04-08 17:12:02] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":7040,"order_number":"AZS-080426-015","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5000,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 17:12:02"} 
[2026-04-08 17:12:02] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":7040,"order_number":"AZS-080426-015","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5000,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 17:12:02"} 
[2026-04-08 17:12:02] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":7040,"order_number":"AZS-080426-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 17:12:02"} 
[2026-04-08 17:12:02] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":7040,"order_number":"AZS-080426-015","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5000,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 17:12:02"} 
[2026-04-08 17:12:02] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7040,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":33700},{"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null,"id":33701},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":33702},{"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null,"id":33703}],"validated_items":[{"id":33700,"menu_item_id":138,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":33701,"menu_item_id":83,"quantity":1,"price":649,"discount_percent":0,"notes":null},{"id":33702,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null},{"id":33703,"menu_item_id":137,"quantity":1,"price":1299,"discount_percent":0,"notes":null}]} 
[2026-04-08 17:12:02] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7040,"items_count":4} 
[2026-04-08 17:12:02] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33700,"menu_item_id":138,"quantity":1},{"id":33701,"menu_item_id":83,"quantity":1},{"id":33702,"menu_item_id":3,"quantity":1},{"id":33703,"menu_item_id":137,"quantity":1}]} 
[2026-04-08 17:12:02] local.INFO: PosOrderController::update - Item changes check {"order_id":7040,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["138|1|","83|1|","3|1|","137|1|"],"new_items_map_keys":["138|1|","83|1|","3|1|","137|1|"]} 
[2026-04-08 17:12:02] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7040,"order_number":"AZS-080426-015"} 
[2026-04-08 17:12:02] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":7040,"order_number":"AZS-080426-015","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5000,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-08 17:12:02","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-08 17:12:02"} 
[2026-04-08 17:12:02] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7040,"order_number":"AZS-080426-015","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-08 17:12:02"} 
[2026-04-08 17:12:02] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":7040,"order_number":"AZS-080426-015","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5000.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-08 17:12:02","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5000,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5000.00","database_verification_match":true,"timestamp":"2026-04-08 17:12:02"} 
[2026-04-08 17:12:14] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":7054,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":33809},{"menu_item_id":403,"quantity":2,"price":349,"discount_percent":0,"notes":null,"id":33810},{"menu_item_id":9,"quantity":1,"price":229,"discount_percent":0,"notes":null,"id":33811},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":33812},{"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33813},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33814},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33815},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":33816}],"validated_items":[{"id":33809,"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null},{"id":33810,"menu_item_id":403,"quantity":2,"price":349,"discount_percent":0,"notes":null},{"id":33811,"menu_item_id":9,"quantity":1,"price":229,"discount_percent":0,"notes":null},{"id":33812,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":33813,"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33814,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33815,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33816,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-08 17:12:14] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7054,"items_count":8} 
[2026-04-08 17:12:14] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33809,"menu_item_id":13,"quantity":5},{"id":33810,"menu_item_id":403,"quantity":2},{"id":33811,"menu_item_id":9,"quantity":1},{"id":33812,"menu_item_id":105,"quantity":1},{"id":33813,"menu_item_id":51,"quantity":1},{"id":33814,"menu_item_id":56,"quantity":1},{"id":33815,"menu_item_id":5,"quantity":1},{"id":33816,"menu_item_id":2,"quantity":1}]} 
[2026-04-08 17:12:14] local.INFO: PosOrderController::update - Item changes check {"order_id":7054,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["13|5|","403|2|","9|1|","105|1|","51|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["13|5|","403|2|","9|1|","105|1|","51|1|","56|1|","5|1|","2|1|"]} 
[2026-04-08 17:12:14] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7054,"order_number":"AZS-080426-003"} 
[2026-04-08 17:12:14] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7054,"order_number":"AZS-080426-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill"],"timestamp":"2026-04-08 17:12:14"} 
[2026-04-08 17:13:50] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":7054,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null,"id":33809},{"menu_item_id":403,"quantity":2,"discount_percent":0,"notes":null,"id":33810},{"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null,"id":33811},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":33812},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null,"id":33813},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33814},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33815},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":33816}],"validated_items":[{"id":33809,"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null},{"id":33810,"menu_item_id":403,"quantity":2,"discount_percent":0,"notes":null},{"id":33811,"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null},{"id":33812,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":33813,"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null},{"id":33814,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33815,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33816,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 17:13:50] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7054,"items_count":8} 
[2026-04-08 17:13:50] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33809,"menu_item_id":13,"quantity":5},{"id":33810,"menu_item_id":403,"quantity":2},{"id":33811,"menu_item_id":9,"quantity":1},{"id":33812,"menu_item_id":105,"quantity":1},{"id":33813,"menu_item_id":51,"quantity":1},{"id":33814,"menu_item_id":56,"quantity":1},{"id":33815,"menu_item_id":5,"quantity":1},{"id":33816,"menu_item_id":2,"quantity":1}]} 
[2026-04-08 17:13:50] local.INFO: PosOrderController::update - Item changes check {"order_id":7054,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["13|5|","403|2|","9|1|","105|1|","51|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["13|5|","403|2|","9|1|","105|1|","51|1|","56|1|","5|1|","2|1|"]} 
[2026-04-08 17:13:50] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7054,"order_number":"AZS-080426-003"} 
[2026-04-08 17:13:50] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7054,"order_number":"AZS-080426-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-04-08 17:13:50"} 
[2026-04-08 17:13:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":7054,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null,"id":33809},{"menu_item_id":403,"quantity":2,"discount_percent":0,"notes":null,"id":33810},{"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null,"id":33811},{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":33812},{"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null,"id":33813},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33814},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33815},{"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null,"id":33816}],"validated_items":[{"id":33809,"menu_item_id":13,"quantity":5,"discount_percent":0,"notes":null},{"id":33810,"menu_item_id":403,"quantity":2,"discount_percent":0,"notes":null},{"id":33811,"menu_item_id":9,"quantity":1,"discount_percent":0,"notes":null},{"id":33812,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":33813,"menu_item_id":51,"quantity":1,"discount_percent":0,"notes":null},{"id":33814,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33815,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"id":33816,"menu_item_id":2,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 17:13:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7054,"items_count":8} 
[2026-04-08 17:13:51] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33809,"menu_item_id":13,"quantity":5},{"id":33810,"menu_item_id":403,"quantity":2},{"id":33811,"menu_item_id":9,"quantity":1},{"id":33812,"menu_item_id":105,"quantity":1},{"id":33813,"menu_item_id":51,"quantity":1},{"id":33814,"menu_item_id":56,"quantity":1},{"id":33815,"menu_item_id":5,"quantity":1},{"id":33816,"menu_item_id":2,"quantity":1}]} 
[2026-04-08 17:13:51] local.INFO: PosOrderController::update - Item changes check {"order_id":7054,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["13|5|","403|2|","9|1|","105|1|","51|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["13|5|","403|2|","9|1|","105|1|","51|1|","56|1|","5|1|","2|1|"]} 
[2026-04-08 17:13:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7054,"order_number":"AZS-080426-003"} 
[2026-04-08 17:13:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7054,"order_number":"AZS-080426-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill"],"timestamp":"2026-04-08 17:13:51"} 
[2026-04-08 17:17:32] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":7047,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":33753},{"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null,"id":33754},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33755},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33756},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33757},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33753,"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"id":33754,"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null},{"id":33755,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":33756,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33757,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 17:17:32] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7047,"items_count":6} 
[2026-04-08 17:17:32] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33753,"menu_item_id":114,"quantity":1},{"id":33754,"menu_item_id":48,"quantity":2},{"id":33755,"menu_item_id":61,"quantity":1},{"id":33756,"menu_item_id":56,"quantity":1},{"id":33757,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1}]} 
[2026-04-08 17:17:32] local.INFO: PosOrderController::update - Item changes check {"order_id":7047,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["114|1|","48|2|","61|1|","56|1|","5|1|"],"new_items_map_keys":["114|1|","48|2|","61|1|","56|1|","5|1|","396|1|"]} 
[2026-04-08 17:17:32] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7047,"order_number":"AZS-080426-017"} 
[2026-04-08 17:17:32] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-017","replaced_order_id":7047} 
[2026-04-08 17:17:32] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7055,"items_count":6,"items":[{"menu_item_id":114,"quantity":1,"price":"2299.00"},{"menu_item_id":48,"quantity":2,"price":"250.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"}]} 
[2026-04-08 17:17:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7055,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":"2299.00","discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7055}} 
[2026-04-08 17:17:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7055,"item_index":0,"menu_item_id":114} 
[2026-04-08 17:17:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7055,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":2,"price":"250.00","discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7055}} 
[2026-04-08 17:17:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7055,"item_index":1,"menu_item_id":48} 
[2026-04-08 17:17:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7055,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7055}} 
[2026-04-08 17:17:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7055,"item_index":2,"menu_item_id":61} 
[2026-04-08 17:17:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7055,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7055}} 
[2026-04-08 17:17:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7055,"item_index":3,"menu_item_id":56} 
[2026-04-08 17:17:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7055,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7055}} 
[2026-04-08 17:17:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7055,"item_index":4,"menu_item_id":5} 
[2026-04-08 17:17:32] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7055,"item_index":5,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7055}} 
[2026-04-08 17:17:32] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7055,"item_index":5,"menu_item_id":396} 
[2026-04-08 17:17:32] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7047,"new_order_id":7055,"order_number":"AZS-080426-017"} 
[2026-04-08 17:17:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7055,"item_index":0,"item_id":33753} 
[2026-04-08 17:17:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7055,"item_index":1,"item_id":33754} 
[2026-04-08 17:17:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7055,"item_index":2,"item_id":33755} 
[2026-04-08 17:17:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7055,"item_index":3,"item_id":33756} 
[2026-04-08 17:17:38] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7055,"item_index":4,"item_id":33757} 
[2026-04-08 17:17:38] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":6,"order_id":7055,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null,"id":33753},{"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null,"id":33754},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33755},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33756},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33757},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":114,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":48,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 17:17:38] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7055,"items_count":6} 
[2026-04-08 17:17:38] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":6,"items_to_remove":[33817,33818,33819,33820,33821,33822],"items":[{"id":null,"menu_item_id":114,"quantity":1},{"id":null,"menu_item_id":48,"quantity":2},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":396,"quantity":1}]} 
[2026-04-08 17:17:38] local.INFO: PosOrderController::update - Item changes check {"order_id":7055,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","48|2|","61|1|","56|1|","5|1|","396|1|"],"new_items_map_keys":["114|1|","48|2|","61|1|","56|1|","5|1|","396|1|"]} 
[2026-04-08 17:17:38] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7055,"order_number":"AZS-080426-017"} 
[2026-04-08 17:17:38] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7055,"order_number":"AZS-080426-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-08 17:17:38"} 
[2026-04-08 17:18:39] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":7054,"order_number":"AZS-080426-003","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":5069,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 17:18:39"} 
[2026-04-08 17:18:39] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":7054,"order_number":"AZS-080426-003","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":5069,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 17:18:39"} 
[2026-04-08 17:18:39] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":7054,"order_number":"AZS-080426-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5069,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 17:18:39"} 
[2026-04-08 17:18:39] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":7054,"order_number":"AZS-080426-003","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":5069,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 17:18:39"} 
[2026-04-08 17:18:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":8,"items_to_remove_count":0,"order_id":7054,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null,"id":33809},{"menu_item_id":403,"quantity":2,"price":349,"discount_percent":0,"notes":null,"id":33810},{"menu_item_id":9,"quantity":1,"price":229,"discount_percent":0,"notes":null,"id":33811},{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":33812},{"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33813},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33814},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33815},{"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null,"id":33816}],"validated_items":[{"id":33809,"menu_item_id":13,"quantity":5,"price":249,"discount_percent":0,"notes":null},{"id":33810,"menu_item_id":403,"quantity":2,"price":349,"discount_percent":0,"notes":null},{"id":33811,"menu_item_id":9,"quantity":1,"price":229,"discount_percent":0,"notes":null},{"id":33812,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":33813,"menu_item_id":51,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33814,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33815,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33816,"menu_item_id":2,"quantity":1,"price":130,"discount_percent":0,"notes":null}]} 
[2026-04-08 17:18:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7054,"items_count":8} 
[2026-04-08 17:18:39] local.INFO: PosOrderController::update - Processing items {"items_count":8,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33809,"menu_item_id":13,"quantity":5},{"id":33810,"menu_item_id":403,"quantity":2},{"id":33811,"menu_item_id":9,"quantity":1},{"id":33812,"menu_item_id":105,"quantity":1},{"id":33813,"menu_item_id":51,"quantity":1},{"id":33814,"menu_item_id":56,"quantity":1},{"id":33815,"menu_item_id":5,"quantity":1},{"id":33816,"menu_item_id":2,"quantity":1}]} 
[2026-04-08 17:18:39] local.INFO: PosOrderController::update - Item changes check {"order_id":7054,"has_item_changes":false,"old_items_count":8,"new_items_count":8,"old_items_map_keys":["13|5|","403|2|","9|1|","105|1|","51|1|","56|1|","5|1|","2|1|"],"new_items_map_keys":["13|5|","403|2|","9|1|","105|1|","51|1|","56|1|","5|1|","2|1|"]} 
[2026-04-08 17:18:39] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7054,"order_number":"AZS-080426-003"} 
[2026-04-08 17:18:39] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":7054,"order_number":"AZS-080426-003","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":5069,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-08 17:18:39","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-08 17:18:39"} 
[2026-04-08 17:18:39] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7054,"order_number":"AZS-080426-003","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-08 17:18:39"} 
[2026-04-08 17:18:39] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":7054,"order_number":"AZS-080426-003","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"5069.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-08 17:18:39","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":5069,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"5069.00","database_verification_match":true,"timestamp":"2026-04-08 17:18:39"} 
[2026-04-08 17:25:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":7055,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":33817},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":33818},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33819},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33820},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33821},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33822}],"validated_items":[{"id":33817,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":33818,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":33819,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33820,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33821,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33822,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-04-08 17:25:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7055,"items_count":6} 
[2026-04-08 17:25:51] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33817,"menu_item_id":114,"quantity":1},{"id":33818,"menu_item_id":48,"quantity":2},{"id":33819,"menu_item_id":61,"quantity":1},{"id":33820,"menu_item_id":56,"quantity":1},{"id":33821,"menu_item_id":5,"quantity":1},{"id":33822,"menu_item_id":396,"quantity":1}]} 
[2026-04-08 17:25:51] local.INFO: PosOrderController::update - Item changes check {"order_id":7055,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","48|2|","61|1|","56|1|","5|1|","396|1|"],"new_items_map_keys":["114|1|","48|2|","61|1|","56|1|","5|1|","396|1|"]} 
[2026-04-08 17:25:51] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7055,"order_number":"AZS-080426-017"} 
[2026-04-08 17:25:51] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7055,"order_number":"AZS-080426-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 17:25:51"} 
[2026-04-08 17:28:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":7055,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":33817},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":33818},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33819},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33820},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33821},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33822}],"validated_items":[{"id":33817,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":33818,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":33819,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33820,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33821,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33822,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-04-08 17:28:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7055,"items_count":6} 
[2026-04-08 17:28:37] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33817,"menu_item_id":114,"quantity":1},{"id":33818,"menu_item_id":48,"quantity":2},{"id":33819,"menu_item_id":61,"quantity":1},{"id":33820,"menu_item_id":56,"quantity":1},{"id":33821,"menu_item_id":5,"quantity":1},{"id":33822,"menu_item_id":396,"quantity":1}]} 
[2026-04-08 17:28:37] local.INFO: PosOrderController::update - Item changes check {"order_id":7055,"has_item_changes":false,"old_items_count":6,"new_items_count":6,"old_items_map_keys":["114|1|","48|2|","61|1|","56|1|","5|1|","396|1|"],"new_items_map_keys":["114|1|","48|2|","61|1|","56|1|","5|1|","396|1|"]} 
[2026-04-08 17:28:37] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7055,"order_number":"AZS-080426-017"} 
[2026-04-08 17:28:37] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7055,"order_number":"AZS-080426-017","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 17:28:37"} 
[2026-04-08 17:36:39] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":7055,"order_number":"AZS-080426-017","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 17:36:39"} 
[2026-04-08 17:36:39] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":7055,"order_number":"AZS-080426-017","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 17:36:39"} 
[2026-04-08 17:36:39] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":7055,"order_number":"AZS-080426-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 17:36:39"} 
[2026-04-08 17:36:39] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":7055,"order_number":"AZS-080426-017","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 17:36:39"} 
[2026-04-08 17:36:39] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":1,"order_id":7055,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null,"id":33817},{"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null,"id":33818},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33820},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33821},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33822}],"validated_items":[{"id":33817,"menu_item_id":114,"quantity":1,"price":2299,"discount_percent":0,"notes":null},{"id":33818,"menu_item_id":48,"quantity":2,"price":250,"discount_percent":0,"notes":null},{"id":33820,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33821,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33822,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null}]} 
[2026-04-08 17:36:39] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7055,"items_count":5} 
[2026-04-08 17:36:39] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":1,"items_to_remove":[33819],"items":[{"id":33817,"menu_item_id":114,"quantity":1},{"id":33818,"menu_item_id":48,"quantity":2},{"id":33820,"menu_item_id":56,"quantity":1},{"id":33821,"menu_item_id":5,"quantity":1},{"id":33822,"menu_item_id":396,"quantity":1}]} 
[2026-04-08 17:36:39] local.INFO: PosOrderController::update - Item changes check {"order_id":7055,"has_item_changes":true,"old_items_count":6,"new_items_count":5,"old_items_map_keys":["114|1|","48|2|","61|1|","56|1|","5|1|","396|1|"],"new_items_map_keys":["114|1|","48|2|","56|1|","5|1|","396|1|"]} 
[2026-04-08 17:36:39] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":7055,"order_number":"AZS-080426-017","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3500,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-08 17:36:39","original_payment_amount":"0.00","grand_total":3267.0,"timestamp":"2026-04-08 17:36:39"} 
[2026-04-08 17:36:39] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7055,"order_number":"AZS-080426-017"} 
[2026-04-08 17:36:39] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-017","replaced_order_id":7055} 
[2026-04-08 17:36:39] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":7055,"new_order_id":7057,"order_number":"AZS-080426-017","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3500.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-08 17:36:39","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-08 17:36:39"} 
[2026-04-08 17:36:39] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7057,"items_count":5,"items":[{"menu_item_id":114,"quantity":1,"price":2299.0},{"menu_item_id":48,"quantity":2,"price":250.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":396,"quantity":1,"price":99.0}]} 
[2026-04-08 17:36:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7057,"item_index":0,"item_data":{"menu_item_id":114,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Full","quantity":1,"price":2299.0,"discount_percent":0.0,"discount_amount":0.0,"total":2299.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7057}} 
[2026-04-08 17:36:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7057,"item_index":0,"menu_item_id":114} 
[2026-04-08 17:36:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7057,"item_index":1,"item_data":{"menu_item_id":48,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Qandhari Naan","quantity":2,"price":250.0,"discount_percent":0.0,"discount_amount":0.0,"total":500.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7057}} 
[2026-04-08 17:36:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7057,"item_index":1,"menu_item_id":48} 
[2026-04-08 17:36:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7057,"item_index":2,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7057}} 
[2026-04-08 17:36:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7057,"item_index":2,"menu_item_id":56} 
[2026-04-08 17:36:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7057,"item_index":3,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7057}} 
[2026-04-08 17:36:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7057,"item_index":3,"menu_item_id":5} 
[2026-04-08 17:36:39] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7057,"item_index":4,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7057}} 
[2026-04-08 17:36:39] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7057,"item_index":4,"menu_item_id":396} 
[2026-04-08 17:36:39] local.ERROR: Error tracking recipe usage for order 7057: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (7057, 114, 77, 1, 100, 0.00, Order #AZS-080426-017 - 1x Chicken Shinwari - Full, 2026-04-08 17:36:39, 2026-04-08 17:36:39))  
[2026-04-08 17:36:39] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7055,"new_order_id":7057,"order_number":"AZS-080426-017"} 
[2026-04-08 17:36:40] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":7055,"new_order_id":7057,"order_number":"AZS-080426-017","route":"api/orders/7055"} 
[2026-04-08 18:00:37] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":3,"items_to_remove_count":0,"order_id":7056,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":33823},{"menu_item_id":286,"quantity":4,"discount_percent":0,"notes":null,"id":33824},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33823,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":33824,"menu_item_id":286,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 18:00:37] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7056,"items_count":3} 
[2026-04-08 18:00:37] local.INFO: PosOrderController::update - Processing items {"items_count":3,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33823,"menu_item_id":113,"quantity":1},{"id":33824,"menu_item_id":286,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1}]} 
[2026-04-08 18:00:37] local.INFO: PosOrderController::update - Item changes check {"order_id":7056,"has_item_changes":true,"old_items_count":2,"new_items_count":3,"old_items_map_keys":["113|1|","286|4|"],"new_items_map_keys":["113|1|","286|4|","61|1|"]} 
[2026-04-08 18:00:37] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7056,"order_number":"AZS-080426-018"} 
[2026-04-08 18:00:37] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-018","replaced_order_id":7056} 
[2026-04-08 18:00:37] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7058,"items_count":3,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":286,"quantity":4,"price":"15.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"}]} 
[2026-04-08 18:00:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7058,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7058}} 
[2026-04-08 18:00:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7058,"item_index":0,"menu_item_id":113} 
[2026-04-08 18:00:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7058,"item_index":1,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":4,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":60.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7058}} 
[2026-04-08 18:00:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7058,"item_index":1,"menu_item_id":286} 
[2026-04-08 18:00:37] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7058,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7058}} 
[2026-04-08 18:00:37] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7058,"item_index":2,"menu_item_id":61} 
[2026-04-08 18:00:37] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7056,"new_order_id":7058,"order_number":"AZS-080426-018"} 
[2026-04-08 18:01:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7058,"item_index":0,"item_id":33823} 
[2026-04-08 18:01:18] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7058,"item_index":1,"item_id":33824} 
[2026-04-08 18:01:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":3,"order_id":7058,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":33823},{"menu_item_id":286,"quantity":4,"discount_percent":0,"notes":null,"id":33824},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 18:01:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7058,"items_count":4} 
[2026-04-08 18:01:18] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":3,"items_to_remove":[33830,33831,33832],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":286,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-04-08 18:01:18] local.INFO: PosOrderController::update - Item changes check {"order_id":7058,"has_item_changes":true,"old_items_count":3,"new_items_count":4,"old_items_map_keys":["113|1|","286|4|","61|1|"],"new_items_map_keys":["113|1|","286|4|","61|1|","56|1|"]} 
[2026-04-08 18:01:18] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7058,"order_number":"AZS-080426-018"} 
[2026-04-08 18:01:18] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-018","replaced_order_id":7058} 
[2026-04-08 18:01:18] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7059,"items_count":4,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":286,"quantity":4,"price":"15.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"}]} 
[2026-04-08 18:01:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7059,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7059}} 
[2026-04-08 18:01:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7059,"item_index":0,"menu_item_id":113} 
[2026-04-08 18:01:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7059,"item_index":1,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":4,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":60.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7059}} 
[2026-04-08 18:01:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7059,"item_index":1,"menu_item_id":286} 
[2026-04-08 18:01:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7059,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7059}} 
[2026-04-08 18:01:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7059,"item_index":2,"menu_item_id":61} 
[2026-04-08 18:01:18] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7059,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7059}} 
[2026-04-08 18:01:18] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7059,"item_index":3,"menu_item_id":56} 
[2026-04-08 18:01:18] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7058,"new_order_id":7059,"order_number":"AZS-080426-018"} 
[2026-04-08 18:01:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7059,"item_index":0,"item_id":33823} 
[2026-04-08 18:01:26] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7059,"item_index":1,"item_id":33824} 
[2026-04-08 18:01:26] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":7059,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":33823},{"menu_item_id":286,"quantity":4,"discount_percent":0,"notes":null,"id":33824},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":4,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 18:01:26] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7059,"items_count":4} 
[2026-04-08 18:01:26] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[33833,33834,33835,33836],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":286,"quantity":4},{"id":null,"menu_item_id":61,"quantity":1},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-04-08 18:01:26] local.INFO: PosOrderController::update - Item changes check {"order_id":7059,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","286|4|","61|1|","56|1|"],"new_items_map_keys":["113|1|","286|4|","61|1|","56|1|"]} 
[2026-04-08 18:01:26] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7059,"order_number":"AZS-080426-018"} 
[2026-04-08 18:01:26] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7059,"order_number":"AZS-080426-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill"],"timestamp":"2026-04-08 18:01:26"} 
[2026-04-08 18:02:53] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":5,"items_to_remove_count":0,"order_id":7059,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":33833},{"menu_item_id":286,"quantity":4,"discount_percent":0,"notes":null,"id":33834},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33835},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33836},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33833,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":33834,"menu_item_id":286,"quantity":4,"discount_percent":0,"notes":null},{"id":33835,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":33836,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 18:02:53] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7059,"items_count":5} 
[2026-04-08 18:02:53] local.INFO: PosOrderController::update - Processing items {"items_count":5,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33833,"menu_item_id":113,"quantity":1},{"id":33834,"menu_item_id":286,"quantity":4},{"id":33835,"menu_item_id":61,"quantity":1},{"id":33836,"menu_item_id":56,"quantity":1},{"id":null,"menu_item_id":5,"quantity":1}]} 
[2026-04-08 18:02:53] local.INFO: PosOrderController::update - Item changes check {"order_id":7059,"has_item_changes":true,"old_items_count":4,"new_items_count":5,"old_items_map_keys":["113|1|","286|4|","61|1|","56|1|"],"new_items_map_keys":["113|1|","286|4|","61|1|","56|1|","5|1|"]} 
[2026-04-08 18:02:53] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7059,"order_number":"AZS-080426-018"} 
[2026-04-08 18:02:53] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-018","replaced_order_id":7059} 
[2026-04-08 18:02:53] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7061,"items_count":5,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":286,"quantity":4,"price":"15.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"}]} 
[2026-04-08 18:02:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7061,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7061}} 
[2026-04-08 18:02:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7061,"item_index":0,"menu_item_id":113} 
[2026-04-08 18:02:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7061,"item_index":1,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":4,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":60.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7061}} 
[2026-04-08 18:02:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7061,"item_index":1,"menu_item_id":286} 
[2026-04-08 18:02:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7061,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7061}} 
[2026-04-08 18:02:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7061,"item_index":2,"menu_item_id":61} 
[2026-04-08 18:02:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7061,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7061}} 
[2026-04-08 18:02:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7061,"item_index":3,"menu_item_id":56} 
[2026-04-08 18:02:53] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7061,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7061}} 
[2026-04-08 18:02:53] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7061,"item_index":4,"menu_item_id":5} 
[2026-04-08 18:02:53] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7059,"new_order_id":7061,"order_number":"AZS-080426-018"} 
[2026-04-08 18:24:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7060,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null,"id":33837},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33838},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33837,"menu_item_id":112,"quantity":1,"discount_percent":0,"notes":null},{"id":33838,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":61,"quantity":2,"discount_percent":0,"notes":null},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 18:24:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7060,"items_count":4} 
[2026-04-08 18:24:54] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33837,"menu_item_id":112,"quantity":1},{"id":33838,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":61,"quantity":2},{"id":null,"menu_item_id":56,"quantity":1}]} 
[2026-04-08 18:24:54] local.INFO: PosOrderController::update - Item changes check {"order_id":7060,"has_item_changes":true,"old_items_count":2,"new_items_count":4,"old_items_map_keys":["112|1|","5|1|"],"new_items_map_keys":["112|1|","5|1|","61|2|","56|1|"]} 
[2026-04-08 18:24:54] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7060,"order_number":"AZS-080426-019"} 
[2026-04-08 18:24:54] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-019","replaced_order_id":7060} 
[2026-04-08 18:24:54] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7062,"items_count":4,"items":[{"menu_item_id":112,"quantity":1,"price":"1699.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":61,"quantity":2,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"}]} 
[2026-04-08 18:24:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7062,"item_index":0,"item_data":{"menu_item_id":112,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Kabli Pulao","quantity":1,"price":"1699.00","discount_percent":0.0,"discount_amount":0.0,"total":1699.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7062}} 
[2026-04-08 18:24:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7062,"item_index":0,"menu_item_id":112} 
[2026-04-08 18:24:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7062,"item_index":1,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7062}} 
[2026-04-08 18:24:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7062,"item_index":1,"menu_item_id":5} 
[2026-04-08 18:24:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7062,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":2,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":398.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7062}} 
[2026-04-08 18:24:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7062,"item_index":2,"menu_item_id":61} 
[2026-04-08 18:24:54] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7062,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7062}} 
[2026-04-08 18:24:54] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7062,"item_index":3,"menu_item_id":56} 
[2026-04-08 18:24:54] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7060,"new_order_id":7062,"order_number":"AZS-080426-019"} 
[2026-04-08 18:27:51] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":0,"order_id":7061,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null,"id":33839},{"menu_item_id":286,"quantity":4,"discount_percent":0,"notes":null,"id":33840},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33841},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33842},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33843},{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null}],"validated_items":[{"id":33839,"menu_item_id":113,"quantity":1,"discount_percent":0,"notes":null},{"id":33840,"menu_item_id":286,"quantity":4,"discount_percent":0,"notes":null},{"id":33841,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":33842,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33843,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":3,"discount_percent":0,"notes":null}]} 
[2026-04-08 18:27:51] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7061,"items_count":6} 
[2026-04-08 18:27:51] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33839,"menu_item_id":113,"quantity":1},{"id":33840,"menu_item_id":286,"quantity":4},{"id":33841,"menu_item_id":61,"quantity":1},{"id":33842,"menu_item_id":56,"quantity":1},{"id":33843,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":6,"quantity":3}]} 
[2026-04-08 18:27:51] local.INFO: PosOrderController::update - Item changes check {"order_id":7061,"has_item_changes":true,"old_items_count":5,"new_items_count":6,"old_items_map_keys":["113|1|","286|4|","61|1|","56|1|","5|1|"],"new_items_map_keys":["113|1|","286|4|","61|1|","56|1|","5|1|","6|3|"]} 
[2026-04-08 18:27:51] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7061,"order_number":"AZS-080426-018"} 
[2026-04-08 18:27:51] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-018","replaced_order_id":7061} 
[2026-04-08 18:27:51] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7064,"items_count":6,"items":[{"menu_item_id":113,"quantity":1,"price":"1199.00"},{"menu_item_id":286,"quantity":4,"price":"15.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":6,"quantity":3,"price":"199.00"}]} 
[2026-04-08 18:27:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7064,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":"1199.00","discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7064}} 
[2026-04-08 18:27:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7064,"item_index":0,"menu_item_id":113} 
[2026-04-08 18:27:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7064,"item_index":1,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":4,"price":"15.00","discount_percent":0.0,"discount_amount":0.0,"total":60.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7064}} 
[2026-04-08 18:27:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7064,"item_index":1,"menu_item_id":286} 
[2026-04-08 18:27:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7064,"item_index":2,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7064}} 
[2026-04-08 18:27:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7064,"item_index":2,"menu_item_id":61} 
[2026-04-08 18:27:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7064,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7064}} 
[2026-04-08 18:27:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7064,"item_index":3,"menu_item_id":56} 
[2026-04-08 18:27:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7064,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7064}} 
[2026-04-08 18:27:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7064,"item_index":4,"menu_item_id":5} 
[2026-04-08 18:27:51] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7064,"item_index":5,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":3,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7064}} 
[2026-04-08 18:27:51] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7064,"item_index":5,"menu_item_id":6} 
[2026-04-08 18:27:51] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7061,"new_order_id":7064,"order_number":"AZS-080426-018"} 
[2026-04-08 18:53:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7064,"item_index":0,"item_id":33839} 
[2026-04-08 18:53:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7064,"item_index":1,"item_id":33840} 
[2026-04-08 18:53:40] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7064,"item_index":2,"item_id":33843} 
[2026-04-08 18:53:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":6,"order_id":7064,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33839},{"menu_item_id":286,"quantity":4,"price":15,"discount_percent":0,"notes":null,"id":33840},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33843},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":4,"price":15,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-08 18:53:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7064,"items_count":4} 
[2026-04-08 18:53:40] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":6,"items_to_remove":[33854,33855,33856,33857,33858,33859],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":286,"quantity":4},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":6,"quantity":3}]} 
[2026-04-08 18:53:40] local.INFO: PosOrderController::update - Item changes check {"order_id":7064,"has_item_changes":true,"old_items_count":6,"new_items_count":4,"old_items_map_keys":["113|1|","286|4|","61|1|","56|1|","5|1|","6|3|"],"new_items_map_keys":["113|1|","286|4|","5|1|","6|3|"]} 
[2026-04-08 18:53:40] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7064,"order_number":"AZS-080426-018"} 
[2026-04-08 18:53:40] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-018","replaced_order_id":7064} 
[2026-04-08 18:53:40] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7065,"items_count":4,"items":[{"menu_item_id":113,"quantity":1,"price":1199.0},{"menu_item_id":286,"quantity":4,"price":15.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":6,"quantity":3,"price":199.0}]} 
[2026-04-08 18:53:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7065,"item_index":0,"item_data":{"menu_item_id":113,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Chicken Shinwari - Half","quantity":1,"price":1199.0,"discount_percent":0.0,"discount_amount":0.0,"total":1199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7065}} 
[2026-04-08 18:53:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7065,"item_index":0,"menu_item_id":113} 
[2026-04-08 18:53:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7065,"item_index":1,"item_data":{"menu_item_id":286,"restaurant_category_id":null,"restaurant_category_name":null,"item_name":"Roti","quantity":4,"price":15.0,"discount_percent":0.0,"discount_amount":0.0,"total":60.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7065}} 
[2026-04-08 18:53:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7065,"item_index":1,"menu_item_id":286} 
[2026-04-08 18:53:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7065,"item_index":2,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7065}} 
[2026-04-08 18:53:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7065,"item_index":2,"menu_item_id":5} 
[2026-04-08 18:53:40] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7065,"item_index":3,"item_data":{"menu_item_id":6,"restaurant_category_id":3,"restaurant_category_name":"TEA Bar","item_name":"Karak Tea","quantity":3,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":597.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7065}} 
[2026-04-08 18:53:40] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7065,"item_index":3,"menu_item_id":6} 
[2026-04-08 18:53:40] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7064,"new_order_id":7065,"order_number":"AZS-080426-018"} 
[2026-04-08 18:53:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7065,"item_index":0,"item_id":33839} 
[2026-04-08 18:53:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7065,"item_index":1,"item_id":33840} 
[2026-04-08 18:53:46] local.WARNING: PosOrderController::update - Item ID not found for this order, treating as new item {"order_id":7065,"item_index":2,"item_id":33843} 
[2026-04-08 18:53:46] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":4,"order_id":7065,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33839},{"menu_item_id":286,"quantity":4,"price":15,"discount_percent":0,"notes":null,"id":33840},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33843},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}],"validated_items":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"menu_item_id":286,"quantity":4,"price":15,"discount_percent":0,"notes":null},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-08 18:53:46] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7065,"items_count":4} 
[2026-04-08 18:53:46] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":4,"items_to_remove":[33860,33861,33862,33863],"items":[{"id":null,"menu_item_id":113,"quantity":1},{"id":null,"menu_item_id":286,"quantity":4},{"id":null,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":6,"quantity":3}]} 
[2026-04-08 18:53:46] local.INFO: PosOrderController::update - Item changes check {"order_id":7065,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","286|4|","5|1|","6|3|"],"new_items_map_keys":["113|1|","286|4|","5|1|","6|3|"]} 
[2026-04-08 18:53:46] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7065,"order_number":"AZS-080426-018"} 
[2026-04-08 18:53:46] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7065,"order_number":"AZS-080426-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 18:53:46"} 
[2026-04-08 18:54:04] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7062,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":33844},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33845},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33846},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33847}],"validated_items":[{"id":33844,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":33845,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33846,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33847,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-08 18:54:04] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7062,"items_count":4} 
[2026-04-08 18:54:04] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33844,"menu_item_id":112,"quantity":1},{"id":33845,"menu_item_id":5,"quantity":1},{"id":33846,"menu_item_id":61,"quantity":2},{"id":33847,"menu_item_id":56,"quantity":1}]} 
[2026-04-08 18:54:04] local.INFO: PosOrderController::update - Item changes check {"order_id":7062,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["112|1|","5|1|","61|2|","56|1|"],"new_items_map_keys":["112|1|","5|1|","61|2|","56|1|"]} 
[2026-04-08 18:54:04] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7062,"order_number":"AZS-080426-019"} 
[2026-04-08 18:54:04] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7062,"order_number":"AZS-080426-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 18:54:04"} 
[2026-04-08 19:00:54] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":7062,"order_number":"AZS-080426-019","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2590,"incoming_payment_mode":"online","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 19:00:54"} 
[2026-04-08 19:00:54] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":7062,"order_number":"AZS-080426-019","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2590,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 19:00:54"} 
[2026-04-08 19:00:54] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":7062,"order_number":"AZS-080426-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2590,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 19:00:54"} 
[2026-04-08 19:00:54] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":7062,"order_number":"AZS-080426-019","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2590,"normalized_payment_mode":"online","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 19:00:54"} 
[2026-04-08 19:00:54] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7062,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null,"id":33844},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33845},{"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null,"id":33846},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33847}],"validated_items":[{"id":33844,"menu_item_id":112,"quantity":1,"price":1699,"discount_percent":0,"notes":null},{"id":33845,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33846,"menu_item_id":61,"quantity":2,"price":199,"discount_percent":0,"notes":null},{"id":33847,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-08 19:00:54] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7062,"items_count":4} 
[2026-04-08 19:00:54] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33844,"menu_item_id":112,"quantity":1},{"id":33845,"menu_item_id":5,"quantity":1},{"id":33846,"menu_item_id":61,"quantity":2},{"id":33847,"menu_item_id":56,"quantity":1}]} 
[2026-04-08 19:00:54] local.INFO: PosOrderController::update - Item changes check {"order_id":7062,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["112|1|","5|1|","61|2|","56|1|"],"new_items_map_keys":["112|1|","5|1|","61|2|","56|1|"]} 
[2026-04-08 19:00:54] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7062,"order_number":"AZS-080426-019"} 
[2026-04-08 19:00:54] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":7062,"order_number":"AZS-080426-019","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2590,"update_data_payment_mode":"online","update_data_paid_at":"2026-04-08 19:00:54","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-08 19:00:54"} 
[2026-04-08 19:00:54] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7062,"order_number":"AZS-080426-019","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-08 19:00:54"} 
[2026-04-08 19:00:54] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":7062,"order_number":"AZS-080426-019","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2590.00","payment_mode_after_update":"online","paid_at_after_update":"2026-04-08 19:00:54","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2590,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2590.00","database_verification_match":true,"timestamp":"2026-04-08 19:00:54"} 
[2026-04-08 19:04:19] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":7063,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null,"id":33848},{"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null,"id":33849},{"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null,"id":33850},{"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null,"id":33851},{"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null,"id":33852},{"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null,"id":33853},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}],"validated_items":[{"id":33848,"menu_item_id":105,"quantity":1,"discount_percent":0,"notes":null},{"id":33849,"menu_item_id":55,"quantity":2,"discount_percent":0,"notes":null},{"id":33850,"menu_item_id":396,"quantity":1,"discount_percent":0,"notes":null},{"id":33851,"menu_item_id":61,"quantity":1,"discount_percent":0,"notes":null},{"id":33852,"menu_item_id":56,"quantity":1,"discount_percent":0,"notes":null},{"id":33853,"menu_item_id":5,"quantity":1,"discount_percent":0,"notes":null},{"menu_item_id":3,"quantity":1,"discount_percent":0,"notes":null}]} 
[2026-04-08 19:04:19] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7063,"items_count":7} 
[2026-04-08 19:04:19] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33848,"menu_item_id":105,"quantity":1},{"id":33849,"menu_item_id":55,"quantity":2},{"id":33850,"menu_item_id":396,"quantity":1},{"id":33851,"menu_item_id":61,"quantity":1},{"id":33852,"menu_item_id":56,"quantity":1},{"id":33853,"menu_item_id":5,"quantity":1},{"id":null,"menu_item_id":3,"quantity":1}]} 
[2026-04-08 19:04:19] local.INFO: PosOrderController::update - Item changes check {"order_id":7063,"has_item_changes":true,"old_items_count":6,"new_items_count":7,"old_items_map_keys":["105|1|","55|2|","396|1|","61|1|","56|1|","5|1|"],"new_items_map_keys":["105|1|","55|2|","396|1|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-04-08 19:04:19] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7063,"order_number":"AZS-080426-020"} 
[2026-04-08 19:04:19] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-020","replaced_order_id":7063} 
[2026-04-08 19:04:19] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7066,"items_count":7,"items":[{"menu_item_id":105,"quantity":1,"price":"2199.00"},{"menu_item_id":55,"quantity":2,"price":"159.00"},{"menu_item_id":396,"quantity":1,"price":"99.00"},{"menu_item_id":61,"quantity":1,"price":"199.00"},{"menu_item_id":56,"quantity":1,"price":"199.00"},{"menu_item_id":5,"quantity":1,"price":"170.00"},{"menu_item_id":3,"quantity":1,"price":"270.00"}]} 
[2026-04-08 19:04:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7066,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":"2199.00","discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7066}} 
[2026-04-08 19:04:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7066,"item_index":0,"menu_item_id":105} 
[2026-04-08 19:04:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7066,"item_index":1,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":"159.00","discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7066}} 
[2026-04-08 19:04:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7066,"item_index":1,"menu_item_id":55} 
[2026-04-08 19:04:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7066,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":"99.00","discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7066}} 
[2026-04-08 19:04:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7066,"item_index":2,"menu_item_id":396} 
[2026-04-08 19:04:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7066,"item_index":3,"item_data":{"menu_item_id":61,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Mint Raita","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7066}} 
[2026-04-08 19:04:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7066,"item_index":3,"menu_item_id":61} 
[2026-04-08 19:04:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7066,"item_index":4,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":"199.00","discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7066}} 
[2026-04-08 19:04:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7066,"item_index":4,"menu_item_id":56} 
[2026-04-08 19:04:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7066,"item_index":5,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":"170.00","discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7066}} 
[2026-04-08 19:04:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7066,"item_index":5,"menu_item_id":5} 
[2026-04-08 19:04:19] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7066,"item_index":6,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":"270.00","discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7066}} 
[2026-04-08 19:04:19] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7066,"item_index":6,"menu_item_id":3} 
[2026-04-08 19:04:19] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7063,"new_order_id":7066,"order_number":"AZS-080426-020"} 
[2026-04-08 19:06:27] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7065,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33860},{"menu_item_id":286,"quantity":4,"price":15,"discount_percent":0,"notes":null,"id":33861},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33862},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":33863}],"validated_items":[{"id":33860,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33861,"menu_item_id":286,"quantity":4,"price":15,"discount_percent":0,"notes":null},{"id":33862,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33863,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-08 19:06:27] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7065,"items_count":4} 
[2026-04-08 19:06:27] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33860,"menu_item_id":113,"quantity":1},{"id":33861,"menu_item_id":286,"quantity":4},{"id":33862,"menu_item_id":5,"quantity":1},{"id":33863,"menu_item_id":6,"quantity":3}]} 
[2026-04-08 19:06:27] local.INFO: PosOrderController::update - Item changes check {"order_id":7065,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","286|4|","5|1|","6|3|"],"new_items_map_keys":["113|1|","286|4|","5|1|","6|3|"]} 
[2026-04-08 19:06:27] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7065,"order_number":"AZS-080426-018"} 
[2026-04-08 19:06:27] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7065,"order_number":"AZS-080426-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 19:06:27"} 
[2026-04-08 19:07:30] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":7065,"order_number":"AZS-080426-018","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":2026,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 19:07:30"} 
[2026-04-08 19:07:30] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":7065,"order_number":"AZS-080426-018","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":2026,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 19:07:30"} 
[2026-04-08 19:07:30] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":7065,"order_number":"AZS-080426-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2026,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 19:07:30"} 
[2026-04-08 19:07:30] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":7065,"order_number":"AZS-080426-018","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":2026,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 19:07:30"} 
[2026-04-08 19:07:30] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":4,"items_to_remove_count":0,"order_id":7065,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null,"id":33860},{"menu_item_id":286,"quantity":4,"price":15,"discount_percent":0,"notes":null,"id":33861},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33862},{"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null,"id":33863}],"validated_items":[{"id":33860,"menu_item_id":113,"quantity":1,"price":1199,"discount_percent":0,"notes":null},{"id":33861,"menu_item_id":286,"quantity":4,"price":15,"discount_percent":0,"notes":null},{"id":33862,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33863,"menu_item_id":6,"quantity":3,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-08 19:07:30] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7065,"items_count":4} 
[2026-04-08 19:07:30] local.INFO: PosOrderController::update - Processing items {"items_count":4,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33860,"menu_item_id":113,"quantity":1},{"id":33861,"menu_item_id":286,"quantity":4},{"id":33862,"menu_item_id":5,"quantity":1},{"id":33863,"menu_item_id":6,"quantity":3}]} 
[2026-04-08 19:07:30] local.INFO: PosOrderController::update - Item changes check {"order_id":7065,"has_item_changes":false,"old_items_count":4,"new_items_count":4,"old_items_map_keys":["113|1|","286|4|","5|1|","6|3|"],"new_items_map_keys":["113|1|","286|4|","5|1|","6|3|"]} 
[2026-04-08 19:07:30] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7065,"order_number":"AZS-080426-018"} 
[2026-04-08 19:07:30] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":7065,"order_number":"AZS-080426-018","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":2026,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-08 19:07:30","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-08 19:07:30"} 
[2026-04-08 19:07:30] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7065,"order_number":"AZS-080426-018","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","table_id","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-08 19:07:30"} 
[2026-04-08 19:07:30] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":7065,"order_number":"AZS-080426-018","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"2026.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-08 19:07:30","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":2026,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"2026.00","database_verification_match":true,"timestamp":"2026-04-08 19:07:30"} 
[2026-04-08 19:15:41] local.WARNING: Inventory item not found for recipe ID: 629  
[2026-04-08 19:17:07] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":7066,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":33864},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":33865},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33866},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33867},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33868},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33869},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":33870}],"validated_items":[{"id":33864,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":33865,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":33866,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":33867,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33868,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33869,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33870,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-08 19:17:07] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7066,"items_count":7} 
[2026-04-08 19:17:07] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33864,"menu_item_id":105,"quantity":1},{"id":33865,"menu_item_id":55,"quantity":2},{"id":33866,"menu_item_id":396,"quantity":1},{"id":33867,"menu_item_id":61,"quantity":1},{"id":33868,"menu_item_id":56,"quantity":1},{"id":33869,"menu_item_id":5,"quantity":1},{"id":33870,"menu_item_id":3,"quantity":1}]} 
[2026-04-08 19:17:07] local.INFO: PosOrderController::update - Item changes check {"order_id":7066,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["105|1|","55|2|","396|1|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["105|1|","55|2|","396|1|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-04-08 19:17:07] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7066,"order_number":"AZS-080426-020"} 
[2026-04-08 19:17:07] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7066,"order_number":"AZS-080426-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 19:17:07"} 
[2026-04-08 20:30:18] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":7066,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":33864},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":33865},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33866},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33867},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33868},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33869},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":33870}],"validated_items":[{"id":33864,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":33865,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":33866,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":33867,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33868,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33869,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33870,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-08 20:30:18] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7066,"items_count":7} 
[2026-04-08 20:30:18] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33864,"menu_item_id":105,"quantity":1},{"id":33865,"menu_item_id":55,"quantity":2},{"id":33866,"menu_item_id":396,"quantity":1},{"id":33867,"menu_item_id":61,"quantity":1},{"id":33868,"menu_item_id":56,"quantity":1},{"id":33869,"menu_item_id":5,"quantity":1},{"id":33870,"menu_item_id":3,"quantity":1}]} 
[2026-04-08 20:30:18] local.INFO: PosOrderController::update - Item changes check {"order_id":7066,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["105|1|","55|2|","396|1|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["105|1|","55|2|","396|1|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-04-08 20:30:18] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7066,"order_number":"AZS-080426-020"} 
[2026-04-08 20:30:18] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7066,"order_number":"AZS-080426-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 20:30:18"} 
[2026-04-08 20:30:22] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T08:30:24.746Z","date_to":"2026-04-08T20:30:24.746Z","per_page":"100"} 
[2026-04-08 20:30:22] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-021","AZS-080426-020","AZS-080426-019","AZS-080426-018","AZS-080426-017","AZS-080426-016","AZS-080426-015","AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":2,"unique_order_numbers":21} 
[2026-04-08 20:30:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T08:30:24.762Z","date_to":"2026-04-08T20:30:24.762Z","per_page":"100"} 
[2026-04-08 20:30:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-021","AZS-080426-020","AZS-080426-019","AZS-080426-018","AZS-080426-017","AZS-080426-016","AZS-080426-015","AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":2,"unique_order_numbers":21} 
[2026-04-08 20:30:23] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T08:30:24.746Z","date_to":"2026-04-08T20:30:24.746Z","per_page":"100"} 
[2026-04-08 20:30:23] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-021","AZS-080426-020","AZS-080426-019","AZS-080426-018","AZS-080426-017","AZS-080426-016","AZS-080426-015","AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["pending","pending","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":19,"unpaid_count":2,"unique_order_numbers":21} 
[2026-04-08 20:30:40] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":7,"items_to_remove_count":0,"order_id":7066,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":33864},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":33865},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33866},{"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33867},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33868},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33869},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":33870}],"validated_items":[{"id":33864,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":33865,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":33866,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":33867,"menu_item_id":61,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33868,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33869,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33870,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-08 20:30:40] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7066,"items_count":7} 
[2026-04-08 20:30:40] local.INFO: PosOrderController::update - Processing items {"items_count":7,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33864,"menu_item_id":105,"quantity":1},{"id":33865,"menu_item_id":55,"quantity":2},{"id":33866,"menu_item_id":396,"quantity":1},{"id":33867,"menu_item_id":61,"quantity":1},{"id":33868,"menu_item_id":56,"quantity":1},{"id":33869,"menu_item_id":5,"quantity":1},{"id":33870,"menu_item_id":3,"quantity":1}]} 
[2026-04-08 20:30:40] local.INFO: PosOrderController::update - Item changes check {"order_id":7066,"has_item_changes":false,"old_items_count":7,"new_items_count":7,"old_items_map_keys":["105|1|","55|2|","396|1|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["105|1|","55|2|","396|1|","61|1|","56|1|","5|1|","3|1|"]} 
[2026-04-08 20:30:40] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7066,"order_number":"AZS-080426-020"} 
[2026-04-08 20:30:40] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7066,"order_number":"AZS-080426-020","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","guests","is_food_bill"],"timestamp":"2026-04-08 20:30:40"} 
[2026-04-08 20:31:49] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":7066,"order_number":"AZS-080426-020","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":3500,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 20:31:49"} 
[2026-04-08 20:31:49] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":7066,"order_number":"AZS-080426-020","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":3500,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 20:31:49"} 
[2026-04-08 20:31:49] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":7066,"order_number":"AZS-080426-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 20:31:49"} 
[2026-04-08 20:31:49] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":7066,"order_number":"AZS-080426-020","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":3500,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 20:31:49"} 
[2026-04-08 20:31:49] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":6,"items_to_remove_count":1,"order_id":7066,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null,"id":33864},{"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null,"id":33865},{"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null,"id":33866},{"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33868},{"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null,"id":33869},{"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null,"id":33870}],"validated_items":[{"id":33864,"menu_item_id":105,"quantity":1,"price":2199,"discount_percent":0,"notes":null},{"id":33865,"menu_item_id":55,"quantity":2,"price":159,"discount_percent":0,"notes":null},{"id":33866,"menu_item_id":396,"quantity":1,"price":99,"discount_percent":0,"notes":null},{"id":33868,"menu_item_id":56,"quantity":1,"price":199,"discount_percent":0,"notes":null},{"id":33869,"menu_item_id":5,"quantity":1,"price":170,"discount_percent":0,"notes":null},{"id":33870,"menu_item_id":3,"quantity":1,"price":270,"discount_percent":0,"notes":null}]} 
[2026-04-08 20:31:49] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7066,"items_count":6} 
[2026-04-08 20:31:49] local.INFO: PosOrderController::update - Processing items {"items_count":6,"items_to_remove_count":1,"items_to_remove":[33867],"items":[{"id":33864,"menu_item_id":105,"quantity":1},{"id":33865,"menu_item_id":55,"quantity":2},{"id":33866,"menu_item_id":396,"quantity":1},{"id":33868,"menu_item_id":56,"quantity":1},{"id":33869,"menu_item_id":5,"quantity":1},{"id":33870,"menu_item_id":3,"quantity":1}]} 
[2026-04-08 20:31:49] local.INFO: PosOrderController::update - Item changes check {"order_id":7066,"has_item_changes":true,"old_items_count":7,"new_items_count":6,"old_items_map_keys":["105|1|","55|2|","396|1|","61|1|","56|1|","5|1|","3|1|"],"new_items_map_keys":["105|1|","55|2|","396|1|","56|1|","5|1|","3|1|"]} 
[2026-04-08 20:31:49] local.INFO: Order Payment Update: Before Order Recreation (Paid) {"action":"update","original_order_id":7066,"order_number":"AZS-080426-020","user_id":15,"user_role":"branch_cashier","is_being_marked_as_paid_now":true,"was_paid_before":false,"new_order_data_status":"paid","new_order_data_is_paid":true,"new_order_data_payment_amount":3500,"new_order_data_payment_mode":"cash","new_order_data_paid_at":"2026-04-08 20:31:49","original_payment_amount":"0.00","grand_total":3255.0,"timestamp":"2026-04-08 20:31:49"} 
[2026-04-08 20:31:49] local.INFO: PosOrderController::update - Setting status to changed and soft deleting original order {"original_order_id":7066,"order_number":"AZS-080426-020"} 
[2026-04-08 20:31:49] local.INFO: PosOrderController::update - Creating new order {"order_number":"AZS-080426-020","replaced_order_id":7066} 
[2026-04-08 20:31:49] local.INFO: Order Payment Update: After Order Recreation (Paid) {"action":"update","original_order_id":7066,"new_order_id":7068,"order_number":"AZS-080426-020","user_id":15,"user_role":"branch_cashier","status_after_creation":"paid","is_paid_after_creation":true,"payment_amount_after_creation":"3500.00","payment_mode_after_creation":"cash","paid_at_after_creation":"2026-04-08 20:31:49","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":3500,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"creation_successful":true,"timestamp":"2026-04-08 20:31:49"} 
[2026-04-08 20:31:49] local.INFO: PosOrderController::update - Creating order items {"new_order_id":7068,"items_count":6,"items":[{"menu_item_id":105,"quantity":1,"price":2199.0},{"menu_item_id":55,"quantity":2,"price":159.0},{"menu_item_id":396,"quantity":1,"price":99.0},{"menu_item_id":56,"quantity":1,"price":199.0},{"menu_item_id":5,"quantity":1,"price":170.0},{"menu_item_id":3,"quantity":1,"price":270.0}]} 
[2026-04-08 20:31:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7068,"item_index":0,"item_data":{"menu_item_id":105,"restaurant_category_id":13,"restaurant_category_name":"SHINWARI","item_name":"Mutton Shinwari - Half","quantity":1,"price":2199.0,"discount_percent":0.0,"discount_amount":0.0,"total":2199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7068}} 
[2026-04-08 20:31:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7068,"item_index":0,"menu_item_id":105} 
[2026-04-08 20:31:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7068,"item_index":1,"item_data":{"menu_item_id":55,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"Garlic Naan","quantity":2,"price":159.0,"discount_percent":0.0,"discount_amount":0.0,"total":318.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7068}} 
[2026-04-08 20:31:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7068,"item_index":1,"menu_item_id":55} 
[2026-04-08 20:31:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7068,"item_index":2,"item_data":{"menu_item_id":396,"restaurant_category_id":8,"restaurant_category_name":"TANDOOR","item_name":"ROTI PER HEAD","quantity":1,"price":99.0,"discount_percent":0.0,"discount_amount":0.0,"total":99.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7068}} 
[2026-04-08 20:31:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7068,"item_index":2,"menu_item_id":396} 
[2026-04-08 20:31:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7068,"item_index":3,"item_data":{"menu_item_id":56,"restaurant_category_id":9,"restaurant_category_name":"SALAD Bar","item_name":"Fresh Salad","quantity":1,"price":199.0,"discount_percent":0.0,"discount_amount":0.0,"total":199.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7068}} 
[2026-04-08 20:31:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7068,"item_index":3,"menu_item_id":56} 
[2026-04-08 20:31:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7068,"item_index":4,"item_data":{"menu_item_id":5,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Mineral Water Large","quantity":1,"price":170.0,"discount_percent":0.0,"discount_amount":0.0,"total":170.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7068}} 
[2026-04-08 20:31:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7068,"item_index":4,"menu_item_id":5} 
[2026-04-08 20:31:49] local.INFO: PosOrderController::update - Creating order item with data {"new_order_id":7068,"item_index":5,"item_data":{"menu_item_id":3,"restaurant_category_id":2,"restaurant_category_name":"DRINK Bar","item_name":"Cold Drink 1.5","quantity":1,"price":270.0,"discount_percent":0.0,"discount_amount":0.0,"total":270.0,"notes":null,"restaurant_id":1,"branch_id":1,"order_id":7068}} 
[2026-04-08 20:31:49] local.INFO: PosOrderController::update - Order item created successfully {"new_order_id":7068,"item_index":5,"menu_item_id":3} 
[2026-04-08 20:31:49] local.ERROR: Error tracking recipe usage for order 7068: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'branch_id' in 'field list' (Connection: mysql, SQL: insert into `recipe_usage_logs` (`order_id`, `menu_item_id`, `inventory_item_id`, `branch_id`, `quantity_used`, `quantity_remaining`, `notes`, `updated_at`, `created_at`) values (7068, 105, 196, 1, 500, 0.00, Order #AZS-080426-020 - 1x Mutton Shinwari - Half, 2026-04-08 20:31:49, 2026-04-08 20:31:49))  
[2026-04-08 20:31:49] local.INFO: PosOrderController::update - Order replacement completed {"original_order_id":7066,"new_order_id":7068,"order_number":"AZS-080426-020"} 
[2026-04-08 20:31:50] local.INFO: RouteServiceProvider: Redirecting GET request from soft-deleted order to replacement {"old_order_id":7066,"new_order_id":7068,"order_number":"AZS-080426-020","route":"api/orders/7066"} 
[2026-04-08 20:32:06] local.INFO: Order Payment Update: Payment Fields Detected (status=paid) {"action":"update","order_id":7067,"order_number":"AZS-080426-021","user_id":15,"user_role":"branch_cashier","detected_status":"paid","incoming_payment_amount":200,"incoming_payment_mode":"cash","incoming_is_paid":true,"current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 20:32:06"} 
[2026-04-08 20:32:06] local.INFO: Order Payment Update: Payment Fields Detected (is_paid) {"action":"update","order_id":7067,"order_number":"AZS-080426-021","user_id":15,"user_role":"branch_cashier","incoming_is_paid":true,"incoming_payment_amount":200,"incoming_status":"paid","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","was_paid_before":false,"timestamp":"2026-04-08 20:32:06"} 
[2026-04-08 20:32:06] local.INFO: Order Payment Update: Payment Fields Normalized (status=paid) {"action":"update","order_id":7067,"order_number":"AZS-080426-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 20:32:06"} 
[2026-04-08 20:32:06] local.INFO: Order Payment Update: Payment Fields Normalized (is_paid=true) {"action":"update","order_id":7067,"order_number":"AZS-080426-021","user_id":15,"user_role":"branch_cashier","normalized_payment_amount":200,"normalized_payment_mode":"cash","normalized_is_paid":true,"normalized_status":"paid","is_being_marked_as_paid":true,"timestamp":"2026-04-08 20:32:06"} 
[2026-04-08 20:32:06] local.INFO: PosOrderController::update - Items update check {"canEdit":true,"has_items":true,"items_count":1,"items_to_remove_count":0,"order_id":7067,"user_id":15,"user_role":"branch_cashier","request_items":"yes","request_items_raw":[{"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null,"id":33871}],"validated_items":[{"id":33871,"menu_item_id":6,"quantity":1,"price":199,"discount_percent":0,"notes":null}]} 
[2026-04-08 20:32:06] local.INFO: PosOrderController::update - Processing items for new order {"original_order_id":7067,"items_count":1} 
[2026-04-08 20:32:06] local.INFO: PosOrderController::update - Processing items {"items_count":1,"items_to_remove_count":0,"items_to_remove":[],"items":[{"id":33871,"menu_item_id":6,"quantity":1}]} 
[2026-04-08 20:32:06] local.INFO: PosOrderController::update - Item changes check {"order_id":7067,"has_item_changes":false,"old_items_count":1,"new_items_count":1,"old_items_map_keys":["6|1|"],"new_items_map_keys":["6|1|"]} 
[2026-04-08 20:32:06] local.INFO: PosOrderController::update - No item changes detected, updating order in place {"order_id":7067,"order_number":"AZS-080426-021"} 
[2026-04-08 20:32:06] local.INFO: Order Payment Update: Before In-Place Update {"action":"update","order_id":7067,"order_number":"AZS-080426-021","user_id":15,"user_role":"branch_cashier","update_data_status":"paid","update_data_is_paid":true,"update_data_payment_amount":200,"update_data_payment_mode":"cash","update_data_paid_at":"2026-04-08 20:32:06","current_order_status":"pending","current_order_is_paid":false,"current_order_payment_amount":"0.00","timestamp":"2026-04-08 20:32:06"} 
[2026-04-08 20:32:06] local.INFO: Order Payment Update: In-Place Update Executed {"action":"update","order_id":7067,"order_number":"AZS-080426-021","user_id":15,"user_role":"branch_cashier","update_result":1,"update_data_keys":["subtotal","service_charge_percent","service_charge","tax_percent","tax","discount_percent","discount","grand_total","updated_at","order_type","customer_name","guests","is_food_bill","status","is_paid","payment_amount","payment_mode","paid_at","paid_by","paid_by_id"],"timestamp":"2026-04-08 20:32:06"} 
[2026-04-08 20:32:06] local.INFO: Order Payment Update: After In-Place Update {"action":"update","order_id":7067,"order_number":"AZS-080426-021","user_id":15,"user_role":"branch_cashier","status_after_update":"paid","is_paid_after_update":true,"payment_amount_after_update":"200.00","payment_mode_after_update":"cash","paid_at_after_update":"2026-04-08 20:32:06","expected_status":"paid","expected_is_paid":true,"expected_payment_amount":200,"status_match":true,"is_paid_match":true,"payment_amount_match":true,"verified_status":"paid","verified_is_paid":true,"verified_payment_amount":"200.00","database_verification_match":true,"timestamp":"2026-04-08 20:32:06"} 
[2026-04-08 20:32:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T08:32:13.130Z","date_to":"2026-04-08T20:32:13.130Z","per_page":"100"} 
[2026-04-08 20:32:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-021","AZS-080426-020","AZS-080426-019","AZS-080426-018","AZS-080426-017","AZS-080426-016","AZS-080426-015","AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":0,"unique_order_numbers":21} 
[2026-04-08 20:32:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T08:32:13.150Z","date_to":"2026-04-08T20:32:13.150Z","per_page":"100"} 
[2026-04-08 20:32:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-021","AZS-080426-020","AZS-080426-019","AZS-080426-018","AZS-080426-017","AZS-080426-016","AZS-080426-015","AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":0,"unique_order_numbers":21} 
[2026-04-08 20:32:13] local.INFO: Orders query for branch user {"user_id":15,"user_role":"branch_cashier","branch_id":1,"request_branch_id":"1","date_from":"2026-04-08T08:32:13.130Z","date_to":"2026-04-08T20:32:13.130Z","per_page":"100"} 
[2026-04-08 20:32:13] local.INFO: Orders query results {"user_id":15,"user_role":"branch_cashier","user_branch_id":1,"total":21,"count":21,"current_page":1,"last_page":1,"per_page":100,"order_branch_ids":[1],"order_numbers":["AZS-080426-021","AZS-080426-020","AZS-080426-019","AZS-080426-018","AZS-080426-017","AZS-080426-016","AZS-080426-015","AZS-080426-014","AZS-080426-013","AZS-080426-012","AZS-080426-011","AZS-080426-010","AZS-080426-009","AZS-080426-008","AZS-080426-007","AZS-080426-006","AZS-080426-005","AZS-080426-004","AZS-080426-003","AZS-080426-002","AZS-080426-001"],"order_statuses":["paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid","paid"],"deleted_count":0,"paid_count":21,"unpaid_count":0,"unique_order_numbers":21} 
